From c85d456a50fc895a7247a2e1c38dcd6b1d4151e1 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 5 Jul 2023 14:00:04 +0800 Subject: [PATCH] Auto Submit --- color.less | 30 ++-- index.html | 2 +- ...Lists__Attendance__index.debee0d4.async.js | 40 ++--- ...ework__SubmitWork__index.d36ece65.async.js | 156 +++++++++--------- ...ion__Topics__Edit__index.64038857.async.js | 140 ++++++++-------- ...ed__Assembly__TeamDateil.6da9ae7f.async.js | 2 +- ...nnovation__PublicDataSet.de2dd1e5.async.js | 10 +- ...etail__Classrooms__index.ec1b0bcd.async.js | 4 +- umi.e8857e1c.js => umi.02836f8a.js | 30 ++-- 9 files changed, 207 insertions(+), 207 deletions(-) rename umi.e8857e1c.js => umi.02836f8a.js (93%) diff --git a/color.less b/color.less index 6be7753788..8c08cdee2b 100644 --- a/color.less +++ b/color.less @@ -727,42 +727,42 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: @success-color;} .ant-form-item-has-warning .ant-form-item-explain, .ant-form-item-has-warning .ant-form-item-split {color: @warning-color;} .ant-form-item-has-warning .ant-input, .ant-form-item-has-warning .ant-input-affix-wrapper, .ant-form-item-has-warning .ant-input:hover, .ant-form-item-has-warning .ant-input-affix-wrapper:hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 175, 184, 0.2);} +.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(243, 246, 0, 0.2);} .ant-form-item-has-warning .ant-input:not(.ant-form-item-has-warning .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper:not(.ant-form-item-has-warning .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 175, 184, 0.2);} +.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(243, 246, 0, 0.2);} .ant-form-item-has-warning .ant-input-prefix {color: @warning-color;} .ant-form-item-has-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;} .ant-form-item-has-warning .has-feedback {color: @warning-color;} .ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: @warning-color;} .ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @warning-color !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 175, 184, 0.2);} +.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(243, 246, 0, 0.2);} .ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 175, 184, 0.2);} +.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(243, 246, 0, 0.2);} .ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 175, 184, 0.2);} +.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(243, 246, 0, 0.2);} .ant-form-item-has-error .ant-form-item-explain, .ant-form-item-has-error .ant-form-item-split {color: @error-color;} .ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-input-affix-wrapper, .ant-form-item-has-error .ant-input:hover, .ant-form-item-has-error .ant-input-affix-wrapper:hover {border-color: @error-color;} -.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} +.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} .ant-form-item-has-error .ant-input:not(.ant-form-item-has-error .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper:not(.ant-form-item-has-error .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} +.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} .ant-form-item-has-error .ant-input-prefix {color: @error-color;} .ant-form-item-has-error .ant-input-group-addon {color: @error-color;border-color: @error-color;} .ant-form-item-has-error .has-feedback {color: @error-color;} .ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: @error-color;} .ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @error-color !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} +.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} .ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {border: 0;} .ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: @error-color;} .ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {border-color: @error-color;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} +.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} .ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {border-color: @error-color;} .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {border-color: @error-color;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(45, 230, 199, 0.2);} +.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} +.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(31, 52, 158, 0.2);} .ant-form-item-has-error .ant-transfer-list {border-color: @error-color;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: @border-color-base;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} @@ -1457,9 +1457,9 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;} .ant-tag-checkable-checked {background-color: @primary-color;} .ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tag-pink {color: #eb2f96;background: color(~`colorPalette("@{modal-heading-color}", 1)`);border-color: #ffadd2;} +.ant-tag-pink {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-magenta {color: #eb2f96;background: color(~`colorPalette("@{modal-heading-color}", 1)`);border-color: #ffadd2;} +.ant-tag-magenta {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-red {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} @@ -1467,9 +1467,9 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;} .ant-tag-orange {color: #fa8c16;background: #fff7e6;border-color: #ffd591;} .ant-tag-orange-inverse {color: #fff;background: #fa8c16;border-color: #fa8c16;} -.ant-tag-yellow {color: #fadb14;background: #feffe6;border-color: #fffb8f;} +.ant-tag-yellow {color: #fadb14;background: #feffe6;border-color: color(~`colorPalette("@{modal-content-bg}", 4)`);} .ant-tag-yellow-inverse {color: #fff;background: #fadb14;border-color: #fadb14;} -.ant-tag-gold {color: #faad14;background: #fffbe6;border-color: #ffe58f;} +.ant-tag-gold {color: #faad14;background: color(~`colorPalette("@{warning-color}", 1)`);border-color: #ffe58f;} .ant-tag-gold-inverse {color: #fff;background: #faad14;border-color: #faad14;} .ant-tag-cyan {color: #13c2c2;background: #e6fffb;border-color: #87e8de;} .ant-tag-cyan-inverse {color: #fff;background: #13c2c2;border-color: #13c2c2;} diff --git a/index.html b/index.html index a3ac8db8ca..4194405536 100644 --- a/index.html +++ b/index.html @@ -149,6 +149,6 @@ - + diff --git a/p__Classrooms__Lists__Attendance__index.debee0d4.async.js b/p__Classrooms__Lists__Attendance__index.debee0d4.async.js index eab1396cdd..5401a20273 100644 --- a/p__Classrooms__Lists__Attendance__index.debee0d4.async.js +++ b/p__Classrooms__Lists__Attendance__index.debee0d4.async.js @@ -1,23 +1,23 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[43,3,6,8,9,16],{"+QRC":function(ie,w,t){"use strict";var O=t("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},p="Copy to clipboard: #{key}, Enter";function m(a){var r=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,r)}function u(a,r){var e,i,l,s,d,g,y=!1;r||(r={}),e=r.debug||!1;try{l=O(),s=document.createRange(),d=document.getSelection(),g=document.createElement("span"),g.textContent=a,g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(D){if(D.stopPropagation(),r.format)if(D.preventDefault(),typeof D.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=f[r.format]||f.default;window.clipboardData.setData(P,a)}else D.clipboardData.clearData(),D.clipboardData.setData(r.format,a);r.onCopy&&(D.preventDefault(),r.onCopy(D.clipboardData))}),document.body.appendChild(g),s.selectNodeContents(g),d.addRange(s);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(D){e&&console.error("unable to copy using execCommand: ",D),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",a),r.onCopy&&r.onCopy(window.clipboardData),y=!0}catch(P){e&&console.error("unable to copy using clipboardData: ",P),e&&console.error("falling back to prompt"),i=m("message"in r?r.message:p),window.prompt(i,a)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(s):d.removeAllRanges()),g&&document.body.removeChild(g),l()}return y}ie.exports=u},"/GNS":function(ie,w,t){ie.exports=t.p+"static/search1.c4136dd4.png"},"06Qe":function(ie,w,t){var O=t("ItGF"),f="urn:schemas-microsoft-com:vml",p=typeof window=="undefined"?null:window,m=!1,u=p&&p.document;function a(i){return r(i)}var r;if(u&&!O.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",f),r=function(i){return u.createElement("')}}catch(i){r=function(l){return u.createElement("<"+l+' xmlns="'+f+'" class="zrvml">')}}function e(){if(m||!u)return;m=!0;var i=u.styleSheets;i.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}w.doc=u,w.createNode=a,w.initVML=e},"0FX9":function(ie,w,t){var O=t("Z92M"),f=t("qmMu"),p=t("QUaw"),m=t("QAZZ");function u(a,r,e,i,l){var s=[].slice.call(arguments,1),d=s.length,g=typeof s[d-1]=="function";if(!g&&!O())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(l=e,e=r,r=i=void 0):d===3&&(r.getContext&&typeof l=="undefined"?(l=i,i=void 0):(l=i,i=e,e=r,r=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(e=r,r=i=void 0):d===2&&!r.getContext&&(i=e,e=r,r=void 0),new Promise(function(b,D){try{var P=f.create(e,i);b(a(P,r,i))}catch(I){D(I)}})}try{var y=f.create(e,i);l(null,a(y,r,i))}catch(b){l(b)}}w.create=f.create,w.toCanvas=u.bind(null,p.render),w.toDataURL=u.bind(null,p.renderToDataURL),w.toString=u.bind(null,function(a,r,e){return m.render(a,e)})},"0s+r":function(ie,w,t){var O=t("bYtY"),f=t("QBsz"),p=t("y23F"),m=t("H6uX"),u=t("YH21"),a=t("C0SR"),r="silent";function e(D,P,I){return{type:D,event:I,target:P.target,topTarget:P.topTarget,cancelBubble:!1,offsetX:I.zrX,offsetY:I.zrY,gestureEvent:I.gestureEvent,pinchX:I.pinchX,pinchY:I.pinchY,pinchScale:I.pinchScale,wheelDelta:I.zrDelta,zrByTouch:I.zrByTouch,which:I.which,stop:i}}function i(){u.stop(this.event)}function l(){}l.prototype.dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(D,P,I,v){m.call(this),this.storage=D,this.painter=P,this.painterRoot=v,I=I||new l,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,p.call(this),this.setHandlerProxy(I)};d.prototype={constructor:d,setHandlerProxy:function(D){this.proxy&&this.proxy.dispose(),D&&(O.each(s,function(P){D.on&&D.on(P,this[P],this)},this),D.handler=this),this.proxy=D},mousemove:function(D){var P=D.zrX,I=D.zrY,v=y(this,P,I),E=this._hovered,h=E.target;h&&!h.__zr&&(E=this.findHover(E.x,E.y),h=E.target);var T=this._hovered=v?{x:P,y:I}:this.findHover(P,I),j=T.target,Q=this.proxy;Q.setCursor&&Q.setCursor(j?j.cursor:"default"),h&&j!==h&&this.dispatchToElement(E,"mouseout",D),this.dispatchToElement(T,"mousemove",D),j&&j!==h&&this.dispatchToElement(T,"mouseover",D)},mouseout:function(D){var P=D.zrEventControl,I=D.zrIsToLocalDOM;P!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",D),P!=="no_globalout"&&(!I&&this.trigger("globalout",{type:"globalout",event:D}))},resize:function(D){this._hovered={}},dispatch:function(D,P){var I=this[D];I&&I.call(this,P)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(D){var P=this.proxy;P.setCursor&&P.setCursor(D)},dispatchToElement:function(D,P,I){D=D||{};var v=D.target;if(v&&v.silent)return;for(var E="on"+P,h=e(P,D,I);v&&!(v[E]&&(h.cancelBubble=v[E].call(v,h)),v.trigger(P,h),v=v.parent,h.cancelBubble););h.cancelBubble||(this.trigger(P,h),this.painter&&this.painter.eachOtherLayer(function(T){typeof T[E]=="function"&&T[E].call(T,h),T.trigger&&T.trigger(P,h)}))},findHover:function(D,P,I){for(var v=this.storage.getDisplayList(),E={x:D,y:P},h=v.length-1;h>=0;h--){var T;if(v[h]!==I&&!v[h].ignore&&(T=g(v[h],D,P))&&(!E.topTarget&&(E.topTarget=v[h]),T!==r)){E.target=v[h];break}}return E},processGesture:function(D,P){this._gestureMgr||(this._gestureMgr=new a);var I=this._gestureMgr;P==="start"&&I.clear();var v=I.recognize(D,this.findHover(D.zrX,D.zrY,null).target,this.proxy.dom);if(P==="end"&&I.clear(),v){var E=v.type;D.gestureEvent=E,this.dispatchToElement({target:v.target},E,v.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(D){d.prototype[D]=function(P){var I=P.zrX,v=P.zrY,E=y(this,I,v),h,T;if((D!=="mouseup"||!E)&&(h=this.findHover(I,v),T=h.target),D==="mousedown")this._downEl=T,this._downPoint=[P.zrX,P.zrY],this._upEl=T;else if(D==="mouseup")this._upEl=T;else if(D==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[P.zrX,P.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,D,P)}});function g(D,P,I){if(D[D.rectHover?"rectContain":"contain"](P,I)){for(var v=D,E;v;){if(v.clipPath&&!v.clipPath.contain(P,I))return!1;v.silent&&(E=!0),v=v.parent}return E?r:!0}return!1}function y(D,P,I){var v=D.painter;return P<0||P>v.getWidth()||I<0||I>v.getHeight()}O.mixin(d,m),O.mixin(d,p);var b=d;ie.exports=b},"1Jh7":function(ie,w,t){var O=t("y+Vt"),f=t("T6xi"),p=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,u){f.buildPath(m,u,!1)}});ie.exports=p},"1MYJ":function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var p=this.__dirtyPath,m=this.shape.paths,u=0;u=this._maxSize&&s>0){var g=e.head;e.remove(g),delete i[g.key],l=g.value,this._lastRemovedEntry=g}d?d.value=r:d=new f(r),d.key=a,e.insertEntry(d),i[a]=d}return l},m.get=function(a){var r=this._map[a],e=this._list;if(r!=null)return r!==e.tail&&(e.remove(r),e.insertEntry(r)),r.value},m.clear=function(){this._list.clear(),this._map={}};var u=p;ie.exports=u},"1bdT":function(ie,w,t){var O=t("3gBT"),f=t("H6uX"),p=t("DN4a"),m=t("vWvF"),u=t("bYtY"),a=function(e){p.call(this,e),f.call(this,e),m.call(this,e),this.id=e.id||O()};a.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":e=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=e,l[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,i){},attrKV:function(e,i){if(e==="position"||e==="scale"||e==="origin"){if(i){var l=this[e];l||(l=this[e]=[]),l[0]=i[0],l[1]=i[1]}}else this[e]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,i){if(typeof e=="string")this.attrKV(e,i);else if(u.isObject(e))for(var l in e)e.hasOwnProperty(l)&&this.attrKV(l,e[l]);return this.dirty(!1),this},setClipPath:function(e){var i=this.__zr;i&&e.addSelfToZr(i),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=i,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var i=this.animators;if(i)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ce&&typeof Ce.getBoundingClientRect=="function"&&Ce.getBoundingClientRect().width;if(ge){if(Oe){var ne=getComputedStyle(Ce),le=ne.marginLeft,we=ne.marginRight;ge+=+le.replace("px","")+ +we.replace("px","")}ge=+ge.toFixed(6)}return ge||0},X=function(Ce,Oe,ge){Ce&&Object(I.a)(Ce.style)==="object"&&(Ce.style[Oe]=ge)},q=function(){return Z.any},se=t("KQm4"),ae=t("Ff2n"),ve=t("i8i4"),W=t("bdgK"),re=t("uciX"),R=t("8XRh"),$={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$,offset:[4,0]}},F={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$,offset:[4,0]}},C=fe,S=0,z={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},te=function(Ce,Oe,ge){var ne=x(Oe),le=Ce.getState();Ce.setState({defaultActiveFirst:Object(O.a)(Object(O.a)({},le.defaultActiveFirst),{},Object(s.a)({},ne,ge))})},de=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.onDestroy=function(De){ne.props.onDestroy(De)},ne.onKeyDown=function(De){var Le=De.keyCode,Fe=ne.menuInstance,dt=ne.props,tt=dt.isOpen,Ct=dt.store;if(Le===d.a.ENTER)return ne.onTitleClick(De),te(Ct,ne.props.eventKey,!0),!0;if(Le===d.a.RIGHT)return tt?Fe.onKeyDown(De):(ne.triggerOpenChange(!0),te(Ct,ne.props.eventKey,!0)),!0;if(Le===d.a.LEFT){var At;if(tt)At=Fe.onKeyDown(De);else return;return At||(ne.triggerOpenChange(!1),At=!0),At}return tt&&(Le===d.a.UP||Le===d.a.DOWN)?Fe.onKeyDown(De):void 0},ne.onOpenChange=function(De){ne.props.onOpenChange(De)},ne.onPopupVisibleChange=function(De){ne.triggerOpenChange(De,De?"mouseenter":"mouseleave")},ne.onMouseEnter=function(De){var Le=ne.props,Fe=Le.eventKey,dt=Le.onMouseEnter,tt=Le.store;te(tt,ne.props.eventKey,!1),dt({key:Fe,domEvent:De})},ne.onMouseLeave=function(De){var Le=ne.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onMouseLeave;Fe.subMenuInstance=Object(m.a)(ne),tt({key:dt,domEvent:De})},ne.onTitleMouseEnter=function(De){var Le=ne.props,Fe=Le.eventKey,dt=Le.onItemHover,tt=Le.onTitleMouseEnter;dt({key:Fe,hover:!0}),tt({key:Fe,domEvent:De})},ne.onTitleMouseLeave=function(De){var Le=ne.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onItemHover,Ct=Le.onTitleMouseLeave;Fe.subMenuInstance=Object(m.a)(ne),tt({key:dt,hover:!1}),Ct({key:dt,domEvent:De})},ne.onTitleClick=function(De){var Le=Object(m.a)(ne),Fe=Le.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:De}),Fe.triggerSubMenuAction==="hover")return;ne.triggerOpenChange(!Fe.isOpen,"click"),te(Fe.store,ne.props.eventKey,!1)},ne.onSubMenuClick=function(De){typeof ne.props.onClick=="function"&&ne.props.onClick(ne.addKeyPath(De))},ne.onSelect=function(De){ne.props.onSelect(De)},ne.onDeselect=function(De){ne.props.onDeselect(De)},ne.getPrefixCls=function(){return"".concat(ne.props.rootPrefixCls,"-submenu")},ne.getActiveClassName=function(){return"".concat(ne.getPrefixCls(),"-active")},ne.getDisabledClassName=function(){return"".concat(ne.getPrefixCls(),"-disabled")},ne.getSelectedClassName=function(){return"".concat(ne.getPrefixCls(),"-selected")},ne.getOpenClassName=function(){return"".concat(ne.props.rootPrefixCls,"-submenu-open")},ne.saveMenuInstance=function(De){ne.menuInstance=De},ne.addKeyPath=function(De){return Object(O.a)(Object(O.a)({},De),{},{keyPath:(De.keyPath||[]).concat(ne.props.eventKey)})},ne.triggerOpenChange=function(De,Le){var Fe=ne.props.eventKey,dt=function(){ne.onOpenChange({key:Fe,item:Object(m.a)(ne),trigger:Le,open:De})};Le==="mouseenter"?ne.mouseenterTimeout=setTimeout(function(){dt()},0):dt()},ne.isChildrenSelected=function(){var De={find:!1};return G(ne.props.children,ne.props.selectedKeys,De),De.find},ne.isOpen=function(){return ne.props.openKeys.indexOf(ne.props.eventKey)!==-1},ne.adjustWidth=function(){if(!ne.subMenuTitle||!ne.menuInstance)return;var De=ve.findDOMNode(ne.menuInstance);if(De.offsetWidth>=ne.subMenuTitle.offsetWidth)return;De.style.minWidth="".concat(ne.subMenuTitle.offsetWidth,"px")},ne.saveSubMenuTitle=function(De){ne.subMenuTitle=De},ne.getBaseProps=function(){var De=Object(m.a)(ne),Le=De.props;return{mode:Le.mode==="horizontal"?"vertical":Le.mode,visible:ne.props.isOpen,level:Le.level+1,inlineIndent:Le.inlineIndent,focusable:!1,onClick:ne.onSubMenuClick,onSelect:ne.onSelect,onDeselect:ne.onDeselect,onDestroy:ne.onDestroy,selectedKeys:Le.selectedKeys,eventKey:"".concat(Le.eventKey,"-menu-"),openKeys:Le.openKeys,motion:Le.motion,onOpenChange:ne.onOpenChange,subMenuOpenDelay:Le.subMenuOpenDelay,parentMenu:Object(m.a)(ne),subMenuCloseDelay:Le.subMenuCloseDelay,forceSubMenuRender:Le.forceSubMenuRender,triggerSubMenuAction:Le.triggerSubMenuAction,builtinPlacements:Le.builtinPlacements,defaultActiveFirst:Le.store.getState().defaultActiveFirst[x(Le.eventKey)],multiple:Le.multiple,prefixCls:Le.rootPrefixCls,id:ne.internalMenuId,manualRef:ne.saveMenuInstance,itemIcon:Le.itemIcon,expandIcon:Le.expandIcon,direction:Le.direction}},ne.getMotion=function(De,Le){var Fe=Object(m.a)(ne),dt=Fe.haveRendered,tt=ne.props,Ct=tt.motion,At=tt.rootPrefixCls,Ht=Object(O.a)(Object(O.a)({},Ct),{},{leavedClassName:"".concat(At,"-hidden"),removeOnLeave:!1,motionAppear:dt||!Le||De!=="inline"});return Ht};var le=ge.store,we=ge.eventKey,xe=le.getState(),Re=xe.defaultActiveFirst;ne.isRootMenu=!1;var je=!1;return Re&&(je=Re[we]),te(le,we,je),ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ne=this,le=this.props,we=le.mode,xe=le.parentMenu,Re=le.manualRef;if(Re&&Re(this),we!=="horizontal"||!xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ne.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ne=this.props,le=ne.onDestroy,we=ne.eventKey;le&&le(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ne){var le=this,we=this.getBaseProps(),xe=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return r.createElement("div",null);var Re=we.direction;return r.createElement(R.default,Object.assign({visible:we.visible},xe),function(je){var De=je.className,Le=je.style,Fe=P()("".concat(we.prefixCls,"-sub"),De,Object(s.a)({},"".concat(we.prefixCls,"-rtl"),Re==="rtl"));return r.createElement(et,Object.assign({},we,{id:le.internalMenuId,className:Fe,style:Le}),ne)})}},{key:"render",value:function(){var ne,le=Object(O.a)({},this.props),we=le.isOpen,xe=this.getPrefixCls(),Re=le.mode==="inline",je=P()(xe,"".concat(xe,"-").concat(le.mode),(ne={},Object(s.a)(ne,le.className,!!le.className),Object(s.a)(ne,this.getOpenClassName(),we),Object(s.a)(ne,this.getActiveClassName(),le.active||we&&!Re),Object(s.a)(ne,this.getDisabledClassName(),le.disabled),Object(s.a)(ne,this.getSelectedClassName(),this.isChildrenSelected()),ne));this.internalMenuId||(le.eventKey?this.internalMenuId="".concat(le.eventKey,"$Menu"):(S+=1,this.internalMenuId="$__$".concat(S,"$Menu")));var De={},Le={},Fe={};le.disabled||(De={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Le={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var dt={},tt=le.direction;Re&&(tt==="rtl"?dt.paddingRight=le.inlineIndent*le.level:dt.paddingLeft=le.inlineIndent*le.level);var Ct={};this.props.isOpen&&(Ct={"aria-owns":this.internalMenuId});var At=null;le.mode!=="horizontal"&&(At=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(At=r.createElement(this.props.expandIcon,Object(O.a)({},this.props))));var Ht=r.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:dt,className:"".concat(xe,"-title"),role:"button"},Fe,Le,{"aria-expanded":we},Ct,{"aria-haspopup":"true",title:typeof le.title=="string"?le.title:void 0}),le.title,At||r.createElement("i",{className:"".concat(xe,"-arrow")})),en=this.renderChildren(le.children),Ge=le.parentMenu.isRootMenu?le.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},gt=z[le.mode],xt=le.popupOffset?{offset:le.popupOffset}:{},Lt=le.mode==="inline"?"":le.popupClassName;Lt+=tt==="rtl"?" ".concat(xe,"-rtl"):"";var Ot=le.disabled,Dt=le.triggerSubMenuAction,Bt=le.subMenuOpenDelay,Xt=le.forceSubMenuRender,an=le.subMenuCloseDelay,Jt=le.builtinPlacements;oe.forEach(function(Ft){return delete le[Ft]}),delete le.onClick;var Ut=tt==="rtl"?Object.assign({},F,Jt):Object.assign({},fe,Jt);return delete le.direction,r.createElement("li",Object.assign({},le,De,{className:je,role:"menuitem"}),Re&&Ht,Re&&en,!Re&&r.createElement(re.a,{prefixCls:xe,popupClassName:P()("".concat(xe,"-popup"),Lt),getPopupContainer:Ge,builtinPlacements:Ut,popupPlacement:gt,popupVisible:we,popupAlign:xt,popup:en,action:Ot?[]:[Dt],mouseEnterDelay:Bt,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Xt},Ht))}}]),Oe}(r.Component);de.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var he=Object(e.b)(function(ze,Ce){var Oe=ze.openKeys,ge=ze.activeKey,ne=ze.selectedKeys,le=Ce.eventKey,we=Ce.subMenuKey;return{isOpen:Oe.indexOf(le)>-1,active:ge[we]===le,selectedKeys:ne}})(de);he.isSubMenu=!0;var Me=he,ce="menuitem-overflowed",be=.5,Ae=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.getMenuItemNodes=function(){var ne=ge.props.prefixCls,le=ve.findDOMNode(Object(m.a)(ge));return le?[].slice.call(le.children).filter(function(we){return we.className.split(" ").indexOf("".concat(ne,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(ne,le,we){var xe=ge.props,Re=xe.overflowedIndicator,je=xe.level,De=xe.mode,Le=xe.prefixCls,Fe=xe.theme;if(je!==1||De!=="horizontal")return null;var dt=ge.props.children[0],tt=dt.props,Ct=tt.children,At=tt.title,Ht=tt.style,en=Object(ae.a)(tt,["children","title","style"]),Ge=Object(O.a)({},Ht),gt="".concat(ne,"-overflowed-indicator"),xt="".concat(ne,"-overflowed-indicator");le.length===0&&we!==!0?Ge=Object(O.a)(Object(O.a)({},Ge),{},{display:"none"}):we&&(Ge=Object(O.a)(Object(O.a)({},Ge),{},{visibility:"hidden",position:"absolute"}),gt="".concat(gt,"-placeholder"),xt="".concat(xt,"-placeholder"));var Lt=Fe?"".concat(Le,"-").concat(Fe):"",Ot={};return oe.forEach(function(Dt){en[Dt]!==void 0&&(Ot[Dt]=en[Dt])}),r.createElement(Me,Object.assign({title:Re,className:"".concat(Le,"-overflowed-submenu"),popupClassName:Lt},Ot,{key:gt,eventKey:xt,disabled:!1,style:Ge}),le)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var ne=ve.findDOMNode(Object(m.a)(ge));if(!ne)return;var le=ne.children;if(!le||le.length===0)return;var we=ne.children[le.length-1];X(we,"display","inline-block");var xe=ge.getMenuItemNodes(),Re=xe.filter(function(je){return je.className.split(" ").indexOf(ce)>=0});Re.forEach(function(je){X(je,"display","inline-block")}),ge.menuItemSizes=xe.map(function(je){return ee(je,!0)}),Re.forEach(function(je){X(je,"display","none")}),ge.overflowedIndicatorWidth=ee(ne.children[ne.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(je,De){return je+De},0),ge.handleResize(),X(we,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var ne=ve.findDOMNode(Object(m.a)(ge));if(!ne)return;var le=ee(ne);ge.overflowedItems=[];var we=0,xe;ge.originalTotalWidth>le+be&&(xe=-1,ge.menuItemSizes.forEach(function(Re){we+=Re,we+ge.overflowedIndicatorWidth<=le&&(xe+=1)})),ge.setState({lastVisibleIndex:xe})},ge}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){var ne=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var le=ve.findDOMNode(this);if(!le)return;this.resizeObserver=new W.default(function(we){we.forEach(function(){var xe=ne.cancelFrameId;cancelAnimationFrame(xe),ne.cancelFrameId=requestAnimationFrame(ne.setChildrenWidthAndResize)})}),[].slice.call(le.children).concat(le).forEach(function(we){ne.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ne.resizeObserver.disconnect(),[].slice.call(le.children).concat(le).forEach(function(we){ne.resizeObserver.observe(we)}),ne.setChildrenWidthAndResize()}),this.mutationObserver.observe(le,{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(ne){var le=this,we=this.state.lastVisibleIndex;return(ne||[]).reduce(function(xe,Re,je){var De=Re;if(le.props.mode==="horizontal"){var Le=le.getOverflowedSubMenuItem(Re.props.eventKey,[]);we!==void 0&&le.props.className.indexOf("".concat(le.props.prefixCls,"-root"))!==-1&&(je>we&&(De=r.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(ce)})),je===we+1&&(le.overflowedItems=ne.slice(we+1).map(function(dt){return r.cloneElement(dt,{key:dt.props.eventKey,mode:"vertical-left"})}),Le=le.getOverflowedSubMenuItem(Re.props.eventKey,le.overflowedItems)));var Fe=[].concat(Object(se.a)(xe),[Le,De]);return je===ne.length-1&&Fe.push(le.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Fe}return[].concat(Object(se.a)(xe),[De])},[])}},{key:"render",value:function(){var ne=this.props,le=ne.visible,we=ne.prefixCls,xe=ne.overflowedIndicator,Re=ne.mode,je=ne.level,De=ne.tag,Le=ne.children,Fe=ne.theme,dt=Object(ae.a)(ne,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=De;return r.createElement(tt,Object.assign({},dt),this.renderChildren(Le))}}]),Oe}(r.Component);Ae.defaultProps={tag:"div",className:""};var ye=Ae;function ke(ze){return ze.length?ze.every(function(Ce){return!!Ce.props.disabled}):!0}function Se(ze,Ce,Oe){var ge=ze.getState();ze.setState({activeKey:Object(O.a)(Object(O.a)({},ge.activeKey),{},Object(s.a)({},Ce,Oe))})}function Ne(ze){return ze.eventKey||"0-menu-"}function Ue(ze,Ce){var Oe=Ce,ge=ze.children,ne=ze.eventKey;if(Oe){var le;if(V(ge,function(we,xe){we&&we.props&&!we.props.disabled&&Oe===H(we,ne,xe)&&(le=!0)}),le)return Oe}return Oe=null,ze.defaultActiveFirst&&V(ge,function(we,xe){!Oe&&we&&!we.props.disabled&&(Oe=H(we,ne,xe))}),Oe}function $e(ze){if(ze){var Ce=this.instanceArray.indexOf(ze);Ce!==-1?this.instanceArray[Ce]=ze:this.instanceArray.push(ze)}}var We=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;return Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.onKeyDown=function(le,we){var xe=le.keyCode,Re;if(ne.getFlatInstanceArray().forEach(function(De){De&&De.props.active&&De.onKeyDown&&(Re=De.onKeyDown(le))}),Re)return 1;var je=null;return(xe===d.a.UP||xe===d.a.DOWN)&&(je=ne.step(xe===d.a.UP?-1:1)),je?(le.preventDefault(),Se(ne.props.store,Ne(ne.props),je.props.eventKey),typeof we=="function"&&we(je),1):void 0},ne.onItemHover=function(le){var we=le.key,xe=le.hover;Se(ne.props.store,Ne(ne.props),xe?we:null)},ne.onDeselect=function(le){ne.props.onDeselect(le)},ne.onSelect=function(le){ne.props.onSelect(le)},ne.onClick=function(le){ne.props.onClick(le)},ne.onOpenChange=function(le){ne.props.onOpenChange(le)},ne.onDestroy=function(le){ne.props.onDestroy(le)},ne.getFlatInstanceArray=function(){return ne.instanceArray},ne.step=function(le){var we=ne.getFlatInstanceArray(),xe=ne.props.store.getState().activeKey[Ne(ne.props)],Re=we.length;if(!Re)return null;le<0&&(we=we.concat().reverse());var je=-1;if(we.every(function(dt,tt){return dt&&dt.props.eventKey===xe?(je=tt,!1):!0}),!ne.props.defaultActiveFirst&&je!==-1&&ke(we.slice(je,Re-1)))return;var De=(je+1)%Re,Le=De;do{var Fe=we[Le];if(!Fe||Fe.props.disabled)Le=(Le+1)%Re;else return Fe}while(Le!==De);return null},ne.renderCommonMenuItem=function(le,we,xe){var Re=ne.props.store.getState(),je=Object(m.a)(ne),De=je.props,Le=H(le,De.eventKey,we),Fe=le.props;if(!Fe||typeof le.type=="string")return le;var dt=Le===Re.activeKey,tt=Object(O.a)(Object(O.a)({mode:Fe.mode||De.mode,level:De.level,inlineIndent:De.inlineIndent,renderMenuItem:ne.renderMenuItem,rootPrefixCls:De.prefixCls,index:we,parentMenu:De.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(le.ref,$e.bind(Object(m.a)(ne))),eventKey:Le,active:!Fe.disabled&&dt,multiple:De.multiple,onClick:function(At){(Fe.onClick||Y)(At),ne.onClick(At)},onItemHover:ne.onItemHover,motion:De.motion,subMenuOpenDelay:De.subMenuOpenDelay,subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,onOpenChange:ne.onOpenChange,onDeselect:ne.onDeselect,onSelect:ne.onSelect,builtinPlacements:De.builtinPlacements,itemIcon:Fe.itemIcon||ne.props.itemIcon,expandIcon:Fe.expandIcon||ne.props.expandIcon},xe),{},{direction:De.direction});return(De.mode==="inline"||q())&&(tt.triggerSubMenuAction="click"),r.cloneElement(le,tt)},ne.renderMenuItem=function(le,we,xe){if(!le)return null;var Re=ne.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:ne.props.triggerSubMenuAction,subMenuKey:xe};return ne.renderCommonMenuItem(le,we,je)},ge.store.setState({activeKey:Object(O.a)(Object(O.a)({},ge.store.getState().activeKey),{},Object(s.a)({},ge.eventKey,Ue(ge,ge.activeKey)))}),ne.instanceArray=[],ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ne){return this.props.visible||ne.visible||this.props.className!==ne.className||!b()(this.props.style,ne.style)}},{key:"componentDidUpdate",value:function(ne){var le=this.props,we="activeKey"in le?le.activeKey:le.store.getState().activeKey[Ne(le)],xe=Ue(le,we);if(xe!==we)Se(le.store,Ne(le),xe);else if("activeKey"in ne){var Re=Ue(ne,ne.activeKey);xe!==Re&&Se(le.store,Ne(le),xe)}}},{key:"render",value:function(){var ne=this,le=Object(l.a)({},this.props);this.instanceArray=[];var we=P()(le.prefixCls,le.className,"".concat(le.prefixCls,"-").concat(le.mode)),xe={className:we,role:le.role||"menu"};le.id&&(xe.id=le.id),le.focusable&&(xe.tabIndex=0,xe.onKeyDown=this.onKeyDown);var Re=le.prefixCls,je=le.eventKey,De=le.visible,Le=le.level,Fe=le.mode,dt=le.overflowedIndicator,tt=le.theme;return oe.forEach(function(Ct){return delete le[Ct]}),delete le.onClick,r.createElement(ye,Object.assign({},le,{prefixCls:Re,mode:Fe,tag:"ul",level:Le,theme:tt,visible:De,overflowedIndicator:dt},xe),r.Children.map(le.children,function(Ct,At){return ne.renderMenuItem(Ct,At,je||"0-menu-")}))}}]),Oe}(r.Component);We.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var nt=Object(e.b)()(We),et=nt,Xe=t("Kwbf");function st(ze,Ce,Oe){var ge=ze.prefixCls,ne=ze.motion,le=ze.defaultMotions,we=le===void 0?{}:le,xe=ze.openAnimation,Re=ze.openTransitionName,je=Ce.switchingModeFromInline;if(ne)return ne;if(Object(I.a)(xe)==="object"&&xe)Object(Xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof xe=="string")return{motionName:"".concat(ge,"-open-").concat(xe)};if(Re)return{motionName:Re};var De=we[Oe];return De||(je?null:we.other)}var ut=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.inlineOpenKeys=[],ne.onSelect=function(xe){var Re=Object(m.a)(ne),je=Re.props;if(je.selectable){var De=ne.store.getState(),Le=De.selectedKeys,Fe=xe.key;je.multiple?Le=Le.concat([Fe]):Le=[Fe],"selectedKeys"in je||ne.store.setState({selectedKeys:Le}),je.onSelect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Le}))}},ne.onClick=function(xe){var Re=ne.getRealMenuMode(),je=Object(m.a)(ne),De=je.store,Le=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in ne.props)&&(De.setState({openKeys:[]}),Le([])),ne.props.onClick(xe)},ne.onKeyDown=function(xe,Re){ne.innerMenu.getWrappedInstance().onKeyDown(xe,Re)},ne.onOpenChange=function(xe){var Re=Object(m.a)(ne),je=Re.props,De=ne.store.getState().openKeys.concat(),Le=!1,Fe=function(tt){var Ct=!1;if(tt.open)Ct=De.indexOf(tt.key)===-1,Ct&&De.push(tt.key);else{var At=De.indexOf(tt.key);Ct=At!==-1,Ct&&De.splice(At,1)}Le=Le||Ct};Array.isArray(xe)?xe.forEach(Fe):Fe(xe),Le&&("openKeys"in ne.props||ne.store.setState({openKeys:De}),je.onOpenChange(De))},ne.onDeselect=function(xe){var Re=Object(m.a)(ne),je=Re.props;if(je.selectable){var De=ne.store.getState().selectedKeys.concat(),Le=xe.key,Fe=De.indexOf(Le);Fe!==-1&&De.splice(Fe,1),"selectedKeys"in je||ne.store.setState({selectedKeys:De}),je.onDeselect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:De}))}},ne.onMouseEnter=function(xe){ne.restoreModeVerticalFromInline();var Re=ne.props.onMouseEnter;Re&&Re(xe)},ne.onTransitionEnd=function(xe){var Re=xe.propertyName==="width"&&xe.target===xe.currentTarget,je=xe.target.className,De=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,Le=xe.propertyName==="font-size"&&De.indexOf("anticon")>=0;(Re||Le)&&ne.restoreModeVerticalFromInline()},ne.setInnerMenu=function(xe){ne.innerMenu=xe},ne.isRootMenu=!0;var le=ge.defaultSelectedKeys,we=ge.defaultOpenKeys;return"selectedKeys"in ge&&(le=ge.selectedKeys||[]),"openKeys"in ge&&(we=ge.openKeys||[]),ne.store=Object(e.c)({selectedKeys:le,openKeys:we,activeKey:{"0-menu-":Ue(ge,ge.activeKey)}}),ne.state={switchingModeFromInline:!1},ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ne){this.updateOpentKeysWhenSwitchMode(ne),this.updateMiniStore();var le=this.props,we=le.siderCollapsed,xe=le.inlineCollapsed,Re=le.onOpenChange;(!ne.inlineCollapsed&&xe||!ne.siderCollapsed&&we)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ne){var le=this.props,we=this.store,xe=this.inlineOpenKeys,Re=we.getState(),je={};ne.mode==="inline"&&le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in le||((le.inlineCollapsed&&!ne.inlineCollapsed||le.siderCollapsed&&!ne.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!le.inlineCollapsed&&ne.inlineCollapsed||!le.siderCollapsed&&ne.siderCollapsed)&&(je.openKeys=xe,this.inlineOpenKeys=[])),Object.keys(je).length&&we.setState(je)}},{key:"updateMenuDisplay",value:function(){var ne=this.props.collapsedWidth,le=this.store,we=this.prevOpenKeys,xe=this.getInlineCollapsed()&&(ne===0||ne==="0"||ne==="0px");xe?(this.prevOpenKeys=le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ne=this.props.mode,le=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return le&&we?"inline":we?"vertical":ne}},{key:"getInlineCollapsed",value:function(){var ne=this.props,le=ne.inlineCollapsed,we=ne.siderCollapsed;return we!==void 0?we:le}},{key:"restoreModeVerticalFromInline",value:function(){var ne=this.state.switchingModeFromInline;ne&&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 ne=Object(O.a)({},Object(i.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),le=this.getRealMenuMode();return ne.className+=" ".concat(ne.prefixCls,"-root"),ne.direction==="rtl"&&(ne.className+=" ".concat(ne.prefixCls,"-rtl")),ne=Object(O.a)(Object(O.a)({},ne),{},{mode:le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:st(this.props,this.state,le)}),delete ne.openAnimation,delete ne.openTransitionName,r.createElement(e.a,{store:this.store},r.createElement(et,Object.assign({},ne,{ref:this.setInnerMenu}),this.props.children))}}]),Oe}(r.Component);ut.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ct=ut,Ze=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.onKeyDown=function(ne){var le=ne.keyCode;return le===d.a.ENTER?(ge.onClick(ne),!0):void 0},ge.onMouseLeave=function(ne){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseLeave;xe({key:we,hover:!1}),Re({key:we,domEvent:ne})},ge.onMouseEnter=function(ne){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseEnter;xe({key:we,hover:!0}),Re({key:we,domEvent:ne})},ge.onClick=function(ne){var le=ge.props,we=le.eventKey,xe=le.multiple,Re=le.onClick,je=le.onSelect,De=le.onDeselect,Le=le.isSelected,Fe={key:we,keyPath:[we],item:Object(m.a)(ge),domEvent:ne};Re(Fe),xe?Le?De(Fe):je(Fe):Le||je(Fe)},ge.saveNode=function(ne){ge.node=ne},ge}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ne=this.props;ne.onDestroy&&ne.onDestroy(ne.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 ne,le=Object(O.a)({},this.props),we=P()(this.getPrefixCls(),le.className,(ne={},Object(s.a)(ne,this.getActiveClassName(),!le.disabled&&le.active),Object(s.a)(ne,this.getSelectedClassName(),le.isSelected),Object(s.a)(ne,this.getDisabledClassName(),le.disabled),ne)),xe=Object(O.a)(Object(O.a)({},le.attribute),{},{title:typeof le.title=="string"?le.title:void 0,className:we,role:le.role||"menuitem","aria-disabled":le.disabled});le.role==="option"?xe=Object(O.a)(Object(O.a)({},xe),{},{role:"option","aria-selected":le.isSelected}):(le.role===null||le.role==="none")&&(xe.role="none");var Re={onClick:le.disabled?null:this.onClick,onMouseLeave:le.disabled?null:this.onMouseLeave,onMouseEnter:le.disabled?null:this.onMouseEnter},je=Object(O.a)({},le.style);le.mode==="inline"&&(le.direction==="rtl"?je.paddingRight=le.inlineIndent*le.level:je.paddingLeft=le.inlineIndent*le.level),oe.forEach(function(Le){return delete le[Le]}),delete le.direction;var De=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(De=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object.assign({},Object(i.default)(le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),xe,Re,{style:je,ref:this.saveNode}),le.children,De)}}]),Oe}(r.Component);Ze.isMenuItem=!0,Ze.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var bt=Object(e.b)(function(ze,Ce){var Oe=ze.activeKey,ge=ze.selectedKeys,ne=Ce.eventKey,le=Ce.subMenuKey;return{active:Oe[le]===ne,isSelected:ge.indexOf(ne)!==-1}})(Ze),lt=bt,Et=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.renderInnerMenuItem=function(ne){var le=ge.props,we=le.renderMenuItem,xe=le.index;return we(ne,xe,ge.props.subMenuKey)},ge}return Object(p.a)(Oe,[{key:"render",value:function(){var ne=Object(l.a)({},this.props),le=ne.className,we=le===void 0?"":le,xe=ne.rootPrefixCls,Re="".concat(xe,"-item-group-title"),je="".concat(xe,"-item-group-list"),De=ne.title,Le=ne.children;return oe.forEach(function(Fe){return delete ne[Fe]}),delete ne.onClick,delete ne.direction,r.createElement("li",Object.assign({},ne,{className:"".concat(we," ").concat(xe,"-item-group")}),r.createElement("div",{className:Re,title:typeof De=="string"?De:void 0},De),r.createElement("ul",{className:je},r.Children.map(Le,this.renderInnerMenuItem)))}}]),Oe}(r.Component);Et.isMenuItemGroup=!0,Et.defaultProps={disabled:!0};var jt=Et,Qt=function(Ce){var Oe=Ce.className,ge=Ce.rootPrefixCls,ne=Ce.style;return r.createElement("li",{className:"".concat(Oe," ").concat(ge,"-item-divider"),style:ne})};Qt.defaultProps={disabled:!0,className:"",style:{}};var Gt=Qt,rn=w.e=ct},"1sBl":function(ie,w,t){var O=t("e/Dd").getSymbolSize;w.getRowColCoords=function(p){if(p===1)return[];for(var m=Math.floor(p/7)+2,u=O(p),a=u===145?26:Math.ceil((u-13)/(2*m-2))*2,r=[u-7],e=1;eQ&&A>c&&A>n&&A>k||A1&&D(),J=e.cubicAt(Q,c,n,k,b[0]),K>1&&(Z=e.cubicAt(Q,c,n,k,b[1]))),K===2?HQ&&k>c&&k>n||k=0&&A<=1){for(var U=0,_=e.quadraticAt(Q,c,n,A),K=0;KM||k<-M)return 0;var N=Math.sqrt(M*M-k*k);y[0]=-N,y[1]=N;var A=Math.abs(c-o);if(A<1e-4)return 0;if(A%s<1e-4){c=0,o=s;var U=n?1:-1;return B>=y[0]+j&&B<=y[1]+j?U:0}if(n){var N=c;c=r(o),o=r(N)}else c=r(c),o=r(o);c>o&&(o+=s);for(var _=0,K=0;K<2;K++){var J=y[K];if(J+j>B){var Z=Math.atan2(k,J),U=n?1:-1;Z<0&&(Z=s+Z),(Z>=c&&Z<=o||Z+s>=c&&Z+s<=o)&&(Z>Math.PI/2&&Z1&&(M||(n+=i(B,k,N,A,c,o))),U===1&&(B=j[U],k=j[U+1],N=B,A=k);switch(_){case l.M:N=j[U++],A=j[U++],B=N,k=A;break;case l.L:if(M){if(f.containStroke(B,k,j[U],j[U+1],Q,c,o))return!0}else n+=i(B,k,j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.C:if(M){if(p.containStroke(B,k,j[U++],j[U++],j[U++],j[U++],j[U],j[U+1],Q,c,o))return!0}else n+=P(B,k,j[U++],j[U++],j[U++],j[U++],j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.Q:if(M){if(m.containStroke(B,k,j[U++],j[U++],j[U],j[U+1],Q,c,o))return!0}else n+=I(B,k,j[U++],j[U++],j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.A:var K=j[U++],J=j[U++],Z=j[U++],Y=j[U++],H=j[U++],x=j[U++];U+=1;var V=1-j[U++],G=Math.cos(H)*Z+K,oe=Math.sin(H)*Y+J;U>1?n+=i(B,k,G,oe,c,o):(N=G,A=oe);var ee=(c-K)*Y/Z+K;if(M){if(u.containStroke(K,J,Y,H,H+x,V,Q,ee,o))return!0}else n+=v(K,J,Y,H,H+x,V,ee,o);B=Math.cos(H+x)*Z+K,k=Math.sin(H+x)*Y+J;break;case l.R:N=B=j[U++],A=k=j[U++];var X=j[U++],q=j[U++],G=N+X,oe=A+q;if(M){if(f.containStroke(N,A,G,A,Q,c,o)||f.containStroke(G,A,G,oe,Q,c,o)||f.containStroke(G,oe,N,oe,Q,c,o)||f.containStroke(N,oe,N,A,Q,c,o))return!0}else n+=i(G,A,G,oe,c,o),n+=i(N,oe,N,A,c,o);break;case l.Z:if(M){if(f.containStroke(B,k,N,A,Q,c,o))return!0}else n+=i(B,k,N,A,c,o);B=N,k=A;break}}return!M&&!g(k,A)&&(n+=i(B,k,N,A,c,o)||0),n!==0}function h(j,Q,M){return E(j,0,!1,Q,M)}function T(j,Q,M,c){return E(j,Q,!0,M,c)}w.contain=h,w.containStroke=T},"2fw6":function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(p,m,u){u&&p.moveTo(m.cx+m.r,m.cy),p.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});ie.exports=f},"3C/r":function(ie,w){var t=function(f,p){this.image=f,this.repeat=p,this.type="pattern"};t.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var O=t;ie.exports=O},"3CBa":function(ie,w,t){var O=t("hydK"),f=O.createElement,p=t("bYtY"),m=t("SUKs"),u=t("y+Vt"),a=t("Dagg"),r=t("dqUG"),e=t("DBLp"),i=t("sW+o"),l=t("n6Mw"),s=t("vKoX"),d=t("P47w"),g=d.path,y=d.image,b=d.text;function D(o){return parseInt(o,10)}function P(o){return o instanceof u?g:o instanceof a?y:o instanceof r?b:g}function I(o,n){return n&&o&&n.parentNode!==o}function v(o,n,B){if(I(o,n)&&B){var k=B.nextSibling;k?o.insertBefore(n,k):o.appendChild(n)}}function E(o,n){if(I(o,n)){var B=o.firstChild;B?o.insertBefore(n,B):o.appendChild(n)}}function h(o,n){n&&o&&n.parentNode===o&&o.removeChild(n)}function T(o){return o.__textSvgEl}function j(o){return o.__svgEl}var Q=function(o,n,B,k){this.root=o,this.storage=n,this._opts=B=p.extend({},B||{});var N=f("svg");N.setAttribute("xmlns","http://www.w3.org/2000/svg"),N.setAttribute("version","1.1"),N.setAttribute("baseProfile","full"),N.style.cssText="user-select:none;position:absolute;left:0;top:0;";var A=f("g");N.appendChild(A);var U=f("g");N.appendChild(U),this.gradientManager=new i(k,U),this.clipPathManager=new l(k,U),this.shadowManager=new s(k,U);var _=document.createElement("div");_.style.cssText="overflow:hidden;position:relative",this._svgDom=N,this._svgRoot=U,this._backgroundRoot=A,this._viewport=_,o.appendChild(_),_.appendChild(N),this.resize(B.width,B.height),this._visibleList=[]};Q.prototype={constructor:Q,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=f("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=o,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var n=this._svgRoot,B=this._visibleList,k=o.length,N=[],A;for(A=0;A=0;--U)if(A[U]===N)return!0;return!1}),B}else return null;else return B[0]},resize:function(o,n){var B=this._viewport;B.style.display="none";var k=this._opts;if(o!=null&&(k.width=o),n!=null&&(k.height=n),o=this._getSize(0),n=this._getSize(1),B.style.display="",this._width!==o||this._height!==n){this._width=o,this._height=n;var N=B.style;N.width=o+"px",N.height=n+"px";var A=this._svgDom;A.setAttribute("width",o),A.setAttribute("height",n)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",n))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var n=this._opts,B=["width","height"][o],k=["clientWidth","clientHeight"][o],N=["paddingLeft","paddingTop"][o],A=["paddingRight","paddingBottom"][o];if(n[B]!=null&&n[B]!=="auto")return parseFloat(n[B]);var U=this.root,_=document.defaultView.getComputedStyle(U);return(U[k]||D(_[B])||D(U.style[B]))-(D(_[N])||0)-(D(_[A])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function M(o){return function(){m('In SVG mode painter not support method "'+o+'"')}}p.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){Q.prototype[o]=M(o)});var c=Q;ie.exports=c},"3X7Y":function(ie,w,t){var O=t("u/Db");function f(p){this.mode=O.NUMERIC,this.data=p.toString()}f.getBitsLength=function(m){return 10*Math.floor(m/3)+(m%3?m%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(m){var u,a,r;for(u=0;u+3<=this.data.length;u+=3)a=this.data.substr(u,3),r=parseInt(a,10),m.put(r,10);var e=this.data.length-u;e>0&&(a=this.data.substr(u),r=parseInt(a,10),m.put(r,e*3+1))},ie.exports=f},"3e3G":function(ie,w,t){var O=t("bYtY"),f=t("QuXc"),p=function(u,a,r,e,i){this.x=u==null?.5:u,this.y=a==null?.5:a,this.r=r==null?.5:r,this.type="radial",this.global=i||!1,f.call(this,e)};p.prototype={constructor:p},O.inherits(p,f);var m=p;ie.exports=m},"3gBT":function(ie,w){var t=2311;function O(){return t++}ie.exports=O},"49sm":function(ie,w){var t={}.toString;ie.exports=Array.isArray||function(O){return t.call(O)=="[object Array]"}},"4fz+":function(ie,w,t){var O=t("bYtY"),f=t("1bdT"),p=t("mFDi"),m=function(a){a=a||{},f.call(this,a);for(var r in a)a.hasOwnProperty(r)&&(this[r]=a[r]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(a){return this._children[a]},childOfName:function(a){for(var r=this._children,e=0;e=0&&(e.splice(i,0,a),this._doAdd(a))}return this},_doAdd:function(a){a.parent&&a.parent.remove(a),a.parent=this;var r=this.__storage,e=this.__zr;r&&r!==a.__storage&&(r.addToStorage(a),a instanceof m&&a.addChildrenToStorage(r)),e&&e.refresh()},remove:function(a){var r=this.__zr,e=this.__storage,i=this._children,l=O.indexOf(i,a);return l<0?this:(i.splice(l,1),a.parent=null,e&&(e.delFromStorage(a),a instanceof m&&a.delChildrenFromStorage(e)),r&&r.refresh(),this)},removeAll:function(){var a=this._children,r=this.__storage,e,i;for(i=0;i1e-4){M[0]=I-E,M[1]=v-h,c[0]=I+E,c[1]=v+h;return}if(e[0]=a(T)*E+I,e[1]=u(T)*h+v,i[0]=a(j)*E+I,i[1]=u(j)*h+v,o(M,e,i),n(c,e,i),T=T%r,T<0&&(T=T+r),j=j%r,j<0&&(j=j+r),T>j&&!Q?j+=r:TT&&(l[0]=a(N)*E+I,l[1]=u(N)*h+v,o(M,l,M),n(c,l,c))}w.fromPoints=s,w.fromLine=d,w.fromCubic=b,w.fromQuadratic=D,w.fromArc=P},"4qgm":function(ie,w){ie.exports="data:image/png;base64,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"},"4u4S":function(ie,w){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"532y":function(ie,w,t){ie.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"59Ip":function(ie,w,t){var O=t("Sj9i");function f(p,m,u,a,r,e,i,l,s,d,g){if(s===0)return!1;var y=s;if(g>m+y&&g>a+y&&g>e+y&&g>l+y||gp+y&&d>u+y&&d>r+y&&d>i+y||d=0||N.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;o.setState({goInputText:""}),_(o.getValidValue())},o.go=function(N){var A=o.state.goInputText;if(A==="")return;(N.keyCode===y.ENTER||N.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(u.a)(c,[{key:"getValidValue",value:function(){var n=this.state,B=n.goInputText,k=n.current;return!B||isNaN(B)?k:Number(B)}},{key:"getPageSizeOptions",value:function(){var n=this.props,B=n.pageSize,k=n.pageSizeOptions;return k.some(function(N){return N.toString()===B.toString()})?k:k.concat([B.toString()]).sort(function(N,A){var U=isNaN(Number(N))?0:Number(N),_=isNaN(Number(A))?0:Number(A);return U-_})}},{key:"render",value:function(){var n=this,B=this.props,k=B.pageSize,N=B.locale,A=B.rootPrefixCls,U=B.changeSize,_=B.quickGo,K=B.goButton,J=B.selectComponentClass,Z=B.buildOptionText,Y=B.selectPrefixCls,H=B.disabled,x=this.state.goInputText,V="".concat(A,"-options"),G=J,oe=null,ee=null,X=null;if(!U&&!_)return null;var q=this.getPageSizeOptions();if(U&&G){var se=q.map(function(ae,ve){return i.a.createElement(G.Option,{key:ve,value:ae.toString()},(Z||n.buildOptionText)(ae))});oe=i.a.createElement(G,{disabled:H,prefixCls:Y,showSearch:!1,className:"".concat(V,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},se)}return _&&(K&&(X=typeof K=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:H,className:"".concat(V,"-quick-jumper-button")},N.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),ee=i.a.createElement("div",{className:"".concat(V,"-quick-jumper")},N.jump_to,i.a.createElement("input",{disabled:H,type:"text",value:x,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,X)),i.a.createElement("li",{className:"".concat(V)},oe,ee)}}]),c}(i.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var D=b,P=t("N2Kk");function I(){}function v(Q){return typeof Q=="number"&&isFinite(Q)&&Math.floor(Q)===Q}function E(Q,M,c){return c}function h(Q,M,c){var o=typeof Q=="undefined"?M.pageSize:Q;return Math.floor((c.total-1)/o)+1}var T=function(Q){Object(a.a)(c,Q);var M=Object(r.a)(c);function c(o){var n;Object(m.a)(this,c),n=M.call(this,o),n.getJumpPrevPage=function(){return Math.max(1,n.state.current-(n.props.showLessItems?3:5))},n.getJumpNextPage=function(){return Math.min(h(void 0,n.state,n.props),n.state.current+(n.props.showLessItems?3:5))},n.getItemIcon=function(U,_){var K=n.props.prefixCls,J=U||i.a.createElement("button",{type:"button","aria-label":_,className:"".concat(K,"-item-link")});return typeof U=="function"&&(J=i.a.createElement(U,Object(p.a)({},n.props))),J},n.savePaginationNode=function(U){n.paginationNode=U},n.isValid=function(U){return v(U)&&U!==n.state.current},n.shouldDisplayQuickJumper=function(){var U=n.props,_=U.showQuickJumper,K=U.pageSize,J=U.total;return J<=K?!1:_},n.handleKeyDown=function(U){(U.keyCode===y.ARROW_UP||U.keyCode===y.ARROW_DOWN)&&U.preventDefault()},n.handleKeyUp=function(U){var _=n.getValidValue(U),K=n.state.currentInputValue;_!==K&&n.setState({currentInputValue:_}),U.keyCode===y.ENTER?n.handleChange(_):U.keyCode===y.ARROW_UP?n.handleChange(_-1):U.keyCode===y.ARROW_DOWN&&n.handleChange(_+1)},n.changePageSize=function(U){var _=n.state.current,K=h(U,n.state,n.props);_=_>K?K:_,K===0&&(_=n.state.current),typeof U=="number"&&("pageSize"in n.props||n.setState({pageSize:U}),"current"in n.props||n.setState({current:_,currentInputValue:_})),n.props.onShowSizeChange(_,U),"onChange"in n.props&&n.props.onChange&&n.props.onChange(_,U)},n.handleChange=function(U){var _=n.props.disabled,K=U;if(n.isValid(K)&&!_){var J=h(void 0,n.state,n.props);K>J?K=J:K<1&&(K=1),"current"in n.props||n.setState({current:K,currentInputValue:K});var Z=n.state.pageSize;return n.props.onChange(K,Z),K}return n.state.current},n.prev=function(){n.hasPrev()&&n.handleChange(n.state.current-1)},n.next=function(){n.hasNext()&&n.handleChange(n.state.current+1)},n.jumpPrev=function(){n.handleChange(n.getJumpPrevPage())},n.jumpNext=function(){n.handleChange(n.getJumpNextPage())},n.hasPrev=function(){return n.state.current>1},n.hasNext=function(){return n.state.current2?K-2:0),Z=2;Z=k?A=k:A=Number(B),A}},{key:"getShowSizeChanger",value:function(){var n=this.props,B=n.showSizeChanger,k=n.total,N=n.totalBoundaryShowSizeChanger;return typeof B!="undefined"?B:k>N}},{key:"renderPrev",value:function(n){var B=this.props,k=B.prevIcon,N=B.itemRender,A=N(n,"prev",this.getItemIcon(k,"prev page")),U=!this.hasPrev();return Object(e.isValidElement)(A)?Object(e.cloneElement)(A,{disabled:U}):A}},{key:"renderNext",value:function(n){var B=this.props,k=B.nextIcon,N=B.itemRender,A=N(n,"next",this.getItemIcon(k,"next page")),U=!this.hasNext();return Object(e.isValidElement)(A)?Object(e.cloneElement)(A,{disabled:U}):A}},{key:"render",value:function(){var n=this,B=this.props,k=B.prefixCls,N=B.className,A=B.style,U=B.disabled,_=B.hideOnSinglePage,K=B.total,J=B.locale,Z=B.showQuickJumper,Y=B.showLessItems,H=B.showTitle,x=B.showTotal,V=B.simple,G=B.itemRender,oe=B.showPrevNextJumpers,ee=B.jumpPrevIcon,X=B.jumpNextIcon,q=B.selectComponentClass,se=B.selectPrefixCls,ae=B.pageSizeOptions,ve=this.state,W=ve.current,re=ve.pageSize,R=ve.currentInputValue;if(_===!0&&K<=re)return null;var $=h(void 0,this.state,this.props),fe=[],F=null,C=null,S=null,z=null,te=null,de=Z&&Z.goButton,he=Y?1:2,Me=W-1>0?W-1:0,ce=W+1<$?W+1:$,be=Object.keys(this.props).reduce(function(ut,ct){return(ct.substr(0,5)==="data-"||ct.substr(0,5)==="aria-"||ct==="role")&&(ut[ct]=n.props[ct]),ut},{});if(V)return de&&(typeof de=="boolean"?te=i.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},J.jump_to_confirm):te=i.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de),te=i.a.createElement("li",{title:H?"".concat(J.jump_to).concat(W,"/").concat($):null,className:"".concat(k,"-simple-pager")},te)),i.a.createElement("ul",Object(O.a)({className:s()(k,"".concat(k,"-simple"),Object(f.a)({},"".concat(k,"-disabled"),U),N),style:A,ref:this.savePaginationNode},be),i.a.createElement("li",{title:H?J.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:s()("".concat(k,"-prev"),Object(f.a)({},"".concat(k,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Me)),i.a.createElement("li",{title:H?"".concat(W,"/").concat($):null,className:"".concat(k,"-simple-pager")},i.a.createElement("input",{type:"text",value:R,disabled:U,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),i.a.createElement("span",{className:"".concat(k,"-slash")},"/"),$),i.a.createElement("li",{title:H?J.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:s()("".concat(k,"-next"),Object(f.a)({},"".concat(k,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ce)),te);if($<=3+he*2){var Ae={locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:H,itemRender:G};$||fe.push(i.a.createElement(g,Object(O.a)({},Ae,{key:"noPager",page:$,className:"".concat(k,"-disabled")})));for(var ye=1;ye<=$;ye+=1){var ke=W===ye;fe.push(i.a.createElement(g,Object(O.a)({},Ae,{key:ye,page:ye,active:ke})))}}else{var Se=Y?J.prev_3:J.prev_5,Ne=Y?J.next_3:J.next_5;oe&&(F=i.a.createElement("li",{title:H?Se:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:s()("".concat(k,"-jump-prev"),Object(f.a)({},"".concat(k,"-jump-prev-custom-icon"),!!ee))},G(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ee,"prev page"))),C=i.a.createElement("li",{title:H?Ne:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:s()("".concat(k,"-jump-next"),Object(f.a)({},"".concat(k,"-jump-next-custom-icon"),!!X))},G(this.getJumpNextPage(),"jump-next",this.getItemIcon(X,"next page")))),z=i.a.createElement(g,{locale:J,last:!0,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$,page:$,active:!1,showTitle:H,itemRender:G}),S=i.a.createElement(g,{locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:H,itemRender:G});var Ue=Math.max(1,W-he),$e=Math.min(W+he,$);W-1<=he&&($e=1+he*2),$-W<=he&&(Ue=$-he*2);for(var We=Ue;We<=$e;We+=1){var nt=W===We;fe.push(i.a.createElement(g,{locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:We,page:We,active:nt,showTitle:H,itemRender:G}))}W-1>=he*2&&W!==1+2&&(fe[0]=Object(e.cloneElement)(fe[0],{className:"".concat(k,"-item-after-jump-prev")}),fe.unshift(F)),$-W>=he*2&&W!==$-2&&(fe[fe.length-1]=Object(e.cloneElement)(fe[fe.length-1],{className:"".concat(k,"-item-before-jump-next")}),fe.push(C)),Ue!==1&&fe.unshift(S),$e!==$&&fe.push(z)}var et=null;x&&(et=i.a.createElement("li",{className:"".concat(k,"-total-text")},x(K,[K===0?0:(W-1)*re+1,W*re>K?K:W*re])));var Xe=!this.hasPrev()||!$,st=!this.hasNext()||!$;return i.a.createElement("ul",Object(O.a)({className:s()(k,N,Object(f.a)({},"".concat(k,"-disabled"),U)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},be),et,i.a.createElement("li",{title:H?J.prev_page:null,onClick:this.prev,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterPrev,className:s()("".concat(k,"-prev"),Object(f.a)({},"".concat(k,"-disabled"),Xe)),"aria-disabled":Xe},this.renderPrev(Me)),fe,i.a.createElement("li",{title:H?J.next_page:null,onClick:this.next,tabIndex:st?null:0,onKeyPress:this.runIfEnterNext,className:s()("".concat(k,"-next"),Object(f.a)({},"".concat(k,"-disabled"),st)),"aria-disabled":st},this.renderNext(ce)),i.a.createElement(D,{disabled:U,locale:J,rootPrefixCls:k,selectComponentClass:q,selectPrefixCls:se,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:W,pageSize:re,pageSizeOptions:ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(n,B){var k={};if("current"in n&&(k.current=n.current,n.current!==B.current&&(k.currentInputValue=k.current)),"pageSize"in n&&n.pageSize!==B.pageSize){var N=B.current,A=h(n.pageSize,B,n);N=N>A?A:N,"current"in n||(k.current=N,k.currentInputValue=N),k.pageSize=n.pageSize}return k}}]),c}(i.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:I,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:I,locale:P.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var j=T},"6GrX":function(ie,w,t){var O=t("mFDi"),f=t("Xnb7"),p=t("bYtY"),m=p.getContext,u=p.extend,a=p.retrieve2,r=p.retrieve3,e=p.trim,i={},l=0,s=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",y={};function b(_,K){y[_]=K}function D(_,K){K=K||g;var J=_+":"+K;if(i[J])return i[J];for(var Z=(_+"").split(` -`),Y=0,H=0,x=Z.length;Hs&&(l=0,i={}),l++,i[J]=Y,Y}function P(_,K,J,Z,Y,H,x,V){return x?v(_,K,J,Z,Y,H,x,V):I(_,K,J,Z,Y,H,V)}function I(_,K,J,Z,Y,H,x){var V=k(_,K,Y,H,x),G=D(_,K);Y&&(G+=Y[1]+Y[3]);var oe=V.outerHeight,ee=E(0,G,J),X=h(0,oe,Z),q=new O(ee,X,G,oe);return q.lineHeight=V.lineHeight,q}function v(_,K,J,Z,Y,H,x,V){var G=N(_,{rich:x,truncate:V,font:K,textAlign:J,textPadding:Y,textLineHeight:H}),oe=G.outerWidth,ee=G.outerHeight,X=E(0,oe,J),q=h(0,ee,Z);return new O(X,q,oe,ee)}function E(_,K,J){return J==="right"?_-=K:J==="center"&&(_-=K/2),_}function h(_,K,J){return J==="middle"?_-=K/2:J==="bottom"&&(_-=K),_}function T(_,K,J){var Z=K.textPosition,Y=K.textDistance,H=J.x,x=J.y;Y=Y||0;var V=J.height,G=J.width,oe=V/2,ee="left",X="top";switch(Z){case"left":H-=Y,x+=oe,ee="right",X="middle";break;case"right":H+=Y+G,x+=oe,X="middle";break;case"top":H+=G/2,x-=Y,ee="center",X="bottom";break;case"bottom":H+=G/2,x+=V+Y,ee="center";break;case"inside":H+=G/2,x+=oe,ee="center",X="middle";break;case"insideLeft":H+=Y,x+=oe,X="middle";break;case"insideRight":H+=G-Y,x+=oe,ee="right",X="middle";break;case"insideTop":H+=G/2,x+=Y,ee="center";break;case"insideBottom":H+=G/2,x+=V-Y,ee="center",X="bottom";break;case"insideTopLeft":H+=Y,x+=Y;break;case"insideTopRight":H+=G-Y,x+=Y,ee="right";break;case"insideBottomLeft":H+=Y,x+=V-Y,X="bottom";break;case"insideBottomRight":H+=G-Y,x+=V-Y,ee="right",X="bottom";break}return _=_||{},_.x=H,_.y=x,_.textAlign=ee,_.textVerticalAlign=X,_}function j(_,K,J){var Z={textPosition:_,textDistance:J};return T({},Z,K)}function Q(_,K,J,Z,Y){if(!K)return"";var H=(_+"").split(` +(window.webpackJsonp=window.webpackJsonp||[]).push([[43,3,6,8,9,16],{"+QRC":function(ie,w,t){"use strict";var O=t("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},p="Copy to clipboard: #{key}, Enter";function m(a){var r=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,r)}function u(a,r){var e,i,l,s,d,g,y=!1;r||(r={}),e=r.debug||!1;try{l=O(),s=document.createRange(),d=document.getSelection(),g=document.createElement("span"),g.textContent=a,g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(T){if(T.stopPropagation(),r.format)if(T.preventDefault(),typeof T.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=f[r.format]||f.default;window.clipboardData.setData(P,a)}else T.clipboardData.clearData(),T.clipboardData.setData(r.format,a);r.onCopy&&(T.preventDefault(),r.onCopy(T.clipboardData))}),document.body.appendChild(g),s.selectNodeContents(g),d.addRange(s);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(T){e&&console.error("unable to copy using execCommand: ",T),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",a),r.onCopy&&r.onCopy(window.clipboardData),y=!0}catch(P){e&&console.error("unable to copy using clipboardData: ",P),e&&console.error("falling back to prompt"),i=m("message"in r?r.message:p),window.prompt(i,a)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(s):d.removeAllRanges()),g&&document.body.removeChild(g),l()}return y}ie.exports=u},"/GNS":function(ie,w,t){ie.exports=t.p+"static/search1.c4136dd4.png"},"06Qe":function(ie,w,t){var O=t("ItGF"),f="urn:schemas-microsoft-com:vml",p=typeof window=="undefined"?null:window,m=!1,u=p&&p.document;function a(i){return r(i)}var r;if(u&&!O.canvasSupported)try{!u.namespaces.zrvml&&u.namespaces.add("zrvml",f),r=function(i){return u.createElement("')}}catch(i){r=function(l){return u.createElement("<"+l+' xmlns="'+f+'" class="zrvml">')}}function e(){if(m||!u)return;m=!0;var i=u.styleSheets;i.length<31?u.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}w.doc=u,w.createNode=a,w.initVML=e},"0FX9":function(ie,w,t){var O=t("Z92M"),f=t("qmMu"),p=t("QUaw"),m=t("QAZZ");function u(a,r,e,i,l){var s=[].slice.call(arguments,1),d=s.length,g=typeof s[d-1]=="function";if(!g&&!O())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(l=e,e=r,r=i=void 0):d===3&&(r.getContext&&typeof l=="undefined"?(l=i,i=void 0):(l=i,i=e,e=r,r=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(e=r,r=i=void 0):d===2&&!r.getContext&&(i=e,e=r,r=void 0),new Promise(function(b,T){try{var P=f.create(e,i);b(a(P,r,i))}catch(I){T(I)}})}try{var y=f.create(e,i);l(null,a(y,r,i))}catch(b){l(b)}}w.create=f.create,w.toCanvas=u.bind(null,p.render),w.toDataURL=u.bind(null,p.renderToDataURL),w.toString=u.bind(null,function(a,r,e){return m.render(a,e)})},"0s+r":function(ie,w,t){var O=t("bYtY"),f=t("QBsz"),p=t("y23F"),m=t("H6uX"),u=t("YH21"),a=t("C0SR"),r="silent";function e(T,P,I){return{type:T,event:I,target:P.target,topTarget:P.topTarget,cancelBubble:!1,offsetX:I.zrX,offsetY:I.zrY,gestureEvent:I.gestureEvent,pinchX:I.pinchX,pinchY:I.pinchY,pinchScale:I.pinchScale,wheelDelta:I.zrDelta,zrByTouch:I.zrByTouch,which:I.which,stop:i}}function i(){u.stop(this.event)}function l(){}l.prototype.dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(T,P,I,v){m.call(this),this.storage=T,this.painter=P,this.painterRoot=v,I=I||new l,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,p.call(this),this.setHandlerProxy(I)};d.prototype={constructor:d,setHandlerProxy:function(T){this.proxy&&this.proxy.dispose(),T&&(O.each(s,function(P){T.on&&T.on(P,this[P],this)},this),T.handler=this),this.proxy=T},mousemove:function(T){var P=T.zrX,I=T.zrY,v=y(this,P,I),E=this._hovered,h=E.target;h&&!h.__zr&&(E=this.findHover(E.x,E.y),h=E.target);var D=this._hovered=v?{x:P,y:I}:this.findHover(P,I),j=D.target,Q=this.proxy;Q.setCursor&&Q.setCursor(j?j.cursor:"default"),h&&j!==h&&this.dispatchToElement(E,"mouseout",T),this.dispatchToElement(D,"mousemove",T),j&&j!==h&&this.dispatchToElement(D,"mouseover",T)},mouseout:function(T){var P=T.zrEventControl,I=T.zrIsToLocalDOM;P!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",T),P!=="no_globalout"&&(!I&&this.trigger("globalout",{type:"globalout",event:T}))},resize:function(T){this._hovered={}},dispatch:function(T,P){var I=this[T];I&&I.call(this,P)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(T){var P=this.proxy;P.setCursor&&P.setCursor(T)},dispatchToElement:function(T,P,I){T=T||{};var v=T.target;if(v&&v.silent)return;for(var E="on"+P,h=e(P,T,I);v&&!(v[E]&&(h.cancelBubble=v[E].call(v,h)),v.trigger(P,h),v=v.parent,h.cancelBubble););h.cancelBubble||(this.trigger(P,h),this.painter&&this.painter.eachOtherLayer(function(D){typeof D[E]=="function"&&D[E].call(D,h),D.trigger&&D.trigger(P,h)}))},findHover:function(T,P,I){for(var v=this.storage.getDisplayList(),E={x:T,y:P},h=v.length-1;h>=0;h--){var D;if(v[h]!==I&&!v[h].ignore&&(D=g(v[h],T,P))&&(!E.topTarget&&(E.topTarget=v[h]),D!==r)){E.target=v[h];break}}return E},processGesture:function(T,P){this._gestureMgr||(this._gestureMgr=new a);var I=this._gestureMgr;P==="start"&&I.clear();var v=I.recognize(T,this.findHover(T.zrX,T.zrY,null).target,this.proxy.dom);if(P==="end"&&I.clear(),v){var E=v.type;T.gestureEvent=E,this.dispatchToElement({target:v.target},E,v.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(T){d.prototype[T]=function(P){var I=P.zrX,v=P.zrY,E=y(this,I,v),h,D;if((T!=="mouseup"||!E)&&(h=this.findHover(I,v),D=h.target),T==="mousedown")this._downEl=D,this._downPoint=[P.zrX,P.zrY],this._upEl=D;else if(T==="mouseup")this._upEl=D;else if(T==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[P.zrX,P.zrY])>4)return;this._downPoint=null}this.dispatchToElement(h,T,P)}});function g(T,P,I){if(T[T.rectHover?"rectContain":"contain"](P,I)){for(var v=T,E;v;){if(v.clipPath&&!v.clipPath.contain(P,I))return!1;v.silent&&(E=!0),v=v.parent}return E?r:!0}return!1}function y(T,P,I){var v=T.painter;return P<0||P>v.getWidth()||I<0||I>v.getHeight()}O.mixin(d,m),O.mixin(d,p);var b=d;ie.exports=b},"1Jh7":function(ie,w,t){var O=t("y+Vt"),f=t("T6xi"),p=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,u){f.buildPath(m,u,!1)}});ie.exports=p},"1MYJ":function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var p=this.__dirtyPath,m=this.shape.paths,u=0;u=this._maxSize&&s>0){var g=e.head;e.remove(g),delete i[g.key],l=g.value,this._lastRemovedEntry=g}d?d.value=r:d=new f(r),d.key=a,e.insertEntry(d),i[a]=d}return l},m.get=function(a){var r=this._map[a],e=this._list;if(r!=null)return r!==e.tail&&(e.remove(r),e.insertEntry(r)),r.value},m.clear=function(){this._list.clear(),this._map={}};var u=p;ie.exports=u},"1bdT":function(ie,w,t){var O=t("3gBT"),f=t("H6uX"),p=t("DN4a"),m=t("vWvF"),u=t("bYtY"),a=function(e){p.call(this,e),f.call(this,e),m.call(this,e),this.id=e.id||O()};a.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":e=0;break}var l=this.transform;l||(l=this.transform=[1,0,0,1,0,0]),l[4]+=e,l[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,i){},attrKV:function(e,i){if(e==="position"||e==="scale"||e==="origin"){if(i){var l=this[e];l||(l=this[e]=[]),l[0]=i[0],l[1]=i[1]}}else this[e]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,i){if(typeof e=="string")this.attrKV(e,i);else if(u.isObject(e))for(var l in e)e.hasOwnProperty(l)&&this.attrKV(l,e[l]);return this.dirty(!1),this},setClipPath:function(e){var i=this.__zr;i&&e.addSelfToZr(i),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=i,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var i=this.animators;if(i)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:!1,ge=Ce&&typeof Ce.getBoundingClientRect=="function"&&Ce.getBoundingClientRect().width;if(ge){if(Oe){var ne=getComputedStyle(Ce),le=ne.marginLeft,we=ne.marginRight;ge+=+le.replace("px","")+ +we.replace("px","")}ge=+ge.toFixed(6)}return ge||0},X=function(Ce,Oe,ge){Ce&&Object(I.a)(Ce.style)==="object"&&(Ce.style[Oe]=ge)},q=function(){return Z.any},se=t("KQm4"),ae=t("Ff2n"),ve=t("i8i4"),W=t("bdgK"),re=t("uciX"),R=t("8XRh"),$={adjustX:1,adjustY:1},fe={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$,offset:[4,0]}},F={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$,offset:[4,0]}},C=fe,S=0,z={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},te=function(Ce,Oe,ge){var ne=x(Oe),le=Ce.getState();Ce.setState({defaultActiveFirst:Object(O.a)(Object(O.a)({},le.defaultActiveFirst),{},Object(s.a)({},ne,ge))})},de=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.onDestroy=function(Te){ne.props.onDestroy(Te)},ne.onKeyDown=function(Te){var Le=Te.keyCode,Fe=ne.menuInstance,dt=ne.props,tt=dt.isOpen,Ct=dt.store;if(Le===d.a.ENTER)return ne.onTitleClick(Te),te(Ct,ne.props.eventKey,!0),!0;if(Le===d.a.RIGHT)return tt?Fe.onKeyDown(Te):(ne.triggerOpenChange(!0),te(Ct,ne.props.eventKey,!0)),!0;if(Le===d.a.LEFT){var At;if(tt)At=Fe.onKeyDown(Te);else return;return At||(ne.triggerOpenChange(!1),At=!0),At}return tt&&(Le===d.a.UP||Le===d.a.DOWN)?Fe.onKeyDown(Te):void 0},ne.onOpenChange=function(Te){ne.props.onOpenChange(Te)},ne.onPopupVisibleChange=function(Te){ne.triggerOpenChange(Te,Te?"mouseenter":"mouseleave")},ne.onMouseEnter=function(Te){var Le=ne.props,Fe=Le.eventKey,dt=Le.onMouseEnter,tt=Le.store;te(tt,ne.props.eventKey,!1),dt({key:Fe,domEvent:Te})},ne.onMouseLeave=function(Te){var Le=ne.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onMouseLeave;Fe.subMenuInstance=Object(m.a)(ne),tt({key:dt,domEvent:Te})},ne.onTitleMouseEnter=function(Te){var Le=ne.props,Fe=Le.eventKey,dt=Le.onItemHover,tt=Le.onTitleMouseEnter;dt({key:Fe,hover:!0}),tt({key:Fe,domEvent:Te})},ne.onTitleMouseLeave=function(Te){var Le=ne.props,Fe=Le.parentMenu,dt=Le.eventKey,tt=Le.onItemHover,Ct=Le.onTitleMouseLeave;Fe.subMenuInstance=Object(m.a)(ne),tt({key:dt,hover:!1}),Ct({key:dt,domEvent:Te})},ne.onTitleClick=function(Te){var Le=Object(m.a)(ne),Fe=Le.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:Te}),Fe.triggerSubMenuAction==="hover")return;ne.triggerOpenChange(!Fe.isOpen,"click"),te(Fe.store,ne.props.eventKey,!1)},ne.onSubMenuClick=function(Te){typeof ne.props.onClick=="function"&&ne.props.onClick(ne.addKeyPath(Te))},ne.onSelect=function(Te){ne.props.onSelect(Te)},ne.onDeselect=function(Te){ne.props.onDeselect(Te)},ne.getPrefixCls=function(){return"".concat(ne.props.rootPrefixCls,"-submenu")},ne.getActiveClassName=function(){return"".concat(ne.getPrefixCls(),"-active")},ne.getDisabledClassName=function(){return"".concat(ne.getPrefixCls(),"-disabled")},ne.getSelectedClassName=function(){return"".concat(ne.getPrefixCls(),"-selected")},ne.getOpenClassName=function(){return"".concat(ne.props.rootPrefixCls,"-submenu-open")},ne.saveMenuInstance=function(Te){ne.menuInstance=Te},ne.addKeyPath=function(Te){return Object(O.a)(Object(O.a)({},Te),{},{keyPath:(Te.keyPath||[]).concat(ne.props.eventKey)})},ne.triggerOpenChange=function(Te,Le){var Fe=ne.props.eventKey,dt=function(){ne.onOpenChange({key:Fe,item:Object(m.a)(ne),trigger:Le,open:Te})};Le==="mouseenter"?ne.mouseenterTimeout=setTimeout(function(){dt()},0):dt()},ne.isChildrenSelected=function(){var Te={find:!1};return G(ne.props.children,ne.props.selectedKeys,Te),Te.find},ne.isOpen=function(){return ne.props.openKeys.indexOf(ne.props.eventKey)!==-1},ne.adjustWidth=function(){if(!ne.subMenuTitle||!ne.menuInstance)return;var Te=ve.findDOMNode(ne.menuInstance);if(Te.offsetWidth>=ne.subMenuTitle.offsetWidth)return;Te.style.minWidth="".concat(ne.subMenuTitle.offsetWidth,"px")},ne.saveSubMenuTitle=function(Te){ne.subMenuTitle=Te},ne.getBaseProps=function(){var Te=Object(m.a)(ne),Le=Te.props;return{mode:Le.mode==="horizontal"?"vertical":Le.mode,visible:ne.props.isOpen,level:Le.level+1,inlineIndent:Le.inlineIndent,focusable:!1,onClick:ne.onSubMenuClick,onSelect:ne.onSelect,onDeselect:ne.onDeselect,onDestroy:ne.onDestroy,selectedKeys:Le.selectedKeys,eventKey:"".concat(Le.eventKey,"-menu-"),openKeys:Le.openKeys,motion:Le.motion,onOpenChange:ne.onOpenChange,subMenuOpenDelay:Le.subMenuOpenDelay,parentMenu:Object(m.a)(ne),subMenuCloseDelay:Le.subMenuCloseDelay,forceSubMenuRender:Le.forceSubMenuRender,triggerSubMenuAction:Le.triggerSubMenuAction,builtinPlacements:Le.builtinPlacements,defaultActiveFirst:Le.store.getState().defaultActiveFirst[x(Le.eventKey)],multiple:Le.multiple,prefixCls:Le.rootPrefixCls,id:ne.internalMenuId,manualRef:ne.saveMenuInstance,itemIcon:Le.itemIcon,expandIcon:Le.expandIcon,direction:Le.direction}},ne.getMotion=function(Te,Le){var Fe=Object(m.a)(ne),dt=Fe.haveRendered,tt=ne.props,Ct=tt.motion,At=tt.rootPrefixCls,Ht=Object(O.a)(Object(O.a)({},Ct),{},{leavedClassName:"".concat(At,"-hidden"),removeOnLeave:!1,motionAppear:dt||!Le||Te!=="inline"});return Ht};var le=ge.store,we=ge.eventKey,xe=le.getState(),Re=xe.defaultActiveFirst;ne.isRootMenu=!1;var je=!1;return Re&&(je=Re[we]),te(le,we,je),ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ne=this,le=this.props,we=le.mode,xe=le.parentMenu,Re=le.manualRef;if(Re&&Re(this),we!=="horizontal"||!xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ne.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ne=this.props,le=ne.onDestroy,we=ne.eventKey;le&&le(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ne){var le=this,we=this.getBaseProps(),xe=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return r.createElement("div",null);var Re=we.direction;return r.createElement(R.default,Object.assign({visible:we.visible},xe),function(je){var Te=je.className,Le=je.style,Fe=P()("".concat(we.prefixCls,"-sub"),Te,Object(s.a)({},"".concat(we.prefixCls,"-rtl"),Re==="rtl"));return r.createElement(et,Object.assign({},we,{id:le.internalMenuId,className:Fe,style:Le}),ne)})}},{key:"render",value:function(){var ne,le=Object(O.a)({},this.props),we=le.isOpen,xe=this.getPrefixCls(),Re=le.mode==="inline",je=P()(xe,"".concat(xe,"-").concat(le.mode),(ne={},Object(s.a)(ne,le.className,!!le.className),Object(s.a)(ne,this.getOpenClassName(),we),Object(s.a)(ne,this.getActiveClassName(),le.active||we&&!Re),Object(s.a)(ne,this.getDisabledClassName(),le.disabled),Object(s.a)(ne,this.getSelectedClassName(),this.isChildrenSelected()),ne));this.internalMenuId||(le.eventKey?this.internalMenuId="".concat(le.eventKey,"$Menu"):(S+=1,this.internalMenuId="$__$".concat(S,"$Menu")));var Te={},Le={},Fe={};le.disabled||(Te={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Le={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var dt={},tt=le.direction;Re&&(tt==="rtl"?dt.paddingRight=le.inlineIndent*le.level:dt.paddingLeft=le.inlineIndent*le.level);var Ct={};this.props.isOpen&&(Ct={"aria-owns":this.internalMenuId});var At=null;le.mode!=="horizontal"&&(At=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(At=r.createElement(this.props.expandIcon,Object(O.a)({},this.props))));var Ht=r.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:dt,className:"".concat(xe,"-title"),role:"button"},Fe,Le,{"aria-expanded":we},Ct,{"aria-haspopup":"true",title:typeof le.title=="string"?le.title:void 0}),le.title,At||r.createElement("i",{className:"".concat(xe,"-arrow")})),en=this.renderChildren(le.children),Ge=le.parentMenu.isRootMenu?le.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},gt=z[le.mode],xt=le.popupOffset?{offset:le.popupOffset}:{},Lt=le.mode==="inline"?"":le.popupClassName;Lt+=tt==="rtl"?" ".concat(xe,"-rtl"):"";var Ot=le.disabled,Tt=le.triggerSubMenuAction,Bt=le.subMenuOpenDelay,Xt=le.forceSubMenuRender,an=le.subMenuCloseDelay,Jt=le.builtinPlacements;oe.forEach(function(Ft){return delete le[Ft]}),delete le.onClick;var Ut=tt==="rtl"?Object.assign({},F,Jt):Object.assign({},fe,Jt);return delete le.direction,r.createElement("li",Object.assign({},le,Te,{className:je,role:"menuitem"}),Re&&Ht,Re&&en,!Re&&r.createElement(re.a,{prefixCls:xe,popupClassName:P()("".concat(xe,"-popup"),Lt),getPopupContainer:Ge,builtinPlacements:Ut,popupPlacement:gt,popupVisible:we,popupAlign:xt,popup:en,action:Ot?[]:[Tt],mouseEnterDelay:Bt,mouseLeaveDelay:an,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Xt},Ht))}}]),Oe}(r.Component);de.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var he=Object(e.b)(function(ze,Ce){var Oe=ze.openKeys,ge=ze.activeKey,ne=ze.selectedKeys,le=Ce.eventKey,we=Ce.subMenuKey;return{isOpen:Oe.indexOf(le)>-1,active:ge[we]===le,selectedKeys:ne}})(de);he.isSubMenu=!0;var Me=he,ce="menuitem-overflowed",be=.5,Ae=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.resizeObserver=null,ge.mutationObserver=null,ge.originalTotalWidth=0,ge.overflowedItems=[],ge.menuItemSizes=[],ge.cancelFrameId=null,ge.state={lastVisibleIndex:void 0},ge.getMenuItemNodes=function(){var ne=ge.props.prefixCls,le=ve.findDOMNode(Object(m.a)(ge));return le?[].slice.call(le.children).filter(function(we){return we.className.split(" ").indexOf("".concat(ne,"-overflowed-submenu"))<0}):[]},ge.getOverflowedSubMenuItem=function(ne,le,we){var xe=ge.props,Re=xe.overflowedIndicator,je=xe.level,Te=xe.mode,Le=xe.prefixCls,Fe=xe.theme;if(je!==1||Te!=="horizontal")return null;var dt=ge.props.children[0],tt=dt.props,Ct=tt.children,At=tt.title,Ht=tt.style,en=Object(ae.a)(tt,["children","title","style"]),Ge=Object(O.a)({},Ht),gt="".concat(ne,"-overflowed-indicator"),xt="".concat(ne,"-overflowed-indicator");le.length===0&&we!==!0?Ge=Object(O.a)(Object(O.a)({},Ge),{},{display:"none"}):we&&(Ge=Object(O.a)(Object(O.a)({},Ge),{},{visibility:"hidden",position:"absolute"}),gt="".concat(gt,"-placeholder"),xt="".concat(xt,"-placeholder"));var Lt=Fe?"".concat(Le,"-").concat(Fe):"",Ot={};return oe.forEach(function(Tt){en[Tt]!==void 0&&(Ot[Tt]=en[Tt])}),r.createElement(Me,Object.assign({title:Re,className:"".concat(Le,"-overflowed-submenu"),popupClassName:Lt},Ot,{key:gt,eventKey:xt,disabled:!1,style:Ge}),le)},ge.setChildrenWidthAndResize=function(){if(ge.props.mode!=="horizontal")return;var ne=ve.findDOMNode(Object(m.a)(ge));if(!ne)return;var le=ne.children;if(!le||le.length===0)return;var we=ne.children[le.length-1];X(we,"display","inline-block");var xe=ge.getMenuItemNodes(),Re=xe.filter(function(je){return je.className.split(" ").indexOf(ce)>=0});Re.forEach(function(je){X(je,"display","inline-block")}),ge.menuItemSizes=xe.map(function(je){return ee(je,!0)}),Re.forEach(function(je){X(je,"display","none")}),ge.overflowedIndicatorWidth=ee(ne.children[ne.children.length-1],!0),ge.originalTotalWidth=ge.menuItemSizes.reduce(function(je,Te){return je+Te},0),ge.handleResize(),X(we,"display","none")},ge.handleResize=function(){if(ge.props.mode!=="horizontal")return;var ne=ve.findDOMNode(Object(m.a)(ge));if(!ne)return;var le=ee(ne);ge.overflowedItems=[];var we=0,xe;ge.originalTotalWidth>le+be&&(xe=-1,ge.menuItemSizes.forEach(function(Re){we+=Re,we+ge.overflowedIndicatorWidth<=le&&(xe+=1)})),ge.setState({lastVisibleIndex:xe})},ge}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){var ne=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var le=ve.findDOMNode(this);if(!le)return;this.resizeObserver=new W.default(function(we){we.forEach(function(){var xe=ne.cancelFrameId;cancelAnimationFrame(xe),ne.cancelFrameId=requestAnimationFrame(ne.setChildrenWidthAndResize)})}),[].slice.call(le.children).concat(le).forEach(function(we){ne.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ne.resizeObserver.disconnect(),[].slice.call(le.children).concat(le).forEach(function(we){ne.resizeObserver.observe(we)}),ne.setChildrenWidthAndResize()}),this.mutationObserver.observe(le,{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(ne){var le=this,we=this.state.lastVisibleIndex;return(ne||[]).reduce(function(xe,Re,je){var Te=Re;if(le.props.mode==="horizontal"){var Le=le.getOverflowedSubMenuItem(Re.props.eventKey,[]);we!==void 0&&le.props.className.indexOf("".concat(le.props.prefixCls,"-root"))!==-1&&(je>we&&(Te=r.cloneElement(Re,{style:{display:"none"},eventKey:"".concat(Re.props.eventKey,"-hidden"),className:"".concat(ce)})),je===we+1&&(le.overflowedItems=ne.slice(we+1).map(function(dt){return r.cloneElement(dt,{key:dt.props.eventKey,mode:"vertical-left"})}),Le=le.getOverflowedSubMenuItem(Re.props.eventKey,le.overflowedItems)));var Fe=[].concat(Object(se.a)(xe),[Le,Te]);return je===ne.length-1&&Fe.push(le.getOverflowedSubMenuItem(Re.props.eventKey,[],!0)),Fe}return[].concat(Object(se.a)(xe),[Te])},[])}},{key:"render",value:function(){var ne=this.props,le=ne.visible,we=ne.prefixCls,xe=ne.overflowedIndicator,Re=ne.mode,je=ne.level,Te=ne.tag,Le=ne.children,Fe=ne.theme,dt=Object(ae.a)(ne,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),tt=Te;return r.createElement(tt,Object.assign({},dt),this.renderChildren(Le))}}]),Oe}(r.Component);Ae.defaultProps={tag:"div",className:""};var ye=Ae;function ke(ze){return ze.length?ze.every(function(Ce){return!!Ce.props.disabled}):!0}function Se(ze,Ce,Oe){var ge=ze.getState();ze.setState({activeKey:Object(O.a)(Object(O.a)({},ge.activeKey),{},Object(s.a)({},Ce,Oe))})}function Ne(ze){return ze.eventKey||"0-menu-"}function Ue(ze,Ce){var Oe=Ce,ge=ze.children,ne=ze.eventKey;if(Oe){var le;if(V(ge,function(we,xe){we&&we.props&&!we.props.disabled&&Oe===H(we,ne,xe)&&(le=!0)}),le)return Oe}return Oe=null,ze.defaultActiveFirst&&V(ge,function(we,xe){!Oe&&we&&!we.props.disabled&&(Oe=H(we,ne,xe))}),Oe}function $e(ze){if(ze){var Ce=this.instanceArray.indexOf(ze);Ce!==-1?this.instanceArray[Ce]=ze:this.instanceArray.push(ze)}}var We=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;return Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.onKeyDown=function(le,we){var xe=le.keyCode,Re;if(ne.getFlatInstanceArray().forEach(function(Te){Te&&Te.props.active&&Te.onKeyDown&&(Re=Te.onKeyDown(le))}),Re)return 1;var je=null;return(xe===d.a.UP||xe===d.a.DOWN)&&(je=ne.step(xe===d.a.UP?-1:1)),je?(le.preventDefault(),Se(ne.props.store,Ne(ne.props),je.props.eventKey),typeof we=="function"&&we(je),1):void 0},ne.onItemHover=function(le){var we=le.key,xe=le.hover;Se(ne.props.store,Ne(ne.props),xe?we:null)},ne.onDeselect=function(le){ne.props.onDeselect(le)},ne.onSelect=function(le){ne.props.onSelect(le)},ne.onClick=function(le){ne.props.onClick(le)},ne.onOpenChange=function(le){ne.props.onOpenChange(le)},ne.onDestroy=function(le){ne.props.onDestroy(le)},ne.getFlatInstanceArray=function(){return ne.instanceArray},ne.step=function(le){var we=ne.getFlatInstanceArray(),xe=ne.props.store.getState().activeKey[Ne(ne.props)],Re=we.length;if(!Re)return null;le<0&&(we=we.concat().reverse());var je=-1;if(we.every(function(dt,tt){return dt&&dt.props.eventKey===xe?(je=tt,!1):!0}),!ne.props.defaultActiveFirst&&je!==-1&&ke(we.slice(je,Re-1)))return;var Te=(je+1)%Re,Le=Te;do{var Fe=we[Le];if(!Fe||Fe.props.disabled)Le=(Le+1)%Re;else return Fe}while(Le!==Te);return null},ne.renderCommonMenuItem=function(le,we,xe){var Re=ne.props.store.getState(),je=Object(m.a)(ne),Te=je.props,Le=H(le,Te.eventKey,we),Fe=le.props;if(!Fe||typeof le.type=="string")return le;var dt=Le===Re.activeKey,tt=Object(O.a)(Object(O.a)({mode:Fe.mode||Te.mode,level:Te.level,inlineIndent:Te.inlineIndent,renderMenuItem:ne.renderMenuItem,rootPrefixCls:Te.prefixCls,index:we,parentMenu:Te.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(le.ref,$e.bind(Object(m.a)(ne))),eventKey:Le,active:!Fe.disabled&&dt,multiple:Te.multiple,onClick:function(At){(Fe.onClick||Y)(At),ne.onClick(At)},onItemHover:ne.onItemHover,motion:Te.motion,subMenuOpenDelay:Te.subMenuOpenDelay,subMenuCloseDelay:Te.subMenuCloseDelay,forceSubMenuRender:Te.forceSubMenuRender,onOpenChange:ne.onOpenChange,onDeselect:ne.onDeselect,onSelect:ne.onSelect,builtinPlacements:Te.builtinPlacements,itemIcon:Fe.itemIcon||ne.props.itemIcon,expandIcon:Fe.expandIcon||ne.props.expandIcon},xe),{},{direction:Te.direction});return(Te.mode==="inline"||q())&&(tt.triggerSubMenuAction="click"),r.cloneElement(le,tt)},ne.renderMenuItem=function(le,we,xe){if(!le)return null;var Re=ne.props.store.getState(),je={openKeys:Re.openKeys,selectedKeys:Re.selectedKeys,triggerSubMenuAction:ne.props.triggerSubMenuAction,subMenuKey:xe};return ne.renderCommonMenuItem(le,we,je)},ge.store.setState({activeKey:Object(O.a)(Object(O.a)({},ge.store.getState().activeKey),{},Object(s.a)({},ge.eventKey,Ue(ge,ge.activeKey)))}),ne.instanceArray=[],ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ne){return this.props.visible||ne.visible||this.props.className!==ne.className||!b()(this.props.style,ne.style)}},{key:"componentDidUpdate",value:function(ne){var le=this.props,we="activeKey"in le?le.activeKey:le.store.getState().activeKey[Ne(le)],xe=Ue(le,we);if(xe!==we)Se(le.store,Ne(le),xe);else if("activeKey"in ne){var Re=Ue(ne,ne.activeKey);xe!==Re&&Se(le.store,Ne(le),xe)}}},{key:"render",value:function(){var ne=this,le=Object(l.a)({},this.props);this.instanceArray=[];var we=P()(le.prefixCls,le.className,"".concat(le.prefixCls,"-").concat(le.mode)),xe={className:we,role:le.role||"menu"};le.id&&(xe.id=le.id),le.focusable&&(xe.tabIndex=0,xe.onKeyDown=this.onKeyDown);var Re=le.prefixCls,je=le.eventKey,Te=le.visible,Le=le.level,Fe=le.mode,dt=le.overflowedIndicator,tt=le.theme;return oe.forEach(function(Ct){return delete le[Ct]}),delete le.onClick,r.createElement(ye,Object.assign({},le,{prefixCls:Re,mode:Fe,tag:"ul",level:Le,theme:tt,visible:Te,overflowedIndicator:dt},xe),r.Children.map(le.children,function(Ct,At){return ne.renderMenuItem(Ct,At,je||"0-menu-")}))}}]),Oe}(r.Component);We.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var nt=Object(e.b)()(We),et=nt,Xe=t("Kwbf");function st(ze,Ce,Oe){var ge=ze.prefixCls,ne=ze.motion,le=ze.defaultMotions,we=le===void 0?{}:le,xe=ze.openAnimation,Re=ze.openTransitionName,je=Ce.switchingModeFromInline;if(ne)return ne;if(Object(I.a)(xe)==="object"&&xe)Object(Xe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof xe=="string")return{motionName:"".concat(ge,"-open-").concat(xe)};if(Re)return{motionName:Re};var Te=we[Oe];return Te||(je?null:we.other)}var ut=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(ge){var ne;Object(f.a)(this,Oe),ne=Ce.call(this,ge),ne.inlineOpenKeys=[],ne.onSelect=function(xe){var Re=Object(m.a)(ne),je=Re.props;if(je.selectable){var Te=ne.store.getState(),Le=Te.selectedKeys,Fe=xe.key;je.multiple?Le=Le.concat([Fe]):Le=[Fe],"selectedKeys"in je||ne.store.setState({selectedKeys:Le}),je.onSelect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Le}))}},ne.onClick=function(xe){var Re=ne.getRealMenuMode(),je=Object(m.a)(ne),Te=je.store,Le=je.props.onOpenChange;Re!=="inline"&&!("openKeys"in ne.props)&&(Te.setState({openKeys:[]}),Le([])),ne.props.onClick(xe)},ne.onKeyDown=function(xe,Re){ne.innerMenu.getWrappedInstance().onKeyDown(xe,Re)},ne.onOpenChange=function(xe){var Re=Object(m.a)(ne),je=Re.props,Te=ne.store.getState().openKeys.concat(),Le=!1,Fe=function(tt){var Ct=!1;if(tt.open)Ct=Te.indexOf(tt.key)===-1,Ct&&Te.push(tt.key);else{var At=Te.indexOf(tt.key);Ct=At!==-1,Ct&&Te.splice(At,1)}Le=Le||Ct};Array.isArray(xe)?xe.forEach(Fe):Fe(xe),Le&&("openKeys"in ne.props||ne.store.setState({openKeys:Te}),je.onOpenChange(Te))},ne.onDeselect=function(xe){var Re=Object(m.a)(ne),je=Re.props;if(je.selectable){var Te=ne.store.getState().selectedKeys.concat(),Le=xe.key,Fe=Te.indexOf(Le);Fe!==-1&&Te.splice(Fe,1),"selectedKeys"in je||ne.store.setState({selectedKeys:Te}),je.onDeselect(Object(O.a)(Object(O.a)({},xe),{},{selectedKeys:Te}))}},ne.onMouseEnter=function(xe){ne.restoreModeVerticalFromInline();var Re=ne.props.onMouseEnter;Re&&Re(xe)},ne.onTransitionEnd=function(xe){var Re=xe.propertyName==="width"&&xe.target===xe.currentTarget,je=xe.target.className,Te=Object.prototype.toString.call(je)==="[object SVGAnimatedString]"?je.animVal:je,Le=xe.propertyName==="font-size"&&Te.indexOf("anticon")>=0;(Re||Le)&&ne.restoreModeVerticalFromInline()},ne.setInnerMenu=function(xe){ne.innerMenu=xe},ne.isRootMenu=!0;var le=ge.defaultSelectedKeys,we=ge.defaultOpenKeys;return"selectedKeys"in ge&&(le=ge.selectedKeys||[]),"openKeys"in ge&&(we=ge.openKeys||[]),ne.store=Object(e.c)({selectedKeys:le,openKeys:we,activeKey:{"0-menu-":Ue(ge,ge.activeKey)}}),ne.state={switchingModeFromInline:!1},ne}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ne){this.updateOpentKeysWhenSwitchMode(ne),this.updateMiniStore();var le=this.props,we=le.siderCollapsed,xe=le.inlineCollapsed,Re=le.onOpenChange;(!ne.inlineCollapsed&&xe||!ne.siderCollapsed&&we)&&Re([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ne){var le=this.props,we=this.store,xe=this.inlineOpenKeys,Re=we.getState(),je={};ne.mode==="inline"&&le.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in le||((le.inlineCollapsed&&!ne.inlineCollapsed||le.siderCollapsed&&!ne.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Re.openKeys.concat(),je.openKeys=[]),(!le.inlineCollapsed&&ne.inlineCollapsed||!le.siderCollapsed&&ne.siderCollapsed)&&(je.openKeys=xe,this.inlineOpenKeys=[])),Object.keys(je).length&&we.setState(je)}},{key:"updateMenuDisplay",value:function(){var ne=this.props.collapsedWidth,le=this.store,we=this.prevOpenKeys,xe=this.getInlineCollapsed()&&(ne===0||ne==="0"||ne==="0px");xe?(this.prevOpenKeys=le.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ne=this.props.mode,le=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return le&&we?"inline":we?"vertical":ne}},{key:"getInlineCollapsed",value:function(){var ne=this.props,le=ne.inlineCollapsed,we=ne.siderCollapsed;return we!==void 0?we:le}},{key:"restoreModeVerticalFromInline",value:function(){var ne=this.state.switchingModeFromInline;ne&&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 ne=Object(O.a)({},Object(i.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),le=this.getRealMenuMode();return ne.className+=" ".concat(ne.prefixCls,"-root"),ne.direction==="rtl"&&(ne.className+=" ".concat(ne.prefixCls,"-rtl")),ne=Object(O.a)(Object(O.a)({},ne),{},{mode:le,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:st(this.props,this.state,le)}),delete ne.openAnimation,delete ne.openTransitionName,r.createElement(e.a,{store:this.store},r.createElement(et,Object.assign({},ne,{ref:this.setInnerMenu}),this.props.children))}}]),Oe}(r.Component);ut.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var ct=ut,Ze=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.onKeyDown=function(ne){var le=ne.keyCode;return le===d.a.ENTER?(ge.onClick(ne),!0):void 0},ge.onMouseLeave=function(ne){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseLeave;xe({key:we,hover:!1}),Re({key:we,domEvent:ne})},ge.onMouseEnter=function(ne){var le=ge.props,we=le.eventKey,xe=le.onItemHover,Re=le.onMouseEnter;xe({key:we,hover:!0}),Re({key:we,domEvent:ne})},ge.onClick=function(ne){var le=ge.props,we=le.eventKey,xe=le.multiple,Re=le.onClick,je=le.onSelect,Te=le.onDeselect,Le=le.isSelected,Fe={key:we,keyPath:[we],item:Object(m.a)(ge),domEvent:ne};Re(Fe),xe?Le?Te(Fe):je(Fe):Le||je(Fe)},ge.saveNode=function(ne){ge.node=ne},ge}return Object(p.a)(Oe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ne=this.props;ne.onDestroy&&ne.onDestroy(ne.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 ne,le=Object(O.a)({},this.props),we=P()(this.getPrefixCls(),le.className,(ne={},Object(s.a)(ne,this.getActiveClassName(),!le.disabled&&le.active),Object(s.a)(ne,this.getSelectedClassName(),le.isSelected),Object(s.a)(ne,this.getDisabledClassName(),le.disabled),ne)),xe=Object(O.a)(Object(O.a)({},le.attribute),{},{title:typeof le.title=="string"?le.title:void 0,className:we,role:le.role||"menuitem","aria-disabled":le.disabled});le.role==="option"?xe=Object(O.a)(Object(O.a)({},xe),{},{role:"option","aria-selected":le.isSelected}):(le.role===null||le.role==="none")&&(xe.role="none");var Re={onClick:le.disabled?null:this.onClick,onMouseLeave:le.disabled?null:this.onMouseLeave,onMouseEnter:le.disabled?null:this.onMouseEnter},je=Object(O.a)({},le.style);le.mode==="inline"&&(le.direction==="rtl"?je.paddingRight=le.inlineIndent*le.level:je.paddingLeft=le.inlineIndent*le.level),oe.forEach(function(Le){return delete le[Le]}),delete le.direction;var Te=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Te=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object.assign({},Object(i.default)(le,["onClick","onMouseEnter","onMouseLeave","onSelect"]),xe,Re,{style:je,ref:this.saveNode}),le.children,Te)}}]),Oe}(r.Component);Ze.isMenuItem=!0,Ze.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var bt=Object(e.b)(function(ze,Ce){var Oe=ze.activeKey,ge=ze.selectedKeys,ne=Ce.eventKey,le=Ce.subMenuKey;return{active:Oe[le]===ne,isSelected:ge.indexOf(ne)!==-1}})(Ze),lt=bt,Et=function(ze){Object(u.a)(Oe,ze);var Ce=Object(a.a)(Oe);function Oe(){var ge;return Object(f.a)(this,Oe),ge=Ce.apply(this,arguments),ge.renderInnerMenuItem=function(ne){var le=ge.props,we=le.renderMenuItem,xe=le.index;return we(ne,xe,ge.props.subMenuKey)},ge}return Object(p.a)(Oe,[{key:"render",value:function(){var ne=Object(l.a)({},this.props),le=ne.className,we=le===void 0?"":le,xe=ne.rootPrefixCls,Re="".concat(xe,"-item-group-title"),je="".concat(xe,"-item-group-list"),Te=ne.title,Le=ne.children;return oe.forEach(function(Fe){return delete ne[Fe]}),delete ne.onClick,delete ne.direction,r.createElement("li",Object.assign({},ne,{className:"".concat(we," ").concat(xe,"-item-group")}),r.createElement("div",{className:Re,title:typeof Te=="string"?Te:void 0},Te),r.createElement("ul",{className:je},r.Children.map(Le,this.renderInnerMenuItem)))}}]),Oe}(r.Component);Et.isMenuItemGroup=!0,Et.defaultProps={disabled:!0};var jt=Et,Qt=function(Ce){var Oe=Ce.className,ge=Ce.rootPrefixCls,ne=Ce.style;return r.createElement("li",{className:"".concat(Oe," ").concat(ge,"-item-divider"),style:ne})};Qt.defaultProps={disabled:!0,className:"",style:{}};var Gt=Qt,rn=w.e=ct},"1sBl":function(ie,w,t){var O=t("e/Dd").getSymbolSize;w.getRowColCoords=function(p){if(p===1)return[];for(var m=Math.floor(p/7)+2,u=O(p),a=u===145?26:Math.ceil((u-13)/(2*m-2))*2,r=[u-7],e=1;eQ&&A>c&&A>n&&A>k||A1&&T(),J=e.cubicAt(Q,c,n,k,b[0]),K>1&&(Z=e.cubicAt(Q,c,n,k,b[1]))),K===2?HQ&&k>c&&k>n||k=0&&A<=1){for(var U=0,_=e.quadraticAt(Q,c,n,A),K=0;KM||k<-M)return 0;var N=Math.sqrt(M*M-k*k);y[0]=-N,y[1]=N;var A=Math.abs(c-o);if(A<1e-4)return 0;if(A%s<1e-4){c=0,o=s;var U=n?1:-1;return B>=y[0]+j&&B<=y[1]+j?U:0}if(n){var N=c;c=r(o),o=r(N)}else c=r(c),o=r(o);c>o&&(o+=s);for(var _=0,K=0;K<2;K++){var J=y[K];if(J+j>B){var Z=Math.atan2(k,J),U=n?1:-1;Z<0&&(Z=s+Z),(Z>=c&&Z<=o||Z+s>=c&&Z+s<=o)&&(Z>Math.PI/2&&Z1&&(M||(n+=i(B,k,N,A,c,o))),U===1&&(B=j[U],k=j[U+1],N=B,A=k);switch(_){case l.M:N=j[U++],A=j[U++],B=N,k=A;break;case l.L:if(M){if(f.containStroke(B,k,j[U],j[U+1],Q,c,o))return!0}else n+=i(B,k,j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.C:if(M){if(p.containStroke(B,k,j[U++],j[U++],j[U++],j[U++],j[U],j[U+1],Q,c,o))return!0}else n+=P(B,k,j[U++],j[U++],j[U++],j[U++],j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.Q:if(M){if(m.containStroke(B,k,j[U++],j[U++],j[U],j[U+1],Q,c,o))return!0}else n+=I(B,k,j[U++],j[U++],j[U],j[U+1],c,o)||0;B=j[U++],k=j[U++];break;case l.A:var K=j[U++],J=j[U++],Z=j[U++],Y=j[U++],H=j[U++],x=j[U++];U+=1;var V=1-j[U++],G=Math.cos(H)*Z+K,oe=Math.sin(H)*Y+J;U>1?n+=i(B,k,G,oe,c,o):(N=G,A=oe);var ee=(c-K)*Y/Z+K;if(M){if(u.containStroke(K,J,Y,H,H+x,V,Q,ee,o))return!0}else n+=v(K,J,Y,H,H+x,V,ee,o);B=Math.cos(H+x)*Z+K,k=Math.sin(H+x)*Y+J;break;case l.R:N=B=j[U++],A=k=j[U++];var X=j[U++],q=j[U++],G=N+X,oe=A+q;if(M){if(f.containStroke(N,A,G,A,Q,c,o)||f.containStroke(G,A,G,oe,Q,c,o)||f.containStroke(G,oe,N,oe,Q,c,o)||f.containStroke(N,oe,N,A,Q,c,o))return!0}else n+=i(G,A,G,oe,c,o),n+=i(N,oe,N,A,c,o);break;case l.Z:if(M){if(f.containStroke(B,k,N,A,Q,c,o))return!0}else n+=i(B,k,N,A,c,o);B=N,k=A;break}}return!M&&!g(k,A)&&(n+=i(B,k,N,A,c,o)||0),n!==0}function h(j,Q,M){return E(j,0,!1,Q,M)}function D(j,Q,M,c){return E(j,Q,!0,M,c)}w.contain=h,w.containStroke=D},"2fw6":function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(p,m,u){u&&p.moveTo(m.cx+m.r,m.cy),p.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});ie.exports=f},"3C/r":function(ie,w){var t=function(f,p){this.image=f,this.repeat=p,this.type="pattern"};t.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var O=t;ie.exports=O},"3CBa":function(ie,w,t){var O=t("hydK"),f=O.createElement,p=t("bYtY"),m=t("SUKs"),u=t("y+Vt"),a=t("Dagg"),r=t("dqUG"),e=t("DBLp"),i=t("sW+o"),l=t("n6Mw"),s=t("vKoX"),d=t("P47w"),g=d.path,y=d.image,b=d.text;function T(o){return parseInt(o,10)}function P(o){return o instanceof u?g:o instanceof a?y:o instanceof r?b:g}function I(o,n){return n&&o&&n.parentNode!==o}function v(o,n,B){if(I(o,n)&&B){var k=B.nextSibling;k?o.insertBefore(n,k):o.appendChild(n)}}function E(o,n){if(I(o,n)){var B=o.firstChild;B?o.insertBefore(n,B):o.appendChild(n)}}function h(o,n){n&&o&&n.parentNode===o&&o.removeChild(n)}function D(o){return o.__textSvgEl}function j(o){return o.__svgEl}var Q=function(o,n,B,k){this.root=o,this.storage=n,this._opts=B=p.extend({},B||{});var N=f("svg");N.setAttribute("xmlns","http://www.w3.org/2000/svg"),N.setAttribute("version","1.1"),N.setAttribute("baseProfile","full"),N.style.cssText="user-select:none;position:absolute;left:0;top:0;";var A=f("g");N.appendChild(A);var U=f("g");N.appendChild(U),this.gradientManager=new i(k,U),this.clipPathManager=new l(k,U),this.shadowManager=new s(k,U);var _=document.createElement("div");_.style.cssText="overflow:hidden;position:relative",this._svgDom=N,this._svgRoot=U,this._backgroundRoot=A,this._viewport=_,o.appendChild(_),_.appendChild(N),this.resize(B.width,B.height),this._visibleList=[]};Q.prototype={constructor:Q,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var o=this.getViewportRoot();if(o)return{offsetLeft:o.offsetLeft||0,offsetTop:o.offsetTop||0}},refresh:function(){var o=this.storage.getDisplayList(!0);this._paintList(o)},setBackgroundColor:function(o){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var n=f("rect");n.setAttribute("width",this.getWidth()),n.setAttribute("height",this.getHeight()),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("id",0),n.style.fill=o,this._backgroundRoot.appendChild(n),this._backgroundNode=n},_paintList:function(o){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var n=this._svgRoot,B=this._visibleList,k=o.length,N=[],A;for(A=0;A=0;--U)if(A[U]===N)return!0;return!1}),B}else return null;else return B[0]},resize:function(o,n){var B=this._viewport;B.style.display="none";var k=this._opts;if(o!=null&&(k.width=o),n!=null&&(k.height=n),o=this._getSize(0),n=this._getSize(1),B.style.display="",this._width!==o||this._height!==n){this._width=o,this._height=n;var N=B.style;N.width=o+"px",N.height=n+"px";var A=this._svgDom;A.setAttribute("width",o),A.setAttribute("height",n)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",o),this._backgroundNode.setAttribute("height",n))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(o){var n=this._opts,B=["width","height"][o],k=["clientWidth","clientHeight"][o],N=["paddingLeft","paddingTop"][o],A=["paddingRight","paddingBottom"][o];if(n[B]!=null&&n[B]!=="auto")return parseFloat(n[B]);var U=this.root,_=document.defaultView.getComputedStyle(U);return(U[k]||T(_[B])||T(U.style[B]))-(T(_[N])||0)-(T(_[A])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var o=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+o}};function M(o){return function(){m('In SVG mode painter not support method "'+o+'"')}}p.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(o){Q.prototype[o]=M(o)});var c=Q;ie.exports=c},"3X7Y":function(ie,w,t){var O=t("u/Db");function f(p){this.mode=O.NUMERIC,this.data=p.toString()}f.getBitsLength=function(m){return 10*Math.floor(m/3)+(m%3?m%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(m){var u,a,r;for(u=0;u+3<=this.data.length;u+=3)a=this.data.substr(u,3),r=parseInt(a,10),m.put(r,10);var e=this.data.length-u;e>0&&(a=this.data.substr(u),r=parseInt(a,10),m.put(r,e*3+1))},ie.exports=f},"3e3G":function(ie,w,t){var O=t("bYtY"),f=t("QuXc"),p=function(u,a,r,e,i){this.x=u==null?.5:u,this.y=a==null?.5:a,this.r=r==null?.5:r,this.type="radial",this.global=i||!1,f.call(this,e)};p.prototype={constructor:p},O.inherits(p,f);var m=p;ie.exports=m},"3gBT":function(ie,w){var t=2311;function O(){return t++}ie.exports=O},"49sm":function(ie,w){var t={}.toString;ie.exports=Array.isArray||function(O){return t.call(O)=="[object Array]"}},"4fz+":function(ie,w,t){var O=t("bYtY"),f=t("1bdT"),p=t("mFDi"),m=function(a){a=a||{},f.call(this,a);for(var r in a)a.hasOwnProperty(r)&&(this[r]=a[r]);this._children=[],this.__storage=null,this.__dirty=!0};m.prototype={constructor:m,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(a){return this._children[a]},childOfName:function(a){for(var r=this._children,e=0;e=0&&(e.splice(i,0,a),this._doAdd(a))}return this},_doAdd:function(a){a.parent&&a.parent.remove(a),a.parent=this;var r=this.__storage,e=this.__zr;r&&r!==a.__storage&&(r.addToStorage(a),a instanceof m&&a.addChildrenToStorage(r)),e&&e.refresh()},remove:function(a){var r=this.__zr,e=this.__storage,i=this._children,l=O.indexOf(i,a);return l<0?this:(i.splice(l,1),a.parent=null,e&&(e.delFromStorage(a),a instanceof m&&a.delChildrenFromStorage(e)),r&&r.refresh(),this)},removeAll:function(){var a=this._children,r=this.__storage,e,i;for(i=0;i1e-4){M[0]=I-E,M[1]=v-h,c[0]=I+E,c[1]=v+h;return}if(e[0]=a(D)*E+I,e[1]=u(D)*h+v,i[0]=a(j)*E+I,i[1]=u(j)*h+v,o(M,e,i),n(c,e,i),D=D%r,D<0&&(D=D+r),j=j%r,j<0&&(j=j+r),D>j&&!Q?j+=r:DD&&(l[0]=a(N)*E+I,l[1]=u(N)*h+v,o(M,l,M),n(c,l,c))}w.fromPoints=s,w.fromLine=d,w.fromCubic=b,w.fromQuadratic=T,w.fromArc=P},"4qgm":function(ie,w){ie.exports="data:image/png;base64,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"},"4u4S":function(ie,w){ie.exports="data:image/png;base64,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"},"532y":function(ie,w,t){ie.exports={topStatistics:"topStatistics___1QNNN",tooltip:"tooltip___5CKvs",name:"name___1nnFB",filter:"filter___10bL9",daoke:"daoke___BNGuv",qingjia:"qingjia___xVHr-",kuangke:"kuangke___274Y9"}},"59Ip":function(ie,w,t){var O=t("Sj9i");function f(p,m,u,a,r,e,i,l,s,d,g){if(s===0)return!1;var y=s;if(g>m+y&&g>a+y&&g>e+y&&g>l+y||gp+y&&d>u+y&&d>r+y&&d>i+y||d=0||N.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;o.setState({goInputText:""}),_(o.getValidValue())},o.go=function(N){var A=o.state.goInputText;if(A==="")return;(N.keyCode===y.ENTER||N.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(u.a)(c,[{key:"getValidValue",value:function(){var n=this.state,B=n.goInputText,k=n.current;return!B||isNaN(B)?k:Number(B)}},{key:"getPageSizeOptions",value:function(){var n=this.props,B=n.pageSize,k=n.pageSizeOptions;return k.some(function(N){return N.toString()===B.toString()})?k:k.concat([B.toString()]).sort(function(N,A){var U=isNaN(Number(N))?0:Number(N),_=isNaN(Number(A))?0:Number(A);return U-_})}},{key:"render",value:function(){var n=this,B=this.props,k=B.pageSize,N=B.locale,A=B.rootPrefixCls,U=B.changeSize,_=B.quickGo,K=B.goButton,J=B.selectComponentClass,Z=B.buildOptionText,Y=B.selectPrefixCls,H=B.disabled,x=this.state.goInputText,V="".concat(A,"-options"),G=J,oe=null,ee=null,X=null;if(!U&&!_)return null;var q=this.getPageSizeOptions();if(U&&G){var se=q.map(function(ae,ve){return i.a.createElement(G.Option,{key:ve,value:ae.toString()},(Z||n.buildOptionText)(ae))});oe=i.a.createElement(G,{disabled:H,prefixCls:Y,showSearch:!1,className:"".concat(V,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||q[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ve){return ve.parentNode}},se)}return _&&(K&&(X=typeof K=="boolean"?i.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:H,className:"".concat(V,"-quick-jumper-button")},N.jump_to_confirm):i.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),ee=i.a.createElement("div",{className:"".concat(V,"-quick-jumper")},N.jump_to,i.a.createElement("input",{disabled:H,type:"text",value:x,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),N.page,X)),i.a.createElement("li",{className:"".concat(V)},oe,ee)}}]),c}(i.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var T=b,P=t("N2Kk");function I(){}function v(Q){return typeof Q=="number"&&isFinite(Q)&&Math.floor(Q)===Q}function E(Q,M,c){return c}function h(Q,M,c){var o=typeof Q=="undefined"?M.pageSize:Q;return Math.floor((c.total-1)/o)+1}var D=function(Q){Object(a.a)(c,Q);var M=Object(r.a)(c);function c(o){var n;Object(m.a)(this,c),n=M.call(this,o),n.getJumpPrevPage=function(){return Math.max(1,n.state.current-(n.props.showLessItems?3:5))},n.getJumpNextPage=function(){return Math.min(h(void 0,n.state,n.props),n.state.current+(n.props.showLessItems?3:5))},n.getItemIcon=function(U,_){var K=n.props.prefixCls,J=U||i.a.createElement("button",{type:"button","aria-label":_,className:"".concat(K,"-item-link")});return typeof U=="function"&&(J=i.a.createElement(U,Object(p.a)({},n.props))),J},n.savePaginationNode=function(U){n.paginationNode=U},n.isValid=function(U){return v(U)&&U!==n.state.current},n.shouldDisplayQuickJumper=function(){var U=n.props,_=U.showQuickJumper,K=U.pageSize,J=U.total;return J<=K?!1:_},n.handleKeyDown=function(U){(U.keyCode===y.ARROW_UP||U.keyCode===y.ARROW_DOWN)&&U.preventDefault()},n.handleKeyUp=function(U){var _=n.getValidValue(U),K=n.state.currentInputValue;_!==K&&n.setState({currentInputValue:_}),U.keyCode===y.ENTER?n.handleChange(_):U.keyCode===y.ARROW_UP?n.handleChange(_-1):U.keyCode===y.ARROW_DOWN&&n.handleChange(_+1)},n.changePageSize=function(U){var _=n.state.current,K=h(U,n.state,n.props);_=_>K?K:_,K===0&&(_=n.state.current),typeof U=="number"&&("pageSize"in n.props||n.setState({pageSize:U}),"current"in n.props||n.setState({current:_,currentInputValue:_})),n.props.onShowSizeChange(_,U),"onChange"in n.props&&n.props.onChange&&n.props.onChange(_,U)},n.handleChange=function(U){var _=n.props.disabled,K=U;if(n.isValid(K)&&!_){var J=h(void 0,n.state,n.props);K>J?K=J:K<1&&(K=1),"current"in n.props||n.setState({current:K,currentInputValue:K});var Z=n.state.pageSize;return n.props.onChange(K,Z),K}return n.state.current},n.prev=function(){n.hasPrev()&&n.handleChange(n.state.current-1)},n.next=function(){n.hasNext()&&n.handleChange(n.state.current+1)},n.jumpPrev=function(){n.handleChange(n.getJumpPrevPage())},n.jumpNext=function(){n.handleChange(n.getJumpNextPage())},n.hasPrev=function(){return n.state.current>1},n.hasNext=function(){return n.state.current2?K-2:0),Z=2;Z=k?A=k:A=Number(B),A}},{key:"getShowSizeChanger",value:function(){var n=this.props,B=n.showSizeChanger,k=n.total,N=n.totalBoundaryShowSizeChanger;return typeof B!="undefined"?B:k>N}},{key:"renderPrev",value:function(n){var B=this.props,k=B.prevIcon,N=B.itemRender,A=N(n,"prev",this.getItemIcon(k,"prev page")),U=!this.hasPrev();return Object(e.isValidElement)(A)?Object(e.cloneElement)(A,{disabled:U}):A}},{key:"renderNext",value:function(n){var B=this.props,k=B.nextIcon,N=B.itemRender,A=N(n,"next",this.getItemIcon(k,"next page")),U=!this.hasNext();return Object(e.isValidElement)(A)?Object(e.cloneElement)(A,{disabled:U}):A}},{key:"render",value:function(){var n=this,B=this.props,k=B.prefixCls,N=B.className,A=B.style,U=B.disabled,_=B.hideOnSinglePage,K=B.total,J=B.locale,Z=B.showQuickJumper,Y=B.showLessItems,H=B.showTitle,x=B.showTotal,V=B.simple,G=B.itemRender,oe=B.showPrevNextJumpers,ee=B.jumpPrevIcon,X=B.jumpNextIcon,q=B.selectComponentClass,se=B.selectPrefixCls,ae=B.pageSizeOptions,ve=this.state,W=ve.current,re=ve.pageSize,R=ve.currentInputValue;if(_===!0&&K<=re)return null;var $=h(void 0,this.state,this.props),fe=[],F=null,C=null,S=null,z=null,te=null,de=Z&&Z.goButton,he=Y?1:2,Me=W-1>0?W-1:0,ce=W+1<$?W+1:$,be=Object.keys(this.props).reduce(function(ut,ct){return(ct.substr(0,5)==="data-"||ct.substr(0,5)==="aria-"||ct==="role")&&(ut[ct]=n.props[ct]),ut},{});if(V)return de&&(typeof de=="boolean"?te=i.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},J.jump_to_confirm):te=i.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de),te=i.a.createElement("li",{title:H?"".concat(J.jump_to).concat(W,"/").concat($):null,className:"".concat(k,"-simple-pager")},te)),i.a.createElement("ul",Object(O.a)({className:s()(k,"".concat(k,"-simple"),Object(f.a)({},"".concat(k,"-disabled"),U),N),style:A,ref:this.savePaginationNode},be),i.a.createElement("li",{title:H?J.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:s()("".concat(k,"-prev"),Object(f.a)({},"".concat(k,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Me)),i.a.createElement("li",{title:H?"".concat(W,"/").concat($):null,className:"".concat(k,"-simple-pager")},i.a.createElement("input",{type:"text",value:R,disabled:U,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),i.a.createElement("span",{className:"".concat(k,"-slash")},"/"),$),i.a.createElement("li",{title:H?J.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:s()("".concat(k,"-next"),Object(f.a)({},"".concat(k,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ce)),te);if($<=3+he*2){var Ae={locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:H,itemRender:G};$||fe.push(i.a.createElement(g,Object(O.a)({},Ae,{key:"noPager",page:$,className:"".concat(k,"-disabled")})));for(var ye=1;ye<=$;ye+=1){var ke=W===ye;fe.push(i.a.createElement(g,Object(O.a)({},Ae,{key:ye,page:ye,active:ke})))}}else{var Se=Y?J.prev_3:J.prev_5,Ne=Y?J.next_3:J.next_5;oe&&(F=i.a.createElement("li",{title:H?Se:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:s()("".concat(k,"-jump-prev"),Object(f.a)({},"".concat(k,"-jump-prev-custom-icon"),!!ee))},G(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ee,"prev page"))),C=i.a.createElement("li",{title:H?Ne:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:s()("".concat(k,"-jump-next"),Object(f.a)({},"".concat(k,"-jump-next-custom-icon"),!!X))},G(this.getJumpNextPage(),"jump-next",this.getItemIcon(X,"next page")))),z=i.a.createElement(g,{locale:J,last:!0,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$,page:$,active:!1,showTitle:H,itemRender:G}),S=i.a.createElement(g,{locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:H,itemRender:G});var Ue=Math.max(1,W-he),$e=Math.min(W+he,$);W-1<=he&&($e=1+he*2),$-W<=he&&(Ue=$-he*2);for(var We=Ue;We<=$e;We+=1){var nt=W===We;fe.push(i.a.createElement(g,{locale:J,rootPrefixCls:k,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:We,page:We,active:nt,showTitle:H,itemRender:G}))}W-1>=he*2&&W!==1+2&&(fe[0]=Object(e.cloneElement)(fe[0],{className:"".concat(k,"-item-after-jump-prev")}),fe.unshift(F)),$-W>=he*2&&W!==$-2&&(fe[fe.length-1]=Object(e.cloneElement)(fe[fe.length-1],{className:"".concat(k,"-item-before-jump-next")}),fe.push(C)),Ue!==1&&fe.unshift(S),$e!==$&&fe.push(z)}var et=null;x&&(et=i.a.createElement("li",{className:"".concat(k,"-total-text")},x(K,[K===0?0:(W-1)*re+1,W*re>K?K:W*re])));var Xe=!this.hasPrev()||!$,st=!this.hasNext()||!$;return i.a.createElement("ul",Object(O.a)({className:s()(k,N,Object(f.a)({},"".concat(k,"-disabled"),U)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},be),et,i.a.createElement("li",{title:H?J.prev_page:null,onClick:this.prev,tabIndex:Xe?null:0,onKeyPress:this.runIfEnterPrev,className:s()("".concat(k,"-prev"),Object(f.a)({},"".concat(k,"-disabled"),Xe)),"aria-disabled":Xe},this.renderPrev(Me)),fe,i.a.createElement("li",{title:H?J.next_page:null,onClick:this.next,tabIndex:st?null:0,onKeyPress:this.runIfEnterNext,className:s()("".concat(k,"-next"),Object(f.a)({},"".concat(k,"-disabled"),st)),"aria-disabled":st},this.renderNext(ce)),i.a.createElement(T,{disabled:U,locale:J,rootPrefixCls:k,selectComponentClass:q,selectPrefixCls:se,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:W,pageSize:re,pageSizeOptions:ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(n,B){var k={};if("current"in n&&(k.current=n.current,n.current!==B.current&&(k.currentInputValue=k.current)),"pageSize"in n&&n.pageSize!==B.pageSize){var N=B.current,A=h(n.pageSize,B,n);N=N>A?A:N,"current"in n||(k.current=N,k.currentInputValue=N),k.pageSize=n.pageSize}return k}}]),c}(i.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:I,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:I,locale:P.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var j=D},"6GrX":function(ie,w,t){var O=t("mFDi"),f=t("Xnb7"),p=t("bYtY"),m=p.getContext,u=p.extend,a=p.retrieve2,r=p.retrieve3,e=p.trim,i={},l=0,s=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",y={};function b(_,K){y[_]=K}function T(_,K){K=K||g;var J=_+":"+K;if(i[J])return i[J];for(var Z=(_+"").split(` +`),Y=0,H=0,x=Z.length;Hs&&(l=0,i={}),l++,i[J]=Y,Y}function P(_,K,J,Z,Y,H,x,V){return x?v(_,K,J,Z,Y,H,x,V):I(_,K,J,Z,Y,H,V)}function I(_,K,J,Z,Y,H,x){var V=k(_,K,Y,H,x),G=T(_,K);Y&&(G+=Y[1]+Y[3]);var oe=V.outerHeight,ee=E(0,G,J),X=h(0,oe,Z),q=new O(ee,X,G,oe);return q.lineHeight=V.lineHeight,q}function v(_,K,J,Z,Y,H,x,V){var G=N(_,{rich:x,truncate:V,font:K,textAlign:J,textPadding:Y,textLineHeight:H}),oe=G.outerWidth,ee=G.outerHeight,X=E(0,oe,J),q=h(0,ee,Z);return new O(X,q,oe,ee)}function E(_,K,J){return J==="right"?_-=K:J==="center"&&(_-=K/2),_}function h(_,K,J){return J==="middle"?_-=K/2:J==="bottom"&&(_-=K),_}function D(_,K,J){var Z=K.textPosition,Y=K.textDistance,H=J.x,x=J.y;Y=Y||0;var V=J.height,G=J.width,oe=V/2,ee="left",X="top";switch(Z){case"left":H-=Y,x+=oe,ee="right",X="middle";break;case"right":H+=Y+G,x+=oe,X="middle";break;case"top":H+=G/2,x-=Y,ee="center",X="bottom";break;case"bottom":H+=G/2,x+=V+Y,ee="center";break;case"inside":H+=G/2,x+=oe,ee="center",X="middle";break;case"insideLeft":H+=Y,x+=oe,X="middle";break;case"insideRight":H+=G-Y,x+=oe,ee="right",X="middle";break;case"insideTop":H+=G/2,x+=Y,ee="center";break;case"insideBottom":H+=G/2,x+=V-Y,ee="center",X="bottom";break;case"insideTopLeft":H+=Y,x+=Y;break;case"insideTopRight":H+=G-Y,x+=Y,ee="right";break;case"insideBottomLeft":H+=Y,x+=V-Y,X="bottom";break;case"insideBottomRight":H+=G-Y,x+=V-Y,ee="right",X="bottom";break}return _=_||{},_.x=H,_.y=x,_.textAlign=ee,_.textVerticalAlign=X,_}function j(_,K,J){var Z={textPosition:_,textDistance:J};return D({},Z,K)}function Q(_,K,J,Z,Y){if(!K)return"";var H=(_+"").split(` `);Y=M(K,J,Z,Y);for(var x=0,V=H.length;x=H;V++)x-=H;var G=D(J,K);return G>x&&(J="",G=0),x=_-G,Z.ellipsis=J,Z.ellipsisWidth=G,Z.contentWidth=x,Z.containerWidth=_,Z}function c(_,K){var J=K.containerWidth,Z=K.font,Y=K.contentWidth;if(!J)return"";var H=D(_,Z);if(H<=J)return _;for(var x=0;;x++){if(H<=Y||x>=K.maxIterations){_+=K.ellipsis;break}var V=x===0?o(_,Y,K.ascCharWidth,K.cnCharWidth):H>0?Math.floor(_.length*Y/H):0;_=_.substr(0,V),H=D(_,Z)}return _===""&&(_=K.placeholder),_}function o(_,K,J,Z){for(var Y=0,H=0,x=_.length;Hee)_="",x=[];else if(X!=null)for(var q=M(X-(J?J[1]+J[3]:0),K,Y.ellipsis,{minChar:Y.minChar,placeholder:Y.placeholder}),se=0,ae=x.length;seZ&&A(J,_.substring(Z,H)),A(J,Y[2],Y[1]),Z=d.lastIndex}Z<_.length&&A(J,_.substring(Z,_.length));var x=J.lines,V=0,G=0,oe=[],ee=K.textPadding,X=K.truncate,q=X&&X.outerWidth,se=X&&X.outerHeight;ee&&(q!=null&&(q-=ee[1]+ee[3]),se!=null&&(se-=ee[0]+ee[2]));for(var ae=0;aese)return{lines:[],width:0,height:0};$.textWidth=D($.text,C);var z=fe.textWidth,te=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")$.percentWidth=z,oe.push($),z=0;else{if(te){z=$.textWidth;var de=fe.textBackgroundColor,he=de&&de.image;he&&(he=f.findExistImage(he),f.isImageReady(he)&&(z=Math.max(z,he.width*S/he.height)))}var Me=F?F[1]+F[3]:0;z+=Me;var ce=q!=null?q-re:null;ce!=null&&ce=0&&o.splice(n,1),M.__hoverMir=null},clearHover:function(M){for(var c=this._hoverElements,o=0;o15)break}}k.__drawIndex=x,k.__drawIndex0&&M>n[0]){for(N=0;NM);N++);k=o[n[N]]}if(n.splice(N+1,0,M),o[M]=c,!c.virtual)if(k){var U=k.dom;U.nextSibling?A.insertBefore(c.dom,U.nextSibling):A.appendChild(c.dom)}else A.firstChild?A.insertBefore(c.dom,A.firstChild):A.appendChild(c.dom)},eachLayer:function(M,c){var o=this._zlevelList,n,B;for(B=0;B0?g:0),this._needsManuallyCompositing),U.__builtin__||m("ZLevel "+A+" has been used by unkown layer "+U.id),U!==B&&(U.__used=!0,U.__startIndex!==o&&(U.__dirty=!0),U.__startIndex=o,U.incremental?U.__drawIndex=-1:U.__drawIndex=o,c(o),B=U),n.__dirty&&(U.__dirty=!0,U.incremental&&U.__drawIndex<0&&(U.__drawIndex=o))}c(o),this.eachBuiltinLayer(function(_,K){!_.__used&&_.getElementCount()>0&&(_.__dirty=!0,_.__startIndex=_.__endIndex=_.__drawIndex=0),_.__dirty&&_.__drawIndex<0&&(_.__drawIndex=_.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(M){M.clear()},setBackgroundColor:function(M){this._backgroundColor=M},configLayer:function(M,c){if(c){var o=this._layerConfig;o[M]?p.merge(o[M],c,!0):o[M]=c;for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:[],D=new Map;function P(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(E){var h=E.key,T=E.children;Object(u.a)(h!=null,"Tree node must have a certain key: [".concat(v).concat(h,"]"));var j=String(h);Object(u.a)(!D.has(j)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(j)),D.set(j,!0),P(T,"".concat(v).concat(j," > "))})}P(b)}function i(b){function D(P){var I=Object(m.a)(P);return I.map(function(v){if(!Object(a.i)(v))return Object(u.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var E=v.key,h=v.props,T=h.children,j=Object(p.a)(h,["children"]),Q=Object(f.a)({key:E},j),M=D(T);return M.length&&(Q.children=M),Q}).filter(function(v){return v})}return D(b)}function l(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=new Set(D===!0?[]:D),I=[];function v(E){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return E.map(function(T,j){var Q=Object(a.h)(h?h.pos:"0",j),M=r(T.key,Q),c=Object(f.a)(Object(f.a)({},T),{},{parent:h,pos:Q,children:null,data:T,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[j===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[j===E.length-1])});return I.push(c),D===!0||P.has(M)?c.children=v(T.children||[],c):c.children=[],c})}return v(b),I}function s(b,D,P){var I;P?typeof P=="string"?I=function(h){return h[P]}:typeof P=="function"&&(I=function(h){return P(h)}):I=function(h,T){return r(h.key,T)};function v(E,h,T){var j=E?E.children:b,Q=E?Object(a.h)(T.pos,h):"0";if(E){var M=I(E,Q),c={node:E,index:h,pos:Q,key:M,parentPos:T.node?T.pos:null,level:T.level+1};D(c)}j&&j.forEach(function(o,n){v(o,n,{node:E,pos:Q,level:T?T.level+1:-1})})}v(null)}function d(b){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=D.initWrapper,I=D.processEntity,v=D.onProcessFinished,E=arguments.length>2?arguments[2]:void 0,h={},T={},j={posEntities:h,keyEntities:T};return P&&(j=P(j)||j),s(b,function(Q){var M=Q.node,c=Q.index,o=Q.pos,n=Q.key,B=Q.parentPos,k=Q.level,N={node:M,index:c,key:n,pos:o,level:k},A=r(n,o);h[o]=N,T[A]=N,N.parent=h[B],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),I&&I(N,j)},E),v&&v(j),j}function g(b,D){var P=D.expandedKeys,I=D.selectedKeys,v=D.loadedKeys,E=D.loadingKeys,h=D.checkedKeys,T=D.halfCheckedKeys,j=D.dragOverNodeKey,Q=D.dropPosition,M=D.keyEntities,c=M[b],o={eventKey:b,expanded:P.indexOf(b)!==-1,selected:I.indexOf(b)!==-1,loaded:v.indexOf(b)!==-1,loading:E.indexOf(b)!==-1,checked:h.indexOf(b)!==-1,halfChecked:T.indexOf(b)!==-1,pos:String(c?c.pos:""),dragOver:j===b&&Q===0,dragOverGapTop:j===b&&Q===-1,dragOverGapBottom:j===b&&Q===1};return o}function y(b){var D=b.data,P=b.expanded,I=b.selected,v=b.checked,E=b.loaded,h=b.loading,T=b.halfChecked,j=b.dragOver,Q=b.dragOverGapTop,M=b.dragOverGapBottom,c=b.pos,o=b.active,n=Object(f.a)(Object(f.a)({},D),{},{expanded:P,selected:I,checked:v,loaded:E,loading:h,halfChecked:T,dragOver:j,dragOverGapTop:Q,dragOverGapBottom:M,pos:c,active:o});return"props"in n||Object.defineProperty(n,"props",{get:function(){return Object(u.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),b}}),n}},"8Jsi":function(ie,w,t){"use strict";t.d(w,"d",function(){return B}),t.d(w,"a",function(){return R}),t.d(w,"b",function(){return fe}),t.d(w,"c",function(){return $});var O=t("1OyB"),f=t("vuIU"),p=t("Ji7U"),m=t("LK+K"),u=t("KQm4"),a=t("U8pU"),r=t("ODXe"),e=t("VTBJ"),i=t("q1tI"),l=t("qNPg"),s=t("2Qr1"),d=t("815F"),g=t("NvD2"),y=t("wPlo"),b=t("6cGi"),D=t("Kwbf"),P=t("4IlW"),I=t("YrtM"),v=t("fAei"),E=i.createContext(null);function h(ce,be){if(!ce)return!0;var Ae=ce.data,ye=Ae.disabled,ke=Ae.disableCheckbox;switch(be){case"select":return ye;case"checkbox":return ye||ke}return!1}function T(ce,be){var Ae=i.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,Ue=ce.get(ke);return!Ne&&h(Ue,Se)?null:Ue},[ce]),ye=i.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,Ue=be.get(ke);return!Ne&&h(Ue,Se)?null:Ue},[be]);return[Ae,ye]}function j(ce){return i.useMemo(function(){var be=new Map,Ae=new Map;return ce.forEach(function(ye){be.set(ye.key,ye),Ae.set(ye.data.value,ye)}),[be,Ae]},[ce])}var Q={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(be,Ae){var ye=be.prefixCls,ke=be.height,Se=be.itemHeight,Ne=be.virtual,Ue=be.options,$e=be.flattenOptions,We=be.multiple,nt=be.searchValue,et=be.onSelect,Xe=be.onToggleOpen,st=be.open,ut=be.notFoundContent,ct=be.onMouseEnter,Ze=i.useContext(E),bt=Ze.checkable,lt=Ze.checkedKeys,Et=Ze.halfCheckedKeys,jt=Ze.treeExpandedKeys,Qt=Ze.treeDefaultExpandAll,Gt=Ze.treeDefaultExpandedKeys,rn=Ze.onTreeExpand,ze=Ze.treeIcon,Ce=Ze.showTreeIcon,Oe=Ze.switcherIcon,ge=Ze.treeLine,ne=Ze.treeNodeFilterProp,le=Ze.loadData,we=Ze.treeLoadedKeys,xe=Ze.treeMotion,Re=Ze.onTreeLoad,je=i.useRef(),De=Object(I.a)(function(){return Ue},[st,Ue],function(Tt,mt){return mt[0]&&Tt[1]!==mt[1]}),Le=j($e),Fe=Object(r.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=T(dt,tt),At=Object(r.a)(Ct,2),Ht=At[0],en=At[1],Ge=i.useMemo(function(){return lt.map(function(Tt){var mt=en(Tt);return mt?mt.key:null})},[lt]),gt=i.useMemo(function(){return bt?{checked:Ge,halfChecked:Et}:null},[Ge,Et,bt]);i.useEffect(function(){if(st&&!We&&Ge.length){var Tt;(Tt=je.current)===null||Tt===void 0||Tt.scrollTo({key:Ge[0]})}},[st]);var xt=String(nt).toLowerCase(),Lt=function(mt){return xt?String(mt[ne]).toLowerCase().includes(xt):!1},Ot=i.useState(Gt),Dt=Object(r.a)(Ot,2),Bt=Dt[0],Xt=Dt[1],an=i.useState(null),Jt=Object(r.a)(an,2),Ut=Jt[0],Ft=Jt[1],$t=i.useMemo(function(){return jt?Object(u.a)(jt):nt?Ut:Bt},[Bt,Ut,xt,jt]);i.useEffect(function(){nt&&Ft($e.map(function(Tt){return Tt.key}))},[nt]);var Sn=function(mt){Xt(mt),Ft(mt),rn&&rn(mt)},ir=function(mt){mt.preventDefault()},Nn=function(mt,St){var Mt=St.node.key,Yt=Ht(Mt,bt?"checkbox":"select");Yt!==null&&et(Yt.data.value,{selected:!lt.includes(Yt.data.value)}),We||Xe(!1)},Kn=i.useState(null),it=Object(r.a)(Kn,2),wt=it[0],Zt=it[1],Cn=Ht(wt);if(i.useImperativeHandle(Ae,function(){return{onKeyDown:function(mt){var St,Mt=mt.which;switch(Mt){case P.a.UP:case P.a.DOWN:case P.a.LEFT:case P.a.RIGHT:(St=je.current)===null||St===void 0||St.onKeyDown(mt);break;case P.a.ENTER:{Cn!==null&&Nn(null,{node:{key:wt},selected:!lt.includes(Cn.data.value)});break}case P.a.ESC:Xe(!1)}},onKeyUp:function(){}}}),De.length===0)return i.createElement("div",{role:"listbox",className:"".concat(ye,"-empty"),onMouseDown:ir},ut);var zt={};return we&&(zt.loadedKeys=we),$t&&(zt.expandedKeys=$t),i.createElement("div",{onMouseDown:ir,onMouseEnter:ct},Cn&&st&&i.createElement("span",{style:Q,"aria-live":"assertive"},Cn.data.value),i.createElement(v.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(ye,"-tree"),treeData:De,height:ke,itemHeight:Se,virtual:Ne,multiple:We,icon:ze,showIcon:Ce,switcherIcon:Oe,showLine:ge,loadData:nt?null:le,motion:xe,checkable:bt,checkStrictly:!0,checkedKeys:gt,selectedKeys:bt?[]:Ge,defaultExpandAll:Qt},zt,{onActiveChange:Zt,onSelect:Nn,onCheck:Nn,onExpand:Sn,onLoad:Re,filterTreeNode:Lt})))},c=i.forwardRef(M);c.displayName="OptionList";var o=c,n=function(){return null},B=n,k=t("Ff2n"),N=t("Zm9Q");function A(ce){return Object(N.a)(ce).map(function(be){if(!i.isValidElement(be)||!be.type)return null;var Ae=be.key,ye=be.props,ke=ye.children,Se=ye.value,Ne=Object(k.a)(ye,["children","value"]),Ue=Object(e.a)({key:Ae,value:Se},Ne),$e=A(ke);return $e.length&&(Ue.children=$e),Ue}).filter(function(be){return be})}function U(ce){if(!ce)return ce;var be=Object(e.a)({},ce);return"props"in be||Object.defineProperty(be,"props",{get:function(){return Object(D.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),be}}),be}function _(ce,be,Ae,ye,ke){var Se=null,Ne=null;function Ue(){function $e(We){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return We.map(function(Xe,st){var ut="".concat(nt,"-").concat(st),ct=Ae.includes(Xe.value),Ze=$e(Xe.children||[],ut,ct),bt=i.createElement(B,Object.assign({},Xe),Ze.map(function(Et){return Et.node}));if(be===Xe.value&&(Se=bt),ct){var lt={pos:ut,node:bt,children:Ze};return et||Ne.push(lt),lt}return null}).filter(function(Xe){return Xe})}Ne||(Ne=[],$e(ye),Ne.sort(function(We,nt){var et=We.node.props.value,Xe=nt.node.props.value,st=Ae.indexOf(et),ut=Ae.indexOf(Xe);return st-ut}))}Object.defineProperty(ce,"triggerNode",{get:function(){return Object(D.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ue(),Se}}),Object.defineProperty(ce,"allCheckedNodes",{get:function(){return Object(D.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ue(),ke?Ne:Ne.map(function(We){var nt=We.node;return nt})}})}function K(ce){return Array.isArray(ce)?ce:ce!==void 0?[ce]:[]}function J(ce,be){var Ae=new Map;return be.forEach(function(ye){var ke=ye.data;Ae.set(ke.value,ke)}),ce.map(function(ye){return U(Ae.get(ye))})}function Z(ce,be){var Ae=J([ce],be)[0];return Ae?Ae.disabled:!1}function Y(ce){return ce.disabled||ce.disableCheckbox||ce.checkable===!1}function H(ce){for(var be=ce.parent,Ae=0,ye=be;ye;)ye=ye.parent,Ae+=1;return Ae}function x(ce){function be(ye){return(ye||[]).map(function(ke){var Se=ke.value,Ne=ke.key,Ue=ke.children,$e=Object(e.a)(Object(e.a)({},ke),{},{key:"key"in ke?Ne:Se});return Ue&&($e.children=be(Ue)),$e})}var Ae=Object(d.d)(be(ce),!0);return Ae.map(function(ye){return{key:ye.data.key,data:ye.data,level:H(ye)}})}function V(ce){return function(be,Ae){var ye=Ae[ce];return String(ye).toLowerCase().includes(String(be).toLowerCase())}}function G(ce,be,Ae){var ye=Ae.optionFilterProp,ke=Ae.filterOption;if(ke===!1)return be;var Se;typeof ke=="function"?Se=ke:Se=V(ye);function Ne(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ue.map(function(We){var nt=We.children,et=$e||Se(ce,U(We)),Xe=Ne(nt||[],et);return et||Xe.length?Object(e.a)(Object(e.a)({},We),{},{children:Xe}):null}).filter(function(We){return We})}return Ne(be)}function oe(ce,be,Ae,ye){var ke=new Map;return K(be).forEach(function(Se){Se&&Object(a.a)(Se)==="object"&&"value"in Se&&ke.set(Se.value,Se)}),ce.map(function(Se){var Ne={value:Se},Ue=Ae(Se,"select",!0),$e=Ue?ye(Ue.data):Se;if(ke.has(Se)){var We=ke.get(Se);Ne.label="label"in We?We.label:$e,"halfChecked"in We&&(Ne.halfChecked=We.halfChecked)}else Ne.label=$e;return Ne})}function ee(ce,be){var Ae=new Set(ce);return Ae.add(be),Array.from(Ae)}function X(ce,be){var Ae=new Set(ce);return Ae.delete(be),Array.from(Ae)}function q(ce){var be=ce.searchPlaceholder,Ae=ce.treeCheckStrictly,ye=ce.treeCheckable,ke=ce.labelInValue,Se=ce.value,Ne=ce.multiple;Object(D.a)(!be,"`searchPlaceholder` has been removed."),Ae&&ke===!1&&Object(D.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ke||Ae)&&Object(D.a)(K(Se).every(function(Ue){return Ue&&Object(a.a)(Ue)==="object"&&"value"in Ue}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ae||Ne||ye?Object(D.a)(!Se||Array.isArray(Se),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(D.a)(!Array.isArray(Se),"`value` should not be array when `TreeSelect` is single mode.")}var se=q,ae=10;function ve(ce,be){var Ae=be.id,ye=be.pId,ke=be.rootPId,Se={},Ne=[],Ue=ce.map(function($e){var We=Object(e.a)({},$e),nt=We[Ae];return Se[nt]=We,We.key=We.key||nt,We});return Ue.forEach(function($e){var We=$e[ye],nt=Se[We];nt&&(nt.children=nt.children||[],nt.children.push($e)),(We===ke||!nt&&ke===null)&&Ne.push($e)}),Ne}function W(ce,be){var Ae=0,ye=new Set;function ke(Se){return(Se||[]).map(function(Ne){var Ue=Ne.key,$e=Ne.value,We=Ne.children,nt=Object(k.a)(Ne,["key","value","children"]),et="value"in Ne?$e:Ue,Xe=Object(e.a)(Object(e.a)({},nt),{},{key:Ue!=null?Ue:et,value:et,title:be(Ne)});return"children"in Ne&&(Xe.children=ke(We)),Xe})}return ke(ce)}function re(ce,be,Ae){var ye=Ae.getLabelProp,ke=Ae.simpleMode,Se=i.useRef({});return ce?(Se.current.formatTreeData=Se.current.treeData===ce?Se.current.formatTreeData:W(ke?ve(ce,Object(e.a)({id:"id",pId:"pId",rootPId:null},ke!==!0?ke:{})):ce,ye),Se.current.treeData=ce):Se.current.formatTreeData=Se.current.children===be?Se.current.formatTreeData:W(A(be),ye),Se.current.formatTreeData}var R="SHOW_ALL",$="SHOW_PARENT",fe="SHOW_CHILD";function F(ce,be,Ae){var ye=new Set(ce);return be===fe?ce.filter(function(ke){var Se=Ae[ke];return!(Se&&Se.children&&Se.children.every(function(Ne){var Ue=Ne.node;return Y(Ue)||ye.has(Ue.key)}))}):be===$?ce.filter(function(ke){var Se=Ae[ke],Ne=Se?Se.parent:null;return!(Ne&&!Y(Ne.node)&&ye.has(Ne.node.key))}):ce}function C(ce,be){var Ae=be.value,ye=be.getEntityByValue,ke=be.getEntityByKey,Se=be.treeConduction,Ne=be.showCheckedStrategy,Ue=be.conductKeyEntities,$e=be.getLabelProp;return i.useMemo(function(){var We=ce;if(Se){var nt=F(ce.map(function(et){var Xe=ye(et);return Xe?Xe.key:et}),Ne,Ue);We=nt.map(function(et){var Xe=ke(et);return Xe?Xe.data.value:et})}return oe(We,Ae,ye,$e)},[ce,Ae,Se,Ne,ye])}var S=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],z=Object(l.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:x,getLabeledValue:s.e,filterOptions:G,isValueDisabled:Z,findValueOption:J,omitDOMProps:function(be){var Ae=Object(e.a)({},be);return S.forEach(function(ye){delete Ae[ye]}),Ae}});z.displayName="Select";var te=i.forwardRef(function(ce,be){var Ae=ce.multiple,ye=ce.treeCheckable,ke=ce.treeCheckStrictly,Se=ce.showCheckedStrategy,Ne=Se===void 0?"SHOW_CHILD":Se,Ue=ce.labelInValue,$e=ce.loadData,We=ce.treeLoadedKeys,nt=ce.treeNodeFilterProp,et=nt===void 0?"value":nt,Xe=ce.treeNodeLabelProp,st=ce.treeDataSimpleMode,ut=ce.treeData,ct=ce.treeExpandedKeys,Ze=ce.treeDefaultExpandedKeys,bt=ce.treeDefaultExpandAll,lt=ce.children,Et=ce.treeIcon,jt=ce.showTreeIcon,Qt=ce.switcherIcon,Gt=ce.treeLine,rn=ce.treeMotion,ze=ce.filterTreeNode,Ce=ce.dropdownPopupAlign,Oe=ce.onChange,ge=ce.onTreeExpand,ne=ce.onTreeLoad,le=ce.onDropdownVisibleChange,we=ce.onSelect,xe=ce.onDeselect,Re=ye||ke,je=Ae||Re,De=ye&&!ke,Le=ke||Ue,Fe=i.useRef(null);i.useImperativeHandle(be,function(){return{focus:Fe.current.focus,blur:Fe.current.blur}});var dt=function(Mt){return ut&&Mt.label||Mt.title},tt=function(Mt){return Xe?Mt[Xe]:dt(Mt)},Ct=re(ut,lt,{getLabelProp:dt,simpleMode:st}),At=Object(i.useMemo)(function(){return x(Ct)},[Ct]),Ht=j(At),en=Object(r.a)(Ht,2),Ge=en[0],gt=en[1],xt=T(Ge,gt),Lt=Object(r.a)(xt,2),Ot=Lt[0],Dt=Lt[1],Bt=Object(i.useMemo)(function(){return De?Object(d.a)(Ct):{keyEntities:null}},[Ct,ye,ke]),Xt=Bt.keyEntities,an=Object(b.a)(ce.defaultValue,{value:ce.value}),Jt=Object(r.a)(an,2),Ut=Jt[0],Ft=Jt[1],$t=function(Mt){var Yt=[],on=[];return Mt.forEach(function(mn){Dt(mn)?on.push(mn):Yt.push(mn)}),{missingRawValues:Yt,existRawValues:on}},Sn=Object(i.useMemo)(function(){var St=[],Mt=[];if(K(Ut).forEach(function(ln){if(ln&&Object(a.a)(ln)==="object"&&"value"in ln)if(ln.halfChecked&&ke){var Vn=Dt(ln.value);St.push(Vn?Vn.key:ln.value)}else Mt.push(ln.value);else Mt.push(ln)}),De){var Yt=$t(Mt),on=Yt.missingRawValues,mn=Yt.existRawValues,qt=mn.map(function(ln){return Dt(ln).key}),On=Object(g.a)(qt,!0,Xt),sr=On.checkedKeys,lr=On.halfCheckedKeys;return[[].concat(Object(u.a)(on),Object(u.a)(sr.map(function(ln){return Ot(ln).data.value}))),lr]}return[Mt,St]},[Ut,je,Le,ye,ke]),ir=Object(r.a)(Sn,2),Nn=ir[0],Kn=ir[1],it=C(Nn,{treeConduction:De,value:Ut,showCheckedStrategy:Ne,conductKeyEntities:Xt,getEntityByValue:Dt,getEntityByKey:Ot,getLabelProp:tt}),wt=function(Mt,Yt,on){if(Ft(je?Mt:Mt[0]),Oe){var mn=Mt;if(De&&Ne!=="SHOW_ALL"){var qt=Mt.map(function(_n){var Hn=Dt(_n);return Hn?Hn.key:_n}),On=F(qt,Ne,Xt);mn=On.map(function(_n){var Hn=Ot(_n);return Hn?Hn.data.value:_n})}var sr=Yt||{triggerValue:void 0,selected:void 0},lr=sr.triggerValue,ln=sr.selected,Vn=Le?oe(mn,Ut,Dt,tt):mn;if(ke){var Dr=Kn.map(function(_n){var Hn=Ot(_n);return Hn?Hn.data.value:_n}).filter(function(_n){return!mn.includes(_n)});Vn=[].concat(Object(u.a)(Vn),Object(u.a)(oe(Dr,Ut,Dt,tt)))}var jn={preValue:it,triggerValue:lr},Fr=!0;(ke||on==="selection"&&!ln)&&(Fr=!1),_(jn,lr,Mt,Ct,Fr),Re?jn.checked=ln:jn.selected=ln,Oe(je?Vn:Vn[0],Le?null:mn.map(function(_n){var Hn=Dt(_n);return Hn?tt(Hn.data):null}),jn)}},Zt=function(Mt,Yt,on){var mn=Mt;if(!je)wt([Mt],{selected:!0,triggerValue:Mt},on);else{var qt=ee(Nn,Mt);if(De){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Dt(jn).key}),Vn=Object(g.a)(ln,!0,Xt),Dr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Dr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!0,triggerValue:Mt},on)}we&&we(mn,Yt)},Cn=function(Mt,Yt,on){var mn=Mt,qt=X(Nn,Mt);if(De){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Dt(jn).key}),Vn=Object(g.a)(ln,{checked:!1,halfCheckedKeys:Kn},Xt),Dr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Dr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!1,triggerValue:Mt},on),xe&&xe(mn,Yt)},zt=function(){wt([],null,"clear")},Tt=i.useCallback(function(St){if(le){var Mt={};Object.defineProperty(Mt,"documentClickClose",{get:function(){return Object(D.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),le(St,Mt)}},[le]),mt={optionLabelProp:null,optionFilterProp:et,dropdownAlign:Ce,internalProps:{mark:y.a,onClear:zt,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Zt,onRawDeselect:Cn}};return"filterTreeNode"in ce&&(mt.filterOption=ze),i.createElement(E.Provider,{value:{checkable:Re,loadData:$e,treeLoadedKeys:We,onTreeLoad:ne,checkedKeys:Nn,halfCheckedKeys:Kn,treeDefaultExpandAll:bt,treeExpandedKeys:ct,treeDefaultExpandedKeys:Ze,onTreeExpand:ge,treeIcon:Et,treeMotion:rn,showTreeIcon:jt,switcherIcon:Qt,treeLine:Gt,treeNodeFilterProp:et}},i.createElement(z,Object.assign({ref:Fe,mode:je?"multiple":null},ce,mt,{value:it,labelInValue:!0,options:Ct,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Tt})))}),de=function(ce){Object(p.a)(Ae,ce);var be=Object(m.a)(Ae);function Ae(){var ye;return Object(O.a)(this,Ae),ye=be.apply(this,arguments),ye.selectRef=i.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(f.a)(Ae,[{key:"render",value:function(){return i.createElement(te,Object.assign({ref:this.selectRef},this.props))}}]),Ae}(i.Component);de.TreeNode=B,de.SHOW_ALL=R,de.SHOW_PARENT=$,de.SHOW_CHILD=fe;var he=de,Me=w.e=he},"8XDt":function(ie,w,t){t("qH13");var O=t("aX58"),f=O.registerPainter,p=t("6fms");f("vml",p)},"A/g1":function(ie,w){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},AZa5:function(ie,w,t){var O=t("Wogr"),f=t("u/Db");function p(m){this.mode=f.BYTE,this.data=O.from(m)}p.getBitsLength=function(u){return u*8},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){for(var u=0,a=this.data.length;u=t;)d|=s&1,s>>=1;return s+d}function m(s,d,g,y){var b=d+1;if(b===g)return 1;if(y(s[b++],s[d])<0){for(;b=0;)b++;return b-d}function u(s,d,g){for(g--;d>>1,b(D,s[v])<0?I=v:P=v+1;var E=y-P;switch(E){case 3:s[P+3]=s[P+2];case 2:s[P+2]=s[P+1];case 1:s[P+1]=s[P];break;default:for(;E>0;)s[P+E]=s[P+E-1],E--}s[P]=D}}function r(s,d,g,y,b,D){var P=0,I=0,v=1;if(D(s,d[g+b])>0){for(I=y-b;v0;)P=v,v=(v<<1)+1,v<=0&&(v=I);v>I&&(v=I),P+=b,v+=b}else{for(I=b+1;vI&&(v=I);var E=P;P=b-v,v=b-E}for(P++;P>>1);D(s,d[g+h])>0?P=h+1:v=h}return v}function e(s,d,g,y,b,D){var P=0,I=0,v=1;if(D(s,d[g+b])<0){for(I=b+1;vI&&(v=I);var E=P;P=b-v,v=b-E}else{for(I=y-b;v=0;)P=v,v=(v<<1)+1,v<=0&&(v=I);v>I&&(v=I),P+=b,v+=b}for(P++;P>>1);D(s,d[g+h])<0?v=h:P=h+1}return v}function i(s,d){var g=O,y=0,b=f,D=0,P,I,v=0;y=s.length,y<2*f&&(b=y>>>1);var E=[];D=y<120?5:y<1542?10:y<119151?19:40,P=[],I=[];function h(o,n){P[v]=o,I[v]=n,v+=1}function T(){for(;v>1;){var o=v-2;if(o>=1&&I[o-1]<=I[o]+I[o+1]||o>=2&&I[o-2]<=I[o]+I[o-1])I[o-1]I[o+1])break;Q(o)}}function j(){for(;v>1;){var o=v-2;o>0&&I[o-1]=O||Z>=O);if(Y)break;K<0&&(K=0),K+=2}if(g=K,g<1&&(g=1),n===1){for(N=0;N=0;N--)s[J+N]=s[K+N];s[_]=E[U];return}for(var Z=g;;){var Y=0,H=0,x=!1;do if(d(E[U],s[A])<0){if(s[_--]=s[A--],Y++,H=0,--n===0){x=!0;break}}else if(s[_--]=E[U--],H++,Y=0,--k===1){x=!0;break}while((Y|H)=0;N--)s[J+N]=s[K+N];if(n===0){x=!0;break}}if(s[_--]=E[U--],--k===1){x=!0;break}if(H=k-r(s[A],E,0,k,k-1,d),H!==0){for(_-=H,U-=H,k-=H,J=_+1,K=U+1,N=0;N=O||H>=O);if(x)break;Z<0&&(Z=0),Z+=2}if(g=Z,g<1&&(g=1),k===1){for(_-=n,A-=n,J=_+1,K=A+1,N=n-1;N>=0;N--)s[J+N]=s[K+N];s[_]=E[U]}else{if(k===0)throw new Error;for(K=_-(k-1),N=0;NI&&(v=I),a(s,g,g+v,g+D,d),D=v}P.pushRun(g,D),P.mergeRuns(),b-=D,g+=D}while(b!==0);P.forceMergeRuns()}ie.exports=l},BdwD:function(ie,w,t){"use strict";var O=t("+L6B"),f=t("2/Rp"),p=t("0Owb"),m=t("k1fw"),u=t("q1tI"),a=t.n(u),r=t("FOrL"),e=t.n(r),i=function(s){var d=s.buttonProps,g=d===void 0?{}:d,y=s.styles,b=y===void 0?{}:y,D=s.customText,P=s.ButtonText,I=s.ButtonClick,v=s.Buttonclass,E=s.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(m.a)(Object(m.a)({},{color:"#999",margin:"200px auto"}),b)},a.a.createElement("img",{src:e.a}),a.a.createElement("p",{className:"mt20 font14"},D||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&a.a.createElement(f.a,Object(p.a)({className:v,onClick:I},g),P),E&&E)};w.a=i},BlVb:function(ie,w,t){var O=t("hyiK"),f=1e-8;function p(u,a){return Math.abs(u-a).5?T:h}function l(h,T,j,Q,M){var c=h.length;if(M===1)for(var o=0;oM;if(c)h.length=M;else for(var o=Q;o=0&&!(Z[z]<=S);z--);z=Math.min(z,k-2)}else{for(z=X;zS);z++);z=Math.min(z-1,k-2)}X=z,q=S;var te=Z[z+1]-Z[z];if(te===0)return;if(ae=(S-Z[z])/te,B)if(W=Y[z],ve=Y[z===0?z:z-1],re=Y[z>k-2?k-1:z+1],R=Y[z>k-3?k-1:z+2],A)g(ve,W,re,R,ae,ae*ae,ae*ae*ae,o(C,M),K);else{var de;if(U)de=g(ve,W,re,R,ae,ae*ae,ae*ae*ae,$,1),de=D($);else{if(_)return i(W,re,ae);de=y(ve,W,re,R,ae,ae*ae,ae*ae*ae)}n(C,M,de)}else if(A)l(Y[z],Y[z+1],ae,o(C,M),K);else{var de;if(U)l(Y[z],Y[z+1],ae,$,1),de=D($);else{if(_)return i(Y[z],Y[z+1],ae);de=e(Y[z],Y[z+1],ae)}n(C,M,de)}},F=new O({target:h._target,life:J,loop:h._loop,delay:h._delay,onframe:fe,ondestroy:j});return T&&T!=="spline"&&(F.easing=T),F}var v=function(h,T,j,Q){this._tracks={},this._target=h,this._loop=T||!1,this._getter=j||a,this._setter=Q||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};v.prototype={when:function(h,T){var j=this._tracks;for(var Q in T){if(!T.hasOwnProperty(Q))continue;if(!j[Q]){j[Q]=[];var M=this._getter(this._target,Q);if(M==null)continue;h!==0&&j[Q].push({time:0,value:b(M)})}j[Q].push({time:h,value:T[Q]})}return this},during:function(h){return this._onframeList.push(h),this},pause:function(){for(var h=0;h1&&l&&l.length>1){var d=p(l)/p(s);!isFinite(d)&&(d=1),e.pinchScale=d;var g=m(l);return e.pinchX=g[0],e.pinchY=g[1],{type:"pinch",target:r[0].target,event:e}}}},a=f;ie.exports=a},DBLp:function(ie,w){function t(){}t.prototype={diff:function(u,a,r){r||(r=function(v,E){return v===E}),this.equals=r;var e=this;u=u.slice(),a=a.slice();var i=a.length,l=u.length,s=1,d=i+l,g=[{newPos:-1,components:[]}],y=this.extractCommon(g[0],a,u,0);if(g[0].newPos+1>=i&&y+1>=l){for(var b=[],D=0;D=i&&j+1>=l)return O(e,E.components,a,u);g[v]=E}s++}for(;s<=d;){var I=P();if(I)return I}},pushComponent:function(u,a,r){var e=u[u.length-1];e&&e.added===a&&e.removed===r?u[u.length-1]={count:e.count+1,added:a,removed:r}:u.push({count:1,added:a,removed:r})},extractCommon:function(u,a,r,e){for(var i=a.length,l=r.length,s=u.newPos,d=s-e,g=0;s+1m||d<-m}var a=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},r=a.prototype;r.transform=null,r.needLocalTransform=function(){return u(this.rotation)||u(this.position[0])||u(this.position[1])||u(this.scale[0]-1)||u(this.scale[1]-1)};var e=[];r.updateTransform=function(){var d=this.parent,g=d&&d.transform,y=this.needLocalTransform(),b=this.transform;if(!(y||g)){b&&p(b);return}b=b||O.create(),y?this.getLocalTransform(b):p(b),g&&(y?O.mul(b,d.transform,b):O.copy(b,d.transform)),this.transform=b;var D=this.globalScaleRatio;if(D!=null&&D!==1){this.getGlobalScale(e);var P=e[0]<0?-1:1,I=e[1]<0?-1:1,v=((e[0]-P)*D+P)/e[0]||0,E=((e[1]-I)*D+I)/e[1]||0;b[0]*=v,b[1]*=v,b[2]*=E,b[3]*=E}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,b)},r.getLocalTransform=function(d){return a.getLocalTransform(this,d)},r.setTransform=function(d){var g=this.transform,y=d.dpr||1;g?d.setTransform(y*g[0],y*g[1],y*g[2],y*g[3],y*g[4],y*g[5]):d.setTransform(y,0,0,y,0,0)},r.restoreTransform=function(d){var g=d.dpr||1;d.setTransform(g,0,0,g,0,0)};var i=[],l=O.create();r.setLocalTransform=function(d){if(!d)return;var g=d[0]*d[0]+d[1]*d[1],y=d[2]*d[2]+d[3]*d[3],b=this.position,D=this.scale;u(g-1)&&(g=Math.sqrt(g)),u(y-1)&&(y=Math.sqrt(y)),d[0]<0&&(g=-g),d[3]<0&&(y=-y),b[0]=d[4],b[1]=d[5],D[0]=g,D[1]=y,this.rotation=Math.atan2(-d[1]/y,d[0]/g)},r.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,g=this.transform;d&&d.transform&&(O.mul(i,d.invTransform,g),g=i);var y=this.origin;y&&(y[0]||y[1])&&(l[4]=y[0],l[5]=y[1],O.mul(i,g,l),i[4]-=y[0],i[5]-=y[1],g=i),this.setLocalTransform(g)},r.getGlobalScale=function(d){var g=this.transform;return d=d||[],g?(d[0]=Math.sqrt(g[0]*g[0]+g[1]*g[1]),d[1]=Math.sqrt(g[2]*g[2]+g[3]*g[3]),g[0]<0&&(d[0]=-d[0]),g[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},r.transformCoordToLocal=function(d,g){var y=[d,g],b=this.invTransform;return b&&f.applyTransform(y,y,b),y},r.transformCoordToGlobal=function(d,g){var y=[d,g],b=this.transform;return b&&f.applyTransform(y,y,b),y},a.getLocalTransform=function(d,g){g=g||[],p(g);var y=d.origin,b=d.scale||[1,1],D=d.rotation||0,P=d.position||[0,0];return y&&(g[4]-=y[0],g[5]-=y[1]),O.scale(g,g,b),D&&O.rotate(g,g,D),y&&(g[4]+=y[0],g[5]+=y[1]),g[4]+=P[0],g[5]+=P[1],g};var s=a;ie.exports=s},Dagg:function(ie,w,t){var O=t("Gev7"),f=t("mFDi"),p=t("bYtY"),m=t("Xnb7");function u(r){O.call(this,r)}u.prototype={constructor:u,type:"image",brush:function(r,e){var i=this.style,l=i.image;i.bind(r,this,e);var s=this._image=m.createOrUpdateImage(l,this._image,this,this.onload);if(!s||!m.isImageReady(s))return;var d=i.x||0,g=i.y||0,y=i.width,b=i.height,D=s.width/s.height;if(y==null&&b!=null?y=b*D:b==null&&y!=null?b=y/D:y==null&&b==null&&(y=s.width,b=s.height),this.setTransform(r),i.sWidth&&i.sHeight){var P=i.sx||0,I=i.sy||0;r.drawImage(s,P,I,i.sWidth,i.sHeight,d,g,y,b)}else if(i.sx&&i.sy){var P=i.sx,I=i.sy,v=y-P,E=b-I;r.drawImage(s,P,I,v,E,d,g,y,b)}else r.drawImage(s,d,g,y,b);i.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},getBoundingRect:function(){var r=this.style;return this._rect||(this._rect=new f(r.x||0,r.y||0,r.width||0,r.height||0)),this._rect}},p.inherits(u,O);var a=u;ie.exports=a},E7E6:function(ie,w){ie.exports="data:image/png;base64,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"},E9nw:function(ie,w){ie.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var O=document.activeElement,f=[],p=0;py)&&(a[l]=y,r.push(l,y),u[l]=i))}if(typeof m!="undefined"&&typeof a[m]=="undefined"){var P=["Could not find a path from ",p," to ",m,"."].join("");throw new Error(P)}return u},extract_shortest_path_from_predecessor_list:function(f,p){for(var m=[],u=p,a;u;)m.push(u),a=f[u],u=f[u];return m.reverse(),m},find_path:function(f,p,m){var u=O.single_source_shortest_paths(f,p,m);return O.extract_shortest_path_from_predecessor_list(u,m)},PriorityQueue:{make:function(f){var p=O.PriorityQueue,m={},u;f=f||{};for(u in p)p.hasOwnProperty(u)&&(m[u]=p[u]);return m.queue=[],m.sorter=f.sorter||p.default_sorter,m},default_sorter:function(f,p){return f.cost-p.cost},push:function(f,p){var m={value:f,cost:p};this.queue.push(m),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};ie.exports=O},FOrL:function(ie,w,t){ie.exports=t.p+"static/nodata.a6b3f948.png"},FPkq:function(ie,w,t){ie.exports=t.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(ie,w){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var l=new t(6);return f(l),l}function f(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l}function p(l,s){return l[0]=s[0],l[1]=s[1],l[2]=s[2],l[3]=s[3],l[4]=s[4],l[5]=s[5],l}function m(l,s,d){var g=s[0]*d[0]+s[2]*d[1],y=s[1]*d[0]+s[3]*d[1],b=s[0]*d[2]+s[2]*d[3],D=s[1]*d[2]+s[3]*d[3],P=s[0]*d[4]+s[2]*d[5]+s[4],I=s[1]*d[4]+s[3]*d[5]+s[5];return l[0]=g,l[1]=y,l[2]=b,l[3]=D,l[4]=P,l[5]=I,l}function u(l,s,d){return l[0]=s[0],l[1]=s[1],l[2]=s[2],l[3]=s[3],l[4]=s[4]+d[0],l[5]=s[5]+d[1],l}function a(l,s,d){var g=s[0],y=s[2],b=s[4],D=s[1],P=s[3],I=s[5],v=Math.sin(d),E=Math.cos(d);return l[0]=g*E+D*v,l[1]=-g*v+D*E,l[2]=y*E+P*v,l[3]=-y*v+E*P,l[4]=E*b+v*I,l[5]=E*I-v*b,l}function r(l,s,d){var g=d[0],y=d[1];return l[0]=s[0]*g,l[1]=s[1]*y,l[2]=s[2]*g,l[3]=s[3]*y,l[4]=s[4]*g,l[5]=s[5]*y,l}function e(l,s){var d=s[0],g=s[2],y=s[4],b=s[1],D=s[3],P=s[5],I=d*D-b*g;return I?(I=1/I,l[0]=D*I,l[1]=-b*I,l[2]=-g*I,l[3]=d*I,l[4]=(g*P-D*y)*I,l[5]=(b*y-d*P)*I,l):null}function i(l){var s=O();return p(s,l),s}w.create=O,w.identity=f,w.copy=p,w.mul=m,w.translate=u,w.rotate=a,w.scale=r,w.invert=e,w.clone=i},FxDU:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createSensor=void 0;var O=t("QO+J"),f=t("j5sG"),p=typeof ResizeObserver!="undefined"?f.createSensor:O.createSensor;w.createSensor=p},GABl:function(ie,w){ie.exports="data:image/png;base64,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"},Gev7:function(ie,w,t){var O=t("bYtY"),f=t("K2GJ"),p=t("1bdT"),m=t("ni6a");function u(r){r=r||{},p.call(this,r);for(var e in r)r.hasOwnProperty(e)&&e!=="style"&&(this[e]=r[e]);this.style=new f(r.style,this),this._rect=null,this.__clipPaths=null}u.prototype={constructor:u,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(r){},afterBrush:function(r){},brush:function(r,e){},getBoundingRect:function(){},contain:function(r,e){return this.rectContain(r,e)},traverse:function(r,e){r.call(e,this)},rectContain:function(r,e){var i=this.transformCoordToLocal(r,e),l=this.getBoundingRect();return l.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(r){return this.animate("style",r)},attrKV:function(r,e){r!=="style"?p.prototype.attrKV.call(this,r,e):this.style.set(e)},setStyle:function(r,e){return this.style.set(r,e),this.dirty(!1),this},useStyle:function(r){return this.style=new f(r,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(u,p),O.mixin(u,m);var a=u;ie.exports=a},Gytx:function(ie,w){ie.exports=function(O,f,p,m){var u=p?p.call(m,O,f):void 0;if(u!==void 0)return!!u;if(O===f)return!0;if(typeof O!="object"||!O||typeof f!="object"||!f)return!1;var a=Object.keys(O),r=Object.keys(f);if(a.length!==r.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(f),i=0;i3&&(e=t.call(e,1));for(var l=a.length,s=0;s4&&(e=t.call(e,1,e.length-1));for(var l=e[e.length-1],s=a.length,d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");var D=y.indexOf("=");D===-1&&(D=b);var P=D===b?0:4-D%4;return[D,P]}function e(y){var b=r(y),D=b[0],P=b[1];return(D+P)*3/4-P}function i(y,b,D){return(b+D)*3/4-D}function l(y){var b,D=r(y),P=D[0],I=D[1],v=new p(i(y,P,I)),E=0,h=I>0?P-4:P,T;for(T=0;T>16&255,v[E++]=b>>8&255,v[E++]=b&255;return I===2&&(b=f[y.charCodeAt(T)]<<2|f[y.charCodeAt(T+1)]>>4,v[E++]=b&255),I===1&&(b=f[y.charCodeAt(T)]<<10|f[y.charCodeAt(T+1)]<<4|f[y.charCodeAt(T+2)]>>2,v[E++]=b>>8&255,v[E++]=b&255),v}function s(y){return O[y>>18&63]+O[y>>12&63]+O[y>>6&63]+O[y&63]}function d(y,b,D){for(var P,I=[],v=b;vh?h:E+v));return P===1?(b=y[D-1],I.push(O[b>>2]+O[b<<4&63]+"==")):P===2&&(b=(y[D-2]<<8)+y[D-1],I.push(O[b>>10]+O[b>>4&63]+O[b<<2&63]+"=")),I.join("")}},HDXh:function(ie,w,t){"use strict";(function(O){/*! +`)}function M(_,K,J,Z){Z=u({},Z),Z.font=K;var J=a(J,"...");Z.maxIterations=a(Z.maxIterations,2);var Y=Z.minChar=a(Z.minChar,0);Z.cnCharWidth=T("\u56FD",K);var H=Z.ascCharWidth=T("a",K);Z.placeholder=a(Z.placeholder,"");for(var x=_=Math.max(0,_-1),V=0;V=H;V++)x-=H;var G=T(J,K);return G>x&&(J="",G=0),x=_-G,Z.ellipsis=J,Z.ellipsisWidth=G,Z.contentWidth=x,Z.containerWidth=_,Z}function c(_,K){var J=K.containerWidth,Z=K.font,Y=K.contentWidth;if(!J)return"";var H=T(_,Z);if(H<=J)return _;for(var x=0;;x++){if(H<=Y||x>=K.maxIterations){_+=K.ellipsis;break}var V=x===0?o(_,Y,K.ascCharWidth,K.cnCharWidth):H>0?Math.floor(_.length*Y/H):0;_=_.substr(0,V),H=T(_,Z)}return _===""&&(_=K.placeholder),_}function o(_,K,J,Z){for(var Y=0,H=0,x=_.length;Hee)_="",x=[];else if(X!=null)for(var q=M(X-(J?J[1]+J[3]:0),K,Y.ellipsis,{minChar:Y.minChar,placeholder:Y.placeholder}),se=0,ae=x.length;seZ&&A(J,_.substring(Z,H)),A(J,Y[2],Y[1]),Z=d.lastIndex}Z<_.length&&A(J,_.substring(Z,_.length));var x=J.lines,V=0,G=0,oe=[],ee=K.textPadding,X=K.truncate,q=X&&X.outerWidth,se=X&&X.outerHeight;ee&&(q!=null&&(q-=ee[1]+ee[3]),se!=null&&(se-=ee[0]+ee[2]));for(var ae=0;aese)return{lines:[],width:0,height:0};$.textWidth=T($.text,C);var z=fe.textWidth,te=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")$.percentWidth=z,oe.push($),z=0;else{if(te){z=$.textWidth;var de=fe.textBackgroundColor,he=de&&de.image;he&&(he=f.findExistImage(he),f.isImageReady(he)&&(z=Math.max(z,he.width*S/he.height)))}var Me=F?F[1]+F[3]:0;z+=Me;var ce=q!=null?q-re:null;ce!=null&&ce=0&&o.splice(n,1),M.__hoverMir=null},clearHover:function(M){for(var c=this._hoverElements,o=0;o15)break}}k.__drawIndex=x,k.__drawIndex0&&M>n[0]){for(N=0;NM);N++);k=o[n[N]]}if(n.splice(N+1,0,M),o[M]=c,!c.virtual)if(k){var U=k.dom;U.nextSibling?A.insertBefore(c.dom,U.nextSibling):A.appendChild(c.dom)}else A.firstChild?A.insertBefore(c.dom,A.firstChild):A.appendChild(c.dom)},eachLayer:function(M,c){var o=this._zlevelList,n,B;for(B=0;B0?g:0),this._needsManuallyCompositing),U.__builtin__||m("ZLevel "+A+" has been used by unkown layer "+U.id),U!==B&&(U.__used=!0,U.__startIndex!==o&&(U.__dirty=!0),U.__startIndex=o,U.incremental?U.__drawIndex=-1:U.__drawIndex=o,c(o),B=U),n.__dirty&&(U.__dirty=!0,U.incremental&&U.__drawIndex<0&&(U.__drawIndex=o))}c(o),this.eachBuiltinLayer(function(_,K){!_.__used&&_.getElementCount()>0&&(_.__dirty=!0,_.__startIndex=_.__endIndex=_.__drawIndex=0),_.__dirty&&_.__drawIndex<0&&(_.__drawIndex=_.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(M){M.clear()},setBackgroundColor:function(M){this._backgroundColor=M},configLayer:function(M,c){if(c){var o=this._layerConfig;o[M]?p.merge(o[M],c,!0):o[M]=c;for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:[],T=new Map;function P(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(E){var h=E.key,D=E.children;Object(u.a)(h!=null,"Tree node must have a certain key: [".concat(v).concat(h,"]"));var j=String(h);Object(u.a)(!T.has(j)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(j)),T.set(j,!0),P(D,"".concat(v).concat(j," > "))})}P(b)}function i(b){function T(P){var I=Object(m.a)(P);return I.map(function(v){if(!Object(a.i)(v))return Object(u.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var E=v.key,h=v.props,D=h.children,j=Object(p.a)(h,["children"]),Q=Object(f.a)({key:E},j),M=T(D);return M.length&&(Q.children=M),Q}).filter(function(v){return v})}return T(b)}function l(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=new Set(T===!0?[]:T),I=[];function v(E){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return E.map(function(D,j){var Q=Object(a.h)(h?h.pos:"0",j),M=r(D.key,Q),c=Object(f.a)(Object(f.a)({},D),{},{parent:h,pos:Q,children:null,data:D,isStart:[].concat(Object(O.a)(h?h.isStart:[]),[j===0]),isEnd:[].concat(Object(O.a)(h?h.isEnd:[]),[j===E.length-1])});return I.push(c),T===!0||P.has(M)?c.children=v(D.children||[],c):c.children=[],c})}return v(b),I}function s(b,T,P){var I;P?typeof P=="string"?I=function(h){return h[P]}:typeof P=="function"&&(I=function(h){return P(h)}):I=function(h,D){return r(h.key,D)};function v(E,h,D){var j=E?E.children:b,Q=E?Object(a.h)(D.pos,h):"0";if(E){var M=I(E,Q),c={node:E,index:h,pos:Q,key:M,parentPos:D.node?D.pos:null,level:D.level+1};T(c)}j&&j.forEach(function(o,n){v(o,n,{node:E,pos:Q,level:D?D.level+1:-1})})}v(null)}function d(b){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=T.initWrapper,I=T.processEntity,v=T.onProcessFinished,E=arguments.length>2?arguments[2]:void 0,h={},D={},j={posEntities:h,keyEntities:D};return P&&(j=P(j)||j),s(b,function(Q){var M=Q.node,c=Q.index,o=Q.pos,n=Q.key,B=Q.parentPos,k=Q.level,N={node:M,index:c,key:n,pos:o,level:k},A=r(n,o);h[o]=N,D[A]=N,N.parent=h[B],N.parent&&(N.parent.children=N.parent.children||[],N.parent.children.push(N)),I&&I(N,j)},E),v&&v(j),j}function g(b,T){var P=T.expandedKeys,I=T.selectedKeys,v=T.loadedKeys,E=T.loadingKeys,h=T.checkedKeys,D=T.halfCheckedKeys,j=T.dragOverNodeKey,Q=T.dropPosition,M=T.keyEntities,c=M[b],o={eventKey:b,expanded:P.indexOf(b)!==-1,selected:I.indexOf(b)!==-1,loaded:v.indexOf(b)!==-1,loading:E.indexOf(b)!==-1,checked:h.indexOf(b)!==-1,halfChecked:D.indexOf(b)!==-1,pos:String(c?c.pos:""),dragOver:j===b&&Q===0,dragOverGapTop:j===b&&Q===-1,dragOverGapBottom:j===b&&Q===1};return o}function y(b){var T=b.data,P=b.expanded,I=b.selected,v=b.checked,E=b.loaded,h=b.loading,D=b.halfChecked,j=b.dragOver,Q=b.dragOverGapTop,M=b.dragOverGapBottom,c=b.pos,o=b.active,n=Object(f.a)(Object(f.a)({},T),{},{expanded:P,selected:I,checked:v,loaded:E,loading:h,halfChecked:D,dragOver:j,dragOverGapTop:Q,dragOverGapBottom:M,pos:c,active:o});return"props"in n||Object.defineProperty(n,"props",{get:function(){return Object(u.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),b}}),n}},"8Jsi":function(ie,w,t){"use strict";t.d(w,"d",function(){return B}),t.d(w,"a",function(){return R}),t.d(w,"b",function(){return fe}),t.d(w,"c",function(){return $});var O=t("1OyB"),f=t("vuIU"),p=t("Ji7U"),m=t("LK+K"),u=t("KQm4"),a=t("U8pU"),r=t("ODXe"),e=t("VTBJ"),i=t("q1tI"),l=t("qNPg"),s=t("2Qr1"),d=t("815F"),g=t("NvD2"),y=t("wPlo"),b=t("6cGi"),T=t("Kwbf"),P=t("4IlW"),I=t("YrtM"),v=t("fAei"),E=i.createContext(null);function h(ce,be){if(!ce)return!0;var Ae=ce.data,ye=Ae.disabled,ke=Ae.disableCheckbox;switch(be){case"select":return ye;case"checkbox":return ye||ke}return!1}function D(ce,be){var Ae=i.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,Ue=ce.get(ke);return!Ne&&h(Ue,Se)?null:Ue},[ce]),ye=i.useCallback(function(ke){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ne=arguments.length>2?arguments[2]:void 0,Ue=be.get(ke);return!Ne&&h(Ue,Se)?null:Ue},[be]);return[Ae,ye]}function j(ce){return i.useMemo(function(){var be=new Map,Ae=new Map;return ce.forEach(function(ye){be.set(ye.key,ye),Ae.set(ye.data.value,ye)}),[be,Ae]},[ce])}var Q={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(be,Ae){var ye=be.prefixCls,ke=be.height,Se=be.itemHeight,Ne=be.virtual,Ue=be.options,$e=be.flattenOptions,We=be.multiple,nt=be.searchValue,et=be.onSelect,Xe=be.onToggleOpen,st=be.open,ut=be.notFoundContent,ct=be.onMouseEnter,Ze=i.useContext(E),bt=Ze.checkable,lt=Ze.checkedKeys,Et=Ze.halfCheckedKeys,jt=Ze.treeExpandedKeys,Qt=Ze.treeDefaultExpandAll,Gt=Ze.treeDefaultExpandedKeys,rn=Ze.onTreeExpand,ze=Ze.treeIcon,Ce=Ze.showTreeIcon,Oe=Ze.switcherIcon,ge=Ze.treeLine,ne=Ze.treeNodeFilterProp,le=Ze.loadData,we=Ze.treeLoadedKeys,xe=Ze.treeMotion,Re=Ze.onTreeLoad,je=i.useRef(),Te=Object(I.a)(function(){return Ue},[st,Ue],function(Dt,mt){return mt[0]&&Dt[1]!==mt[1]}),Le=j($e),Fe=Object(r.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=D(dt,tt),At=Object(r.a)(Ct,2),Ht=At[0],en=At[1],Ge=i.useMemo(function(){return lt.map(function(Dt){var mt=en(Dt);return mt?mt.key:null})},[lt]),gt=i.useMemo(function(){return bt?{checked:Ge,halfChecked:Et}:null},[Ge,Et,bt]);i.useEffect(function(){if(st&&!We&&Ge.length){var Dt;(Dt=je.current)===null||Dt===void 0||Dt.scrollTo({key:Ge[0]})}},[st]);var xt=String(nt).toLowerCase(),Lt=function(mt){return xt?String(mt[ne]).toLowerCase().includes(xt):!1},Ot=i.useState(Gt),Tt=Object(r.a)(Ot,2),Bt=Tt[0],Xt=Tt[1],an=i.useState(null),Jt=Object(r.a)(an,2),Ut=Jt[0],Ft=Jt[1],$t=i.useMemo(function(){return jt?Object(u.a)(jt):nt?Ut:Bt},[Bt,Ut,xt,jt]);i.useEffect(function(){nt&&Ft($e.map(function(Dt){return Dt.key}))},[nt]);var Sn=function(mt){Xt(mt),Ft(mt),rn&&rn(mt)},ir=function(mt){mt.preventDefault()},Nn=function(mt,St){var Mt=St.node.key,Yt=Ht(Mt,bt?"checkbox":"select");Yt!==null&&et(Yt.data.value,{selected:!lt.includes(Yt.data.value)}),We||Xe(!1)},Kn=i.useState(null),it=Object(r.a)(Kn,2),wt=it[0],Zt=it[1],Cn=Ht(wt);if(i.useImperativeHandle(Ae,function(){return{onKeyDown:function(mt){var St,Mt=mt.which;switch(Mt){case P.a.UP:case P.a.DOWN:case P.a.LEFT:case P.a.RIGHT:(St=je.current)===null||St===void 0||St.onKeyDown(mt);break;case P.a.ENTER:{Cn!==null&&Nn(null,{node:{key:wt},selected:!lt.includes(Cn.data.value)});break}case P.a.ESC:Xe(!1)}},onKeyUp:function(){}}}),Te.length===0)return i.createElement("div",{role:"listbox",className:"".concat(ye,"-empty"),onMouseDown:ir},ut);var zt={};return we&&(zt.loadedKeys=we),$t&&(zt.expandedKeys=$t),i.createElement("div",{onMouseDown:ir,onMouseEnter:ct},Cn&&st&&i.createElement("span",{style:Q,"aria-live":"assertive"},Cn.data.value),i.createElement(v.b,Object.assign({ref:je,focusable:!1,prefixCls:"".concat(ye,"-tree"),treeData:Te,height:ke,itemHeight:Se,virtual:Ne,multiple:We,icon:ze,showIcon:Ce,switcherIcon:Oe,showLine:ge,loadData:nt?null:le,motion:xe,checkable:bt,checkStrictly:!0,checkedKeys:gt,selectedKeys:bt?[]:Ge,defaultExpandAll:Qt},zt,{onActiveChange:Zt,onSelect:Nn,onCheck:Nn,onExpand:Sn,onLoad:Re,filterTreeNode:Lt})))},c=i.forwardRef(M);c.displayName="OptionList";var o=c,n=function(){return null},B=n,k=t("Ff2n"),N=t("Zm9Q");function A(ce){return Object(N.a)(ce).map(function(be){if(!i.isValidElement(be)||!be.type)return null;var Ae=be.key,ye=be.props,ke=ye.children,Se=ye.value,Ne=Object(k.a)(ye,["children","value"]),Ue=Object(e.a)({key:Ae,value:Se},Ne),$e=A(ke);return $e.length&&(Ue.children=$e),Ue}).filter(function(be){return be})}function U(ce){if(!ce)return ce;var be=Object(e.a)({},ce);return"props"in be||Object.defineProperty(be,"props",{get:function(){return Object(T.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),be}}),be}function _(ce,be,Ae,ye,ke){var Se=null,Ne=null;function Ue(){function $e(We){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return We.map(function(Xe,st){var ut="".concat(nt,"-").concat(st),ct=Ae.includes(Xe.value),Ze=$e(Xe.children||[],ut,ct),bt=i.createElement(B,Object.assign({},Xe),Ze.map(function(Et){return Et.node}));if(be===Xe.value&&(Se=bt),ct){var lt={pos:ut,node:bt,children:Ze};return et||Ne.push(lt),lt}return null}).filter(function(Xe){return Xe})}Ne||(Ne=[],$e(ye),Ne.sort(function(We,nt){var et=We.node.props.value,Xe=nt.node.props.value,st=Ae.indexOf(et),ut=Ae.indexOf(Xe);return st-ut}))}Object.defineProperty(ce,"triggerNode",{get:function(){return Object(T.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ue(),Se}}),Object.defineProperty(ce,"allCheckedNodes",{get:function(){return Object(T.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ue(),ke?Ne:Ne.map(function(We){var nt=We.node;return nt})}})}function K(ce){return Array.isArray(ce)?ce:ce!==void 0?[ce]:[]}function J(ce,be){var Ae=new Map;return be.forEach(function(ye){var ke=ye.data;Ae.set(ke.value,ke)}),ce.map(function(ye){return U(Ae.get(ye))})}function Z(ce,be){var Ae=J([ce],be)[0];return Ae?Ae.disabled:!1}function Y(ce){return ce.disabled||ce.disableCheckbox||ce.checkable===!1}function H(ce){for(var be=ce.parent,Ae=0,ye=be;ye;)ye=ye.parent,Ae+=1;return Ae}function x(ce){function be(ye){return(ye||[]).map(function(ke){var Se=ke.value,Ne=ke.key,Ue=ke.children,$e=Object(e.a)(Object(e.a)({},ke),{},{key:"key"in ke?Ne:Se});return Ue&&($e.children=be(Ue)),$e})}var Ae=Object(d.d)(be(ce),!0);return Ae.map(function(ye){return{key:ye.data.key,data:ye.data,level:H(ye)}})}function V(ce){return function(be,Ae){var ye=Ae[ce];return String(ye).toLowerCase().includes(String(be).toLowerCase())}}function G(ce,be,Ae){var ye=Ae.optionFilterProp,ke=Ae.filterOption;if(ke===!1)return be;var Se;typeof ke=="function"?Se=ke:Se=V(ye);function Ne(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ue.map(function(We){var nt=We.children,et=$e||Se(ce,U(We)),Xe=Ne(nt||[],et);return et||Xe.length?Object(e.a)(Object(e.a)({},We),{},{children:Xe}):null}).filter(function(We){return We})}return Ne(be)}function oe(ce,be,Ae,ye){var ke=new Map;return K(be).forEach(function(Se){Se&&Object(a.a)(Se)==="object"&&"value"in Se&&ke.set(Se.value,Se)}),ce.map(function(Se){var Ne={value:Se},Ue=Ae(Se,"select",!0),$e=Ue?ye(Ue.data):Se;if(ke.has(Se)){var We=ke.get(Se);Ne.label="label"in We?We.label:$e,"halfChecked"in We&&(Ne.halfChecked=We.halfChecked)}else Ne.label=$e;return Ne})}function ee(ce,be){var Ae=new Set(ce);return Ae.add(be),Array.from(Ae)}function X(ce,be){var Ae=new Set(ce);return Ae.delete(be),Array.from(Ae)}function q(ce){var be=ce.searchPlaceholder,Ae=ce.treeCheckStrictly,ye=ce.treeCheckable,ke=ce.labelInValue,Se=ce.value,Ne=ce.multiple;Object(T.a)(!be,"`searchPlaceholder` has been removed."),Ae&&ke===!1&&Object(T.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ke||Ae)&&Object(T.a)(K(Se).every(function(Ue){return Ue&&Object(a.a)(Ue)==="object"&&"value"in Ue}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Ae||Ne||ye?Object(T.a)(!Se||Array.isArray(Se),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(T.a)(!Array.isArray(Se),"`value` should not be array when `TreeSelect` is single mode.")}var se=q,ae=10;function ve(ce,be){var Ae=be.id,ye=be.pId,ke=be.rootPId,Se={},Ne=[],Ue=ce.map(function($e){var We=Object(e.a)({},$e),nt=We[Ae];return Se[nt]=We,We.key=We.key||nt,We});return Ue.forEach(function($e){var We=$e[ye],nt=Se[We];nt&&(nt.children=nt.children||[],nt.children.push($e)),(We===ke||!nt&&ke===null)&&Ne.push($e)}),Ne}function W(ce,be){var Ae=0,ye=new Set;function ke(Se){return(Se||[]).map(function(Ne){var Ue=Ne.key,$e=Ne.value,We=Ne.children,nt=Object(k.a)(Ne,["key","value","children"]),et="value"in Ne?$e:Ue,Xe=Object(e.a)(Object(e.a)({},nt),{},{key:Ue!=null?Ue:et,value:et,title:be(Ne)});return"children"in Ne&&(Xe.children=ke(We)),Xe})}return ke(ce)}function re(ce,be,Ae){var ye=Ae.getLabelProp,ke=Ae.simpleMode,Se=i.useRef({});return ce?(Se.current.formatTreeData=Se.current.treeData===ce?Se.current.formatTreeData:W(ke?ve(ce,Object(e.a)({id:"id",pId:"pId",rootPId:null},ke!==!0?ke:{})):ce,ye),Se.current.treeData=ce):Se.current.formatTreeData=Se.current.children===be?Se.current.formatTreeData:W(A(be),ye),Se.current.formatTreeData}var R="SHOW_ALL",$="SHOW_PARENT",fe="SHOW_CHILD";function F(ce,be,Ae){var ye=new Set(ce);return be===fe?ce.filter(function(ke){var Se=Ae[ke];return!(Se&&Se.children&&Se.children.every(function(Ne){var Ue=Ne.node;return Y(Ue)||ye.has(Ue.key)}))}):be===$?ce.filter(function(ke){var Se=Ae[ke],Ne=Se?Se.parent:null;return!(Ne&&!Y(Ne.node)&&ye.has(Ne.node.key))}):ce}function C(ce,be){var Ae=be.value,ye=be.getEntityByValue,ke=be.getEntityByKey,Se=be.treeConduction,Ne=be.showCheckedStrategy,Ue=be.conductKeyEntities,$e=be.getLabelProp;return i.useMemo(function(){var We=ce;if(Se){var nt=F(ce.map(function(et){var Xe=ye(et);return Xe?Xe.key:et}),Ne,Ue);We=nt.map(function(et){var Xe=ke(et);return Xe?Xe.data.value:et})}return oe(We,Ae,ye,$e)},[ce,Ae,Se,Ne,ye])}var S=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],z=Object(l.a)({prefixCls:"rc-tree-select",components:{optionList:o},convertChildrenToData:function(){return null},flattenOptions:x,getLabeledValue:s.e,filterOptions:G,isValueDisabled:Z,findValueOption:J,omitDOMProps:function(be){var Ae=Object(e.a)({},be);return S.forEach(function(ye){delete Ae[ye]}),Ae}});z.displayName="Select";var te=i.forwardRef(function(ce,be){var Ae=ce.multiple,ye=ce.treeCheckable,ke=ce.treeCheckStrictly,Se=ce.showCheckedStrategy,Ne=Se===void 0?"SHOW_CHILD":Se,Ue=ce.labelInValue,$e=ce.loadData,We=ce.treeLoadedKeys,nt=ce.treeNodeFilterProp,et=nt===void 0?"value":nt,Xe=ce.treeNodeLabelProp,st=ce.treeDataSimpleMode,ut=ce.treeData,ct=ce.treeExpandedKeys,Ze=ce.treeDefaultExpandedKeys,bt=ce.treeDefaultExpandAll,lt=ce.children,Et=ce.treeIcon,jt=ce.showTreeIcon,Qt=ce.switcherIcon,Gt=ce.treeLine,rn=ce.treeMotion,ze=ce.filterTreeNode,Ce=ce.dropdownPopupAlign,Oe=ce.onChange,ge=ce.onTreeExpand,ne=ce.onTreeLoad,le=ce.onDropdownVisibleChange,we=ce.onSelect,xe=ce.onDeselect,Re=ye||ke,je=Ae||Re,Te=ye&&!ke,Le=ke||Ue,Fe=i.useRef(null);i.useImperativeHandle(be,function(){return{focus:Fe.current.focus,blur:Fe.current.blur}});var dt=function(Mt){return ut&&Mt.label||Mt.title},tt=function(Mt){return Xe?Mt[Xe]:dt(Mt)},Ct=re(ut,lt,{getLabelProp:dt,simpleMode:st}),At=Object(i.useMemo)(function(){return x(Ct)},[Ct]),Ht=j(At),en=Object(r.a)(Ht,2),Ge=en[0],gt=en[1],xt=D(Ge,gt),Lt=Object(r.a)(xt,2),Ot=Lt[0],Tt=Lt[1],Bt=Object(i.useMemo)(function(){return Te?Object(d.a)(Ct):{keyEntities:null}},[Ct,ye,ke]),Xt=Bt.keyEntities,an=Object(b.a)(ce.defaultValue,{value:ce.value}),Jt=Object(r.a)(an,2),Ut=Jt[0],Ft=Jt[1],$t=function(Mt){var Yt=[],on=[];return Mt.forEach(function(mn){Tt(mn)?on.push(mn):Yt.push(mn)}),{missingRawValues:Yt,existRawValues:on}},Sn=Object(i.useMemo)(function(){var St=[],Mt=[];if(K(Ut).forEach(function(ln){if(ln&&Object(a.a)(ln)==="object"&&"value"in ln)if(ln.halfChecked&&ke){var Vn=Tt(ln.value);St.push(Vn?Vn.key:ln.value)}else Mt.push(ln.value);else Mt.push(ln)}),Te){var Yt=$t(Mt),on=Yt.missingRawValues,mn=Yt.existRawValues,qt=mn.map(function(ln){return Tt(ln).key}),On=Object(g.a)(qt,!0,Xt),sr=On.checkedKeys,lr=On.halfCheckedKeys;return[[].concat(Object(u.a)(on),Object(u.a)(sr.map(function(ln){return Ot(ln).data.value}))),lr]}return[Mt,St]},[Ut,je,Le,ye,ke]),ir=Object(r.a)(Sn,2),Nn=ir[0],Kn=ir[1],it=C(Nn,{treeConduction:Te,value:Ut,showCheckedStrategy:Ne,conductKeyEntities:Xt,getEntityByValue:Tt,getEntityByKey:Ot,getLabelProp:tt}),wt=function(Mt,Yt,on){if(Ft(je?Mt:Mt[0]),Oe){var mn=Mt;if(Te&&Ne!=="SHOW_ALL"){var qt=Mt.map(function(_n){var Hn=Tt(_n);return Hn?Hn.key:_n}),On=F(qt,Ne,Xt);mn=On.map(function(_n){var Hn=Ot(_n);return Hn?Hn.data.value:_n})}var sr=Yt||{triggerValue:void 0,selected:void 0},lr=sr.triggerValue,ln=sr.selected,Vn=Le?oe(mn,Ut,Tt,tt):mn;if(ke){var Tr=Kn.map(function(_n){var Hn=Ot(_n);return Hn?Hn.data.value:_n}).filter(function(_n){return!mn.includes(_n)});Vn=[].concat(Object(u.a)(Vn),Object(u.a)(oe(Tr,Ut,Tt,tt)))}var jn={preValue:it,triggerValue:lr},Fr=!0;(ke||on==="selection"&&!ln)&&(Fr=!1),_(jn,lr,Mt,Ct,Fr),Re?jn.checked=ln:jn.selected=ln,Oe(je?Vn:Vn[0],Le?null:mn.map(function(_n){var Hn=Tt(_n);return Hn?tt(Hn.data):null}),jn)}},Zt=function(Mt,Yt,on){var mn=Mt;if(!je)wt([Mt],{selected:!0,triggerValue:Mt},on);else{var qt=ee(Nn,Mt);if(Te){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Tt(jn).key}),Vn=Object(g.a)(ln,!0,Xt),Tr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Tr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!0,triggerValue:Mt},on)}we&&we(mn,Yt)},Cn=function(Mt,Yt,on){var mn=Mt,qt=X(Nn,Mt);if(Te){var On=$t(qt),sr=On.missingRawValues,lr=On.existRawValues,ln=lr.map(function(jn){return Tt(jn).key}),Vn=Object(g.a)(ln,{checked:!1,halfCheckedKeys:Kn},Xt),Tr=Vn.checkedKeys;qt=[].concat(Object(u.a)(sr),Object(u.a)(Tr.map(function(jn){return Ot(jn).data.value})))}wt(qt,{selected:!1,triggerValue:Mt},on),xe&&xe(mn,Yt)},zt=function(){wt([],null,"clear")},Dt=i.useCallback(function(St){if(le){var Mt={};Object.defineProperty(Mt,"documentClickClose",{get:function(){return Object(T.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),le(St,Mt)}},[le]),mt={optionLabelProp:null,optionFilterProp:et,dropdownAlign:Ce,internalProps:{mark:y.a,onClear:zt,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Zt,onRawDeselect:Cn}};return"filterTreeNode"in ce&&(mt.filterOption=ze),i.createElement(E.Provider,{value:{checkable:Re,loadData:$e,treeLoadedKeys:We,onTreeLoad:ne,checkedKeys:Nn,halfCheckedKeys:Kn,treeDefaultExpandAll:bt,treeExpandedKeys:ct,treeDefaultExpandedKeys:Ze,onTreeExpand:ge,treeIcon:Et,treeMotion:rn,showTreeIcon:jt,switcherIcon:Qt,treeLine:Gt,treeNodeFilterProp:et}},i.createElement(z,Object.assign({ref:Fe,mode:je?"multiple":null},ce,mt,{value:it,labelInValue:!0,options:Ct,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Dt})))}),de=function(ce){Object(p.a)(Ae,ce);var be=Object(m.a)(Ae);function Ae(){var ye;return Object(O.a)(this,Ae),ye=be.apply(this,arguments),ye.selectRef=i.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(f.a)(Ae,[{key:"render",value:function(){return i.createElement(te,Object.assign({ref:this.selectRef},this.props))}}]),Ae}(i.Component);de.TreeNode=B,de.SHOW_ALL=R,de.SHOW_PARENT=$,de.SHOW_CHILD=fe;var he=de,Me=w.e=he},"8XDt":function(ie,w,t){t("qH13");var O=t("aX58"),f=O.registerPainter,p=t("6fms");f("vml",p)},"A/g1":function(ie,w){ie.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},AZa5:function(ie,w,t){var O=t("Wogr"),f=t("u/Db");function p(m){this.mode=f.BYTE,this.data=O.from(m)}p.getBitsLength=function(u){return u*8},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){for(var u=0,a=this.data.length;u=t;)d|=s&1,s>>=1;return s+d}function m(s,d,g,y){var b=d+1;if(b===g)return 1;if(y(s[b++],s[d])<0){for(;b=0;)b++;return b-d}function u(s,d,g){for(g--;d>>1,b(T,s[v])<0?I=v:P=v+1;var E=y-P;switch(E){case 3:s[P+3]=s[P+2];case 2:s[P+2]=s[P+1];case 1:s[P+1]=s[P];break;default:for(;E>0;)s[P+E]=s[P+E-1],E--}s[P]=T}}function r(s,d,g,y,b,T){var P=0,I=0,v=1;if(T(s,d[g+b])>0){for(I=y-b;v0;)P=v,v=(v<<1)+1,v<=0&&(v=I);v>I&&(v=I),P+=b,v+=b}else{for(I=b+1;vI&&(v=I);var E=P;P=b-v,v=b-E}for(P++;P>>1);T(s,d[g+h])>0?P=h+1:v=h}return v}function e(s,d,g,y,b,T){var P=0,I=0,v=1;if(T(s,d[g+b])<0){for(I=b+1;vI&&(v=I);var E=P;P=b-v,v=b-E}else{for(I=y-b;v=0;)P=v,v=(v<<1)+1,v<=0&&(v=I);v>I&&(v=I),P+=b,v+=b}for(P++;P>>1);T(s,d[g+h])<0?v=h:P=h+1}return v}function i(s,d){var g=O,y=0,b=f,T=0,P,I,v=0;y=s.length,y<2*f&&(b=y>>>1);var E=[];T=y<120?5:y<1542?10:y<119151?19:40,P=[],I=[];function h(o,n){P[v]=o,I[v]=n,v+=1}function D(){for(;v>1;){var o=v-2;if(o>=1&&I[o-1]<=I[o]+I[o+1]||o>=2&&I[o-2]<=I[o]+I[o-1])I[o-1]I[o+1])break;Q(o)}}function j(){for(;v>1;){var o=v-2;o>0&&I[o-1]=O||Z>=O);if(Y)break;K<0&&(K=0),K+=2}if(g=K,g<1&&(g=1),n===1){for(N=0;N=0;N--)s[J+N]=s[K+N];s[_]=E[U];return}for(var Z=g;;){var Y=0,H=0,x=!1;do if(d(E[U],s[A])<0){if(s[_--]=s[A--],Y++,H=0,--n===0){x=!0;break}}else if(s[_--]=E[U--],H++,Y=0,--k===1){x=!0;break}while((Y|H)=0;N--)s[J+N]=s[K+N];if(n===0){x=!0;break}}if(s[_--]=E[U--],--k===1){x=!0;break}if(H=k-r(s[A],E,0,k,k-1,d),H!==0){for(_-=H,U-=H,k-=H,J=_+1,K=U+1,N=0;N=O||H>=O);if(x)break;Z<0&&(Z=0),Z+=2}if(g=Z,g<1&&(g=1),k===1){for(_-=n,A-=n,J=_+1,K=A+1,N=n-1;N>=0;N--)s[J+N]=s[K+N];s[_]=E[U]}else{if(k===0)throw new Error;for(K=_-(k-1),N=0;NI&&(v=I),a(s,g,g+v,g+T,d),T=v}P.pushRun(g,T),P.mergeRuns(),b-=T,g+=T}while(b!==0);P.forceMergeRuns()}ie.exports=l},BdwD:function(ie,w,t){"use strict";var O=t("+L6B"),f=t("2/Rp"),p=t("0Owb"),m=t("k1fw"),u=t("q1tI"),a=t.n(u),r=t("FOrL"),e=t.n(r),i=function(s){var d=s.buttonProps,g=d===void 0?{}:d,y=s.styles,b=y===void 0?{}:y,T=s.customText,P=s.ButtonText,I=s.ButtonClick,v=s.Buttonclass,E=s.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(m.a)(Object(m.a)({},{color:"#999",margin:"200px auto"}),b)},a.a.createElement("img",{src:e.a}),a.a.createElement("p",{className:"mt20 font14"},T||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&a.a.createElement(f.a,Object(p.a)({className:v,onClick:I},g),P),E&&E)};w.a=i},BlVb:function(ie,w,t){var O=t("hyiK"),f=1e-8;function p(u,a){return Math.abs(u-a).5?D:h}function l(h,D,j,Q,M){var c=h.length;if(M===1)for(var o=0;oM;if(c)h.length=M;else for(var o=Q;o=0&&!(Z[z]<=S);z--);z=Math.min(z,k-2)}else{for(z=X;zS);z++);z=Math.min(z-1,k-2)}X=z,q=S;var te=Z[z+1]-Z[z];if(te===0)return;if(ae=(S-Z[z])/te,B)if(W=Y[z],ve=Y[z===0?z:z-1],re=Y[z>k-2?k-1:z+1],R=Y[z>k-3?k-1:z+2],A)g(ve,W,re,R,ae,ae*ae,ae*ae*ae,o(C,M),K);else{var de;if(U)de=g(ve,W,re,R,ae,ae*ae,ae*ae*ae,$,1),de=T($);else{if(_)return i(W,re,ae);de=y(ve,W,re,R,ae,ae*ae,ae*ae*ae)}n(C,M,de)}else if(A)l(Y[z],Y[z+1],ae,o(C,M),K);else{var de;if(U)l(Y[z],Y[z+1],ae,$,1),de=T($);else{if(_)return i(Y[z],Y[z+1],ae);de=e(Y[z],Y[z+1],ae)}n(C,M,de)}},F=new O({target:h._target,life:J,loop:h._loop,delay:h._delay,onframe:fe,ondestroy:j});return D&&D!=="spline"&&(F.easing=D),F}var v=function(h,D,j,Q){this._tracks={},this._target=h,this._loop=D||!1,this._getter=j||a,this._setter=Q||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};v.prototype={when:function(h,D){var j=this._tracks;for(var Q in D){if(!D.hasOwnProperty(Q))continue;if(!j[Q]){j[Q]=[];var M=this._getter(this._target,Q);if(M==null)continue;h!==0&&j[Q].push({time:0,value:b(M)})}j[Q].push({time:h,value:D[Q]})}return this},during:function(h){return this._onframeList.push(h),this},pause:function(){for(var h=0;h1&&l&&l.length>1){var d=p(l)/p(s);!isFinite(d)&&(d=1),e.pinchScale=d;var g=m(l);return e.pinchX=g[0],e.pinchY=g[1],{type:"pinch",target:r[0].target,event:e}}}},a=f;ie.exports=a},DBLp:function(ie,w){function t(){}t.prototype={diff:function(u,a,r){r||(r=function(v,E){return v===E}),this.equals=r;var e=this;u=u.slice(),a=a.slice();var i=a.length,l=u.length,s=1,d=i+l,g=[{newPos:-1,components:[]}],y=this.extractCommon(g[0],a,u,0);if(g[0].newPos+1>=i&&y+1>=l){for(var b=[],T=0;T=i&&j+1>=l)return O(e,E.components,a,u);g[v]=E}s++}for(;s<=d;){var I=P();if(I)return I}},pushComponent:function(u,a,r){var e=u[u.length-1];e&&e.added===a&&e.removed===r?u[u.length-1]={count:e.count+1,added:a,removed:r}:u.push({count:1,added:a,removed:r})},extractCommon:function(u,a,r,e){for(var i=a.length,l=r.length,s=u.newPos,d=s-e,g=0;s+1m||d<-m}var a=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},r=a.prototype;r.transform=null,r.needLocalTransform=function(){return u(this.rotation)||u(this.position[0])||u(this.position[1])||u(this.scale[0]-1)||u(this.scale[1]-1)};var e=[];r.updateTransform=function(){var d=this.parent,g=d&&d.transform,y=this.needLocalTransform(),b=this.transform;if(!(y||g)){b&&p(b);return}b=b||O.create(),y?this.getLocalTransform(b):p(b),g&&(y?O.mul(b,d.transform,b):O.copy(b,d.transform)),this.transform=b;var T=this.globalScaleRatio;if(T!=null&&T!==1){this.getGlobalScale(e);var P=e[0]<0?-1:1,I=e[1]<0?-1:1,v=((e[0]-P)*T+P)/e[0]||0,E=((e[1]-I)*T+I)/e[1]||0;b[0]*=v,b[1]*=v,b[2]*=E,b[3]*=E}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,b)},r.getLocalTransform=function(d){return a.getLocalTransform(this,d)},r.setTransform=function(d){var g=this.transform,y=d.dpr||1;g?d.setTransform(y*g[0],y*g[1],y*g[2],y*g[3],y*g[4],y*g[5]):d.setTransform(y,0,0,y,0,0)},r.restoreTransform=function(d){var g=d.dpr||1;d.setTransform(g,0,0,g,0,0)};var i=[],l=O.create();r.setLocalTransform=function(d){if(!d)return;var g=d[0]*d[0]+d[1]*d[1],y=d[2]*d[2]+d[3]*d[3],b=this.position,T=this.scale;u(g-1)&&(g=Math.sqrt(g)),u(y-1)&&(y=Math.sqrt(y)),d[0]<0&&(g=-g),d[3]<0&&(y=-y),b[0]=d[4],b[1]=d[5],T[0]=g,T[1]=y,this.rotation=Math.atan2(-d[1]/y,d[0]/g)},r.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,g=this.transform;d&&d.transform&&(O.mul(i,d.invTransform,g),g=i);var y=this.origin;y&&(y[0]||y[1])&&(l[4]=y[0],l[5]=y[1],O.mul(i,g,l),i[4]-=y[0],i[5]-=y[1],g=i),this.setLocalTransform(g)},r.getGlobalScale=function(d){var g=this.transform;return d=d||[],g?(d[0]=Math.sqrt(g[0]*g[0]+g[1]*g[1]),d[1]=Math.sqrt(g[2]*g[2]+g[3]*g[3]),g[0]<0&&(d[0]=-d[0]),g[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},r.transformCoordToLocal=function(d,g){var y=[d,g],b=this.invTransform;return b&&f.applyTransform(y,y,b),y},r.transformCoordToGlobal=function(d,g){var y=[d,g],b=this.transform;return b&&f.applyTransform(y,y,b),y},a.getLocalTransform=function(d,g){g=g||[],p(g);var y=d.origin,b=d.scale||[1,1],T=d.rotation||0,P=d.position||[0,0];return y&&(g[4]-=y[0],g[5]-=y[1]),O.scale(g,g,b),T&&O.rotate(g,g,T),y&&(g[4]+=y[0],g[5]+=y[1]),g[4]+=P[0],g[5]+=P[1],g};var s=a;ie.exports=s},Dagg:function(ie,w,t){var O=t("Gev7"),f=t("mFDi"),p=t("bYtY"),m=t("Xnb7");function u(r){O.call(this,r)}u.prototype={constructor:u,type:"image",brush:function(r,e){var i=this.style,l=i.image;i.bind(r,this,e);var s=this._image=m.createOrUpdateImage(l,this._image,this,this.onload);if(!s||!m.isImageReady(s))return;var d=i.x||0,g=i.y||0,y=i.width,b=i.height,T=s.width/s.height;if(y==null&&b!=null?y=b*T:b==null&&y!=null?b=y/T:y==null&&b==null&&(y=s.width,b=s.height),this.setTransform(r),i.sWidth&&i.sHeight){var P=i.sx||0,I=i.sy||0;r.drawImage(s,P,I,i.sWidth,i.sHeight,d,g,y,b)}else if(i.sx&&i.sy){var P=i.sx,I=i.sy,v=y-P,E=b-I;r.drawImage(s,P,I,v,E,d,g,y,b)}else r.drawImage(s,d,g,y,b);i.text!=null&&(this.restoreTransform(r),this.drawRectText(r,this.getBoundingRect()))},getBoundingRect:function(){var r=this.style;return this._rect||(this._rect=new f(r.x||0,r.y||0,r.width||0,r.height||0)),this._rect}},p.inherits(u,O);var a=u;ie.exports=a},E7E6:function(ie,w){ie.exports="data:image/png;base64,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"},E9nw:function(ie,w){ie.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var O=document.activeElement,f=[],p=0;py)&&(a[l]=y,r.push(l,y),u[l]=i))}if(typeof m!="undefined"&&typeof a[m]=="undefined"){var P=["Could not find a path from ",p," to ",m,"."].join("");throw new Error(P)}return u},extract_shortest_path_from_predecessor_list:function(f,p){for(var m=[],u=p,a;u;)m.push(u),a=f[u],u=f[u];return m.reverse(),m},find_path:function(f,p,m){var u=O.single_source_shortest_paths(f,p,m);return O.extract_shortest_path_from_predecessor_list(u,m)},PriorityQueue:{make:function(f){var p=O.PriorityQueue,m={},u;f=f||{};for(u in p)p.hasOwnProperty(u)&&(m[u]=p[u]);return m.queue=[],m.sorter=f.sorter||p.default_sorter,m},default_sorter:function(f,p){return f.cost-p.cost},push:function(f,p){var m={value:f,cost:p};this.queue.push(m),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};ie.exports=O},FOrL:function(ie,w,t){ie.exports=t.p+"static/nodata.a6b3f948.png"},FPkq:function(ie,w,t){ie.exports=t.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(ie,w){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var l=new t(6);return f(l),l}function f(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l}function p(l,s){return l[0]=s[0],l[1]=s[1],l[2]=s[2],l[3]=s[3],l[4]=s[4],l[5]=s[5],l}function m(l,s,d){var g=s[0]*d[0]+s[2]*d[1],y=s[1]*d[0]+s[3]*d[1],b=s[0]*d[2]+s[2]*d[3],T=s[1]*d[2]+s[3]*d[3],P=s[0]*d[4]+s[2]*d[5]+s[4],I=s[1]*d[4]+s[3]*d[5]+s[5];return l[0]=g,l[1]=y,l[2]=b,l[3]=T,l[4]=P,l[5]=I,l}function u(l,s,d){return l[0]=s[0],l[1]=s[1],l[2]=s[2],l[3]=s[3],l[4]=s[4]+d[0],l[5]=s[5]+d[1],l}function a(l,s,d){var g=s[0],y=s[2],b=s[4],T=s[1],P=s[3],I=s[5],v=Math.sin(d),E=Math.cos(d);return l[0]=g*E+T*v,l[1]=-g*v+T*E,l[2]=y*E+P*v,l[3]=-y*v+E*P,l[4]=E*b+v*I,l[5]=E*I-v*b,l}function r(l,s,d){var g=d[0],y=d[1];return l[0]=s[0]*g,l[1]=s[1]*y,l[2]=s[2]*g,l[3]=s[3]*y,l[4]=s[4]*g,l[5]=s[5]*y,l}function e(l,s){var d=s[0],g=s[2],y=s[4],b=s[1],T=s[3],P=s[5],I=d*T-b*g;return I?(I=1/I,l[0]=T*I,l[1]=-b*I,l[2]=-g*I,l[3]=d*I,l[4]=(g*P-T*y)*I,l[5]=(b*y-d*P)*I,l):null}function i(l){var s=O();return p(s,l),s}w.create=O,w.identity=f,w.copy=p,w.mul=m,w.translate=u,w.rotate=a,w.scale=r,w.invert=e,w.clone=i},FxDU:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createSensor=void 0;var O=t("QO+J"),f=t("j5sG"),p=typeof ResizeObserver!="undefined"?f.createSensor:O.createSensor;w.createSensor=p},GABl:function(ie,w){ie.exports="data:image/png;base64,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"},Gev7:function(ie,w,t){var O=t("bYtY"),f=t("K2GJ"),p=t("1bdT"),m=t("ni6a");function u(r){r=r||{},p.call(this,r);for(var e in r)r.hasOwnProperty(e)&&e!=="style"&&(this[e]=r[e]);this.style=new f(r.style,this),this._rect=null,this.__clipPaths=null}u.prototype={constructor:u,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(r){},afterBrush:function(r){},brush:function(r,e){},getBoundingRect:function(){},contain:function(r,e){return this.rectContain(r,e)},traverse:function(r,e){r.call(e,this)},rectContain:function(r,e){var i=this.transformCoordToLocal(r,e),l=this.getBoundingRect();return l.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(r){return this.animate("style",r)},attrKV:function(r,e){r!=="style"?p.prototype.attrKV.call(this,r,e):this.style.set(e)},setStyle:function(r,e){return this.style.set(r,e),this.dirty(!1),this},useStyle:function(r){return this.style=new f(r,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(u,p),O.mixin(u,m);var a=u;ie.exports=a},Gytx:function(ie,w){ie.exports=function(O,f,p,m){var u=p?p.call(m,O,f):void 0;if(u!==void 0)return!!u;if(O===f)return!0;if(typeof O!="object"||!O||typeof f!="object"||!f)return!1;var a=Object.keys(O),r=Object.keys(f);if(a.length!==r.length)return!1;for(var e=Object.prototype.hasOwnProperty.bind(f),i=0;i3&&(e=t.call(e,1));for(var l=a.length,s=0;s4&&(e=t.call(e,1,e.length-1));for(var l=e[e.length-1],s=a.length,d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");var T=y.indexOf("=");T===-1&&(T=b);var P=T===b?0:4-T%4;return[T,P]}function e(y){var b=r(y),T=b[0],P=b[1];return(T+P)*3/4-P}function i(y,b,T){return(b+T)*3/4-T}function l(y){var b,T=r(y),P=T[0],I=T[1],v=new p(i(y,P,I)),E=0,h=I>0?P-4:P,D;for(D=0;D>16&255,v[E++]=b>>8&255,v[E++]=b&255;return I===2&&(b=f[y.charCodeAt(D)]<<2|f[y.charCodeAt(D+1)]>>4,v[E++]=b&255),I===1&&(b=f[y.charCodeAt(D)]<<10|f[y.charCodeAt(D+1)]<<4|f[y.charCodeAt(D+2)]>>2,v[E++]=b>>8&255,v[E++]=b&255),v}function s(y){return O[y>>18&63]+O[y>>12&63]+O[y>>6&63]+O[y&63]}function d(y,b,T){for(var P,I=[],v=b;vh?h:E+v));return P===1?(b=y[T-1],I.push(O[b>>2]+O[b<<4&63]+"==")):P===2&&(b=(y[T-2]<<8)+y[T-1],I.push(O[b>>10]+O[b>>4&63]+O[b<<2&63]+"=")),I.join("")}},HDXh:function(ie,w,t){"use strict";(function(O){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var f=t("H7XF"),p=t("kVK+"),m=t("49sm");w.Buffer=e,w.SlowBuffer=I,w.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:u(),w.kMaxLength=a();function u(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},F.foo()===42&&typeof F.subarray=="function"&&F.subarray(1,1).byteLength===0}catch(C){return!1}}function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(F,C){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return F|0}function I(F){return+F!=F&&(F=0),e.alloc(+F)}e.isBuffer=function(C){return!!(C!=null&&C._isBuffer)},e.compare=function(C,S){if(!e.isBuffer(C)||!e.isBuffer(S))throw new TypeError("Arguments must be Buffers");if(C===S)return 0;for(var z=C.length,te=S.length,de=0,he=Math.min(z,te);de>>1;case"base64":return R(F).length;default:if(z)return ve(F).length;C=(""+C).toLowerCase(),z=!0}}e.byteLength=v;function E(F,C,S){var z=!1;if((C===void 0||C<0)&&(C=0),C>this.length)return"";if((S===void 0||S>this.length)&&(S=this.length),S<=0)return"";if(S>>>=0,C>>>=0,S<=C)return"";for(F||(F="utf8");;)switch(F){case"hex":return J(this,C,S);case"utf8":case"utf-8":return N(this,C,S);case"ascii":return _(this,C,S);case"latin1":case"binary":return K(this,C,S);case"base64":return k(this,C,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,C,S);default:if(z)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),z=!0}}e.prototype._isBuffer=!0;function h(F,C,S){var z=F[C];F[C]=F[S],F[S]=z}e.prototype.swap16=function(){var C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S0&&(C=this.toString("hex",0,S).match(/.{2}/g).join(" "),this.length>S&&(C+=" ... ")),""},e.prototype.compare=function(C,S,z,te,de){if(!e.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(S===void 0&&(S=0),z===void 0&&(z=C?C.length:0),te===void 0&&(te=0),de===void 0&&(de=this.length),S<0||z>C.length||te<0||de>this.length)throw new RangeError("out of range index");if(te>=de&&S>=z)return 0;if(te>=de)return-1;if(S>=z)return 1;if(S>>>=0,z>>>=0,te>>>=0,de>>>=0,this===C)return 0;for(var he=de-te,Me=z-S,ce=Math.min(he,Me),be=this.slice(te,de),Ae=C.slice(S,z),ye=0;ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,isNaN(S)&&(S=te?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(te)return-1;S=F.length-1}else if(S<0)if(te)S=0;else return-1;if(typeof C=="string"&&(C=e.from(C,z)),e.isBuffer(C))return C.length===0?-1:j(F,C,S,z,te);if(typeof C=="number")return C=C&255,e.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(F,C,S):Uint8Array.prototype.lastIndexOf.call(F,C,S):j(F,[C],S,z,te);throw new TypeError("val must be string, number or Buffer")}function j(F,C,S,z,te){var de=1,he=F.length,Me=C.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(F.length<2||C.length<2)return-1;de=2,he/=2,Me/=2,S/=2}function ce(Se,Ne){return de===1?Se[Ne]:Se.readUInt16BE(Ne*de)}var be;if(te){var Ae=-1;for(be=S;behe&&(S=he-Me),be=S;be>=0;be--){for(var ye=!0,ke=0;kete&&(z=te)):z=te;var de=C.length;if(de%2!==0)throw new TypeError("Invalid hex string");z>de/2&&(z=de/2);for(var he=0;hede)&&(z=de),C.length>0&&(z<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");for(var he=!1;;)switch(te){case"hex":return Q(this,C,S,z);case"utf8":case"utf-8":return M(this,C,S,z);case"ascii":return c(this,C,S,z);case"latin1":case"binary":return o(this,C,S,z);case"base64":return n(this,C,S,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,C,S,z);default:if(he)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),he=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(F,C,S){return C===0&&S===F.length?f.fromByteArray(F):f.fromByteArray(F.slice(C,S))}function N(F,C,S){S=Math.min(F.length,S);for(var z=[],te=C;te239?4:de>223?3:de>191?2:1;if(te+Me<=S){var ce,be,Ae,ye;switch(Me){case 1:de<128&&(he=de);break;case 2:ce=F[te+1],(ce&192)===128&&(ye=(de&31)<<6|ce&63,ye>127&&(he=ye));break;case 3:ce=F[te+1],be=F[te+2],(ce&192)===128&&(be&192)===128&&(ye=(de&15)<<12|(ce&63)<<6|be&63,ye>2047&&(ye<55296||ye>57343)&&(he=ye));break;case 4:ce=F[te+1],be=F[te+2],Ae=F[te+3],(ce&192)===128&&(be&192)===128&&(Ae&192)===128&&(ye=(de&15)<<18|(ce&63)<<12|(be&63)<<6|Ae&63,ye>65535&&ye<1114112&&(he=ye))}}he===null?(he=65533,Me=1):he>65535&&(he-=65536,z.push(he>>>10&1023|55296),he=56320|he&1023),z.push(he),te+=Me}return U(z)}var A=4096;function U(F){var C=F.length;if(C<=A)return String.fromCharCode.apply(String,F);for(var S="",z=0;zz)&&(S=z);for(var te="",de=C;dez&&(C=z),S<0?(S+=z,S<0&&(S=0)):S>z&&(S=z),SS)throw new RangeError("Trying to access beyond buffer length")}e.prototype.readUIntLE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=this[C],de=1,he=0;++he0&&(de*=256);)te+=this[C+--S]*de;return te},e.prototype.readUInt8=function(C,S){return S||Y(C,1,this.length),this[C]},e.prototype.readUInt16LE=function(C,S){return S||Y(C,2,this.length),this[C]|this[C+1]<<8},e.prototype.readUInt16BE=function(C,S){return S||Y(C,2,this.length),this[C]<<8|this[C+1]},e.prototype.readUInt32LE=function(C,S){return S||Y(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},e.prototype.readUInt32BE=function(C,S){return S||Y(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},e.prototype.readIntLE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=this[C],de=1,he=0;++he=de&&(te-=Math.pow(2,8*S)),te},e.prototype.readIntBE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=S,de=1,he=this[C+--te];te>0&&(de*=256);)he+=this[C+--te]*de;return de*=128,he>=de&&(he-=Math.pow(2,8*S)),he},e.prototype.readInt8=function(C,S){return S||Y(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},e.prototype.readInt16LE=function(C,S){S||Y(C,2,this.length);var z=this[C]|this[C+1]<<8;return z&32768?z|4294901760:z},e.prototype.readInt16BE=function(C,S){S||Y(C,2,this.length);var z=this[C+1]|this[C]<<8;return z&32768?z|4294901760:z},e.prototype.readInt32LE=function(C,S){return S||Y(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},e.prototype.readInt32BE=function(C,S){return S||Y(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},e.prototype.readFloatLE=function(C,S){return S||Y(C,4,this.length),p.read(this,C,!0,23,4)},e.prototype.readFloatBE=function(C,S){return S||Y(C,4,this.length),p.read(this,C,!1,23,4)},e.prototype.readDoubleLE=function(C,S){return S||Y(C,8,this.length),p.read(this,C,!0,52,8)},e.prototype.readDoubleBE=function(C,S){return S||Y(C,8,this.length),p.read(this,C,!1,52,8)};function H(F,C,S,z,te,de){if(!e.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>te||CF.length)throw new RangeError("Index out of range")}e.prototype.writeUIntLE=function(C,S,z,te){if(C=+C,S=S|0,z=z|0,!te){var de=Math.pow(2,8*z)-1;H(this,C,S,z,de,0)}var he=1,Me=0;for(this[S]=C&255;++Me=0&&(Me*=256);)this[S+he]=C/Me&255;return S+z},e.prototype.writeUInt8=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,1,255,0),e.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[S]=C&255,S+1};function x(F,C,S,z){C<0&&(C=65535+C+1);for(var te=0,de=Math.min(F.length-S,2);te>>(z?te:1-te)*8}e.prototype.writeUInt16LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8):x(this,C,S,!0),S+2},e.prototype.writeUInt16BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>8,this[S+1]=C&255):x(this,C,S,!1),S+2};function V(F,C,S,z){C<0&&(C=4294967295+C+1);for(var te=0,de=Math.min(F.length-S,4);te>>(z?te:3-te)*8&255}e.prototype.writeUInt32LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S+3]=C>>>24,this[S+2]=C>>>16,this[S+1]=C>>>8,this[S]=C&255):V(this,C,S,!0),S+4},e.prototype.writeUInt32BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255):V(this,C,S,!1),S+4},e.prototype.writeIntLE=function(C,S,z,te){if(C=+C,S=S|0,!te){var de=Math.pow(2,8*z-1);H(this,C,S,z,de-1,-de)}var he=0,Me=1,ce=0;for(this[S]=C&255;++he>0)-ce&255;return S+z},e.prototype.writeIntBE=function(C,S,z,te){if(C=+C,S=S|0,!te){var de=Math.pow(2,8*z-1);H(this,C,S,z,de-1,-de)}var he=z-1,Me=1,ce=0;for(this[S+he]=C&255;--he>=0&&(Me*=256);)C<0&&ce===0&&this[S+he+1]!==0&&(ce=1),this[S+he]=(C/Me>>0)-ce&255;return S+z},e.prototype.writeInt8=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,1,127,-128),e.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[S]=C&255,S+1},e.prototype.writeInt16LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8):x(this,C,S,!0),S+2},e.prototype.writeInt16BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>8,this[S+1]=C&255):x(this,C,S,!1),S+2},e.prototype.writeInt32LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8,this[S+2]=C>>>16,this[S+3]=C>>>24):V(this,C,S,!0),S+4},e.prototype.writeInt32BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255):V(this,C,S,!1),S+4};function G(F,C,S,z,te,de){if(S+z>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(F,C,S,z,te){return te||G(F,C,S,4,34028234663852886e22,-34028234663852886e22),p.write(F,C,S,z,23,4),S+4}e.prototype.writeFloatLE=function(C,S,z){return oe(this,C,S,!0,z)},e.prototype.writeFloatBE=function(C,S,z){return oe(this,C,S,!1,z)};function ee(F,C,S,z,te){return te||G(F,C,S,8,17976931348623157e292,-17976931348623157e292),p.write(F,C,S,z,52,8),S+8}e.prototype.writeDoubleLE=function(C,S,z){return ee(this,C,S,!0,z)},e.prototype.writeDoubleBE=function(C,S,z){return ee(this,C,S,!1,z)},e.prototype.copy=function(C,S,z,te){if(z||(z=0),!te&&te!==0&&(te=this.length),S>=C.length&&(S=C.length),S||(S=0),te>0&&te=this.length)throw new RangeError("sourceStart out of bounds");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),C.length-S=0;--he)C[he+S]=this[he+z];else if(de<1e3||!e.TYPED_ARRAY_SUPPORT)for(he=0;he>>0,z=z===void 0?this.length:z>>>0,C||(C=0);var he;if(typeof C=="number")for(he=S;he55295&&S<57344){if(!te){if(S>56319){(C-=3)>-1&&de.push(239,191,189);continue}else if(he+1===z){(C-=3)>-1&&de.push(239,191,189);continue}te=S;continue}if(S<56320){(C-=3)>-1&&de.push(239,191,189),te=S;continue}S=(te-55296<<10|S-56320)+65536}else te&&((C-=3)>-1&&de.push(239,191,189));if(te=null,S<128){if((C-=1)<0)break;de.push(S)}else if(S<2048){if((C-=2)<0)break;de.push(S>>6|192,S&63|128)}else if(S<65536){if((C-=3)<0)break;de.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((C-=4)<0)break;de.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return de}function W(F){for(var C=[],S=0;S>8,te=S%256,de.push(te),de.push(z);return de}function R(F){return f.toByteArray(q(F))}function $(F,C,S,z){for(var te=0;te=C.length||te>=F.length);++te)C[te+S]=F[te];return te}function fe(F){return F!==F}}).call(this,t("IyRk"))},HpTS:function(ie,w,t){ie.exports=t.p+"static/small_program.f74069ec.png"},I8Z2:function(ie,w,t){"use strict";t.d(w,"a",function(){return m}),t.d(w,"b",function(){return g}),t.d(w,"c",function(){return b});var O=t("q1tI"),f=function(){var D=function(P,I){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var h in E)E.hasOwnProperty(h)&&(v[h]=E[h])},D(P,I)};return function(P,I){D(P,I);function v(){this.constructor=P}P.prototype=I===null?Object.create(I):(v.prototype=I.prototype,new v)}}(),p=O.createContext(null),m=function(D){f(P,D);function P(){return D!==null&&D.apply(this,arguments)||this}return P.prototype.render=function(){return O.createElement(p.Provider,{value:this.props.store},this.props.children)},P}(O.Component),u=t("Gytx"),a=t.n(u),r=t("2mql"),e=t.n(r),i=function(){var D=function(P,I){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var h in E)E.hasOwnProperty(h)&&(v[h]=E[h])},D(P,I)};return function(P,I){D(P,I);function v(){this.constructor=P}P.prototype=I===null?Object.create(I):(v.prototype=I.prototype,new v)}}(),l=function(){return l=Object.assign||function(D){for(var P,I=1,v=arguments.length;Ithis._ux||P(T-this._yi)>this._uy||this._len<5;return this.addData(r.L,h,T),this._ctx&&j&&(this._needsDash()?this._dashedLineTo(h,T):this._ctx.lineTo(h,T)),j&&(this._xi=h,this._yi=T),this},bezierCurveTo:function(h,T,j,Q,M,c){return this.addData(r.C,h,T,j,Q,M,c),this._ctx&&(this._needsDash()?this._dashedBezierTo(h,T,j,Q,M,c):this._ctx.bezierCurveTo(h,T,j,Q,M,c)),this._xi=M,this._yi=c,this},quadraticCurveTo:function(h,T,j,Q){return this.addData(r.Q,h,T,j,Q),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(h,T,j,Q):this._ctx.quadraticCurveTo(h,T,j,Q)),this._xi=j,this._yi=Q,this},arc:function(h,T,j,Q,M,c){return this.addData(r.A,h,T,j,j,Q,M-Q,0,c?0:1),this._ctx&&this._ctx.arc(h,T,j,Q,M,c),this._xi=y(M)*j+h,this._yi=b(M)*j+T,this},arcTo:function(h,T,j,Q,M){return this._ctx&&this._ctx.arcTo(h,T,j,Q,M),this},rect:function(h,T,j,Q){return this._ctx&&this._ctx.rect(h,T,j,Q),this.addData(r.R,h,T,j,Q),this},closePath:function(){this.addData(r.Z);var h=this._ctx,T=this._x0,j=this._y0;return h&&(this._needsDash()&&this._dashedLineTo(T,j),h.closePath()),this._xi=T,this._yi=j,this},fill:function(h){h&&h.fill(),this.toStatic()},stroke:function(h){h&&h.stroke(),this.toStatic()},setLineDash:function(h){if(h instanceof Array){this._lineDash=h,this._dashIdx=0;for(var T=0,j=0;jT.length&&(this._expandData(),T=this.data);for(var j=0;j0&&A<=h||B<0&&A>=h||B===0&&(k>0&&U<=T||k<0&&U>=T);){if(J=this._dashIdx,_=M[J],A+=B*_,U+=k*_,this._dashIdx=(J+1)%K,B>0&&Ao||k>0&&Un)continue;c[J%2?"moveTo":"lineTo"](B>=0?d(A,h):g(A,h),k>=0?d(U,T):g(U,T))}B=A-h,k=U-T,this._dashOffset=-D(B*B+k*k)},_dashedBezierTo:function(h,T,j,Q,M,c){var o=this._dashSum,n=this._dashOffset,B=this._lineDash,k=this._ctx,N=this._xi,A=this._yi,U,_,K,J=O.cubicAt,Z=0,Y=this._dashIdx,H=B.length,x,V,G=0;for(n<0&&(n=o+n),n%=o,U=0;U<1;U+=.1)_=J(N,h,j,M,U+.1)-J(N,h,j,M,U),K=J(A,T,Q,c,U+.1)-J(A,T,Q,c,U),Z+=D(_*_+K*K);for(;Yn);Y++);for(U=(G-n)/Z;U<=1;)x=J(N,h,j,M,U),V=J(A,T,Q,c,U),Y%2?k.moveTo(x,V):k.lineTo(x,V),U+=B[Y]/Z,Y=(Y+1)%H;Y%2!==0&&k.lineTo(M,c),_=M-x,K=c-V,this._dashOffset=-D(_*_+K*K)},_dashedQuadraticTo:function(h,T,j,Q){var M=j,c=Q;j=(j+2*h)/3,Q=(Q+2*T)/3,h=(this._xi+2*h)/3,T=(this._yi+2*T)/3,this._dashedBezierTo(h,T,j,Q,M,c)},toStatic:function(){var h=this.data;h instanceof Array&&(h.length=this._len,I&&(this.data=new Float32Array(h)))},getBoundingRect:function(){e[0]=e[1]=l[0]=l[1]=Number.MAX_VALUE,i[0]=i[1]=s[0]=s[1]=-Number.MAX_VALUE;for(var h=this.data,T=0,j=0,Q=0,M=0,c=0;cB||P(n-c)>k||A===N-1)&&(h.lineTo(o,n),M=o,c=n);break;case r.C:h.bezierCurveTo(T[A++],T[A++],T[A++],T[A++],T[A++],T[A++]),M=T[A-2],c=T[A-1];break;case r.Q:h.quadraticCurveTo(T[A++],T[A++],T[A++],T[A++]),M=T[A-2],c=T[A-1];break;case r.A:var _=T[A++],K=T[A++],J=T[A++],Z=T[A++],Y=T[A++],H=T[A++],x=T[A++],V=T[A++],G=J>Z?J:Z,oe=J>Z?1:J/Z,ee=J>Z?Z/J:1,X=Math.abs(J-Z)>.001,q=Y+H;X?(h.translate(_,K),h.rotate(x),h.scale(oe,ee),h.arc(0,0,G,Y,q,1-V),h.scale(1/oe,1/ee),h.rotate(-x),h.translate(-_,-K)):h.arc(_,K,G,Y,q,1-V),A===1&&(j=y(Y)*J+_,Q=b(Y)*Z+K),M=y(q)*J+_,c=b(q)*Z+K;break;case r.R:j=M=T[A],Q=c=T[A+1],h.rect(T[A++],T[A++],T[A++],T[A++]);break;case r.Z:h.closePath(),M=j,c=Q}}}},v.CMD=r;var E=v;ie.exports=E},ItGF:function(ie,w){var t={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?t={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?t={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?t={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:t=f(navigator.userAgent);var O=t;function f(p){var m={},u={},a=p.match(/Firefox\/([\d.]+)/),r=p.match(/MSIE\s([\d.]+)/)||p.match(/Trident\/.+?rv:(([\d.]+))/),e=p.match(/Edge\/([\d.]+)/),i=/micromessenger/i.test(p);return a&&(u.firefox=!0,u.version=a[1]),r&&(u.ie=!0,u.version=r[1]),e&&(u.edge=!0,u.version=e[1]),i&&(u.weChat=!0),{browser:u,os:m,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!u.ie&&!u.edge,pointerEventsSupported:"onpointerdown"in window&&(u.edge||u.ie&&u.version>=11),domSupported:typeof document!="undefined"}}ie.exports=O},J6Nv:function(ie,w){w.isValid=function(O){return!isNaN(O)&&O>=1&&O<=40}},JWDV:function(ie,w,t){ie.exports=t.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(ie,w){ie.exports="data:image/png;base64,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"},Jq4h:function(ie,w,t){ie.exports=t.p+"static/qrcode.2267e4d5.png"},JzKC:function(ie,w,t){var O=t("Wogr"),f=t("aZ40");w.mul=function(m,u){for(var a=O.alloc(m.length+u.length-1),r=0;r=0;){for(var r=a[0],e=0;e0},extendFrom:function(d,g){if(d)for(var y in d)d.hasOwnProperty(y)&&(g===!0||(g===!1?!this.hasOwnProperty(y):d[y]!=null))&&(this[y]=d[y])},set:function(d,g){typeof d=="string"?this[d]=g:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,g,y){for(var b=g.type==="radial"?r:a,D=b(d,g,y),P=g.colorStops,I=0;I=0)continue;if(!Object.prototype.hasOwnProperty.call(d,b))continue;y[b]=d[b]}return y}function e(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function i(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var s=function(d){l(g,d);function g(y){e(this,g);var b=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,y));return b.scrollListener=b.scrollListener.bind(b),b.eventListenerOptions=b.eventListenerOptions.bind(b),b.mousewheelListener=b.mousewheelListener.bind(b),b}return O(g,[{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 b=this.getParentElement(this.scrollComponent);b.scrollTop=b.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var b=!1,D={get passive(){b=!0}};try{document.addEventListener("test",null,D),document.removeEventListener("test",null,D)}catch(P){}return b}},{key:"eventListenerOptions",value:function(){var b=this.props.useCapture;return this.isPassiveSupported()&&(b={useCapture:this.props.useCapture,passive:!0}),b}},{key:"setDefaultLoader",value:function(b){this.defaultLoader=b}},{key:"detachMousewheelListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.scrollComponent.parentNode),b.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.getParentElement(this.scrollComponent)),b.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),b.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(b){var D=this.props.getScrollParent&&this.props.getScrollParent();return D!=null?D:b&&b.parentNode}},{key:"filterProps",value:function(b){return b}},{key:"attachScrollListener",value:function(){var b=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!b)return;var D=window;this.props.useWindow===!1&&(D=b),D.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),D.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),D.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(b){b.deltaY===1&&!this.isPassiveSupported()&&b.preventDefault()}},{key:"scrollListener",value:function(){var b=this.scrollComponent,D=window,P=this.getParentElement(b),I=void 0;if(this.props.useWindow){var v=document.documentElement||document.body.parentNode||document.body,E=D.pageYOffset!==void 0?D.pageYOffset:v.scrollTop;this.props.isReverse?I=E:I=this.calculateOffset(b,E)}else this.props.isReverse?I=P.scrollTop:I=b.scrollHeight-P.scrollTop-P.clientHeight;I1&&arguments[1]!==void 0?arguments[1]:1,st=he.length,ut=0;ut1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Q.a)(Y).map(function(x,V){if(!u.isValidElement(x)||!x.type)return null;var G=x.type.isSelectOptGroup,oe=x.key,ee=x.props,X=ee.children,q=Object(r.a)(ee,["children"]);return H||!G?M(x):Object(j.a)(Object(j.a)({key:"__RC_SELECT_GRP__".concat(oe===null?V:oe,"__"),label:oe},q),{},{options:c(X)})}).filter(function(x){return x})}var o=t("2Qr1"),n=t("qNPg"),B=t("U8pU"),k=t("Kwbf"),N=t("WKfj");function A(Y){var H=Y.mode,x=Y.options,V=Y.children,G=Y.backfill,oe=Y.allowClear,ee=Y.placeholder,X=Y.getInputElement,q=Y.showSearch,se=Y.onSearch,ae=Y.defaultOpen,ve=Y.autoFocus,W=Y.labelInValue,re=Y.value,R=Y.inputValue,$=Y.optionLabelProp,fe=H==="multiple"||H==="tags",F=q!==void 0?q:fe||H==="combobox",C=x||c(V);if(Object(k.a)(H!=="tags"||C.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var S=C.some(function(de){return de.options?de.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(k.a)(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(H!=="combobox"||!$,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(H==="combobox"||!G,"`backfill` only works with `combobox` mode."),Object(k.a)(H==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(k.b)(H!=="combobox"||!X||!oe||!ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!F&&H!=="combobox"&&H!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!ae||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),re!=null){var z=Object(N.d)(re);Object(k.a)(!W||z.every(function(de){return Object(B.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(k.a)(!fe||Array.isArray(re),"`value` should be array when `mode` is `multiple` or `tags`")}if(V){var te=null;Object(Q.a)(V).some(function(de){if(!u.isValidElement(de)||!de.type)return!1;var he=de.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Me=Object(Q.a)(de.props.children).every(function(ce){return!u.isValidElement(ce)||!de.type||ce.type.isSelectOption?!0:(te=ce.type,!1)});return!Me}return te=he,!0}),te&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(te.displayName||te.name||te,"`.")),Object(k.a)(R===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=A,_=Object(n.a)({prefixCls:"rc-select",components:{optionList:I},convertChildrenToData:c,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:U,fillOptionsWithMissingValue:o.a}),K=function(Y){Object(p.a)(x,Y);var H=Object(m.a)(x);function x(){var V;return Object(O.a)(this,x),V=H.apply(this,arguments),V.selectRef=u.createRef(),V.focus=function(){V.selectRef.current.focus()},V.blur=function(){V.selectRef.current.blur()},V}return Object(f.a)(x,[{key:"render",value:function(){return u.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),x}(u.Component);K.Option=E,K.OptGroup=T;var J=K,Z=w.c=J},Lzq4:function(ie,w,t){var O=t("u/Db"),f=t("e/Dd");function p(m){this.mode=O.KANJI,this.data=m}p.getBitsLength=function(u){return u*13},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){var u;for(u=0;u=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[u]+` -Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),m.put(a,13)}},ie.exports=p},MEGo:function(ie,w,t){var O=t("4fz+"),f=t("Dagg"),p=t("dqUG"),m=t("2fw6"),u=t("x6Kt"),a=t("rmlV"),r=t("yxFR"),e=t("y+Vt"),i=t("h7HQ"),l=t("1Jh7"),s=t("SKnc"),d=t("K2GJ"),g=t("Fofx"),y=t("NC18"),b=y.createFromString,D=t("bYtY"),P=D.isString,I=D.extend,v=D.defaults,E=D.trim,h=D.each,T=/[\s,]+/;function j(x){if(P(x)){var V=new DOMParser;x=V.parseFromString(x,"text/xml")}for(x.nodeType===9&&(x=x.firstChild);x.nodeName.toLowerCase()!=="svg"||x.nodeType!==1;)x=x.nextSibling;return x}function Q(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}Q.prototype.parse=function(x,V){V=V||{};var G=j(x);if(!G)throw new Error("Illegal svg");var oe=new O;this._root=oe;var ee=G.getAttribute("viewBox")||"",X=parseFloat(G.getAttribute("width")||V.width),q=parseFloat(G.getAttribute("height")||V.height);isNaN(X)&&(X=null),isNaN(q)&&(q=null),N(G,oe,null,!0);for(var se=G.firstChild;se;)this._parseNode(se,oe),se=se.nextSibling;var ae,ve;if(ee){var W=E(ee).split(T);W.length>=4&&(ae={x:parseFloat(W[0]||0),y:parseFloat(W[1]||0),width:parseFloat(W[2]),height:parseFloat(W[3])})}if(ae&&X!=null&&q!=null&&(ve=Y(ae,X,q),!V.ignoreViewBox)){var re=oe;oe=new O,oe.add(re),re.scale=ve.scale.slice(),re.position=ve.position.slice()}return!V.ignoreRootClip&&X!=null&&q!=null&&oe.setClipPath(new u({shape:{x:0,y:0,width:X,height:q}})),{root:oe,width:X,height:q,viewBoxRect:ae,viewBoxTransform:ve}},Q.prototype._parseNode=function(x,V){var G=x.nodeName.toLowerCase();G==="defs"?this._isDefine=!0:G==="text"&&(this._isText=!0);var oe;if(this._isDefine){var ee=c[G];if(ee){var X=ee.call(this,x),q=x.getAttribute("id");q&&(this._defs[q]=X)}}else{var ee=M[G];ee&&(oe=ee.call(this,x,V),V.add(oe))}for(var se=x.firstChild;se;)se.nodeType===1&&this._parseNode(se,oe),se.nodeType===3&&this._isText&&this._parseText(se,oe),se=se.nextSibling;G==="defs"?this._isDefine=!1:G==="text"&&(this._isText=!1)},Q.prototype._parseText=function(x,V){if(x.nodeType===1){var G=x.getAttribute("dx")||0,oe=x.getAttribute("dy")||0;this._textX+=parseFloat(G),this._textY+=parseFloat(oe)}var ee=new p({style:{text:x.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});n(V,ee),N(x,ee,this._defs);var X=ee.style.fontSize;X&&X<9&&(ee.style.fontSize=9,ee.scale=ee.scale||[1,1],ee.scale[0]*=X/9,ee.scale[1]*=X/9);var q=ee.getBoundingRect();return this._textX+=q.width,V.add(ee),ee};var M={g:function(x,V){var G=new O;return n(V,G),N(x,G,this._defs),G},rect:function(x,V){var G=new u;return n(V,G),N(x,G,this._defs),G.setShape({x:parseFloat(x.getAttribute("x")||0),y:parseFloat(x.getAttribute("y")||0),width:parseFloat(x.getAttribute("width")||0),height:parseFloat(x.getAttribute("height")||0)}),G},circle:function(x,V){var G=new m;return n(V,G),N(x,G,this._defs),G.setShape({cx:parseFloat(x.getAttribute("cx")||0),cy:parseFloat(x.getAttribute("cy")||0),r:parseFloat(x.getAttribute("r")||0)}),G},line:function(x,V){var G=new r;return n(V,G),N(x,G,this._defs),G.setShape({x1:parseFloat(x.getAttribute("x1")||0),y1:parseFloat(x.getAttribute("y1")||0),x2:parseFloat(x.getAttribute("x2")||0),y2:parseFloat(x.getAttribute("y2")||0)}),G},ellipse:function(x,V){var G=new a;return n(V,G),N(x,G,this._defs),G.setShape({cx:parseFloat(x.getAttribute("cx")||0),cy:parseFloat(x.getAttribute("cy")||0),rx:parseFloat(x.getAttribute("rx")||0),ry:parseFloat(x.getAttribute("ry")||0)}),G},polygon:function(x,V){var G=x.getAttribute("points");G&&(G=B(G));var oe=new i({shape:{points:G||[]}});return n(V,oe),N(x,oe,this._defs),oe},polyline:function(x,V){var G=new e;n(V,G),N(x,G,this._defs);var oe=x.getAttribute("points");oe&&(oe=B(oe));var ee=new l({shape:{points:oe||[]}});return ee},image:function(x,V){var G=new f;return n(V,G),N(x,G,this._defs),G.setStyle({image:x.getAttribute("xlink:href"),x:x.getAttribute("x"),y:x.getAttribute("y"),width:x.getAttribute("width"),height:x.getAttribute("height")}),G},text:function(x,V){var G=x.getAttribute("x")||0,oe=x.getAttribute("y")||0,ee=x.getAttribute("dx")||0,X=x.getAttribute("dy")||0;this._textX=parseFloat(G)+parseFloat(ee),this._textY=parseFloat(oe)+parseFloat(X);var q=new O;return n(V,q),N(x,q,this._defs),q},tspan:function(x,V){var G=x.getAttribute("x"),oe=x.getAttribute("y");G!=null&&(this._textX=parseFloat(G)),oe!=null&&(this._textY=parseFloat(oe));var ee=x.getAttribute("dx")||0,X=x.getAttribute("dy")||0,q=new O;return n(V,q),N(x,q,this._defs),this._textX+=ee,this._textY+=X,q},path:function(x,V){var G=x.getAttribute("d")||"",oe=b(G);return n(V,oe),N(x,oe,this._defs),oe}},c={lineargradient:function(x){var V=parseInt(x.getAttribute("x1")||0,10),G=parseInt(x.getAttribute("y1")||0,10),oe=parseInt(x.getAttribute("x2")||10,10),ee=parseInt(x.getAttribute("y2")||0,10),X=new s(V,G,oe,ee);return o(x,X),X},radialgradient:function(x){}};function o(x,V){for(var G=x.firstChild;G;){if(G.nodeType===1){var oe=G.getAttribute("offset");oe.indexOf("%")>0?oe=parseInt(oe,10)/100:oe?oe=parseFloat(oe):oe=0;var ee=G.getAttribute("stop-color")||"#000000";V.addColorStop(oe,ee)}G=G.nextSibling}}function n(x,V){x&&x.__inheritedStyle&&(V.__inheritedStyle||(V.__inheritedStyle={}),v(V.__inheritedStyle,x.__inheritedStyle))}function B(x){for(var V=E(x).split(T),G=[],oe=0;oe0;X-=2){var q=ee[X],se=ee[X-1];oe=oe||g.create();switch(se){case"translate":q=E(q).split(T),g.translate(oe,oe,[parseFloat(q[0]),parseFloat(q[1]||0)]);break;case"scale":q=E(q).split(T),g.scale(oe,oe,[parseFloat(q[0]),parseFloat(q[1]||q[0])]);break;case"rotate":q=E(q).split(T),g.rotate(oe,oe,parseFloat(q[0]));break;case"skew":q=E(q).split(T),console.warn("Skew transform is not supported yet");break;case"matrix":var q=E(q).split(T);oe[0]=parseFloat(q[0]),oe[1]=parseFloat(q[1]),oe[2]=parseFloat(q[2]),oe[3]=parseFloat(q[3]),oe[4]=parseFloat(q[4]),oe[5]=parseFloat(q[5]);break}}V.setLocalTransform(oe)}}var J=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Z(x){var V=x.getAttribute("style"),G={};if(!V)return G;var oe={};J.lastIndex=0;for(var ee;(ee=J.exec(V))!=null;)oe[ee[1]]=ee[2];for(var X in k)k.hasOwnProperty(X)&&oe[X]!=null&&(G[k[X]]=oe[X]);return G}function Y(x,V,G){var oe=V/x.width,ee=G/x.height,X=Math.min(oe,ee),q=[X,X],se=[-(x.x+x.width/2)*X+V/2,-(x.y+x.height/2)*X+G/2];return{scale:q,position:se}}function H(x,V){var G=new Q;return G.parse(x,V)}w.parseXML=j,w.makeViewBoxTransform=Y,w.parseSVG=H},MKOG:function(ie,w,t){var O=t("bYtY"),f=t("YH21"),p=f.Dispatcher,m=t("mLcG"),u=t("Bq2U"),a=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,p.call(this)};a.prototype={constructor:a,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var i=e.getClips(),l=0;l=0&&this._clips.splice(i,1)},removeAnimator:function(e){for(var i=e.getClips(),l=0;l1&&(M*=m(U),c*=m(U));var _=(j===Q?-1:1)*m((M*M*(c*c)-M*M*(A*A)-c*c*(N*N))/(M*M*(A*A)+c*c*(N*N)))||0,K=_*M*A/c,J=_*-c*N/M,Z=(v+h)/2+a(k)*K-u(k)*J,Y=(E+T)/2+u(k)*K+a(k)*J,H=l([1,0],[(N-K)/M,(A-J)/c]),x=[(N-K)/M,(A-J)/c],V=[(-1*N-K)/M,(-1*A-J)/c],G=l(x,V);i(x,V)<=-1&&(G=r),i(x,V)>=1&&(G=0),Q===0&&G>0&&(G=G-2*r),Q===1&&G<0&&(G=G+2*r),B.addData(n,Z,Y,M,c,H,G,k,Q)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(v){if(!v)return new f;for(var E=0,h=0,T=E,j=h,Q,M=new f,c=f.CMD,o=v.match(d),n=0;n1&&arguments[1]!==void 0?arguments[1]:60,u=null;return function(){for(var a=this,r=arguments.length,e=new Array(r),i=0;i=0;D-=1){var P=e.get(D)||new Set;P.forEach(function(I){var v=I.parent,E=I.node;if(l(E)||!I.parent||b.has(I.parent.key))return;if(l(I.parent.node)){b.add(v.key);return}var h=!0,T=!1;(v.children||[]).filter(function(j){return!l(j.node)}).forEach(function(j){var Q=j.key,M=s.has(Q);h&&!M&&(h=!1),!T&&(M||d.has(Q))&&(T=!0)}),h&&s.add(v.key),T&&d.add(v.key),b.add(v.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f(d,s))}}function u(r,e,i,l,s){for(var d=new Set(r),g=new Set(e),y=0;y<=l;y+=1){var b=i.get(y)||new Set;b.forEach(function(v){var E=v.key,h=v.node,T=v.children,j=T===void 0?[]:T;!d.has(E)&&!g.has(E)&&!s(h)&&j.filter(function(Q){return!s(Q.node)}).forEach(function(Q){d.delete(Q.key)})})}g=new Set;for(var D=new Set,P=l;P>=0;P-=1){var I=i.get(P)||new Set;I.forEach(function(v){var E=v.parent,h=v.node;if(s(h)||!v.parent||D.has(v.parent.key))return;if(s(v.parent.node)){D.add(E.key);return}var T=!0,j=!1;(E.children||[]).filter(function(Q){return!s(Q.node)}).forEach(function(Q){var M=Q.key,c=d.has(M);T&&!c&&(T=!1),!j&&(c||g.has(M))&&(j=!0)}),T||d.delete(E.key),j&&g.add(E.key),D.add(E.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(f(g,d))}}function a(r,e,i,l){var s=[],d;l?d=l:d=p;var g=new Set(r.filter(function(P){var I=!!i[P];return I||s.push(P),I})),y=new Map,b=0;Object.keys(i).forEach(function(P){var I=i[P],v=I.level,E=y.get(v);E||(E=new Set,y.set(v,E)),E.add(I),b=Math.max(b,v)}),Object(O.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var D;return e===!0?D=m(g,y,b,d):D=u(g,e.halfCheckedKeys,y,b,d),D}},OLES:function(ie,w,t){"use strict";var O=t("U8pU"),f=t("VTBJ"),p=t("Ff2n"),m=t("q1tI"),u=t("uciX"),a=t("7ixt"),r=function(g){var y=g.overlay,b=g.prefixCls,D=g.id,P=g.overlayInnerStyle;return m.createElement("div",{className:"".concat(b,"-inner"),id:D,role:"tooltip",style:P},typeof y=="function"?y():y)},e=r,i=function(g,y){var b=g.overlayClassName,D=g.trigger,P=D===void 0?["hover"]:D,I=g.mouseEnterDelay,v=I===void 0?0:I,E=g.mouseLeaveDelay,h=E===void 0?.1:E,T=g.overlayStyle,j=g.prefixCls,Q=j===void 0?"rc-tooltip":j,M=g.children,c=g.onVisibleChange,o=g.afterVisibleChange,n=g.transitionName,B=g.animation,k=g.placement,N=k===void 0?"right":k,A=g.align,U=A===void 0?{}:A,_=g.destroyTooltipOnHide,K=_===void 0?!1:_,J=g.defaultVisible,Z=g.getTooltipContainer,Y=g.overlayInnerStyle,H=Object(p.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),x=Object(m.useRef)(null);Object(m.useImperativeHandle)(y,function(){return x.current});var V=Object(f.a)({},H);"visible"in g&&(V.popupVisible=g.visible);var G=function(){var se=g.arrowContent,ae=se===void 0?null:se,ve=g.overlay,W=g.id;return[m.createElement("div",{className:"".concat(Q,"-arrow"),key:"arrow"},ae),m.createElement(e,{key:"content",prefixCls:Q,id:W,overlay:ve,overlayInnerStyle:Y})]},oe=!1,ee=!1;if(typeof K=="boolean")oe=K;else if(K&&Object(O.a)(K)==="object"){var X=K.keepParent;oe=X===!0,ee=X===!1}return m.createElement(u.a,Object.assign({popupClassName:b,prefixCls:Q,popup:G,action:P,builtinPlacements:a.a,popupPlacement:N,ref:x,popupAlign:U,getPopupContainer:Z,onPopupVisibleChange:c,afterPopupVisibleChange:o,popupTransitionName:n,popupAnimation:B,defaultPopupVisible:J,destroyPopupOnHide:oe,autoDestroy:ee,mouseLeaveDelay:h,popupStyle:T,mouseEnterDelay:v},V),M)},l=Object(m.forwardRef)(i),s=w.a=l},OS9S:function(ie,w,t){var O=t("bYtY"),f=O.inherits,p=t("Gev7"),m=t("mFDi");function u(e){p.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}u.prototype.incremental=!0,u.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},u.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},u.prototype.addDisplayables=function(e,i){i=i||!1;for(var l=0;l=0&&M.splice(c,1),M}function s(j,Q){var M=j.slice();return M.indexOf(Q)===-1&&M.push(Q),M}function d(j){return j.split("-")}function g(j,Q){return"".concat(j,"-").concat(Q)}function y(j){return j&&j.type&&j.type.isTreeNode}function b(j,Q){var M=[j],c=Q[j];function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(B){var k=B.key,N=B.children;M.push(k),o(N)})}return o(c.children),M}function D(j,Q){var M=j.clientY,c=Q.selectHandle.getBoundingClientRect(),o=c.top,n=c.bottom,B=c.height,k=Math.max(B*e,i);return M<=o+k?-1:M>=n-k?1:0}function P(j,Q){if(!j)return;var M=Q.multiple;return M?j.slice():j.length?[j[0]]:j}var I=function(Q){return Q};function v(j,Q){if(!j)return[];var M=Q||{},c=M.processProps,o=c===void 0?I:c,n=Array.isArray(j)?j:[j];return n.map(function(B){var k=B.children,N=Object(p.a)(B,["children"]),A=v(k,Q);return u.a.createElement(r.a,Object.assign({},o(N)),A)})}function E(j){if(!j)return null;var Q;if(Array.isArray(j))Q={checkedKeys:j,halfCheckedKeys:void 0};else if(Object(f.a)(j)==="object")Q={checkedKeys:j.checked||void 0,halfCheckedKeys:j.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return Q}function h(j,Q){var M=new Set;function c(o){if(M.has(o))return;var n=Q[o];if(!n)return;M.add(o);var B=n.parent,k=n.node;if(k.disabled)return;B&&c(B.key)}return(j||[]).forEach(function(o){c(o)}),Object(O.a)(M)}function T(j){var Q={};return Object.keys(j).forEach(function(M){(M.startsWith("data-")||M.startsWith("aria-"))&&(Q[M]=j[M])}),Q}},Ohmc:function(ie,w,t){ie.exports=t.p+"static/certificate.fc32dc1b.jpg"},P47w:function(ie,w,t){var O=t("hydK"),f=O.createElement,p=t("IMiH"),m=t("mFDi"),u=t("Fofx"),a=t("6GrX"),r=t("pzxd"),e=t("dqUG"),i=p.CMD,l=Array.prototype.join,s="none",d=Math.round,g=Math.sin,y=Math.cos,b=Math.PI,D=Math.PI*2,P=180/b,I=1e-4;function v(x){return d(x*1e4)/1e4}function E(x){return x-I}function h(x,V){var G=V?x.textFill:x.fill;return G!=null&&G!==s}function T(x,V){var G=V?x.textStroke:x.stroke;return G!=null&&G!==s}function j(x,V){V&&Q(x,"transform","matrix("+l.call(V,",")+")")}function Q(x,V,G){(!G||G.type!=="linear"&&G.type!=="radial")&&x.setAttribute(V,G)}function M(x,V,G){x.setAttributeNS("http://www.w3.org/1999/xlink",V,G)}function c(x,V,G,oe){if(h(V,G)){var ee=G?V.textFill:V.fill;ee=ee==="transparent"?s:ee,Q(x,"fill",ee),Q(x,"fill-opacity",V.fillOpacity!=null?V.fillOpacity*V.opacity:V.opacity)}else Q(x,"fill",s);if(T(V,G)){var X=G?V.textStroke:V.stroke;X=X==="transparent"?s:X,Q(x,"stroke",X);var q=G?V.textStrokeWidth:V.lineWidth,se=!G&&V.strokeNoScale?oe.getLineScale():1;Q(x,"stroke-width",q/se),Q(x,"paint-order",G?"stroke":"fill"),Q(x,"stroke-opacity",V.strokeOpacity!=null?V.strokeOpacity:V.opacity);var ae=V.lineDash;ae?(Q(x,"stroke-dasharray",V.lineDash.join(",")),Q(x,"stroke-dashoffset",d(V.lineDashOffset||0))):Q(x,"stroke-dasharray",""),V.lineCap&&Q(x,"stroke-linecap",V.lineCap),V.lineJoin&&Q(x,"stroke-linejoin",V.lineJoin),V.miterLimit&&Q(x,"stroke-miterlimit",V.miterLimit)}else Q(x,"stroke",s)}function o(x){for(var V=[],G=x.data,oe=x.len(),ee=0;ee=D:-$>=D),z=$>0?$%D:$%D+D,te=!1;S?te=!0:E(C)?te=!1:te=z>=b===!!F;var de=v(ae+W*y(R)),he=v(ve+re*g(R));S&&(F?$=D-1e-4:$=-D+1e-4,te=!0,ee===9&&V.push("M",de,he));var Me=v(ae+W*y(R+$)),ce=v(ve+re*g(R+$));V.push("A",v(W),v(re),d(fe*P),+te,+F,Me,ce);break;case i.Z:q="Z";break;case i.R:var Me=v(G[ee++]),ce=v(G[ee++]),be=v(G[ee++]),Ae=v(G[ee++]);V.push("M",Me,ce,"L",Me+be,ce,"L",Me+be,ce+Ae,"L",Me,ce+Ae,"L",Me,ce);break}q&&V.push(q);for(var ye=0;yeke){for(;Ae0&&g>0&&u[d-1]||(e+=l?p("M",g+r,.5+y+r):p("m",i,0),i=0,l=!1),g+1':"",y="',b='viewBox="0 0 '+d+" "+d+'"',D=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",P=''+g+y+` -`;return typeof e=="function"&&e(null,P),P}},QBsz:function(ie,w){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(c,o){var n=new t(2);return c==null&&(c=0),o==null&&(o=0),n[0]=c,n[1]=o,n}function f(c,o){return c[0]=o[0],c[1]=o[1],c}function p(c){var o=new t(2);return o[0]=c[0],o[1]=c[1],o}function m(c,o,n){return c[0]=o,c[1]=n,c}function u(c,o,n){return c[0]=o[0]+n[0],c[1]=o[1]+n[1],c}function a(c,o,n,B){return c[0]=o[0]+n[0]*B,c[1]=o[1]+n[1]*B,c}function r(c,o,n){return c[0]=o[0]-n[0],c[1]=o[1]-n[1],c}function e(c){return Math.sqrt(l(c))}var i=e;function l(c){return c[0]*c[0]+c[1]*c[1]}var s=l;function d(c,o,n){return c[0]=o[0]*n[0],c[1]=o[1]*n[1],c}function g(c,o,n){return c[0]=o[0]/n[0],c[1]=o[1]/n[1],c}function y(c,o){return c[0]*o[0]+c[1]*o[1]}function b(c,o,n){return c[0]=o[0]*n,c[1]=o[1]*n,c}function D(c,o){var n=e(o);return n===0?(c[0]=0,c[1]=0):(c[0]=o[0]/n,c[1]=o[1]/n),c}function P(c,o){return Math.sqrt((c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1]))}var I=P;function v(c,o){return(c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1])}var E=v;function h(c,o){return c[0]=-o[0],c[1]=-o[1],c}function T(c,o,n,B){return c[0]=o[0]+B*(n[0]-o[0]),c[1]=o[1]+B*(n[1]-o[1]),c}function j(c,o,n){var B=o[0],k=o[1];return c[0]=n[0]*B+n[2]*k+n[4],c[1]=n[1]*B+n[3]*k+n[5],c}function Q(c,o,n){return c[0]=Math.min(o[0],n[0]),c[1]=Math.min(o[1],n[1]),c}function M(c,o,n){return c[0]=Math.max(o[0],n[0]),c[1]=Math.max(o[1],n[1]),c}w.create=O,w.copy=f,w.clone=p,w.set=m,w.add=u,w.scaleAndAdd=a,w.sub=r,w.len=e,w.length=i,w.lenSquare=l,w.lengthSquare=s,w.mul=d,w.div=g,w.dot=y,w.scale=b,w.normalize=D,w.distance=P,w.dist=I,w.distanceSquare=v,w.distSquare=E,w.negate=h,w.lerp=T,w.applyTransform=j,w.min=Q,w.max=M},"QO+J":function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createSensor=void 0;var O=p(t("NohK")),f=t("24YM");function p(u){return u&&u.__esModule?u:{default:u}}var m=function(a){var r=void 0,e=[],i=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var b=document.createElement("object");return b.onload=function(){b.contentDocument.defaultView.addEventListener("resize",l),l()},b.style.display="block",b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.height="100%",b.style.width="100%",b.style.overflow="hidden",b.style.pointerEvents="none",b.style.zIndex="-1",b.style.opacity="0",b.setAttribute("class",f.SensorClassName),b.setAttribute("tabindex",f.SensorTabIndex),b.type="text/html",a.appendChild(b),b.data="about:blank",b},l=(0,O.default)(function(){e.forEach(function(y){y(a)})}),s=function(b){r||(r=i()),e.indexOf(b)===-1&&e.push(b)},d=function(){r&&r.parentNode&&(r.contentDocument&&r.contentDocument.defaultView.removeEventListener("resize",l),r.parentNode.removeChild(r),r=void 0,e=[])},g=function(b){var D=e.indexOf(b);D!==-1&&e.splice(D,1),e.length===0&&r&&d()};return{element:a,bind:s,destroy:d,unbind:g}};w.createSensor=m},QUaw:function(ie,w,t){var O=t("Rb7d");function f(m,u,a){m.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=a,u.width=a,u.style.height=a+"px",u.style.width=a+"px"}function p(){try{return document.createElement("canvas")}catch(m){throw new Error("You need to specify a canvas element")}}w.render=function(u,a,r){var e=r,i=a;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),a||(i=p()),e=O.getOptions(e);var l=O.getImageWidth(u.modules.size,e),s=i.getContext("2d"),d=s.createImageData(l,l);return O.qrToImageData(d.data,u,e),f(s,i,l),s.putImageData(d,0,0),i},w.renderToDataURL=function(u,a,r){var e=r;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),e||(e={});var i=w.render(u,a,e),l=e.type||"image/png",s=e.rendererOpts||{};return i.toDataURL(l,s.quality)}},Qe9p:function(ie,w,t){var O=t("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function p(o){return o=Math.round(o),o<0?0:o>255?255:o}function m(o){return o=Math.round(o),o<0?0:o>360?360:o}function u(o){return o<0?0:o>1?1:o}function a(o){return o.length&&o.charAt(o.length-1)==="%"?p(parseFloat(o)/100*255):p(parseInt(o,10))}function r(o){return o.length&&o.charAt(o.length-1)==="%"?u(parseFloat(o)/100):u(parseFloat(o))}function e(o,n,B){return B<0?B+=1:B>1&&(B-=1),B*6<1?o+(n-o)*B*6:B*2<1?n:B*3<2?o+(n-o)*(2/3-B)*6:o}function i(o,n,B){return o+(n-o)*B}function l(o,n,B,k,N){return o[0]=n,o[1]=B,o[2]=k,o[3]=N,o}function s(o,n){return o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o}var d=new O(20),g=null;function y(o,n){g&&s(g,n),g=d.put(o,g||n.slice())}function b(o,n){if(!o)return;n=n||[];var B=d.get(o);if(B)return s(n,B);o=o+"";var k=o.replace(/ /g,"").toLowerCase();if(k in f)return s(n,f[k]),y(o,n),n;if(k.charAt(0)==="#"){if(k.length===4){var N=parseInt(k.substr(1),16);if(!(N>=0&&N<=4095)){l(n,0,0,0,1);return}return l(n,(N&3840)>>4|(N&3840)>>8,N&240|(N&240)>>4,N&15|(N&15)<<4,1),y(o,n),n}else if(k.length===7){var N=parseInt(k.substr(1),16);if(!(N>=0&&N<=16777215)){l(n,0,0,0,1);return}return l(n,(N&16711680)>>16,(N&65280)>>8,N&255,1),y(o,n),n}return}var A=k.indexOf("("),U=k.indexOf(")");if(A!==-1&&U+1===k.length){var _=k.substr(0,A),K=k.substr(A+1,U-(A+1)).split(","),J=1;switch(_){case"rgba":if(K.length!==4){l(n,0,0,0,1);return}J=r(K.pop());case"rgb":if(K.length!==3){l(n,0,0,0,1);return}return l(n,a(K[0]),a(K[1]),a(K[2]),J),y(o,n),n;case"hsla":if(K.length!==4){l(n,0,0,0,1);return}return K[3]=r(K[3]),D(K,n),y(o,n),n;case"hsl":if(K.length!==3){l(n,0,0,0,1);return}return D(K,n),y(o,n),n;default:return}}l(n,0,0,0,1);return}function D(o,n){var B=(parseFloat(o[0])%360+360)%360/360,k=r(o[1]),N=r(o[2]),A=N<=.5?N*(k+1):N+k-N*k,U=N*2-A;return n=n||[],l(n,p(e(U,A,B+1/3)*255),p(e(U,A,B)*255),p(e(U,A,B-1/3)*255),1),o.length===4&&(n[3]=o[3]),n}function P(o){if(!o)return;var n=o[0]/255,B=o[1]/255,k=o[2]/255,N=Math.min(n,B,k),A=Math.max(n,B,k),U=A-N,_=(A+N)/2,K,J;if(U===0)K=0,J=0;else{_<.5?J=U/(A+N):J=U/(2-A-N);var Z=((A-n)/6+U/2)/U,Y=((A-B)/6+U/2)/U,H=((A-k)/6+U/2)/U;n===A?K=H-Y:B===A?K=1/3+Z-H:k===A&&(K=2/3+Y-Z),K<0&&(K+=1),K>1&&(K-=1)}var x=[K*360,J,_];return o[3]!=null&&x.push(o[3]),x}function I(o,n){var B=b(o);if(B){for(var k=0;k<3;k++)n<0?B[k]=B[k]*(1-n)|0:B[k]=(255-B[k])*n+B[k]|0,B[k]>255?B[k]=255:o[k]<0&&(B[k]=0);return c(B,B.length===4?"rgba":"rgb")}}function v(o){var n=b(o);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function E(o,n,B){if(!(n&&n.length)||!(o>=0&&o<=1))return;B=B||[];var k=o*(n.length-1),N=Math.floor(k),A=Math.ceil(k),U=n[N],_=n[A],K=k-N;return B[0]=p(i(U[0],_[0],K)),B[1]=p(i(U[1],_[1],K)),B[2]=p(i(U[2],_[2],K)),B[3]=u(i(U[3],_[3],K)),B}var h=E;function T(o,n,B){if(!(n&&n.length)||!(o>=0&&o<=1))return;var k=o*(n.length-1),N=Math.floor(k),A=Math.ceil(k),U=b(n[N]),_=b(n[A]),K=k-N,J=c([p(i(U[0],_[0],K)),p(i(U[1],_[1],K)),p(i(U[2],_[2],K)),u(i(U[3],_[3],K))],"rgba");return B?{color:J,leftIndex:N,rightIndex:A,value:k}:J}var j=T;function Q(o,n,B,k){if(o=b(o),o)return o=P(o),n!=null&&(o[0]=m(n)),B!=null&&(o[1]=r(B)),k!=null&&(o[2]=r(k)),c(D(o),"rgba")}function M(o,n){if(o=b(o),o&&n!=null)return o[3]=u(n),c(o,"rgba")}function c(o,n){if(!o||!o.length)return;var B=o[0]+","+o[1]+","+o[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(B+=","+o[3]),n+"("+B+")"}w.parse=b,w.lift=I,w.toHex=v,w.fastLerp=E,w.fastMapToColor=h,w.lerp=T,w.mapToColor=j,w.modifyHSL=Q,w.modifyAlpha=M,w.stringify=c},QuXc:function(ie,w){var t=function(f){this.colorStops=f||[]};t.prototype={constructor:t,addColorStop:function(f,p){this.colorStops.push({offset:f,color:p})}};var O=t;ie.exports=O},RDYZ:function(ie,w,t){var O=t("dMvE");function f(m){this._target=m.target,this._life=m.life||1e3,this._delay=m.delay||0,this._initialized=!1,this.loop=m.loop==null?!1:m.loop,this.gap=m.gap||0,this.easing=m.easing||"Linear",this.onframe=m.onframe,this.ondestroy=m.ondestroy,this.onrestart=m.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(m,u){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=u;return}var a=(m-this._startTime-this._pausedTime)/this._life;if(a<0)return;a=Math.min(a,1);var r=this.easing,e=typeof r=="string"?O[r]:r,i=typeof e=="function"?e(a):a;return this.fire("frame",i),a===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var u=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-u+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,u){m="on"+m,this[m]&&this[m](this._target,u)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var p=f;ie.exports=p},RMFE:function(ie,w){ie.exports="data:image/png;base64,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"},RXMa:function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(p,m){var u=m.cx,a=m.cy,r=Math.PI*2;p.moveTo(u+m.r,a),p.arc(u,a,m.r,0,r,!1),p.moveTo(u+m.r0,a),p.arc(u,a,m.r0,0,r,!0)}});ie.exports=f},Rb7d:function(ie,w){function t(O){if(typeof O=="number"&&(O=O.toString()),typeof O!="string")throw new Error("Color should be defined as hex string");var f=O.slice().replace("#","").split("");if(f.length<3||f.length===5||f.length>8)throw new Error("Invalid hex color: "+O);(f.length===3||f.length===4)&&(f=Array.prototype.concat.apply([],f.map(function(m){return[m,m]}))),f.length===6&&f.push("F","F");var p=parseInt(f.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:p&255,hex:"#"+f.slice(0,6).join("")}}w.getOptions=function(f){f||(f={}),f.color||(f.color={});var p=typeof f.margin=="undefined"||f.margin===null||f.margin<0?4:f.margin,m=f.width&&f.width>=21?f.width:void 0,u=f.scale||4;return{width:m,scale:m?4:u,margin:p,color:{dark:t(f.color.dark||"#000000ff"),light:t(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},w.getScale=function(f,p){return p.width&&p.width>=f+p.margin*2?p.width/(f+p.margin*2):p.scale},w.getImageWidth=function(f,p){var m=w.getScale(f,p);return Math.floor((f+p.margin*2)*m)},w.qrToImageData=function(f,p,m){for(var u=p.modules.size,a=p.modules.data,r=w.getScale(u,m),e=Math.floor((u+m.margin*2)*r),i=m.margin*r,l=[m.color.light,m.color.dark],s=0;s=i&&d>=i&&s-a&&oa||o<-a}function b(o,n,B,k,N){var A=1-N;return A*A*(A*o+3*N*n)+N*N*(N*k+3*A*B)}function D(o,n,B,k,N){var A=1-N;return 3*(((n-o)*A+2*(B-n)*N)*A+(k-B)*N*N)}function P(o,n,B,k,N,A){var U=k+3*(n-B)-o,_=3*(B-n*2+o),K=3*(n-o),J=o-N,Z=_*_-3*U*K,Y=_*K-9*U*J,H=K*K-3*_*J,x=0;if(g(Z)&&g(Y))if(g(_))A[0]=0;else{var V=-K/_;V>=0&&V<=1&&(A[x++]=V)}else{var G=Y*Y-4*Z*H;if(g(G)){var oe=Y/Z,V=-_/U+oe,ee=-oe/2;V>=0&&V<=1&&(A[x++]=V),ee>=0&&ee<=1&&(A[x++]=ee)}else if(G>0){var X=u(G),q=Z*_+1.5*U*(-Y+X),se=Z*_+1.5*U*(-Y-X);q<0?q=-m(-q,i):q=m(q,i),se<0?se=-m(-se,i):se=m(se,i);var V=(-_-(q+se))/(3*U);V>=0&&V<=1&&(A[x++]=V)}else{var ae=(2*Z*_-3*U*Y)/(2*u(Z*Z*Z)),ve=Math.acos(ae)/3,W=u(Z),re=Math.cos(ve),V=(-_-2*W*re)/(3*U),ee=(-_+W*(re+e*Math.sin(ve)))/(3*U),R=(-_+W*(re-e*Math.sin(ve)))/(3*U);V>=0&&V<=1&&(A[x++]=V),ee>=0&&ee<=1&&(A[x++]=ee),R>=0&&R<=1&&(A[x++]=R)}}return x}function I(o,n,B,k,N){var A=6*B-12*n+6*o,U=9*n+3*k-3*o-9*B,_=3*n-3*o,K=0;if(g(U)){if(y(A)){var J=-_/A;J>=0&&J<=1&&(N[K++]=J)}}else{var Z=A*A-4*U*_;if(g(Z))N[0]=-A/(2*U);else if(Z>0){var Y=u(Z),J=(-A+Y)/(2*U),H=(-A-Y)/(2*U);J>=0&&J<=1&&(N[K++]=J),H>=0&&H<=1&&(N[K++]=H)}}return K}function v(o,n,B,k,N,A){var U=(n-o)*N+o,_=(B-n)*N+n,K=(k-B)*N+B,J=(_-U)*N+U,Z=(K-_)*N+_,Y=(Z-J)*N+J;A[0]=o,A[1]=U,A[2]=J,A[3]=Y,A[4]=Y,A[5]=Z,A[6]=K,A[7]=k}function E(o,n,B,k,N,A,U,_,K,J,Z){var Y,H=.005,x=Infinity,V,G,oe,ee;l[0]=K,l[1]=J;for(var X=0;X<1;X+=.05)s[0]=b(o,B,N,U,X),s[1]=b(n,k,A,_,X),oe=p(l,s),oe=0&&oe=0&&J<=1&&(N[K++]=J)}}else{var Z=U*U-4*A*_;if(g(Z)){var J=-U/(2*A);J>=0&&J<=1&&(N[K++]=J)}else if(Z>0){var Y=u(Z),J=(-U+Y)/(2*A),H=(-U-Y)/(2*A);J>=0&&J<=1&&(N[K++]=J),H>=0&&H<=1&&(N[K++]=H)}}return K}function Q(o,n,B){var k=o+B-2*n;return k===0?.5:(o-n)/k}function M(o,n,B,k,N){var A=(n-o)*k+o,U=(B-n)*k+n,_=(U-A)*k+A;N[0]=o,N[1]=A,N[2]=_,N[3]=_,N[4]=U,N[5]=B}function c(o,n,B,k,N,A,U,_,K){var J,Z=.005,Y=Infinity;l[0]=U,l[1]=_;for(var H=0;H<1;H+=.05){s[0]=h(o,B,N,H),s[1]=h(n,k,A,H);var x=p(l,s);x=0&&x=0;--E)if(v[E]===I)return!0;return!1}),P):null:P[0]},g.prototype.update=function(b,D){if(!b)return;var P=this.getDefs(!1);if(b[this._domName]&&P.contains(b[this._domName]))typeof D=="function"&&D(b);else{var I=this.add(b);I&&(b[this._domName]=I)}},g.prototype.addDom=function(b){var D=this.getDefs(!0);D.appendChild(b)},g.prototype.removeDom=function(b){var D=this.getDefs(!1);D&&b[this._domName]&&(D.removeChild(b[this._domName]),b[this._domName]=null)},g.prototype.getDoms=function(){var b=this.getDefs(!1);if(!b)return[];var D=[];return p.each(this._tagNames,function(P){var I=b.getElementsByTagName(P);D=D.concat([].slice.call(I))}),D},g.prototype.markAllUnused=function(){var b=this.getDoms(),D=this;p.each(b,function(P){P[D._markLabel]=s})},g.prototype.markUsed=function(b){b&&(b[this._markLabel]=d)},g.prototype.removeUnused=function(){var b=this.getDefs(!1);if(!b)return;var D=this.getDoms(),P=this;p.each(D,function(I){I[P._markLabel]!==d&&b.removeChild(I)})},g.prototype.getSvgProxy=function(b){return b instanceof m?e:b instanceof u?i:b instanceof a?l:e},g.prototype.getTextSvgElement=function(b){return b.__textSvgEl},g.prototype.getSvgElement=function(b){return b.__svgEl};var y=g;ie.exports=y},T6xi:function(ie,w,t){var O=t("YgsL"),f=t("nCxF");function p(m,u,a){var r=u.points,e=u.smooth;if(r&&r.length>=2){if(e&&e!=="spline"){var i=f(r,e,a,u.smoothConstraint);m.moveTo(r[0][0],r[0][1]);for(var l=r.length,s=0;s<(a?l:l-1);s++){var d=i[s*2],g=i[s*2+1],y=r[(s+1)%l];m.bezierCurveTo(d[0],d[1],g[0],g[1],y[0],y[1])}}else{e==="spline"&&(r=O(r,a)),m.moveTo(r[0][0],r[0][1]);for(var s=1,b=r.length;s +*/var f=t("H7XF"),p=t("kVK+"),m=t("49sm");w.Buffer=e,w.SlowBuffer=I,w.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:u(),w.kMaxLength=a();function u(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},F.foo()===42&&typeof F.subarray=="function"&&F.subarray(1,1).byteLength===0}catch(C){return!1}}function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(F,C){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return F|0}function I(F){return+F!=F&&(F=0),e.alloc(+F)}e.isBuffer=function(C){return!!(C!=null&&C._isBuffer)},e.compare=function(C,S){if(!e.isBuffer(C)||!e.isBuffer(S))throw new TypeError("Arguments must be Buffers");if(C===S)return 0;for(var z=C.length,te=S.length,de=0,he=Math.min(z,te);de>>1;case"base64":return R(F).length;default:if(z)return ve(F).length;C=(""+C).toLowerCase(),z=!0}}e.byteLength=v;function E(F,C,S){var z=!1;if((C===void 0||C<0)&&(C=0),C>this.length)return"";if((S===void 0||S>this.length)&&(S=this.length),S<=0)return"";if(S>>>=0,C>>>=0,S<=C)return"";for(F||(F="utf8");;)switch(F){case"hex":return J(this,C,S);case"utf8":case"utf-8":return N(this,C,S);case"ascii":return _(this,C,S);case"latin1":case"binary":return K(this,C,S);case"base64":return k(this,C,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,C,S);default:if(z)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),z=!0}}e.prototype._isBuffer=!0;function h(F,C,S){var z=F[C];F[C]=F[S],F[S]=z}e.prototype.swap16=function(){var C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var S=0;S0&&(C=this.toString("hex",0,S).match(/.{2}/g).join(" "),this.length>S&&(C+=" ... ")),""},e.prototype.compare=function(C,S,z,te,de){if(!e.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(S===void 0&&(S=0),z===void 0&&(z=C?C.length:0),te===void 0&&(te=0),de===void 0&&(de=this.length),S<0||z>C.length||te<0||de>this.length)throw new RangeError("out of range index");if(te>=de&&S>=z)return 0;if(te>=de)return-1;if(S>=z)return 1;if(S>>>=0,z>>>=0,te>>>=0,de>>>=0,this===C)return 0;for(var he=de-te,Me=z-S,ce=Math.min(he,Me),be=this.slice(te,de),Ae=C.slice(S,z),ye=0;ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,isNaN(S)&&(S=te?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(te)return-1;S=F.length-1}else if(S<0)if(te)S=0;else return-1;if(typeof C=="string"&&(C=e.from(C,z)),e.isBuffer(C))return C.length===0?-1:j(F,C,S,z,te);if(typeof C=="number")return C=C&255,e.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(F,C,S):Uint8Array.prototype.lastIndexOf.call(F,C,S):j(F,[C],S,z,te);throw new TypeError("val must be string, number or Buffer")}function j(F,C,S,z,te){var de=1,he=F.length,Me=C.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(F.length<2||C.length<2)return-1;de=2,he/=2,Me/=2,S/=2}function ce(Se,Ne){return de===1?Se[Ne]:Se.readUInt16BE(Ne*de)}var be;if(te){var Ae=-1;for(be=S;behe&&(S=he-Me),be=S;be>=0;be--){for(var ye=!0,ke=0;kete&&(z=te)):z=te;var de=C.length;if(de%2!==0)throw new TypeError("Invalid hex string");z>de/2&&(z=de/2);for(var he=0;hede)&&(z=de),C.length>0&&(z<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");for(var he=!1;;)switch(te){case"hex":return Q(this,C,S,z);case"utf8":case"utf-8":return M(this,C,S,z);case"ascii":return c(this,C,S,z);case"latin1":case"binary":return o(this,C,S,z);case"base64":return n(this,C,S,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,C,S,z);default:if(he)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),he=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(F,C,S){return C===0&&S===F.length?f.fromByteArray(F):f.fromByteArray(F.slice(C,S))}function N(F,C,S){S=Math.min(F.length,S);for(var z=[],te=C;te239?4:de>223?3:de>191?2:1;if(te+Me<=S){var ce,be,Ae,ye;switch(Me){case 1:de<128&&(he=de);break;case 2:ce=F[te+1],(ce&192)===128&&(ye=(de&31)<<6|ce&63,ye>127&&(he=ye));break;case 3:ce=F[te+1],be=F[te+2],(ce&192)===128&&(be&192)===128&&(ye=(de&15)<<12|(ce&63)<<6|be&63,ye>2047&&(ye<55296||ye>57343)&&(he=ye));break;case 4:ce=F[te+1],be=F[te+2],Ae=F[te+3],(ce&192)===128&&(be&192)===128&&(Ae&192)===128&&(ye=(de&15)<<18|(ce&63)<<12|(be&63)<<6|Ae&63,ye>65535&&ye<1114112&&(he=ye))}}he===null?(he=65533,Me=1):he>65535&&(he-=65536,z.push(he>>>10&1023|55296),he=56320|he&1023),z.push(he),te+=Me}return U(z)}var A=4096;function U(F){var C=F.length;if(C<=A)return String.fromCharCode.apply(String,F);for(var S="",z=0;zz)&&(S=z);for(var te="",de=C;dez&&(C=z),S<0?(S+=z,S<0&&(S=0)):S>z&&(S=z),SS)throw new RangeError("Trying to access beyond buffer length")}e.prototype.readUIntLE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=this[C],de=1,he=0;++he0&&(de*=256);)te+=this[C+--S]*de;return te},e.prototype.readUInt8=function(C,S){return S||Y(C,1,this.length),this[C]},e.prototype.readUInt16LE=function(C,S){return S||Y(C,2,this.length),this[C]|this[C+1]<<8},e.prototype.readUInt16BE=function(C,S){return S||Y(C,2,this.length),this[C]<<8|this[C+1]},e.prototype.readUInt32LE=function(C,S){return S||Y(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},e.prototype.readUInt32BE=function(C,S){return S||Y(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},e.prototype.readIntLE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=this[C],de=1,he=0;++he=de&&(te-=Math.pow(2,8*S)),te},e.prototype.readIntBE=function(C,S,z){C=C|0,S=S|0,z||Y(C,S,this.length);for(var te=S,de=1,he=this[C+--te];te>0&&(de*=256);)he+=this[C+--te]*de;return de*=128,he>=de&&(he-=Math.pow(2,8*S)),he},e.prototype.readInt8=function(C,S){return S||Y(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},e.prototype.readInt16LE=function(C,S){S||Y(C,2,this.length);var z=this[C]|this[C+1]<<8;return z&32768?z|4294901760:z},e.prototype.readInt16BE=function(C,S){S||Y(C,2,this.length);var z=this[C+1]|this[C]<<8;return z&32768?z|4294901760:z},e.prototype.readInt32LE=function(C,S){return S||Y(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},e.prototype.readInt32BE=function(C,S){return S||Y(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},e.prototype.readFloatLE=function(C,S){return S||Y(C,4,this.length),p.read(this,C,!0,23,4)},e.prototype.readFloatBE=function(C,S){return S||Y(C,4,this.length),p.read(this,C,!1,23,4)},e.prototype.readDoubleLE=function(C,S){return S||Y(C,8,this.length),p.read(this,C,!0,52,8)},e.prototype.readDoubleBE=function(C,S){return S||Y(C,8,this.length),p.read(this,C,!1,52,8)};function H(F,C,S,z,te,de){if(!e.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>te||CF.length)throw new RangeError("Index out of range")}e.prototype.writeUIntLE=function(C,S,z,te){if(C=+C,S=S|0,z=z|0,!te){var de=Math.pow(2,8*z)-1;H(this,C,S,z,de,0)}var he=1,Me=0;for(this[S]=C&255;++Me=0&&(Me*=256);)this[S+he]=C/Me&255;return S+z},e.prototype.writeUInt8=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,1,255,0),e.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[S]=C&255,S+1};function x(F,C,S,z){C<0&&(C=65535+C+1);for(var te=0,de=Math.min(F.length-S,2);te>>(z?te:1-te)*8}e.prototype.writeUInt16LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8):x(this,C,S,!0),S+2},e.prototype.writeUInt16BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>8,this[S+1]=C&255):x(this,C,S,!1),S+2};function V(F,C,S,z){C<0&&(C=4294967295+C+1);for(var te=0,de=Math.min(F.length-S,4);te>>(z?te:3-te)*8&255}e.prototype.writeUInt32LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S+3]=C>>>24,this[S+2]=C>>>16,this[S+1]=C>>>8,this[S]=C&255):V(this,C,S,!0),S+4},e.prototype.writeUInt32BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255):V(this,C,S,!1),S+4},e.prototype.writeIntLE=function(C,S,z,te){if(C=+C,S=S|0,!te){var de=Math.pow(2,8*z-1);H(this,C,S,z,de-1,-de)}var he=0,Me=1,ce=0;for(this[S]=C&255;++he>0)-ce&255;return S+z},e.prototype.writeIntBE=function(C,S,z,te){if(C=+C,S=S|0,!te){var de=Math.pow(2,8*z-1);H(this,C,S,z,de-1,-de)}var he=z-1,Me=1,ce=0;for(this[S+he]=C&255;--he>=0&&(Me*=256);)C<0&&ce===0&&this[S+he+1]!==0&&(ce=1),this[S+he]=(C/Me>>0)-ce&255;return S+z},e.prototype.writeInt8=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,1,127,-128),e.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[S]=C&255,S+1},e.prototype.writeInt16LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8):x(this,C,S,!0),S+2},e.prototype.writeInt16BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>8,this[S+1]=C&255):x(this,C,S,!1),S+2},e.prototype.writeInt32LE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[S]=C&255,this[S+1]=C>>>8,this[S+2]=C>>>16,this[S+3]=C>>>24):V(this,C,S,!0),S+4},e.prototype.writeInt32BE=function(C,S,z){return C=+C,S=S|0,z||H(this,C,S,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),e.TYPED_ARRAY_SUPPORT?(this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255):V(this,C,S,!1),S+4};function G(F,C,S,z,te,de){if(S+z>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function oe(F,C,S,z,te){return te||G(F,C,S,4,34028234663852886e22,-34028234663852886e22),p.write(F,C,S,z,23,4),S+4}e.prototype.writeFloatLE=function(C,S,z){return oe(this,C,S,!0,z)},e.prototype.writeFloatBE=function(C,S,z){return oe(this,C,S,!1,z)};function ee(F,C,S,z,te){return te||G(F,C,S,8,17976931348623157e292,-17976931348623157e292),p.write(F,C,S,z,52,8),S+8}e.prototype.writeDoubleLE=function(C,S,z){return ee(this,C,S,!0,z)},e.prototype.writeDoubleBE=function(C,S,z){return ee(this,C,S,!1,z)},e.prototype.copy=function(C,S,z,te){if(z||(z=0),!te&&te!==0&&(te=this.length),S>=C.length&&(S=C.length),S||(S=0),te>0&&te=this.length)throw new RangeError("sourceStart out of bounds");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),C.length-S=0;--he)C[he+S]=this[he+z];else if(de<1e3||!e.TYPED_ARRAY_SUPPORT)for(he=0;he>>0,z=z===void 0?this.length:z>>>0,C||(C=0);var he;if(typeof C=="number")for(he=S;he55295&&S<57344){if(!te){if(S>56319){(C-=3)>-1&&de.push(239,191,189);continue}else if(he+1===z){(C-=3)>-1&&de.push(239,191,189);continue}te=S;continue}if(S<56320){(C-=3)>-1&&de.push(239,191,189),te=S;continue}S=(te-55296<<10|S-56320)+65536}else te&&((C-=3)>-1&&de.push(239,191,189));if(te=null,S<128){if((C-=1)<0)break;de.push(S)}else if(S<2048){if((C-=2)<0)break;de.push(S>>6|192,S&63|128)}else if(S<65536){if((C-=3)<0)break;de.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((C-=4)<0)break;de.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return de}function W(F){for(var C=[],S=0;S>8,te=S%256,de.push(te),de.push(z);return de}function R(F){return f.toByteArray(q(F))}function $(F,C,S,z){for(var te=0;te=C.length||te>=F.length);++te)C[te+S]=F[te];return te}function fe(F){return F!==F}}).call(this,t("IyRk"))},HpTS:function(ie,w,t){ie.exports=t.p+"static/small_program.f74069ec.png"},I8Z2:function(ie,w,t){"use strict";t.d(w,"a",function(){return m}),t.d(w,"b",function(){return g}),t.d(w,"c",function(){return b});var O=t("q1tI"),f=function(){var T=function(P,I){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var h in E)E.hasOwnProperty(h)&&(v[h]=E[h])},T(P,I)};return function(P,I){T(P,I);function v(){this.constructor=P}P.prototype=I===null?Object.create(I):(v.prototype=I.prototype,new v)}}(),p=O.createContext(null),m=function(T){f(P,T);function P(){return T!==null&&T.apply(this,arguments)||this}return P.prototype.render=function(){return O.createElement(p.Provider,{value:this.props.store},this.props.children)},P}(O.Component),u=t("Gytx"),a=t.n(u),r=t("2mql"),e=t.n(r),i=function(){var T=function(P,I){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,E){v.__proto__=E}||function(v,E){for(var h in E)E.hasOwnProperty(h)&&(v[h]=E[h])},T(P,I)};return function(P,I){T(P,I);function v(){this.constructor=P}P.prototype=I===null?Object.create(I):(v.prototype=I.prototype,new v)}}(),l=function(){return l=Object.assign||function(T){for(var P,I=1,v=arguments.length;Ithis._ux||P(D-this._yi)>this._uy||this._len<5;return this.addData(r.L,h,D),this._ctx&&j&&(this._needsDash()?this._dashedLineTo(h,D):this._ctx.lineTo(h,D)),j&&(this._xi=h,this._yi=D),this},bezierCurveTo:function(h,D,j,Q,M,c){return this.addData(r.C,h,D,j,Q,M,c),this._ctx&&(this._needsDash()?this._dashedBezierTo(h,D,j,Q,M,c):this._ctx.bezierCurveTo(h,D,j,Q,M,c)),this._xi=M,this._yi=c,this},quadraticCurveTo:function(h,D,j,Q){return this.addData(r.Q,h,D,j,Q),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(h,D,j,Q):this._ctx.quadraticCurveTo(h,D,j,Q)),this._xi=j,this._yi=Q,this},arc:function(h,D,j,Q,M,c){return this.addData(r.A,h,D,j,j,Q,M-Q,0,c?0:1),this._ctx&&this._ctx.arc(h,D,j,Q,M,c),this._xi=y(M)*j+h,this._yi=b(M)*j+D,this},arcTo:function(h,D,j,Q,M){return this._ctx&&this._ctx.arcTo(h,D,j,Q,M),this},rect:function(h,D,j,Q){return this._ctx&&this._ctx.rect(h,D,j,Q),this.addData(r.R,h,D,j,Q),this},closePath:function(){this.addData(r.Z);var h=this._ctx,D=this._x0,j=this._y0;return h&&(this._needsDash()&&this._dashedLineTo(D,j),h.closePath()),this._xi=D,this._yi=j,this},fill:function(h){h&&h.fill(),this.toStatic()},stroke:function(h){h&&h.stroke(),this.toStatic()},setLineDash:function(h){if(h instanceof Array){this._lineDash=h,this._dashIdx=0;for(var D=0,j=0;jD.length&&(this._expandData(),D=this.data);for(var j=0;j0&&A<=h||B<0&&A>=h||B===0&&(k>0&&U<=D||k<0&&U>=D);){if(J=this._dashIdx,_=M[J],A+=B*_,U+=k*_,this._dashIdx=(J+1)%K,B>0&&Ao||k>0&&Un)continue;c[J%2?"moveTo":"lineTo"](B>=0?d(A,h):g(A,h),k>=0?d(U,D):g(U,D))}B=A-h,k=U-D,this._dashOffset=-T(B*B+k*k)},_dashedBezierTo:function(h,D,j,Q,M,c){var o=this._dashSum,n=this._dashOffset,B=this._lineDash,k=this._ctx,N=this._xi,A=this._yi,U,_,K,J=O.cubicAt,Z=0,Y=this._dashIdx,H=B.length,x,V,G=0;for(n<0&&(n=o+n),n%=o,U=0;U<1;U+=.1)_=J(N,h,j,M,U+.1)-J(N,h,j,M,U),K=J(A,D,Q,c,U+.1)-J(A,D,Q,c,U),Z+=T(_*_+K*K);for(;Yn);Y++);for(U=(G-n)/Z;U<=1;)x=J(N,h,j,M,U),V=J(A,D,Q,c,U),Y%2?k.moveTo(x,V):k.lineTo(x,V),U+=B[Y]/Z,Y=(Y+1)%H;Y%2!==0&&k.lineTo(M,c),_=M-x,K=c-V,this._dashOffset=-T(_*_+K*K)},_dashedQuadraticTo:function(h,D,j,Q){var M=j,c=Q;j=(j+2*h)/3,Q=(Q+2*D)/3,h=(this._xi+2*h)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(h,D,j,Q,M,c)},toStatic:function(){var h=this.data;h instanceof Array&&(h.length=this._len,I&&(this.data=new Float32Array(h)))},getBoundingRect:function(){e[0]=e[1]=l[0]=l[1]=Number.MAX_VALUE,i[0]=i[1]=s[0]=s[1]=-Number.MAX_VALUE;for(var h=this.data,D=0,j=0,Q=0,M=0,c=0;cB||P(n-c)>k||A===N-1)&&(h.lineTo(o,n),M=o,c=n);break;case r.C:h.bezierCurveTo(D[A++],D[A++],D[A++],D[A++],D[A++],D[A++]),M=D[A-2],c=D[A-1];break;case r.Q:h.quadraticCurveTo(D[A++],D[A++],D[A++],D[A++]),M=D[A-2],c=D[A-1];break;case r.A:var _=D[A++],K=D[A++],J=D[A++],Z=D[A++],Y=D[A++],H=D[A++],x=D[A++],V=D[A++],G=J>Z?J:Z,oe=J>Z?1:J/Z,ee=J>Z?Z/J:1,X=Math.abs(J-Z)>.001,q=Y+H;X?(h.translate(_,K),h.rotate(x),h.scale(oe,ee),h.arc(0,0,G,Y,q,1-V),h.scale(1/oe,1/ee),h.rotate(-x),h.translate(-_,-K)):h.arc(_,K,G,Y,q,1-V),A===1&&(j=y(Y)*J+_,Q=b(Y)*Z+K),M=y(q)*J+_,c=b(q)*Z+K;break;case r.R:j=M=D[A],Q=c=D[A+1],h.rect(D[A++],D[A++],D[A++],D[A++]);break;case r.Z:h.closePath(),M=j,c=Q}}}},v.CMD=r;var E=v;ie.exports=E},ItGF:function(ie,w){var t={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?t={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?t={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?t={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:t=f(navigator.userAgent);var O=t;function f(p){var m={},u={},a=p.match(/Firefox\/([\d.]+)/),r=p.match(/MSIE\s([\d.]+)/)||p.match(/Trident\/.+?rv:(([\d.]+))/),e=p.match(/Edge\/([\d.]+)/),i=/micromessenger/i.test(p);return a&&(u.firefox=!0,u.version=a[1]),r&&(u.ie=!0,u.version=r[1]),e&&(u.edge=!0,u.version=e[1]),i&&(u.weChat=!0),{browser:u,os:m,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!u.ie&&!u.edge,pointerEventsSupported:"onpointerdown"in window&&(u.edge||u.ie&&u.version>=11),domSupported:typeof document!="undefined"}}ie.exports=O},J6Nv:function(ie,w){w.isValid=function(O){return!isNaN(O)&&O>=1&&O<=40}},JWDV:function(ie,w,t){ie.exports=t.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(ie,w){ie.exports="data:image/png;base64,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"},Jq4h:function(ie,w,t){ie.exports=t.p+"static/qrcode.2267e4d5.png"},JzKC:function(ie,w,t){var O=t("Wogr"),f=t("aZ40");w.mul=function(m,u){for(var a=O.alloc(m.length+u.length-1),r=0;r=0;){for(var r=a[0],e=0;e0},extendFrom:function(d,g){if(d)for(var y in d)d.hasOwnProperty(y)&&(g===!0||(g===!1?!this.hasOwnProperty(y):d[y]!=null))&&(this[y]=d[y])},set:function(d,g){typeof d=="string"?this[d]=g:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,g,y){for(var b=g.type==="radial"?r:a,T=b(d,g,y),P=g.colorStops,I=0;I=0)continue;if(!Object.prototype.hasOwnProperty.call(d,b))continue;y[b]=d[b]}return y}function e(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function i(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var s=function(d){l(g,d);function g(y){e(this,g);var b=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,y));return b.scrollListener=b.scrollListener.bind(b),b.eventListenerOptions=b.eventListenerOptions.bind(b),b.mousewheelListener=b.mousewheelListener.bind(b),b}return O(g,[{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 b=this.getParentElement(this.scrollComponent);b.scrollTop=b.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var b=!1,T={get passive(){b=!0}};try{document.addEventListener("test",null,T),document.removeEventListener("test",null,T)}catch(P){}return b}},{key:"eventListenerOptions",value:function(){var b=this.props.useCapture;return this.isPassiveSupported()&&(b={useCapture:this.props.useCapture,passive:!0}),b}},{key:"setDefaultLoader",value:function(b){this.defaultLoader=b}},{key:"detachMousewheelListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.scrollComponent.parentNode),b.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.getParentElement(this.scrollComponent)),b.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),b.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(b){var T=this.props.getScrollParent&&this.props.getScrollParent();return T!=null?T:b&&b.parentNode}},{key:"filterProps",value:function(b){return b}},{key:"attachScrollListener",value:function(){var b=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!b)return;var T=window;this.props.useWindow===!1&&(T=b),T.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),T.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),T.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(b){b.deltaY===1&&!this.isPassiveSupported()&&b.preventDefault()}},{key:"scrollListener",value:function(){var b=this.scrollComponent,T=window,P=this.getParentElement(b),I=void 0;if(this.props.useWindow){var v=document.documentElement||document.body.parentNode||document.body,E=T.pageYOffset!==void 0?T.pageYOffset:v.scrollTop;this.props.isReverse?I=E:I=this.calculateOffset(b,E)}else this.props.isReverse?I=P.scrollTop:I=b.scrollHeight-P.scrollTop-P.clientHeight;I1&&arguments[1]!==void 0?arguments[1]:1,st=he.length,ut=0;ut1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Q.a)(Y).map(function(x,V){if(!u.isValidElement(x)||!x.type)return null;var G=x.type.isSelectOptGroup,oe=x.key,ee=x.props,X=ee.children,q=Object(r.a)(ee,["children"]);return H||!G?M(x):Object(j.a)(Object(j.a)({key:"__RC_SELECT_GRP__".concat(oe===null?V:oe,"__"),label:oe},q),{},{options:c(X)})}).filter(function(x){return x})}var o=t("2Qr1"),n=t("qNPg"),B=t("U8pU"),k=t("Kwbf"),N=t("WKfj");function A(Y){var H=Y.mode,x=Y.options,V=Y.children,G=Y.backfill,oe=Y.allowClear,ee=Y.placeholder,X=Y.getInputElement,q=Y.showSearch,se=Y.onSearch,ae=Y.defaultOpen,ve=Y.autoFocus,W=Y.labelInValue,re=Y.value,R=Y.inputValue,$=Y.optionLabelProp,fe=H==="multiple"||H==="tags",F=q!==void 0?q:fe||H==="combobox",C=x||c(V);if(Object(k.a)(H!=="tags"||C.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var S=C.some(function(de){return de.options?de.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(k.a)(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(H!=="combobox"||!$,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(H==="combobox"||!G,"`backfill` only works with `combobox` mode."),Object(k.a)(H==="combobox"||!X,"`getInputElement` only work with `combobox` mode."),Object(k.b)(H!=="combobox"||!X||!oe||!ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),se&&!F&&H!=="combobox"&&H!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!ae||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),re!=null){var z=Object(N.d)(re);Object(k.a)(!W||z.every(function(de){return Object(B.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(k.a)(!fe||Array.isArray(re),"`value` should be array when `mode` is `multiple` or `tags`")}if(V){var te=null;Object(Q.a)(V).some(function(de){if(!u.isValidElement(de)||!de.type)return!1;var he=de.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Me=Object(Q.a)(de.props.children).every(function(ce){return!u.isValidElement(ce)||!de.type||ce.type.isSelectOption?!0:(te=ce.type,!1)});return!Me}return te=he,!0}),te&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(te.displayName||te.name||te,"`.")),Object(k.a)(R===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=A,_=Object(n.a)({prefixCls:"rc-select",components:{optionList:I},convertChildrenToData:c,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:U,fillOptionsWithMissingValue:o.a}),K=function(Y){Object(p.a)(x,Y);var H=Object(m.a)(x);function x(){var V;return Object(O.a)(this,x),V=H.apply(this,arguments),V.selectRef=u.createRef(),V.focus=function(){V.selectRef.current.focus()},V.blur=function(){V.selectRef.current.blur()},V}return Object(f.a)(x,[{key:"render",value:function(){return u.createElement(_,Object.assign({ref:this.selectRef},this.props))}}]),x}(u.Component);K.Option=E,K.OptGroup=D;var J=K,Z=w.c=J},Lzq4:function(ie,w,t){var O=t("u/Db"),f=t("e/Dd");function p(m){this.mode=O.KANJI,this.data=m}p.getBitsLength=function(u){return u*13},p.prototype.getLength=function(){return this.data.length},p.prototype.getBitsLength=function(){return p.getBitsLength(this.data.length)},p.prototype.write=function(m){var u;for(u=0;u=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[u]+` +Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),m.put(a,13)}},ie.exports=p},MEGo:function(ie,w,t){var O=t("4fz+"),f=t("Dagg"),p=t("dqUG"),m=t("2fw6"),u=t("x6Kt"),a=t("rmlV"),r=t("yxFR"),e=t("y+Vt"),i=t("h7HQ"),l=t("1Jh7"),s=t("SKnc"),d=t("K2GJ"),g=t("Fofx"),y=t("NC18"),b=y.createFromString,T=t("bYtY"),P=T.isString,I=T.extend,v=T.defaults,E=T.trim,h=T.each,D=/[\s,]+/;function j(x){if(P(x)){var V=new DOMParser;x=V.parseFromString(x,"text/xml")}for(x.nodeType===9&&(x=x.firstChild);x.nodeName.toLowerCase()!=="svg"||x.nodeType!==1;)x=x.nextSibling;return x}function Q(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}Q.prototype.parse=function(x,V){V=V||{};var G=j(x);if(!G)throw new Error("Illegal svg");var oe=new O;this._root=oe;var ee=G.getAttribute("viewBox")||"",X=parseFloat(G.getAttribute("width")||V.width),q=parseFloat(G.getAttribute("height")||V.height);isNaN(X)&&(X=null),isNaN(q)&&(q=null),N(G,oe,null,!0);for(var se=G.firstChild;se;)this._parseNode(se,oe),se=se.nextSibling;var ae,ve;if(ee){var W=E(ee).split(D);W.length>=4&&(ae={x:parseFloat(W[0]||0),y:parseFloat(W[1]||0),width:parseFloat(W[2]),height:parseFloat(W[3])})}if(ae&&X!=null&&q!=null&&(ve=Y(ae,X,q),!V.ignoreViewBox)){var re=oe;oe=new O,oe.add(re),re.scale=ve.scale.slice(),re.position=ve.position.slice()}return!V.ignoreRootClip&&X!=null&&q!=null&&oe.setClipPath(new u({shape:{x:0,y:0,width:X,height:q}})),{root:oe,width:X,height:q,viewBoxRect:ae,viewBoxTransform:ve}},Q.prototype._parseNode=function(x,V){var G=x.nodeName.toLowerCase();G==="defs"?this._isDefine=!0:G==="text"&&(this._isText=!0);var oe;if(this._isDefine){var ee=c[G];if(ee){var X=ee.call(this,x),q=x.getAttribute("id");q&&(this._defs[q]=X)}}else{var ee=M[G];ee&&(oe=ee.call(this,x,V),V.add(oe))}for(var se=x.firstChild;se;)se.nodeType===1&&this._parseNode(se,oe),se.nodeType===3&&this._isText&&this._parseText(se,oe),se=se.nextSibling;G==="defs"?this._isDefine=!1:G==="text"&&(this._isText=!1)},Q.prototype._parseText=function(x,V){if(x.nodeType===1){var G=x.getAttribute("dx")||0,oe=x.getAttribute("dy")||0;this._textX+=parseFloat(G),this._textY+=parseFloat(oe)}var ee=new p({style:{text:x.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});n(V,ee),N(x,ee,this._defs);var X=ee.style.fontSize;X&&X<9&&(ee.style.fontSize=9,ee.scale=ee.scale||[1,1],ee.scale[0]*=X/9,ee.scale[1]*=X/9);var q=ee.getBoundingRect();return this._textX+=q.width,V.add(ee),ee};var M={g:function(x,V){var G=new O;return n(V,G),N(x,G,this._defs),G},rect:function(x,V){var G=new u;return n(V,G),N(x,G,this._defs),G.setShape({x:parseFloat(x.getAttribute("x")||0),y:parseFloat(x.getAttribute("y")||0),width:parseFloat(x.getAttribute("width")||0),height:parseFloat(x.getAttribute("height")||0)}),G},circle:function(x,V){var G=new m;return n(V,G),N(x,G,this._defs),G.setShape({cx:parseFloat(x.getAttribute("cx")||0),cy:parseFloat(x.getAttribute("cy")||0),r:parseFloat(x.getAttribute("r")||0)}),G},line:function(x,V){var G=new r;return n(V,G),N(x,G,this._defs),G.setShape({x1:parseFloat(x.getAttribute("x1")||0),y1:parseFloat(x.getAttribute("y1")||0),x2:parseFloat(x.getAttribute("x2")||0),y2:parseFloat(x.getAttribute("y2")||0)}),G},ellipse:function(x,V){var G=new a;return n(V,G),N(x,G,this._defs),G.setShape({cx:parseFloat(x.getAttribute("cx")||0),cy:parseFloat(x.getAttribute("cy")||0),rx:parseFloat(x.getAttribute("rx")||0),ry:parseFloat(x.getAttribute("ry")||0)}),G},polygon:function(x,V){var G=x.getAttribute("points");G&&(G=B(G));var oe=new i({shape:{points:G||[]}});return n(V,oe),N(x,oe,this._defs),oe},polyline:function(x,V){var G=new e;n(V,G),N(x,G,this._defs);var oe=x.getAttribute("points");oe&&(oe=B(oe));var ee=new l({shape:{points:oe||[]}});return ee},image:function(x,V){var G=new f;return n(V,G),N(x,G,this._defs),G.setStyle({image:x.getAttribute("xlink:href"),x:x.getAttribute("x"),y:x.getAttribute("y"),width:x.getAttribute("width"),height:x.getAttribute("height")}),G},text:function(x,V){var G=x.getAttribute("x")||0,oe=x.getAttribute("y")||0,ee=x.getAttribute("dx")||0,X=x.getAttribute("dy")||0;this._textX=parseFloat(G)+parseFloat(ee),this._textY=parseFloat(oe)+parseFloat(X);var q=new O;return n(V,q),N(x,q,this._defs),q},tspan:function(x,V){var G=x.getAttribute("x"),oe=x.getAttribute("y");G!=null&&(this._textX=parseFloat(G)),oe!=null&&(this._textY=parseFloat(oe));var ee=x.getAttribute("dx")||0,X=x.getAttribute("dy")||0,q=new O;return n(V,q),N(x,q,this._defs),this._textX+=ee,this._textY+=X,q},path:function(x,V){var G=x.getAttribute("d")||"",oe=b(G);return n(V,oe),N(x,oe,this._defs),oe}},c={lineargradient:function(x){var V=parseInt(x.getAttribute("x1")||0,10),G=parseInt(x.getAttribute("y1")||0,10),oe=parseInt(x.getAttribute("x2")||10,10),ee=parseInt(x.getAttribute("y2")||0,10),X=new s(V,G,oe,ee);return o(x,X),X},radialgradient:function(x){}};function o(x,V){for(var G=x.firstChild;G;){if(G.nodeType===1){var oe=G.getAttribute("offset");oe.indexOf("%")>0?oe=parseInt(oe,10)/100:oe?oe=parseFloat(oe):oe=0;var ee=G.getAttribute("stop-color")||"#000000";V.addColorStop(oe,ee)}G=G.nextSibling}}function n(x,V){x&&x.__inheritedStyle&&(V.__inheritedStyle||(V.__inheritedStyle={}),v(V.__inheritedStyle,x.__inheritedStyle))}function B(x){for(var V=E(x).split(D),G=[],oe=0;oe0;X-=2){var q=ee[X],se=ee[X-1];oe=oe||g.create();switch(se){case"translate":q=E(q).split(D),g.translate(oe,oe,[parseFloat(q[0]),parseFloat(q[1]||0)]);break;case"scale":q=E(q).split(D),g.scale(oe,oe,[parseFloat(q[0]),parseFloat(q[1]||q[0])]);break;case"rotate":q=E(q).split(D),g.rotate(oe,oe,parseFloat(q[0]));break;case"skew":q=E(q).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var q=E(q).split(D);oe[0]=parseFloat(q[0]),oe[1]=parseFloat(q[1]),oe[2]=parseFloat(q[2]),oe[3]=parseFloat(q[3]),oe[4]=parseFloat(q[4]),oe[5]=parseFloat(q[5]);break}}V.setLocalTransform(oe)}}var J=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Z(x){var V=x.getAttribute("style"),G={};if(!V)return G;var oe={};J.lastIndex=0;for(var ee;(ee=J.exec(V))!=null;)oe[ee[1]]=ee[2];for(var X in k)k.hasOwnProperty(X)&&oe[X]!=null&&(G[k[X]]=oe[X]);return G}function Y(x,V,G){var oe=V/x.width,ee=G/x.height,X=Math.min(oe,ee),q=[X,X],se=[-(x.x+x.width/2)*X+V/2,-(x.y+x.height/2)*X+G/2];return{scale:q,position:se}}function H(x,V){var G=new Q;return G.parse(x,V)}w.parseXML=j,w.makeViewBoxTransform=Y,w.parseSVG=H},MKOG:function(ie,w,t){var O=t("bYtY"),f=t("YH21"),p=f.Dispatcher,m=t("mLcG"),u=t("Bq2U"),a=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,p.call(this)};a.prototype={constructor:a,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var i=e.getClips(),l=0;l=0&&this._clips.splice(i,1)},removeAnimator:function(e){for(var i=e.getClips(),l=0;l1&&(M*=m(U),c*=m(U));var _=(j===Q?-1:1)*m((M*M*(c*c)-M*M*(A*A)-c*c*(N*N))/(M*M*(A*A)+c*c*(N*N)))||0,K=_*M*A/c,J=_*-c*N/M,Z=(v+h)/2+a(k)*K-u(k)*J,Y=(E+D)/2+u(k)*K+a(k)*J,H=l([1,0],[(N-K)/M,(A-J)/c]),x=[(N-K)/M,(A-J)/c],V=[(-1*N-K)/M,(-1*A-J)/c],G=l(x,V);i(x,V)<=-1&&(G=r),i(x,V)>=1&&(G=0),Q===0&&G>0&&(G=G-2*r),Q===1&&G<0&&(G=G+2*r),B.addData(n,Z,Y,M,c,H,G,k,Q)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y(v){if(!v)return new f;for(var E=0,h=0,D=E,j=h,Q,M=new f,c=f.CMD,o=v.match(d),n=0;n1&&arguments[1]!==void 0?arguments[1]:60,u=null;return function(){for(var a=this,r=arguments.length,e=new Array(r),i=0;i=0;T-=1){var P=e.get(T)||new Set;P.forEach(function(I){var v=I.parent,E=I.node;if(l(E)||!I.parent||b.has(I.parent.key))return;if(l(I.parent.node)){b.add(v.key);return}var h=!0,D=!1;(v.children||[]).filter(function(j){return!l(j.node)}).forEach(function(j){var Q=j.key,M=s.has(Q);h&&!M&&(h=!1),!D&&(M||d.has(Q))&&(D=!0)}),h&&s.add(v.key),D&&d.add(v.key),b.add(v.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f(d,s))}}function u(r,e,i,l,s){for(var d=new Set(r),g=new Set(e),y=0;y<=l;y+=1){var b=i.get(y)||new Set;b.forEach(function(v){var E=v.key,h=v.node,D=v.children,j=D===void 0?[]:D;!d.has(E)&&!g.has(E)&&!s(h)&&j.filter(function(Q){return!s(Q.node)}).forEach(function(Q){d.delete(Q.key)})})}g=new Set;for(var T=new Set,P=l;P>=0;P-=1){var I=i.get(P)||new Set;I.forEach(function(v){var E=v.parent,h=v.node;if(s(h)||!v.parent||T.has(v.parent.key))return;if(s(v.parent.node)){T.add(E.key);return}var D=!0,j=!1;(E.children||[]).filter(function(Q){return!s(Q.node)}).forEach(function(Q){var M=Q.key,c=d.has(M);D&&!c&&(D=!1),!j&&(c||g.has(M))&&(j=!0)}),D||d.delete(E.key),j&&g.add(E.key),T.add(E.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(f(g,d))}}function a(r,e,i,l){var s=[],d;l?d=l:d=p;var g=new Set(r.filter(function(P){var I=!!i[P];return I||s.push(P),I})),y=new Map,b=0;Object.keys(i).forEach(function(P){var I=i[P],v=I.level,E=y.get(v);E||(E=new Set,y.set(v,E)),E.add(I),b=Math.max(b,v)}),Object(O.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var T;return e===!0?T=m(g,y,b,d):T=u(g,e.halfCheckedKeys,y,b,d),T}},OLES:function(ie,w,t){"use strict";var O=t("U8pU"),f=t("VTBJ"),p=t("Ff2n"),m=t("q1tI"),u=t("uciX"),a=t("7ixt"),r=function(g){var y=g.overlay,b=g.prefixCls,T=g.id,P=g.overlayInnerStyle;return m.createElement("div",{className:"".concat(b,"-inner"),id:T,role:"tooltip",style:P},typeof y=="function"?y():y)},e=r,i=function(g,y){var b=g.overlayClassName,T=g.trigger,P=T===void 0?["hover"]:T,I=g.mouseEnterDelay,v=I===void 0?0:I,E=g.mouseLeaveDelay,h=E===void 0?.1:E,D=g.overlayStyle,j=g.prefixCls,Q=j===void 0?"rc-tooltip":j,M=g.children,c=g.onVisibleChange,o=g.afterVisibleChange,n=g.transitionName,B=g.animation,k=g.placement,N=k===void 0?"right":k,A=g.align,U=A===void 0?{}:A,_=g.destroyTooltipOnHide,K=_===void 0?!1:_,J=g.defaultVisible,Z=g.getTooltipContainer,Y=g.overlayInnerStyle,H=Object(p.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),x=Object(m.useRef)(null);Object(m.useImperativeHandle)(y,function(){return x.current});var V=Object(f.a)({},H);"visible"in g&&(V.popupVisible=g.visible);var G=function(){var se=g.arrowContent,ae=se===void 0?null:se,ve=g.overlay,W=g.id;return[m.createElement("div",{className:"".concat(Q,"-arrow"),key:"arrow"},ae),m.createElement(e,{key:"content",prefixCls:Q,id:W,overlay:ve,overlayInnerStyle:Y})]},oe=!1,ee=!1;if(typeof K=="boolean")oe=K;else if(K&&Object(O.a)(K)==="object"){var X=K.keepParent;oe=X===!0,ee=X===!1}return m.createElement(u.a,Object.assign({popupClassName:b,prefixCls:Q,popup:G,action:P,builtinPlacements:a.a,popupPlacement:N,ref:x,popupAlign:U,getPopupContainer:Z,onPopupVisibleChange:c,afterPopupVisibleChange:o,popupTransitionName:n,popupAnimation:B,defaultPopupVisible:J,destroyPopupOnHide:oe,autoDestroy:ee,mouseLeaveDelay:h,popupStyle:D,mouseEnterDelay:v},V),M)},l=Object(m.forwardRef)(i),s=w.a=l},OS9S:function(ie,w,t){var O=t("bYtY"),f=O.inherits,p=t("Gev7"),m=t("mFDi");function u(e){p.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}u.prototype.incremental=!0,u.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},u.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},u.prototype.addDisplayables=function(e,i){i=i||!1;for(var l=0;l=0&&M.splice(c,1),M}function s(j,Q){var M=j.slice();return M.indexOf(Q)===-1&&M.push(Q),M}function d(j){return j.split("-")}function g(j,Q){return"".concat(j,"-").concat(Q)}function y(j){return j&&j.type&&j.type.isTreeNode}function b(j,Q){var M=[j],c=Q[j];function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.forEach(function(B){var k=B.key,N=B.children;M.push(k),o(N)})}return o(c.children),M}function T(j,Q){var M=j.clientY,c=Q.selectHandle.getBoundingClientRect(),o=c.top,n=c.bottom,B=c.height,k=Math.max(B*e,i);return M<=o+k?-1:M>=n-k?1:0}function P(j,Q){if(!j)return;var M=Q.multiple;return M?j.slice():j.length?[j[0]]:j}var I=function(Q){return Q};function v(j,Q){if(!j)return[];var M=Q||{},c=M.processProps,o=c===void 0?I:c,n=Array.isArray(j)?j:[j];return n.map(function(B){var k=B.children,N=Object(p.a)(B,["children"]),A=v(k,Q);return u.a.createElement(r.a,Object.assign({},o(N)),A)})}function E(j){if(!j)return null;var Q;if(Array.isArray(j))Q={checkedKeys:j,halfCheckedKeys:void 0};else if(Object(f.a)(j)==="object")Q={checkedKeys:j.checked||void 0,halfCheckedKeys:j.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return Q}function h(j,Q){var M=new Set;function c(o){if(M.has(o))return;var n=Q[o];if(!n)return;M.add(o);var B=n.parent,k=n.node;if(k.disabled)return;B&&c(B.key)}return(j||[]).forEach(function(o){c(o)}),Object(O.a)(M)}function D(j){var Q={};return Object.keys(j).forEach(function(M){(M.startsWith("data-")||M.startsWith("aria-"))&&(Q[M]=j[M])}),Q}},Ohmc:function(ie,w,t){ie.exports=t.p+"static/certificate.fc32dc1b.jpg"},P47w:function(ie,w,t){var O=t("hydK"),f=O.createElement,p=t("IMiH"),m=t("mFDi"),u=t("Fofx"),a=t("6GrX"),r=t("pzxd"),e=t("dqUG"),i=p.CMD,l=Array.prototype.join,s="none",d=Math.round,g=Math.sin,y=Math.cos,b=Math.PI,T=Math.PI*2,P=180/b,I=1e-4;function v(x){return d(x*1e4)/1e4}function E(x){return x-I}function h(x,V){var G=V?x.textFill:x.fill;return G!=null&&G!==s}function D(x,V){var G=V?x.textStroke:x.stroke;return G!=null&&G!==s}function j(x,V){V&&Q(x,"transform","matrix("+l.call(V,",")+")")}function Q(x,V,G){(!G||G.type!=="linear"&&G.type!=="radial")&&x.setAttribute(V,G)}function M(x,V,G){x.setAttributeNS("http://www.w3.org/1999/xlink",V,G)}function c(x,V,G,oe){if(h(V,G)){var ee=G?V.textFill:V.fill;ee=ee==="transparent"?s:ee,Q(x,"fill",ee),Q(x,"fill-opacity",V.fillOpacity!=null?V.fillOpacity*V.opacity:V.opacity)}else Q(x,"fill",s);if(D(V,G)){var X=G?V.textStroke:V.stroke;X=X==="transparent"?s:X,Q(x,"stroke",X);var q=G?V.textStrokeWidth:V.lineWidth,se=!G&&V.strokeNoScale?oe.getLineScale():1;Q(x,"stroke-width",q/se),Q(x,"paint-order",G?"stroke":"fill"),Q(x,"stroke-opacity",V.strokeOpacity!=null?V.strokeOpacity:V.opacity);var ae=V.lineDash;ae?(Q(x,"stroke-dasharray",V.lineDash.join(",")),Q(x,"stroke-dashoffset",d(V.lineDashOffset||0))):Q(x,"stroke-dasharray",""),V.lineCap&&Q(x,"stroke-linecap",V.lineCap),V.lineJoin&&Q(x,"stroke-linejoin",V.lineJoin),V.miterLimit&&Q(x,"stroke-miterlimit",V.miterLimit)}else Q(x,"stroke",s)}function o(x){for(var V=[],G=x.data,oe=x.len(),ee=0;ee=T:-$>=T),z=$>0?$%T:$%T+T,te=!1;S?te=!0:E(C)?te=!1:te=z>=b===!!F;var de=v(ae+W*y(R)),he=v(ve+re*g(R));S&&(F?$=T-1e-4:$=-T+1e-4,te=!0,ee===9&&V.push("M",de,he));var Me=v(ae+W*y(R+$)),ce=v(ve+re*g(R+$));V.push("A",v(W),v(re),d(fe*P),+te,+F,Me,ce);break;case i.Z:q="Z";break;case i.R:var Me=v(G[ee++]),ce=v(G[ee++]),be=v(G[ee++]),Ae=v(G[ee++]);V.push("M",Me,ce,"L",Me+be,ce,"L",Me+be,ce+Ae,"L",Me,ce+Ae,"L",Me,ce);break}q&&V.push(q);for(var ye=0;yeke){for(;Ae0&&g>0&&u[d-1]||(e+=l?p("M",g+r,.5+y+r):p("m",i,0),i=0,l=!1),g+1':"",y="',b='viewBox="0 0 '+d+" "+d+'"',T=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",P=''+g+y+` +`;return typeof e=="function"&&e(null,P),P}},QBsz:function(ie,w){var t=typeof Float32Array=="undefined"?Array:Float32Array;function O(c,o){var n=new t(2);return c==null&&(c=0),o==null&&(o=0),n[0]=c,n[1]=o,n}function f(c,o){return c[0]=o[0],c[1]=o[1],c}function p(c){var o=new t(2);return o[0]=c[0],o[1]=c[1],o}function m(c,o,n){return c[0]=o,c[1]=n,c}function u(c,o,n){return c[0]=o[0]+n[0],c[1]=o[1]+n[1],c}function a(c,o,n,B){return c[0]=o[0]+n[0]*B,c[1]=o[1]+n[1]*B,c}function r(c,o,n){return c[0]=o[0]-n[0],c[1]=o[1]-n[1],c}function e(c){return Math.sqrt(l(c))}var i=e;function l(c){return c[0]*c[0]+c[1]*c[1]}var s=l;function d(c,o,n){return c[0]=o[0]*n[0],c[1]=o[1]*n[1],c}function g(c,o,n){return c[0]=o[0]/n[0],c[1]=o[1]/n[1],c}function y(c,o){return c[0]*o[0]+c[1]*o[1]}function b(c,o,n){return c[0]=o[0]*n,c[1]=o[1]*n,c}function T(c,o){var n=e(o);return n===0?(c[0]=0,c[1]=0):(c[0]=o[0]/n,c[1]=o[1]/n),c}function P(c,o){return Math.sqrt((c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1]))}var I=P;function v(c,o){return(c[0]-o[0])*(c[0]-o[0])+(c[1]-o[1])*(c[1]-o[1])}var E=v;function h(c,o){return c[0]=-o[0],c[1]=-o[1],c}function D(c,o,n,B){return c[0]=o[0]+B*(n[0]-o[0]),c[1]=o[1]+B*(n[1]-o[1]),c}function j(c,o,n){var B=o[0],k=o[1];return c[0]=n[0]*B+n[2]*k+n[4],c[1]=n[1]*B+n[3]*k+n[5],c}function Q(c,o,n){return c[0]=Math.min(o[0],n[0]),c[1]=Math.min(o[1],n[1]),c}function M(c,o,n){return c[0]=Math.max(o[0],n[0]),c[1]=Math.max(o[1],n[1]),c}w.create=O,w.copy=f,w.clone=p,w.set=m,w.add=u,w.scaleAndAdd=a,w.sub=r,w.len=e,w.length=i,w.lenSquare=l,w.lengthSquare=s,w.mul=d,w.div=g,w.dot=y,w.scale=b,w.normalize=T,w.distance=P,w.dist=I,w.distanceSquare=v,w.distSquare=E,w.negate=h,w.lerp=D,w.applyTransform=j,w.min=Q,w.max=M},"QO+J":function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createSensor=void 0;var O=p(t("NohK")),f=t("24YM");function p(u){return u&&u.__esModule?u:{default:u}}var m=function(a){var r=void 0,e=[],i=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var b=document.createElement("object");return b.onload=function(){b.contentDocument.defaultView.addEventListener("resize",l),l()},b.style.display="block",b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.height="100%",b.style.width="100%",b.style.overflow="hidden",b.style.pointerEvents="none",b.style.zIndex="-1",b.style.opacity="0",b.setAttribute("class",f.SensorClassName),b.setAttribute("tabindex",f.SensorTabIndex),b.type="text/html",a.appendChild(b),b.data="about:blank",b},l=(0,O.default)(function(){e.forEach(function(y){y(a)})}),s=function(b){r||(r=i()),e.indexOf(b)===-1&&e.push(b)},d=function(){r&&r.parentNode&&(r.contentDocument&&r.contentDocument.defaultView.removeEventListener("resize",l),r.parentNode.removeChild(r),r=void 0,e=[])},g=function(b){var T=e.indexOf(b);T!==-1&&e.splice(T,1),e.length===0&&r&&d()};return{element:a,bind:s,destroy:d,unbind:g}};w.createSensor=m},QUaw:function(ie,w,t){var O=t("Rb7d");function f(m,u,a){m.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=a,u.width=a,u.style.height=a+"px",u.style.width=a+"px"}function p(){try{return document.createElement("canvas")}catch(m){throw new Error("You need to specify a canvas element")}}w.render=function(u,a,r){var e=r,i=a;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),a||(i=p()),e=O.getOptions(e);var l=O.getImageWidth(u.modules.size,e),s=i.getContext("2d"),d=s.createImageData(l,l);return O.qrToImageData(d.data,u,e),f(s,i,l),s.putImageData(d,0,0),i},w.renderToDataURL=function(u,a,r){var e=r;typeof e=="undefined"&&(!a||!a.getContext)&&(e=a,a=void 0),e||(e={});var i=w.render(u,a,e),l=e.type||"image/png",s=e.rendererOpts||{};return i.toDataURL(l,s.quality)}},Qe9p:function(ie,w,t){var O=t("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function p(o){return o=Math.round(o),o<0?0:o>255?255:o}function m(o){return o=Math.round(o),o<0?0:o>360?360:o}function u(o){return o<0?0:o>1?1:o}function a(o){return o.length&&o.charAt(o.length-1)==="%"?p(parseFloat(o)/100*255):p(parseInt(o,10))}function r(o){return o.length&&o.charAt(o.length-1)==="%"?u(parseFloat(o)/100):u(parseFloat(o))}function e(o,n,B){return B<0?B+=1:B>1&&(B-=1),B*6<1?o+(n-o)*B*6:B*2<1?n:B*3<2?o+(n-o)*(2/3-B)*6:o}function i(o,n,B){return o+(n-o)*B}function l(o,n,B,k,N){return o[0]=n,o[1]=B,o[2]=k,o[3]=N,o}function s(o,n){return o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],o}var d=new O(20),g=null;function y(o,n){g&&s(g,n),g=d.put(o,g||n.slice())}function b(o,n){if(!o)return;n=n||[];var B=d.get(o);if(B)return s(n,B);o=o+"";var k=o.replace(/ /g,"").toLowerCase();if(k in f)return s(n,f[k]),y(o,n),n;if(k.charAt(0)==="#"){if(k.length===4){var N=parseInt(k.substr(1),16);if(!(N>=0&&N<=4095)){l(n,0,0,0,1);return}return l(n,(N&3840)>>4|(N&3840)>>8,N&240|(N&240)>>4,N&15|(N&15)<<4,1),y(o,n),n}else if(k.length===7){var N=parseInt(k.substr(1),16);if(!(N>=0&&N<=16777215)){l(n,0,0,0,1);return}return l(n,(N&16711680)>>16,(N&65280)>>8,N&255,1),y(o,n),n}return}var A=k.indexOf("("),U=k.indexOf(")");if(A!==-1&&U+1===k.length){var _=k.substr(0,A),K=k.substr(A+1,U-(A+1)).split(","),J=1;switch(_){case"rgba":if(K.length!==4){l(n,0,0,0,1);return}J=r(K.pop());case"rgb":if(K.length!==3){l(n,0,0,0,1);return}return l(n,a(K[0]),a(K[1]),a(K[2]),J),y(o,n),n;case"hsla":if(K.length!==4){l(n,0,0,0,1);return}return K[3]=r(K[3]),T(K,n),y(o,n),n;case"hsl":if(K.length!==3){l(n,0,0,0,1);return}return T(K,n),y(o,n),n;default:return}}l(n,0,0,0,1);return}function T(o,n){var B=(parseFloat(o[0])%360+360)%360/360,k=r(o[1]),N=r(o[2]),A=N<=.5?N*(k+1):N+k-N*k,U=N*2-A;return n=n||[],l(n,p(e(U,A,B+1/3)*255),p(e(U,A,B)*255),p(e(U,A,B-1/3)*255),1),o.length===4&&(n[3]=o[3]),n}function P(o){if(!o)return;var n=o[0]/255,B=o[1]/255,k=o[2]/255,N=Math.min(n,B,k),A=Math.max(n,B,k),U=A-N,_=(A+N)/2,K,J;if(U===0)K=0,J=0;else{_<.5?J=U/(A+N):J=U/(2-A-N);var Z=((A-n)/6+U/2)/U,Y=((A-B)/6+U/2)/U,H=((A-k)/6+U/2)/U;n===A?K=H-Y:B===A?K=1/3+Z-H:k===A&&(K=2/3+Y-Z),K<0&&(K+=1),K>1&&(K-=1)}var x=[K*360,J,_];return o[3]!=null&&x.push(o[3]),x}function I(o,n){var B=b(o);if(B){for(var k=0;k<3;k++)n<0?B[k]=B[k]*(1-n)|0:B[k]=(255-B[k])*n+B[k]|0,B[k]>255?B[k]=255:o[k]<0&&(B[k]=0);return c(B,B.length===4?"rgba":"rgb")}}function v(o){var n=b(o);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function E(o,n,B){if(!(n&&n.length)||!(o>=0&&o<=1))return;B=B||[];var k=o*(n.length-1),N=Math.floor(k),A=Math.ceil(k),U=n[N],_=n[A],K=k-N;return B[0]=p(i(U[0],_[0],K)),B[1]=p(i(U[1],_[1],K)),B[2]=p(i(U[2],_[2],K)),B[3]=u(i(U[3],_[3],K)),B}var h=E;function D(o,n,B){if(!(n&&n.length)||!(o>=0&&o<=1))return;var k=o*(n.length-1),N=Math.floor(k),A=Math.ceil(k),U=b(n[N]),_=b(n[A]),K=k-N,J=c([p(i(U[0],_[0],K)),p(i(U[1],_[1],K)),p(i(U[2],_[2],K)),u(i(U[3],_[3],K))],"rgba");return B?{color:J,leftIndex:N,rightIndex:A,value:k}:J}var j=D;function Q(o,n,B,k){if(o=b(o),o)return o=P(o),n!=null&&(o[0]=m(n)),B!=null&&(o[1]=r(B)),k!=null&&(o[2]=r(k)),c(T(o),"rgba")}function M(o,n){if(o=b(o),o&&n!=null)return o[3]=u(n),c(o,"rgba")}function c(o,n){if(!o||!o.length)return;var B=o[0]+","+o[1]+","+o[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(B+=","+o[3]),n+"("+B+")"}w.parse=b,w.lift=I,w.toHex=v,w.fastLerp=E,w.fastMapToColor=h,w.lerp=D,w.mapToColor=j,w.modifyHSL=Q,w.modifyAlpha=M,w.stringify=c},QuXc:function(ie,w){var t=function(f){this.colorStops=f||[]};t.prototype={constructor:t,addColorStop:function(f,p){this.colorStops.push({offset:f,color:p})}};var O=t;ie.exports=O},RDYZ:function(ie,w,t){var O=t("dMvE");function f(m){this._target=m.target,this._life=m.life||1e3,this._delay=m.delay||0,this._initialized=!1,this.loop=m.loop==null?!1:m.loop,this.gap=m.gap||0,this.easing=m.easing||"Linear",this.onframe=m.onframe,this.ondestroy=m.ondestroy,this.onrestart=m.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(m,u){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=u;return}var a=(m-this._startTime-this._pausedTime)/this._life;if(a<0)return;a=Math.min(a,1);var r=this.easing,e=typeof r=="string"?O[r]:r,i=typeof e=="function"?e(a):a;return this.fire("frame",i),a===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var u=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-u+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,u){m="on"+m,this[m]&&this[m](this._target,u)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var p=f;ie.exports=p},RMFE:function(ie,w){ie.exports="data:image/png;base64,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"},RXMa:function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(p,m){var u=m.cx,a=m.cy,r=Math.PI*2;p.moveTo(u+m.r,a),p.arc(u,a,m.r,0,r,!1),p.moveTo(u+m.r0,a),p.arc(u,a,m.r0,0,r,!0)}});ie.exports=f},Rb7d:function(ie,w){function t(O){if(typeof O=="number"&&(O=O.toString()),typeof O!="string")throw new Error("Color should be defined as hex string");var f=O.slice().replace("#","").split("");if(f.length<3||f.length===5||f.length>8)throw new Error("Invalid hex color: "+O);(f.length===3||f.length===4)&&(f=Array.prototype.concat.apply([],f.map(function(m){return[m,m]}))),f.length===6&&f.push("F","F");var p=parseInt(f.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:p&255,hex:"#"+f.slice(0,6).join("")}}w.getOptions=function(f){f||(f={}),f.color||(f.color={});var p=typeof f.margin=="undefined"||f.margin===null||f.margin<0?4:f.margin,m=f.width&&f.width>=21?f.width:void 0,u=f.scale||4;return{width:m,scale:m?4:u,margin:p,color:{dark:t(f.color.dark||"#000000ff"),light:t(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},w.getScale=function(f,p){return p.width&&p.width>=f+p.margin*2?p.width/(f+p.margin*2):p.scale},w.getImageWidth=function(f,p){var m=w.getScale(f,p);return Math.floor((f+p.margin*2)*m)},w.qrToImageData=function(f,p,m){for(var u=p.modules.size,a=p.modules.data,r=w.getScale(u,m),e=Math.floor((u+m.margin*2)*r),i=m.margin*r,l=[m.color.light,m.color.dark],s=0;s=i&&d>=i&&s-a&&oa||o<-a}function b(o,n,B,k,N){var A=1-N;return A*A*(A*o+3*N*n)+N*N*(N*k+3*A*B)}function T(o,n,B,k,N){var A=1-N;return 3*(((n-o)*A+2*(B-n)*N)*A+(k-B)*N*N)}function P(o,n,B,k,N,A){var U=k+3*(n-B)-o,_=3*(B-n*2+o),K=3*(n-o),J=o-N,Z=_*_-3*U*K,Y=_*K-9*U*J,H=K*K-3*_*J,x=0;if(g(Z)&&g(Y))if(g(_))A[0]=0;else{var V=-K/_;V>=0&&V<=1&&(A[x++]=V)}else{var G=Y*Y-4*Z*H;if(g(G)){var oe=Y/Z,V=-_/U+oe,ee=-oe/2;V>=0&&V<=1&&(A[x++]=V),ee>=0&&ee<=1&&(A[x++]=ee)}else if(G>0){var X=u(G),q=Z*_+1.5*U*(-Y+X),se=Z*_+1.5*U*(-Y-X);q<0?q=-m(-q,i):q=m(q,i),se<0?se=-m(-se,i):se=m(se,i);var V=(-_-(q+se))/(3*U);V>=0&&V<=1&&(A[x++]=V)}else{var ae=(2*Z*_-3*U*Y)/(2*u(Z*Z*Z)),ve=Math.acos(ae)/3,W=u(Z),re=Math.cos(ve),V=(-_-2*W*re)/(3*U),ee=(-_+W*(re+e*Math.sin(ve)))/(3*U),R=(-_+W*(re-e*Math.sin(ve)))/(3*U);V>=0&&V<=1&&(A[x++]=V),ee>=0&&ee<=1&&(A[x++]=ee),R>=0&&R<=1&&(A[x++]=R)}}return x}function I(o,n,B,k,N){var A=6*B-12*n+6*o,U=9*n+3*k-3*o-9*B,_=3*n-3*o,K=0;if(g(U)){if(y(A)){var J=-_/A;J>=0&&J<=1&&(N[K++]=J)}}else{var Z=A*A-4*U*_;if(g(Z))N[0]=-A/(2*U);else if(Z>0){var Y=u(Z),J=(-A+Y)/(2*U),H=(-A-Y)/(2*U);J>=0&&J<=1&&(N[K++]=J),H>=0&&H<=1&&(N[K++]=H)}}return K}function v(o,n,B,k,N,A){var U=(n-o)*N+o,_=(B-n)*N+n,K=(k-B)*N+B,J=(_-U)*N+U,Z=(K-_)*N+_,Y=(Z-J)*N+J;A[0]=o,A[1]=U,A[2]=J,A[3]=Y,A[4]=Y,A[5]=Z,A[6]=K,A[7]=k}function E(o,n,B,k,N,A,U,_,K,J,Z){var Y,H=.005,x=Infinity,V,G,oe,ee;l[0]=K,l[1]=J;for(var X=0;X<1;X+=.05)s[0]=b(o,B,N,U,X),s[1]=b(n,k,A,_,X),oe=p(l,s),oe=0&&oe=0&&J<=1&&(N[K++]=J)}}else{var Z=U*U-4*A*_;if(g(Z)){var J=-U/(2*A);J>=0&&J<=1&&(N[K++]=J)}else if(Z>0){var Y=u(Z),J=(-U+Y)/(2*A),H=(-U-Y)/(2*A);J>=0&&J<=1&&(N[K++]=J),H>=0&&H<=1&&(N[K++]=H)}}return K}function Q(o,n,B){var k=o+B-2*n;return k===0?.5:(o-n)/k}function M(o,n,B,k,N){var A=(n-o)*k+o,U=(B-n)*k+n,_=(U-A)*k+A;N[0]=o,N[1]=A,N[2]=_,N[3]=_,N[4]=U,N[5]=B}function c(o,n,B,k,N,A,U,_,K){var J,Z=.005,Y=Infinity;l[0]=U,l[1]=_;for(var H=0;H<1;H+=.05){s[0]=h(o,B,N,H),s[1]=h(n,k,A,H);var x=p(l,s);x=0&&x=0;--E)if(v[E]===I)return!0;return!1}),P):null:P[0]},g.prototype.update=function(b,T){if(!b)return;var P=this.getDefs(!1);if(b[this._domName]&&P.contains(b[this._domName]))typeof T=="function"&&T(b);else{var I=this.add(b);I&&(b[this._domName]=I)}},g.prototype.addDom=function(b){var T=this.getDefs(!0);T.appendChild(b)},g.prototype.removeDom=function(b){var T=this.getDefs(!1);T&&b[this._domName]&&(T.removeChild(b[this._domName]),b[this._domName]=null)},g.prototype.getDoms=function(){var b=this.getDefs(!1);if(!b)return[];var T=[];return p.each(this._tagNames,function(P){var I=b.getElementsByTagName(P);T=T.concat([].slice.call(I))}),T},g.prototype.markAllUnused=function(){var b=this.getDoms(),T=this;p.each(b,function(P){P[T._markLabel]=s})},g.prototype.markUsed=function(b){b&&(b[this._markLabel]=d)},g.prototype.removeUnused=function(){var b=this.getDefs(!1);if(!b)return;var T=this.getDoms(),P=this;p.each(T,function(I){I[P._markLabel]!==d&&b.removeChild(I)})},g.prototype.getSvgProxy=function(b){return b instanceof m?e:b instanceof u?i:b instanceof a?l:e},g.prototype.getTextSvgElement=function(b){return b.__textSvgEl},g.prototype.getSvgElement=function(b){return b.__svgEl};var y=g;ie.exports=y},T6xi:function(ie,w,t){var O=t("YgsL"),f=t("nCxF");function p(m,u,a){var r=u.points,e=u.smooth;if(r&&r.length>=2){if(e&&e!=="spline"){var i=f(r,e,a,u.smoothConstraint);m.moveTo(r[0][0],r[0][1]);for(var l=r.length,s=0;s<(a?l:l-1);s++){var d=i[s*2],g=i[s*2+1],y=r[(s+1)%l];m.bezierCurveTo(d[0],d[1],g[0],g[1],y[0],y[1])}}else{e==="spline"&&(r=O(r,a)),m.moveTo(r[0][0],r[0][1]);for(var s=1,b=r.length;s

').concat($t.name," ").concat($t.attendance_date," ").concat($t.start_time,"-").concat($t.end_time,`

\u5230\u8BFE\u7387\uFF1A').concat(Math.round(Ut[0].value),`%

\u65F7\u8BFE\u7387\uFF1A').concat(Math.round(Ut[1].value),`%

\u8BF7\u5047\u7387\uFF1A').concat(Math.round(Ut[2].value),`%

- `)}},legend:{data:["\u5230\u8BFE\u7387","\u65F7\u8BFE\u7387","\u8BF7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:Ge==null||((Dt=Ge.history_attendances)===null||Dt===void 0)?void 0:Dt.map(function(Jt,Ut){var Ft=Jt.name;return Ft.length>6&&(Ft=Ft.substr(0,6)+"..."),Ft}),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8BFE\u7387",data:Ge==null||((Bt=Ge.history_attendances)===null||Bt===void 0)?void 0:Bt.map(function(Jt,Ut){return Jt.normal_rate*100}),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65F7\u8BFE\u7387",data:Ge==null||((Xt=Ge.history_attendances)===null||Xt===void 0)?void 0:Xt.map(function(Jt,Ut){return Jt.absence_rate*100}),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8BF7\u5047\u7387",data:Ge==null||((an=Ge.history_attendances)===null||an===void 0)?void 0:an.map(function(Jt,Ut){return Jt.leave_rate*100}),type:"line",smooth:!0,color:"#EDBA6F"}]}};return n.a.createElement("section",{className:"mt20 pb30"},n.a.createElement(l.a,{className:Z.a.topStatistics,justify:"space-between"},n.a.createElement(d.a,{flex:"209px"},Math.round((Ge==null?void 0:Ge.all_history_count)||0)),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_normal_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_absence_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_leave_rate)||0)*100),"%"))),n.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},n.a.createElement(l.a,{gutter:[22,22],className:Z.a.filter},n.a.createElement(d.a,{flex:1},n.a.createElement("span",null,n.a.createElement("i",{className:[Z.a.daoke,"mr10"].join(" ")}),"\u5230\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[Z.a.kuangke,"mr10"].join(" ")}),"\u65F7\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[Z.a.qingjia,"mr10"].join(" ")}),"\u8BF7\u5047\u7387")),n.a.createElement(d.a,null,n.a.createElement("span",{className:"c-light-black mr5"},"\u663E\u793A\u6700\u8FD1\u5341\u6B21\u7B7E\u5230"),n.a.createElement(A.a,{size:"large",defaultValue:"",onSelect:function(Dt){Ht=Dt,en(Dt),xt()}},n.a.createElement(A.a.Option,{value:""}," \u5168\u90E8\u5206\u73ED "),gt==null||((Oe=gt.course_groups)===null||Oe===void 0)?void 0:Oe.map(function(Ot,Dt){return n.a.createElement(A.a.Option,{value:Ot.id}," ",Ot.name," ")})))),Ge!=null&&(ge=Ge.history_attendances)!==null&&ge!==void 0&&ge.length?n.a.createElement(K.a,{option:Lt(),style:{height:370},opts:{renderer:"svg"}}):n.a.createElement(U.a,{styles:{marginTop:50,paddingBottom:50}})))},H=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.teachers,ne=ze.globalSetting;return{classroomList:Ce,globalSetting:ne,teachers:ge,loading:Oe.effects}})(Y),x=t("2qtc"),V=t("kLXV"),G=t("ErOA"),oe=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=Ce.cb,le=Object(B.i)();return le.id=le.coursesId,n.a.createElement(V.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(I.a)(c.a.mark(function we(){var xe,Re;return c.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return xe="/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],".json"),De.next=3,Object(G.a)(xe,{method:"delete"});case 3:Re=De.sent,Re.status===0&&(b.b.success("\u5220\u9664\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:le.coursesId}}));case 5:case"end":return De.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},ee=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(oe),X=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=Ce.cb,le=Object(B.i)();return le.id=le.coursesId,n.a.createElement(V.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u622A\u6B62",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(I.a)(c.a.mark(function we(){var xe;return c.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(G.a)("/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 2:xe=je.sent,xe.status===0&&(b.b.success("\u64CD\u4F5C\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}));case 4:case"end":return je.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u622A\u6B62\uFF1F"))},q=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(X),se=t("Xi6J"),ae=t("kl6h"),ve=t("iQDF"),W=t("+eQT"),re=t("7Kak"),R=t("9yH6"),$=t("5NDa"),fe=t("5rEg"),F=t("T2oS"),C=t("W9HT"),S=t("y8nQ"),z=t("Vl3Y"),te=t("jrin"),de=t("nRaC"),he=t("5RzL"),Me=t("wd/R"),ce=t.n(Me),be=t("1vsH"),Ae=t("wM50"),ye=t.n(Ae),ke=he.a.TreeNode,Se=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,ne=Ce.dispatch,le=Ce.data,we=Object(o.useState)(!1),xe=Object(T.a)(we,2),Re=xe[0],je=xe[1],De=Object(B.i)();De.id=De.coursesId,Object(o.useEffect)(function(){Oe.actionTabs.key==="\u7F16\u8F91"&&(At.resetFields(),ne({type:"classroomList/getCourseGroups",payload:{id:De.id,limit:1e4}}),le.id&&Le())},[Oe.actionTabs.key]);var Le=function(){var Ge=Object(I.a)(c.a.mark(function gt(){var xt,Lt;return c.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Dt.next=2,ne({type:"classroomList/getAttendanceDetail",payload:{id:le.id}});case 2:Lt=Dt.sent,At.setFieldsValue((xt={},Object(te.a)(xt,"name",Lt.name),Object(te.a)(xt,"mode",Lt.mode==="QRCODE"?"":Lt.mode),Object(te.a)(xt,"attendance_date",ce()(Lt.attendance_date)),Object(te.a)(xt,"group_ids",Lt.groups?Lt.groups.map(function(Bt){return Bt.id}):[]),Object(te.a)(xt,"end_time",ce()(Lt.end_time)),Object(te.a)(xt,"start_time",ce()(Lt.start_time)),Object(te.a)(xt,"late_time",Lt.late_time?ce()(Lt.late_time):null),xt));case 4:case"end":return Dt.stop()}},gt)}));return function(){return Ge.apply(this,arguments)}}(),Fe=Oe.detailAttendancesDetail,dt=Oe.courseGroups,tt=z.a.useForm(),Ct=Object(T.a)(tt,1),At=Ct[0],Ht=[];Oe.courseGroups.course_groups&&Oe.courseGroups.course_groups.map(function(Ge){return Ht.push(Ge.id+"")});var en=function(gt){return gt&>=gt.late_time)){Ot.next=14;break}return b.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),Ot.abrupt("return");case 14:return je(!0),Ot.next=17,Object(G.a)("/api/attendances/".concat(le.id,".json"),{method:"put",body:Object(h.a)({},gt)});case 17:xt=Ot.sent,xt.status===0&&(b.b.success("\u4FEE\u6539\u6210\u529F"),ne({type:"classroomList/setActionTabs",payload:{}}),ne({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),xt.status===-1&&je(!1);case 20:case"end":return Ot.stop()}},Ge)})),onCancel:function(){ne({type:"classroomList/setActionTabs",payload:{}})}},ge.effects["classroomList/getCourseGroups"]&&n.a.createElement("div",{className:"tc mt40"},n.a.createElement(C.a,null)),Fe.groups&&n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(z.a,{form:At},n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0",size:"large"})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(R.a.Group,{size:"large"},n.a.createElement(R.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(R.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(he.a,{showSearch:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260,overflow:"auto"},placeholder:"\u5DF2\u9009\u62E9\u5168\u90E8\u5206\u73ED",treeDefaultExpandAll:!0,treeCheckable:!0,size:"large",disabled:!0},dt.course_groups&&dt.course_groups.map(function(Ge,gt){return n.a.createElement(ke,{key:gt,value:Ge.id,title:Ge.name})}))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(W.a,{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(z.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){At.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(z.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var gt=At.getFieldValue("start_time");if(gt){var xt=parseInt(ce()(gt).format("HH"));return Object(be.V)(0,23).splice(0,xt)}},disabledMinutes:function(gt){var xt=At.getFieldValue("start_time");if(xt){var Lt=parseInt(ce()(xt).format("mm")),Ot=parseInt(ce()(xt).format("HH"));return Ot===gt?Object(be.V)(0,59).splice(0,Lt):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(z.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Ne=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Se),Ue=t("oUNq"),$e=t("RotF"),We=t.n($e),nt=A.a.TreeNode,et=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=z.a.useForm(),le=Object(T.a)(ne,1),we=le[0],xe=Object(B.i)();xe.id=xe.coursesId;var Re=Object(o.useState)(1),je=Object(T.a)(Re,2),De=je[0],Le=je[1],Fe=Object(o.useState)([]),dt=Object(T.a)(Fe,2),tt=dt[0],Ct=dt[1],At=Object(o.useState)(0),Ht=Object(T.a)(At,2),en=Ht[0],Ge=Ht[1],gt=Object(o.useState)(20),xt=Object(T.a)(gt,2),Lt=xt[0],Ot=xt[1],Dt=Object(o.useState)(!0),Bt=Object(T.a)(Dt,2),Xt=Bt[0],an=Bt[1],Jt=Object(o.useState)(!1),Ut=Object(T.a)(Jt,2),Ft=Ut[0],$t=Ut[1],Sn=Object(o.useRef)([]),ir=Oe.courseGroups;Object(o.useEffect)(function(){Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230"&&(document.body.setAttribute("style","height: 100%;"),Kn(),we.resetFields())},[Oe.actionTabs.key]),Object(o.useEffect)(function(){var zt;we.setFieldsValue((zt={},Object(te.a)(zt,"name","\u8BFE\u7A0B\u7B7E\u5230"+ce()(new Date).format("YYYYMMDD")),Object(te.a)(zt,"mode","QUICK"),Object(te.a)(zt,"attendance_date",ce()(new Date)),Object(te.a)(zt,"start_time",ce()(new Date)),Object(te.a)(zt,"end_time",ce()(new Date).add(5,"minutes")),Object(te.a)(zt,"late_time",ce()(new Date).add(15,"minutes")),zt))},[Oe.actionTabs.key]);var Nn=function(Tt){return Tt&&Tt1)return;Le(Tt),Kn(Tt)},wt=function(){document.body.removeAttribute("style"),Le(1),Ct([])},Zt=function(){var zt=Object(I.a)(c.a.mark(function Tt(){var mt,St,Mt,Yt,on;return c.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.t0=h.a,qt.t1={},qt.next=4,we.validateFields();case 4:if(qt.t2=qt.sent,mt=(0,qt.t0)(qt.t1,qt.t2),St=mt.group_ids,Mt=St===void 0?[]:St,Yt=tt.filter(function(On){return Mt.includes(On.name)}),mt.end_time=ce()(mt.end_time).format("HH:mm"),mt.start_time=ce()(mt.start_time).format("HH:mm"),mt.late_time=ce()(mt.late_time).format("HH:mm"),mt.attendance_date=ce()(mt.attendance_date).format("YYYY-MM-DD"),!(mt.end_time>=mt.late_time)){qt.next=15;break}return b.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),qt.abrupt("return");case 15:return $t(!0),qt.next=18,Object(G.a)("/api/weapps/courses/".concat(xe.id,"/attendances.json"),{method:"post",body:Object(h.a)(Object(h.a)({},mt),{},{group_ids:Yt.map(function(On){return On.id})})});case 18:on=qt.sent,on.status===0&&(wt(),Object(be.cb)(["\u6559\u5B66\u8BFE\u5802","\u7B7E\u5230","\u521B\u5EFA\u7B7E\u5230"]),b.b.success("\u6DFB\u52A0\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:xe.coursesId}})),on.status===-1&&$t(!1);case 21:case"end":return qt.stop()}},Tt)}));return function(){return zt.apply(this,arguments)}}(),Cn=en>De*Lt;return n.a.createElement(V.a,{centered:!0,title:"\u521B\u5EFA\u7B7E\u5230",visible:Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230",bodyStyle:{minHeight:200},onOk:Zt,afterClose:function(){return $t(!1)},confirmLoading:Ft,onCancel:function(){wt(),ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(z.a,{form:we,initialValues:{start_time:ce()("09:00","HH:mm")},onChange:function(){}},n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0!"}]},n.a.createElement(fe.a,{size:"large",placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0"})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(A.a,{showSearch:!1,mode:"multiple",showArrow:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260},size:"large",placeholder:tt!=null&&tt.length?"\u4E0D\u9009\u62E9\u5206\u73ED\u65F6\u9ED8\u8BA4\u9009\u62E9\u5168\u90E8\u5B66\u751F":"\u6682\u65E0\u5206\u73ED\uFF0C\u5C06\u9ED8\u8BA4\u9009\u62E9\u8BFE\u5802\u5168\u90E8\u5B66\u751F",dropdownRender:function(){return n.a.createElement("div",{style:{maxHeight:260,overflowY:"auto",overflowX:"hidden",padding:"16px 18px 0 18px"}},n.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:it,hasMore:Cn,useWindow:!1},n.a.createElement(z.a.Item,{name:"group_ids"},n.a.createElement(Q.a.Group,null,tt.map(function(Tt,mt){return n.a.createElement("div",{key:mt},n.a.createElement(Q.a,{onChange:function(Mt){},key:mt,value:String(Tt.name),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},n.a.createElement("span",null,Tt.name)))}))),Xt&&n.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},n.a.createElement(C.a,null))))}})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(R.a.Group,{size:"large"},n.a.createElement(R.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(R.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u5230\u65B9\u5F0F!"}]},n.a.createElement(W.a,{disabledDate:Nn,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",className:"w100",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(z.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){we.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(z.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var Tt=we.getFieldValue("start_time");if(Tt){var mt=parseInt(ce()(Tt).format("HH"));return Object(be.V)(0,23).splice(0,mt)}},disabledMinutes:function(Tt){var mt=we.getFieldValue("start_time");if(mt){var St=parseInt(ce()(mt).format("mm")),Mt=parseInt(ce()(mt).format("HH"));return Mt===Tt?Object(be.V)(0,59).splice(0,St):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(z.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Xe=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(et),st=t("0FX9"),ut=t.n(st),ct=t("lzim"),Ze=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,ne=Ce.dispatch,le=Ce.data,we=Object(B.i)(),xe=Object(o.useState)(!1),Re=Object(T.a)(xe,2),je=Re[0],De=Re[1],Le=Object(o.useState)(""),Fe=Object(T.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=Object(o.useState)(""),At=Object(T.a)(Ct,2),Ht=At[0],en=At[1],Ge=Oe.actionTabs.selectArrs;Object(o.useEffect)(function(){if(Oe.actionTabs.key==="\u7ACB\u5373\u7B7E\u5230"){switch(Ge==null?void 0:Ge.mode){case"QUICK":tt("\u5FEB\u6377\u7B7E\u5230"),Bt();break;case"NUMBER":tt("\u7B7E\u5230\u7801\u7B7E\u5230"),De(!0);break;case"QRCODE":tt("\u4E8C\u7EF4\u7801\u7B7E\u5230"),ut.a.toDataURL((Ge==null?void 0:Ge.attendance_code)||"",{type:"terminal",margin:1,scale:16},function(an,Jt){en(Jt)}),De(!0);break}Dt.resetFields()}else De(!1)},[Oe.actionTabs.key]);var gt=Oe.detailAttendancesDetail,xt=Oe.courseGroups,Lt=z.a.useForm(),Ot=Object(T.a)(Lt,1),Dt=Ot[0],Bt=function(){var an=Object(I.a)(c.a.mark(function Jt(){var Ut,Ft;return c.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Dt.validateFields();case 2:return Ut=Dt.getFieldValue(),Sn.next=5,Object(Ue.f)({code:Ut==null?void 0:Ut.code,attendance_mode:Ge==null?void 0:Ge.mode,attendance_id:Ge==null?void 0:Ge.id});case 5:Ft=Sn.sent,(Ft==null?void 0:Ft.status)===0&&(b.b.success("\u7B7E\u5230\u6210\u529F"),Xt(),ne({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),(Ft==null?void 0:Ft.status)===-1&&Xt();case 8:case"end":return Sn.stop()}},Jt)}));return function(){return an.apply(this,arguments)}}(),Xt=function(){ne({type:"classroomList/setActionTabs",payload:{}})};return n.a.createElement(V.a,{centered:!0,title:dt,width:620,visible:je,onOk:Object(I.a)(c.a.mark(function an(){return c.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:(Ge==null?void 0:Ge.mode)==="QRCODE"?Xt():Bt();case 1:case"end":return Ut.stop()}},an)})),onCancel:function(){Xt()}},(Ge==null?void 0:Ge.mode)==="QRCODE"&&n.a.createElement("aside",{className:""},n.a.createElement(l.a,{align:"middle",justify:"center"},n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:Ht}),n.a.createElement("br",null),"\u7B7E\u5230\u4E8C\u7EF4\u7801"),n.a.createElement(d.a,{span:4}),n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:ct.x}),n.a.createElement("br",null),"EduCoder\u5C0F\u7A0B\u5E8F\u4E8C\u7EF4\u7801")),n.a.createElement("div",{className:"c-black pl20 pr20 mt20"},"\u4E8C\u7EF4\u7801\u7B7E\u5230\u6B65\u9AA4\uFF1A",n.a.createElement("br",null),"1.\u6253\u5F00EduCoder\u5C0F\u7A0B\u5E8F\uFF1B2.\u8FDB\u5165\u5BF9\u5E94\u7684\u6559\u5B66\u8BFE\u5802\uFF1B3.\u8FDB\u5165\u7B7E\u5230\u6A21\u5757\uFF1B4.\u627E\u5230\u6B63\u5728\u8FDB\u884C\u7684\u7B7E\u5230\uFF0C\u5E76\u70B9\u51FB\u7B7E\u5230\uFF1B5.\u626B\u7801\u7B7E\u5230\u3002")),(Ge==null?void 0:Ge.mode)==="NUMBER"&&n.a.createElement("aside",{className:"pt30 pb30"},n.a.createElement(z.a,{form:Dt},n.a.createElement(z.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"})))))},bt=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Ze),lt=t("xKgJ"),Et=t("mgmH"),jt=t("P5Jw"),Qt=Q.a.Group,Gt=function(Ce){var Oe,ge=Ce.classroomList,ne=Ce.loading,le=Ce.dispatch,we=Object(o.useState)(Object(h.a)({},Object(B.i)())),xe=Object(T.a)(we,1),Re=xe[0],je=Object(B.h)(),De=Object(o.useState)("all"),Le=Object(T.a)(De,2),Fe=Le[0],dt=Le[1],tt=ge.detailAttendancesList,Ct=Object(o.useState)({}),At=Object(T.a)(Ct,2),Ht=At[0],en=At[1],Ge=Object(o.useState)(!1),gt=Object(T.a)(Ge,2),xt=gt[0],Lt=gt[1],Ot=Object(o.useState)([]),Dt=Object(T.a)(Ot,2),Bt=Dt[0],Xt=Dt[1],an=Object(o.useState)(!1),Jt=Object(T.a)(an,2),Ut=Jt[0],Ft=Jt[1];Re.id=Re.coursesId,Object(o.useEffect)(function(){var it,wt=je==null||((it=je.query)===null||it===void 0)?void 0:it.tabId;wt&&(dt(wt),Re.status=wt),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)(Object(h.a)({},Re),{},{status:Fe,page:1})})},[Re.categoryId,je==null||((Oe=je.query)===null||Oe===void 0)?void 0:Oe.tabId]),Object(o.useEffect)(function(){ge.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},[ge.actionTabs.key]);var $t=function(wt){Re.page=wt,le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},Sn=function(wt){console.log(wt,22222222),dt(wt.key),Re.status=wt.key,Re.page=1,console.log(Re,"params"),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},ir=[{name:"\u5168\u90E8\u7B7E\u5230",id:"all"},{name:"\u6B63\u5728\u7B7E\u5230",id:"ongoing"},{name:"\u5386\u53F2\u7B7E\u5230",id:"history"},{name:"\u6682\u672A\u5F00\u59CB",id:"not_start"},{name:"\u7B7E\u5230\u7EDF\u8BA1",id:"signInStatistics"}].filter(function(it){return Object(lt.c)()?!0:it.name!=="\u7B7E\u5230\u7EDF\u8BA1"&&it.name!=="\u6682\u672A\u5F00\u59CB"}),Nn=function(wt){le({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u7B7E\u5230",selectArrs:wt,params:Object(h.a)({},Re)}})},Kn=["\u7F16\u8F91","\u5220\u9664","\u622A\u6B62"];return n.a.createElement("section",null,n.a.createElement("aside",{className:[ye.a.bg,ye.a.menu].join(" ")},n.a.createElement(E.a,{mode:"horizontal",style:{margin:"0 18px"},onSelect:Sn,selectedKeys:[Fe]},ir.map(function(it,wt){return n.a.createElement(E.a.Item,{key:it.id},it.name)})),Object(lt.c)()&&n.a.createElement("span",{className:ye.a.add,onClick:function(){le({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u589E\u7B7E\u5230",params:Re}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x mr5"}),"\u521B\u5EFA\u7B7E\u5230")),Fe=="signInStatistics"?n.a.createElement(H,null):null,Fe!=="signInStatistics"&&n.a.createElement("section",null,Fe=="history"&&Object(lt.c)()&&n.a.createElement("div",{style:{background:"#fff",padding:"15px 20px 10px 20px",color:"#999",display:"flex",alignItems:"center",marginTop:20}},n.a.createElement(Q.a,{checked:xt,style:{flex:"1"},onChange:function(){var wt;if((Bt==null?void 0:Bt.length)===(tt==null||((wt=tt.attendances)===null||wt===void 0)?void 0:wt.length))Xt([]),Lt(!1);else{var Zt=[];tt.attendances.map(function(Cn){Zt.push(Cn==null?void 0:Cn.id)}),Xt([].concat(Zt)),Lt(!0)}}},"\u5DF2\u9009\u62E9",(Bt==null?void 0:Bt.length)||0,"\u4E2A(\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009)"),n.a.createElement(P.a,{style:{cursor:"pointer"},loading:Ut,onClick:Object(I.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Re.attendance_ids=[],Zt.next=3,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 3:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u5168\u90E8\u7B7E\u5230"),n.a.createElement(P.a,{style:{cursor:"pointer",marginLeft:10},loading:Ut,onClick:Object(I.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!((Bt==null?void 0:Bt.length)<=0)){Zt.next=3;break}return b.b.info("\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u7B7E\u5230"),Zt.abrupt("return");case 3:return Re.attendance_ids=Bt,Zt.next=6,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 6:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u9009\u4E2D\u7B7E\u5230")),n.a.createElement(f.a,{loading:ne["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},tt.attendances_count===0&&n.a.createElement(U.a,null),tt.attendances&&tt.attendances.map(function(it){return n.a.createElement(Qt,{value:Bt,className:ye.a.listItem,style:{display:"flex"},onChange:function(){}},n.a.createElement("div",{onClick:function(){return Object(lt.c)()&&k.d.push("/classrooms/".concat(Re.coursesId,"/attendance/").concat(it.id,"/").concat(Fe,"/detail"))}},n.a.createElement(l.a,{gutter:16,justify:"space-between"},n.a.createElement(d.a,{span:20},n.a.createElement(l.a,null,Fe=="history"&&Object(lt.c)()&&n.a.createElement(Q.a,{className:"mr8",key:it.id,value:it.id,onClick:function(){var wt=Object(I.a)(c.a.mark(function Zt(Cn){var zt,Tt,mt,St;return c.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:Cn.stopPropagation(),(Bt==null?void 0:Bt.filter(function(on){return on===(it==null?void 0:it.id)}).length)>0?(zt=Object(g.a)(Bt),Tt=Object(g.a)(zt.filter(function(on){return on!=(it==null?void 0:it.id)})),Lt(!1),Xt(Tt)):(St=Bt,St.push(it==null?void 0:it.id),Lt((St==null?void 0:St.length)===(tt==null||((mt=tt.attendances)===null||mt===void 0)?void 0:mt.length)),Xt(Object(g.a)(St)));case 2:case"end":return Yt.stop()}},Zt)}));return function(Zt){return wt.apply(this,arguments)}}(),style:{marginTop:"4px"}}),n.a.createElement(d.a,{className:"c-blue font16 blod"},n.a.createElement("span",{className:ye.a.attend},n.a.createElement("span",{className:ye.a.title},it.name),it.status==="not_start"&&n.a.createElement("span",{className:ye.a.not_start},"\u672A\u5F00\u59CB"),it.status==="ongoing"&&n.a.createElement("span",{className:ye.a.ongoing},"\u8FDB\u884C\u4E2D"),it.status==="history"&&n.a.createElement("span",{className:ye.a.history},"\u5DF2\u622A\u6B62"))))),n.a.createElement(d.a,{className:"font14"},it.mode==="NUMBER"&&Object(lt.c)()&&n.a.createElement(jt.CopyToClipboard,{text:it.attendance_code,onCopy:function(){return b.b.success("\u590D\u5236\u6210\u529F")}},n.a.createElement(e.a,{placement:"top",title:"\u70B9\u51FB\u590D\u5236\u7B7E\u5230\u7801"},n.a.createElement("span",{className:ye.a.attendanceCode,onClick:function(Zt){return Zt.stopPropagation()}},"\u7B7E\u5230\u7801\uFF1A",it.attendance_code))))),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,null,"\u7B7E\u5230\u4EBA\u6570"),n.a.createElement(d.a,{flex:"200px",className:"ml20"},n.a.createElement(a.a,{showInfo:!1,percent:Math.ceil(it.normal_count/it.all_count*100)})),n.a.createElement(d.a,{flex:1,className:"ml20 c-blue"},"\u5DF2\u7B7E\u5230 ",it.normal_count," / \u5E94\u7B7E\u5230 ",it.all_count)),it.attendance_status==="NORMAL"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.color0152d9)},"\u6B63\u5E38"),it.attendance_status==="LEAVE"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorFA6400)},"\u8BF7\u5047"),it.attendance_status==="ABSENCE"&&it.status=="history"&&(Fe=="history"||Fe=="all")&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorE02020)},"\u65F7\u8BFE"),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,{flex:1},n.a.createElement(l.a,null,n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u53D1\u8D77\u4EBA\uFF1A",it.author.user_name),n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u65B9\u5F0F\uFF1A",it.mode==="QRCODE"&&"\u4E8C\u7EF4\u7801\u7B7E\u5230",it.mode==="NUMBER"&&"\u7B7E\u5230\u7801\u7B7E\u5230",it.mode==="QUICK"&&"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(d.a,{flex:1},"\u5F00\u59CB\u7ED3\u675F\u65F6\u95F4:",it.attendance_date," ",it.start_time,"~",it.end_time),n.a.createElement(d.a,null,it.attendance_status==="ABSENCE"&&(Fe=="all"||Fe=="ongoing")&&Object(lt.s)()&&n.a.createElement(P.a,{style:{width:100},size:"large",type:"primary",onClick:function(){return Nn(it)}},"\u7B7E\u5230")))),n.a.createElement(d.a,null,Object(lt.c)()&&Kn.filter(function(wt){return it.edit_auth?wt:wt!="\u7F16\u8F91"}).filter(function(wt){return Fe!="0"?wt!="\u622A\u6B62":wt}).map(function(wt,Zt){return n.a.createElement("span",{className:"c-blue ml20",key:Zt,onClick:function(zt){zt.stopPropagation(),en(it),le({type:"classroomList/setActionTabs",payload:{key:wt,selectArrs:[it.id],params:Re}})}},wt)})))))}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(m.a,{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:$t,defaultCurrent:1,current:Re.page||1,total:tt.attendances_count})))),n.a.createElement(ee,null),n.a.createElement(bt,null),n.a.createElement(Ne,{data:Ht}),n.a.createElement(Xe,null),n.a.createElement(q,null))},rn=w.default=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.globalSetting;return{classroomList:Ce,globalSetting:ge,loading:Oe.effects}})(Gt)},VpOo:function(ie,w){function t(O,f){var p=f.x,m=f.y,u=f.width,a=f.height,r=f.r,e,i,l,s;u<0&&(p=p+u,u=-u),a<0&&(m=m+a,a=-a),typeof r=="number"?e=i=l=s=r:r instanceof Array?r.length===1?e=i=l=s=r[0]:r.length===2?(e=l=r[0],i=s=r[1]):r.length===3?(e=r[0],i=s=r[1],l=r[2]):(e=r[0],i=r[1],l=r[2],s=r[3]):e=i=l=s=0;var d;e+i>u&&(d=e+i,e*=u/d,i*=u/d),l+s>u&&(d=l+s,l*=u/d,s*=u/d),i+l>a&&(d=i+l,i*=a/d,l*=a/d),e+s>a&&(d=e+s,e*=a/d,s*=a/d),O.moveTo(p+e,m),O.lineTo(p+u-i,m),i!==0&&O.arc(p+u-i,m+i,i,-Math.PI/2,0),O.lineTo(p+u,m+a-l),l!==0&&O.arc(p+u-l,m+a-l,l,0,Math.PI/2),O.lineTo(p+s,m+a),s!==0&&O.arc(p+s,m+a-s,s,Math.PI/2,Math.PI),O.lineTo(p,m+e),e!==0&&O.arc(p+e,m+e,e,Math.PI,Math.PI*1.5)}w.buildPath=t},W6BS:function(ie,w){ie.exports="data:image/png;base64,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"},WaYH:function(ie,w,t){"use strict";var O=t("rePB"),f=t("Ff2n"),p=t("VTBJ"),m=t("1OyB"),u=t("vuIU"),a=t("JX7q"),r=t("Ji7U"),e=t("LK+K"),i=t("q1tI"),l=t("TSYQ"),s=t.n(l),d=t("sboe"),g=t("OZM5"),y=function(Q){var M=Q.prefixCls,c=Q.level,o=Q.isStart,n=Q.isEnd;if(!c)return null;for(var B="".concat(M,"-indent-unit"),k=[],N=0;N=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return I|0}function a(I){return I!==I}function r(I,v){var E;return m.TYPED_ARRAY_SUPPORT?(E=new Uint8Array(v),E.__proto__=m.prototype):(E=I,E===null&&(E=new m(v)),E.length=v),E}function e(I,v){var E=r(I,v<0?0:u(v)|0);if(!m.TYPED_ARRAY_SUPPORT)for(var h=0;h55295&&E<57344){if(!T){if(E>56319){(v-=3)>-1&&j.push(239,191,189);continue}else if(Q+1===h){(v-=3)>-1&&j.push(239,191,189);continue}T=E;continue}if(E<56320){(v-=3)>-1&&j.push(239,191,189),T=E;continue}E=(T-55296<<10|E-56320)+65536}else T&&((v-=3)>-1&&j.push(239,191,189));if(T=null,E<128){if((v-=1)<0)break;j.push(E)}else if(E<2048){if((v-=2)<0)break;j.push(E>>6|192,E&63|128)}else if(E<65536){if((v-=3)<0)break;j.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((v-=4)<0)break;j.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return j}function y(I){if(m.isBuffer(I))return I.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var v=I.length;return v===0?0:g(I).length}function b(I,v,E,h){for(var T=0;T=v.length||T>=I.length);++T)v[T+E]=I[T];return T}function D(I,v,E,h){return b(g(v,I.length-E),I,E,h)}function P(I,v,E,h){if(typeof v=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&v instanceof ArrayBuffer?s(I,v,E,h):typeof v=="string"?i(I,v,E):d(I,v)}m.prototype.write=function(v,E,h){E===void 0?(h=this.length,E=0):h===void 0&&typeof E=="string"?(h=this.length,E=0):isFinite(E)&&(E=E|0,isFinite(h)?h=h|0:h=void 0);var T=this.length-E;if((h===void 0||h>T)&&(h=T),v.length>0&&(h<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");return D(this,v,E,h)},m.prototype.slice=function(v,E){var h=this.length;v=~~v,E=E===void 0?h:~~E,v<0?(v+=h,v<0&&(v=0)):v>h&&(v=h),E<0?(E+=h,E<0&&(E=0)):E>h&&(E=h),E=v.length&&(E=v.length),E||(E=0),T>0&&T=this.length)throw new RangeError("sourceStart out of bounds");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),v.length-E=0;--Q)v[Q+E]=this[Q+h];else if(j<1e3||!m.TYPED_ARRAY_SUPPORT)for(Q=0;Q>>0,h=h===void 0?this.length:h>>>0,v||(v=0);var j;if(typeof v=="number")for(j=E;j`)}},legend:{data:["\u5230\u8BFE\u7387","\u65F7\u8BFE\u7387","\u8BF7\u5047\u7387"],show:!1},xAxis:{type:"category",nameRotate:45,data:Ge==null||((Tt=Ge.history_attendances)===null||Tt===void 0)?void 0:Tt.map(function(Jt,Ut){var Ft=Jt.name;return Ft.length>6&&(Ft=Ft.substr(0,6)+"..."),Ft}),boundaryGap:!1,nameLocation:"start",axisLabel:{interval:0,rotate:"45",verticalAlign:"top",align:"left",margin:28,height:120,textStyle:{align:"center",color:"#999"}}},yAxis:{type:"value",axisLabel:{formatter:"{value}%"},splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"\u5230\u8BFE\u7387",data:Ge==null||((Bt=Ge.history_attendances)===null||Bt===void 0)?void 0:Bt.map(function(Jt,Ut){return Jt.normal_rate*100}),type:"line",smooth:!0,color:"#26C7C9"},{name:"\u65F7\u8BFE\u7387",data:Ge==null||((Xt=Ge.history_attendances)===null||Xt===void 0)?void 0:Xt.map(function(Jt,Ut){return Jt.absence_rate*100}),type:"line",smooth:!0,color:"#FF835C"},{name:"\u8BF7\u5047\u7387",data:Ge==null||((an=Ge.history_attendances)===null||an===void 0)?void 0:an.map(function(Jt,Ut){return Jt.leave_rate*100}),type:"line",smooth:!0,color:"#EDBA6F"}]}};return n.a.createElement("section",{className:"mt20 pb30"},n.a.createElement(l.a,{className:Z.a.topStatistics,justify:"space-between"},n.a.createElement(d.a,{flex:"209px"},Math.round((Ge==null?void 0:Ge.all_history_count)||0)),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_normal_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_absence_rate)||0)*100),"%")),n.a.createElement(d.a,{flex:"209px"},n.a.createElement(n.a.Fragment,null,Math.round(((Ge==null?void 0:Ge.avg_leave_rate)||0)*100),"%"))),n.a.createElement("section",{className:"bg-white pl30 pr30 pt30 mt20 pb20"},n.a.createElement(l.a,{gutter:[22,22],className:Z.a.filter},n.a.createElement(d.a,{flex:1},n.a.createElement("span",null,n.a.createElement("i",{className:[Z.a.daoke,"mr10"].join(" ")}),"\u5230\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[Z.a.kuangke,"mr10"].join(" ")}),"\u65F7\u8BFE\u7387"),n.a.createElement("span",{className:"ml40"},n.a.createElement("i",{className:[Z.a.qingjia,"mr10"].join(" ")}),"\u8BF7\u5047\u7387")),n.a.createElement(d.a,null,n.a.createElement("span",{className:"c-light-black mr5"},"\u663E\u793A\u6700\u8FD1\u5341\u6B21\u7B7E\u5230"),n.a.createElement(A.a,{size:"large",defaultValue:"",onSelect:function(Tt){Ht=Tt,en(Tt),xt()}},n.a.createElement(A.a.Option,{value:""}," \u5168\u90E8\u5206\u73ED "),gt==null||((Oe=gt.course_groups)===null||Oe===void 0)?void 0:Oe.map(function(Ot,Tt){return n.a.createElement(A.a.Option,{value:Ot.id}," ",Ot.name," ")})))),Ge!=null&&(ge=Ge.history_attendances)!==null&&ge!==void 0&&ge.length?n.a.createElement(K.a,{option:Lt(),style:{height:370},opts:{renderer:"svg"}}):n.a.createElement(U.a,{styles:{marginTop:50,paddingBottom:50}})))},H=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.teachers,ne=ze.globalSetting;return{classroomList:Ce,globalSetting:ne,teachers:ge,loading:Oe.effects}})(Y),x=t("2qtc"),V=t("kLXV"),G=t("ErOA"),oe=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=Ce.cb,le=Object(B.i)();return le.id=le.coursesId,n.a.createElement(V.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(I.a)(c.a.mark(function we(){var xe,Re;return c.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return xe="/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],".json"),Te.next=3,Object(G.a)(xe,{method:"delete"});case 3:Re=Te.sent,Re.status===0&&(b.b.success("\u5220\u9664\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:le.coursesId}}));case 5:case"end":return Te.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))},ee=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(oe),X=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=Ce.cb,le=Object(B.i)();return le.id=le.coursesId,n.a.createElement(V.a,{centered:!0,title:"\u63D0\u793A",visible:Oe.actionTabs.key==="\u622A\u6B62",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(I.a)(c.a.mark(function we(){var xe;return c.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(G.a)("/api/weapps/attendances/".concat(Oe.actionTabs.selectArrs[0],"/end.json"),{method:"post"});case 2:xe=je.sent,xe.status===0&&(b.b.success("\u64CD\u4F5C\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}));case 4:case"end":return je.stop()}},we)})),onCancel:function(){ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u622A\u6B62\uFF1F"))},q=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(X),se=t("Xi6J"),ae=t("kl6h"),ve=t("iQDF"),W=t("+eQT"),re=t("7Kak"),R=t("9yH6"),$=t("5NDa"),fe=t("5rEg"),F=t("T2oS"),C=t("W9HT"),S=t("y8nQ"),z=t("Vl3Y"),te=t("jrin"),de=t("nRaC"),he=t("5RzL"),Me=t("wd/R"),ce=t.n(Me),be=t("1vsH"),Ae=t("wM50"),ye=t.n(Ae),ke=he.a.TreeNode,Se=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,ne=Ce.dispatch,le=Ce.data,we=Object(o.useState)(!1),xe=Object(D.a)(we,2),Re=xe[0],je=xe[1],Te=Object(B.i)();Te.id=Te.coursesId,Object(o.useEffect)(function(){Oe.actionTabs.key==="\u7F16\u8F91"&&(At.resetFields(),ne({type:"classroomList/getCourseGroups",payload:{id:Te.id,limit:1e4}}),le.id&&Le())},[Oe.actionTabs.key]);var Le=function(){var Ge=Object(I.a)(c.a.mark(function gt(){var xt,Lt;return c.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,ne({type:"classroomList/getAttendanceDetail",payload:{id:le.id}});case 2:Lt=Tt.sent,At.setFieldsValue((xt={},Object(te.a)(xt,"name",Lt.name),Object(te.a)(xt,"mode",Lt.mode==="QRCODE"?"":Lt.mode),Object(te.a)(xt,"attendance_date",ce()(Lt.attendance_date)),Object(te.a)(xt,"group_ids",Lt.groups?Lt.groups.map(function(Bt){return Bt.id}):[]),Object(te.a)(xt,"end_time",ce()(Lt.end_time)),Object(te.a)(xt,"start_time",ce()(Lt.start_time)),Object(te.a)(xt,"late_time",Lt.late_time?ce()(Lt.late_time):null),xt));case 4:case"end":return Tt.stop()}},gt)}));return function(){return Ge.apply(this,arguments)}}(),Fe=Oe.detailAttendancesDetail,dt=Oe.courseGroups,tt=z.a.useForm(),Ct=Object(D.a)(tt,1),At=Ct[0],Ht=[];Oe.courseGroups.course_groups&&Oe.courseGroups.course_groups.map(function(Ge){return Ht.push(Ge.id+"")});var en=function(gt){return gt&>=gt.late_time)){Ot.next=14;break}return b.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),Ot.abrupt("return");case 14:return je(!0),Ot.next=17,Object(G.a)("/api/attendances/".concat(le.id,".json"),{method:"put",body:Object(h.a)({},gt)});case 17:xt=Ot.sent,xt.status===0&&(b.b.success("\u4FEE\u6539\u6210\u529F"),ne({type:"classroomList/setActionTabs",payload:{}}),ne({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),xt.status===-1&&je(!1);case 20:case"end":return Ot.stop()}},Ge)})),onCancel:function(){ne({type:"classroomList/setActionTabs",payload:{}})}},ge.effects["classroomList/getCourseGroups"]&&n.a.createElement("div",{className:"tc mt40"},n.a.createElement(C.a,null)),Fe.groups&&n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(z.a,{form:At},n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0",size:"large"})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(R.a.Group,{size:"large"},n.a.createElement(R.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(R.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(he.a,{showSearch:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260,overflow:"auto"},placeholder:"\u5DF2\u9009\u62E9\u5168\u90E8\u5206\u73ED",treeDefaultExpandAll:!0,treeCheckable:!0,size:"large",disabled:!0},dt.course_groups&&dt.course_groups.map(function(Ge,gt){return n.a.createElement(ke,{key:gt,value:Ge.id,title:Ge.name})}))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(W.a,{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(z.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){At.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(z.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var gt=At.getFieldValue("start_time");if(gt){var xt=parseInt(ce()(gt).format("HH"));return Object(be.V)(0,23).splice(0,xt)}},disabledMinutes:function(gt){var xt=At.getFieldValue("start_time");if(xt){var Lt=parseInt(ce()(xt).format("mm")),Ot=parseInt(ce()(xt).format("HH"));return Ot===gt?Object(be.V)(0,59).splice(0,Lt):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(z.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Ne=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Se),Ue=t("oUNq"),$e=t("RotF"),We=t.n($e),nt=A.a.TreeNode,et=function(Ce){var Oe=Ce.classroomList,ge=Ce.dispatch,ne=z.a.useForm(),le=Object(D.a)(ne,1),we=le[0],xe=Object(B.i)();xe.id=xe.coursesId;var Re=Object(o.useState)(1),je=Object(D.a)(Re,2),Te=je[0],Le=je[1],Fe=Object(o.useState)([]),dt=Object(D.a)(Fe,2),tt=dt[0],Ct=dt[1],At=Object(o.useState)(0),Ht=Object(D.a)(At,2),en=Ht[0],Ge=Ht[1],gt=Object(o.useState)(20),xt=Object(D.a)(gt,2),Lt=xt[0],Ot=xt[1],Tt=Object(o.useState)(!0),Bt=Object(D.a)(Tt,2),Xt=Bt[0],an=Bt[1],Jt=Object(o.useState)(!1),Ut=Object(D.a)(Jt,2),Ft=Ut[0],$t=Ut[1],Sn=Object(o.useRef)([]),ir=Oe.courseGroups;Object(o.useEffect)(function(){Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230"&&(document.body.setAttribute("style","height: 100%;"),Kn(),we.resetFields())},[Oe.actionTabs.key]),Object(o.useEffect)(function(){var zt;we.setFieldsValue((zt={},Object(te.a)(zt,"name","\u8BFE\u7A0B\u7B7E\u5230"+ce()(new Date).format("YYYYMMDD")),Object(te.a)(zt,"mode","QUICK"),Object(te.a)(zt,"attendance_date",ce()(new Date)),Object(te.a)(zt,"start_time",ce()(new Date)),Object(te.a)(zt,"end_time",ce()(new Date).add(5,"minutes")),Object(te.a)(zt,"late_time",ce()(new Date).add(15,"minutes")),zt))},[Oe.actionTabs.key]);var Nn=function(Dt){return Dt&&Dt1)return;Le(Dt),Kn(Dt)},wt=function(){document.body.removeAttribute("style"),Le(1),Ct([])},Zt=function(){var zt=Object(I.a)(c.a.mark(function Dt(){var mt,St,Mt,Yt,on;return c.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.t0=h.a,qt.t1={},qt.next=4,we.validateFields();case 4:if(qt.t2=qt.sent,mt=(0,qt.t0)(qt.t1,qt.t2),St=mt.group_ids,Mt=St===void 0?[]:St,Yt=tt.filter(function(On){return Mt.includes(On.name)}),mt.end_time=ce()(mt.end_time).format("HH:mm"),mt.start_time=ce()(mt.start_time).format("HH:mm"),mt.late_time=ce()(mt.late_time).format("HH:mm"),mt.attendance_date=ce()(mt.attendance_date).format("YYYY-MM-DD"),!(mt.end_time>=mt.late_time)){qt.next=15;break}return b.b.warn("\u8FDF\u5230\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u6216\u7B49\u4E8E\u7ED3\u675F\u65F6\u95F4"),qt.abrupt("return");case 15:return $t(!0),qt.next=18,Object(G.a)("/api/weapps/courses/".concat(xe.id,"/attendances.json"),{method:"post",body:Object(h.a)(Object(h.a)({},mt),{},{group_ids:Yt.map(function(On){return On.id})})});case 18:on=qt.sent,on.status===0&&(wt(),Object(be.cb)(["\u6559\u5B66\u8BFE\u5802","\u7B7E\u5230","\u521B\u5EFA\u7B7E\u5230"]),b.b.success("\u6DFB\u52A0\u6210\u529F"),ge({type:"classroomList/setActionTabs",payload:{}}),ge({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)}),ge({type:"classroomList/getClassroomLeftMenus",payload:{id:xe.coursesId}})),on.status===-1&&$t(!1);case 21:case"end":return qt.stop()}},Dt)}));return function(){return zt.apply(this,arguments)}}(),Cn=en>Te*Lt;return n.a.createElement(V.a,{centered:!0,title:"\u521B\u5EFA\u7B7E\u5230",visible:Oe.actionTabs.key==="\u65B0\u589E\u7B7E\u5230",bodyStyle:{minHeight:200},onOk:Zt,afterClose:function(){return $t(!1)},confirmLoading:Ft,onCancel:function(){wt(),ge({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("section",{className:ye.a.addForm},n.a.createElement(z.a,{form:we,initialValues:{start_time:ce()("09:00","HH:mm")},onChange:function(){}},n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0!"}]},n.a.createElement(fe.a,{size:"large",placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u540D\u79F0"})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u73ED\u7EA7",name:"group_ids"},n.a.createElement(A.a,{showSearch:!1,mode:"multiple",showArrow:!0,style:{width:"100%"},dropdownStyle:{maxHeight:260},size:"large",placeholder:tt!=null&&tt.length?"\u4E0D\u9009\u62E9\u5206\u73ED\u65F6\u9ED8\u8BA4\u9009\u62E9\u5168\u90E8\u5B66\u751F":"\u6682\u65E0\u5206\u73ED\uFF0C\u5C06\u9ED8\u8BA4\u9009\u62E9\u8BFE\u5802\u5168\u90E8\u5B66\u751F",dropdownRender:function(){return n.a.createElement("div",{style:{maxHeight:260,overflowY:"auto",overflowX:"hidden",padding:"16px 18px 0 18px"}},n.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:it,hasMore:Cn,useWindow:!1},n.a.createElement(z.a.Item,{name:"group_ids"},n.a.createElement(Q.a.Group,null,tt.map(function(Dt,mt){return n.a.createElement("div",{key:mt},n.a.createElement(Q.a,{onChange:function(Mt){},key:mt,value:String(Dt.name),defaultChecked:!0,style:{width:430},className:"multi-ellipsis1 multi-ellipsis1-checkbox"},n.a.createElement("span",null,Dt.name)))}))),Xt&&n.a.createElement("div",{style:{display:"flex",justifyContent:"center"}},n.a.createElement(C.a,null))))}})),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65B9\u5F0F",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(R.a.Group,{size:"large"},n.a.createElement(R.a,{value:"QUICK"},"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(R.a,{value:"NUMBER"},"\u7B7E\u5230\u7801\u7B7E\u5230"))),n.a.createElement(z.a.Item,{label:"\u7B7E\u5230\u65E5\u671F",name:"attendance_date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B7E\u5230\u65B9\u5F0F!"}]},n.a.createElement(W.a,{disabledDate:Nn,placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",className:"w100",size:"large",format:"YYYY-MM-DD"})),n.a.createElement(z.a.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"start_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4!"}]},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm",onChange:function(){we.setFieldsValue({end_time:"",late_time:""})}})),n.a.createElement(z.a.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4!"}]},n.a.createElement(ae.a,{disabledHours:function(){var Dt=we.getFieldValue("start_time");if(Dt){var mt=parseInt(ce()(Dt).format("HH"));return Object(be.V)(0,23).splice(0,mt)}},disabledMinutes:function(Dt){var mt=we.getFieldValue("start_time");if(mt){var St=parseInt(ce()(mt).format("mm")),Mt=parseInt(ce()(mt).format("HH"));return Mt===Dt?Object(be.V)(0,59).splice(0,St):[]}},className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement(z.a.Item,{label:"\u8FDF\u5230\u65F6\u95F4",name:"late_time",style:{marginBottom:2}},n.a.createElement(ae.a,{className:"w100",size:"large",minuteStep:1,format:"HH:mm"})),n.a.createElement("div",{style:{paddingLeft:102,color:"#999"}},"\u5728\u7ED3\u675F\u65F6\u95F4\u81F3\u8FDF\u5230\u65F6\u95F4\u7B7E\u5230\u7684\u540C\u5B66\u8BB0\u4E3A\u8FDF\u5230"))))},Xe=Object(k.a)(function(ze){var Ce=ze.classroomList;return{classroomList:Ce}})(et),st=t("0FX9"),ut=t.n(st),ct=t("lzim"),Ze=function(Ce){var Oe=Ce.classroomList,ge=Ce.loading,ne=Ce.dispatch,le=Ce.data,we=Object(B.i)(),xe=Object(o.useState)(!1),Re=Object(D.a)(xe,2),je=Re[0],Te=Re[1],Le=Object(o.useState)(""),Fe=Object(D.a)(Le,2),dt=Fe[0],tt=Fe[1],Ct=Object(o.useState)(""),At=Object(D.a)(Ct,2),Ht=At[0],en=At[1],Ge=Oe.actionTabs.selectArrs;Object(o.useEffect)(function(){if(Oe.actionTabs.key==="\u7ACB\u5373\u7B7E\u5230"){switch(Ge==null?void 0:Ge.mode){case"QUICK":tt("\u5FEB\u6377\u7B7E\u5230"),Bt();break;case"NUMBER":tt("\u7B7E\u5230\u7801\u7B7E\u5230"),Te(!0);break;case"QRCODE":tt("\u4E8C\u7EF4\u7801\u7B7E\u5230"),ut.a.toDataURL((Ge==null?void 0:Ge.attendance_code)||"",{type:"terminal",margin:1,scale:16},function(an,Jt){en(Jt)}),Te(!0);break}Tt.resetFields()}else Te(!1)},[Oe.actionTabs.key]);var gt=Oe.detailAttendancesDetail,xt=Oe.courseGroups,Lt=z.a.useForm(),Ot=Object(D.a)(Lt,1),Tt=Ot[0],Bt=function(){var an=Object(I.a)(c.a.mark(function Jt(){var Ut,Ft;return c.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Tt.validateFields();case 2:return Ut=Tt.getFieldValue(),Sn.next=5,Object(Ue.f)({code:Ut==null?void 0:Ut.code,attendance_mode:Ge==null?void 0:Ge.mode,attendance_id:Ge==null?void 0:Ge.id});case 5:Ft=Sn.sent,(Ft==null?void 0:Ft.status)===0&&(b.b.success("\u7B7E\u5230\u6210\u529F"),Xt(),ne({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Oe.actionTabs.params)})),(Ft==null?void 0:Ft.status)===-1&&Xt();case 8:case"end":return Sn.stop()}},Jt)}));return function(){return an.apply(this,arguments)}}(),Xt=function(){ne({type:"classroomList/setActionTabs",payload:{}})};return n.a.createElement(V.a,{centered:!0,title:dt,width:620,visible:je,onOk:Object(I.a)(c.a.mark(function an(){return c.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:(Ge==null?void 0:Ge.mode)==="QRCODE"?Xt():Bt();case 1:case"end":return Ut.stop()}},an)})),onCancel:function(){Xt()}},(Ge==null?void 0:Ge.mode)==="QRCODE"&&n.a.createElement("aside",{className:""},n.a.createElement(l.a,{align:"middle",justify:"center"},n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:Ht}),n.a.createElement("br",null),"\u7B7E\u5230\u4E8C\u7EF4\u7801"),n.a.createElement(d.a,{span:4}),n.a.createElement(d.a,{span:10,className:"tc"},n.a.createElement("img",{width:200,src:ct.x}),n.a.createElement("br",null),"EduCoder\u5C0F\u7A0B\u5E8F\u4E8C\u7EF4\u7801")),n.a.createElement("div",{className:"c-black pl20 pr20 mt20"},"\u4E8C\u7EF4\u7801\u7B7E\u5230\u6B65\u9AA4\uFF1A",n.a.createElement("br",null),"1.\u6253\u5F00EduCoder\u5C0F\u7A0B\u5E8F\uFF1B2.\u8FDB\u5165\u5BF9\u5E94\u7684\u6559\u5B66\u8BFE\u5802\uFF1B3.\u8FDB\u5165\u7B7E\u5230\u6A21\u5757\uFF1B4.\u627E\u5230\u6B63\u5728\u8FDB\u884C\u7684\u7B7E\u5230\uFF0C\u5E76\u70B9\u51FB\u7B7E\u5230\uFF1B5.\u626B\u7801\u7B7E\u5230\u3002")),(Ge==null?void 0:Ge.mode)==="NUMBER"&&n.a.createElement("aside",{className:"pt30 pb30"},n.a.createElement(z.a,{form:Tt},n.a.createElement(z.a.Item,{name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"}]},n.a.createElement(fe.a,{placeholder:"\u8BF7\u8F93\u5165\u7B7E\u5230\u7801"})))))},bt=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading;return{classroomList:Ce,loading:Oe}})(Ze),lt=t("xKgJ"),Et=t("mgmH"),jt=t("P5Jw"),Qt=Q.a.Group,Gt=function(Ce){var Oe,ge=Ce.classroomList,ne=Ce.loading,le=Ce.dispatch,we=Object(o.useState)(Object(h.a)({},Object(B.i)())),xe=Object(D.a)(we,1),Re=xe[0],je=Object(B.h)(),Te=Object(o.useState)("all"),Le=Object(D.a)(Te,2),Fe=Le[0],dt=Le[1],tt=ge.detailAttendancesList,Ct=Object(o.useState)({}),At=Object(D.a)(Ct,2),Ht=At[0],en=At[1],Ge=Object(o.useState)(!1),gt=Object(D.a)(Ge,2),xt=gt[0],Lt=gt[1],Ot=Object(o.useState)([]),Tt=Object(D.a)(Ot,2),Bt=Tt[0],Xt=Tt[1],an=Object(o.useState)(!1),Jt=Object(D.a)(an,2),Ut=Jt[0],Ft=Jt[1];Re.id=Re.coursesId,Object(o.useEffect)(function(){var it,wt=je==null||((it=je.query)===null||it===void 0)?void 0:it.tabId;wt&&(dt(wt),Re.status=wt),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)(Object(h.a)({},Re),{},{status:Fe,page:1})})},[Re.categoryId,je==null||((Oe=je.query)===null||Oe===void 0)?void 0:Oe.tabId]),Object(o.useEffect)(function(){ge.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},[ge.actionTabs.key]);var $t=function(wt){Re.page=wt,le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},Sn=function(wt){console.log(wt,22222222),dt(wt.key),Re.status=wt.key,Re.page=1,console.log(Re,"params"),le({type:"classroomList/getClassroomAttendancesList",payload:Object(h.a)({},Re)})},ir=[{name:"\u5168\u90E8\u7B7E\u5230",id:"all"},{name:"\u6B63\u5728\u7B7E\u5230",id:"ongoing"},{name:"\u5386\u53F2\u7B7E\u5230",id:"history"},{name:"\u6682\u672A\u5F00\u59CB",id:"not_start"},{name:"\u7B7E\u5230\u7EDF\u8BA1",id:"signInStatistics"}].filter(function(it){return Object(lt.c)()?!0:it.name!=="\u7B7E\u5230\u7EDF\u8BA1"&&it.name!=="\u6682\u672A\u5F00\u59CB"}),Nn=function(wt){le({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u7B7E\u5230",selectArrs:wt,params:Object(h.a)({},Re)}})},Kn=["\u7F16\u8F91","\u5220\u9664","\u622A\u6B62"];return n.a.createElement("section",null,n.a.createElement("aside",{className:[ye.a.bg,ye.a.menu].join(" ")},n.a.createElement(E.a,{mode:"horizontal",style:{margin:"0 18px"},onSelect:Sn,selectedKeys:[Fe]},ir.map(function(it,wt){return n.a.createElement(E.a.Item,{key:it.id},it.name)})),Object(lt.c)()&&n.a.createElement("span",{className:ye.a.add,onClick:function(){le({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u589E\u7B7E\u5230",params:Re}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x mr5"}),"\u521B\u5EFA\u7B7E\u5230")),Fe=="signInStatistics"?n.a.createElement(H,null):null,Fe!=="signInStatistics"&&n.a.createElement("section",null,Fe=="history"&&Object(lt.c)()&&n.a.createElement("div",{style:{background:"#fff",padding:"15px 20px 10px 20px",color:"#999",display:"flex",alignItems:"center",marginTop:20}},n.a.createElement(Q.a,{checked:xt,style:{flex:"1"},onChange:function(){var wt;if((Bt==null?void 0:Bt.length)===(tt==null||((wt=tt.attendances)===null||wt===void 0)?void 0:wt.length))Xt([]),Lt(!1);else{var Zt=[];tt.attendances.map(function(Cn){Zt.push(Cn==null?void 0:Cn.id)}),Xt([].concat(Zt)),Lt(!0)}}},"\u5DF2\u9009\u62E9",(Bt==null?void 0:Bt.length)||0,"\u4E2A(\u4E0D\u652F\u6301\u8DE8\u9875\u52FE\u9009)"),n.a.createElement(P.a,{style:{cursor:"pointer"},loading:Ut,onClick:Object(I.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Re.attendance_ids=[],Zt.next=3,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 3:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u5168\u90E8\u7B7E\u5230"),n.a.createElement(P.a,{style:{cursor:"pointer",marginLeft:10},loading:Ut,onClick:Object(I.a)(c.a.mark(function it(){return c.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(!((Bt==null?void 0:Bt.length)<=0)){Zt.next=3;break}return b.b.info("\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u7B7E\u5230"),Zt.abrupt("return");case 3:return Re.attendance_ids=Bt,Zt.next=6,Object(Et.a)(Object(h.a)(Object(h.a)({},Re),{},{history:!0,type:1}));case 6:case"end":return Zt.stop()}},it)}))},"\u5BFC\u51FA\u9009\u4E2D\u7B7E\u5230")),n.a.createElement(f.a,{loading:ne["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},tt.attendances_count===0&&n.a.createElement(U.a,null),tt.attendances&&tt.attendances.map(function(it){return n.a.createElement(Qt,{value:Bt,className:ye.a.listItem,style:{display:"flex"},onChange:function(){}},n.a.createElement("div",{onClick:function(){return Object(lt.c)()&&k.d.push("/classrooms/".concat(Re.coursesId,"/attendance/").concat(it.id,"/").concat(Fe,"/detail"))}},n.a.createElement(l.a,{gutter:16,justify:"space-between"},n.a.createElement(d.a,{span:20},n.a.createElement(l.a,null,Fe=="history"&&Object(lt.c)()&&n.a.createElement(Q.a,{className:"mr8",key:it.id,value:it.id,onClick:function(){var wt=Object(I.a)(c.a.mark(function Zt(Cn){var zt,Dt,mt,St;return c.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:Cn.stopPropagation(),(Bt==null?void 0:Bt.filter(function(on){return on===(it==null?void 0:it.id)}).length)>0?(zt=Object(g.a)(Bt),Dt=Object(g.a)(zt.filter(function(on){return on!=(it==null?void 0:it.id)})),Lt(!1),Xt(Dt)):(St=Bt,St.push(it==null?void 0:it.id),Lt((St==null?void 0:St.length)===(tt==null||((mt=tt.attendances)===null||mt===void 0)?void 0:mt.length)),Xt(Object(g.a)(St)));case 2:case"end":return Yt.stop()}},Zt)}));return function(Zt){return wt.apply(this,arguments)}}(),style:{marginTop:"4px"}}),n.a.createElement(d.a,{className:"c-blue font16 blod"},n.a.createElement("span",{className:ye.a.attend},n.a.createElement("span",{className:ye.a.title},it.name),it.status==="not_start"&&n.a.createElement("span",{className:ye.a.not_start},"\u672A\u5F00\u59CB"),it.status==="ongoing"&&n.a.createElement("span",{className:ye.a.ongoing},"\u8FDB\u884C\u4E2D"),it.status==="history"&&n.a.createElement("span",{className:ye.a.history},"\u5DF2\u622A\u6B62"))))),n.a.createElement(d.a,{className:"font14"},it.mode==="NUMBER"&&Object(lt.c)()&&n.a.createElement(jt.CopyToClipboard,{text:it.attendance_code,onCopy:function(){return b.b.success("\u590D\u5236\u6210\u529F")}},n.a.createElement(e.a,{placement:"top",title:"\u70B9\u51FB\u590D\u5236\u7B7E\u5230\u7801"},n.a.createElement("span",{className:ye.a.attendanceCode,onClick:function(Zt){return Zt.stopPropagation()}},"\u7B7E\u5230\u7801\uFF1A",it.attendance_code))))),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,null,"\u7B7E\u5230\u4EBA\u6570"),n.a.createElement(d.a,{flex:"200px",className:"ml20"},n.a.createElement(a.a,{showInfo:!1,percent:Math.ceil(it.normal_count/it.all_count*100)})),n.a.createElement(d.a,{flex:1,className:"ml20 c-blue"},"\u5DF2\u7B7E\u5230 ",it.normal_count," / \u5E94\u7B7E\u5230 ",it.all_count)),it.attendance_status==="NORMAL"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.color0152d9)},"\u6B63\u5E38"),it.attendance_status==="LEAVE"&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorFA6400)},"\u8BF7\u5047"),it.attendance_status==="ABSENCE"&&it.status=="history"&&(Fe=="history"||Fe=="all")&&Object(lt.s)()&&n.a.createElement("div",{className:"".concat(ye.a.signInStatus," ").concat(ye.a.colorE02020)},"\u65F7\u8BFE"),n.a.createElement(l.a,{className:"mt20 c-light-black"},n.a.createElement(d.a,{flex:1},n.a.createElement(l.a,null,n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u53D1\u8D77\u4EBA\uFF1A",it.author.user_name),n.a.createElement(d.a,{flex:1},"\u7B7E\u5230\u65B9\u5F0F\uFF1A",it.mode==="QRCODE"&&"\u4E8C\u7EF4\u7801\u7B7E\u5230",it.mode==="NUMBER"&&"\u7B7E\u5230\u7801\u7B7E\u5230",it.mode==="QUICK"&&"\u5FEB\u6377\u7B7E\u5230"),n.a.createElement(d.a,{flex:1},"\u5F00\u59CB\u7ED3\u675F\u65F6\u95F4:",it.attendance_date," ",it.start_time,"~",it.end_time),n.a.createElement(d.a,null,it.attendance_status==="ABSENCE"&&(Fe=="all"||Fe=="ongoing")&&Object(lt.s)()&&n.a.createElement(P.a,{style:{width:100},size:"large",type:"primary",onClick:function(){return Nn(it)}},"\u7B7E\u5230")))),n.a.createElement(d.a,null,Object(lt.c)()&&Kn.filter(function(wt){return it.edit_auth?wt:wt!="\u7F16\u8F91"}).filter(function(wt){return Fe!="0"?wt!="\u622A\u6B62":wt}).map(function(wt,Zt){return n.a.createElement("span",{className:"c-blue ml20",key:Zt,onClick:function(zt){zt.stopPropagation(),en(it),le({type:"classroomList/setActionTabs",payload:{key:wt,selectArrs:[it.id],params:Re}})}},wt)})))))}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(m.a,{hideOnSinglePage:!0,pageSize:20,showSizeChanger:!1,onChange:$t,defaultCurrent:1,current:Re.page||1,total:tt.attendances_count})))),n.a.createElement(ee,null),n.a.createElement(bt,null),n.a.createElement(Ne,{data:Ht}),n.a.createElement(Xe,null),n.a.createElement(q,null))},rn=w.default=Object(k.a)(function(ze){var Ce=ze.classroomList,Oe=ze.loading,ge=ze.globalSetting;return{classroomList:Ce,globalSetting:ge,loading:Oe.effects}})(Gt)},VpOo:function(ie,w){function t(O,f){var p=f.x,m=f.y,u=f.width,a=f.height,r=f.r,e,i,l,s;u<0&&(p=p+u,u=-u),a<0&&(m=m+a,a=-a),typeof r=="number"?e=i=l=s=r:r instanceof Array?r.length===1?e=i=l=s=r[0]:r.length===2?(e=l=r[0],i=s=r[1]):r.length===3?(e=r[0],i=s=r[1],l=r[2]):(e=r[0],i=r[1],l=r[2],s=r[3]):e=i=l=s=0;var d;e+i>u&&(d=e+i,e*=u/d,i*=u/d),l+s>u&&(d=l+s,l*=u/d,s*=u/d),i+l>a&&(d=i+l,i*=a/d,l*=a/d),e+s>a&&(d=e+s,e*=a/d,s*=a/d),O.moveTo(p+e,m),O.lineTo(p+u-i,m),i!==0&&O.arc(p+u-i,m+i,i,-Math.PI/2,0),O.lineTo(p+u,m+a-l),l!==0&&O.arc(p+u-l,m+a-l,l,0,Math.PI/2),O.lineTo(p+s,m+a),s!==0&&O.arc(p+s,m+a-s,s,Math.PI/2,Math.PI),O.lineTo(p,m+e),e!==0&&O.arc(p+e,m+e,e,Math.PI,Math.PI*1.5)}w.buildPath=t},W6BS:function(ie,w){ie.exports="data:image/png;base64,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"},WaYH:function(ie,w,t){"use strict";var O=t("rePB"),f=t("Ff2n"),p=t("VTBJ"),m=t("1OyB"),u=t("vuIU"),a=t("JX7q"),r=t("Ji7U"),e=t("LK+K"),i=t("q1tI"),l=t("TSYQ"),s=t.n(l),d=t("sboe"),g=t("OZM5"),y=function(Q){var M=Q.prefixCls,c=Q.level,o=Q.isStart,n=Q.isEnd;if(!c)return null;for(var B="".concat(M,"-indent-unit"),k=[],N=0;N=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return I|0}function a(I){return I!==I}function r(I,v){var E;return m.TYPED_ARRAY_SUPPORT?(E=new Uint8Array(v),E.__proto__=m.prototype):(E=I,E===null&&(E=new m(v)),E.length=v),E}function e(I,v){var E=r(I,v<0?0:u(v)|0);if(!m.TYPED_ARRAY_SUPPORT)for(var h=0;h55295&&E<57344){if(!D){if(E>56319){(v-=3)>-1&&j.push(239,191,189);continue}else if(Q+1===h){(v-=3)>-1&&j.push(239,191,189);continue}D=E;continue}if(E<56320){(v-=3)>-1&&j.push(239,191,189),D=E;continue}E=(D-55296<<10|E-56320)+65536}else D&&((v-=3)>-1&&j.push(239,191,189));if(D=null,E<128){if((v-=1)<0)break;j.push(E)}else if(E<2048){if((v-=2)<0)break;j.push(E>>6|192,E&63|128)}else if(E<65536){if((v-=3)<0)break;j.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((v-=4)<0)break;j.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return j}function y(I){if(m.isBuffer(I))return I.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var v=I.length;return v===0?0:g(I).length}function b(I,v,E,h){for(var D=0;D=v.length||D>=I.length);++D)v[D+E]=I[D];return D}function T(I,v,E,h){return b(g(v,I.length-E),I,E,h)}function P(I,v,E,h){if(typeof v=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&v instanceof ArrayBuffer?s(I,v,E,h):typeof v=="string"?i(I,v,E):d(I,v)}m.prototype.write=function(v,E,h){E===void 0?(h=this.length,E=0):h===void 0&&typeof E=="string"?(h=this.length,E=0):isFinite(E)&&(E=E|0,isFinite(h)?h=h|0:h=void 0);var D=this.length-E;if((h===void 0||h>D)&&(h=D),v.length>0&&(h<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");return T(this,v,E,h)},m.prototype.slice=function(v,E){var h=this.length;v=~~v,E=E===void 0?h:~~E,v<0?(v+=h,v<0&&(v=0)):v>h&&(v=h),E<0?(E+=h,E<0&&(E=0)):E>h&&(E=h),E=v.length&&(E=v.length),E||(E=0),D>0&&D=this.length)throw new RangeError("sourceStart out of bounds");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),v.length-E=0;--Q)v[Q+E]=this[Q+h];else if(j<1e3||!m.TYPED_ARRAY_SUPPORT)for(Q=0;Q>>0,h=h===void 0?this.length:h>>>0,v||(v=0);var j;if(typeof v=="number")for(j=E;j>>8&255)*192+(a&255),m.put(a,13)}},ie.exp z-index:-1000 !important; top:0 !important; right:0 !important -`,A=["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"],U={},_;function K(ee){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=ee.getAttribute("id")||ee.getAttribute("data-reactid")||ee.getAttribute("name");if(X&&U[q])return U[q];var se=window.getComputedStyle(ee),ae=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),W=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),re=A.map(function($){return"".concat($,":").concat(se.getPropertyValue($))}).join(";"),R={sizingStyle:re,paddingSize:ve,borderSize:W,boxSizing:ae};return X&&q&&(U[q]=R),R}function J(ee){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),ee.getAttribute("wrap")?_.setAttribute("wrap",ee.getAttribute("wrap")):_.removeAttribute("wrap");var ae=K(ee,X),ve=ae.paddingSize,W=ae.borderSize,re=ae.boxSizing,R=ae.sizingStyle;_.setAttribute("style","".concat(R,";").concat(N)),_.value=ee.value||ee.placeholder||"";var $=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,F=_.scrollHeight,C;if(re==="border-box"?F+=W:re==="content-box"&&(F-=ve),q!==null||se!==null){_.value=" ";var S=_.scrollHeight-ve;q!==null&&($=S*q,re==="border-box"&&($=$+ve+W),F=Math.max($,F)),se!==null&&(fe=S*se,re==="border-box"&&(fe=fe+ve+W),C=F>fe?"":"hidden",F=Math.min(fe,F))}return{height:F,minHeight:$,maxHeight:fe,overflowY:C,resize:"none"}}var Z=t("Gytx"),Y=t.n(Z),H;(function(ee){ee[ee.NONE=0]="NONE",ee[ee.RESIZING=1]="RESIZING",ee[ee.RESIZED=2]="RESIZED"})(H||(H={}));var x=function(ee){Object(m.a)(q,ee);var X=Object(u.a)(q);function q(se){var ae;return Object(f.a)(this,q),ae=X.call(this,se),ae.nextFrameActionId=void 0,ae.resizeFrameId=void 0,ae.textArea=void 0,ae.saveTextArea=function(ve){ae.textArea=ve},ae.handleResize=function(ve){var W=ae.state.resizeStatus,re=ae.props,R=re.autoSize,$=re.onResize;if(W!==H.NONE)return;typeof $=="function"&&$(ve),R&&ae.resizeOnNextFrame()},ae.resizeOnNextFrame=function(){cancelAnimationFrame(ae.nextFrameActionId),ae.nextFrameActionId=requestAnimationFrame(ae.resizeTextarea)},ae.resizeTextarea=function(){var ve=ae.props.autoSize;if(!ve||!ae.textArea)return;var W=ve.minRows,re=ve.maxRows,R=J(ae.textArea,!1,W,re);ae.setState({textareaStyles:R,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(ae.resizeFrameId),ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:H.RESIZED},function(){ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:H.NONE}),ae.fixFirefoxAutoScroll()})})})})},ae.renderTextArea=function(){var ve=ae.props,W=ve.prefixCls,re=W===void 0?"rc-textarea":W,R=ve.autoSize,$=ve.onResize,fe=ve.className,F=ve.disabled,C=ae.state,S=C.textareaStyles,z=C.resizeStatus,te=Object(n.a)(ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),de=k()(re,fe,Object(e.a)({},"".concat(re,"-disabled"),F));"value"in te&&(te.value=te.value||"");var he=Object(r.a)(Object(r.a)(Object(r.a)({},ae.props.style),S),z===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(o,{onResize:ae.handleResize,disabled:!(R||$)},a.createElement("textarea",Object(O.a)({},te,{className:de,style:he,ref:ae.saveTextArea})))},ae.state={textareaStyles:{},resizeStatus:H.NONE},ae}return Object(p.a)(q,[{key:"componentDidUpdate",value:function(ae){(ae.value!==this.props.value||!Y()(ae.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 ae=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(ae,ve)}}catch(W){}}},{key:"render",value:function(){return this.renderTextArea()}}]),q}(a.Component),V=x,G=function(ee){Object(m.a)(q,ee);var X=Object(u.a)(q);function q(se){var ae;Object(f.a)(this,q),ae=X.call(this,se),ae.resizableTextArea=void 0,ae.focus=function(){ae.resizableTextArea.textArea.focus()},ae.saveTextArea=function(W){ae.resizableTextArea=W},ae.handleChange=function(W){var re=ae.props.onChange;ae.setValue(W.target.value,function(){ae.resizableTextArea.resizeTextarea()}),re&&re(W)},ae.handleKeyDown=function(W){var re=ae.props,R=re.onPressEnter,$=re.onKeyDown;W.keyCode===13&&R&&R(W),$&&$(W)};var ve=typeof se.value=="undefined"||se.value===null?se.defaultValue:se.value;return ae.state={value:ve},ae}return Object(p.a)(q,[{key:"setValue",value:function(ae,ve){"value"in this.props||this.setState({value:ae},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(V,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ae){return"value"in ae?{value:ae.value}:null}}]),q}(a.Component),oe=w.default=G},YH21:function(ie,w,t){var O=t("H6uX");w.Dispatcher=O;var f=t("ItGF"),p=t("Ze12"),m=p.isCanvasEl,u=p.transformCoordWithViewport,a=typeof window!="undefined"&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e=[];function i(I,v,E,h){return E=E||{},h||!f.canvasSupported?l(I,v,E):f.browser.firefox&&v.layerX!=null&&v.layerX!==v.offsetX?(E.zrX=v.layerX,E.zrY=v.layerY):v.offsetX!=null?(E.zrX=v.offsetX,E.zrY=v.offsetY):l(I,v,E),E}function l(I,v,E){if(f.domSupported&&I.getBoundingClientRect){var h=v.clientX,T=v.clientY;if(m(I)){var j=I.getBoundingClientRect();E.zrX=h-j.left,E.zrY=T-j.top;return}else if(u(e,I,h,T)){E.zrX=e[0],E.zrY=e[1];return}}E.zrX=E.zrY=0}function s(I){return I||window.event}function d(I,v,E){if(v=s(v),v.zrX!=null)return v;var h=v.type,T=h&&h.indexOf("touch")>=0;if(!T)i(I,v,v,E),v.zrDelta=v.wheelDelta?v.wheelDelta/120:-(v.detail||0)/3;else{var j=h!=="touchend"?v.targetTouches[0]:v.changedTouches[0];j&&i(I,j,v,E)}var Q=v.button;return v.which==null&&Q!==void 0&&r.test(v.type)&&(v.which=Q&1?1:Q&2?3:Q&4?2:0),v}function g(I,v,E,h){a?I.addEventListener(v,E,h):I.attachEvent("on"+v,E)}function y(I,v,E,h){a?I.removeEventListener(v,E,h):I.detachEvent("on"+v,E)}var b=a?function(I){I.preventDefault(),I.stopPropagation(),I.cancelBubble=!0}:function(I){I.returnValue=!1,I.cancelBubble=!0};function D(I){return I.which===2||I.which===3}function P(I){return I.which>1}w.clientToLocal=i,w.getNativeEvent=s,w.normalizeEvent=d,w.addEventListener=g,w.removeEventListener=y,w.stop=b,w.isMiddleOrRightButtonOnMouseUpDown=D,w.notLeftMouse=P},YgsL:function(ie,w,t){var O=t("QBsz"),f=O.distance;function p(u,a,r,e,i,l,s){var d=(r-u)*.5,g=(e-a)*.5;return(2*(a-r)+d+g)*s+(-3*(a-r)-2*d-g)*l+d*i+a}function m(u,a){for(var r=u.length,e=[],i=0,l=1;lr-2?r-1:g+1],I=u[g>r-3?r-1:g+2]);var v=y*y,E=y*v;e.push([p(b[0],D[0],P[0],I[0],y,v,E),p(b[1],D[1],P[1],I[1],y,v,E)])}return e}ie.exports=m},Z92M:function(ie,w){ie.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},Ze12:function(ie,w,t){var O=t("ItGF"),f=t("hOwI"),p=f.buildTransformer,m="___zrEVENTSAVED",u=[];function a(s,d,g,y,b){return r(u,d,y,b,!0)&&r(s,g,u[0],u[1])}function r(s,d,g,y,b){if(d.getBoundingClientRect&&O.domSupported&&!l(d)){var D=d[m]||(d[m]={}),P=e(d,D),I=i(P,D,b);if(I)return I(s,g,y),!0}return!1}function e(s,d){var g=d.markers;if(g)return g;g=d.markers=[];for(var y=["left","right"],b=["top","bottom"],D=0;D<4;D++){var P=document.createElement("div"),I=P.style,v=D%2,E=(D>>1)%2;I.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",y[v]+":0",b[E]+":0",y[1-v]+":auto",b[1-E]+":auto",""].join("!important;"),s.appendChild(P),g.push(P)}return g}function i(s,d,g){for(var y=g?"invTrans":"trans",b=d[y],D=d.srcCoords,P=!0,I=[],v=[],E=0;E<4;E++){var h=s[E].getBoundingClientRect(),T=2*E,j=h.left,Q=h.top;I.push(j,Q),P=P&&D&&j===D[T]&&Q===D[T+1],v.push(s[E].offsetLeft,s[E].offsetTop)}return P&&b?b:(d.srcCoords=I,d[y]=g?p(v,I):p(I,v))}function l(s){return s.nodeName.toUpperCase()==="CANVAS"}w.transformLocalCoord=a,w.transformCoordWithViewport=r,w.isCanvasEl=l},ZpRC:function(ie,w,t){"use strict";function O(s){return typeof s=="object"&&s!=null&&s.nodeType===1}function f(s,d){return(!d||s!=="hidden")&&s!=="visible"&&s!=="clip"}function p(s,d){if(s.clientHeightd||D>s&&P=d&&I>=g?D-s-y:P>d&&Ig?P-d+b:0}var u=function(s,d){var g=window,y=d.scrollMode,b=d.block,D=d.inline,P=d.boundary,I=d.skipOverflowHiddenElements,v=typeof P=="function"?P:function(S){return S!==P};if(!O(s))throw new TypeError("Invalid target");for(var E=document.scrollingElement||document.documentElement,h=[],T=s;O(T)&&v(T);){if((T=T.parentElement)===E){h.push(T);break}T!=null&&T===document.body&&p(T)&&!p(document.documentElement)||T!=null&&p(T,I)&&h.push(T)}for(var j=g.visualViewport?g.visualViewport.width:innerWidth,Q=g.visualViewport?g.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,o=s.getBoundingClientRect(),n=o.height,B=o.width,k=o.top,N=o.right,A=o.bottom,U=o.left,_=b==="start"||b==="nearest"?k:b==="end"?A:k+n/2,K=D==="center"?U+B/2:D==="end"?N:U,J=[],Z=0;Z=0&&U>=0&&A<=Q&&N<=j&&k>=G&&A<=ee&&U>=X&&N<=oe)return J;var q=getComputedStyle(Y),se=parseInt(q.borderLeftWidth,10),ae=parseInt(q.borderTopWidth,10),ve=parseInt(q.borderRightWidth,10),W=parseInt(q.borderBottomWidth,10),re=0,R=0,$="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-se-ve:0,fe="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-ae-W:0;if(E===Y)re=b==="start"?_:b==="end"?_-Q:b==="nearest"?m(c,c+Q,Q,ae,W,c+_,c+_+n,n):_-Q/2,R=D==="start"?K:D==="center"?K-j/2:D==="end"?K-j:m(M,M+j,j,se,ve,M+K,M+K+B,B),re=Math.max(0,re+c),R=Math.max(0,R+M);else{re=b==="start"?_-G-ae:b==="end"?_-ee+W+fe:b==="nearest"?m(G,ee,x,ae,W+fe,_,_+n,n):_-(G+x/2)+fe/2,R=D==="start"?K-X-se:D==="center"?K-(X+V/2)+$/2:D==="end"?K-oe+ve+$:m(X,oe,V,se,ve+$,K,K+B,B);var F=Y.scrollLeft,C=Y.scrollTop;_+=C-(re=Math.max(0,Math.min(C+re,Y.scrollHeight-x+fe))),K+=F-(R=Math.max(0,Math.min(F+R,Y.scrollWidth-V+$)))}J.push({el:Y,top:re,left:R})}return J};function a(s){return s===Object(s)&&Object.keys(s).length!==0}function r(s,d){d===void 0&&(d="auto");var g="scrollBehavior"in document.body.style;s.forEach(function(y){var b=y.el,D=y.top,P=y.left;b.scroll&&g?b.scroll({top:D,left:P,behavior:d}):(b.scrollTop=D,b.scrollLeft=P)})}function e(s){return s===!1?{block:"end",inline:"nearest"}:a(s)?s:{block:"start",inline:"nearest"}}function i(s,d){var g=!s.ownerDocument.documentElement.contains(s);if(a(d)&&typeof d.behavior=="function")return d.behavior(g?[]:u(s,d));if(g)return;var y=e(d);return r(u(s,y),y.behavior)}var l=w.a=i},Zss7:function(ie,w,t){var O;(function(f){var p=/^\s+/,m=/\s+$/,u=0,a=f.round,r=f.min,e=f.max,i=f.random;function l(W,re){if(W=W||"",re=re||{},W instanceof l)return W;if(!(this instanceof l))return new l(W,re);var R=s(W);this._originalInput=W,this._r=R.r,this._g=R.g,this._b=R.b,this._a=R.a,this._roundA=a(100*this._a)/100,this._format=re.format||R.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=R.ok,this._tc_id=u++}l.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 W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),re,R,$,fe,F,C;return re=W.r/255,R=W.g/255,$=W.b/255,re<=.03928?fe=re/12.92:fe=f.pow((re+.055)/1.055,2.4),R<=.03928?F=R/12.92:F=f.pow((R+.055)/1.055,2.4),$<=.03928?C=$/12.92:C=f.pow(($+.055)/1.055,2.4),.2126*fe+.7152*F+.0722*C},setAlpha:function(W){return this._a=J(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=b(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=b(this._r,this._g,this._b),re=a(W.h*360),R=a(W.s*100),$=a(W.v*100);return this._a==1?"hsv("+re+", "+R+"%, "+$+"%)":"hsva("+re+", "+R+"%, "+$+"%, "+this._roundA+")"},toHsl:function(){var W=g(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=g(this._r,this._g,this._b),re=a(W.h*360),R=a(W.s*100),$=a(W.l*100);return this._a==1?"hsl("+re+", "+R+"%, "+$+"%)":"hsla("+re+", "+R+"%, "+$+"%, "+this._roundA+")"},toHex:function(W){return P(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return I(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Z(this._r,255)*100)+"%",g:a(Z(this._g,255)*100)+"%",b:a(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Z(this._r,255)*100)+"%, "+a(Z(this._g,255)*100)+"%, "+a(Z(this._b,255)*100)+"%)":"rgba("+a(Z(this._r,255)*100)+"%, "+a(Z(this._g,255)*100)+"%, "+a(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:_[P(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var re="#"+v(this._r,this._g,this._b,this._a),R=re,$=this._gradientType?"GradientType = 1, ":"";if(W){var fe=l(W);R="#"+v(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+$+"startColorstr="+re+",endColorstr="+R+")"},toString:function(W){var re=!!W;W=W||this._format;var R=!1,$=this._a<1&&this._a>=0,fe=!re&&$&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return fe?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(R=this.toRgbString()),W==="prgb"&&(R=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(R=this.toHexString()),W==="hex3"&&(R=this.toHexString(!0)),W==="hex4"&&(R=this.toHex8String(!0)),W==="hex8"&&(R=this.toHex8String()),W==="name"&&(R=this.toName()),W==="hsl"&&(R=this.toHslString()),W==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(W,re){var R=W.apply(null,[this].concat([].slice.call(re)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(Q,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(W,re){return W.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(n,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},l.fromRatio=function(W,re){if(typeof W=="object"){var R={};for(var $ in W)W.hasOwnProperty($)&&($==="a"?R[$]=W[$]:R[$]=oe(W[$]));W=R}return l(W,re)};function s(W){var re={r:0,g:0,b:0},R=1,$=null,fe=null,F=null,C=!1,S=!1;return typeof W=="string"&&(W=ae(W)),typeof W=="object"&&(se(W.r)&&se(W.g)&&se(W.b)?(re=d(W.r,W.g,W.b),C=!0,S=String(W.r).substr(-1)==="%"?"prgb":"rgb"):se(W.h)&&se(W.s)&&se(W.v)?($=oe(W.s),fe=oe(W.v),re=D(W.h,$,fe),C=!0,S="hsv"):se(W.h)&&se(W.s)&&se(W.l)&&($=oe(W.s),F=oe(W.l),re=y(W.h,$,F),C=!0,S="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=J(R),{ok:C,format:W.format||S,r:r(255,e(re.r,0)),g:r(255,e(re.g,0)),b:r(255,e(re.b,0)),a:R}}function d(W,re,R){return{r:Z(W,255)*255,g:Z(re,255)*255,b:Z(R,255)*255}}function g(W,re,R){W=Z(W,255),re=Z(re,255),R=Z(R,255);var $=e(W,re,R),fe=r(W,re,R),F,C,S=($+fe)/2;if($==fe)F=C=0;else{var z=$-fe;C=S>.5?z/(2-$-fe):z/($+fe);switch($){case W:F=(re-R)/z+(re1&&(he-=1),he<1/6?te+(de-te)*6*he:he<1/2?de:he<2/3?te+(de-te)*(2/3-he)*6:te}if(re===0)$=fe=F=R;else{var S=R<.5?R*(1+re):R+re-R*re,z=2*R-S;$=C(z,S,W+1/3),fe=C(z,S,W),F=C(z,S,W-1/3)}return{r:$*255,g:fe*255,b:F*255}}function b(W,re,R){W=Z(W,255),re=Z(re,255),R=Z(R,255);var $=e(W,re,R),fe=r(W,re,R),F,C,S=$,z=$-fe;if(C=$===0?0:z/$,$==fe)F=0;else{switch($){case W:F=(re-R)/z+(re>1)+720)%360;--re;)$.h=($.h+fe)%360,F.push(l($));return F}function A(W,re){re=re||6;for(var R=l(W).toHsv(),$=R.h,fe=R.s,F=R.v,C=[],S=1/re;re--;)C.push(l({h:$,s:fe,v:F})),F=(F+S)%1;return C}l.mix=function(W,re,R){R=R===0?0:R||50;var $=l(W).toRgb(),fe=l(re).toRgb(),F=R/100,C={r:(fe.r-$.r)*F+$.r,g:(fe.g-$.g)*F+$.g,b:(fe.b-$.b)*F+$.b,a:(fe.a-$.a)*F+$.a};return l(C)},l.readability=function(W,re){var R=l(W),$=l(re);return(f.max(R.getLuminance(),$.getLuminance())+.05)/(f.min(R.getLuminance(),$.getLuminance())+.05)},l.isReadable=function(W,re,R){var $=l.readability(W,re),fe,F;F=!1,fe=ve(R);switch(fe.level+fe.size){case"AAsmall":case"AAAlarge":F=$>=4.5;break;case"AAlarge":F=$>=3;break;case"AAAsmall":F=$>=7;break}return F},l.mostReadable=function(W,re,R){var $=null,fe=0,F,C,S,z;R=R||{},C=R.includeFallbackColors,S=R.level,z=R.size;for(var te=0;tefe&&(fe=F,$=l(re[te]));return l.isReadable(W,$,{level:S,size:z})||!C?$:(R.includeFallbackColors=!1,l.mostReadable(W,["#fff","#000"],R))};var U=l.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"},_=l.hexNames=K(U);function K(W){var re={};for(var R in W)W.hasOwnProperty(R)&&(re[W[R]]=R);return re}function J(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function Z(W,re){x(W)&&(W="100%");var R=V(W);return W=r(re,e(0,parseFloat(W))),R&&(W=parseInt(W*re,10)/100),f.abs(W-re)<1e-6?1:W%re/parseFloat(re)}function Y(W){return r(1,e(0,W))}function H(W){return parseInt(W,16)}function x(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function V(W){return typeof W=="string"&&W.indexOf("%")!=-1}function G(W){return W.length==1?"0"+W:""+W}function oe(W){return W<=1&&(W=W*100+"%"),W}function ee(W){return f.round(parseFloat(W)*255).toString(16)}function X(W){return H(W)/255}var q=function(){var W="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",R="(?:"+re+")|(?:"+W+")",$="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",fe="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+fe),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 se(W){return!!q.CSS_UNIT.exec(W)}function ae(W){W=W.replace(p,"").replace(m,"").toLowerCase();var re=!1;if(U[W])W=U[W],re=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=q.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=q.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=q.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=q.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=q.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=q.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=q.hex8.exec(W))?{r:H(R[1]),g:H(R[2]),b:H(R[3]),a:X(R[4]),format:re?"name":"hex8"}:(R=q.hex6.exec(W))?{r:H(R[1]),g:H(R[2]),b:H(R[3]),format:re?"name":"hex"}:(R=q.hex4.exec(W))?{r:H(R[1]+""+R[1]),g:H(R[2]+""+R[2]),b:H(R[3]+""+R[3]),a:X(R[4]+""+R[4]),format:re?"name":"hex8"}:(R=q.hex3.exec(W))?{r:H(R[1]+""+R[1]),g:H(R[2]+""+R[2]),b:H(R[3]+""+R[3]),format:re?"name":"hex"}:!1}function ve(W){var re,R;return W=W||{level:"AA",size:"small"},re=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:re,size:R}}ie.exports?ie.exports=l:!(O=function(){return l}.call(w,t,w,ie),O!==void 0&&(ie.exports=O))})(Math)},aKvl:function(ie,w,t){var O=t("Sj9i"),f=O.quadraticProjectPoint;function p(m,u,a,r,e,i,l,s,d){if(l===0)return!1;var g=l;if(d>u+g&&d>r+g&&d>i+g||dm+g&&s>a+g&&s>e+g||s1&&arguments[1]!==void 0?arguments[1]:!1,q=ee.getAttribute("id")||ee.getAttribute("data-reactid")||ee.getAttribute("name");if(X&&U[q])return U[q];var se=window.getComputedStyle(ee),ae=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),ve=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),W=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),re=A.map(function($){return"".concat($,":").concat(se.getPropertyValue($))}).join(";"),R={sizingStyle:re,paddingSize:ve,borderSize:W,boxSizing:ae};return X&&q&&(U[q]=R),R}function J(ee){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_||(_=document.createElement("textarea"),_.setAttribute("tab-index","-1"),_.setAttribute("aria-hidden","true"),document.body.appendChild(_)),ee.getAttribute("wrap")?_.setAttribute("wrap",ee.getAttribute("wrap")):_.removeAttribute("wrap");var ae=K(ee,X),ve=ae.paddingSize,W=ae.borderSize,re=ae.boxSizing,R=ae.sizingStyle;_.setAttribute("style","".concat(R,";").concat(N)),_.value=ee.value||ee.placeholder||"";var $=Number.MIN_SAFE_INTEGER,fe=Number.MAX_SAFE_INTEGER,F=_.scrollHeight,C;if(re==="border-box"?F+=W:re==="content-box"&&(F-=ve),q!==null||se!==null){_.value=" ";var S=_.scrollHeight-ve;q!==null&&($=S*q,re==="border-box"&&($=$+ve+W),F=Math.max($,F)),se!==null&&(fe=S*se,re==="border-box"&&(fe=fe+ve+W),C=F>fe?"":"hidden",F=Math.min(fe,F))}return{height:F,minHeight:$,maxHeight:fe,overflowY:C,resize:"none"}}var Z=t("Gytx"),Y=t.n(Z),H;(function(ee){ee[ee.NONE=0]="NONE",ee[ee.RESIZING=1]="RESIZING",ee[ee.RESIZED=2]="RESIZED"})(H||(H={}));var x=function(ee){Object(m.a)(q,ee);var X=Object(u.a)(q);function q(se){var ae;return Object(f.a)(this,q),ae=X.call(this,se),ae.nextFrameActionId=void 0,ae.resizeFrameId=void 0,ae.textArea=void 0,ae.saveTextArea=function(ve){ae.textArea=ve},ae.handleResize=function(ve){var W=ae.state.resizeStatus,re=ae.props,R=re.autoSize,$=re.onResize;if(W!==H.NONE)return;typeof $=="function"&&$(ve),R&&ae.resizeOnNextFrame()},ae.resizeOnNextFrame=function(){cancelAnimationFrame(ae.nextFrameActionId),ae.nextFrameActionId=requestAnimationFrame(ae.resizeTextarea)},ae.resizeTextarea=function(){var ve=ae.props.autoSize;if(!ve||!ae.textArea)return;var W=ve.minRows,re=ve.maxRows,R=J(ae.textArea,!1,W,re);ae.setState({textareaStyles:R,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(ae.resizeFrameId),ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:H.RESIZED},function(){ae.resizeFrameId=requestAnimationFrame(function(){ae.setState({resizeStatus:H.NONE}),ae.fixFirefoxAutoScroll()})})})})},ae.renderTextArea=function(){var ve=ae.props,W=ve.prefixCls,re=W===void 0?"rc-textarea":W,R=ve.autoSize,$=ve.onResize,fe=ve.className,F=ve.disabled,C=ae.state,S=C.textareaStyles,z=C.resizeStatus,te=Object(n.a)(ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),de=k()(re,fe,Object(e.a)({},"".concat(re,"-disabled"),F));"value"in te&&(te.value=te.value||"");var he=Object(r.a)(Object(r.a)(Object(r.a)({},ae.props.style),S),z===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(o,{onResize:ae.handleResize,disabled:!(R||$)},a.createElement("textarea",Object(O.a)({},te,{className:de,style:he,ref:ae.saveTextArea})))},ae.state={textareaStyles:{},resizeStatus:H.NONE},ae}return Object(p.a)(q,[{key:"componentDidUpdate",value:function(ae){(ae.value!==this.props.value||!Y()(ae.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 ae=this.textArea.selectionStart,ve=this.textArea.selectionEnd;this.textArea.setSelectionRange(ae,ve)}}catch(W){}}},{key:"render",value:function(){return this.renderTextArea()}}]),q}(a.Component),V=x,G=function(ee){Object(m.a)(q,ee);var X=Object(u.a)(q);function q(se){var ae;Object(f.a)(this,q),ae=X.call(this,se),ae.resizableTextArea=void 0,ae.focus=function(){ae.resizableTextArea.textArea.focus()},ae.saveTextArea=function(W){ae.resizableTextArea=W},ae.handleChange=function(W){var re=ae.props.onChange;ae.setValue(W.target.value,function(){ae.resizableTextArea.resizeTextarea()}),re&&re(W)},ae.handleKeyDown=function(W){var re=ae.props,R=re.onPressEnter,$=re.onKeyDown;W.keyCode===13&&R&&R(W),$&&$(W)};var ve=typeof se.value=="undefined"||se.value===null?se.defaultValue:se.value;return ae.state={value:ve},ae}return Object(p.a)(q,[{key:"setValue",value:function(ae,ve){"value"in this.props||this.setState({value:ae},ve)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(V,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ae){return"value"in ae?{value:ae.value}:null}}]),q}(a.Component),oe=w.default=G},YH21:function(ie,w,t){var O=t("H6uX");w.Dispatcher=O;var f=t("ItGF"),p=t("Ze12"),m=p.isCanvasEl,u=p.transformCoordWithViewport,a=typeof window!="undefined"&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,e=[];function i(I,v,E,h){return E=E||{},h||!f.canvasSupported?l(I,v,E):f.browser.firefox&&v.layerX!=null&&v.layerX!==v.offsetX?(E.zrX=v.layerX,E.zrY=v.layerY):v.offsetX!=null?(E.zrX=v.offsetX,E.zrY=v.offsetY):l(I,v,E),E}function l(I,v,E){if(f.domSupported&&I.getBoundingClientRect){var h=v.clientX,D=v.clientY;if(m(I)){var j=I.getBoundingClientRect();E.zrX=h-j.left,E.zrY=D-j.top;return}else if(u(e,I,h,D)){E.zrX=e[0],E.zrY=e[1];return}}E.zrX=E.zrY=0}function s(I){return I||window.event}function d(I,v,E){if(v=s(v),v.zrX!=null)return v;var h=v.type,D=h&&h.indexOf("touch")>=0;if(!D)i(I,v,v,E),v.zrDelta=v.wheelDelta?v.wheelDelta/120:-(v.detail||0)/3;else{var j=h!=="touchend"?v.targetTouches[0]:v.changedTouches[0];j&&i(I,j,v,E)}var Q=v.button;return v.which==null&&Q!==void 0&&r.test(v.type)&&(v.which=Q&1?1:Q&2?3:Q&4?2:0),v}function g(I,v,E,h){a?I.addEventListener(v,E,h):I.attachEvent("on"+v,E)}function y(I,v,E,h){a?I.removeEventListener(v,E,h):I.detachEvent("on"+v,E)}var b=a?function(I){I.preventDefault(),I.stopPropagation(),I.cancelBubble=!0}:function(I){I.returnValue=!1,I.cancelBubble=!0};function T(I){return I.which===2||I.which===3}function P(I){return I.which>1}w.clientToLocal=i,w.getNativeEvent=s,w.normalizeEvent=d,w.addEventListener=g,w.removeEventListener=y,w.stop=b,w.isMiddleOrRightButtonOnMouseUpDown=T,w.notLeftMouse=P},YgsL:function(ie,w,t){var O=t("QBsz"),f=O.distance;function p(u,a,r,e,i,l,s){var d=(r-u)*.5,g=(e-a)*.5;return(2*(a-r)+d+g)*s+(-3*(a-r)-2*d-g)*l+d*i+a}function m(u,a){for(var r=u.length,e=[],i=0,l=1;lr-2?r-1:g+1],I=u[g>r-3?r-1:g+2]);var v=y*y,E=y*v;e.push([p(b[0],T[0],P[0],I[0],y,v,E),p(b[1],T[1],P[1],I[1],y,v,E)])}return e}ie.exports=m},Z92M:function(ie,w){ie.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},Ze12:function(ie,w,t){var O=t("ItGF"),f=t("hOwI"),p=f.buildTransformer,m="___zrEVENTSAVED",u=[];function a(s,d,g,y,b){return r(u,d,y,b,!0)&&r(s,g,u[0],u[1])}function r(s,d,g,y,b){if(d.getBoundingClientRect&&O.domSupported&&!l(d)){var T=d[m]||(d[m]={}),P=e(d,T),I=i(P,T,b);if(I)return I(s,g,y),!0}return!1}function e(s,d){var g=d.markers;if(g)return g;g=d.markers=[];for(var y=["left","right"],b=["top","bottom"],T=0;T<4;T++){var P=document.createElement("div"),I=P.style,v=T%2,E=(T>>1)%2;I.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",y[v]+":0",b[E]+":0",y[1-v]+":auto",b[1-E]+":auto",""].join("!important;"),s.appendChild(P),g.push(P)}return g}function i(s,d,g){for(var y=g?"invTrans":"trans",b=d[y],T=d.srcCoords,P=!0,I=[],v=[],E=0;E<4;E++){var h=s[E].getBoundingClientRect(),D=2*E,j=h.left,Q=h.top;I.push(j,Q),P=P&&T&&j===T[D]&&Q===T[D+1],v.push(s[E].offsetLeft,s[E].offsetTop)}return P&&b?b:(d.srcCoords=I,d[y]=g?p(v,I):p(I,v))}function l(s){return s.nodeName.toUpperCase()==="CANVAS"}w.transformLocalCoord=a,w.transformCoordWithViewport=r,w.isCanvasEl=l},ZpRC:function(ie,w,t){"use strict";function O(s){return typeof s=="object"&&s!=null&&s.nodeType===1}function f(s,d){return(!d||s!=="hidden")&&s!=="visible"&&s!=="clip"}function p(s,d){if(s.clientHeightd||T>s&&P=d&&I>=g?T-s-y:P>d&&Ig?P-d+b:0}var u=function(s,d){var g=window,y=d.scrollMode,b=d.block,T=d.inline,P=d.boundary,I=d.skipOverflowHiddenElements,v=typeof P=="function"?P:function(S){return S!==P};if(!O(s))throw new TypeError("Invalid target");for(var E=document.scrollingElement||document.documentElement,h=[],D=s;O(D)&&v(D);){if((D=D.parentElement)===E){h.push(D);break}D!=null&&D===document.body&&p(D)&&!p(document.documentElement)||D!=null&&p(D,I)&&h.push(D)}for(var j=g.visualViewport?g.visualViewport.width:innerWidth,Q=g.visualViewport?g.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,o=s.getBoundingClientRect(),n=o.height,B=o.width,k=o.top,N=o.right,A=o.bottom,U=o.left,_=b==="start"||b==="nearest"?k:b==="end"?A:k+n/2,K=T==="center"?U+B/2:T==="end"?N:U,J=[],Z=0;Z=0&&U>=0&&A<=Q&&N<=j&&k>=G&&A<=ee&&U>=X&&N<=oe)return J;var q=getComputedStyle(Y),se=parseInt(q.borderLeftWidth,10),ae=parseInt(q.borderTopWidth,10),ve=parseInt(q.borderRightWidth,10),W=parseInt(q.borderBottomWidth,10),re=0,R=0,$="offsetWidth"in Y?Y.offsetWidth-Y.clientWidth-se-ve:0,fe="offsetHeight"in Y?Y.offsetHeight-Y.clientHeight-ae-W:0;if(E===Y)re=b==="start"?_:b==="end"?_-Q:b==="nearest"?m(c,c+Q,Q,ae,W,c+_,c+_+n,n):_-Q/2,R=T==="start"?K:T==="center"?K-j/2:T==="end"?K-j:m(M,M+j,j,se,ve,M+K,M+K+B,B),re=Math.max(0,re+c),R=Math.max(0,R+M);else{re=b==="start"?_-G-ae:b==="end"?_-ee+W+fe:b==="nearest"?m(G,ee,x,ae,W+fe,_,_+n,n):_-(G+x/2)+fe/2,R=T==="start"?K-X-se:T==="center"?K-(X+V/2)+$/2:T==="end"?K-oe+ve+$:m(X,oe,V,se,ve+$,K,K+B,B);var F=Y.scrollLeft,C=Y.scrollTop;_+=C-(re=Math.max(0,Math.min(C+re,Y.scrollHeight-x+fe))),K+=F-(R=Math.max(0,Math.min(F+R,Y.scrollWidth-V+$)))}J.push({el:Y,top:re,left:R})}return J};function a(s){return s===Object(s)&&Object.keys(s).length!==0}function r(s,d){d===void 0&&(d="auto");var g="scrollBehavior"in document.body.style;s.forEach(function(y){var b=y.el,T=y.top,P=y.left;b.scroll&&g?b.scroll({top:T,left:P,behavior:d}):(b.scrollTop=T,b.scrollLeft=P)})}function e(s){return s===!1?{block:"end",inline:"nearest"}:a(s)?s:{block:"start",inline:"nearest"}}function i(s,d){var g=!s.ownerDocument.documentElement.contains(s);if(a(d)&&typeof d.behavior=="function")return d.behavior(g?[]:u(s,d));if(g)return;var y=e(d);return r(u(s,y),y.behavior)}var l=w.a=i},Zss7:function(ie,w,t){var O;(function(f){var p=/^\s+/,m=/\s+$/,u=0,a=f.round,r=f.min,e=f.max,i=f.random;function l(W,re){if(W=W||"",re=re||{},W instanceof l)return W;if(!(this instanceof l))return new l(W,re);var R=s(W);this._originalInput=W,this._r=R.r,this._g=R.g,this._b=R.b,this._a=R.a,this._roundA=a(100*this._a)/100,this._format=re.format||R.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=R.ok,this._tc_id=u++}l.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 W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),re,R,$,fe,F,C;return re=W.r/255,R=W.g/255,$=W.b/255,re<=.03928?fe=re/12.92:fe=f.pow((re+.055)/1.055,2.4),R<=.03928?F=R/12.92:F=f.pow((R+.055)/1.055,2.4),$<=.03928?C=$/12.92:C=f.pow(($+.055)/1.055,2.4),.2126*fe+.7152*F+.0722*C},setAlpha:function(W){return this._a=J(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=b(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=b(this._r,this._g,this._b),re=a(W.h*360),R=a(W.s*100),$=a(W.v*100);return this._a==1?"hsv("+re+", "+R+"%, "+$+"%)":"hsva("+re+", "+R+"%, "+$+"%, "+this._roundA+")"},toHsl:function(){var W=g(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=g(this._r,this._g,this._b),re=a(W.h*360),R=a(W.s*100),$=a(W.l*100);return this._a==1?"hsl("+re+", "+R+"%, "+$+"%)":"hsla("+re+", "+R+"%, "+$+"%, "+this._roundA+")"},toHex:function(W){return P(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return I(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Z(this._r,255)*100)+"%",g:a(Z(this._g,255)*100)+"%",b:a(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Z(this._r,255)*100)+"%, "+a(Z(this._g,255)*100)+"%, "+a(Z(this._b,255)*100)+"%)":"rgba("+a(Z(this._r,255)*100)+"%, "+a(Z(this._g,255)*100)+"%, "+a(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:_[P(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var re="#"+v(this._r,this._g,this._b,this._a),R=re,$=this._gradientType?"GradientType = 1, ":"";if(W){var fe=l(W);R="#"+v(fe._r,fe._g,fe._b,fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+$+"startColorstr="+re+",endColorstr="+R+")"},toString:function(W){var re=!!W;W=W||this._format;var R=!1,$=this._a<1&&this._a>=0,fe=!re&&$&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return fe?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(R=this.toRgbString()),W==="prgb"&&(R=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(R=this.toHexString()),W==="hex3"&&(R=this.toHexString(!0)),W==="hex4"&&(R=this.toHex8String(!0)),W==="hex8"&&(R=this.toHex8String()),W==="name"&&(R=this.toName()),W==="hsl"&&(R=this.toHslString()),W==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(W,re){var R=W.apply(null,[this].concat([].slice.call(re)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(Q,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(W,re){return W.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(n,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},l.fromRatio=function(W,re){if(typeof W=="object"){var R={};for(var $ in W)W.hasOwnProperty($)&&($==="a"?R[$]=W[$]:R[$]=oe(W[$]));W=R}return l(W,re)};function s(W){var re={r:0,g:0,b:0},R=1,$=null,fe=null,F=null,C=!1,S=!1;return typeof W=="string"&&(W=ae(W)),typeof W=="object"&&(se(W.r)&&se(W.g)&&se(W.b)?(re=d(W.r,W.g,W.b),C=!0,S=String(W.r).substr(-1)==="%"?"prgb":"rgb"):se(W.h)&&se(W.s)&&se(W.v)?($=oe(W.s),fe=oe(W.v),re=T(W.h,$,fe),C=!0,S="hsv"):se(W.h)&&se(W.s)&&se(W.l)&&($=oe(W.s),F=oe(W.l),re=y(W.h,$,F),C=!0,S="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=J(R),{ok:C,format:W.format||S,r:r(255,e(re.r,0)),g:r(255,e(re.g,0)),b:r(255,e(re.b,0)),a:R}}function d(W,re,R){return{r:Z(W,255)*255,g:Z(re,255)*255,b:Z(R,255)*255}}function g(W,re,R){W=Z(W,255),re=Z(re,255),R=Z(R,255);var $=e(W,re,R),fe=r(W,re,R),F,C,S=($+fe)/2;if($==fe)F=C=0;else{var z=$-fe;C=S>.5?z/(2-$-fe):z/($+fe);switch($){case W:F=(re-R)/z+(re1&&(he-=1),he<1/6?te+(de-te)*6*he:he<1/2?de:he<2/3?te+(de-te)*(2/3-he)*6:te}if(re===0)$=fe=F=R;else{var S=R<.5?R*(1+re):R+re-R*re,z=2*R-S;$=C(z,S,W+1/3),fe=C(z,S,W),F=C(z,S,W-1/3)}return{r:$*255,g:fe*255,b:F*255}}function b(W,re,R){W=Z(W,255),re=Z(re,255),R=Z(R,255);var $=e(W,re,R),fe=r(W,re,R),F,C,S=$,z=$-fe;if(C=$===0?0:z/$,$==fe)F=0;else{switch($){case W:F=(re-R)/z+(re>1)+720)%360;--re;)$.h=($.h+fe)%360,F.push(l($));return F}function A(W,re){re=re||6;for(var R=l(W).toHsv(),$=R.h,fe=R.s,F=R.v,C=[],S=1/re;re--;)C.push(l({h:$,s:fe,v:F})),F=(F+S)%1;return C}l.mix=function(W,re,R){R=R===0?0:R||50;var $=l(W).toRgb(),fe=l(re).toRgb(),F=R/100,C={r:(fe.r-$.r)*F+$.r,g:(fe.g-$.g)*F+$.g,b:(fe.b-$.b)*F+$.b,a:(fe.a-$.a)*F+$.a};return l(C)},l.readability=function(W,re){var R=l(W),$=l(re);return(f.max(R.getLuminance(),$.getLuminance())+.05)/(f.min(R.getLuminance(),$.getLuminance())+.05)},l.isReadable=function(W,re,R){var $=l.readability(W,re),fe,F;F=!1,fe=ve(R);switch(fe.level+fe.size){case"AAsmall":case"AAAlarge":F=$>=4.5;break;case"AAlarge":F=$>=3;break;case"AAAsmall":F=$>=7;break}return F},l.mostReadable=function(W,re,R){var $=null,fe=0,F,C,S,z;R=R||{},C=R.includeFallbackColors,S=R.level,z=R.size;for(var te=0;tefe&&(fe=F,$=l(re[te]));return l.isReadable(W,$,{level:S,size:z})||!C?$:(R.includeFallbackColors=!1,l.mostReadable(W,["#fff","#000"],R))};var U=l.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"},_=l.hexNames=K(U);function K(W){var re={};for(var R in W)W.hasOwnProperty(R)&&(re[W[R]]=R);return re}function J(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function Z(W,re){x(W)&&(W="100%");var R=V(W);return W=r(re,e(0,parseFloat(W))),R&&(W=parseInt(W*re,10)/100),f.abs(W-re)<1e-6?1:W%re/parseFloat(re)}function Y(W){return r(1,e(0,W))}function H(W){return parseInt(W,16)}function x(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function V(W){return typeof W=="string"&&W.indexOf("%")!=-1}function G(W){return W.length==1?"0"+W:""+W}function oe(W){return W<=1&&(W=W*100+"%"),W}function ee(W){return f.round(parseFloat(W)*255).toString(16)}function X(W){return H(W)/255}var q=function(){var W="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",R="(?:"+re+")|(?:"+W+")",$="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",fe="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+fe),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 se(W){return!!q.CSS_UNIT.exec(W)}function ae(W){W=W.replace(p,"").replace(m,"").toLowerCase();var re=!1;if(U[W])W=U[W],re=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=q.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=q.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=q.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=q.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=q.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=q.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=q.hex8.exec(W))?{r:H(R[1]),g:H(R[2]),b:H(R[3]),a:X(R[4]),format:re?"name":"hex8"}:(R=q.hex6.exec(W))?{r:H(R[1]),g:H(R[2]),b:H(R[3]),format:re?"name":"hex"}:(R=q.hex4.exec(W))?{r:H(R[1]+""+R[1]),g:H(R[2]+""+R[2]),b:H(R[3]+""+R[3]),a:X(R[4]+""+R[4]),format:re?"name":"hex8"}:(R=q.hex3.exec(W))?{r:H(R[1]+""+R[1]),g:H(R[2]+""+R[2]),b:H(R[3]+""+R[3]),format:re?"name":"hex"}:!1}function ve(W){var re,R;return W=W||{level:"AA",size:"small"},re=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:re,size:R}}ie.exports?ie.exports=l:!(O=function(){return l}.call(w,t,w,ie),O!==void 0&&(ie.exports=O))})(Math)},aKvl:function(ie,w,t){var O=t("Sj9i"),f=O.quadraticProjectPoint;function p(m,u,a,r,e,i,l,s,d){if(l===0)return!1;var g=l;if(d>u+g&&d>r+g&&d>i+g||dm+g&&s>a+g&&s>e+g||s>>8&255)*192+(a&255),m.put(a,13)}},ie.exp * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt -*/var i=!f.canvasSupported,l={canvas:a},s={},d="4.3.1";function g(v,E){var h=new I(O(),v,E);return s[h.id]=h,h}function y(v){if(v)v.dispose();else{for(var E in s)s.hasOwnProperty(E)&&s[E].dispose();s={}}return this}function b(v){return s[v]}function D(v,E){l[v]=E}function P(v){delete s[v]}var I=function(v,E,h){h=h||{},this.dom=E,this.id=v;var T=this,j=new u,Q=h.renderer;if(i){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");Q="vml"}else(!Q||!l[Q])&&(Q="canvas");var M=new l[Q](E,j,h,v);this.storage=j,this.painter=M;var c=!f.node&&!f.worker?new e(M.getViewportRoot(),M.root):null;this.handler=new m(j,M,c,M.root),this.animation=new r({stage:{update:p.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=j.delFromStorage,n=j.addToStorage;j.delFromStorage=function(B){o.call(j,B),B&&B.removeSelfFromZr(T)},j.addToStorage=function(B){n.call(j,B),B.addSelfToZr(T)}};I.prototype={constructor:I,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,E){this.painter.configLayer&&this.painter.configLayer(v,E),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,E){if(this.painter.addHover){var h=this.painter.addHover(v,E);return this.refreshHover(),h}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,E){return this.painter.pathToImage(v,E)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,E){return this.handler.findHover(v,E)},on:function(v,E,h){this.handler.on(v,E,h)},off:function(v,E){this.handler.off(v,E)},trigger:function(v,E){this.handler.trigger(v,E)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,P(this.id)}},w.version=d,w.init=g,w.dispose=y,w.getInstance=b,w.registerPainter=D},aZ40:function(ie,w,t){var O=t("Wogr"),f=O.alloc(512),p=O.alloc(256);(function(){for(var u=1,a=0;a<255;a++)f[a]=u,p[u]=a,u<<=1,u&256&&(u^=285);for(a=255;a<512;a++)f[a]=f[a-255]})(),w.log=function(u){if(u<1)throw new Error("log("+u+")");return p[u]},w.exp=function(u){return f[u]},w.mul=function(u,a){return u===0||a===0?0:f[p[u]+p[a]]}},bT9E:function(ie,w,t){"use strict";t.d(w,"a",function(){return f});var O=t("VTBJ");function f(p,m){var u=Object(O.a)({},p);return Array.isArray(m)&&m.forEach(function(a){delete u[a]}),u}},bYtY:function(ie,w){var t={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,p=Array.prototype,m=p.forEach,u=p.filter,a=p.slice,r=p.map,e=p.reduce,i={};function l(R,$){R==="createCanvas"&&(P=null),i[R]=$}function s(R){if(R==null||typeof R!="object")return R;var $=R,fe=f.call(R);if(fe==="[object Array]"){if(!se(R)){$=[];for(var F=0,C=R.length;F40)throw new Error('"version" should be in range from 1 to 40');return p*4+17},w.getSymbolTotalCodewords=function(p){return O[p]},w.getBCHDigit=function(f){for(var p=0;f!==0;)p++,f>>>=1;return p},w.setToSJISFunction=function(p){if(typeof p!="function")throw new Error('"toSJISFunc" is not a valid function.');t=p},w.isKanjiModeEnabled=function(){return typeof t!="undefined"},w.toSJIS=function(p){return t(p)}},e6BP:function(ie,w){function t(){this.buffer=[],this.length=0}t.prototype={get:function(O){var f=Math.floor(O/8);return(this.buffer[f]>>>7-O%8&1)===1},put:function(O,f){for(var p=0;p>>f-p-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(O){var f=Math.floor(this.length/8);this.buffer.length<=f&&this.buffer.push(0),O&&(this.buffer[f]|=128>>>this.length%8),this.length++}},ie.exports=t},eQOe:function(ie,w){w.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};w.isValid=function(p){return p!=null&&p!==""&&!isNaN(p)&&p>=0&&p<=7},w.from=function(p){return w.isValid(p)?parseInt(p,10):void 0},w.getPenaltyN1=function(p){for(var m=p.size,u=0,a=0,r=0,e=null,i=null,l=0;l=5&&(u+=t.N1+(a-5)),e=d,a=1),d=p.get(s,l),d===i?r++:(r>=5&&(u+=t.N1+(r-5)),i=d,r=1)}a>=5&&(u+=t.N1+(a-5)),r>=5&&(u+=t.N1+(r-5))}return u},w.getPenaltyN2=function(p){for(var m=p.size,u=0,a=0;a=10&&(a===1488||a===93)&&u++,r=r<<1&2047|p.get(i,e),i>=10&&(r===1488||r===93)&&u++}return u*t.N3},w.getPenaltyN4=function(p){for(var m=0,u=p.data.length,a=0;a=0&&f.bit<4},w.from=function(f,p){if(w.isValid(f))return f;try{return t(f)}catch(m){return p}}},fAei:function(ie,w,t){"use strict";t.d(w,"a",function(){return E.a});var O=t("rePB"),f=t("VTBJ"),p=t("KQm4"),m=t("1OyB"),u=t("vuIU"),a=t("Ji7U"),r=t("LK+K"),e=t("q1tI"),i=t("4IlW"),l=t("Kwbf"),s=t("TSYQ"),d=t.n(s),g=t("sboe"),y=t("OZM5"),b=t("815F"),D=t("ODXe"),P=t("Ff2n"),I=t("+nKL"),v=t("8XRh"),E=t("WaYH"),h=function(oe,ee){var X=oe.className,q=oe.style,se=oe.motion,ae=oe.motionNodes,ve=oe.motionType,W=oe.onMotionStart,re=oe.onMotionEnd,R=oe.active,$=oe.treeNodeRequiredProps,fe=Object(P.a)(oe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),F=e.useState(!0),C=Object(D.a)(F,2),S=C[0],z=C[1],te=e.useContext(g.a),de=te.prefixCls,he=e.useRef(!1),Me=function(){he.current||re(),he.current=!0};return Object(e.useEffect)(function(){ae&&ve==="hide"&&S&&z(!1)},[ae]),Object(e.useEffect)(function(){return ae&&W(),function(){ae&&Me()}},[]),ae?e.createElement(v.default,Object.assign({ref:ee,visible:S},se,{motionAppear:ve==="show",onAppearEnd:Me,onLeaveEnd:Me}),function(ce,be){var Ae=ce.className,ye=ce.style;return e.createElement("div",{ref:be,className:d()("".concat(de,"-treenode-motion"),Ae),style:ye},ae.map(function(ke){var Se=ke.data,Ne=Se.key,Ue=Object(P.a)(Se,["key"]),$e=ke.isStart,We=ke.isEnd;delete Ue.children;var nt=Object(b.f)(Ne,$);return e.createElement(E.a,Object.assign({},Ue,nt,{active:R,data:ke.data,key:Ne,isStart:$e,isEnd:We}))}))}):e.createElement(E.a,Object.assign({domRef:ee,className:X,style:q},fe,{active:R}))};h.displayName="MotionTreeNode";var T=e.forwardRef(h),j=T;function Q(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ee=G.length,X=oe.length;if(Math.abs(ee-X)!==1)return{add:!1,key:null};function q(se,ae){var ve=new Map;se.forEach(function(re){ve.set(re,!0)});var W=ae.filter(function(re){return!ve.has(re)});return W.length===1?W[0]:null}return ee ").concat(oe);return oe}var K=function(oe,ee){var X=oe.prefixCls,q=oe.data,se=oe.selectable,ae=oe.checkable,ve=oe.expandedKeys,W=oe.selectedKeys,re=oe.checkedKeys,R=oe.loadedKeys,$=oe.loadingKeys,fe=oe.halfCheckedKeys,F=oe.keyEntities,C=oe.disabled,S=oe.dragging,z=oe.dragOverNodeKey,te=oe.dropPosition,de=oe.motion,he=oe.height,Me=oe.itemHeight,ce=oe.virtual,be=oe.focusable,Ae=oe.activeItem,ye=oe.focused,ke=oe.tabIndex,Se=oe.onKeyDown,Ne=oe.onFocus,Ue=oe.onBlur,$e=oe.onActiveChange,We=oe.onListChangeStart,nt=oe.onListChangeEnd,et=Object(P.a)(oe,["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"]),Xe=e.useRef(null);e.useImperativeHandle(ee,function(){return{scrollTo:function(dt){Xe.current.scrollTo(dt)}}});var st=e.useState(ve),ut=Object(D.a)(st,2),ct=ut[0],Ze=ut[1],bt=e.useState(q),lt=Object(D.a)(bt,2),Et=lt[0],jt=lt[1],Qt=e.useState(q),Gt=Object(D.a)(Qt,2),rn=Gt[0],ze=Gt[1],Ce=e.useState([]),Oe=Object(D.a)(Ce,2),ge=Oe[0],ne=Oe[1],le=e.useState(null),we=Object(D.a)(le,2),xe=we[0],Re=we[1];function je(){jt(q),ze(q),ne([]),Re(null),nt()}e.useEffect(function(){Ze(ve);var Fe=Q(ct,ve);if(Fe.key!==null)if(Fe.add){var dt=Et.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),tt=A(M(Et,q,Fe.key),ce,he,Me),Ct=Et.slice();Ct.splice(dt+1,0,N),ze(Ct),ne(tt),Re("show")}else{var At=q.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),Ht=A(M(q,Et,Fe.key),ce,he,Me),en=q.slice();en.splice(At+1,0,N),ze(en),ne(Ht),Re("hide")}else Et!==q&&(jt(q),ze(q))},[ve,q]),e.useEffect(function(){S||je()},[S]);var De=de?rn:q,Le={expandedKeys:ve,selectedKeys:W,loadedKeys:R,loadingKeys:$,checkedKeys:re,halfCheckedKeys:fe,dragOverNodeKey:z,dropPosition:te,keyEntities:F};return e.createElement(e.Fragment,null,ye&&Ae&&e.createElement("span",{style:c,"aria-live":"assertive"},_(Ae)),e.createElement("div",{role:"tree"},e.createElement("input",{style:c,disabled:be===!1||C,tabIndex:be!==!1?ke:null,onKeyDown:Se,onFocus:Ne,onBlur:Ue,value:"",onChange:o})),e.createElement(I.a,Object.assign({},et,{data:De,itemKey:U,height:he,fullHeight:!1,virtual:ce,itemHeight:Me,prefixCls:"".concat(X,"-list"),ref:Xe}),function(Fe){var dt=Fe.pos,tt=Fe.data,Ct=tt.key,At=Object(P.a)(tt,["key"]),Ht=Fe.isStart,en=Fe.isEnd,Ge=Object(b.e)(Ct,dt);delete At.children;var gt=Object(b.f)(Ge,Le);return e.createElement(j,Object.assign({},At,gt,{active:Ae&&Ct===Ae.data.key,pos:dt,data:Fe.data,isStart:Ht,isEnd:en,motion:de,motionNodes:Ct===n?ge:null,motionType:xe,onMotionStart:We,onMotionEnd:je,treeNodeRequiredProps:Le,onMouseMove:function(){$e(null)}}))}))},J=e.forwardRef(K);J.displayName="NodeList";var Z=J,Y=t("NvD2"),H=function(G){Object(a.a)(ee,G);var oe=Object(r.a)(ee);function ee(){var X;return Object(m.a)(this,ee),X=oe.apply(this,arguments),X.destroyed=!1,X.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},X.listRef=e.createRef(),X.onNodeDragStart=function(q,se){var ae=X.state,ve=ae.expandedKeys,W=ae.keyEntities,re=X.props.onDragStart,R=se.props.eventKey;X.dragNode=se;var $=Object(y.b)(ve,R);X.setState({dragging:!0,dragNodesKeys:Object(y.g)(R,W)}),X.setExpandedKeys($),re&&re({event:q,node:Object(b.b)(se.props)})},X.onNodeDragEnter=function(q,se){var ae=X.state,ve=ae.expandedKeys,W=ae.keyEntities,re=ae.dragNodesKeys,R=X.props.onDragEnter,$=se.props,fe=$.pos,F=$.eventKey;if(!X.dragNode||re.indexOf(F)!==-1)return;var C=Object(y.c)(q,se);if(X.dragNode.props.eventKey===F&&C===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:F,dropPosition:C}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(S){clearTimeout(X.delayedDragEnterLogic[S])}),X.delayedDragEnterLogic[fe]=window.setTimeout(function(){if(!X.state.dragging)return;var S=Object(p.a)(ve),z=W[F];z&&(z.children||[]).length&&(S=Object(y.a)(ve,F)),"expandedKeys"in X.props||X.setExpandedKeys(S),R&&R({event:q,node:Object(b.b)(se.props),expandedKeys:S})},400)},0)},X.onNodeDragOver=function(q,se){var ae=X.state.dragNodesKeys,ve=X.props.onDragOver,W=se.props.eventKey;if(ae.indexOf(W)!==-1)return;if(X.dragNode&&W===X.state.dragOverNodeKey){var re=Object(y.c)(q,se);if(re===X.state.dropPosition)return;X.setState({dropPosition:re})}ve&&ve({event:q,node:Object(b.b)(se.props)})},X.onNodeDragLeave=function(q,se){var ae=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ae&&ae({event:q,node:Object(b.b)(se.props)})},X.onNodeDragEnd=function(q,se){var ae=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ae&&ae({event:q,node:Object(b.b)(se.props)}),X.dragNode=null},X.onNodeDrop=function(q,se){var ae=X.state,ve=ae.dragNodesKeys,W=ve===void 0?[]:ve,re=ae.dropPosition,R=X.props.onDrop,$=se.props,fe=$.eventKey,F=$.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),W.indexOf(fe)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var C=Object(y.k)(F),S={event:q,node:Object(b.b)(se.props),dragNode:X.dragNode?Object(b.b)(X.dragNode.props):null,dragNodesKeys:W.slice(),dropPosition:re+Number(C[C.length-1]),dropToGap:!1};re!==0&&(S.dropToGap=!0),R&&R(S),X.dragNode=null},X.cleanDragState=function(){var q=X.state.dragging;q&&X.setState({dragging:!1})},X.onNodeClick=function(q,se){var ae=X.props.onClick;ae&&ae(q,se)},X.onNodeDoubleClick=function(q,se){var ae=X.props.onDoubleClick;ae&&ae(q,se)},X.onNodeSelect=function(q,se){var ae=X.state.selectedKeys,ve=X.state.keyEntities,W=X.props,re=W.onSelect,R=W.multiple,$=se.selected,fe=se.key,F=!$;F?R?ae=Object(y.a)(ae,fe):ae=[fe]:ae=Object(y.b)(ae,fe);var C=ae.map(function(S){var z=ve[S];return z?z.node:null}).filter(function(S){return S});X.setUncontrolledState({selectedKeys:ae}),re&&re(ae,{event:"select",selected:F,node:se,selectedNodes:C,nativeEvent:q.nativeEvent})},X.onNodeCheck=function(q,se,ae){var ve=X.state,W=ve.keyEntities,re=ve.checkedKeys,R=ve.halfCheckedKeys,$=X.props,fe=$.checkStrictly,F=$.onCheck,C=se.key,S,z={event:"check",node:se,checked:ae,nativeEvent:q.nativeEvent};if(fe){var te=ae?Object(y.a)(re,C):Object(y.b)(re,C),de=Object(y.b)(R,C);S={checked:te,halfChecked:de},z.checkedNodes=te.map(function(ye){return W[ye]}).filter(function(ye){return ye}).map(function(ye){return ye.node}),X.setUncontrolledState({checkedKeys:te})}else{var he=Object(Y.a)([].concat(Object(p.a)(re),[C]),!0,W),Me=he.checkedKeys,ce=he.halfCheckedKeys;if(!ae){var be=new Set(Me);be.delete(C);var Ae=Object(Y.a)(Array.from(be),{checked:!1,halfCheckedKeys:ce},W);Me=Ae.checkedKeys,ce=Ae.halfCheckedKeys}S=Me,z.checkedNodes=[],z.checkedNodesPositions=[],z.halfCheckedKeys=ce,Me.forEach(function(ye){var ke=W[ye];if(!ke)return;var Se=ke.node,Ne=ke.pos;z.checkedNodes.push(Se),z.checkedNodesPositions.push({node:Se,pos:Ne})}),X.setUncontrolledState({checkedKeys:Me},!1,{halfCheckedKeys:ce})}F&&F(S,z)},X.onNodeLoad=function(q){return new Promise(function(se){X.setState(function(ae){var ve=ae.loadedKeys,W=ve===void 0?[]:ve,re=ae.loadingKeys,R=re===void 0?[]:re,$=X.props,fe=$.loadData,F=$.onLoad,C=q.key;if(!fe||W.indexOf(C)!==-1||R.indexOf(C)!==-1)return{};var S=fe(q);return S.then(function(){var z=X.state,te=z.loadedKeys,de=z.loadingKeys,he=Object(y.a)(te,C),Me=Object(y.b)(de,C);F&&F(he,{event:"load",node:q}),X.setUncontrolledState({loadedKeys:he}),X.setState({loadingKeys:Me}),se()}),{loadingKeys:Object(y.a)(R,C)}})})},X.onNodeMouseEnter=function(q,se){var ae=X.props.onMouseEnter;ae&&ae({event:q,node:se})},X.onNodeMouseLeave=function(q,se){var ae=X.props.onMouseLeave;ae&&ae({event:q,node:se})},X.onNodeContextMenu=function(q,se){var ae=X.props.onRightClick;ae&&(q.preventDefault(),ae({event:q,node:se}))},X.onFocus=function(){var q=X.props.onFocus;X.setState({focused:!0}),q&&q.apply(void 0,arguments)},X.onBlur=function(){var q=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),q&&q.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var q=X.state,se=q.expandedKeys,ae=q.selectedKeys,ve=q.loadedKeys,W=q.loadingKeys,re=q.checkedKeys,R=q.halfCheckedKeys,$=q.dragOverNodeKey,fe=q.dropPosition,F=q.keyEntities;return{expandedKeys:se||[],selectedKeys:ae||[],loadedKeys:ve||[],loadingKeys:W||[],checkedKeys:re||[],halfCheckedKeys:R||[],dragOverNodeKey:$,dropPosition:fe,keyEntities:F}},X.setExpandedKeys=function(q){var se=X.state.treeData,ae=Object(b.d)(se,q);X.setUncontrolledState({expandedKeys:q,flattenNodes:ae},!0)},X.onNodeExpand=function(q,se){var ae=X.state.expandedKeys,ve=X.state.listChanging,W=X.props,re=W.onExpand,R=W.loadData,$=se.key,fe=se.expanded;if(ve)return;var F=ae.indexOf($),C=!fe;if(Object(l.a)(fe&&F!==-1||!fe&&F===-1,"Expand state not sync with index check"),C?ae=Object(y.a)(ae,$):ae=Object(y.b)(ae,$),X.setExpandedKeys(ae),re&&re(ae,{node:se,expanded:C,nativeEvent:q.nativeEvent}),C&&R){var S=X.onNodeLoad(se);S&&S.then(function(){var z=Object(b.d)(X.state.treeData,ae);X.setUncontrolledState({flattenNodes:z})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(q){var se=X.state.activeKey,ae=X.props.onActiveChange;if(se===q)return;X.setState({activeKey:q}),q!==null&&X.scrollTo({key:q}),ae&&ae(q)},X.getActiveItem=function(){var q=X.state,se=q.activeKey,ae=q.flattenNodes;return se===null?null:ae.find(function(ve){var W=ve.data.key;return W===se})||null},X.offsetActiveKey=function(q){var se=X.state,ae=se.flattenNodes,ve=se.activeKey,W=ae.findIndex(function($){var fe=$.data.key;return fe===ve});W===-1&&q<0&&(W=ae.length),W=(W+q+ae.length)%ae.length;var re=ae[W];if(re){var R=re.data.key;X.onActiveChange(R)}else X.onActiveChange(null)},X.onKeyDown=function(q){var se=X.state,ae=se.activeKey,ve=se.expandedKeys,W=se.checkedKeys,re=X.props,R=re.onKeyDown,$=re.checkable,fe=re.selectable;switch(q.which){case i.a.UP:{X.offsetActiveKey(-1),q.preventDefault();break}case i.a.DOWN:{X.offsetActiveKey(1),q.preventDefault();break}}var F=X.getActiveItem();if(F&&F.data){var C=X.getTreeNodeRequiredProps(),S=F.data.isLeaf===!1||!!(F.data.children||[]).length,z=Object(b.b)(Object(f.a)(Object(f.a)({},Object(b.f)(ae,C)),{},{data:F.data,active:!0}));switch(q.which){case i.a.LEFT:{S&&ve.includes(ae)?X.onNodeExpand({},z):F.parent&&X.onActiveChange(F.parent.data.key),q.preventDefault();break}case i.a.RIGHT:{S&&!ve.includes(ae)?X.onNodeExpand({},z):F.children&&F.children.length&&X.onActiveChange(F.children[0].data.key),q.preventDefault();break}case i.a.ENTER:case i.a.SPACE:{$&&!z.disabled&&z.checkable!==!1&&!z.disableCheckbox?X.onNodeCheck({},z,!W.includes(ae)):!$&&fe&&!z.disabled&&z.selectable!==!1&&X.onNodeSelect({},z);break}}}R&&R(q)},X.setUncontrolledState=function(q){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var ve=!1,W=!0,re={};Object.keys(q).forEach(function(R){if(R in X.props){W=!1;return}ve=!0,re[R]=q[R]}),ve&&(!se||W)&&X.setState(Object(f.a)(Object(f.a)({},re),ae))},X.scrollTo=function(q){X.listRef.current.scrollTo(q)},X}return Object(u.a)(ee,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var q,se=this.state,ae=se.focused,ve=se.flattenNodes,W=se.keyEntities,re=se.dragging,R=se.activeKey,$=this.props,fe=$.prefixCls,F=$.className,C=$.style,S=$.showLine,z=$.focusable,te=$.tabIndex,de=te===void 0?0:te,he=$.selectable,Me=$.showIcon,ce=$.icon,be=$.switcherIcon,Ae=$.draggable,ye=$.checkable,ke=$.checkStrictly,Se=$.disabled,Ne=$.motion,Ue=$.loadData,$e=$.filterTreeNode,We=$.height,nt=$.itemHeight,et=$.virtual,Xe=$.titleRender,st=$.onContextMenu,ut=Object(y.f)(this.props);return e.createElement(g.a.Provider,{value:{prefixCls:fe,selectable:he,showIcon:Me,icon:ce,switcherIcon:be,draggable:Ae,checkable:ye,checkStrictly:ke,disabled:Se,keyEntities:W,loadData:Ue,filterTreeNode:$e,titleRender:Xe,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}},e.createElement("div",{className:d()(fe,F,(q={},Object(O.a)(q,"".concat(fe,"-show-line"),S),Object(O.a)(q,"".concat(fe,"-focused"),ae),Object(O.a)(q,"".concat(fe,"-active-focused"),R!==null),q))},e.createElement(Z,Object.assign({ref:this.listRef,prefixCls:fe,style:C,data:ve,disabled:Se,selectable:he,checkable:!!ye,motion:Ne,dragging:re,height:We,itemHeight:nt,virtual:et,focusable:z,focused:ae,tabIndex:de,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:st},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(q,se){var ae=se.prevProps,ve={prevProps:q};function W(ce){return!ae&&ce in q||ae&&ae[ce]!==q[ce]}var re;if(W("treeData")?re=q.treeData:W("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=Object(b.c)(q.children)),re){ve.treeData=re;var R=Object(b.a)(re);ve.keyEntities=Object(f.a)(Object(O.a)({},n,k),R.keyEntities)}var $=ve.keyEntities||se.keyEntities;if(W("expandedKeys")||ae&&W("autoExpandParent"))ve.expandedKeys=q.autoExpandParent||!ae&&q.defaultExpandParent?Object(y.e)(q.expandedKeys,$):q.expandedKeys;else if(!ae&&q.defaultExpandAll){var fe=Object(f.a)({},$);delete fe[n],ve.expandedKeys=Object.keys(fe).map(function(ce){return fe[ce].key})}else!ae&&q.defaultExpandedKeys&&(ve.expandedKeys=q.autoExpandParent||q.defaultExpandParent?Object(y.e)(q.defaultExpandedKeys,$):q.defaultExpandedKeys);if(ve.expandedKeys||delete ve.expandedKeys,re||ve.expandedKeys){var F=Object(b.d)(re||se.treeData,ve.expandedKeys||se.expandedKeys);ve.flattenNodes=F}if(q.selectable&&(W("selectedKeys")?ve.selectedKeys=Object(y.d)(q.selectedKeys,q):!ae&&q.defaultSelectedKeys&&(ve.selectedKeys=Object(y.d)(q.defaultSelectedKeys,q))),q.checkable){var C;if(W("checkedKeys")?C=Object(y.j)(q.checkedKeys)||{}:!ae&&q.defaultCheckedKeys?C=Object(y.j)(q.defaultCheckedKeys)||{}:re&&(C=Object(y.j)(q.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),C){var S=C,z=S.checkedKeys,te=z===void 0?[]:z,de=S.halfCheckedKeys,he=de===void 0?[]:de;if(!q.checkStrictly){var Me=Object(Y.a)(te,!0,$);te=Me.checkedKeys,he=Me.halfCheckedKeys}ve.checkedKeys=te,ve.halfCheckedKeys=he}}return W("loadedKeys")&&(ve.loadedKeys=q.loadedKeys),ve}}]),ee}(e.Component);H.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:[]},H.TreeNode=E.a;var x=H,V=w.b=x},fW2E:function(ie,w){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(f,p,m){return t.hasOwnProperty(p)?m*=f.dpr:m}ie.exports=O},gut8:function(ie,w){var t={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;w.ContextCachedBy=t,w.WILL_BE_RESTORED=O},h78n:function(ie,w,t){"use strict";t.d(w,"a",function(){return A});var O=t("q1tI"),f=t.n(O),p=t("TSYQ"),m=t.n(p),u={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(K){var J=K.map(function(){return Object(O.useRef)()}),Z=Object(O.useRef)();return Object(O.useEffect)(function(){var Y=Date.now(),H=!1;Object.keys(J).forEach(function(x){var V=J[x].current;if(!V)return;H=!0;var G=V.style;G.transitionDuration=".3s, .3s, .3s, .06s",Z.current&&Y-Z.current<100&&(G.transitionDuration="0s, 0s")}),H&&(Z.current=Date.now())}),[J]};function r(){return r=Object.assign||function(_){for(var K=1;K_.length)&&(K=_.length);for(var J=0,Z=new Array(K);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,Z))continue;J[Z]=_[Z]}}return J}function b(_,K){if(_==null)return{};var J={},Z=Object.keys(_),Y,H;for(H=0;H=0)continue;J[Y]=_[Y]}return J}var D=function(K){var J=K.className,Z=K.percent,Y=K.prefixCls,H=K.strokeColor,x=K.strokeLinecap,V=K.strokeWidth,G=K.style,oe=K.trailColor,ee=K.trailWidth,X=K.transition,q=y(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete q.gapPosition;var se=Array.isArray(Z)?Z:[Z],ae=Array.isArray(H)?H:[H],ve=a(se),W=e(ve,1),re=W[0],R=V/2,$=100-V/2,fe="M ".concat(x==="round"?R:0,",").concat(R,` - L `).concat(x==="round"?$:100,",").concat(R),F="0 0 100 ".concat(V),C=0;return f.a.createElement("svg",r({className:m()("".concat(Y,"-line"),J),viewBox:F,preserveAspectRatio:"none",style:G},q),f.a.createElement("path",{className:"".concat(Y,"-line-trail"),d:fe,strokeLinecap:x,stroke:oe,strokeWidth:ee||V,fillOpacity:"0"}),se.map(function(S,z){var te={strokeDasharray:"".concat(S,"px, 100px"),strokeDashoffset:"-".concat(C,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},de=ae[z]||ae[ae.length-1];return C+=S,f.a.createElement("path",{key:z,className:"".concat(Y,"-line-path"),d:fe,strokeLinecap:x,stroke:de,strokeWidth:V,fillOpacity:"0",ref:re[z],style:te})}))};D.defaultProps=u;var P=D;function I(){return I=Object.assign||function(_){for(var K=1;K_.length)&&(K=_.length);for(var J=0,Z=new Array(K);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,Z))continue;J[Z]=_[Z]}}return J}function c(_,K){if(_==null)return{};var J={},Z=Object.keys(_),Y,H;for(H=0;H=0)continue;J[Y]=_[Y]}return J}var o=0;function n(_){return+_.replace("%","")}function B(_){return Array.isArray(_)?_:[_]}function k(_,K,J,Z){var Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,x=50-Z/2,V=0,G=-x,oe=0,ee=-2*x;switch(H){case"left":V=-x,G=0,oe=2*x,ee=0;break;case"right":V=x,G=0,oe=-2*x,ee=0;break;case"bottom":G=x,ee=2*x;break;default:}var X="M 50,50 m ".concat(V,",").concat(G,` +*/var i=!f.canvasSupported,l={canvas:a},s={},d="4.3.1";function g(v,E){var h=new I(O(),v,E);return s[h.id]=h,h}function y(v){if(v)v.dispose();else{for(var E in s)s.hasOwnProperty(E)&&s[E].dispose();s={}}return this}function b(v){return s[v]}function T(v,E){l[v]=E}function P(v){delete s[v]}var I=function(v,E,h){h=h||{},this.dom=E,this.id=v;var D=this,j=new u,Q=h.renderer;if(i){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");Q="vml"}else(!Q||!l[Q])&&(Q="canvas");var M=new l[Q](E,j,h,v);this.storage=j,this.painter=M;var c=!f.node&&!f.worker?new e(M.getViewportRoot(),M.root):null;this.handler=new m(j,M,c,M.root),this.animation=new r({stage:{update:p.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var o=j.delFromStorage,n=j.addToStorage;j.delFromStorage=function(B){o.call(j,B),B&&B.removeSelfFromZr(D)},j.addToStorage=function(B){n.call(j,B),B.addSelfToZr(D)}};I.prototype={constructor:I,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,E){this.painter.configLayer&&this.painter.configLayer(v,E),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,E){if(this.painter.addHover){var h=this.painter.addHover(v,E);return this.refreshHover(),h}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,E){return this.painter.pathToImage(v,E)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,E){return this.handler.findHover(v,E)},on:function(v,E,h){this.handler.on(v,E,h)},off:function(v,E){this.handler.off(v,E)},trigger:function(v,E){this.handler.trigger(v,E)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,P(this.id)}},w.version=d,w.init=g,w.dispose=y,w.getInstance=b,w.registerPainter=T},aZ40:function(ie,w,t){var O=t("Wogr"),f=O.alloc(512),p=O.alloc(256);(function(){for(var u=1,a=0;a<255;a++)f[a]=u,p[u]=a,u<<=1,u&256&&(u^=285);for(a=255;a<512;a++)f[a]=f[a-255]})(),w.log=function(u){if(u<1)throw new Error("log("+u+")");return p[u]},w.exp=function(u){return f[u]},w.mul=function(u,a){return u===0||a===0?0:f[p[u]+p[a]]}},bT9E:function(ie,w,t){"use strict";t.d(w,"a",function(){return f});var O=t("VTBJ");function f(p,m){var u=Object(O.a)({},p);return Array.isArray(m)&&m.forEach(function(a){delete u[a]}),u}},bYtY:function(ie,w){var t={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,p=Array.prototype,m=p.forEach,u=p.filter,a=p.slice,r=p.map,e=p.reduce,i={};function l(R,$){R==="createCanvas"&&(P=null),i[R]=$}function s(R){if(R==null||typeof R!="object")return R;var $=R,fe=f.call(R);if(fe==="[object Array]"){if(!se(R)){$=[];for(var F=0,C=R.length;F40)throw new Error('"version" should be in range from 1 to 40');return p*4+17},w.getSymbolTotalCodewords=function(p){return O[p]},w.getBCHDigit=function(f){for(var p=0;f!==0;)p++,f>>>=1;return p},w.setToSJISFunction=function(p){if(typeof p!="function")throw new Error('"toSJISFunc" is not a valid function.');t=p},w.isKanjiModeEnabled=function(){return typeof t!="undefined"},w.toSJIS=function(p){return t(p)}},e6BP:function(ie,w){function t(){this.buffer=[],this.length=0}t.prototype={get:function(O){var f=Math.floor(O/8);return(this.buffer[f]>>>7-O%8&1)===1},put:function(O,f){for(var p=0;p>>f-p-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(O){var f=Math.floor(this.length/8);this.buffer.length<=f&&this.buffer.push(0),O&&(this.buffer[f]|=128>>>this.length%8),this.length++}},ie.exports=t},eQOe:function(ie,w){w.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};w.isValid=function(p){return p!=null&&p!==""&&!isNaN(p)&&p>=0&&p<=7},w.from=function(p){return w.isValid(p)?parseInt(p,10):void 0},w.getPenaltyN1=function(p){for(var m=p.size,u=0,a=0,r=0,e=null,i=null,l=0;l=5&&(u+=t.N1+(a-5)),e=d,a=1),d=p.get(s,l),d===i?r++:(r>=5&&(u+=t.N1+(r-5)),i=d,r=1)}a>=5&&(u+=t.N1+(a-5)),r>=5&&(u+=t.N1+(r-5))}return u},w.getPenaltyN2=function(p){for(var m=p.size,u=0,a=0;a=10&&(a===1488||a===93)&&u++,r=r<<1&2047|p.get(i,e),i>=10&&(r===1488||r===93)&&u++}return u*t.N3},w.getPenaltyN4=function(p){for(var m=0,u=p.data.length,a=0;a=0&&f.bit<4},w.from=function(f,p){if(w.isValid(f))return f;try{return t(f)}catch(m){return p}}},fAei:function(ie,w,t){"use strict";t.d(w,"a",function(){return E.a});var O=t("rePB"),f=t("VTBJ"),p=t("KQm4"),m=t("1OyB"),u=t("vuIU"),a=t("Ji7U"),r=t("LK+K"),e=t("q1tI"),i=t("4IlW"),l=t("Kwbf"),s=t("TSYQ"),d=t.n(s),g=t("sboe"),y=t("OZM5"),b=t("815F"),T=t("ODXe"),P=t("Ff2n"),I=t("+nKL"),v=t("8XRh"),E=t("WaYH"),h=function(oe,ee){var X=oe.className,q=oe.style,se=oe.motion,ae=oe.motionNodes,ve=oe.motionType,W=oe.onMotionStart,re=oe.onMotionEnd,R=oe.active,$=oe.treeNodeRequiredProps,fe=Object(P.a)(oe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),F=e.useState(!0),C=Object(T.a)(F,2),S=C[0],z=C[1],te=e.useContext(g.a),de=te.prefixCls,he=e.useRef(!1),Me=function(){he.current||re(),he.current=!0};return Object(e.useEffect)(function(){ae&&ve==="hide"&&S&&z(!1)},[ae]),Object(e.useEffect)(function(){return ae&&W(),function(){ae&&Me()}},[]),ae?e.createElement(v.default,Object.assign({ref:ee,visible:S},se,{motionAppear:ve==="show",onAppearEnd:Me,onLeaveEnd:Me}),function(ce,be){var Ae=ce.className,ye=ce.style;return e.createElement("div",{ref:be,className:d()("".concat(de,"-treenode-motion"),Ae),style:ye},ae.map(function(ke){var Se=ke.data,Ne=Se.key,Ue=Object(P.a)(Se,["key"]),$e=ke.isStart,We=ke.isEnd;delete Ue.children;var nt=Object(b.f)(Ne,$);return e.createElement(E.a,Object.assign({},Ue,nt,{active:R,data:ke.data,key:Ne,isStart:$e,isEnd:We}))}))}):e.createElement(E.a,Object.assign({domRef:ee,className:X,style:q},fe,{active:R}))};h.displayName="MotionTreeNode";var D=e.forwardRef(h),j=D;function Q(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ee=G.length,X=oe.length;if(Math.abs(ee-X)!==1)return{add:!1,key:null};function q(se,ae){var ve=new Map;se.forEach(function(re){ve.set(re,!0)});var W=ae.filter(function(re){return!ve.has(re)});return W.length===1?W[0]:null}return ee ").concat(oe);return oe}var K=function(oe,ee){var X=oe.prefixCls,q=oe.data,se=oe.selectable,ae=oe.checkable,ve=oe.expandedKeys,W=oe.selectedKeys,re=oe.checkedKeys,R=oe.loadedKeys,$=oe.loadingKeys,fe=oe.halfCheckedKeys,F=oe.keyEntities,C=oe.disabled,S=oe.dragging,z=oe.dragOverNodeKey,te=oe.dropPosition,de=oe.motion,he=oe.height,Me=oe.itemHeight,ce=oe.virtual,be=oe.focusable,Ae=oe.activeItem,ye=oe.focused,ke=oe.tabIndex,Se=oe.onKeyDown,Ne=oe.onFocus,Ue=oe.onBlur,$e=oe.onActiveChange,We=oe.onListChangeStart,nt=oe.onListChangeEnd,et=Object(P.a)(oe,["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"]),Xe=e.useRef(null);e.useImperativeHandle(ee,function(){return{scrollTo:function(dt){Xe.current.scrollTo(dt)}}});var st=e.useState(ve),ut=Object(T.a)(st,2),ct=ut[0],Ze=ut[1],bt=e.useState(q),lt=Object(T.a)(bt,2),Et=lt[0],jt=lt[1],Qt=e.useState(q),Gt=Object(T.a)(Qt,2),rn=Gt[0],ze=Gt[1],Ce=e.useState([]),Oe=Object(T.a)(Ce,2),ge=Oe[0],ne=Oe[1],le=e.useState(null),we=Object(T.a)(le,2),xe=we[0],Re=we[1];function je(){jt(q),ze(q),ne([]),Re(null),nt()}e.useEffect(function(){Ze(ve);var Fe=Q(ct,ve);if(Fe.key!==null)if(Fe.add){var dt=Et.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),tt=A(M(Et,q,Fe.key),ce,he,Me),Ct=Et.slice();Ct.splice(dt+1,0,N),ze(Ct),ne(tt),Re("show")}else{var At=q.findIndex(function(Ge){var gt=Ge.data.key;return gt===Fe.key}),Ht=A(M(q,Et,Fe.key),ce,he,Me),en=q.slice();en.splice(At+1,0,N),ze(en),ne(Ht),Re("hide")}else Et!==q&&(jt(q),ze(q))},[ve,q]),e.useEffect(function(){S||je()},[S]);var Te=de?rn:q,Le={expandedKeys:ve,selectedKeys:W,loadedKeys:R,loadingKeys:$,checkedKeys:re,halfCheckedKeys:fe,dragOverNodeKey:z,dropPosition:te,keyEntities:F};return e.createElement(e.Fragment,null,ye&&Ae&&e.createElement("span",{style:c,"aria-live":"assertive"},_(Ae)),e.createElement("div",{role:"tree"},e.createElement("input",{style:c,disabled:be===!1||C,tabIndex:be!==!1?ke:null,onKeyDown:Se,onFocus:Ne,onBlur:Ue,value:"",onChange:o})),e.createElement(I.a,Object.assign({},et,{data:Te,itemKey:U,height:he,fullHeight:!1,virtual:ce,itemHeight:Me,prefixCls:"".concat(X,"-list"),ref:Xe}),function(Fe){var dt=Fe.pos,tt=Fe.data,Ct=tt.key,At=Object(P.a)(tt,["key"]),Ht=Fe.isStart,en=Fe.isEnd,Ge=Object(b.e)(Ct,dt);delete At.children;var gt=Object(b.f)(Ge,Le);return e.createElement(j,Object.assign({},At,gt,{active:Ae&&Ct===Ae.data.key,pos:dt,data:Fe.data,isStart:Ht,isEnd:en,motion:de,motionNodes:Ct===n?ge:null,motionType:xe,onMotionStart:We,onMotionEnd:je,treeNodeRequiredProps:Le,onMouseMove:function(){$e(null)}}))}))},J=e.forwardRef(K);J.displayName="NodeList";var Z=J,Y=t("NvD2"),H=function(G){Object(a.a)(ee,G);var oe=Object(r.a)(ee);function ee(){var X;return Object(m.a)(this,ee),X=oe.apply(this,arguments),X.destroyed=!1,X.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},X.listRef=e.createRef(),X.onNodeDragStart=function(q,se){var ae=X.state,ve=ae.expandedKeys,W=ae.keyEntities,re=X.props.onDragStart,R=se.props.eventKey;X.dragNode=se;var $=Object(y.b)(ve,R);X.setState({dragging:!0,dragNodesKeys:Object(y.g)(R,W)}),X.setExpandedKeys($),re&&re({event:q,node:Object(b.b)(se.props)})},X.onNodeDragEnter=function(q,se){var ae=X.state,ve=ae.expandedKeys,W=ae.keyEntities,re=ae.dragNodesKeys,R=X.props.onDragEnter,$=se.props,fe=$.pos,F=$.eventKey;if(!X.dragNode||re.indexOf(F)!==-1)return;var C=Object(y.c)(q,se);if(X.dragNode.props.eventKey===F&&C===0){X.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){X.setState({dragOverNodeKey:F,dropPosition:C}),X.delayedDragEnterLogic||(X.delayedDragEnterLogic={}),Object.keys(X.delayedDragEnterLogic).forEach(function(S){clearTimeout(X.delayedDragEnterLogic[S])}),X.delayedDragEnterLogic[fe]=window.setTimeout(function(){if(!X.state.dragging)return;var S=Object(p.a)(ve),z=W[F];z&&(z.children||[]).length&&(S=Object(y.a)(ve,F)),"expandedKeys"in X.props||X.setExpandedKeys(S),R&&R({event:q,node:Object(b.b)(se.props),expandedKeys:S})},400)},0)},X.onNodeDragOver=function(q,se){var ae=X.state.dragNodesKeys,ve=X.props.onDragOver,W=se.props.eventKey;if(ae.indexOf(W)!==-1)return;if(X.dragNode&&W===X.state.dragOverNodeKey){var re=Object(y.c)(q,se);if(re===X.state.dropPosition)return;X.setState({dropPosition:re})}ve&&ve({event:q,node:Object(b.b)(se.props)})},X.onNodeDragLeave=function(q,se){var ae=X.props.onDragLeave;X.setState({dragOverNodeKey:""}),ae&&ae({event:q,node:Object(b.b)(se.props)})},X.onNodeDragEnd=function(q,se){var ae=X.props.onDragEnd;X.setState({dragOverNodeKey:""}),X.cleanDragState(),ae&&ae({event:q,node:Object(b.b)(se.props)}),X.dragNode=null},X.onNodeDrop=function(q,se){var ae=X.state,ve=ae.dragNodesKeys,W=ve===void 0?[]:ve,re=ae.dropPosition,R=X.props.onDrop,$=se.props,fe=$.eventKey,F=$.pos;if(X.setState({dragOverNodeKey:""}),X.cleanDragState(),W.indexOf(fe)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var C=Object(y.k)(F),S={event:q,node:Object(b.b)(se.props),dragNode:X.dragNode?Object(b.b)(X.dragNode.props):null,dragNodesKeys:W.slice(),dropPosition:re+Number(C[C.length-1]),dropToGap:!1};re!==0&&(S.dropToGap=!0),R&&R(S),X.dragNode=null},X.cleanDragState=function(){var q=X.state.dragging;q&&X.setState({dragging:!1})},X.onNodeClick=function(q,se){var ae=X.props.onClick;ae&&ae(q,se)},X.onNodeDoubleClick=function(q,se){var ae=X.props.onDoubleClick;ae&&ae(q,se)},X.onNodeSelect=function(q,se){var ae=X.state.selectedKeys,ve=X.state.keyEntities,W=X.props,re=W.onSelect,R=W.multiple,$=se.selected,fe=se.key,F=!$;F?R?ae=Object(y.a)(ae,fe):ae=[fe]:ae=Object(y.b)(ae,fe);var C=ae.map(function(S){var z=ve[S];return z?z.node:null}).filter(function(S){return S});X.setUncontrolledState({selectedKeys:ae}),re&&re(ae,{event:"select",selected:F,node:se,selectedNodes:C,nativeEvent:q.nativeEvent})},X.onNodeCheck=function(q,se,ae){var ve=X.state,W=ve.keyEntities,re=ve.checkedKeys,R=ve.halfCheckedKeys,$=X.props,fe=$.checkStrictly,F=$.onCheck,C=se.key,S,z={event:"check",node:se,checked:ae,nativeEvent:q.nativeEvent};if(fe){var te=ae?Object(y.a)(re,C):Object(y.b)(re,C),de=Object(y.b)(R,C);S={checked:te,halfChecked:de},z.checkedNodes=te.map(function(ye){return W[ye]}).filter(function(ye){return ye}).map(function(ye){return ye.node}),X.setUncontrolledState({checkedKeys:te})}else{var he=Object(Y.a)([].concat(Object(p.a)(re),[C]),!0,W),Me=he.checkedKeys,ce=he.halfCheckedKeys;if(!ae){var be=new Set(Me);be.delete(C);var Ae=Object(Y.a)(Array.from(be),{checked:!1,halfCheckedKeys:ce},W);Me=Ae.checkedKeys,ce=Ae.halfCheckedKeys}S=Me,z.checkedNodes=[],z.checkedNodesPositions=[],z.halfCheckedKeys=ce,Me.forEach(function(ye){var ke=W[ye];if(!ke)return;var Se=ke.node,Ne=ke.pos;z.checkedNodes.push(Se),z.checkedNodesPositions.push({node:Se,pos:Ne})}),X.setUncontrolledState({checkedKeys:Me},!1,{halfCheckedKeys:ce})}F&&F(S,z)},X.onNodeLoad=function(q){return new Promise(function(se){X.setState(function(ae){var ve=ae.loadedKeys,W=ve===void 0?[]:ve,re=ae.loadingKeys,R=re===void 0?[]:re,$=X.props,fe=$.loadData,F=$.onLoad,C=q.key;if(!fe||W.indexOf(C)!==-1||R.indexOf(C)!==-1)return{};var S=fe(q);return S.then(function(){var z=X.state,te=z.loadedKeys,de=z.loadingKeys,he=Object(y.a)(te,C),Me=Object(y.b)(de,C);F&&F(he,{event:"load",node:q}),X.setUncontrolledState({loadedKeys:he}),X.setState({loadingKeys:Me}),se()}),{loadingKeys:Object(y.a)(R,C)}})})},X.onNodeMouseEnter=function(q,se){var ae=X.props.onMouseEnter;ae&&ae({event:q,node:se})},X.onNodeMouseLeave=function(q,se){var ae=X.props.onMouseLeave;ae&&ae({event:q,node:se})},X.onNodeContextMenu=function(q,se){var ae=X.props.onRightClick;ae&&(q.preventDefault(),ae({event:q,node:se}))},X.onFocus=function(){var q=X.props.onFocus;X.setState({focused:!0}),q&&q.apply(void 0,arguments)},X.onBlur=function(){var q=X.props.onBlur;X.setState({focused:!1}),X.onActiveChange(null),q&&q.apply(void 0,arguments)},X.getTreeNodeRequiredProps=function(){var q=X.state,se=q.expandedKeys,ae=q.selectedKeys,ve=q.loadedKeys,W=q.loadingKeys,re=q.checkedKeys,R=q.halfCheckedKeys,$=q.dragOverNodeKey,fe=q.dropPosition,F=q.keyEntities;return{expandedKeys:se||[],selectedKeys:ae||[],loadedKeys:ve||[],loadingKeys:W||[],checkedKeys:re||[],halfCheckedKeys:R||[],dragOverNodeKey:$,dropPosition:fe,keyEntities:F}},X.setExpandedKeys=function(q){var se=X.state.treeData,ae=Object(b.d)(se,q);X.setUncontrolledState({expandedKeys:q,flattenNodes:ae},!0)},X.onNodeExpand=function(q,se){var ae=X.state.expandedKeys,ve=X.state.listChanging,W=X.props,re=W.onExpand,R=W.loadData,$=se.key,fe=se.expanded;if(ve)return;var F=ae.indexOf($),C=!fe;if(Object(l.a)(fe&&F!==-1||!fe&&F===-1,"Expand state not sync with index check"),C?ae=Object(y.a)(ae,$):ae=Object(y.b)(ae,$),X.setExpandedKeys(ae),re&&re(ae,{node:se,expanded:C,nativeEvent:q.nativeEvent}),C&&R){var S=X.onNodeLoad(se);S&&S.then(function(){var z=Object(b.d)(X.state.treeData,ae);X.setUncontrolledState({flattenNodes:z})})}},X.onListChangeStart=function(){X.setUncontrolledState({listChanging:!0})},X.onListChangeEnd=function(){setTimeout(function(){X.setUncontrolledState({listChanging:!1})})},X.onActiveChange=function(q){var se=X.state.activeKey,ae=X.props.onActiveChange;if(se===q)return;X.setState({activeKey:q}),q!==null&&X.scrollTo({key:q}),ae&&ae(q)},X.getActiveItem=function(){var q=X.state,se=q.activeKey,ae=q.flattenNodes;return se===null?null:ae.find(function(ve){var W=ve.data.key;return W===se})||null},X.offsetActiveKey=function(q){var se=X.state,ae=se.flattenNodes,ve=se.activeKey,W=ae.findIndex(function($){var fe=$.data.key;return fe===ve});W===-1&&q<0&&(W=ae.length),W=(W+q+ae.length)%ae.length;var re=ae[W];if(re){var R=re.data.key;X.onActiveChange(R)}else X.onActiveChange(null)},X.onKeyDown=function(q){var se=X.state,ae=se.activeKey,ve=se.expandedKeys,W=se.checkedKeys,re=X.props,R=re.onKeyDown,$=re.checkable,fe=re.selectable;switch(q.which){case i.a.UP:{X.offsetActiveKey(-1),q.preventDefault();break}case i.a.DOWN:{X.offsetActiveKey(1),q.preventDefault();break}}var F=X.getActiveItem();if(F&&F.data){var C=X.getTreeNodeRequiredProps(),S=F.data.isLeaf===!1||!!(F.data.children||[]).length,z=Object(b.b)(Object(f.a)(Object(f.a)({},Object(b.f)(ae,C)),{},{data:F.data,active:!0}));switch(q.which){case i.a.LEFT:{S&&ve.includes(ae)?X.onNodeExpand({},z):F.parent&&X.onActiveChange(F.parent.data.key),q.preventDefault();break}case i.a.RIGHT:{S&&!ve.includes(ae)?X.onNodeExpand({},z):F.children&&F.children.length&&X.onActiveChange(F.children[0].data.key),q.preventDefault();break}case i.a.ENTER:case i.a.SPACE:{$&&!z.disabled&&z.checkable!==!1&&!z.disableCheckbox?X.onNodeCheck({},z,!W.includes(ae)):!$&&fe&&!z.disabled&&z.selectable!==!1&&X.onNodeSelect({},z);break}}}R&&R(q)},X.setUncontrolledState=function(q){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(X.destroyed)return;var ve=!1,W=!0,re={};Object.keys(q).forEach(function(R){if(R in X.props){W=!1;return}ve=!0,re[R]=q[R]}),ve&&(!se||W)&&X.setState(Object(f.a)(Object(f.a)({},re),ae))},X.scrollTo=function(q){X.listRef.current.scrollTo(q)},X}return Object(u.a)(ee,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var q,se=this.state,ae=se.focused,ve=se.flattenNodes,W=se.keyEntities,re=se.dragging,R=se.activeKey,$=this.props,fe=$.prefixCls,F=$.className,C=$.style,S=$.showLine,z=$.focusable,te=$.tabIndex,de=te===void 0?0:te,he=$.selectable,Me=$.showIcon,ce=$.icon,be=$.switcherIcon,Ae=$.draggable,ye=$.checkable,ke=$.checkStrictly,Se=$.disabled,Ne=$.motion,Ue=$.loadData,$e=$.filterTreeNode,We=$.height,nt=$.itemHeight,et=$.virtual,Xe=$.titleRender,st=$.onContextMenu,ut=Object(y.f)(this.props);return e.createElement(g.a.Provider,{value:{prefixCls:fe,selectable:he,showIcon:Me,icon:ce,switcherIcon:be,draggable:Ae,checkable:ye,checkStrictly:ke,disabled:Se,keyEntities:W,loadData:Ue,filterTreeNode:$e,titleRender:Xe,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}},e.createElement("div",{className:d()(fe,F,(q={},Object(O.a)(q,"".concat(fe,"-show-line"),S),Object(O.a)(q,"".concat(fe,"-focused"),ae),Object(O.a)(q,"".concat(fe,"-active-focused"),R!==null),q))},e.createElement(Z,Object.assign({ref:this.listRef,prefixCls:fe,style:C,data:ve,disabled:Se,selectable:he,checkable:!!ye,motion:Ne,dragging:re,height:We,itemHeight:nt,virtual:et,focusable:z,focused:ae,tabIndex:de,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:st},this.getTreeNodeRequiredProps(),ut))))}}],[{key:"getDerivedStateFromProps",value:function(q,se){var ae=se.prevProps,ve={prevProps:q};function W(ce){return!ae&&ce in q||ae&&ae[ce]!==q[ce]}var re;if(W("treeData")?re=q.treeData:W("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=Object(b.c)(q.children)),re){ve.treeData=re;var R=Object(b.a)(re);ve.keyEntities=Object(f.a)(Object(O.a)({},n,k),R.keyEntities)}var $=ve.keyEntities||se.keyEntities;if(W("expandedKeys")||ae&&W("autoExpandParent"))ve.expandedKeys=q.autoExpandParent||!ae&&q.defaultExpandParent?Object(y.e)(q.expandedKeys,$):q.expandedKeys;else if(!ae&&q.defaultExpandAll){var fe=Object(f.a)({},$);delete fe[n],ve.expandedKeys=Object.keys(fe).map(function(ce){return fe[ce].key})}else!ae&&q.defaultExpandedKeys&&(ve.expandedKeys=q.autoExpandParent||q.defaultExpandParent?Object(y.e)(q.defaultExpandedKeys,$):q.defaultExpandedKeys);if(ve.expandedKeys||delete ve.expandedKeys,re||ve.expandedKeys){var F=Object(b.d)(re||se.treeData,ve.expandedKeys||se.expandedKeys);ve.flattenNodes=F}if(q.selectable&&(W("selectedKeys")?ve.selectedKeys=Object(y.d)(q.selectedKeys,q):!ae&&q.defaultSelectedKeys&&(ve.selectedKeys=Object(y.d)(q.defaultSelectedKeys,q))),q.checkable){var C;if(W("checkedKeys")?C=Object(y.j)(q.checkedKeys)||{}:!ae&&q.defaultCheckedKeys?C=Object(y.j)(q.defaultCheckedKeys)||{}:re&&(C=Object(y.j)(q.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),C){var S=C,z=S.checkedKeys,te=z===void 0?[]:z,de=S.halfCheckedKeys,he=de===void 0?[]:de;if(!q.checkStrictly){var Me=Object(Y.a)(te,!0,$);te=Me.checkedKeys,he=Me.halfCheckedKeys}ve.checkedKeys=te,ve.halfCheckedKeys=he}}return W("loadedKeys")&&(ve.loadedKeys=q.loadedKeys),ve}}]),ee}(e.Component);H.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:[]},H.TreeNode=E.a;var x=H,V=w.b=x},fW2E:function(ie,w){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(f,p,m){return t.hasOwnProperty(p)?m*=f.dpr:m}ie.exports=O},gut8:function(ie,w){var t={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;w.ContextCachedBy=t,w.WILL_BE_RESTORED=O},h78n:function(ie,w,t){"use strict";t.d(w,"a",function(){return A});var O=t("q1tI"),f=t.n(O),p=t("TSYQ"),m=t.n(p),u={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(K){var J=K.map(function(){return Object(O.useRef)()}),Z=Object(O.useRef)();return Object(O.useEffect)(function(){var Y=Date.now(),H=!1;Object.keys(J).forEach(function(x){var V=J[x].current;if(!V)return;H=!0;var G=V.style;G.transitionDuration=".3s, .3s, .3s, .06s",Z.current&&Y-Z.current<100&&(G.transitionDuration="0s, 0s")}),H&&(Z.current=Date.now())}),[J]};function r(){return r=Object.assign||function(_){for(var K=1;K_.length)&&(K=_.length);for(var J=0,Z=new Array(K);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,Z))continue;J[Z]=_[Z]}}return J}function b(_,K){if(_==null)return{};var J={},Z=Object.keys(_),Y,H;for(H=0;H=0)continue;J[Y]=_[Y]}return J}var T=function(K){var J=K.className,Z=K.percent,Y=K.prefixCls,H=K.strokeColor,x=K.strokeLinecap,V=K.strokeWidth,G=K.style,oe=K.trailColor,ee=K.trailWidth,X=K.transition,q=y(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete q.gapPosition;var se=Array.isArray(Z)?Z:[Z],ae=Array.isArray(H)?H:[H],ve=a(se),W=e(ve,1),re=W[0],R=V/2,$=100-V/2,fe="M ".concat(x==="round"?R:0,",").concat(R,` + L `).concat(x==="round"?$:100,",").concat(R),F="0 0 100 ".concat(V),C=0;return f.a.createElement("svg",r({className:m()("".concat(Y,"-line"),J),viewBox:F,preserveAspectRatio:"none",style:G},q),f.a.createElement("path",{className:"".concat(Y,"-line-trail"),d:fe,strokeLinecap:x,stroke:oe,strokeWidth:ee||V,fillOpacity:"0"}),se.map(function(S,z){var te={strokeDasharray:"".concat(S,"px, 100px"),strokeDashoffset:"-".concat(C,"px"),transition:X||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},de=ae[z]||ae[ae.length-1];return C+=S,f.a.createElement("path",{key:z,className:"".concat(Y,"-line-path"),d:fe,strokeLinecap:x,stroke:de,strokeWidth:V,fillOpacity:"0",ref:re[z],style:te})}))};T.defaultProps=u;var P=T;function I(){return I=Object.assign||function(_){for(var K=1;K_.length)&&(K=_.length);for(var J=0,Z=new Array(K);J=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,Z))continue;J[Z]=_[Z]}}return J}function c(_,K){if(_==null)return{};var J={},Z=Object.keys(_),Y,H;for(H=0;H=0)continue;J[Y]=_[Y]}return J}var o=0;function n(_){return+_.replace("%","")}function B(_){return Array.isArray(_)?_:[_]}function k(_,K,J,Z){var Y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,x=50-Z/2,V=0,G=-x,oe=0,ee=-2*x;switch(H){case"left":V=-x,G=0,oe=2*x,ee=0;break;case"right":V=x,G=0,oe=-2*x,ee=0;break;case"bottom":G=x,ee=2*x;break;default:}var X="M 50,50 m ".concat(V,",").concat(G,` a `).concat(x,",").concat(x," 0 1 1 ").concat(oe,",").concat(-ee,` - a `).concat(x,",").concat(x," 0 1 1 ").concat(-oe,",").concat(ee),q=Math.PI*2*x,se={stroke:J,strokeDasharray:"".concat(K/100*(q-Y),"px ").concat(q,"px"),strokeDashoffset:"-".concat(Y/2+_/100*(q-Y),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:X,pathStyle:se}}var N=function(K){var J=K.prefixCls,Z=K.strokeWidth,Y=K.trailWidth,H=K.gapDegree,x=K.gapPosition,V=K.trailColor,G=K.strokeLinecap,oe=K.style,ee=K.className,X=K.strokeColor,q=K.percent,se=M(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ae=Object(O.useMemo)(function(){return o+=1,o},[]),ve=k(0,100,V,Z,H,x),W=ve.pathString,re=ve.pathStyle,R=B(q),$=B(X),fe=$.find(function(te){return Object.prototype.toString.call(te)==="[object Object]"}),F=a(R),C=v(F,1),S=C[0],z=function(){var de=0;return R.map(function(he,Me){var ce=$[Me]||$[$.length-1],be=Object.prototype.toString.call(ce)==="[object Object]"?"url(#".concat(J,"-gradient-").concat(ae,")"):"",Ae=k(de,he,ce,Z,H,x);return de+=he,f.a.createElement("path",{key:Me,className:"".concat(J,"-circle-path"),d:Ae.pathString,stroke:be,strokeLinecap:G,strokeWidth:Z,opacity:he===0?0:1,fillOpacity:"0",style:Ae.pathStyle,ref:S[Me]})})};return f.a.createElement("svg",I({className:m()("".concat(J,"-circle"),ee),viewBox:"0 0 100 100",style:oe},se),fe&&f.a.createElement("defs",null,f.a.createElement("linearGradient",{id:"".concat(J,"-gradient-").concat(ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(fe).sort(function(te,de){return n(te)-n(de)}).map(function(te,de){return f.a.createElement("stop",{key:de,offset:te,stopColor:fe[te]})}))),f.a.createElement("path",{className:"".concat(J,"-circle-trail"),d:W,stroke:V,strokeLinecap:G,strokeWidth:Y||Z,fillOpacity:"0",style:re}),z().reverse())};N.defaultProps=u;var A=N,U={Line:P,Circle:A}},h7HQ:function(ie,w,t){var O=t("y+Vt"),f=t("T6xi"),p=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,u){f.buildPath(m,u,!0)}});ie.exports=p},hOwI:function(ie,w){var t=Math.log(2);function O(p,m,u,a,r,e){var i=a+"-"+r,l=p.length;if(e.hasOwnProperty(i))return e[i];if(m===1){var s=Math.round(Math.log((1<f&&a>m||au?r:0}ie.exports=t},iXp4:function(ie,w,t){var O=t("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function p(m){return O.browser.ie&&O.browser.version>=11?function(){var u=this.__clipPaths,a=this.style,r;if(u)for(var e=0;e0){var s=O.alloc(this.degree);return i.copy(s,l),s}return i},ie.exports=m},jTL6:function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(p,m){var u=m.cx,a=m.cy,r=Math.max(m.r,0),e=m.startAngle,i=m.endAngle,l=m.clockwise,s=Math.cos(e),d=Math.sin(e);p.moveTo(s*r+u,d*r+a),p.arc(u,a,r,e,i,!l)}});ie.exports=f},ji0R:function(ie,w,t){ie.exports=t.p+"static/douyu.3e6df9ee.jpg"},juDX:function(ie,w,t){t("P47w");var O=t("aX58"),f=O.registerPainter,p=t("3CBa");f("svg",p)},kPWJ:function(ie,w,t){ie.exports=t.p+"static/question.cb52bef9.gif"},kPYp:function(ie,w){ie.exports="data:image/png;base64,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"},"kVK+":function(ie,w){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */w.read=function(t,O,f,p,m){var u,a,r=m*8-p-1,e=(1<>1,l=-7,s=f?m-1:0,d=f?-1:1,g=t[O+s];for(s+=d,u=g&(1<<-l)-1,g>>=-l,l+=r;l>0;u=u*256+t[O+s],s+=d,l-=8);for(a=u&(1<<-l)-1,u>>=-l,l+=p;l>0;a=a*256+t[O+s],s+=d,l-=8);if(u===0)u=1-i;else{if(u===e)return a?NaN:(g?-1:1)*Infinity;a=a+Math.pow(2,p),u=u-i}return(g?-1:1)*a*Math.pow(2,u-p)},w.write=function(t,O,f,p,m,u){var a,r,e,i=u*8-m-1,l=(1<>1,d=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=p?0:u-1,y=p?1:-1,b=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(r=isNaN(O)?1:0,a=l):(a=Math.floor(Math.log(O)/Math.LN2),O*(e=Math.pow(2,-a))<1&&(a--,e*=2),a+s>=1?O+=d/e:O+=d*Math.pow(2,1-s),O*e>=2&&(a++,e/=2),a+s>=l?(r=0,a=l):a+s>=1?(r=(O*e-1)*Math.pow(2,m),a=a+s):(r=O*Math.pow(2,s-1)*Math.pow(2,m),a=0));m>=8;t[f+g]=r&255,g+=y,r/=256,m-=8);for(a=a<0;t[f+g]=a&255,g+=y,a/=256,i-=8);t[f+g-y]|=b*128}},"kk9/":function(ie,w,t){var O=t("e/Dd").getSymbolSize,f=7;w.getPositions=function(m){var u=O(m);return[[0,0],[u-f,0],[0,u-f]]}},l2Kq:function(ie,w,t){ie.exports=t.p+"static/match_ad.24dc22fd.jpg"},lYJp:function(ie,w,t){var O=t("e/Dd"),f=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,p=1<<14|1<<12|1<<10|1<<4|1<<1,m=O.getBCHDigit(f);w.getEncodedBits=function(a,r){for(var e=a.bit<<3|r,i=e<<10;O.getBCHDigit(i)-m>=0;)i^=f<f+e&&r>m+e||rO+e&&a>p+e||a=l.x&&e<=l.x+l.width&&i>=l.y&&i<=l.y+l.height},clone:function(){return new a(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},a.create=function(e){return new a(e.x,e.y,e.width,e.height)};var r=a;ie.exports=r},mLcG:function(ie,w){var t=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};ie.exports=t},mgmH:function(ie,w,t){"use strict";t.d(w,"d",function(){return g}),t.d(w,"b",function(){return y}),t.d(w,"e",function(){return b}),t.d(w,"c",function(){return D}),t.d(w,"n",function(){return P}),t.d(w,"g",function(){return I}),t.d(w,"h",function(){return v}),t.d(w,"j",function(){return h}),t.d(w,"a",function(){return T}),t.d(w,"l",function(){return j}),t.d(w,"f",function(){return Q}),t.d(w,"k",function(){return M}),t.d(w,"m",function(){return c}),t.d(w,"i",function(){return o}),t.d(w,"o",function(){return n}),t.d(w,"t",function(){return B}),t.d(w,"s",function(){return k}),t.d(w,"p",function(){return N}),t.d(w,"q",function(){return A}),t.d(w,"r",function(){return U}),t.d(w,"v",function(){return _}),t.d(w,"u",function(){return K});var O=t("miYZ"),f=t("tsqr"),p=t("k1fw"),m=t("9og8"),u=t("WmNS"),a=t.n(u),r=t("oUNq"),e=t("9kvl"),i=t("1vsH"),l=t("m3rI"),s=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},g=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.t)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/export_couser_info.json"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),y=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.r)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_member_act_score")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),b=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.u)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_score")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_score")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),D=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.s)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),P=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.z)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),I=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.v)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_homework")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),v=function(){var J=Object(m.a)(a.a.mark(function Z(Y,H){var x;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.x)(Object(p.a)({},Y));case 2:x=G.sent,x.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/").concat(H))):x.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/").concat(H)));case 4:case"end":return G.stop()}},Z)}));return function(Y,H){return J.apply(this,arguments)}}(),E=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.w)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/homework_commons/".concat(Y.categoryId,"/works_list.zip"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),h=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.A)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/polls/".concat(Y.categoryId,"/commit_result.xlsx"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),T=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/attendances/export_xlsx_data.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),j=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/video_study_statics.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),Q=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/export_course_students_info.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),M=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/item_banks/export.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),c=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),o=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.y)(Object(p.a)({},Y));case 2:H=V.sent,H.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/exercise_score")));case 4:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),n=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),x.next=3,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/export_records/".concat(Y.id,".xlsx"),query:Y}));case 3:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),B=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),k=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_training_objectives.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),N=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)(Y==null?void 0:Y.name,Object(i.Y)({url:l.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),A=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_courses.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),U=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_graduation_requirements.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),_=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/rank_list.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),K=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}()},n1HI:function(ie,w,t){var O=t("hX1E"),f=O.normalizeRadian,p=Math.PI*2;function m(u,a,r,e,i,l,s,d,g){if(s===0)return!1;var y=s;d-=u,g-=a;var b=Math.sqrt(d*d+g*g);if(b-y>r||b+yi&&(i+=p);var P=Math.atan2(g,d);return P<0&&(P+=p),P>=e&&P<=i||P+p>=e&&P+p<=i}w.containStroke=m},n6Mw:function(ie,w,t){var O=t("SrGk"),f=t("bYtY"),p=t("Fofx");function m(a,r){O.call(this,a,r,"clipPath","__clippath_in_use__")}f.inherits(m,O),m.prototype.update=function(a){var r=this.getSvgElement(a);r&&this.updateDom(r,a.__clipPaths,!1);var e=this.getTextSvgElement(a);e&&this.updateDom(e,a.__clipPaths,!0),this.markUsed(a)},m.prototype.updateDom=function(a,r,e){if(r&&r.length>0){var i=this.getDefs(!0),l=r[0],s,d,g=e?"_textDom":"_dom";l[g]?(d=l[g].getAttribute("id"),s=l[g],i.contains(s)||i.appendChild(s)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,s=this.createElement("clipPath"),s.setAttribute("id",d),i.appendChild(s),l[g]=s);var y=this.getSvgProxy(l);if(l.transform&&l.parent.invTransform&&!e){var b=Array.prototype.slice.call(l.transform);p.mul(l.transform,l.parent.invTransform,l.transform),y.brush(l),l.transform=b}else y.brush(l);var D=this.getSvgElement(l);s.innerHTML="",s.appendChild(D.cloneNode()),a.setAttribute("clip-path","url(#"+d+")"),r.length>1&&this.updateDom(s,r.slice(1),e)}else a&&a.setAttribute("clip-path","none")},m.prototype.markUsed=function(a){var r=this;a.__clipPaths&&f.each(a.__clipPaths,function(e){e._dom&&O.prototype.markUsed.call(r,e._dom),e._textDom&&O.prototype.markUsed.call(r,e._textDom)})};var u=m;ie.exports=u},nCxF:function(ie,w,t){var O=t("QBsz"),f=O.min,p=O.max,m=O.scale,u=O.distance,a=O.add,r=O.clone,e=O.sub;function i(l,s,d,g){var y=[],b=[],D=[],P=[],I,v,E,h;if(g){E=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var T=0,j=l.length;T2&&arguments[2]!==void 0?arguments[2]:"0",me=String(L);me.length=12,pn%=12);var ur=e.useMemo(function(){if(!Ve)return[!1,!1];var Wt=[!0,!0];return xn.forEach(function(tn){var un=tn.disabled,Fn=tn.value;if(un)return;Fn>=12?Wt[1]=!1:Wt[0]=!1}),Wt},[Ve,xn]),dr=Object(r.a)(ur,2),cr=dr[0],fr=dr[1],hr=e.useMemo(function(){return Ve?xn.filter(Pt?function(Wt){return Wt.value>=12}:function(Wt){return Wt.value<12}).map(function(Wt){var tn=Wt.value%12,un=tn===0?"12":x(tn,2);return Object(a.a)(Object(a.a)({},Wt),{},{label:un,value:tn})}):xn},[Ve,xn]),er=ve(0,59,He,rt&&rt(pn)),Cr=ve(0,59,Je,ot&&ot(pn,vn));me.current={onUpDown:function(tn){var un=ht[Te];if(un)for(var Fn=un.units.findIndex(function(Wn){return Wn.value===un.value}),Dn=un.units.length,wn=1;wn1&&(Pe=ue.addDate(Pe,-7)),Pe}function Se(L,ue,pe){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ue){case"year":return pe.addYear(L,me*10);case"quarter":case"month":return pe.addYear(L,me);default:return pe.addMonth(L,me)}}var Ne=e.createContext({}),Ue=Ne;function $e(L){var ue=L.cellPrefixCls,pe=L.generateConfig,me=L.rangedValue,Te=L.hoverRangedValue,Ee=L.isInView,Pe=L.isSameCell,Be=L.offsetCell,Ke=L.today,Ve=L.value;function qe(Ye){var Ie,He=Be(Ye,-1),_e=Be(Ye,1),Je=ee(me,0),Qe=ee(me,1),rt=ee(Te,0),ot=ee(Te,1),yt=ye(pe,rt,ot,Ye);function _t(vn){return Pe(Je,vn)}function ht(vn){return Pe(Qe,vn)}var pt=Pe(rt,Ye),Rt=Pe(ot,Ye),Pt=(yt||Rt)&&(!Ee(He)||ht(He)),pn=(yt||pt)&&(!Ee(_e)||_t(_e));return Ie={},Object(u.a)(Ie,"".concat(ue,"-in-view"),Ee(Ye)),Object(u.a)(Ie,"".concat(ue,"-in-range"),ye(pe,Je,Qe,Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start"),_t(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-end"),ht(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start-single"),_t(Ye)&&!Qe),Object(u.a)(Ie,"".concat(ue,"-range-end-single"),ht(Ye)&&!Je),Object(u.a)(Ie,"".concat(ue,"-range-start-near-hover"),_t(Ye)&&(Pe(He,rt)||ye(pe,rt,ot,He))),Object(u.a)(Ie,"".concat(ue,"-range-end-near-hover"),ht(Ye)&&(Pe(_e,ot)||ye(pe,rt,ot,_e))),Object(u.a)(Ie,"".concat(ue,"-range-hover"),yt),Object(u.a)(Ie,"".concat(ue,"-range-hover-start"),pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-end"),Rt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start"),Pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end"),pn),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start-near-range"),Pt&&Pe(He,Qe)),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end-near-range"),pn&&Pe(_e,Je)),Object(u.a)(Ie,"".concat(ue,"-today"),Pe(Ke,Ye)),Object(u.a)(Ie,"".concat(ue,"-selected"),Pe(Ve,Ye)),Ie}return qe}function We(L){for(var ue=L.prefixCls,pe=L.disabledDate,me=L.onSelect,Te=L.rowNum,Ee=L.colNum,Pe=L.prefixColumn,Be=L.rowClassName,Ke=L.baseDate,Ve=L.getCellClassName,qe=L.getCellText,Ye=L.getCellNode,Ie=L.getCellDate,He=L.titleCell,_e=L.headerCells,Je=e.useContext(D),Qe=Je.onDateMouseEnter,rt=Je.onDateMouseLeave,ot="".concat(ue,"-cell"),yt=[],_t=0;_t2&&arguments[2]!==void 0?arguments[2]:!1;(gn===Je||Zn)&&(Tr(ft),Rt&&Rt(ft),Dn&&Dn(ft,Kt),Pt&&!Ae(Be,ft,Yn)&&Pt(ft))},pr=function(ft){return Tn.current&&Tn.current.onKeyDown?([y.a.LEFT,y.a.RIGHT,y.a.UP,y.a.DOWN,y.a.PAGE_UP,y.a.PAGE_DOWN,y.a.ENTER].includes(ft.which)&&ft.preventDefault(),Tn.current.onKeyDown(ft)):(Object(s.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},dn=function(ft){Tn.current&&Tn.current.onBlur&&Tn.current.onBlur(ft)};un&&xr!=="right"&&(un.current={onKeyDown:pr,onClose:function(){Tn.current&&Tn.current.onClose&&Tn.current.onClose()}}),e.useEffect(function(){Ke&&!nr.current&&Mn(Ke)},[Ke]),e.useEffect(function(){nr.current=!1},[]);var En,kn=Object(a.a)(Object(a.a)({},L),{},{operationRef:Tn,prefixCls:me,viewDate:Rn,value:Yn,onViewDateChange:Pn,sourceMode:Lr,onPanelChange:nn,disabledDate:gn!=="decade"?Ie:void 0});delete kn.onChange,delete kn.onSelect;switch(gn){case"decade":En=e.createElement(ir,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"year":En=e.createElement(Ot,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"month":En=e.createElement(we,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"quarter":En=e.createElement(tt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"week":En=e.createElement(Gt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"time":delete kn.showTime,En=e.createElement(fe,Object.assign({},kn,Object(g.a)(yt)==="object"?yt:null,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;default:yt?En=e.createElement(jt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}})):En=e.createElement(Ze,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}))}var Mr,Pr,vr=function(){var ft=Be.getNow(),Kt=se(Be.getHour(ft),Be.getMinute(ft),Be.getSecond(ft),tr?dr:1,Ar?fr:1,Wt?er:1),Zn=q(Be,ft,Kt[0],Kt[1],Kt[2]);In(Zn,"submit")};wn||(Mr=Nn(me,gn,ht),Pr=Kn({prefixCls:me,components:An,needConfirmButton:Cr,okDisabled:!Yn||Ie&&Ie(Yn),locale:Pe,showNow:ot,onNow:Cr&&vr,onOk:function(){Yn&&(In(Yn,"submit",!0),cn&&cn(Yn))}}));var Ir;if(_t&&gn==="date"&&Je==="date"&&!yt){var Sr=Be.getNow(),fn="".concat(me,"-today-btn"),Xn=Ie&&Ie(Sr);Ir=e.createElement("a",{className:l()(fn,Xn&&"".concat(fn,"-disabled")),"aria-disabled":Xn,onClick:function(){Xn||In(Sr,"mouse",!0)}},Pe.today)}return e.createElement(D.Provider,{value:Object(a.a)(Object(a.a)({},tn),{},{hideHeader:"hideHeader"in L?pt:tn.hideHeader,hidePrevBtn:Ln&&xr==="right",hideNextBtn:Ln&&xr==="left"})},e.createElement("div",{tabIndex:rt,className:l()("".concat(me,"-panel"),Te,(ue={},Object(u.a)(ue,"".concat(me,"-panel-has-range"),$n&&$n[0]&&$n[1]),Object(u.a)(ue,"".concat(me,"-panel-has-range-hover"),wr&&wr[0]&&wr[1]),Object(u.a)(ue,"".concat(me,"-panel-rtl"),xn==="rtl"),ue)),style:Ee,onKeyDown:pr,onBlur:dn,onMouseDown:vn,ref:Fn},En,Mr||Pr||Ir?e.createElement("div",{className:"".concat(me,"-footer")},Mr,Pr,Ir):null))}var wt=it,Zt=t("uciX"),Cn={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 zt(L){var ue,pe=L.prefixCls,me=L.popupElement,Te=L.popupStyle,Ee=L.visible,Pe=L.dropdownClassName,Be=L.dropdownAlign,Ke=L.transitionName,Ve=L.getPopupContainer,qe=L.children,Ye=L.range,Ie=L.popupPlacement,He=L.direction,_e="".concat(pe,"-dropdown"),Je=function(){return Ie!==void 0?Ie:He==="rtl"?"bottomRight":"bottomLeft"};return e.createElement(Zt.a,{showAction:[],hideAction:[],popupPlacement:Je(),builtinPlacements:Cn,prefixCls:_e,popupTransitionName:Ke,popup:me,popupAlign:Be,popupVisible:Ee,popupClassName:l()(Pe,(ue={},Object(u.a)(ue,"".concat(_e,"-range"),Ye),Object(u.a)(ue,"".concat(_e,"-rtl"),He==="rtl"),ue)),popupStyle:Te,getPopupContainer:Ve},qe)}var Tt=zt;function mt(L){var ue=L.open,pe=L.value,me=L.isClickOutside,Te=L.triggerOpen,Ee=L.forwardKeyDown,Pe=L.blurToCancel,Be=L.onSubmit,Ke=L.onCancel,Ve=L.onFocus,qe=L.onBlur,Ye=Object(e.useState)(!1),Ie=Object(r.a)(Ye,2),He=Ie[0],_e=Ie[1],Je=Object(e.useState)(!1),Qe=Object(r.a)(Je,2),rt=Qe[0],ot=Qe[1],yt=Object(e.useRef)(!1),_t=Object(e.useRef)(!1),ht={onMouseDown:function(){_e(!0),Te(!0)},onKeyDown:function(Rt){switch(Rt.which){case y.a.ENTER:{ue?Be()!==!1&&_e(!0):Te(!0),Rt.preventDefault();return}case y.a.TAB:{He&&ue&&!Rt.shiftKey?(_e(!1),Rt.preventDefault()):!He&&ue&&(!Ee(Rt)&&Rt.shiftKey&&(_e(!0),Rt.preventDefault()));return}case y.a.ESC:{_e(!0),Ke();return}}!ue&&![y.a.SHIFT].includes(Rt.which)?Te(!0):He||Ee(Rt)},onFocus:function(Rt){_e(!0),ot(!0),Ve&&Ve(Rt)},onBlur:function(Rt){if(yt.current||!me(document.activeElement)){yt.current=!1;return}Pe?setTimeout(function(){me(document.activeElement)&&Ke()},0):ue&&(Te(!1),_t.current&&Be()),ot(!1),qe&&qe(Rt)}};return Object(e.useEffect)(function(){_t.current=!1},[ue]),Object(e.useEffect)(function(){_t.current=!0},[pe]),Object(e.useEffect)(function(){return N(function(pt){var Rt=pt.target;ue&&(me(Rt)?rt||Te(!1):(yt.current=!0,requestAnimationFrame(function(){yt.current=!1})))})}),[ht,{focused:rt,typing:He}]}function St(L){var ue=L.valueTexts,pe=L.onTextChange,me=e.useState(""),Te=Object(r.a)(me,2),Ee=Te[0],Pe=Te[1],Be=e.useRef([]);Be.current=ue;function Ke(qe){Pe(qe),pe(qe)}function Ve(){Pe(Be.current[0])}return e.useEffect(function(){ue.every(function(qe){return qe!==Ee})&&Ve()},[ue.join("||")]),[Ee,Ke,Ve]}var Mt=t("Gytx"),Yt=t.n(Mt);function on(L,ue){var pe=ue.formatList,me=ue.generateConfig,Te=ue.locale;return Object(T.a)(function(){if(!L)return[[""],""];for(var Ee="",Pe=[],Be=0;Be1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ve.current),rt){Ke(Qe);return}Ve.current=requestAnimationFrame(function(){Ke(Qe)})}var Ye=on(Be,{formatList:pe,generateConfig:me,locale:Te}),Ie=Object(r.a)(Ye,2),He=Ie[1];function _e(Qe){qe(Qe)}function Je(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe(null,Qe)}return Object(e.useEffect)(function(){Je(!0)},[L]),Object(e.useEffect)(function(){return function(){return cancelAnimationFrame(Ve.current)}},[]),[He,_e,Je]}function qt(L){var ue,pe=L.prefixCls,me=pe===void 0?"rc-picker":pe,Te=L.id,Ee=L.tabIndex,Pe=L.style,Be=L.className,Ke=L.dropdownClassName,Ve=L.dropdownAlign,qe=L.popupStyle,Ye=L.transitionName,Ie=L.generateConfig,He=L.locale,_e=L.inputReadOnly,Je=L.allowClear,Qe=L.autoFocus,rt=L.showTime,ot=L.picker,yt=ot===void 0?"date":ot,_t=L.format,ht=L.use12Hours,pt=L.value,Rt=L.defaultValue,Pt=L.open,pn=L.defaultOpen,vn=L.defaultOpenValue,Un=L.suffixIcon,cn=L.clearIcon,An=L.disabled,xn=L.disabledDate,ur=L.placeholder,dr=L.getPopupContainer,cr=L.pickerRef,fr=L.panelRender,hr=L.onChange,er=L.onOpenChange,Cr=L.onFocus,tr=L.onBlur,Ar=L.onMouseDown,Wt=L.onMouseUp,tn=L.onMouseEnter,un=L.onMouseLeave,Fn=L.onContextMenu,Dn=L.onClick,wn=L.direction,zn=L.autoComplete,Wn=zn===void 0?"off":zn,Ln=e.useRef(null),xr=yt==="date"&&!!rt||yt==="time",$n=G(o(_t,yt,rt,ht)),wr=e.useRef(null),Tn=e.useRef(null),nr=Object(d.a)(null,{value:pt,defaultValue:Rt}),jr=Object(r.a)(nr,2),Qn=jr[0],Yn=jr[1],Tr=e.useState(Qn),Gn=Object(r.a)(Tr,2),rr=Gn[0],Rn=Gn[1],Mn=e.useRef(null),Pn=Object(d.a)(!1,{value:Pt,defaultValue:pn,postState:function(Vt){return An?!1:Vt},onChange:function(Vt){er&&er(Vt),!Vt&&Mn.current&&Mn.current.onClose&&Mn.current.onClose()}}),mr=Object(r.a)(Pn,2),yn=mr[0],ar=mr[1],gn=on(rr,{formatList:$n,generateConfig:Ie,locale:He}),Rr=Object(r.a)(gn,2),br=Rr[0],It=Rr[1],Lr=St({valueTexts:br,onTextChange:function(Vt){var Or=Ie.locale.parse(He.locale,Vt,$n);Or&&(!xn||!xn(Or))&&Rn(Or)}}),Jn=Object(r.a)(Lr,3),nn=Jn[0],In=Jn[1],pr=Jn[2],dn=function(Vt){Rn(Vt),Yn(Vt),hr&&!Ae(Ie,Qn,Vt)&&hr(Vt,Vt?Ie.locale.format(He.locale,Vt,$n[0]):"")},En=function(Vt){if(An&&Vt)return;ar(Vt)},kn=function(Vt){return yn&&Mn.current&&Mn.current.onKeyDown?Mn.current.onKeyDown(Vt):(Object(s.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Mr=function(){Wt&&Wt.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),En(!0))},Pr=mt({blurToCancel:xr,open:yn,value:nn,triggerOpen:En,forwardKeyDown:kn,isClickOutside:function(Vt){return!Z([wr.current,Tn.current],Vt)},onSubmit:function(){return xn&&xn(rr)?!1:(dn(rr),En(!1),pr(),!0)},onCancel:function(){En(!1),Rn(Qn),pr()},onFocus:Cr,onBlur:tr}),vr=Object(r.a)(Pr,2),Ir=vr[0],Sr=vr[1],fn=Sr.focused,Xn=Sr.typing;e.useEffect(function(){yn||(Rn(Qn),!br.length||br[0]===""?In(""):It!==nn&&pr())},[yn,br]),e.useEffect(function(){yn||pr()},[yt]),e.useEffect(function(){Rn(Qn)},[Qn]),cr&&(cr.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var sn=Object(a.a)(Object(a.a)({},L),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ft=e.createElement(wt,Object.assign({},sn,{generateConfig:Ie,className:l()(Object(u.a)({},"".concat(me,"-panel-focused"),!Xn)),value:rr,locale:He,tabIndex:-1,onChange:Rn,direction:wn}));fr&&(ft=fr(ft));var Kt=e.createElement("div",{className:"".concat(me,"-panel-container"),onMouseDown:function(Vt){Vt.preventDefault()}},ft),Zn;Un&&(Zn=e.createElement("span",{className:"".concat(me,"-suffix")},Un));var Vr;Je&&Qn&&!An&&(Vr=e.createElement("span",{onMouseDown:function(Vt){Vt.preventDefault(),Vt.stopPropagation()},onMouseUp:function(Vt){Vt.preventDefault(),Vt.stopPropagation(),dn(null),En(!1)},className:"".concat(me,"-clear")},cn||e.createElement("span",{className:"".concat(me,"-clear-btn")})));var qr=function(Vt,Or){(Or==="submit"||Or!=="key"&&!xr)&&(dn(Vt),En(!1))},Hr=wn==="rtl"?"bottomRight":"bottomLeft",Wr=mn(nn,{formatList:$n,generateConfig:Ie,locale:He}),kr=Object(r.a)(Wr,3),Qr=kr[0],Yr=kr[1],Bn=kr[2];return e.createElement(D.Provider,{value:{operationRef:Mn,hideHeader:yt==="time",panelRef:wr,onSelect:qr,open:yn,defaultOpenValue:vn,onDateMouseEnter:Yr,onDateMouseLeave:Bn}},e.createElement(Tt,{visible:yn,popupElement:Kt,popupStyle:qe,prefixCls:me,dropdownClassName:Ke,dropdownAlign:Ve,getPopupContainer:dr,transitionName:Ye,popupPlacement:Hr,direction:wn},e.createElement("div",{className:l()(me,Be,(ue={},Object(u.a)(ue,"".concat(me,"-disabled"),An),Object(u.a)(ue,"".concat(me,"-focused"),fn),Object(u.a)(ue,"".concat(me,"-rtl"),wn==="rtl"),ue)),style:Pe,onMouseDown:Ar,onMouseUp:Mr,onMouseEnter:tn,onMouseLeave:un,onContextMenu:Fn,onClick:Dn},e.createElement("div",{className:l()("".concat(me,"-input"),Object(u.a)({},"".concat(me,"-input-placeholder"),!!Qr)),ref:Tn},e.createElement("input",Object.assign({id:Te,tabIndex:Ee,disabled:An,readOnly:_e||!Xn,value:Qr||nn,onChange:function(Vt){In(Vt.target.value)},autoFocus:Qe,placeholder:ur,ref:Ln,title:nn},Ir,{size:n(yt,$n[0])},oe(L),{autoComplete:Wn})),Zn,Vr))))}var On=function(L){Object(p.a)(pe,L);var ue=Object(m.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(qt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),sr=On;function lr(L,ue,pe){var me=L.picker,Te=L.locale,Ee=L.selectedValue,Pe=L.disabledDate,Be=L.disabled,Ke=L.generateConfig,Ve=ee(Ee,0),qe=ee(Ee,1);function Ye(Qe){var rt=Ke.getYear(Qe),ot=Ke.locale.getWeek(Te.locale,Qe);return rt*100+ot}function Ie(Qe){var rt=Ke.getYear(Qe),ot=Ke.getMonth(Qe);return rt*100+ot}function He(Qe){var rt=Ke.getYear(Qe),ot=te(Ke,Qe);return rt*10+ot}var _e=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[1]&&qe)return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe);if(ue&&qe)switch(me){case"quarter":return He(Qe)>He(qe);case"month":return Ie(Qe)>Ie(qe);case"week":return Ye(Qe)>Ye(qe);default:return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe)}return!1},[Pe,Be[1],qe,ue]),Je=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[0]&&Ve)return!Me(Ke,Qe,qe)&&Ke.isAfter(Ve,Qe);if(pe&&Ve)switch(me){case"quarter":return He(Qe)0&&arguments[0]!==void 0?arguments[0]:!1,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=null;Bn&&_r&&_r[0]&&_r[1]&&_e.isAfter(_r[1],_r[0])&&(vt=_r);var kt=pt;if(pt&&Object(g.a)(pt)==="object"&&pt.defaultValue){var hn=pt.defaultValue;kt=Object(a.a)(Object(a.a)({},pt),{},{defaultValue:ee(hn,It)||void 0})}var Nr=null;return cr&&(Nr=function(or,gr){return cr(or,gr,{range:It?"end":"start"})}),e.createElement(Ue.Provider,{value:{inRange:!0,panelPosition:Nt,rangedValue:Xa||fn,hoverRangedValue:vt}},e.createElement(wt,Object.assign({},L,at,{dateRender:Nr,showTime:kt,mode:Kt[It],generateConfig:_e,style:void 0,direction:nr,disabledDate:It===0?Wr:kr,disabledTime:function(or){return dr?dr(or,It===0?"start":"end"):!1},className:l()(Object(u.a)({},"".concat(Ee,"-panel-focused"),It===0?!Ta:!Na)),value:ee(fn,It),locale:Je,tabIndex:-1,onPanelChange:function(or,gr){Vr(X(Kt,gr,It),X(fn,or,It));var Er=or;Nt==="right"&&Kt[It]===gr&&(Er=Se(Er,gr,_e,-1)),vr(Er,It)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ur=0,ja=0;It&&Mn.current&&mr.current&&Rn.current&&(Ur=Mn.current.offsetWidth+mr.current.offsetWidth,Rn.current.offsetWidth&&Ur>Rn.current.offsetWidth&&(ja=Ur));var po=nr==="rtl"?{right:Ur}:{left:Ur};function vo(){var Nt,at=Nn(Ee,Kt[It],Fn),vt=Kn({prefixCls:Ee,components:wr,needConfirmButton:Tr,okDisabled:!ee(fn,It)||ur&&ur(fn[It]),locale:Je,rangeList:mo,onOk:function(){ee(fn,It)&&(zr(fn,It),$n&&$n(fn))}});if(ht!=="time"&&!pt){var kt=Pr(It),hn=Se(kt,ht,_e),Nr=Kt[It],yr=Nr===ht,or=aa(yr?"left":!1,{pickerValue:kt,onPickerValueChange:function(qn){vr(qn,It)}}),gr=aa("right",{pickerValue:hn,onPickerValueChange:function(qn){vr(Se(qn,ht,_e,-1),It)}});nr==="rtl"?Nt=e.createElement(e.Fragment,null,gr,yr&&or):Nt=e.createElement(e.Fragment,null,or,yr&&gr)}else Nt=aa();var Er=e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Ee,"-panels")},Nt),(at||vt)&&e.createElement("div",{className:"".concat(Ee,"-footer")},at,vt));return fr&&(Er=fr(Er)),e.createElement("div",{className:"".concat(Ee,"-panel-container"),style:{marginLeft:ja},ref:Rn,onMouseDown:function(qn){qn.preventDefault()}},Er)}var go=e.createElement("div",{className:l()("".concat(Ee,"-range-wrapper"),"".concat(Ee,"-").concat(ht,"-range-wrapper")),style:{minWidth:Fa}},e.createElement("div",{className:"".concat(Ee,"-range-arrow"),style:po}),vo()),La;tr&&(La=e.createElement("span",{className:"".concat(Ee,"-suffix")},tr));var ka;Cr&&(ee(dn,0)&&!nn[0]||ee(dn,1)&&!nn[1])&&(ka=e.createElement("span",{onMouseDown:function(at){at.preventDefault(),at.stopPropagation()},onMouseUp:function(at){at.preventDefault(),at.stopPropagation();var vt=dn;nn[0]||(vt=X(vt,null,0)),nn[1]||(vt=X(vt,null,1)),zr(vt,null),Br(!1,It)},className:"".concat(Ee,"-clear")},Ar||e.createElement("span",{className:"".concat(Ee,"-clear-btn")})));var Ba={size:n(ht,gn[0])},oa=0,ia=0;Mn.current&&Pn.current&&mr.current&&(It===0?ia=Mn.current.offsetWidth:(oa=Ur,ia=Pn.current.offsetWidth));var bo=nr==="rtl"?{right:oa}:{left:oa},yo=function(at,vt){var kt=X(fn,at,It);vt==="submit"||vt!=="key"&&!Tr?(zr(kt,It),It===0?Aa():wa()):Xn(kt)};return e.createElement(D.Provider,{value:{operationRef:Jn,hideHeader:ht==="time",onDateMouseEnter:no,onDateMouseLeave:ro,hideRanges:!0,onSelect:yo,open:Bn}},e.createElement(Tt,{visible:Bn,popupElement:go,popupStyle:Ve,prefixCls:Ee,dropdownClassName:qe,dropdownAlign:Ie,getPopupContainer:He,transitionName:Ye,range:!0,direction:nr},e.createElement("div",Object.assign({ref:rr,className:l()(Ee,"".concat(Ee,"-range"),Ke,(ue={},Object(u.a)(ue,"".concat(Ee,"-disabled"),nn[0]&&nn[1]),Object(u.a)(ue,"".concat(Ee,"-focused"),It===0?Da:Ia),Object(u.a)(ue,"".concat(Ee,"-rtl"),nr==="rtl"),ue)),style:Be,onClick:lo,onMouseDown:uo},oe(L)),e.createElement("div",{className:l()("".concat(Ee,"-input"),(pe={},Object(u.a)(pe,"".concat(Ee,"-input-active"),It===0),Object(u.a)(pe,"".concat(Ee,"-input-placeholder"),!!Ca),pe)),ref:Mn},e.createElement("input",Object.assign({id:Pe,disabled:nn[0],readOnly:tn||!Ta,value:Ca||Xr,onChange:function(at){ha(at.target.value)},autoFocus:rt,placeholder:ee(Qe,0)||"",ref:yn},oo,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-range-separator"),ref:mr},pn),e.createElement("div",{className:l()("".concat(Ee,"-input"),(me={},Object(u.a)(me,"".concat(Ee,"-input-active"),It===1),Object(u.a)(me,"".concat(Ee,"-input-placeholder"),!!xa),me)),ref:Pn},e.createElement("input",Object.assign({disabled:nn[1],readOnly:tn||!Na,value:xa||Zr,onChange:function(at){pa(at.target.value)},placeholder:ee(Qe,1)||"",ref:ar},so,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-active-bar"),style:Object(a.a)(Object(a.a)({},bo),{},{width:ia,position:"absolute"})}),La,ka)))}var Hn=function(L){Object(p.a)(pe,L);var ue=Object(m.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(_n,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),_a=Hn,Eo=w.b=sr},onxn:function(ie,w){ie.exports="data:image/png;base64,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"},pzxd:function(ie,w,t){var O=t("bYtY"),f=O.retrieve2,p=O.retrieve3,m=O.each,u=O.normalizeCssArray,a=O.isString,r=O.isObject,e=t("6GrX"),i=t("VpOo"),l=t("Xnb7"),s=t("fW2E"),d=t("gut8"),g=d.ContextCachedBy,y=d.WILL_BE_RESTORED,b=e.DEFAULT_FONT,D={left:1,right:1,center:1},P={top:1,bottom:1,middle:1},I=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],v={},E={};function h(H){return T(H),m(H.rich,T),H}function T(H){if(H){H.font=e.makeFont(H);var x=H.textAlign;x==="middle"&&(x="center"),H.textAlign=x==null||D[x]?x:"left";var V=H.textVerticalAlign||H.textBaseline;V==="center"&&(V="middle"),H.textVerticalAlign=V==null||P[V]?V:"top";var G=H.textPadding;G&&(H.textPadding=u(H.textPadding))}}function j(H,x,V,G,oe,ee){G.rich?M(H,x,V,G,oe,ee):Q(H,x,V,G,oe,ee)}function Q(H,x,V,G,oe,ee){"use strict";var X=B(G),q,se=!1,ae=x.__attrCachedBy===g.PLAIN_TEXT;ee!==y?(ee&&(q=ee.style,se=!X&&ae&&q),x.__attrCachedBy=X?g.NONE:g.PLAIN_TEXT):ae&&(x.__attrCachedBy=g.NONE);var ve=G.font||b;(!se||ve!==(q.font||b))&&(x.font=ve);var W=H.__computedFont;H.__styleFont!==ve&&(H.__styleFont=ve,W=H.__computedFont=x.font);var re=G.textPadding,R=G.textLineHeight,$=H.__textCotentBlock;(!$||H.__dirtyText)&&($=H.__textCotentBlock=e.parsePlainText(V,W,re,R,G.truncate));var fe=$.outerHeight,F=$.lines,C=$.lineHeight,S=A(E,H,G,oe),z=S.baseX,te=S.baseY,de=S.textAlign||"left",he=S.textVerticalAlign;o(x,G,oe,z,te);var Me=e.adjustTextY(te,fe,he),ce=z,be=Me;if(X||re){var Ae=e.getWidth(V,W),ye=Ae;re&&(ye+=re[1]+re[3]);var ke=e.adjustTextX(z,ye,de);X&&k(H,x,G,ke,Me,ye,fe),re&&(ce=Z(z,de,re),be+=re[0])}x.textAlign=de,x.textBaseline="middle",x.globalAlpha=G.opacity||1;for(var Se=0;Se=0&&(Se=de[ke],Se.textAlign==="right");)n(H,x,Se,G,Me,C,ye,"right"),ce-=Se.width,ye-=Se.width,ke--;for(Ae+=(ee-(Ae-F)-(S-ye)-ce)/2;be<=ke;)Se=de[be],n(H,x,Se,G,Me,C,Ae+Se.width/2,"center"),Ae+=Se.width,be++;C+=Me}}function o(H,x,V,G,oe){if(V&&x.textRotation){var ee=x.textOrigin;ee==="center"?(G=V.width/2+V.x,oe=V.height/2+V.y):ee&&(G=ee[0]+V.x,oe=ee[1]+V.y),H.translate(G,oe),H.rotate(-x.textRotation),H.translate(-G,-oe)}}function n(H,x,V,G,oe,ee,X,q){var se=G.rich[V.styleName]||{};se.text=V.text;var ae=V.textVerticalAlign,ve=ee+oe/2;ae==="top"?ve=ee+V.height/2:ae==="bottom"&&(ve=ee+oe-V.height/2),!V.isLineHolder&&B(se)&&k(H,x,se,q==="right"?X-V.width:q==="center"?X-V.width/2:X,ve-V.height/2,V.width,V.height);var W=V.textPadding;W&&(X=Z(X,q,W),ve-=V.height/2-W[2]-V.textHeight/2),U(x,"shadowBlur",p(se.textShadowBlur,G.textShadowBlur,0)),U(x,"shadowColor",se.textShadowColor||G.textShadowColor||"transparent"),U(x,"shadowOffsetX",p(se.textShadowOffsetX,G.textShadowOffsetX,0)),U(x,"shadowOffsetY",p(se.textShadowOffsetY,G.textShadowOffsetY,0)),U(x,"textAlign",q),U(x,"textBaseline","middle"),U(x,"font",V.font||b);var re=_(se.textStroke||G.textStroke,$),R=K(se.textFill||G.textFill),$=f(se.textStrokeWidth,G.textStrokeWidth);re&&(U(x,"lineWidth",$),U(x,"strokeStyle",re),x.strokeText(V.text,X,ve)),R&&(U(x,"fillStyle",R),x.fillText(V.text,X,ve))}function B(H){return!!(H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor)}function k(H,x,V,G,oe,ee,X){var q=V.textBackgroundColor,se=V.textBorderWidth,ae=V.textBorderColor,ve=a(q);if(U(x,"shadowBlur",V.textBoxShadowBlur||0),U(x,"shadowColor",V.textBoxShadowColor||"transparent"),U(x,"shadowOffsetX",V.textBoxShadowOffsetX||0),U(x,"shadowOffsetY",V.textBoxShadowOffsetY||0),ve||se&&ae){x.beginPath();var W=V.textBorderRadius;W?i.buildPath(x,{x:G,y:oe,width:ee,height:X,r:W}):x.rect(G,oe,ee,X),x.closePath()}if(ve)if(U(x,"fillStyle",q),V.fillOpacity!=null){var re=x.globalAlpha;x.globalAlpha=V.fillOpacity*V.opacity,x.fill(),x.globalAlpha=re}else x.fill();else if(r(q)){var R=q.image;R=l.createOrUpdateImage(R,null,H,N,q),R&&l.isImageReady(R)&&x.drawImage(R,G,oe,ee,X)}if(se&&ae)if(U(x,"lineWidth",se),U(x,"strokeStyle",ae),V.strokeOpacity!=null){var re=x.globalAlpha;x.globalAlpha=V.strokeOpacity*V.opacity,x.stroke(),x.globalAlpha=re}else x.stroke()}function N(H,x){x.image=H}function A(H,x,V,G){var oe=V.x||0,ee=V.y||0,X=V.textAlign,q=V.textVerticalAlign;if(G){var se=V.textPosition;if(se instanceof Array)oe=G.x+J(se[0],G.width),ee=G.y+J(se[1],G.height);else{var ae=x&&x.calculateTextPosition?x.calculateTextPosition(v,V,G):e.calculateTextPosition(v,V,G);oe=ae.x,ee=ae.y,X=X||ae.textAlign,q=q||ae.textVerticalAlign}var ve=V.textOffset;ve&&(oe+=ve[0],ee+=ve[1])}return H=H||{},H.baseX=oe,H.baseY=ee,H.textAlign=X,H.textVerticalAlign=q,H}function U(H,x,V){return H[x]=s(H,x,V),H[x]}function _(H,x){return H==null||x<=0||H==="transparent"||H==="none"?null:H.image||H.colorStops?"#000":H}function K(H){return H==null||H==="none"?null:H.image||H.colorStops?"#000":H}function J(H,x){return typeof H=="string"?H.lastIndexOf("%")>=0?parseFloat(H)/100*x:parseFloat(H):H}function Z(H,x,V){return x==="right"?H-V[1]:x==="center"?H+V[3]/2-V[1]/2:H+V[3]}function Y(H,x){return H!=null&&(H||x.textBackgroundColor||x.textBorderWidth&&x.textBorderColor||x.textPadding)}w.normalizeTextStyle=h,w.renderText=j,w.getBoxPosition=A,w.getStroke=_,w.getFill=K,w.parsePercent=J,w.needDrawText=Y},qH13:function(ie,w,t){var O=t("ItGF"),f=t("QBsz"),p=f.applyTransform,m=t("mFDi"),u=t("Qe9p"),a=t("6GrX"),r=t("pzxd"),e=t("ni6a"),i=t("Gev7"),l=t("Dagg"),s=t("dqUG"),d=t("y+Vt"),g=t("IMiH"),y=t("QuXc"),b=t("06Qe"),D=g.CMD,P=Math.round,I=Math.sqrt,v=Math.abs,E=Math.cos,h=Math.sin,T=Math.max;if(!O.canvasSupported){var j=",",Q="progid:DXImageTransform.Microsoft",M=21600,c=M/2,o=1e5,n=1e3,B=function(z){z.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",z.coordsize=M+","+M,z.coordorigin="0,0"},k=function(z){return String(z).replace(/&/g,"&").replace(/"/g,""")},N=function(z,te,de){return"rgb("+[z,te,de].join(",")+")"},A=function(z,te){te&&z&&te.parentNode!==z&&z.appendChild(te)},U=function(z,te){te&&z&&te.parentNode===z&&z.removeChild(te)},_=function(z,te,de){return(parseFloat(z)||0)*o+(parseFloat(te)||0)*n+de},K=r.parsePercent,J=function(z,te,de){var he=u.parse(te);de=+de,isNaN(de)&&(de=1),he&&(z.color=N(he[0],he[1],he[2]),z.opacity=de*he[3])},Z=function(z){var te=u.parse(z);return[N(te[0],te[1],te[2]),te[3]]},Y=function(z,te,de){var he=te.fill;if(he!=null)if(he instanceof y){var Me,ce=0,be=[0,0],Ae=0,ye=1,ke=de.getBoundingRect(),Se=ke.width,Ne=ke.height;if(he.type==="linear"){Me="gradient";var Ue=de.transform,$e=[he.x*Se,he.y*Ne],We=[he.x2*Se,he.y2*Ne];Ue&&(p($e,$e,Ue),p(We,We,Ue));var nt=We[0]-$e[0],et=We[1]-$e[1];ce=Math.atan2(nt,et)*180/Math.PI,ce<0&&(ce+=360),ce<1e-6&&(ce=0)}else{Me="gradientradial";var $e=[he.x*Se,he.y*Ne],Ue=de.transform,Xe=de.scale,st=Se,ut=Ne;be=[($e[0]-ke.x)/st,($e[1]-ke.y)/ut],Ue&&p($e,$e,Ue),st/=Xe[0]*M,ut/=Xe[1]*M;var ct=T(st,ut);Ae=2*0/ct,ye=2*he.r/ct-Ae}var Ze=he.colorStops.slice();Ze.sort(function(ge,ne){return ge.offset-ne.offset});for(var bt=Ze.length,lt=[],Et=[],jt=0;jt=2){var rn=lt[0][0],ze=lt[1][0],Ce=lt[0][1]*te.opacity,Oe=lt[1][1]*te.opacity;z.type=Me,z.method="none",z.focus="100%",z.angle=ce,z.color=rn,z.color2=ze,z.colors=Et.join(","),z.opacity=Oe,z.opacity2=Ce}Me==="radial"&&(z.focusposition=be.join(","))}else J(z,he,te.opacity)},H=function(z,te){te.lineDash&&(z.dashstyle=te.lineDash.join(" ")),te.stroke!=null&&!(te.stroke instanceof y)&&J(z,te.stroke,te.opacity)},x=function(z,te,de,he){var Me=te==="fill",ce=z.getElementsByTagName(te)[0];de[te]!=null&&de[te]!=="none"&&(Me||!Me&&de.lineWidth)?(z[Me?"filled":"stroked"]="true",de[te]instanceof y&&U(z,ce),ce||(ce=b.createNode(te)),Me?Y(ce,de,he):H(ce,de),A(z,ce)):(z[Me?"filled":"stroked"]="false",U(z,ce))},V=[[],[],[]],G=function(z,te){var de=D.M,he=D.C,Me=D.L,ce=D.A,be=D.Q,Ae=[],ye,ke,Se,Ne,Ue,$e,We=z.data,nt=z.len();for(Ne=0;Ne.01?ne&&(le+=270/M):Math.abs(we-rn)<1e-4?ne&&leGt?Xe-=270/M:Xe+=270/M:ne&&wern?et+=270/M:et-=270/M),Ae.push(xe,P(((Gt-ze)*Et+bt)*M-c),j,P(((rn-Ce)*jt+lt)*M-c),j,P(((Gt+ze)*Et+bt)*M-c),j,P(((rn+Ce)*jt+lt)*M-c),j,P((le*Et+bt)*M-c),j,P((we*jt+lt)*M-c),j,P((et*Et+bt)*M-c),j,P((Xe*jt+lt)*M-c)),Ue=et,$e=Xe;break;case D.R:var Re=V[0],je=V[1];Re[0]=We[Ne++],Re[1]=We[Ne++],je[0]=Re[0]+We[Ne++],je[1]=Re[1]+We[Ne++],te&&(p(Re,Re,te),p(je,je,te)),Re[0]=P(Re[0]*M-c),je[0]=P(je[0]*M-c),Re[1]=P(Re[1]*M-c),je[1]=P(je[1]*M-c),Ae.push(" m ",Re[0],j,Re[1]," l ",je[0],j,Re[1]," l ",je[0],j,je[1]," l ",Re[0],j,je[1]);break;case D.Z:Ae.push(" x ")}if(ye>0){Ae.push(ke);for(var De=0;Dese&&(q=0,X={});var de=ae.style,he;try{de.font=z,he=de.fontFamily.split(",")[0]}catch(Me){}te={style:de.fontStyle||ee,variant:de.fontVariant||ee,weight:de.fontWeight||ee,size:parseFloat(de.fontSize||12)|0,family:he||"Microsoft YaHei"},X[z]=te,q++}return te},W;a.$override("measureText",function(z,te){var de=b.doc;W||(W=de.createElement("div"),W.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",b.doc.body.appendChild(W));try{W.style.font=te}catch(he){}return W.innerHTML="",W.appendChild(de.createTextNode(z)),{width:W.offsetWidth}});for(var re=new m,R=function(z,te,de,he){var Me=this.style;this.__dirty&&r.normalizeTextStyle(Me,!0);var ce=Me.text;if(ce!=null&&(ce+=""),!ce)return;if(Me.rich){var be=a.parseRichText(ce,Me);ce=[];for(var Ae=0;Ae=0&&A<=6&&(U===0||U===6)||U>=0&&U<=6&&(A===0||A===6)||A>=2&&A<=4&&U>=2&&U<=4?M.set(k+A,N+U,!0,!0):M.set(k+A,N+U,!1,!0)}}}function P(M){for(var c=M.size,o=8;o>A&1)===1,M.set(B,k,N,!0),M.set(k,B,N,!0)}function E(M,c,o){var n=M.size,B=d.getEncodedBits(c,o),k,N;for(k=0;k<15;k++)N=(B>>k&1)===1,k<6?M.set(k,8,N,!0):k<8?M.set(k+1,8,N,!0):M.set(n-15+k,8,N,!0),k<8?M.set(8,n-k-1,N,!0):k<9?M.set(8,15-k-1+1,N,!0):M.set(8,15-k-1,N,!0);M.set(n-8,8,1,!0)}function h(M,c){for(var o=M.size,n=-1,B=o-1,k=7,N=0,A=o-1;A>0;A-=2)for(A===6&&A--;;){for(var U=0;U<2;U++)if(!M.isReserved(B,A-U)){var _=!1;N>>k&1)===1),M.set(B,A-U,_),k--,k===-1&&(N++,k=7)}if(B+=n,B<0||o<=B){B-=n,n=-n;break}}}function T(M,c,o){var n=new m;o.forEach(function(_){n.put(_.mode.bit,4),n.put(_.getLength(),g.getCharCountIndicator(_.mode,M)),_.write(n)});var B=f.getSymbolTotalCodewords(M),k=i.getTotalCodewordsCount(M,c),N=(B-k)*8;for(n.getLengthInBits()+4<=N&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var A=(N-n.getLengthInBits())/8,U=0;Uf&&a>m||au?r:0}ie.exports=t},iXp4:function(ie,w,t){var O=t("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function p(m){return O.browser.ie&&O.browser.version>=11?function(){var u=this.__clipPaths,a=this.style,r;if(u)for(var e=0;e0){var s=O.alloc(this.degree);return i.copy(s,l),s}return i},ie.exports=m},jTL6:function(ie,w,t){var O=t("y+Vt"),f=O.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(p,m){var u=m.cx,a=m.cy,r=Math.max(m.r,0),e=m.startAngle,i=m.endAngle,l=m.clockwise,s=Math.cos(e),d=Math.sin(e);p.moveTo(s*r+u,d*r+a),p.arc(u,a,r,e,i,!l)}});ie.exports=f},ji0R:function(ie,w,t){ie.exports=t.p+"static/douyu.3e6df9ee.jpg"},juDX:function(ie,w,t){t("P47w");var O=t("aX58"),f=O.registerPainter,p=t("3CBa");f("svg",p)},kPWJ:function(ie,w,t){ie.exports=t.p+"static/question.cb52bef9.gif"},kPYp:function(ie,w){ie.exports="data:image/png;base64,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"},"kVK+":function(ie,w){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */w.read=function(t,O,f,p,m){var u,a,r=m*8-p-1,e=(1<>1,l=-7,s=f?m-1:0,d=f?-1:1,g=t[O+s];for(s+=d,u=g&(1<<-l)-1,g>>=-l,l+=r;l>0;u=u*256+t[O+s],s+=d,l-=8);for(a=u&(1<<-l)-1,u>>=-l,l+=p;l>0;a=a*256+t[O+s],s+=d,l-=8);if(u===0)u=1-i;else{if(u===e)return a?NaN:(g?-1:1)*Infinity;a=a+Math.pow(2,p),u=u-i}return(g?-1:1)*a*Math.pow(2,u-p)},w.write=function(t,O,f,p,m,u){var a,r,e,i=u*8-m-1,l=(1<>1,d=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=p?0:u-1,y=p?1:-1,b=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(r=isNaN(O)?1:0,a=l):(a=Math.floor(Math.log(O)/Math.LN2),O*(e=Math.pow(2,-a))<1&&(a--,e*=2),a+s>=1?O+=d/e:O+=d*Math.pow(2,1-s),O*e>=2&&(a++,e/=2),a+s>=l?(r=0,a=l):a+s>=1?(r=(O*e-1)*Math.pow(2,m),a=a+s):(r=O*Math.pow(2,s-1)*Math.pow(2,m),a=0));m>=8;t[f+g]=r&255,g+=y,r/=256,m-=8);for(a=a<0;t[f+g]=a&255,g+=y,a/=256,i-=8);t[f+g-y]|=b*128}},"kk9/":function(ie,w,t){var O=t("e/Dd").getSymbolSize,f=7;w.getPositions=function(m){var u=O(m);return[[0,0],[u-f,0],[0,u-f]]}},l2Kq:function(ie,w,t){ie.exports=t.p+"static/match_ad.24dc22fd.jpg"},lYJp:function(ie,w,t){var O=t("e/Dd"),f=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,p=1<<14|1<<12|1<<10|1<<4|1<<1,m=O.getBCHDigit(f);w.getEncodedBits=function(a,r){for(var e=a.bit<<3|r,i=e<<10;O.getBCHDigit(i)-m>=0;)i^=f<f+e&&r>m+e||rO+e&&a>p+e||a=l.x&&e<=l.x+l.width&&i>=l.y&&i<=l.y+l.height},clone:function(){return new a(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},a.create=function(e){return new a(e.x,e.y,e.width,e.height)};var r=a;ie.exports=r},mLcG:function(ie,w){var t=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};ie.exports=t},mgmH:function(ie,w,t){"use strict";t.d(w,"d",function(){return g}),t.d(w,"b",function(){return y}),t.d(w,"e",function(){return b}),t.d(w,"c",function(){return T}),t.d(w,"n",function(){return P}),t.d(w,"g",function(){return I}),t.d(w,"h",function(){return v}),t.d(w,"j",function(){return h}),t.d(w,"a",function(){return D}),t.d(w,"l",function(){return j}),t.d(w,"f",function(){return Q}),t.d(w,"k",function(){return M}),t.d(w,"m",function(){return c}),t.d(w,"i",function(){return o}),t.d(w,"o",function(){return n}),t.d(w,"t",function(){return B}),t.d(w,"s",function(){return k}),t.d(w,"p",function(){return N}),t.d(w,"q",function(){return A}),t.d(w,"r",function(){return U}),t.d(w,"v",function(){return _}),t.d(w,"u",function(){return K});var O=t("miYZ"),f=t("tsqr"),p=t("k1fw"),m=t("9og8"),u=t("WmNS"),a=t.n(u),r=t("oUNq"),e=t("9kvl"),i=t("1vsH"),l=t("m3rI"),s=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(e.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},g=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.t)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/export_couser_info.json"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),y=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.r)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_member_act_score")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),b=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.u)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_score")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_score")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),T=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.s)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),P=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.z)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),I=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.v)(Object(p.a)({},Y));case 2:if(H=V.sent,!(H.status===0)){V.next=8;break}f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_homework")),V.next=13;break;case 8:if(!(H.status===-2)){V.next=12;break}return V.abrupt("return",H);case 12:H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),v=function(){var J=Object(m.a)(a.a.mark(function Z(Y,H){var x;return a.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(r.x)(Object(p.a)({},Y));case 2:x=G.sent,x.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/").concat(H))):x.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/").concat(H)));case 4:case"end":return G.stop()}},Z)}));return function(Y,H){return J.apply(this,arguments)}}(),E=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.w)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/homework_commons/".concat(Y.categoryId,"/works_list.zip"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),h=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s(),V.next=3,Object(r.A)(Object(p.a)({},Y));case 3:if(H=V.sent,!(H.status===0)){V.next=7;break}return V.next=7,Object(i.w)("",Object(i.Y)({url:l.a.API_SERVER+"/api/polls/".concat(Y.categoryId,"/commit_result.xlsx"),query:Y}));case 7:d();case 8:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),D=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/attendances/export_xlsx_data.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),j=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/video_study_statics.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),Q=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/".concat(Y.coursesId,"/export_course_students_info.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),M=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/item_banks/export.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),c=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),o=function(){var J=Object(m.a)(a.a.mark(function Z(Y){var H;return a.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(r.y)(Object(p.a)({},Y));case 2:H=V.sent,H.status===0?(f.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(e.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),e.d.push("/classrooms/".concat(Y.coursesId,"/exportlist/exercise_score")));case 4:case"end":return V.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),n=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),x.next=3,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/export_records/".concat(Y.id,".xlsx"),query:Y}));case 3:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),B=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),k=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_training_objectives.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),N=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)(Y==null?void 0:Y.name,Object(i.Y)({url:l.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),A=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_courses.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),U=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/ec_years/".concat(Y==null?void 0:Y.ec_year_id,"/ec_graduation_requirements.xlsx"),query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),_=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/rank_list.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}(),K=function(){var J=Object(m.a)(a.a.mark(function Z(Y){return a.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,Object(i.v)("",Object(i.Y)({url:l.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Y}));case 2:case"end":return x.stop()}},Z)}));return function(Y){return J.apply(this,arguments)}}()},n1HI:function(ie,w,t){var O=t("hX1E"),f=O.normalizeRadian,p=Math.PI*2;function m(u,a,r,e,i,l,s,d,g){if(s===0)return!1;var y=s;d-=u,g-=a;var b=Math.sqrt(d*d+g*g);if(b-y>r||b+yi&&(i+=p);var P=Math.atan2(g,d);return P<0&&(P+=p),P>=e&&P<=i||P+p>=e&&P+p<=i}w.containStroke=m},n6Mw:function(ie,w,t){var O=t("SrGk"),f=t("bYtY"),p=t("Fofx");function m(a,r){O.call(this,a,r,"clipPath","__clippath_in_use__")}f.inherits(m,O),m.prototype.update=function(a){var r=this.getSvgElement(a);r&&this.updateDom(r,a.__clipPaths,!1);var e=this.getTextSvgElement(a);e&&this.updateDom(e,a.__clipPaths,!0),this.markUsed(a)},m.prototype.updateDom=function(a,r,e){if(r&&r.length>0){var i=this.getDefs(!0),l=r[0],s,d,g=e?"_textDom":"_dom";l[g]?(d=l[g].getAttribute("id"),s=l[g],i.contains(s)||i.appendChild(s)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,s=this.createElement("clipPath"),s.setAttribute("id",d),i.appendChild(s),l[g]=s);var y=this.getSvgProxy(l);if(l.transform&&l.parent.invTransform&&!e){var b=Array.prototype.slice.call(l.transform);p.mul(l.transform,l.parent.invTransform,l.transform),y.brush(l),l.transform=b}else y.brush(l);var T=this.getSvgElement(l);s.innerHTML="",s.appendChild(T.cloneNode()),a.setAttribute("clip-path","url(#"+d+")"),r.length>1&&this.updateDom(s,r.slice(1),e)}else a&&a.setAttribute("clip-path","none")},m.prototype.markUsed=function(a){var r=this;a.__clipPaths&&f.each(a.__clipPaths,function(e){e._dom&&O.prototype.markUsed.call(r,e._dom),e._textDom&&O.prototype.markUsed.call(r,e._textDom)})};var u=m;ie.exports=u},nCxF:function(ie,w,t){var O=t("QBsz"),f=O.min,p=O.max,m=O.scale,u=O.distance,a=O.add,r=O.clone,e=O.sub;function i(l,s,d,g){var y=[],b=[],T=[],P=[],I,v,E,h;if(g){E=[Infinity,Infinity],h=[-Infinity,-Infinity];for(var D=0,j=l.length;D2&&arguments[2]!==void 0?arguments[2]:"0",me=String(L);me.length=12,pn%=12);var ur=e.useMemo(function(){if(!Ve)return[!1,!1];var Wt=[!0,!0];return xn.forEach(function(tn){var un=tn.disabled,Fn=tn.value;if(un)return;Fn>=12?Wt[1]=!1:Wt[0]=!1}),Wt},[Ve,xn]),dr=Object(r.a)(ur,2),cr=dr[0],fr=dr[1],hr=e.useMemo(function(){return Ve?xn.filter(Pt?function(Wt){return Wt.value>=12}:function(Wt){return Wt.value<12}).map(function(Wt){var tn=Wt.value%12,un=tn===0?"12":x(tn,2);return Object(a.a)(Object(a.a)({},Wt),{},{label:un,value:tn})}):xn},[Ve,xn]),er=ve(0,59,He,rt&&rt(pn)),Cr=ve(0,59,Je,ot&&ot(pn,vn));me.current={onUpDown:function(tn){var un=ht[De];if(un)for(var Fn=un.units.findIndex(function(Wn){return Wn.value===un.value}),Tn=un.units.length,wn=1;wn1&&(Pe=ue.addDate(Pe,-7)),Pe}function Se(L,ue,pe){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ue){case"year":return pe.addYear(L,me*10);case"quarter":case"month":return pe.addYear(L,me);default:return pe.addMonth(L,me)}}var Ne=e.createContext({}),Ue=Ne;function $e(L){var ue=L.cellPrefixCls,pe=L.generateConfig,me=L.rangedValue,De=L.hoverRangedValue,Ee=L.isInView,Pe=L.isSameCell,Be=L.offsetCell,Ke=L.today,Ve=L.value;function qe(Ye){var Ie,He=Be(Ye,-1),_e=Be(Ye,1),Je=ee(me,0),Qe=ee(me,1),rt=ee(De,0),ot=ee(De,1),yt=ye(pe,rt,ot,Ye);function _t(vn){return Pe(Je,vn)}function ht(vn){return Pe(Qe,vn)}var pt=Pe(rt,Ye),Rt=Pe(ot,Ye),Pt=(yt||Rt)&&(!Ee(He)||ht(He)),pn=(yt||pt)&&(!Ee(_e)||_t(_e));return Ie={},Object(u.a)(Ie,"".concat(ue,"-in-view"),Ee(Ye)),Object(u.a)(Ie,"".concat(ue,"-in-range"),ye(pe,Je,Qe,Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start"),_t(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-end"),ht(Ye)),Object(u.a)(Ie,"".concat(ue,"-range-start-single"),_t(Ye)&&!Qe),Object(u.a)(Ie,"".concat(ue,"-range-end-single"),ht(Ye)&&!Je),Object(u.a)(Ie,"".concat(ue,"-range-start-near-hover"),_t(Ye)&&(Pe(He,rt)||ye(pe,rt,ot,He))),Object(u.a)(Ie,"".concat(ue,"-range-end-near-hover"),ht(Ye)&&(Pe(_e,ot)||ye(pe,rt,ot,_e))),Object(u.a)(Ie,"".concat(ue,"-range-hover"),yt),Object(u.a)(Ie,"".concat(ue,"-range-hover-start"),pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-end"),Rt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start"),Pt),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end"),pn),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-start-near-range"),Pt&&Pe(He,Qe)),Object(u.a)(Ie,"".concat(ue,"-range-hover-edge-end-near-range"),pn&&Pe(_e,Je)),Object(u.a)(Ie,"".concat(ue,"-today"),Pe(Ke,Ye)),Object(u.a)(Ie,"".concat(ue,"-selected"),Pe(Ve,Ye)),Ie}return qe}function We(L){for(var ue=L.prefixCls,pe=L.disabledDate,me=L.onSelect,De=L.rowNum,Ee=L.colNum,Pe=L.prefixColumn,Be=L.rowClassName,Ke=L.baseDate,Ve=L.getCellClassName,qe=L.getCellText,Ye=L.getCellNode,Ie=L.getCellDate,He=L.titleCell,_e=L.headerCells,Je=e.useContext(T),Qe=Je.onDateMouseEnter,rt=Je.onDateMouseLeave,ot="".concat(ue,"-cell"),yt=[],_t=0;_t2&&arguments[2]!==void 0?arguments[2]:!1;(gn===Je||Zn)&&(Dr(ft),Rt&&Rt(ft),Tn&&Tn(ft,Kt),Pt&&!Ae(Be,ft,Yn)&&Pt(ft))},pr=function(ft){return Dn.current&&Dn.current.onKeyDown?([y.a.LEFT,y.a.RIGHT,y.a.UP,y.a.DOWN,y.a.PAGE_UP,y.a.PAGE_DOWN,y.a.ENTER].includes(ft.which)&&ft.preventDefault(),Dn.current.onKeyDown(ft)):(Object(s.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},dn=function(ft){Dn.current&&Dn.current.onBlur&&Dn.current.onBlur(ft)};un&&xr!=="right"&&(un.current={onKeyDown:pr,onClose:function(){Dn.current&&Dn.current.onClose&&Dn.current.onClose()}}),e.useEffect(function(){Ke&&!nr.current&&Mn(Ke)},[Ke]),e.useEffect(function(){nr.current=!1},[]);var En,kn=Object(a.a)(Object(a.a)({},L),{},{operationRef:Dn,prefixCls:me,viewDate:Rn,value:Yn,onViewDateChange:Pn,sourceMode:Lr,onPanelChange:nn,disabledDate:gn!=="decade"?Ie:void 0});delete kn.onChange,delete kn.onSelect;switch(gn){case"decade":En=e.createElement(ir,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"year":En=e.createElement(Ot,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"month":En=e.createElement(we,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"quarter":En=e.createElement(tt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"week":En=e.createElement(Gt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;case"time":delete kn.showTime,En=e.createElement(fe,Object.assign({},kn,Object(g.a)(yt)==="object"?yt:null,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}));break;default:yt?En=e.createElement(jt,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}})):En=e.createElement(Ze,Object.assign({},kn,{onSelect:function(ft,Kt){Pn(ft),In(ft,Kt)}}))}var Mr,Pr,vr=function(){var ft=Be.getNow(),Kt=se(Be.getHour(ft),Be.getMinute(ft),Be.getSecond(ft),tr?dr:1,Ar?fr:1,Wt?er:1),Zn=q(Be,ft,Kt[0],Kt[1],Kt[2]);In(Zn,"submit")};wn||(Mr=Nn(me,gn,ht),Pr=Kn({prefixCls:me,components:An,needConfirmButton:Cr,okDisabled:!Yn||Ie&&Ie(Yn),locale:Pe,showNow:ot,onNow:Cr&&vr,onOk:function(){Yn&&(In(Yn,"submit",!0),cn&&cn(Yn))}}));var Ir;if(_t&&gn==="date"&&Je==="date"&&!yt){var Sr=Be.getNow(),fn="".concat(me,"-today-btn"),Xn=Ie&&Ie(Sr);Ir=e.createElement("a",{className:l()(fn,Xn&&"".concat(fn,"-disabled")),"aria-disabled":Xn,onClick:function(){Xn||In(Sr,"mouse",!0)}},Pe.today)}return e.createElement(T.Provider,{value:Object(a.a)(Object(a.a)({},tn),{},{hideHeader:"hideHeader"in L?pt:tn.hideHeader,hidePrevBtn:Ln&&xr==="right",hideNextBtn:Ln&&xr==="left"})},e.createElement("div",{tabIndex:rt,className:l()("".concat(me,"-panel"),De,(ue={},Object(u.a)(ue,"".concat(me,"-panel-has-range"),$n&&$n[0]&&$n[1]),Object(u.a)(ue,"".concat(me,"-panel-has-range-hover"),wr&&wr[0]&&wr[1]),Object(u.a)(ue,"".concat(me,"-panel-rtl"),xn==="rtl"),ue)),style:Ee,onKeyDown:pr,onBlur:dn,onMouseDown:vn,ref:Fn},En,Mr||Pr||Ir?e.createElement("div",{className:"".concat(me,"-footer")},Mr,Pr,Ir):null))}var wt=it,Zt=t("uciX"),Cn={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 zt(L){var ue,pe=L.prefixCls,me=L.popupElement,De=L.popupStyle,Ee=L.visible,Pe=L.dropdownClassName,Be=L.dropdownAlign,Ke=L.transitionName,Ve=L.getPopupContainer,qe=L.children,Ye=L.range,Ie=L.popupPlacement,He=L.direction,_e="".concat(pe,"-dropdown"),Je=function(){return Ie!==void 0?Ie:He==="rtl"?"bottomRight":"bottomLeft"};return e.createElement(Zt.a,{showAction:[],hideAction:[],popupPlacement:Je(),builtinPlacements:Cn,prefixCls:_e,popupTransitionName:Ke,popup:me,popupAlign:Be,popupVisible:Ee,popupClassName:l()(Pe,(ue={},Object(u.a)(ue,"".concat(_e,"-range"),Ye),Object(u.a)(ue,"".concat(_e,"-rtl"),He==="rtl"),ue)),popupStyle:De,getPopupContainer:Ve},qe)}var Dt=zt;function mt(L){var ue=L.open,pe=L.value,me=L.isClickOutside,De=L.triggerOpen,Ee=L.forwardKeyDown,Pe=L.blurToCancel,Be=L.onSubmit,Ke=L.onCancel,Ve=L.onFocus,qe=L.onBlur,Ye=Object(e.useState)(!1),Ie=Object(r.a)(Ye,2),He=Ie[0],_e=Ie[1],Je=Object(e.useState)(!1),Qe=Object(r.a)(Je,2),rt=Qe[0],ot=Qe[1],yt=Object(e.useRef)(!1),_t=Object(e.useRef)(!1),ht={onMouseDown:function(){_e(!0),De(!0)},onKeyDown:function(Rt){switch(Rt.which){case y.a.ENTER:{ue?Be()!==!1&&_e(!0):De(!0),Rt.preventDefault();return}case y.a.TAB:{He&&ue&&!Rt.shiftKey?(_e(!1),Rt.preventDefault()):!He&&ue&&(!Ee(Rt)&&Rt.shiftKey&&(_e(!0),Rt.preventDefault()));return}case y.a.ESC:{_e(!0),Ke();return}}!ue&&![y.a.SHIFT].includes(Rt.which)?De(!0):He||Ee(Rt)},onFocus:function(Rt){_e(!0),ot(!0),Ve&&Ve(Rt)},onBlur:function(Rt){if(yt.current||!me(document.activeElement)){yt.current=!1;return}Pe?setTimeout(function(){me(document.activeElement)&&Ke()},0):ue&&(De(!1),_t.current&&Be()),ot(!1),qe&&qe(Rt)}};return Object(e.useEffect)(function(){_t.current=!1},[ue]),Object(e.useEffect)(function(){_t.current=!0},[pe]),Object(e.useEffect)(function(){return N(function(pt){var Rt=pt.target;ue&&(me(Rt)?rt||De(!1):(yt.current=!0,requestAnimationFrame(function(){yt.current=!1})))})}),[ht,{focused:rt,typing:He}]}function St(L){var ue=L.valueTexts,pe=L.onTextChange,me=e.useState(""),De=Object(r.a)(me,2),Ee=De[0],Pe=De[1],Be=e.useRef([]);Be.current=ue;function Ke(qe){Pe(qe),pe(qe)}function Ve(){Pe(Be.current[0])}return e.useEffect(function(){ue.every(function(qe){return qe!==Ee})&&Ve()},[ue.join("||")]),[Ee,Ke,Ve]}var Mt=t("Gytx"),Yt=t.n(Mt);function on(L,ue){var pe=ue.formatList,me=ue.generateConfig,De=ue.locale;return Object(D.a)(function(){if(!L)return[[""],""];for(var Ee="",Pe=[],Be=0;Be1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ve.current),rt){Ke(Qe);return}Ve.current=requestAnimationFrame(function(){Ke(Qe)})}var Ye=on(Be,{formatList:pe,generateConfig:me,locale:De}),Ie=Object(r.a)(Ye,2),He=Ie[1];function _e(Qe){qe(Qe)}function Je(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe(null,Qe)}return Object(e.useEffect)(function(){Je(!0)},[L]),Object(e.useEffect)(function(){return function(){return cancelAnimationFrame(Ve.current)}},[]),[He,_e,Je]}function qt(L){var ue,pe=L.prefixCls,me=pe===void 0?"rc-picker":pe,De=L.id,Ee=L.tabIndex,Pe=L.style,Be=L.className,Ke=L.dropdownClassName,Ve=L.dropdownAlign,qe=L.popupStyle,Ye=L.transitionName,Ie=L.generateConfig,He=L.locale,_e=L.inputReadOnly,Je=L.allowClear,Qe=L.autoFocus,rt=L.showTime,ot=L.picker,yt=ot===void 0?"date":ot,_t=L.format,ht=L.use12Hours,pt=L.value,Rt=L.defaultValue,Pt=L.open,pn=L.defaultOpen,vn=L.defaultOpenValue,Un=L.suffixIcon,cn=L.clearIcon,An=L.disabled,xn=L.disabledDate,ur=L.placeholder,dr=L.getPopupContainer,cr=L.pickerRef,fr=L.panelRender,hr=L.onChange,er=L.onOpenChange,Cr=L.onFocus,tr=L.onBlur,Ar=L.onMouseDown,Wt=L.onMouseUp,tn=L.onMouseEnter,un=L.onMouseLeave,Fn=L.onContextMenu,Tn=L.onClick,wn=L.direction,zn=L.autoComplete,Wn=zn===void 0?"off":zn,Ln=e.useRef(null),xr=yt==="date"&&!!rt||yt==="time",$n=G(o(_t,yt,rt,ht)),wr=e.useRef(null),Dn=e.useRef(null),nr=Object(d.a)(null,{value:pt,defaultValue:Rt}),jr=Object(r.a)(nr,2),Qn=jr[0],Yn=jr[1],Dr=e.useState(Qn),Gn=Object(r.a)(Dr,2),rr=Gn[0],Rn=Gn[1],Mn=e.useRef(null),Pn=Object(d.a)(!1,{value:Pt,defaultValue:pn,postState:function(Vt){return An?!1:Vt},onChange:function(Vt){er&&er(Vt),!Vt&&Mn.current&&Mn.current.onClose&&Mn.current.onClose()}}),mr=Object(r.a)(Pn,2),yn=mr[0],ar=mr[1],gn=on(rr,{formatList:$n,generateConfig:Ie,locale:He}),Rr=Object(r.a)(gn,2),br=Rr[0],It=Rr[1],Lr=St({valueTexts:br,onTextChange:function(Vt){var Or=Ie.locale.parse(He.locale,Vt,$n);Or&&(!xn||!xn(Or))&&Rn(Or)}}),Jn=Object(r.a)(Lr,3),nn=Jn[0],In=Jn[1],pr=Jn[2],dn=function(Vt){Rn(Vt),Yn(Vt),hr&&!Ae(Ie,Qn,Vt)&&hr(Vt,Vt?Ie.locale.format(He.locale,Vt,$n[0]):"")},En=function(Vt){if(An&&Vt)return;ar(Vt)},kn=function(Vt){return yn&&Mn.current&&Mn.current.onKeyDown?Mn.current.onKeyDown(Vt):(Object(s.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Mr=function(){Wt&&Wt.apply(void 0,arguments),Ln.current&&(Ln.current.focus(),En(!0))},Pr=mt({blurToCancel:xr,open:yn,value:nn,triggerOpen:En,forwardKeyDown:kn,isClickOutside:function(Vt){return!Z([wr.current,Dn.current],Vt)},onSubmit:function(){return xn&&xn(rr)?!1:(dn(rr),En(!1),pr(),!0)},onCancel:function(){En(!1),Rn(Qn),pr()},onFocus:Cr,onBlur:tr}),vr=Object(r.a)(Pr,2),Ir=vr[0],Sr=vr[1],fn=Sr.focused,Xn=Sr.typing;e.useEffect(function(){yn||(Rn(Qn),!br.length||br[0]===""?In(""):It!==nn&&pr())},[yn,br]),e.useEffect(function(){yn||pr()},[yt]),e.useEffect(function(){Rn(Qn)},[Qn]),cr&&(cr.current={focus:function(){Ln.current&&Ln.current.focus()},blur:function(){Ln.current&&Ln.current.blur()}});var sn=Object(a.a)(Object(a.a)({},L),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ft=e.createElement(wt,Object.assign({},sn,{generateConfig:Ie,className:l()(Object(u.a)({},"".concat(me,"-panel-focused"),!Xn)),value:rr,locale:He,tabIndex:-1,onChange:Rn,direction:wn}));fr&&(ft=fr(ft));var Kt=e.createElement("div",{className:"".concat(me,"-panel-container"),onMouseDown:function(Vt){Vt.preventDefault()}},ft),Zn;Un&&(Zn=e.createElement("span",{className:"".concat(me,"-suffix")},Un));var Vr;Je&&Qn&&!An&&(Vr=e.createElement("span",{onMouseDown:function(Vt){Vt.preventDefault(),Vt.stopPropagation()},onMouseUp:function(Vt){Vt.preventDefault(),Vt.stopPropagation(),dn(null),En(!1)},className:"".concat(me,"-clear")},cn||e.createElement("span",{className:"".concat(me,"-clear-btn")})));var qr=function(Vt,Or){(Or==="submit"||Or!=="key"&&!xr)&&(dn(Vt),En(!1))},Hr=wn==="rtl"?"bottomRight":"bottomLeft",Wr=mn(nn,{formatList:$n,generateConfig:Ie,locale:He}),kr=Object(r.a)(Wr,3),Qr=kr[0],Yr=kr[1],Bn=kr[2];return e.createElement(T.Provider,{value:{operationRef:Mn,hideHeader:yt==="time",panelRef:wr,onSelect:qr,open:yn,defaultOpenValue:vn,onDateMouseEnter:Yr,onDateMouseLeave:Bn}},e.createElement(Dt,{visible:yn,popupElement:Kt,popupStyle:qe,prefixCls:me,dropdownClassName:Ke,dropdownAlign:Ve,getPopupContainer:dr,transitionName:Ye,popupPlacement:Hr,direction:wn},e.createElement("div",{className:l()(me,Be,(ue={},Object(u.a)(ue,"".concat(me,"-disabled"),An),Object(u.a)(ue,"".concat(me,"-focused"),fn),Object(u.a)(ue,"".concat(me,"-rtl"),wn==="rtl"),ue)),style:Pe,onMouseDown:Ar,onMouseUp:Mr,onMouseEnter:tn,onMouseLeave:un,onContextMenu:Fn,onClick:Tn},e.createElement("div",{className:l()("".concat(me,"-input"),Object(u.a)({},"".concat(me,"-input-placeholder"),!!Qr)),ref:Dn},e.createElement("input",Object.assign({id:De,tabIndex:Ee,disabled:An,readOnly:_e||!Xn,value:Qr||nn,onChange:function(Vt){In(Vt.target.value)},autoFocus:Qe,placeholder:ur,ref:Ln,title:nn},Ir,{size:n(yt,$n[0])},oe(L),{autoComplete:Wn})),Zn,Vr))))}var On=function(L){Object(p.a)(pe,L);var ue=Object(m.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(qt,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),sr=On;function lr(L,ue,pe){var me=L.picker,De=L.locale,Ee=L.selectedValue,Pe=L.disabledDate,Be=L.disabled,Ke=L.generateConfig,Ve=ee(Ee,0),qe=ee(Ee,1);function Ye(Qe){var rt=Ke.getYear(Qe),ot=Ke.locale.getWeek(De.locale,Qe);return rt*100+ot}function Ie(Qe){var rt=Ke.getYear(Qe),ot=Ke.getMonth(Qe);return rt*100+ot}function He(Qe){var rt=Ke.getYear(Qe),ot=te(Ke,Qe);return rt*10+ot}var _e=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[1]&&qe)return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe);if(ue&&qe)switch(me){case"quarter":return He(Qe)>He(qe);case"month":return Ie(Qe)>Ie(qe);case"week":return Ye(Qe)>Ye(qe);default:return!Me(Ke,Qe,qe)&&Ke.isAfter(Qe,qe)}return!1},[Pe,Be[1],qe,ue]),Je=e.useCallback(function(Qe){if(Pe&&Pe(Qe))return!0;if(Be[0]&&Ve)return!Me(Ke,Qe,qe)&&Ke.isAfter(Ve,Qe);if(pe&&Ve)switch(me){case"quarter":return He(Qe)0&&arguments[0]!==void 0?arguments[0]:!1,at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=null;Bn&&_r&&_r[0]&&_r[1]&&_e.isAfter(_r[1],_r[0])&&(vt=_r);var kt=pt;if(pt&&Object(g.a)(pt)==="object"&&pt.defaultValue){var hn=pt.defaultValue;kt=Object(a.a)(Object(a.a)({},pt),{},{defaultValue:ee(hn,It)||void 0})}var Nr=null;return cr&&(Nr=function(or,gr){return cr(or,gr,{range:It?"end":"start"})}),e.createElement(Ue.Provider,{value:{inRange:!0,panelPosition:Nt,rangedValue:Xa||fn,hoverRangedValue:vt}},e.createElement(wt,Object.assign({},L,at,{dateRender:Nr,showTime:kt,mode:Kt[It],generateConfig:_e,style:void 0,direction:nr,disabledDate:It===0?Wr:kr,disabledTime:function(or){return dr?dr(or,It===0?"start":"end"):!1},className:l()(Object(u.a)({},"".concat(Ee,"-panel-focused"),It===0?!Da:!Na)),value:ee(fn,It),locale:Je,tabIndex:-1,onPanelChange:function(or,gr){Vr(X(Kt,gr,It),X(fn,or,It));var Er=or;Nt==="right"&&Kt[It]===gr&&(Er=Se(Er,gr,_e,-1)),vr(Er,It)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ur=0,ja=0;It&&Mn.current&&mr.current&&Rn.current&&(Ur=Mn.current.offsetWidth+mr.current.offsetWidth,Rn.current.offsetWidth&&Ur>Rn.current.offsetWidth&&(ja=Ur));var po=nr==="rtl"?{right:Ur}:{left:Ur};function vo(){var Nt,at=Nn(Ee,Kt[It],Fn),vt=Kn({prefixCls:Ee,components:wr,needConfirmButton:Dr,okDisabled:!ee(fn,It)||ur&&ur(fn[It]),locale:Je,rangeList:mo,onOk:function(){ee(fn,It)&&(zr(fn,It),$n&&$n(fn))}});if(ht!=="time"&&!pt){var kt=Pr(It),hn=Se(kt,ht,_e),Nr=Kt[It],yr=Nr===ht,or=aa(yr?"left":!1,{pickerValue:kt,onPickerValueChange:function(qn){vr(qn,It)}}),gr=aa("right",{pickerValue:hn,onPickerValueChange:function(qn){vr(Se(qn,ht,_e,-1),It)}});nr==="rtl"?Nt=e.createElement(e.Fragment,null,gr,yr&&or):Nt=e.createElement(e.Fragment,null,or,yr&&gr)}else Nt=aa();var Er=e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Ee,"-panels")},Nt),(at||vt)&&e.createElement("div",{className:"".concat(Ee,"-footer")},at,vt));return fr&&(Er=fr(Er)),e.createElement("div",{className:"".concat(Ee,"-panel-container"),style:{marginLeft:ja},ref:Rn,onMouseDown:function(qn){qn.preventDefault()}},Er)}var go=e.createElement("div",{className:l()("".concat(Ee,"-range-wrapper"),"".concat(Ee,"-").concat(ht,"-range-wrapper")),style:{minWidth:Fa}},e.createElement("div",{className:"".concat(Ee,"-range-arrow"),style:po}),vo()),La;tr&&(La=e.createElement("span",{className:"".concat(Ee,"-suffix")},tr));var ka;Cr&&(ee(dn,0)&&!nn[0]||ee(dn,1)&&!nn[1])&&(ka=e.createElement("span",{onMouseDown:function(at){at.preventDefault(),at.stopPropagation()},onMouseUp:function(at){at.preventDefault(),at.stopPropagation();var vt=dn;nn[0]||(vt=X(vt,null,0)),nn[1]||(vt=X(vt,null,1)),zr(vt,null),Br(!1,It)},className:"".concat(Ee,"-clear")},Ar||e.createElement("span",{className:"".concat(Ee,"-clear-btn")})));var Ba={size:n(ht,gn[0])},oa=0,ia=0;Mn.current&&Pn.current&&mr.current&&(It===0?ia=Mn.current.offsetWidth:(oa=Ur,ia=Pn.current.offsetWidth));var bo=nr==="rtl"?{right:oa}:{left:oa},yo=function(at,vt){var kt=X(fn,at,It);vt==="submit"||vt!=="key"&&!Dr?(zr(kt,It),It===0?Aa():wa()):Xn(kt)};return e.createElement(T.Provider,{value:{operationRef:Jn,hideHeader:ht==="time",onDateMouseEnter:no,onDateMouseLeave:ro,hideRanges:!0,onSelect:yo,open:Bn}},e.createElement(Dt,{visible:Bn,popupElement:go,popupStyle:Ve,prefixCls:Ee,dropdownClassName:qe,dropdownAlign:Ie,getPopupContainer:He,transitionName:Ye,range:!0,direction:nr},e.createElement("div",Object.assign({ref:rr,className:l()(Ee,"".concat(Ee,"-range"),Ke,(ue={},Object(u.a)(ue,"".concat(Ee,"-disabled"),nn[0]&&nn[1]),Object(u.a)(ue,"".concat(Ee,"-focused"),It===0?Ta:Ia),Object(u.a)(ue,"".concat(Ee,"-rtl"),nr==="rtl"),ue)),style:Be,onClick:lo,onMouseDown:uo},oe(L)),e.createElement("div",{className:l()("".concat(Ee,"-input"),(pe={},Object(u.a)(pe,"".concat(Ee,"-input-active"),It===0),Object(u.a)(pe,"".concat(Ee,"-input-placeholder"),!!Ca),pe)),ref:Mn},e.createElement("input",Object.assign({id:Pe,disabled:nn[0],readOnly:tn||!Da,value:Ca||Xr,onChange:function(at){ha(at.target.value)},autoFocus:rt,placeholder:ee(Qe,0)||"",ref:yn},oo,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-range-separator"),ref:mr},pn),e.createElement("div",{className:l()("".concat(Ee,"-input"),(me={},Object(u.a)(me,"".concat(Ee,"-input-active"),It===1),Object(u.a)(me,"".concat(Ee,"-input-placeholder"),!!xa),me)),ref:Pn},e.createElement("input",Object.assign({disabled:nn[1],readOnly:tn||!Na,value:xa||Zr,onChange:function(at){pa(at.target.value)},placeholder:ee(Qe,1)||"",ref:ar},so,Ba,{autoComplete:Yn}))),e.createElement("div",{className:"".concat(Ee,"-active-bar"),style:Object(a.a)(Object(a.a)({},bo),{},{width:ia,position:"absolute"})}),La,ka)))}var Hn=function(L){Object(p.a)(pe,L);var ue=Object(m.a)(pe);function pe(){var me;return Object(O.a)(this,pe),me=ue.apply(this,arguments),me.pickerRef=e.createRef(),me.focus=function(){me.pickerRef.current&&me.pickerRef.current.focus()},me.blur=function(){me.pickerRef.current&&me.pickerRef.current.blur()},me}return Object(f.a)(pe,[{key:"render",value:function(){return e.createElement(_n,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),pe}(e.Component),_a=Hn,Eo=w.b=sr},onxn:function(ie,w){ie.exports="data:image/png;base64,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"},pzxd:function(ie,w,t){var O=t("bYtY"),f=O.retrieve2,p=O.retrieve3,m=O.each,u=O.normalizeCssArray,a=O.isString,r=O.isObject,e=t("6GrX"),i=t("VpOo"),l=t("Xnb7"),s=t("fW2E"),d=t("gut8"),g=d.ContextCachedBy,y=d.WILL_BE_RESTORED,b=e.DEFAULT_FONT,T={left:1,right:1,center:1},P={top:1,bottom:1,middle:1},I=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],v={},E={};function h(H){return D(H),m(H.rich,D),H}function D(H){if(H){H.font=e.makeFont(H);var x=H.textAlign;x==="middle"&&(x="center"),H.textAlign=x==null||T[x]?x:"left";var V=H.textVerticalAlign||H.textBaseline;V==="center"&&(V="middle"),H.textVerticalAlign=V==null||P[V]?V:"top";var G=H.textPadding;G&&(H.textPadding=u(H.textPadding))}}function j(H,x,V,G,oe,ee){G.rich?M(H,x,V,G,oe,ee):Q(H,x,V,G,oe,ee)}function Q(H,x,V,G,oe,ee){"use strict";var X=B(G),q,se=!1,ae=x.__attrCachedBy===g.PLAIN_TEXT;ee!==y?(ee&&(q=ee.style,se=!X&&ae&&q),x.__attrCachedBy=X?g.NONE:g.PLAIN_TEXT):ae&&(x.__attrCachedBy=g.NONE);var ve=G.font||b;(!se||ve!==(q.font||b))&&(x.font=ve);var W=H.__computedFont;H.__styleFont!==ve&&(H.__styleFont=ve,W=H.__computedFont=x.font);var re=G.textPadding,R=G.textLineHeight,$=H.__textCotentBlock;(!$||H.__dirtyText)&&($=H.__textCotentBlock=e.parsePlainText(V,W,re,R,G.truncate));var fe=$.outerHeight,F=$.lines,C=$.lineHeight,S=A(E,H,G,oe),z=S.baseX,te=S.baseY,de=S.textAlign||"left",he=S.textVerticalAlign;o(x,G,oe,z,te);var Me=e.adjustTextY(te,fe,he),ce=z,be=Me;if(X||re){var Ae=e.getWidth(V,W),ye=Ae;re&&(ye+=re[1]+re[3]);var ke=e.adjustTextX(z,ye,de);X&&k(H,x,G,ke,Me,ye,fe),re&&(ce=Z(z,de,re),be+=re[0])}x.textAlign=de,x.textBaseline="middle",x.globalAlpha=G.opacity||1;for(var Se=0;Se=0&&(Se=de[ke],Se.textAlign==="right");)n(H,x,Se,G,Me,C,ye,"right"),ce-=Se.width,ye-=Se.width,ke--;for(Ae+=(ee-(Ae-F)-(S-ye)-ce)/2;be<=ke;)Se=de[be],n(H,x,Se,G,Me,C,Ae+Se.width/2,"center"),Ae+=Se.width,be++;C+=Me}}function o(H,x,V,G,oe){if(V&&x.textRotation){var ee=x.textOrigin;ee==="center"?(G=V.width/2+V.x,oe=V.height/2+V.y):ee&&(G=ee[0]+V.x,oe=ee[1]+V.y),H.translate(G,oe),H.rotate(-x.textRotation),H.translate(-G,-oe)}}function n(H,x,V,G,oe,ee,X,q){var se=G.rich[V.styleName]||{};se.text=V.text;var ae=V.textVerticalAlign,ve=ee+oe/2;ae==="top"?ve=ee+V.height/2:ae==="bottom"&&(ve=ee+oe-V.height/2),!V.isLineHolder&&B(se)&&k(H,x,se,q==="right"?X-V.width:q==="center"?X-V.width/2:X,ve-V.height/2,V.width,V.height);var W=V.textPadding;W&&(X=Z(X,q,W),ve-=V.height/2-W[2]-V.textHeight/2),U(x,"shadowBlur",p(se.textShadowBlur,G.textShadowBlur,0)),U(x,"shadowColor",se.textShadowColor||G.textShadowColor||"transparent"),U(x,"shadowOffsetX",p(se.textShadowOffsetX,G.textShadowOffsetX,0)),U(x,"shadowOffsetY",p(se.textShadowOffsetY,G.textShadowOffsetY,0)),U(x,"textAlign",q),U(x,"textBaseline","middle"),U(x,"font",V.font||b);var re=_(se.textStroke||G.textStroke,$),R=K(se.textFill||G.textFill),$=f(se.textStrokeWidth,G.textStrokeWidth);re&&(U(x,"lineWidth",$),U(x,"strokeStyle",re),x.strokeText(V.text,X,ve)),R&&(U(x,"fillStyle",R),x.fillText(V.text,X,ve))}function B(H){return!!(H.textBackgroundColor||H.textBorderWidth&&H.textBorderColor)}function k(H,x,V,G,oe,ee,X){var q=V.textBackgroundColor,se=V.textBorderWidth,ae=V.textBorderColor,ve=a(q);if(U(x,"shadowBlur",V.textBoxShadowBlur||0),U(x,"shadowColor",V.textBoxShadowColor||"transparent"),U(x,"shadowOffsetX",V.textBoxShadowOffsetX||0),U(x,"shadowOffsetY",V.textBoxShadowOffsetY||0),ve||se&&ae){x.beginPath();var W=V.textBorderRadius;W?i.buildPath(x,{x:G,y:oe,width:ee,height:X,r:W}):x.rect(G,oe,ee,X),x.closePath()}if(ve)if(U(x,"fillStyle",q),V.fillOpacity!=null){var re=x.globalAlpha;x.globalAlpha=V.fillOpacity*V.opacity,x.fill(),x.globalAlpha=re}else x.fill();else if(r(q)){var R=q.image;R=l.createOrUpdateImage(R,null,H,N,q),R&&l.isImageReady(R)&&x.drawImage(R,G,oe,ee,X)}if(se&&ae)if(U(x,"lineWidth",se),U(x,"strokeStyle",ae),V.strokeOpacity!=null){var re=x.globalAlpha;x.globalAlpha=V.strokeOpacity*V.opacity,x.stroke(),x.globalAlpha=re}else x.stroke()}function N(H,x){x.image=H}function A(H,x,V,G){var oe=V.x||0,ee=V.y||0,X=V.textAlign,q=V.textVerticalAlign;if(G){var se=V.textPosition;if(se instanceof Array)oe=G.x+J(se[0],G.width),ee=G.y+J(se[1],G.height);else{var ae=x&&x.calculateTextPosition?x.calculateTextPosition(v,V,G):e.calculateTextPosition(v,V,G);oe=ae.x,ee=ae.y,X=X||ae.textAlign,q=q||ae.textVerticalAlign}var ve=V.textOffset;ve&&(oe+=ve[0],ee+=ve[1])}return H=H||{},H.baseX=oe,H.baseY=ee,H.textAlign=X,H.textVerticalAlign=q,H}function U(H,x,V){return H[x]=s(H,x,V),H[x]}function _(H,x){return H==null||x<=0||H==="transparent"||H==="none"?null:H.image||H.colorStops?"#000":H}function K(H){return H==null||H==="none"?null:H.image||H.colorStops?"#000":H}function J(H,x){return typeof H=="string"?H.lastIndexOf("%")>=0?parseFloat(H)/100*x:parseFloat(H):H}function Z(H,x,V){return x==="right"?H-V[1]:x==="center"?H+V[3]/2-V[1]/2:H+V[3]}function Y(H,x){return H!=null&&(H||x.textBackgroundColor||x.textBorderWidth&&x.textBorderColor||x.textPadding)}w.normalizeTextStyle=h,w.renderText=j,w.getBoxPosition=A,w.getStroke=_,w.getFill=K,w.parsePercent=J,w.needDrawText=Y},qH13:function(ie,w,t){var O=t("ItGF"),f=t("QBsz"),p=f.applyTransform,m=t("mFDi"),u=t("Qe9p"),a=t("6GrX"),r=t("pzxd"),e=t("ni6a"),i=t("Gev7"),l=t("Dagg"),s=t("dqUG"),d=t("y+Vt"),g=t("IMiH"),y=t("QuXc"),b=t("06Qe"),T=g.CMD,P=Math.round,I=Math.sqrt,v=Math.abs,E=Math.cos,h=Math.sin,D=Math.max;if(!O.canvasSupported){var j=",",Q="progid:DXImageTransform.Microsoft",M=21600,c=M/2,o=1e5,n=1e3,B=function(z){z.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",z.coordsize=M+","+M,z.coordorigin="0,0"},k=function(z){return String(z).replace(/&/g,"&").replace(/"/g,""")},N=function(z,te,de){return"rgb("+[z,te,de].join(",")+")"},A=function(z,te){te&&z&&te.parentNode!==z&&z.appendChild(te)},U=function(z,te){te&&z&&te.parentNode===z&&z.removeChild(te)},_=function(z,te,de){return(parseFloat(z)||0)*o+(parseFloat(te)||0)*n+de},K=r.parsePercent,J=function(z,te,de){var he=u.parse(te);de=+de,isNaN(de)&&(de=1),he&&(z.color=N(he[0],he[1],he[2]),z.opacity=de*he[3])},Z=function(z){var te=u.parse(z);return[N(te[0],te[1],te[2]),te[3]]},Y=function(z,te,de){var he=te.fill;if(he!=null)if(he instanceof y){var Me,ce=0,be=[0,0],Ae=0,ye=1,ke=de.getBoundingRect(),Se=ke.width,Ne=ke.height;if(he.type==="linear"){Me="gradient";var Ue=de.transform,$e=[he.x*Se,he.y*Ne],We=[he.x2*Se,he.y2*Ne];Ue&&(p($e,$e,Ue),p(We,We,Ue));var nt=We[0]-$e[0],et=We[1]-$e[1];ce=Math.atan2(nt,et)*180/Math.PI,ce<0&&(ce+=360),ce<1e-6&&(ce=0)}else{Me="gradientradial";var $e=[he.x*Se,he.y*Ne],Ue=de.transform,Xe=de.scale,st=Se,ut=Ne;be=[($e[0]-ke.x)/st,($e[1]-ke.y)/ut],Ue&&p($e,$e,Ue),st/=Xe[0]*M,ut/=Xe[1]*M;var ct=D(st,ut);Ae=2*0/ct,ye=2*he.r/ct-Ae}var Ze=he.colorStops.slice();Ze.sort(function(ge,ne){return ge.offset-ne.offset});for(var bt=Ze.length,lt=[],Et=[],jt=0;jt=2){var rn=lt[0][0],ze=lt[1][0],Ce=lt[0][1]*te.opacity,Oe=lt[1][1]*te.opacity;z.type=Me,z.method="none",z.focus="100%",z.angle=ce,z.color=rn,z.color2=ze,z.colors=Et.join(","),z.opacity=Oe,z.opacity2=Ce}Me==="radial"&&(z.focusposition=be.join(","))}else J(z,he,te.opacity)},H=function(z,te){te.lineDash&&(z.dashstyle=te.lineDash.join(" ")),te.stroke!=null&&!(te.stroke instanceof y)&&J(z,te.stroke,te.opacity)},x=function(z,te,de,he){var Me=te==="fill",ce=z.getElementsByTagName(te)[0];de[te]!=null&&de[te]!=="none"&&(Me||!Me&&de.lineWidth)?(z[Me?"filled":"stroked"]="true",de[te]instanceof y&&U(z,ce),ce||(ce=b.createNode(te)),Me?Y(ce,de,he):H(ce,de),A(z,ce)):(z[Me?"filled":"stroked"]="false",U(z,ce))},V=[[],[],[]],G=function(z,te){var de=T.M,he=T.C,Me=T.L,ce=T.A,be=T.Q,Ae=[],ye,ke,Se,Ne,Ue,$e,We=z.data,nt=z.len();for(Ne=0;Ne.01?ne&&(le+=270/M):Math.abs(we-rn)<1e-4?ne&&leGt?Xe-=270/M:Xe+=270/M:ne&&wern?et+=270/M:et-=270/M),Ae.push(xe,P(((Gt-ze)*Et+bt)*M-c),j,P(((rn-Ce)*jt+lt)*M-c),j,P(((Gt+ze)*Et+bt)*M-c),j,P(((rn+Ce)*jt+lt)*M-c),j,P((le*Et+bt)*M-c),j,P((we*jt+lt)*M-c),j,P((et*Et+bt)*M-c),j,P((Xe*jt+lt)*M-c)),Ue=et,$e=Xe;break;case T.R:var Re=V[0],je=V[1];Re[0]=We[Ne++],Re[1]=We[Ne++],je[0]=Re[0]+We[Ne++],je[1]=Re[1]+We[Ne++],te&&(p(Re,Re,te),p(je,je,te)),Re[0]=P(Re[0]*M-c),je[0]=P(je[0]*M-c),Re[1]=P(Re[1]*M-c),je[1]=P(je[1]*M-c),Ae.push(" m ",Re[0],j,Re[1]," l ",je[0],j,Re[1]," l ",je[0],j,je[1]," l ",Re[0],j,je[1]);break;case T.Z:Ae.push(" x ")}if(ye>0){Ae.push(ke);for(var Te=0;Tese&&(q=0,X={});var de=ae.style,he;try{de.font=z,he=de.fontFamily.split(",")[0]}catch(Me){}te={style:de.fontStyle||ee,variant:de.fontVariant||ee,weight:de.fontWeight||ee,size:parseFloat(de.fontSize||12)|0,family:he||"Microsoft YaHei"},X[z]=te,q++}return te},W;a.$override("measureText",function(z,te){var de=b.doc;W||(W=de.createElement("div"),W.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",b.doc.body.appendChild(W));try{W.style.font=te}catch(he){}return W.innerHTML="",W.appendChild(de.createTextNode(z)),{width:W.offsetWidth}});for(var re=new m,R=function(z,te,de,he){var Me=this.style;this.__dirty&&r.normalizeTextStyle(Me,!0);var ce=Me.text;if(ce!=null&&(ce+=""),!ce)return;if(Me.rich){var be=a.parseRichText(ce,Me);ce=[];for(var Ae=0;Ae=0&&A<=6&&(U===0||U===6)||U>=0&&U<=6&&(A===0||A===6)||A>=2&&A<=4&&U>=2&&U<=4?M.set(k+A,N+U,!0,!0):M.set(k+A,N+U,!1,!0)}}}function P(M){for(var c=M.size,o=8;o>A&1)===1,M.set(B,k,N,!0),M.set(k,B,N,!0)}function E(M,c,o){var n=M.size,B=d.getEncodedBits(c,o),k,N;for(k=0;k<15;k++)N=(B>>k&1)===1,k<6?M.set(k,8,N,!0):k<8?M.set(k+1,8,N,!0):M.set(n-15+k,8,N,!0),k<8?M.set(8,n-k-1,N,!0):k<9?M.set(8,15-k-1+1,N,!0):M.set(8,15-k-1,N,!0);M.set(n-8,8,1,!0)}function h(M,c){for(var o=M.size,n=-1,B=o-1,k=7,N=0,A=o-1;A>0;A-=2)for(A===6&&A--;;){for(var U=0;U<2;U++)if(!M.isReserved(B,A-U)){var _=!1;N>>k&1)===1),M.set(B,A-U,_),k--,k===-1&&(N++,k=7)}if(B+=n,B<0||o<=B){B-=n,n=-n;break}}}function D(M,c,o){var n=new m;o.forEach(function(_){n.put(_.mode.bit,4),n.put(_.getLength(),g.getCharCountIndicator(_.mode,M)),_.write(n)});var B=f.getSymbolTotalCodewords(M),k=i.getTotalCodewordsCount(M,c),N=(B-k)*8;for(n.getLengthInBits()+4<=N&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var A=(N-n.getLengthInBits())/8,U=0;U=7&&v(K,c),h(K,U),isNaN(n)&&(n=e.getBestMask(K,E.bind(null,K,o))),e.applyMask(n,K),E(K,o,n),{modules:K,version:c,errorCorrectionLevel:o,maskPattern:n,segments:B}}w.create=function(c,o){if(typeof c=="undefined"||c==="")throw new Error("No input text");var n=p.M,B,k;return typeof o!="undefined"&&(n=p.from(o.errorCorrectionLevel,p.M),B=s.from(o.version),k=e.from(o.maskPattern),o.toSJISFunc&&f.setToSJISFunction(o.toSJISFunc)),Q(c,B,n,k)}},r6Bn:function(ie,w,t){var O=t("bYtY"),f=t("ItGF"),p=t("4fz+"),m=t("BPZU");function u(e,i){return e.zlevel===i.zlevel?e.z===i.z?e.z2-i.z2:e.z-i.z:e.zlevel-i.zlevel}var a=function(){this._roots=[],this._displayList=[],this._displayListLen=0};a.prototype={constructor:a,traverse:function(e,i){for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(d,1),e instanceof p&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u};var r=a;ie.exports=r},rA99:function(ie,w,t){var O=t("y+Vt"),f=t("QBsz"),p=t("Sj9i"),m=p.quadraticSubdivide,u=p.cubicSubdivide,a=p.quadraticAt,r=p.cubicAt,e=p.quadraticDerivativeAt,i=p.cubicDerivativeAt,l=[];function s(g,y,b){var D=g.cpx2,P=g.cpy2;return D===null||P===null?[(b?i:r)(g.x1,g.cpx1,g.cpx2,g.x2,y),(b?i:r)(g.y1,g.cpy1,g.cpy2,g.y2,y)]:[(b?e:a)(g.x1,g.cpx1,g.x2,y),(b?e:a)(g.y1,g.cpy1,g.y2,y)]}var d=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,y){var b=y.x1,D=y.y1,P=y.x2,I=y.y2,v=y.cpx1,E=y.cpy1,h=y.cpx2,T=y.cpy2,j=y.percent;if(j===0)return;g.moveTo(b,D),h==null||T==null?(j<1&&(m(b,v,P,j,l),v=l[1],P=l[2],m(D,E,I,j,l),E=l[1],I=l[2]),g.quadraticCurveTo(v,E,P,I)):(j<1&&(u(b,v,h,P,j,l),v=l[1],h=l[2],P=l[3],u(D,E,T,I,j,l),E=l[1],T=l[2],I=l[3]),g.bezierCurveTo(v,E,h,T,P,I))},pointAt:function(g){return s(this.shape,g,!1)},tangentAt:function(g){var y=s(this.shape,g,!0);return f.normalize(y,y)}});ie.exports=d},rHrb:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CopyToClipboard=void 0;var O=p(t("q1tI")),f=p(t("+QRC"));function p(v){return v&&v.__esModule?v:{default:v}}function m(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(h){return typeof h}:m=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},m(v)}function u(v,E){var h=Object.keys(v);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(v);E&&(T=T.filter(function(j){return Object.getOwnPropertyDescriptor(v,j).enumerable})),h.push.apply(h,T)}return h}function a(v){for(var E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(v,T))continue;h[T]=v[T]}}return h}function e(v,E){if(v==null)return{};var h={},T=Object.keys(v),j,Q;for(Q=0;Q=0)continue;h[j]=v[j]}return h}function i(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function l(v,E){for(var h=0;h-1)){var y=m.parse(g)[3],b=m.toHex(g);d.setAttribute("stop-color","#"+b),d.setAttribute("stop-opacity",y)}else d.setAttribute("stop-color",i[l].color);e.appendChild(d)}r._dom=e},u.prototype.markUsed=function(r){if(r.style){var e=r.style.fill;e&&e._dom&&O.prototype.markUsed.call(this,e._dom),e=r.style.stroke,e&&e._dom&&O.prototype.markUsed.call(this,e._dom)}};var a=u;ie.exports=a},sboe:function(ie,w,t){"use strict";t.d(w,"a",function(){return p});var O=t("q1tI"),f=t.n(O),p=O.createContext(null)},tWlo:function(ie,w){ie.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=="},"u/Db":function(ie,w,t){var O=t("J6Nv"),f=t("BCVQ");w.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},w.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},w.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},w.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},w.MIXED={bit:-1},w.getCharCountIndicator=function(u,a){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!O.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?u.ccBits[0]:a<27?u.ccBits[1]:u.ccBits[2]},w.getBestModeForData=function(u){return f.testNumeric(u)?w.NUMERIC:f.testAlphanumeric(u)?w.ALPHANUMERIC:f.testKanji(u)?w.KANJI:w.BYTE},w.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")},w.isValid=function(u){return u&&u.bit&&u.ccBits};function p(m){if(typeof m!="string")throw new Error("Param is not a string");var u=m.toLowerCase();switch(u){case"numeric":return w.NUMERIC;case"alphanumeric":return w.ALPHANUMERIC;case"kanji":return w.KANJI;case"byte":return w.BYTE;default:throw new Error("Unknown mode: "+m)}}w.from=function(u,a){if(w.isValid(u))return u;try{return p(u)}catch(r){return a}}},u3os:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ver=w.clear=w.bind=void 0;var O=t("P4Qj"),f=function(a,r){var e=(0,O.getSensor)(a);return e.bind(r),function(){e.unbind(r)}};w.bind=f;var p=function(a){var r=(0,O.getSensor)(a);(0,O.removeSensor)(r)};w.clear=p;var m="1.0.1";w.ver=m},vKoX:function(ie,w,t){var O=t("SrGk"),f=t("bYtY");function p(a,r){O.call(this,a,r,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(p,O),p.prototype.addWithoutUpdate=function(a,r){if(r&&m(r.style)){var e;if(r._shadowDom){e=r._shadowDom;var i=this.getDefs(!0);i.contains(r._shadowDom)||this.addDom(e)}else e=this.add(r);this.markUsed(r);var l=e.getAttribute("id");a.style.filter="url(#"+l+")"}},p.prototype.add=function(a){var r=this.createElement("filter");return a._shadowDomId=a._shadowDomId||this.nextId++,r.setAttribute("id","zr"+this._zrId+"-shadow-"+a._shadowDomId),this.updateDom(a,r),this.addDom(r),r},p.prototype.update=function(a,r){var e=r.style;if(m(e)){var i=this;O.prototype.update.call(this,r,function(){i.updateDom(r,r._shadowDom)})}else this.remove(a,r)},p.prototype.remove=function(a,r){r._shadowDomId!=null&&(this.removeDom(a),a.style.filter="")},p.prototype.updateDom=function(a,r){var e=r.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var i=a.style,l=a.scale&&a.scale[0]||1,s=a.scale&&a.scale[1]||1,d,g,y,b;if(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)d=i.shadowOffsetX||0,g=i.shadowOffsetY||0,y=i.shadowBlur,b=i.shadowColor;else if(i.textShadowBlur)d=i.textShadowOffsetX||0,g=i.textShadowOffsetY||0,y=i.textShadowBlur,b=i.textShadowColor;else{this.removeDom(r,i);return}e.setAttribute("dx",d/l),e.setAttribute("dy",g/s),e.setAttribute("flood-color",b);var D=y/2/l,P=y/2/s,I=D+" "+P;e.setAttribute("stdDeviation",I),r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width",Math.ceil(y/2*200)+"%"),r.setAttribute("height",Math.ceil(y/2*200)+"%"),r.appendChild(e),a._shadowDom=r},p.prototype.markUsed=function(a){a._shadowDom&&O.prototype.markUsed.call(this,a._shadowDom)};function m(a){return a&&(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY||a.textShadowBlur||a.textShadowOffsetX||a.textShadowOffsetY)}var u=p;ie.exports=u},vWvF:function(ie,w,t){var O=t("Bq2U"),f=t("SUKs"),p=t("bYtY"),m=p.isString,u=p.isFunction,a=p.isObject,r=p.isArrayLike,e=p.indexOf,i=function(){this.animators=[]};i.prototype={constructor:i,animate:function(y,b){var D,P=!1,I=this,v=this.__zr;if(y){var E=y.split("."),h=I;P=E[0]==="shape";for(var T=0,j=E.length;T0&&y.animate(b,!1).when(I==null?500:I,h).delay(v||0)}function d(y,b,D,P){if(!b)y.attr(D,P);else{var I={};I[b]={},I[b][D]=P,y.attr(I)}}var g=i;ie.exports=g},vvrf:function(ie,w,t){var O=t("u/Db"),f=t("3X7Y"),p=t("nZSm"),m=t("AZa5"),u=t("Lzq4"),a=t("BCVQ"),r=t("e/Dd"),e=t("ELBg");function i(P){return unescape(encodeURIComponent(P)).length}function l(P,I,v){for(var E=[],h;(h=P.exec(v))!==null;)E.push({data:h[0],index:h.index,mode:I,length:h[0].length});return E}function s(P){var I=l(a.NUMERIC,O.NUMERIC,P),v=l(a.ALPHANUMERIC,O.ALPHANUMERIC,P),E,h;r.isKanjiModeEnabled()?(E=l(a.BYTE,O.BYTE,P),h=l(a.KANJI,O.KANJI,P)):(E=l(a.BYTE_KANJI,O.BYTE,P),h=[]);var T=I.concat(v,E,h);return T.sort(function(j,Q){return j.index-Q.index}).map(function(j){return{data:j.data,mode:j.mode,length:j.length}})}function d(P,I){switch(I){case O.NUMERIC:return f.getBitsLength(P);case O.ALPHANUMERIC:return p.getBitsLength(P);case O.KANJI:return u.getBitsLength(P);case O.BYTE:return m.getBitsLength(P)}}function g(P){return P.reduce(function(I,v){var E=I.length-1>=0?I[I.length-1]:null;return E&&E.mode===v.mode?(I[I.length-1].data+=v.data,I):(I.push(v),I)},[])}function y(P){for(var I=[],v=0;v1e-10&&(b.width+=D/P,b.height+=D/P,b.x-=D/P/2,b.y-=D/P/2)}return b}return s},contain:function(s,d){var g=this.transformCoordToLocal(s,d),y=this.getBoundingRect(),b=this.style;if(s=g[0],d=g[1],y.contain(s,d)){var D=this.path.data;if(b.hasStroke()){var P=b.lineWidth,I=b.strokeNoScale?this.getLineScale():1;if(I>1e-10&&(b.hasFill()||(P=Math.max(P,this.strokeContainThreshold)),m.containStroke(D,P/I,s,d)))return!0}if(b.hasFill())return m.contain(D,s,d)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,d){s==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,s,d)},setShape:function(s,d){var g=this.shape;if(g){if(f.isObject(s))for(var y in s)s.hasOwnProperty(y)&&(g[y]=s[y]);else g[s]=d;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&r(s[0]-1)>1e-10&&r(s[3]-1)>1e-10?Math.sqrt(r(s[0]*s[3]-s[2]*s[1])):1}},i.extend=function(s){var d=function(y){i.call(this,y),s.style&&this.style.extendFrom(s.style,!1);var b=s.shape;if(b){this.shape=this.shape||{};var D=this.shape;for(var P in b)!D.hasOwnProperty(P)&&b.hasOwnProperty(P)&&(D[P]=b[P])}s.init&&s.init.call(this,y)};f.inherits(d,i);for(var g in s)g!=="style"&&g!=="shape"&&(d.prototype[g]=s[g]);return d},f.inherits(i,O);var l=i;ie.exports=l},y23F:function(ie,w){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}t.prototype={constructor:t,_dragStart:function(p){for(var m=p.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=p.offsetX,this._y=p.offsetY,this.dispatchToElement(O(m,p),"dragstart",p.event))},_drag:function(p){var m=this._draggingTarget;if(m){var u=p.offsetX,a=p.offsetY,r=u-this._x,e=a-this._y;this._x=u,this._y=a,m.drift(r,e,p),this.dispatchToElement(O(m,p),"drag",p.event);var i=this.findHover(u,a,m).target,l=this._dropTarget;this._dropTarget=i,m!==i&&(l&&i!==l&&this.dispatchToElement(O(l,p),"dragleave",p.event),i&&i!==l&&this.dispatchToElement(O(i,p),"dragenter",p.event))}},_dragEnd:function(p){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(O(m,p),"dragend",p.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,p),"drop",p.event),this._draggingTarget=null,this._dropTarget=null}};function O(p,m){return{target:p,topTarget:m&&m.topTarget}}var f=t;ie.exports=f},yKow:function(ie,w,t){var O=t("e/Dd"),f=t("NPxG"),p=t("ekOh"),m=t("u/Db"),u=t("J6Nv"),a=t("7uVY"),r=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,e=O.getBCHDigit(r);function i(g,y,b){for(var D=1;D<=40;D++)if(y<=w.getCapacity(D,b,g))return D;return}function l(g,y){return m.getCharCountIndicator(g,y)+4}function s(g,y){var b=0;return g.forEach(function(D){var P=l(D.mode,y);b+=P+D.getBitsLength()}),b}function d(g,y){for(var b=1;b<=40;b++){var D=s(g,b);if(D<=w.getCapacity(b,y,m.MIXED))return b}return}w.from=function(y,b){return u.isValid(y)?parseInt(y,10):b},w.getCapacity=function(y,b,D){if(!u.isValid(y))throw new Error("Invalid QR Code version");typeof D=="undefined"&&(D=m.BYTE);var P=O.getSymbolTotalCodewords(y),I=f.getTotalCodewordsCount(y,b),v=(P-I)*8;if(D===m.MIXED)return v;var E=v-l(D,y);switch(D){case m.NUMERIC:return Math.floor(E/10*3);case m.ALPHANUMERIC:return Math.floor(E/11*2);case m.KANJI:return Math.floor(E/13);case m.BYTE:default:return Math.floor(E/8)}},w.getBestVersionForData=function(y,b){var D,P=p.from(b,p.M);if(a(y)){if(y.length>1)return d(y,P);if(y.length===0)return 1;D=y[0]}else D=y;return i(D.mode,D.getLength(),P)},w.getEncodedBits=function(y){if(!u.isValid(y)||y<7)throw new Error("Invalid QR Code version");for(var b=y<<12;O.getBCHDigit(b)-e>=0;)b^=r<=7&&v(K,c),h(K,U),isNaN(n)&&(n=e.getBestMask(K,E.bind(null,K,o))),e.applyMask(n,K),E(K,o,n),{modules:K,version:c,errorCorrectionLevel:o,maskPattern:n,segments:B}}w.create=function(c,o){if(typeof c=="undefined"||c==="")throw new Error("No input text");var n=p.M,B,k;return typeof o!="undefined"&&(n=p.from(o.errorCorrectionLevel,p.M),B=s.from(o.version),k=e.from(o.maskPattern),o.toSJISFunc&&f.setToSJISFunction(o.toSJISFunc)),Q(c,B,n,k)}},r6Bn:function(ie,w,t){var O=t("bYtY"),f=t("ItGF"),p=t("4fz+"),m=t("BPZU");function u(e,i){return e.zlevel===i.zlevel?e.z===i.z?e.z2-i.z2:e.z-i.z:e.zlevel-i.zlevel}var a=function(){this._roots=[],this._displayList=[],this._displayListLen=0};a.prototype={constructor:a,traverse:function(e,i){for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(d,1),e instanceof p&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:u};var r=a;ie.exports=r},rA99:function(ie,w,t){var O=t("y+Vt"),f=t("QBsz"),p=t("Sj9i"),m=p.quadraticSubdivide,u=p.cubicSubdivide,a=p.quadraticAt,r=p.cubicAt,e=p.quadraticDerivativeAt,i=p.cubicDerivativeAt,l=[];function s(g,y,b){var T=g.cpx2,P=g.cpy2;return T===null||P===null?[(b?i:r)(g.x1,g.cpx1,g.cpx2,g.x2,y),(b?i:r)(g.y1,g.cpy1,g.cpy2,g.y2,y)]:[(b?e:a)(g.x1,g.cpx1,g.x2,y),(b?e:a)(g.y1,g.cpy1,g.y2,y)]}var d=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(g,y){var b=y.x1,T=y.y1,P=y.x2,I=y.y2,v=y.cpx1,E=y.cpy1,h=y.cpx2,D=y.cpy2,j=y.percent;if(j===0)return;g.moveTo(b,T),h==null||D==null?(j<1&&(m(b,v,P,j,l),v=l[1],P=l[2],m(T,E,I,j,l),E=l[1],I=l[2]),g.quadraticCurveTo(v,E,P,I)):(j<1&&(u(b,v,h,P,j,l),v=l[1],h=l[2],P=l[3],u(T,E,D,I,j,l),E=l[1],D=l[2],I=l[3]),g.bezierCurveTo(v,E,h,D,P,I))},pointAt:function(g){return s(this.shape,g,!1)},tangentAt:function(g){var y=s(this.shape,g,!0);return f.normalize(y,y)}});ie.exports=d},rHrb:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CopyToClipboard=void 0;var O=p(t("q1tI")),f=p(t("+QRC"));function p(v){return v&&v.__esModule?v:{default:v}}function m(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(h){return typeof h}:m=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},m(v)}function u(v,E){var h=Object.keys(v);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(v);E&&(D=D.filter(function(j){return Object.getOwnPropertyDescriptor(v,j).enumerable})),h.push.apply(h,D)}return h}function a(v){for(var E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(v,D))continue;h[D]=v[D]}}return h}function e(v,E){if(v==null)return{};var h={},D=Object.keys(v),j,Q;for(Q=0;Q=0)continue;h[j]=v[j]}return h}function i(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function l(v,E){for(var h=0;h-1)){var y=m.parse(g)[3],b=m.toHex(g);d.setAttribute("stop-color","#"+b),d.setAttribute("stop-opacity",y)}else d.setAttribute("stop-color",i[l].color);e.appendChild(d)}r._dom=e},u.prototype.markUsed=function(r){if(r.style){var e=r.style.fill;e&&e._dom&&O.prototype.markUsed.call(this,e._dom),e=r.style.stroke,e&&e._dom&&O.prototype.markUsed.call(this,e._dom)}};var a=u;ie.exports=a},sboe:function(ie,w,t){"use strict";t.d(w,"a",function(){return p});var O=t("q1tI"),f=t.n(O),p=O.createContext(null)},tWlo:function(ie,w){ie.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=="},"u/Db":function(ie,w,t){var O=t("J6Nv"),f=t("BCVQ");w.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},w.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},w.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},w.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},w.MIXED={bit:-1},w.getCharCountIndicator=function(u,a){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!O.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?u.ccBits[0]:a<27?u.ccBits[1]:u.ccBits[2]},w.getBestModeForData=function(u){return f.testNumeric(u)?w.NUMERIC:f.testAlphanumeric(u)?w.ALPHANUMERIC:f.testKanji(u)?w.KANJI:w.BYTE},w.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")},w.isValid=function(u){return u&&u.bit&&u.ccBits};function p(m){if(typeof m!="string")throw new Error("Param is not a string");var u=m.toLowerCase();switch(u){case"numeric":return w.NUMERIC;case"alphanumeric":return w.ALPHANUMERIC;case"kanji":return w.KANJI;case"byte":return w.BYTE;default:throw new Error("Unknown mode: "+m)}}w.from=function(u,a){if(w.isValid(u))return u;try{return p(u)}catch(r){return a}}},u3os:function(ie,w,t){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ver=w.clear=w.bind=void 0;var O=t("P4Qj"),f=function(a,r){var e=(0,O.getSensor)(a);return e.bind(r),function(){e.unbind(r)}};w.bind=f;var p=function(a){var r=(0,O.getSensor)(a);(0,O.removeSensor)(r)};w.clear=p;var m="1.0.1";w.ver=m},vKoX:function(ie,w,t){var O=t("SrGk"),f=t("bYtY");function p(a,r){O.call(this,a,r,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(p,O),p.prototype.addWithoutUpdate=function(a,r){if(r&&m(r.style)){var e;if(r._shadowDom){e=r._shadowDom;var i=this.getDefs(!0);i.contains(r._shadowDom)||this.addDom(e)}else e=this.add(r);this.markUsed(r);var l=e.getAttribute("id");a.style.filter="url(#"+l+")"}},p.prototype.add=function(a){var r=this.createElement("filter");return a._shadowDomId=a._shadowDomId||this.nextId++,r.setAttribute("id","zr"+this._zrId+"-shadow-"+a._shadowDomId),this.updateDom(a,r),this.addDom(r),r},p.prototype.update=function(a,r){var e=r.style;if(m(e)){var i=this;O.prototype.update.call(this,r,function(){i.updateDom(r,r._shadowDom)})}else this.remove(a,r)},p.prototype.remove=function(a,r){r._shadowDomId!=null&&(this.removeDom(a),a.style.filter="")},p.prototype.updateDom=function(a,r){var e=r.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var i=a.style,l=a.scale&&a.scale[0]||1,s=a.scale&&a.scale[1]||1,d,g,y,b;if(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)d=i.shadowOffsetX||0,g=i.shadowOffsetY||0,y=i.shadowBlur,b=i.shadowColor;else if(i.textShadowBlur)d=i.textShadowOffsetX||0,g=i.textShadowOffsetY||0,y=i.textShadowBlur,b=i.textShadowColor;else{this.removeDom(r,i);return}e.setAttribute("dx",d/l),e.setAttribute("dy",g/s),e.setAttribute("flood-color",b);var T=y/2/l,P=y/2/s,I=T+" "+P;e.setAttribute("stdDeviation",I),r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width",Math.ceil(y/2*200)+"%"),r.setAttribute("height",Math.ceil(y/2*200)+"%"),r.appendChild(e),a._shadowDom=r},p.prototype.markUsed=function(a){a._shadowDom&&O.prototype.markUsed.call(this,a._shadowDom)};function m(a){return a&&(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY||a.textShadowBlur||a.textShadowOffsetX||a.textShadowOffsetY)}var u=p;ie.exports=u},vWvF:function(ie,w,t){var O=t("Bq2U"),f=t("SUKs"),p=t("bYtY"),m=p.isString,u=p.isFunction,a=p.isObject,r=p.isArrayLike,e=p.indexOf,i=function(){this.animators=[]};i.prototype={constructor:i,animate:function(y,b){var T,P=!1,I=this,v=this.__zr;if(y){var E=y.split("."),h=I;P=E[0]==="shape";for(var D=0,j=E.length;D0&&y.animate(b,!1).when(I==null?500:I,h).delay(v||0)}function d(y,b,T,P){if(!b)y.attr(T,P);else{var I={};I[b]={},I[b][T]=P,y.attr(I)}}var g=i;ie.exports=g},vvrf:function(ie,w,t){var O=t("u/Db"),f=t("3X7Y"),p=t("nZSm"),m=t("AZa5"),u=t("Lzq4"),a=t("BCVQ"),r=t("e/Dd"),e=t("ELBg");function i(P){return unescape(encodeURIComponent(P)).length}function l(P,I,v){for(var E=[],h;(h=P.exec(v))!==null;)E.push({data:h[0],index:h.index,mode:I,length:h[0].length});return E}function s(P){var I=l(a.NUMERIC,O.NUMERIC,P),v=l(a.ALPHANUMERIC,O.ALPHANUMERIC,P),E,h;r.isKanjiModeEnabled()?(E=l(a.BYTE,O.BYTE,P),h=l(a.KANJI,O.KANJI,P)):(E=l(a.BYTE_KANJI,O.BYTE,P),h=[]);var D=I.concat(v,E,h);return D.sort(function(j,Q){return j.index-Q.index}).map(function(j){return{data:j.data,mode:j.mode,length:j.length}})}function d(P,I){switch(I){case O.NUMERIC:return f.getBitsLength(P);case O.ALPHANUMERIC:return p.getBitsLength(P);case O.KANJI:return u.getBitsLength(P);case O.BYTE:return m.getBitsLength(P)}}function g(P){return P.reduce(function(I,v){var E=I.length-1>=0?I[I.length-1]:null;return E&&E.mode===v.mode?(I[I.length-1].data+=v.data,I):(I.push(v),I)},[])}function y(P){for(var I=[],v=0;v1e-10&&(b.width+=T/P,b.height+=T/P,b.x-=T/P/2,b.y-=T/P/2)}return b}return s},contain:function(s,d){var g=this.transformCoordToLocal(s,d),y=this.getBoundingRect(),b=this.style;if(s=g[0],d=g[1],y.contain(s,d)){var T=this.path.data;if(b.hasStroke()){var P=b.lineWidth,I=b.strokeNoScale?this.getLineScale():1;if(I>1e-10&&(b.hasFill()||(P=Math.max(P,this.strokeContainThreshold)),m.containStroke(T,P/I,s,d)))return!0}if(b.hasFill())return m.contain(T,s,d)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,d){s==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,s,d)},setShape:function(s,d){var g=this.shape;if(g){if(f.isObject(s))for(var y in s)s.hasOwnProperty(y)&&(g[y]=s[y]);else g[s]=d;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&r(s[0]-1)>1e-10&&r(s[3]-1)>1e-10?Math.sqrt(r(s[0]*s[3]-s[2]*s[1])):1}},i.extend=function(s){var d=function(y){i.call(this,y),s.style&&this.style.extendFrom(s.style,!1);var b=s.shape;if(b){this.shape=this.shape||{};var T=this.shape;for(var P in b)!T.hasOwnProperty(P)&&b.hasOwnProperty(P)&&(T[P]=b[P])}s.init&&s.init.call(this,y)};f.inherits(d,i);for(var g in s)g!=="style"&&g!=="shape"&&(d.prototype[g]=s[g]);return d},f.inherits(i,O);var l=i;ie.exports=l},y23F:function(ie,w){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}t.prototype={constructor:t,_dragStart:function(p){for(var m=p.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=p.offsetX,this._y=p.offsetY,this.dispatchToElement(O(m,p),"dragstart",p.event))},_drag:function(p){var m=this._draggingTarget;if(m){var u=p.offsetX,a=p.offsetY,r=u-this._x,e=a-this._y;this._x=u,this._y=a,m.drift(r,e,p),this.dispatchToElement(O(m,p),"drag",p.event);var i=this.findHover(u,a,m).target,l=this._dropTarget;this._dropTarget=i,m!==i&&(l&&i!==l&&this.dispatchToElement(O(l,p),"dragleave",p.event),i&&i!==l&&this.dispatchToElement(O(i,p),"dragenter",p.event))}},_dragEnd:function(p){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(O(m,p),"dragend",p.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,p),"drop",p.event),this._draggingTarget=null,this._dropTarget=null}};function O(p,m){return{target:p,topTarget:m&&m.topTarget}}var f=t;ie.exports=f},yKow:function(ie,w,t){var O=t("e/Dd"),f=t("NPxG"),p=t("ekOh"),m=t("u/Db"),u=t("J6Nv"),a=t("7uVY"),r=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,e=O.getBCHDigit(r);function i(g,y,b){for(var T=1;T<=40;T++)if(y<=w.getCapacity(T,b,g))return T;return}function l(g,y){return m.getCharCountIndicator(g,y)+4}function s(g,y){var b=0;return g.forEach(function(T){var P=l(T.mode,y);b+=P+T.getBitsLength()}),b}function d(g,y){for(var b=1;b<=40;b++){var T=s(g,b);if(T<=w.getCapacity(b,y,m.MIXED))return b}return}w.from=function(y,b){return u.isValid(y)?parseInt(y,10):b},w.getCapacity=function(y,b,T){if(!u.isValid(y))throw new Error("Invalid QR Code version");typeof T=="undefined"&&(T=m.BYTE);var P=O.getSymbolTotalCodewords(y),I=f.getTotalCodewordsCount(y,b),v=(P-I)*8;if(T===m.MIXED)return v;var E=v-l(T,y);switch(T){case m.NUMERIC:return Math.floor(E/10*3);case m.ALPHANUMERIC:return Math.floor(E/11*2);case m.KANJI:return Math.floor(E/13);case m.BYTE:default:return Math.floor(E/8)}},w.getBestVersionForData=function(y,b){var T,P=p.from(b,p.M);if(a(y)){if(y.length>1)return d(y,P);if(y.length===0)return 1;T=y[0]}else T=y;return i(T.mode,T.getLength(),P)},w.getEncodedBits=function(y){if(!u.isValid(y)||y<7)throw new Error("Invalid QR Code version");for(var b=y<<12;O.getBCHDigit(b)-e>=0;)b^=r<0?h.cmdState[h.cmdState.length-1]:null}function U(h){var u=h.cmdState.pop();u&&u.closeBracket()}function K(h){for(var u=h.cmdState,f=u.length-1;f>=0;f--){var l=u[f];if(l.name=="DEFAULT")continue;return l}return{styleIdentifier:function(){return null}}}function G(h,u,f){return function(){this.name=h,this.bracketNo=0,this.style=u,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var r={};r.importmodule=G("importmodule","tag",["string","builtin"]),r.documentclass=G("documentclass","tag",["","atom"]),r.usepackage=G("usepackage","tag",["atom"]),r.begin=G("begin","tag",["atom"]),r.end=G("end","tag",["atom"]),r.label=G("label","tag",["atom"]),r.ref=G("ref","tag",["atom"]),r.eqref=G("eqref","tag",["atom"]),r.cite=G("cite","tag",["atom"]),r.bibitem=G("bibitem","tag",["atom"]),r.Bibitem=G("Bibitem","tag",["atom"]),r.RBibitem=G("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function L(h,u){h.f=u}function v(h,u){var f;if(h.match(/^\\[a-zA-Z@]+/)){var l=h.current().slice(1);return f=r.hasOwnProperty(l)?r[l]:r.DEFAULT,f=new f,X(u,f),L(u,p),f.style}if(h.match(/^\\[$&%#{}_]/))return"tag";if(h.match(/^\\[,;!\/\\]/))return"tag";if(h.match("\\["))return L(u,function(s,a){return m(s,a,"\\]")}),"keyword";if(h.match("\\("))return L(u,function(s,a){return m(s,a,"\\)")}),"keyword";if(h.match("$$"))return L(u,function(s,a){return m(s,a,"$$")}),"keyword";if(h.match("$"))return L(u,function(s,a){return m(s,a,"$")}),"keyword";var o=h.next();if(o=="%")return h.skipToEnd(),"comment";if(o=="}"||o=="]"){if(f=j(u),f)f.closeBracket(o),L(u,p);else return"error";return"bracket"}else return o=="{"||o=="["?(f=r.DEFAULT,f=new f,X(u,f),"bracket"):/\d/.test(o)?(h.eatWhile(/[\w.%]/),"atom"):(h.eatWhile(/[\w\-_]/),f=K(u),f.name=="begin"&&(f.argument=h.current()),f.styleIdentifier())}function m(h,u,f){if(h.eatSpace())return null;if(f&&h.match(f))return L(u,v),"keyword";if(h.match(/^\\[a-zA-Z@]+/))return"tag";if(h.match(/^[a-zA-Z]+/))return"variable-2";if(h.match(/^\\[$&%#{}_]/))return"tag";if(h.match(/^\\[,;!\/]/))return"tag";if(h.match(/^[\^_&]/))return"tag";if(h.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(h.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var l=h.next();return l=="{"||l=="}"||l=="["||l=="]"||l=="("||l==")"?"bracket":l=="%"?(h.skipToEnd(),"comment"):"error"}function p(h,u){var f=h.peek(),l;return f=="{"||f=="["?(l=j(u),l.openBracket(f),h.eat(f),L(u,v),"bracket"):/[ \t\r]/.test(f)?(h.eat(f),null):(L(u,v),U(u),v(h,u))}return{startState:function(){var h=P.inMathMode?function(u,f){return m(u,f)}:v;return{cmdState:[],f:h}},copyState:function(h){return{cmdState:h.cmdState.slice(),f:h.f}},token:function(h,u){return u.f(h,u)},blankLine:function(h){h.f=v,h.cmdState.length=0},lineComment:"%"}}),ie.defineMIME("text/x-stex","stex"),ie.defineMIME("text/x-latex","stex")})},"+ua5":function(rt,be,Z){},"/cxE":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return P}),Z.d(be,"g",function(){return X}),Z.d(be,"h",function(){return j}),Z.d(be,"e",function(){return K}),Z.d(be,"b",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"d",function(){return L}),Z.d(be,"a",function(){return v});class ie{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(m){setTimeout(()=>{throw m.stack?new Error(m.message+` -`+m.stack):m},0)}}emit(m){this.listeners.forEach(p=>{p(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}const J=new ie;function P(m){K(m)||J.onUnexpectedError(m);return}function X(m){K(m)||J.onUnexpectedExternalError(m);return}function j(m){if(m instanceof Error){let{name:p,message:h}=m;const u=m.stacktrace||m.stack;return{$isError:!0,name:p,message:h,stack:u}}return m}const U="Canceled";function K(m){return m instanceof Error&&m.name===U&&m.message===U}function G(){const m=new Error(U);return m.name=m.message,m}function r(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function L(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class v extends Error{constructor(m){super("NotSupported");m&&(this.message=m)}}},"19Vz":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){ie.defineOption("placeholder","",function(G,r,L){var v=L&&L!=ie.Init;if(r&&!v)G.on("blur",j),G.on("change",U),G.on("swapDoc",U),ie.on(G.getInputField(),"compositionupdate",G.state.placeholderCompose=function(){X(G)}),U(G);else if(!r&&v){G.off("blur",j),G.off("change",U),G.off("swapDoc",U),ie.off(G.getInputField(),"compositionupdate",G.state.placeholderCompose),J(G);var m=G.getWrapperElement();m.className=m.className.replace(" CodeMirror-empty","")}r&&!G.hasFocus()&&j(G)});function J(G){G.state.placeholder&&(G.state.placeholder.parentNode.removeChild(G.state.placeholder),G.state.placeholder=null)}function P(G){J(G);var r=G.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=G.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var L=G.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),r.appendChild(L),G.display.lineSpace.insertBefore(r,G.display.lineSpace.firstChild)}function X(G){setTimeout(function(){var r=!1,L=G.getInputField();L.nodeName=="TEXTAREA"?r=!L.value:G.lineCount()==1&&(r=!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)),r?P(G):J(G)},20)}function j(G){K(G)&&P(G)}function U(G){var r=G.getWrapperElement(),L=K(G);r.className=r.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?P(G):J(G)}function K(G){return G.lineCount()===1&&G.getLine(0)===""}})},"1eCo":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J={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},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(X,j){var U=X.indentUnit,K={},G=j.htmlMode?J:P;for(var r in G)K[r]=G[r];for(var r in j)K[r]=j[r];var L,v;function m(d,S){function y(F){return S.tokenize=F,F(d,S)}var b=d.next();if(b=="<")return d.eat("!")?d.eat("[")?d.match("CDATA[")?y(u("atom","]]>")):null:d.match("--")?y(u("comment","-->")):d.match("DOCTYPE",!0,!0)?(d.eatWhile(/[\w\._\-]/),y(f(1))):null:d.eat("?")?(d.eatWhile(/[\w\._\-]/),S.tokenize=u("meta","?>"),"meta"):(L=d.eat("/")?"closeTag":"openTag",S.tokenize=p,"tag bracket");if(b=="&"){var B;return d.eat("#")?d.eat("x")?B=d.eatWhile(/[a-fA-F\d]/)&&d.eat(";"):B=d.eatWhile(/[\d]/)&&d.eat(";"):B=d.eatWhile(/[\w\.\-:]/)&&d.eat(";"),B?"atom":"error"}else return d.eatWhile(/[^&<]/),null}m.isInText=!0;function p(d,S){var y=d.next();if(y==">"||y=="/"&&d.eat(">"))return S.tokenize=m,L=y==">"?"endTag":"selfcloseTag","tag bracket";if(y=="=")return L="equals",null;if(y=="<"){S.tokenize=m,S.state=a,S.tagName=S.tagStart=null;var b=S.tokenize(d,S);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(y)?(S.tokenize=h(y),S.stringStartCol=d.column(),S.tokenize(d,S)):(d.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(d){var S=function(y,b){for(;!y.eol();)if(y.next()==d){b.tokenize=p;break}return"string"};return S.isInAttribute=!0,S}function u(d,S){return function(y,b){for(;!y.eol();){if(y.match(S)){b.tokenize=m;break}y.next()}return d}}function f(d){return function(S,y){for(var b;(b=S.next())!=null;){if(b=="<")return y.tokenize=f(d+1),y.tokenize(S,y);if(b==">")if(d==1){y.tokenize=m;break}else return y.tokenize=f(d-1),y.tokenize(S,y)}return"meta"}}function l(d,S,y){this.prev=d.context,this.tagName=S,this.indent=d.indented,this.startOfLine=y,(K.doNotIndent.hasOwnProperty(S)||d.context&&d.context.noIndent)&&(this.noIndent=!0)}function o(d){d.context&&(d.context=d.context.prev)}function s(d,S){for(var y;;){if(!d.context)return;if(y=d.context.tagName,!K.contextGrabbers.hasOwnProperty(y)||!K.contextGrabbers[y].hasOwnProperty(S))return;o(d)}}function a(d,S,y){return d=="openTag"?(y.tagStart=S.column(),O):d=="closeTag"?E:a}function O(d,S,y){return d=="word"?(y.tagName=S.current(),v="tag",R):K.allowMissingTagName&&d=="endTag"?(v="tag bracket",R(d,S,y)):(v="error",O)}function E(d,S,y){if(d=="word"){var b=S.current();return y.context&&y.context.tagName!=b&&K.implicitlyClosed.hasOwnProperty(y.context.tagName)&&o(y),y.context&&y.context.tagName==b||K.matchClosing===!1?(v="tag",w):(v="tag error",D)}else return K.allowMissingTagName&&d=="endTag"?(v="tag bracket",w(d,S,y)):(v="error",D)}function w(d,S,y){return d!="endTag"?(v="error",w):(o(y),a)}function D(d,S,y){return v="error",w(d,S,y)}function R(d,S,y){if(d=="word")return v="attribute",A;if(d=="endTag"||d=="selfcloseTag"){var b=y.tagName,B=y.tagStart;return y.tagName=y.tagStart=null,d=="selfcloseTag"||K.autoSelfClosers.hasOwnProperty(b)?s(y,b):(s(y,b),y.context=new l(y,b,B==y.indented)),a}return v="error",R}function A(d,S,y){return d=="equals"?C:(K.allowMissing||(v="error"),R(d,S,y))}function C(d,S,y){return d=="string"?T:d=="word"&&K.allowUnquoted?(v="string",R):(v="error",R(d,S,y))}function T(d,S,y){return d=="string"?T:R(d,S,y)}return{startState:function(d){var S={tokenize:m,state:a,indented:d||0,tagName:null,tagStart:null,context:null};return d!=null&&(S.baseIndent=d),S},token:function(d,S){if(!S.tagName&&d.sol()&&(S.indented=d.indentation()),d.eatSpace())return null;L=null;var y=S.tokenize(d,S);return(y||L)&&y!="comment"&&(v=null,S.state=S.state(L||y,d,S),v&&(y=v=="error"?y+" error":v)),y},indent:function(d,S,y){var b=d.context;if(d.tokenize.isInAttribute)return d.tagStart==d.indented?d.stringStartCol+1:d.indented+U;if(b&&b.noIndent)return ie.Pass;if(d.tokenize!=p&&d.tokenize!=m)return y?y.match(/^(\s*)/)[0].length:0;if(d.tagName)return K.multilineTagIndentPastTag!==!1?d.tagStart+d.tagName.length+2:d.tagStart+U*(K.multilineTagIndentFactor||1);if(K.alignCDATA&&/$/,blockCommentStart:"",configuration:K.htmlMode?"html":"xml",helperType:K.htmlMode?"html":"xml",skipAttribute:function(d){d.state==C&&(d.state=R)},xmlCurrentTag:function(d){return d.tagName?{name:d.tagName,close:d.type=="closeTag"}:null},xmlCurrentContext:function(d){for(var S=[],y=d.context;y;y=y.prev)y.tagName&&S.push(y.tagName);return S.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});class ie{constructor(P){this.element=P,this.next=ie.Undefined,this.prev=ie.Undefined}}ie.Undefined=new ie(void 0);class J{constructor(){this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ie.Undefined}clear(){let P=this._first;for(;P!==ie.Undefined;){const X=P.next;P.prev=ie.Undefined,P.next=ie.Undefined,P=X}this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,X){const j=new ie(P);if(this._first===ie.Undefined)this._first=j,this._last=j;else if(X){const K=this._last;this._last=j,j.prev=K,K.next=j}else{const K=this._first;this._first=j,j.next=K,K.prev=j}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(j))}}shift(){if(this._first===ie.Undefined)return;{const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last===ie.Undefined)return;{const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==ie.Undefined&&P.next!==ie.Undefined){const X=P.prev;X.next=P.next,P.next.prev=X}else P.prev===ie.Undefined&&P.next===ie.Undefined?(this._first=ie.Undefined,this._last=ie.Undefined):P.next===ie.Undefined?(this._last=this._last.prev,this._last.next=ie.Undefined):P.prev===ie.Undefined&&(this._first=this._first.next,this._first.prev=ie.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==ie.Undefined;)yield P.element,P=P.next}}},"3/fG":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});function ie(P,X){let j;return X.length===0?j=P:j=P.replace(/\{(\d+)\}/g,function(U,K){const G=K[0];return typeof X[G]!="undefined"?X[G]:U}),j}function J(P,X,...j){return ie(X,j)}},"500L":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return E});var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("2qtc"),X=Z("kLXV"),j=Z("9og8"),U=Z("k1fw"),K=Z("miYZ"),G=Z("tsqr"),r=Z("oBTY"),L=Z("tJVT"),v=Z("DZo9"),m=Z("8z0m"),p=Z("WmNS"),h=Z.n(p),u=Z("q1tI"),f=Z.n(u),l=Z("m3rI"),o=Z("wzkS"),s=Z("y5JW"),a=Z("LtfV"),O=m.a.Dragger;function E(w){var D=[];return w&&w.length>0&&(D=w.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),D}be.b=function(w){var D=w.value,R=w.onChange,A=w.action,C=w.className,T=w.maxSize,d=T===void 0?150:T,S=w.title,y=S===void 0?"\u4E0A\u4F20\u9644\u4EF6":S,b=w.showRemoveModal,B=b===void 0?!1:b,F=w.accept,_=F===void 0?"":F,M=w.additionalText,I=w.isDragger,g=w.number,H=g===void 0?1e3:g,$=w.aloneClear,ne=$===void 0?!1:$,se=Object(u.useState)(!1),Oe=Object(L.a)(se,2),ge=Oe[0],Te=Oe[1],Re=Object(u.useState)(D||[]),Le=Object(L.a)(Re,2),ce=Le[0],he=Le[1];Object(u.useEffect)(function(){D&&(he(Object(r.a)(D)),H===(D==null?void 0:D.length)&&Te(!0))},[D]);var re=function(){setTimeout(function(){ce.pop(),he(Object(r.a)(ce))},500)},fe={multiple:!0,disabled:ge,accept:_,withCredentials:!0,fileList:ce,beforeUpload:function(Fe,Ce){var Ne=Fe.size/1024/1024;return ce.concat(Ce).length>H?(ce.pop(),he(Object(r.a)(ce)),G.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(H,"\u4E2A\u6587\u4EF6")),ne?Promise.reject():(re(),!1)):!0},action:A||"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(Fe){var Ce,Ne,Be=Object(r.a)(Fe.fileList);if(Fe.file.status==="done"&&((Ce=Fe.file)===null||Ce===void 0||((Ne=Ce.response)===null||Ne===void 0)?void 0:Ne.status)===-1){var le,ve;G.b.error((le=Fe.file)===null||le===void 0||((ve=le.response)===null||ve===void 0)?void 0:ve.message);return}Be.length>=H?Te(!0):Te(!1),he(Object(r.a)(Be)),Be=Be.map(function(Se){var Ie;if(Se!=null&&(Ie=Se.response)!==null&&Ie!==void 0&&Ie.id){var We;Se.url="/api/attachments/".concat(Se==null||((We=Se.response)===null||We===void 0)?void 0:We.id)}return Se.name.indexOf(s.c)===-1&&(Se.name="".concat(Se.name).concat(s.c).concat(Object(s.a)(Se.size))),Object(U.a)({},Se)}),console.log("info:",Fe),R(Be)},onRemove:function(){var De=Object(j.a)(h.a.mark(function Ce(Ne){var Be;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Be=function(){var Se=Object(j.a)(h.a.mark(function Ie(){var We,Ve;return h.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(We=Ne.response?Ne.response.id:Ne.id,!We){Je.next=8;break}return Je.next=4,Object(o.d)(Ne.response?Ne.response.id:Ne.uid);case 4:return Ve=Je.sent,Je.abrupt("return",Ve);case 8:return Je.abrupt("return",!0);case 9:case"end":return Je.stop()}},Ie)}));return function(){return Se.apply(this,arguments)}}(),!B){ve.next=5;break}return ve.abrupt("return",new Promise(function(Se,Ie){X.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var We=Object(j.a)(h.a.mark(function Qe(){var Je;return h.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Be();case 2:Je=qe.sent,G.b.success("\u5220\u9664\u6210\u529F"),Se(!0);case 5:case"end":return qe.stop()}},Qe)}));function Ve(){return We.apply(this,arguments)}return Ve}(),onCancel:function(){return Se(!1)}})}));case 5:return ve.next=7,Be();case 7:return ve.abrupt("return",ve.sent);case 8:case"end":return ve.stop()}},Ce)}));function Fe(Ce){return De.apply(this,arguments)}return Fe}()};function oe(De){De.preventDefault(),De.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(C||"")},I&&f.a.createElement(O,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(a.a,null)),f.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",f.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",d,"MB)"," "),M),!I&&f.a.createElement(m.a,fe,f.a.createElement(J.a,{style:{width:"108px",height:"32px",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:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:f.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:ge},y),f.a.createElement("span",{onClick:oe,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",d,"MB)"," ")))}},"55Ip":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return s});var ie=Z("Ty5D"),J=Z("dI71"),P=Z("q1tI"),X=Z.n(P),j=Z("YS25"),U=Z("17x9"),K=Z.n(U),G=Z("wx14"),r=Z("zLVn"),L=Z("9R94"),v=function(C){Object(J.a)(T,C);function T(){for(var S,y=arguments.length,b=new Array(y),B=0;B{p(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}const J=new ie;function P(m){K(m)||J.onUnexpectedError(m);return}function X(m){K(m)||J.onUnexpectedExternalError(m);return}function j(m){if(m instanceof Error){let{name:p,message:h}=m;const u=m.stacktrace||m.stack;return{$isError:!0,name:p,message:h,stack:u}}return m}const U="Canceled";function K(m){return m instanceof Error&&m.name===U&&m.message===U}function G(){const m=new Error(U);return m.name=m.message,m}function r(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function L(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class v extends Error{constructor(m){super("NotSupported");m&&(this.message=m)}}},"19Vz":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){ie.defineOption("placeholder","",function(G,r,L){var v=L&&L!=ie.Init;if(r&&!v)G.on("blur",j),G.on("change",U),G.on("swapDoc",U),ie.on(G.getInputField(),"compositionupdate",G.state.placeholderCompose=function(){X(G)}),U(G);else if(!r&&v){G.off("blur",j),G.off("change",U),G.off("swapDoc",U),ie.off(G.getInputField(),"compositionupdate",G.state.placeholderCompose),J(G);var m=G.getWrapperElement();m.className=m.className.replace(" CodeMirror-empty","")}r&&!G.hasFocus()&&j(G)});function J(G){G.state.placeholder&&(G.state.placeholder.parentNode.removeChild(G.state.placeholder),G.state.placeholder=null)}function P(G){J(G);var r=G.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=G.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var L=G.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),r.appendChild(L),G.display.lineSpace.insertBefore(r,G.display.lineSpace.firstChild)}function X(G){setTimeout(function(){var r=!1,L=G.getInputField();L.nodeName=="TEXTAREA"?r=!L.value:G.lineCount()==1&&(r=!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)),r?P(G):J(G)},20)}function j(G){K(G)&&P(G)}function U(G){var r=G.getWrapperElement(),L=K(G);r.className=r.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?P(G):J(G)}function K(G){return G.lineCount()===1&&G.getLine(0)===""}})},"1eCo":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J={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},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(X,j){var U=X.indentUnit,K={},G=j.htmlMode?J:P;for(var r in G)K[r]=G[r];for(var r in j)K[r]=j[r];var L,v;function m(c,S){function y(F){return S.tokenize=F,F(c,S)}var b=c.next();if(b=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?y(u("atom","]]>")):null:c.match("--")?y(u("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),y(f(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),S.tokenize=u("meta","?>"),"meta"):(L=c.eat("/")?"closeTag":"openTag",S.tokenize=p,"tag bracket");if(b=="&"){var B;return c.eat("#")?c.eat("x")?B=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):B=c.eatWhile(/[\d]/)&&c.eat(";"):B=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),B?"atom":"error"}else return c.eatWhile(/[^&<]/),null}m.isInText=!0;function p(c,S){var y=c.next();if(y==">"||y=="/"&&c.eat(">"))return S.tokenize=m,L=y==">"?"endTag":"selfcloseTag","tag bracket";if(y=="=")return L="equals",null;if(y=="<"){S.tokenize=m,S.state=a,S.tagName=S.tagStart=null;var b=S.tokenize(c,S);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(y)?(S.tokenize=h(y),S.stringStartCol=c.column(),S.tokenize(c,S)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(c){var S=function(y,b){for(;!y.eol();)if(y.next()==c){b.tokenize=p;break}return"string"};return S.isInAttribute=!0,S}function u(c,S){return function(y,b){for(;!y.eol();){if(y.match(S)){b.tokenize=m;break}y.next()}return c}}function f(c){return function(S,y){for(var b;(b=S.next())!=null;){if(b=="<")return y.tokenize=f(c+1),y.tokenize(S,y);if(b==">")if(c==1){y.tokenize=m;break}else return y.tokenize=f(c-1),y.tokenize(S,y)}return"meta"}}function l(c,S,y){this.prev=c.context,this.tagName=S,this.indent=c.indented,this.startOfLine=y,(K.doNotIndent.hasOwnProperty(S)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function o(c){c.context&&(c.context=c.context.prev)}function s(c,S){for(var y;;){if(!c.context)return;if(y=c.context.tagName,!K.contextGrabbers.hasOwnProperty(y)||!K.contextGrabbers[y].hasOwnProperty(S))return;o(c)}}function a(c,S,y){return c=="openTag"?(y.tagStart=S.column(),O):c=="closeTag"?E:a}function O(c,S,y){return c=="word"?(y.tagName=S.current(),v="tag",R):K.allowMissingTagName&&c=="endTag"?(v="tag bracket",R(c,S,y)):(v="error",O)}function E(c,S,y){if(c=="word"){var b=S.current();return y.context&&y.context.tagName!=b&&K.implicitlyClosed.hasOwnProperty(y.context.tagName)&&o(y),y.context&&y.context.tagName==b||K.matchClosing===!1?(v="tag",w):(v="tag error",D)}else return K.allowMissingTagName&&c=="endTag"?(v="tag bracket",w(c,S,y)):(v="error",D)}function w(c,S,y){return c!="endTag"?(v="error",w):(o(y),a)}function D(c,S,y){return v="error",w(c,S,y)}function R(c,S,y){if(c=="word")return v="attribute",A;if(c=="endTag"||c=="selfcloseTag"){var b=y.tagName,B=y.tagStart;return y.tagName=y.tagStart=null,c=="selfcloseTag"||K.autoSelfClosers.hasOwnProperty(b)?s(y,b):(s(y,b),y.context=new l(y,b,B==y.indented)),a}return v="error",R}function A(c,S,y){return c=="equals"?C:(K.allowMissing||(v="error"),R(c,S,y))}function C(c,S,y){return c=="string"?T:c=="word"&&K.allowUnquoted?(v="string",R):(v="error",R(c,S,y))}function T(c,S,y){return c=="string"?T:R(c,S,y)}return{startState:function(c){var S={tokenize:m,state:a,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(S.baseIndent=c),S},token:function(c,S){if(!S.tagName&&c.sol()&&(S.indented=c.indentation()),c.eatSpace())return null;L=null;var y=S.tokenize(c,S);return(y||L)&&y!="comment"&&(v=null,S.state=S.state(L||y,c,S),v&&(y=v=="error"?y+" error":v)),y},indent:function(c,S,y){var b=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+U;if(b&&b.noIndent)return ie.Pass;if(c.tokenize!=p&&c.tokenize!=m)return y?y.match(/^(\s*)/)[0].length:0;if(c.tagName)return K.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+U*(K.multilineTagIndentFactor||1);if(K.alignCDATA&&/$/,blockCommentStart:"",configuration:K.htmlMode?"html":"xml",helperType:K.htmlMode?"html":"xml",skipAttribute:function(c){c.state==C&&(c.state=R)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var S=[],y=c.context;y;y=y.prev)y.tagName&&S.push(y.tagName);return S.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});class ie{constructor(P){this.element=P,this.next=ie.Undefined,this.prev=ie.Undefined}}ie.Undefined=new ie(void 0);class J{constructor(){this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ie.Undefined}clear(){let P=this._first;for(;P!==ie.Undefined;){const X=P.next;P.prev=ie.Undefined,P.next=ie.Undefined,P=X}this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,X){const j=new ie(P);if(this._first===ie.Undefined)this._first=j,this._last=j;else if(X){const K=this._last;this._last=j,j.prev=K,K.next=j}else{const K=this._first;this._first=j,j.next=K,K.prev=j}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(j))}}shift(){if(this._first===ie.Undefined)return;{const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last===ie.Undefined)return;{const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==ie.Undefined&&P.next!==ie.Undefined){const X=P.prev;X.next=P.next,P.next.prev=X}else P.prev===ie.Undefined&&P.next===ie.Undefined?(this._first=ie.Undefined,this._last=ie.Undefined):P.next===ie.Undefined?(this._last=this._last.prev,this._last.next=ie.Undefined):P.prev===ie.Undefined&&(this._first=this._first.next,this._first.prev=ie.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==ie.Undefined;)yield P.element,P=P.next}}},"3/fG":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});function ie(P,X){let j;return X.length===0?j=P:j=P.replace(/\{(\d+)\}/g,function(U,K){const G=K[0];return typeof X[G]!="undefined"?X[G]:U}),j}function J(P,X,...j){return ie(X,j)}},"500L":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return E});var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("2qtc"),X=Z("kLXV"),j=Z("9og8"),U=Z("k1fw"),K=Z("miYZ"),G=Z("tsqr"),r=Z("oBTY"),L=Z("tJVT"),v=Z("DZo9"),m=Z("8z0m"),p=Z("WmNS"),h=Z.n(p),u=Z("q1tI"),f=Z.n(u),l=Z("m3rI"),o=Z("wzkS"),s=Z("y5JW"),a=Z("LtfV"),O=m.a.Dragger;function E(w){var D=[];return w&&w.length>0&&(D=w.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),D}be.b=function(w){var D=w.value,R=w.onChange,A=w.action,C=w.className,T=w.maxSize,c=T===void 0?150:T,S=w.title,y=S===void 0?"\u4E0A\u4F20\u9644\u4EF6":S,b=w.showRemoveModal,B=b===void 0?!1:b,F=w.accept,_=F===void 0?"":F,M=w.additionalText,I=w.isDragger,g=w.number,H=g===void 0?1e3:g,$=w.aloneClear,ne=$===void 0?!1:$,se=Object(u.useState)(!1),Oe=Object(L.a)(se,2),ge=Oe[0],Te=Oe[1],Re=Object(u.useState)(D||[]),Le=Object(L.a)(Re,2),de=Le[0],he=Le[1];Object(u.useEffect)(function(){D&&(he(Object(r.a)(D)),H===(D==null?void 0:D.length)&&Te(!0))},[D]);var re=function(){setTimeout(function(){de.pop(),he(Object(r.a)(de))},500)},fe={multiple:!0,disabled:ge,accept:_,withCredentials:!0,fileList:de,beforeUpload:function(Fe,Ce){var Ne=Fe.size/1024/1024;return de.concat(Ce).length>H?(de.pop(),he(Object(r.a)(de)),G.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(H,"\u4E2A\u6587\u4EF6")),ne?Promise.reject():(re(),!1)):!0},action:A||"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(Fe){var Ce,Ne,Be=Object(r.a)(Fe.fileList);if(Fe.file.status==="done"&&((Ce=Fe.file)===null||Ce===void 0||((Ne=Ce.response)===null||Ne===void 0)?void 0:Ne.status)===-1){var le,ve;G.b.error((le=Fe.file)===null||le===void 0||((ve=le.response)===null||ve===void 0)?void 0:ve.message);return}Be.length>=H?Te(!0):Te(!1),he(Object(r.a)(Be)),Be=Be.map(function(Se){var Ie;if(Se!=null&&(Ie=Se.response)!==null&&Ie!==void 0&&Ie.id){var We;Se.url="/api/attachments/".concat(Se==null||((We=Se.response)===null||We===void 0)?void 0:We.id)}return Se.name.indexOf(s.c)===-1&&(Se.name="".concat(Se.name).concat(s.c).concat(Object(s.a)(Se.size))),Object(U.a)({},Se)}),console.log("info:",Fe),R(Be)},onRemove:function(){var De=Object(j.a)(h.a.mark(function Ce(Ne){var Be;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Be=function(){var Se=Object(j.a)(h.a.mark(function Ie(){var We,Ve;return h.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(We=Ne.response?Ne.response.id:Ne.id,!We){Je.next=8;break}return Je.next=4,Object(o.d)(Ne.response?Ne.response.id:Ne.uid);case 4:return Ve=Je.sent,Je.abrupt("return",Ve);case 8:return Je.abrupt("return",!0);case 9:case"end":return Je.stop()}},Ie)}));return function(){return Se.apply(this,arguments)}}(),!B){ve.next=5;break}return ve.abrupt("return",new Promise(function(Se,Ie){X.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var We=Object(j.a)(h.a.mark(function Qe(){var Je;return h.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Be();case 2:Je=qe.sent,G.b.success("\u5220\u9664\u6210\u529F"),Se(!0);case 5:case"end":return qe.stop()}},Qe)}));function Ve(){return We.apply(this,arguments)}return Ve}(),onCancel:function(){return Se(!1)}})}));case 5:return ve.next=7,Be();case 7:return ve.abrupt("return",ve.sent);case 8:case"end":return ve.stop()}},Ce)}));function Fe(Ce){return De.apply(this,arguments)}return Fe}()};function oe(De){De.preventDefault(),De.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(C||"")},I&&f.a.createElement(O,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(a.a,null)),f.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",f.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",c,"MB)"," "),M),!I&&f.a.createElement(m.a,fe,f.a.createElement(J.a,{style:{width:"108px",height:"32px",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:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:f.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:ge},y),f.a.createElement("span",{onClick:oe,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",c,"MB)"," ")))}},"55Ip":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return s});var ie=Z("Ty5D"),J=Z("dI71"),P=Z("q1tI"),X=Z.n(P),j=Z("YS25"),U=Z("17x9"),K=Z.n(U),G=Z("wx14"),r=Z("zLVn"),L=Z("9R94"),v=function(C){Object(J.a)(T,C);function T(){for(var S,y=arguments.length,b=new Array(y),B=0;B$&&($=g.line_indent_level));var ne={mode:H,parent:g,last_token:g?g.last_token:new p(s.START_BLOCK,""),last_word:g?g.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:$,alignment:0,line_indent_level:g?g.line_indent_level:$,start_line_index:this._output.get_line_number(),ternary_depth:0};return ne},M.prototype._reset=function(g){var H=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new m(this._options,H),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(d.BlockStatement);var $=new f(g,this._options);return this._tokens=$.tokenize(),g},M.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,H=this._reset(this._source_text),$=this._options.eol;this._options.eol==="auto"&&($=` -`,H&&h.lineBreak.test(H||"")&&($=H.match(h.lineBreak)[0]));for(var ne=this._tokens.next();ne;)this.handle_token(ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ne,ne=this._tokens.next();return g=this._output.get_code($),g},M.prototype.handle_token=function(g,H){g.type===s.START_EXPR?this.handle_start_expr(g):g.type===s.END_EXPR?this.handle_end_expr(g):g.type===s.START_BLOCK?this.handle_start_block(g):g.type===s.END_BLOCK?this.handle_end_block(g):g.type===s.WORD?this.handle_word(g):g.type===s.RESERVED?this.handle_word(g):g.type===s.SEMICOLON?this.handle_semicolon(g):g.type===s.STRING?this.handle_string(g):g.type===s.EQUALS?this.handle_equals(g):g.type===s.OPERATOR?this.handle_operator(g):g.type===s.COMMA?this.handle_comma(g):g.type===s.BLOCK_COMMENT?this.handle_block_comment(g,H):g.type===s.COMMENT?this.handle_comment(g,H):g.type===s.DOT?this.handle_dot(g):g.type===s.EOF?this.handle_eof(g):g.type===s.UNKNOWN?this.handle_unknown(g,H):this.handle_unknown(g,H)},M.prototype.handle_whitespace_and_comments=function(g,H){var $=g.newlines,ne=this._options.keep_array_indentation&&b(this._flags.mode);if(g.comments_before)for(var se=g.comments_before.next();se;)this.handle_whitespace_and_comments(se,H),this.handle_token(se,H),se=g.comments_before.next();if(ne)for(var Oe=0;Oe<$;Oe+=1)this.print_newline(Oe>0,H);else if(this._options.max_preserve_newlines&&$>this._options.max_preserve_newlines&&($=this._options.max_preserve_newlines),this._options.preserve_newlines&&$>1){this.print_newline(!1,H);for(var ge=1;ge<$;ge+=1)this.print_newline(!0,H)}};var I=["async","break","continue","return","throw","yield"];M.prototype.allow_wrap_or_preserved_newline=function(g,H){if(H=H===void 0?!1:H,this._output.just_added_newline())return;var $=this._options.preserve_newlines&&g.newlines||H,ne=a(this._flags.last_token.text,o)||a(g.text,o);if(ne){var se=a(this._flags.last_token.text,o)&&a(this._options.operator_position,T)||a(g.text,o);$=$&&se}if($)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,I))return;this._output.set_wrap_point()}},M.prototype.print_newline=function(g,H){if(!H&&(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 $=this._tokens.peek();this._flags.mode===d.Statement&&!(this._flags.if_block&&w($,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},M.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.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))},M.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var H=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(H),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},M.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.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))},M.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===d.Statement&&S(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.start_of_object_property=function(){return this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},M.prototype.start_of_statement=function(g){var H=!1;return H=H||D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD,H=H||w(this._flags.last_token,"do"),H=H||!(this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement)&&D(this._flags.last_token,I)&&!g.newlines,H=H||w(this._flags.last_token,"else")&&!(w(g,"if")&&!g.comments_before),H=H||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===d.ForInitializer||this._previous_flags.mode===d.Conditional),H=H||this._flags.last_token.type===s.WORD&&this._flags.mode===d.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==s.WORD&&g.type!==s.RESERVED,H=H||this._flags.mode===d.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),H?(this.set_mode(d.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,D(g,["do","for","if","while"])),!0):!1},M.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var H=d.Expression;if(g.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(H),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}H=d.ArrayLiteral,b(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())),a(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,H=d.ForInitializer):a(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,H=d.Conditional):a(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(a(this._flags.last_token.text,l)||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(g);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var $=this._tokens.peek(-3);if(this._options.space_after_named_function&&$){var ne=this._tokens.peek(-4);D($,["async","function"])||$.text==="*"&&D(ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===d.ObjectLiteral?($.text==="{"||$.text===","||$.text==="*"&&(ne.text==="{"||ne.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(g);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===d.ObjectLiteral&&a(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(g,g.newlines),this.print_token(g),this.set_mode(H),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},M.prototype.handle_end_expr=function(g){for(;this._flags.mode===d.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&b(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(g),this.restore_mode(),S(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===d.Conditional&&(this._previous_flags.mode=d.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},M.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var H=this._tokens.peek(),$=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(d.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(d.BlockStatement):$&&(a($.text,[":",","])&&a(H.type,[s.STRING,s.WORD,s.RESERVED])||a(H.text,["get","set","..."])&&a($.type,[s.WORD,s.RESERVED]))?a(this._last_last_text,["class","interface"])&&!a($.text,[":",","])?this.set_mode(d.BlockStatement):this.set_mode(d.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(d.BlockStatement):a(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(d.ObjectLiteral):this.set_mode(d.BlockStatement),this._flags.last_token&&(D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ne=!H.comments_before&&H.text==="}",se=ne&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Oe=0,ge=null;this._flags.inline_frame=!0;do if(Oe+=1,ge=this._tokens.peek(Oe-1),ge.newlines){this._flags.inline_frame=!1;break}while(ge.type!==s.EOF&&!(ge.type===s.END_BLOCK&&ge.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(se||this._flags.last_token.type===s.EQUALS||D(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(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(g),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(g),this.indent(),!ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},M.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===d.Statement;)this.restore_mode();var H=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!H?this._output.space_before_token=!0:this._options.brace_style==="expand"?H||this.print_newline():H||(b(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(g)},M.prototype.handle_word=function(g){if(g.type===s.RESERVED){if(a(g.text,["set","get"])&&this._flags.mode!==d.ObjectLiteral)g.type=s.WORD;else if(g.text==="import"&&a(this._tokens.peek().text,["(","."]))g.type=s.WORD;else if(a(g.text,["as","from"])&&!this._flags.import_block)g.type=s.WORD;else if(this._flags.mode===d.ObjectLiteral){var H=this._tokens.peek();H.text===":"&&(g.type=s.WORD)}}if(this.start_of_statement(g)?D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!B(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||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(w(g,"while")){this._output.space_before_token=!0,this.print_token(g),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&&w(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===d.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(g,["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(g),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(g)),w(g,"function")){(a(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(a(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,I)?this._output.space_before_token=!0:w(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&&(B(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var $="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?$="SPACE":D(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?$="NEWLINE":($="SPACE",this._output.space_before_token=!0):$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===d.BlockStatement?$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&B(this._flags.mode)?$="SPACE":this._flags.last_token.type===s.STRING?$="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===d.ObjectLiteral&&a(this._last_last_text,["{",","]))?$="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?$="SPACE":$="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,$="NEWLINE"),D(g,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?$="SPACE":$="NEWLINE"),D(g,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===d.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ne=this._output.current_line;ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else $==="NEWLINE"?D(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(g,["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||!D(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(g,"if")&&w(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(g,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():$==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===s.WORD||g.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===s.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(g,"from")&&(this._flags.import_block=!1))},M.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var H=this._tokens.peek();this._flags.mode===d.Statement&&!(this._flags.if_block&&w(H,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},M.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),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(g):g.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},M.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},M.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(B(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(g)):this._flags.mode===d.ObjectLiteral||this._flags.mode===d.Statement&&this._flags.parent.mode===d.ObjectLiteral?(this._flags.mode===d.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},M.prototype.handle_operator=function(g){var H=g.text==="*"&&(D(this._flags.last_token,["function","yield"])||a(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),$=a(g.text,["-","+"])&&(a(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||a(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var ne=!H;this.handle_whitespace_and_comments(g,ne)}if(g.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(this._flags.last_token.type===s.OPERATOR&&a(this._options.operator_position,T)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),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 se=!0,Oe=!0,ge=!1;if(g.text===":"?this._flags.ternary_depth===0?se=!1:(this._flags.ternary_depth-=1,ge=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!$&&!H&&this._options.preserve_newlines&&a(g.text,o)){var Te=g.text===":",Re=Te&&ge,Le=Te&&!ge;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!Le,this.print_token(g),(!Te||Re)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!Te||Re?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case C.preserve_newline:Le||this.allow_wrap_or_preserved_newline(g),se=!(this._output.just_added_newline()||Le),this._output.space_before_token=se,this.print_token(g),this._output.space_before_token=!0;return}}if(H){this.allow_wrap_or_preserved_newline(g),se=!1;var ce=this._tokens.peek();Oe=ce&&a(ce.type,[s.WORD,s.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),se=this._flags.last_token.type===s.START_BLOCK,Oe=!1;else if(a(g.text,["--","++","!","~"])||$){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),se=!1,Oe=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var he=D(this._flags.last_token,R)&&g.newlines;he&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(he,!0)}this._flags.last_token.text===";"&&B(this._flags.mode)&&(se=!0),this._flags.last_token.type===s.RESERVED?se=!0:this._flags.last_token.type===s.END_EXPR?se=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===s.OPERATOR&&(se=a(g.text,["--","-","++","+"])&&a(this._flags.last_token.text,["--","-","++","+"]),a(g.text,["+","-"])&&a(this._flags.last_token.text,["--","++"])&&(Oe=!0)),(this._flags.mode===d.BlockStatement&&!this._flags.inline_frame||this._flags.mode===d.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||se,this.print_token(g),this._output.space_before_token=Oe},M.prototype.handle_block_comment=function(g,H){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,H),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!h.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,H)},M.prototype.print_block_commment=function(g,H){var $=y(g.text),ne,se=!1,Oe=!1,ge=g.whitespace_before,Te=ge.length;if(this.print_newline(!1,H),this.print_token_line_indentation(g),this._output.add_token($[0]),this.print_newline(!1,H),$.length>1){for($=$.slice(1),se=F($,"*"),Oe=_($,ge),se&&(this._flags.alignment=1),ne=0;ne<$.length;ne++)se?(this.print_token_line_indentation(g),this._output.add_token(O($[ne]))):Oe&&$[ne]?(this.print_token_line_indentation(g),this._output.add_token($[ne].substring(Te))):(this._output.current_line.set_indent(-1),this._output.add_token($[ne])),this.print_newline(!1,H);this._flags.alignment=0}},M.prototype.handle_comment=function(g,H){g.newlines?this.print_newline(!1,H):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,H)},M.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,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(g)},M.prototype.handle_unknown=function(g,H){this.print_token(g),g.text[g.text.length-1]===` -`&&this.print_newline(!1,H)},M.prototype.handle_eof=function(g){for(;this._flags.mode===d.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},r.exports.Beautifier=M},function(r){function L(p){this.__parent=p,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 p=new L(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},L.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},L.prototype.has_match=function(p){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var h=p.lastIndexOf(` +`);return g.length&&H.push(g),H}function b(g){return g===c.ArrayLiteral}function B(g){return a(g,[c.Expression,c.ForInitializer,c.Conditional])}function F(g,H){for(var $=0;$$&&($=g.line_indent_level));var ne={mode:H,parent:g,last_token:g?g.last_token:new p(s.START_BLOCK,""),last_word:g?g.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:$,alignment:0,line_indent_level:g?g.line_indent_level:$,start_line_index:this._output.get_line_number(),ternary_depth:0};return ne},M.prototype._reset=function(g){var H=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new m(this._options,H),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(c.BlockStatement);var $=new f(g,this._options);return this._tokens=$.tokenize(),g},M.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,H=this._reset(this._source_text),$=this._options.eol;this._options.eol==="auto"&&($=` +`,H&&h.lineBreak.test(H||"")&&($=H.match(h.lineBreak)[0]));for(var ne=this._tokens.next();ne;)this.handle_token(ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ne,ne=this._tokens.next();return g=this._output.get_code($),g},M.prototype.handle_token=function(g,H){g.type===s.START_EXPR?this.handle_start_expr(g):g.type===s.END_EXPR?this.handle_end_expr(g):g.type===s.START_BLOCK?this.handle_start_block(g):g.type===s.END_BLOCK?this.handle_end_block(g):g.type===s.WORD?this.handle_word(g):g.type===s.RESERVED?this.handle_word(g):g.type===s.SEMICOLON?this.handle_semicolon(g):g.type===s.STRING?this.handle_string(g):g.type===s.EQUALS?this.handle_equals(g):g.type===s.OPERATOR?this.handle_operator(g):g.type===s.COMMA?this.handle_comma(g):g.type===s.BLOCK_COMMENT?this.handle_block_comment(g,H):g.type===s.COMMENT?this.handle_comment(g,H):g.type===s.DOT?this.handle_dot(g):g.type===s.EOF?this.handle_eof(g):g.type===s.UNKNOWN?this.handle_unknown(g,H):this.handle_unknown(g,H)},M.prototype.handle_whitespace_and_comments=function(g,H){var $=g.newlines,ne=this._options.keep_array_indentation&&b(this._flags.mode);if(g.comments_before)for(var se=g.comments_before.next();se;)this.handle_whitespace_and_comments(se,H),this.handle_token(se,H),se=g.comments_before.next();if(ne)for(var Oe=0;Oe<$;Oe+=1)this.print_newline(Oe>0,H);else if(this._options.max_preserve_newlines&&$>this._options.max_preserve_newlines&&($=this._options.max_preserve_newlines),this._options.preserve_newlines&&$>1){this.print_newline(!1,H);for(var ge=1;ge<$;ge+=1)this.print_newline(!0,H)}};var I=["async","break","continue","return","throw","yield"];M.prototype.allow_wrap_or_preserved_newline=function(g,H){if(H=H===void 0?!1:H,this._output.just_added_newline())return;var $=this._options.preserve_newlines&&g.newlines||H,ne=a(this._flags.last_token.text,o)||a(g.text,o);if(ne){var se=a(this._flags.last_token.text,o)&&a(this._options.operator_position,T)||a(g.text,o);$=$&&se}if($)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,I))return;this._output.set_wrap_point()}},M.prototype.print_newline=function(g,H){if(!H&&(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 $=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&w($,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},M.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.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))},M.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var H=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(H),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},M.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.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))},M.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===c.Statement&&S(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.start_of_object_property=function(){return this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},M.prototype.start_of_statement=function(g){var H=!1;return H=H||D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD,H=H||w(this._flags.last_token,"do"),H=H||!(this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement)&&D(this._flags.last_token,I)&&!g.newlines,H=H||w(this._flags.last_token,"else")&&!(w(g,"if")&&!g.comments_before),H=H||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===c.ForInitializer||this._previous_flags.mode===c.Conditional),H=H||this._flags.last_token.type===s.WORD&&this._flags.mode===c.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==s.WORD&&g.type!==s.RESERVED,H=H||this._flags.mode===c.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),H?(this.set_mode(c.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,D(g,["do","for","if","while"])),!0):!1},M.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var H=c.Expression;if(g.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(H),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}H=c.ArrayLiteral,b(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())),a(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,H=c.ForInitializer):a(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,H=c.Conditional):a(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(a(this._flags.last_token.text,l)||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(g);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var $=this._tokens.peek(-3);if(this._options.space_after_named_function&&$){var ne=this._tokens.peek(-4);D($,["async","function"])||$.text==="*"&&D(ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?($.text==="{"||$.text===","||$.text==="*"&&(ne.text==="{"||ne.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(g);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&a(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(g,g.newlines),this.print_token(g),this.set_mode(H),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},M.prototype.handle_end_expr=function(g){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&b(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(g),this.restore_mode(),S(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===c.Conditional&&(this._previous_flags.mode=c.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},M.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var H=this._tokens.peek(),$=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(c.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(c.BlockStatement):$&&(a($.text,[":",","])&&a(H.type,[s.STRING,s.WORD,s.RESERVED])||a(H.text,["get","set","..."])&&a($.type,[s.WORD,s.RESERVED]))?a(this._last_last_text,["class","interface"])&&!a($.text,[":",","])?this.set_mode(c.BlockStatement):this.set_mode(c.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(c.BlockStatement):a(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(c.ObjectLiteral):this.set_mode(c.BlockStatement),this._flags.last_token&&(D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ne=!H.comments_before&&H.text==="}",se=ne&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Oe=0,ge=null;this._flags.inline_frame=!0;do if(Oe+=1,ge=this._tokens.peek(Oe-1),ge.newlines){this._flags.inline_frame=!1;break}while(ge.type!==s.EOF&&!(ge.type===s.END_BLOCK&&ge.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(se||this._flags.last_token.type===s.EQUALS||D(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(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(g),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(g),this.indent(),!ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},M.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===c.Statement;)this.restore_mode();var H=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!H?this._output.space_before_token=!0:this._options.brace_style==="expand"?H||this.print_newline():H||(b(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(g)},M.prototype.handle_word=function(g){if(g.type===s.RESERVED){if(a(g.text,["set","get"])&&this._flags.mode!==c.ObjectLiteral)g.type=s.WORD;else if(g.text==="import"&&a(this._tokens.peek().text,["(","."]))g.type=s.WORD;else if(a(g.text,["as","from"])&&!this._flags.import_block)g.type=s.WORD;else if(this._flags.mode===c.ObjectLiteral){var H=this._tokens.peek();H.text===":"&&(g.type=s.WORD)}}if(this.start_of_statement(g)?D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!B(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||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(w(g,"while")){this._output.space_before_token=!0,this.print_token(g),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&&w(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===c.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(g,["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(g),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(g)),w(g,"function")){(a(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(a(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,I)?this._output.space_before_token=!0:w(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&&(B(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var $="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?$="SPACE":D(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?$="NEWLINE":($="SPACE",this._output.space_before_token=!0):$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===c.BlockStatement?$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&B(this._flags.mode)?$="SPACE":this._flags.last_token.type===s.STRING?$="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&a(this._last_last_text,["{",","]))?$="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?$="SPACE":$="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,$="NEWLINE"),D(g,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?$="SPACE":$="NEWLINE"),D(g,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===c.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ne=this._output.current_line;ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else $==="NEWLINE"?D(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(g,["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||!D(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(g,"if")&&w(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(g,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():$==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===s.WORD||g.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===s.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(g,"from")&&(this._flags.import_block=!1))},M.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var H=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&w(H,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},M.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),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(g):g.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},M.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},M.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(B(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(g)):this._flags.mode===c.ObjectLiteral||this._flags.mode===c.Statement&&this._flags.parent.mode===c.ObjectLiteral?(this._flags.mode===c.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},M.prototype.handle_operator=function(g){var H=g.text==="*"&&(D(this._flags.last_token,["function","yield"])||a(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),$=a(g.text,["-","+"])&&(a(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||a(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var ne=!H;this.handle_whitespace_and_comments(g,ne)}if(g.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(this._flags.last_token.type===s.OPERATOR&&a(this._options.operator_position,T)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),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 se=!0,Oe=!0,ge=!1;if(g.text===":"?this._flags.ternary_depth===0?se=!1:(this._flags.ternary_depth-=1,ge=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!$&&!H&&this._options.preserve_newlines&&a(g.text,o)){var Te=g.text===":",Re=Te&&ge,Le=Te&&!ge;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!Le,this.print_token(g),(!Te||Re)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!Te||Re?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case C.preserve_newline:Le||this.allow_wrap_or_preserved_newline(g),se=!(this._output.just_added_newline()||Le),this._output.space_before_token=se,this.print_token(g),this._output.space_before_token=!0;return}}if(H){this.allow_wrap_or_preserved_newline(g),se=!1;var de=this._tokens.peek();Oe=de&&a(de.type,[s.WORD,s.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),se=this._flags.last_token.type===s.START_BLOCK,Oe=!1;else if(a(g.text,["--","++","!","~"])||$){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),se=!1,Oe=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var he=D(this._flags.last_token,R)&&g.newlines;he&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(he,!0)}this._flags.last_token.text===";"&&B(this._flags.mode)&&(se=!0),this._flags.last_token.type===s.RESERVED?se=!0:this._flags.last_token.type===s.END_EXPR?se=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===s.OPERATOR&&(se=a(g.text,["--","-","++","+"])&&a(this._flags.last_token.text,["--","-","++","+"]),a(g.text,["+","-"])&&a(this._flags.last_token.text,["--","++"])&&(Oe=!0)),(this._flags.mode===c.BlockStatement&&!this._flags.inline_frame||this._flags.mode===c.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||se,this.print_token(g),this._output.space_before_token=Oe},M.prototype.handle_block_comment=function(g,H){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,H),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!h.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,H)},M.prototype.print_block_commment=function(g,H){var $=y(g.text),ne,se=!1,Oe=!1,ge=g.whitespace_before,Te=ge.length;if(this.print_newline(!1,H),this.print_token_line_indentation(g),this._output.add_token($[0]),this.print_newline(!1,H),$.length>1){for($=$.slice(1),se=F($,"*"),Oe=_($,ge),se&&(this._flags.alignment=1),ne=0;ne<$.length;ne++)se?(this.print_token_line_indentation(g),this._output.add_token(O($[ne]))):Oe&&$[ne]?(this.print_token_line_indentation(g),this._output.add_token($[ne].substring(Te))):(this._output.current_line.set_indent(-1),this._output.add_token($[ne])),this.print_newline(!1,H);this._flags.alignment=0}},M.prototype.handle_comment=function(g,H){g.newlines?this.print_newline(!1,H):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,H)},M.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,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(g)},M.prototype.handle_unknown=function(g,H){this.print_token(g),g.text[g.text.length-1]===` +`&&this.print_newline(!1,H)},M.prototype.handle_eof=function(g){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},r.exports.Beautifier=M},function(r){function L(p){this.__parent=p,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 p=new L(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},L.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},L.prototype.has_match=function(p){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var h=p.lastIndexOf(` `);h!==-1?this.__character_count=p.length-h:this.__character_count+=p.length},L.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function v(p,h){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),h=h||"",p.indent_level>0&&(h=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}v.prototype.get_indent_size=function(p,h){var u=this.__base_string_length;return h=h||0,p<0&&(u=0),u+=p*this.__indent_size,u+=h,u},v.prototype.get_indent_string=function(p,h){var u=this.__base_string;return h=h||0,p<0&&(p=0,u=""),h+=p*this.__indent_size,this.__ensure_cache(h),u+=this.__cache[h],u},v.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var p=this.__cache.length,h=0,u="";this.__indent_size&&p>=this.__indent_size&&(h=Math.floor(p/this.__indent_size),p-=h*this.__indent_size,u=new Array(h+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,h){this.__indent_cache=new v(p,h),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.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()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,h){return this.__indent_cache.get_indent_string(p,h)},m.prototype.get_indent_size=function(p,h){return this.__indent_cache.get_indent_size(p,h)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===` `&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(` `);return p!==` @@ -15,16 +15,16 @@ `+h+` You passed in: '`+this.raw_options[p]+"'");return f[0]},L.prototype._get_selection_list=function(p,h,u){if(!h||h.length===0)throw new Error("Selection list cannot be empty.");if(u=u||[h[0]],!this._is_valid_selection(u,h))throw new Error("Invalid Default Value!");var f=this._get_array(p,u);if(!this._is_valid_selection(f,h))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values: `+h+` -You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selection=function(p,h){return p.length&&h.length&&!p.some(function(u){return h.indexOf(u)===-1})};function v(p,h){var u={};p=m(p);var f;for(f in p)f!==h&&(u[f]=p[f]);if(h&&p[h])for(f in p[h])u[f]=p[h][f];return u}function m(p){var h={},u;for(u in p){var f=u.replace(/-/g,"_");h[f]=p[u]}return h}r.exports.Options=L,r.exports.normalizeOpts=m,r.exports.mergeOpts=v},function(r,L,v){var m=v(8).InputScanner,p=v(9).Tokenizer,h=v(9).TOKEN,u=v(13).Directives,f=v(4),l=v(12).Pattern,o=v(14).TemplatablePattern;function s(F,_){return _.indexOf(F)!==-1}var a={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:h.START,RAW:h.RAW,EOF:h.EOF},O=new u(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,D=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var C=new RegExp(A),T="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),d=T.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+d.join("|")+")$"),y,b=function(F,_){p.call(this,F,_),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var M=new l(this._input),I=new o(this._input).read_options(this._options);this.__patterns={template:I,identifier:I.starting_with(f.identifier).matching(f.identifierMatch),number:M.matching(E),punct:M.matching(C),comment:M.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:M.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:M.matching(//),include:M.starting_with(/#include/).until_after(f.lineBreak),shebang:M.starting_with(/#!/).until_after(f.lineBreak),xml:M.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:I.until(/['\\\n\r\u2028\u2029]/),double_quote:I.until(/["\\\n\r\u2028\u2029]/),template_text:I.until(/[`\\$]/),template_expression:I.until(/[`}\\]/)}};b.prototype=new p,b.prototype._is_comment=function(F){return F.type===a.COMMENT||F.type===a.BLOCK_COMMENT||F.type===a.UNKNOWN},b.prototype._is_opening=function(F){return F.type===a.START_BLOCK||F.type===a.START_EXPR},b.prototype._is_closing=function(F,_){return(F.type===a.END_BLOCK||F.type===a.END_EXPR)&&_&&(F.text==="]"&&_.text==="["||F.text===")"&&_.text==="("||F.text==="}"&&_.text==="{")},b.prototype._reset=function(){y=!1},b.prototype._get_next_token=function(F,_){var M=null;this._readWhitespace();var I=this._input.peek();return I===null?this._create_token(a.EOF,""):(M=M||this._read_non_javascript(I),M=M||this._read_string(I),M=M||this._read_word(F),M=M||this._read_singles(I),M=M||this._read_comment(I),M=M||this._read_regexp(I,F),M=M||this._read_xml(I,F),M=M||this._read_punctuation(),M=M||this._create_token(a.UNKNOWN,this._input.next()),M)},b.prototype._read_word=function(F){var _;if(_=this.__patterns.identifier.read(),_!=="")return _=_.replace(f.allLineBreaks,` +You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selection=function(p,h){return p.length&&h.length&&!p.some(function(u){return h.indexOf(u)===-1})};function v(p,h){var u={};p=m(p);var f;for(f in p)f!==h&&(u[f]=p[f]);if(h&&p[h])for(f in p[h])u[f]=p[h][f];return u}function m(p){var h={},u;for(u in p){var f=u.replace(/-/g,"_");h[f]=p[u]}return h}r.exports.Options=L,r.exports.normalizeOpts=m,r.exports.mergeOpts=v},function(r,L,v){var m=v(8).InputScanner,p=v(9).Tokenizer,h=v(9).TOKEN,u=v(13).Directives,f=v(4),l=v(12).Pattern,o=v(14).TemplatablePattern;function s(F,_){return _.indexOf(F)!==-1}var a={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:h.START,RAW:h.RAW,EOF:h.EOF},O=new u(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,D=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var C=new RegExp(A),T="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),c=T.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+c.join("|")+")$"),y,b=function(F,_){p.call(this,F,_),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var M=new l(this._input),I=new o(this._input).read_options(this._options);this.__patterns={template:I,identifier:I.starting_with(f.identifier).matching(f.identifierMatch),number:M.matching(E),punct:M.matching(C),comment:M.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:M.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:M.matching(//),include:M.starting_with(/#include/).until_after(f.lineBreak),shebang:M.starting_with(/#!/).until_after(f.lineBreak),xml:M.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:I.until(/['\\\n\r\u2028\u2029]/),double_quote:I.until(/["\\\n\r\u2028\u2029]/),template_text:I.until(/[`\\$]/),template_expression:I.until(/[`}\\]/)}};b.prototype=new p,b.prototype._is_comment=function(F){return F.type===a.COMMENT||F.type===a.BLOCK_COMMENT||F.type===a.UNKNOWN},b.prototype._is_opening=function(F){return F.type===a.START_BLOCK||F.type===a.START_EXPR},b.prototype._is_closing=function(F,_){return(F.type===a.END_BLOCK||F.type===a.END_EXPR)&&_&&(F.text==="]"&&_.text==="["||F.text===")"&&_.text==="("||F.text==="}"&&_.text==="{")},b.prototype._reset=function(){y=!1},b.prototype._get_next_token=function(F,_){var M=null;this._readWhitespace();var I=this._input.peek();return I===null?this._create_token(a.EOF,""):(M=M||this._read_non_javascript(I),M=M||this._read_string(I),M=M||this._read_word(F),M=M||this._read_singles(I),M=M||this._read_comment(I),M=M||this._read_regexp(I,F),M=M||this._read_xml(I,F),M=M||this._read_punctuation(),M=M||this._create_token(a.UNKNOWN,this._input.next()),M)},b.prototype._read_word=function(F){var _;if(_=this.__patterns.identifier.read(),_!=="")return _=_.replace(f.allLineBreaks,` `),!(F.type===a.DOT||F.type===a.RESERVED&&(F.text==="set"||F.text==="get"))&&S.test(_)?(_==="in"||_==="of")&&(F.type===a.WORD||F.type===a.STRING)?this._create_token(a.OPERATOR,_):this._create_token(a.RESERVED,_):this._create_token(a.WORD,_);if(_=this.__patterns.number.read(),_!=="")return this._create_token(a.WORD,_)},b.prototype._read_singles=function(F){var _=null;return F==="("||F==="["?_=this._create_token(a.START_EXPR,F):F===")"||F==="]"?_=this._create_token(a.END_EXPR,F):F==="{"?_=this._create_token(a.START_BLOCK,F):F==="}"?_=this._create_token(a.END_BLOCK,F):F===";"?_=this._create_token(a.SEMICOLON,F):F==="."&&D.test(this._input.peek(1))?_=this._create_token(a.DOT,F):F===","&&(_=this._create_token(a.COMMA,F)),_&&this._input.next(),_},b.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token(a.EQUALS,F):F==="?."?this._create_token(a.DOT,F):this._create_token(a.OPERATOR,F)},b.prototype._read_non_javascript=function(F){var _="";if(F==="#"){if(this._is_first_token()&&(_=this.__patterns.shebang.read(),_))return this._create_token(a.UNKNOWN,_.trim()+` `);if(_=this.__patterns.include.read(),_)return this._create_token(a.UNKNOWN,_.trim()+` `);F=this._input.next();var M="#";if(this._input.hasNext()&&this._input.testChar(w)){do F=this._input.next(),M+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(M+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(M+="{}",this._input.next(),this._input.next())),this._create_token(a.WORD,M)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(_=this.__patterns.html_comment_start.read(),_){for(;this._input.hasNext()&&!this._input.testChar(f.newline);)_+=this._input.next();return y=!0,this._create_token(a.COMMENT,_)}}else if(y&&F==="-"&&(_=this.__patterns.html_comment_end.read(),_))return y=!1,this._create_token(a.COMMENT,_);return null},b.prototype._read_comment=function(F){var _=null;if(F==="/"){var M="";if(this._input.peek(1)==="*"){M=this.__patterns.block_comment.read();var I=O.get_directives(M);I&&I.ignore==="start"&&(M+=O.readIgnored(this._input)),M=M.replace(f.allLineBreaks,` `),_=this._create_token(a.BLOCK_COMMENT,M),_.directives=I}else this._input.peek(1)==="/"&&(M=this.__patterns.comment.read(),_=this._create_token(a.COMMENT,M))}return _},b.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var _=this._input.next();return this.has_char_escapes=!1,F==="`"?_+=this._read_string_recursive("`",!0,"${"):_+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(_=B(_)),this._input.peek()===F&&(_+=this._input.next()),_=_.replace(f.allLineBreaks,` `),this._create_token(a.STRING,_)}return null},b.prototype._allow_regexp_or_xml=function(F){return F.type===a.RESERVED&&s(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===a.END_EXPR&&F.text===")"&&F.opened.previous.type===a.RESERVED&&s(F.opened.previous.text,["if","while","for"])||s(F.type,[a.COMMENT,a.START_EXPR,a.START_BLOCK,a.START,a.END_BLOCK,a.OPERATOR,a.EQUALS,a.EOF,a.SEMICOLON,a.COMMA])},b.prototype._read_regexp=function(F,_){if(F==="/"&&this._allow_regexp_or_xml(_)){for(var M=this._input.next(),I=!1,g=!1;this._input.hasNext()&&(I||g||this._input.peek()!==F)&&!this._input.testChar(f.newline);)M+=this._input.peek(),I?I=!1:(I=this._input.peek()==="\\",this._input.peek()==="["?g=!0:this._input.peek()==="]"&&(g=!1)),this._input.next();return this._input.peek()===F&&(M+=this._input.next(),M+=this._input.read(f.identifier)),this._create_token(a.STRING,M)}return null},b.prototype._read_xml=function(F,_){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(_)){var M="",I=this.__patterns.xml.read_match();if(I){for(var g=I[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),H=g.indexOf("{")===0,$=0;I;){var ne=!!I[1],se=I[2],Oe=!!I[I.length-1]||se.slice(0,8)==="![CDATA[";if(!Oe&&(se===g||H&&se.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ne?--$:++$),M+=I[0],$<=0)break;I=this.__patterns.xml.read_match()}return I||(M+=this._input.match(/[\s\S]*/g)[0]),M=M.replace(f.allLineBreaks,` `),this._create_token(a.STRING,M)}}return null};function B(F){for(var _="",M=0,I=new m(F),g=null;I.hasNext();)if(g=I.match(/([\s]|[^\\]|\\\\)+/g),g&&(_+=g[0]),I.peek()==="\\"){if(I.next(),I.peek()==="x")g=I.match(/x([0-9A-Fa-f]{2})/g);else if(I.peek()==="u")g=I.match(/u([0-9A-Fa-f]{4})/g);else{_+="\\",I.hasNext()&&(_+=I.next());continue}if(!g)return F;if(M=parseInt(g[1],16),M>126&&M<=255&&g[0].indexOf("x")===0)return F;if(M>=0&&M<32){_+="\\"+g[0];continue}else M===34||M===39||M===92?_+="\\"+String.fromCharCode(M):_+=String.fromCharCode(M)}return _}b.prototype._read_string_recursive=function(F,_,M){var I,g;F==="'"?g=this.__patterns.single_quote:F==='"'?g=this.__patterns.double_quote:F==="`"?g=this.__patterns.template_text:F==="}"&&(g=this.__patterns.template_expression);for(var H=g.read(),$="";this._input.hasNext();){if($=this._input.next(),$===F||!_&&f.newline.test($)){this._input.back();break}else $==="\\"&&this._input.hasNext()?(I=this._input.peek(),I==="x"||I==="u"?this.has_char_escapes=!0:I==="\r"&&this._input.peek(1)===` -`&&this._input.next(),$+=this._input.next()):M&&(M==="${"&&$==="$"&&this._input.peek()==="{"&&($+=this._input.next()),M===$&&(F==="`"?$+=this._read_string_recursive("}",_,"`"):$+=this._read_string_recursive("`",_,"${"),this._input.hasNext()&&($+=this._input.next())));$+=g.read(),H+=$}return H},r.exports.Tokenizer=b,r.exports.TOKEN=a,r.exports.positionable_operators=R.slice(),r.exports.line_starters=T.slice()},function(r){var L=RegExp.prototype.hasOwnProperty("sticky");function v(m){this.__input=m||"",this.__input_length=this.__input.length,this.__position=0}v.prototype.restart=function(){this.__position=0},v.prototype.back=function(){this.__position>0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position=0&&m=0&&p=m.length&&this.__input.substring(p-m.length,p).toLowerCase()===m},r.exports.InputScanner=v},function(r,L,v){var m=v(8).InputScanner,p=v(3).Token,h=v(10).TokenStream,u=v(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(o,s){this._input=new m(o),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new u(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new h,this._reset();for(var o,s=new p(f.START,""),a=null,O=[],E=new h;s.type!==f.EOF;){for(o=this._get_next_token(s,a);this._is_comment(o);)E.add(o),o=this._get_next_token(s,a);E.isEmpty()||(o.comments_before=E,E=new h),o.parent=a,this._is_opening(o)?(O.push(a),a=o):a&&this._is_closing(o,a)&&(o.opened=a,a.closed=o,a=O.pop(),o.parent=a),o.previous=s,s.next=o,this.__tokens.add(o),s=o}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(o,s){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(f.RAW,a):this._create_token(f.EOF,"")},l.prototype._is_comment=function(o){return!1},l.prototype._is_opening=function(o){return!1},l.prototype._is_closing=function(o,s){return!1},l.prototype._create_token=function(o,s){var a=new p(o,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return a},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=l,r.exports.TOKEN=f},function(r){function L(v){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=v}L.prototype.restart=function(){this.__position=0},L.prototype.isEmpty=function(){return this.__tokens_length===0},L.prototype.hasNext=function(){return this.__position=0&&v/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}h.prototype=new m,h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){this.__set_templated_pattern()},h.prototype.disable=function(u){var f=this._create();return f._disabled[u]=!0,f._update(),f},h.prototype.read_options=function(u){var f=this._create();for(var l in p)f._disabled[l]=u.templating.indexOf(l)===-1;return f._update(),f},h.prototype.exclude=function(u){var f=this._create();return f._excluded[u]=!0,f._update(),f},h.prototype.read=function(){var u="";this._match_pattern?u=this._input.read(this._starting_pattern):u=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),u+=f,f=this._read_template();return this._until_after&&(u+=this._input.readUntilAfter(this._until_pattern)),u},h.prototype.__set_templated_pattern=function(){var u=[];this._disabled.php||u.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||u.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||u.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(u.push(this.__patterns.django._starting_pattern.source),u.push(this.__patterns.django_value._starting_pattern.source),u.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||u.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&u.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+u.join("|")+")")},h.prototype._read_template=function(){var u="",f=this._input.peek();if(f==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(u=u||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(u=u||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(u=u||this.__patterns.handlebars_comment.read(),u=u||this.__patterns.handlebars_unescaped.read(),u=u||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(u=u||this.__patterns.django_value.read()),this._excluded.django||(u=u||this.__patterns.django_comment.read(),u=u||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(u=u||this.__patterns.smarty_comment.read(),u=u||this.__patterns.smarty_literal.read(),u=u||this.__patterns.smarty.read()));return u},r.exports.TemplatablePattern=h}],U={};function K(r){var L=U[r];if(L!==void 0)return L.exports;var v=U[r]={exports:{}};return j[r](v,v.exports,K),v.exports}var G=K(0);P=G})();var X=P;!(ie=[],J=function(){return{js_beautify:X}}.apply(be,ie),J!==void 0&&(rt.exports=J))})()},"746U":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return ie}),Z.d(be,"l",function(){return J}),Z.d(be,"k",function(){return P}),Z.d(be,"j",function(){return X}),Z.d(be,"g",function(){return j}),Z.d(be,"m",function(){return U}),Z.d(be,"h",function(){return K}),Z.d(be,"n",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"a",function(){return L}),Z.d(be,"i",function(){return v}),Z.d(be,"o",function(){return m}),Z.d(be,"e",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"p",function(){return l}),Z.d(be,"b",function(){return o});function ie(s){return Array.isArray(s)}function J(s){return typeof s=="string"}function P(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function X(s){return typeof s=="number"&&!isNaN(s)}function j(s){return s===!0||s===!1}function U(s){return typeof s=="undefined"}function K(s){return!G(s)}function G(s){return U(s)||s===null}function r(s,a){if(!s)throw new Error(a?`Unexpected type, expected '${a}'`:"Unexpected type")}function L(s){if(G(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function v(s){return typeof s=="function"}function m(s,a){const O=Math.min(s.length,a.length);for(let E=0;Efunction(){const D=Array.prototype.slice.call(arguments,0);return a(w,D)};let E={};for(const w of s)E[w]=O(w);return E}function l(s){return s===null?void 0:s}function o(s,a="Unreachable"){throw new Error(a)}},"7Cbv":function(rt,be,Z){"use strict";var ie=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),J=new Uint8Array(16);function P(){if(!ie)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ie(J)}var X=/^(?:[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 j(p){return typeof p=="string"&&X.test(p)}for(var U=j,K=[],G=0;G<256;++G)K.push((G+256).toString(16).substr(1));function r(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=(K[p[h+0]]+K[p[h+1]]+K[p[h+2]]+K[p[h+3]]+"-"+K[p[h+4]]+K[p[h+5]]+"-"+K[p[h+6]]+K[p[h+7]]+"-"+K[p[h+8]]+K[p[h+9]]+"-"+K[p[h+10]]+K[p[h+11]]+K[p[h+12]]+K[p[h+13]]+K[p[h+14]]+K[p[h+15]]).toLowerCase();if(!U(u))throw TypeError("Stringified UUID is invalid");return u}var L=r;function v(p,h,u){p=p||{};var f=p.random||(p.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,h){u=u||0;for(var l=0;l<16;++l)h[u+l]=f[l];return h}return L(f)}var m=be.a=v},"7ahc":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return O});var ie=Z("k1fw"),J=Z("0Owb"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("y8nQ"),U=Z("Vl3Y"),K=Z("tJVT"),G=Z("OaEy"),r=Z("2fM7"),L=Z("q1tI"),v=Z.n(L),m=Z("VrN/"),p=Z.n(m),h=Z("p77/"),u=Z.n(h),f=Z("c5Ni"),l=Z.n(f),o=r.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},a={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"]};be.b=function(E){var w=E.callback,D=E.onCancel,R=Object(L.useState)("python"),A=Object(K.a)(R,2),C=A[0],T=A[1];function d(y){T(a[y][1])}function S(y){w(y)}return v.a.createElement(U.a,Object(J.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:S}),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.a.createElement(r.a,{onChange:d},Object.keys(a).map(function(y){return v.a.createElement(o,{key:y,value:y},a[y][0])}))),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.a.createElement(O,{mode:C})),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(X.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(X.a,{type:"ghost",onClick:D},"\u53D6\u6D88")))};function O(E){var w=E.value,D=E.onChange,R=E.mode,A=E.options,C=A===void 0?{}:A,T=Object(L.useRef)(),d=Object(L.useState)(),S=Object(K.a)(d,2),y=S[0],b=S[1];return Object(L.useEffect)(function(){if(y){function B(F){var _=F.getValue();D&&D(_)}return y.on("change",B),function(){y.off("change",B)}}},[y,D]),Object(L.useEffect)(function(){y&&y.setOption("mode",R)},[y,R]),Object(L.useEffect)(function(){y&&((w!==y.getValue()||w==="")&&setTimeout(function(){y.setValue(w||" ")},300))},[y,w]),Object(L.useEffect)(function(){if(T.current&&!y){var B=p.a.fromTextArea(T.current,Object(ie.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));b(B)}},[T.current,y]),v.a.createElement("div",{className:"my-codemirror-container"},v.a.createElement("textarea",{ref:T}))}},"8EBN":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";ie.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 J=0;J-1&&X.substring(K+1,X.length);if(G)return ie.findModeByExtension(G)},ie.findModeByName=function(X){X=X.toLowerCase();for(var j=0;j0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position=0&&m=0&&p=m.length&&this.__input.substring(p-m.length,p).toLowerCase()===m},r.exports.InputScanner=v},function(r,L,v){var m=v(8).InputScanner,p=v(3).Token,h=v(10).TokenStream,u=v(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(o,s){this._input=new m(o),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new u(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new h,this._reset();for(var o,s=new p(f.START,""),a=null,O=[],E=new h;s.type!==f.EOF;){for(o=this._get_next_token(s,a);this._is_comment(o);)E.add(o),o=this._get_next_token(s,a);E.isEmpty()||(o.comments_before=E,E=new h),o.parent=a,this._is_opening(o)?(O.push(a),a=o):a&&this._is_closing(o,a)&&(o.opened=a,a.closed=o,a=O.pop(),o.parent=a),o.previous=s,s.next=o,this.__tokens.add(o),s=o}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(o,s){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(f.RAW,a):this._create_token(f.EOF,"")},l.prototype._is_comment=function(o){return!1},l.prototype._is_opening=function(o){return!1},l.prototype._is_closing=function(o,s){return!1},l.prototype._create_token=function(o,s){var a=new p(o,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return a},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=l,r.exports.TOKEN=f},function(r){function L(v){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=v}L.prototype.restart=function(){this.__position=0},L.prototype.isEmpty=function(){return this.__tokens_length===0},L.prototype.hasNext=function(){return this.__position=0&&v/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}h.prototype=new m,h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){this.__set_templated_pattern()},h.prototype.disable=function(u){var f=this._create();return f._disabled[u]=!0,f._update(),f},h.prototype.read_options=function(u){var f=this._create();for(var l in p)f._disabled[l]=u.templating.indexOf(l)===-1;return f._update(),f},h.prototype.exclude=function(u){var f=this._create();return f._excluded[u]=!0,f._update(),f},h.prototype.read=function(){var u="";this._match_pattern?u=this._input.read(this._starting_pattern):u=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),u+=f,f=this._read_template();return this._until_after&&(u+=this._input.readUntilAfter(this._until_pattern)),u},h.prototype.__set_templated_pattern=function(){var u=[];this._disabled.php||u.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||u.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||u.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(u.push(this.__patterns.django._starting_pattern.source),u.push(this.__patterns.django_value._starting_pattern.source),u.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||u.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&u.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+u.join("|")+")")},h.prototype._read_template=function(){var u="",f=this._input.peek();if(f==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(u=u||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(u=u||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(u=u||this.__patterns.handlebars_comment.read(),u=u||this.__patterns.handlebars_unescaped.read(),u=u||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(u=u||this.__patterns.django_value.read()),this._excluded.django||(u=u||this.__patterns.django_comment.read(),u=u||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(u=u||this.__patterns.smarty_comment.read(),u=u||this.__patterns.smarty_literal.read(),u=u||this.__patterns.smarty.read()));return u},r.exports.TemplatablePattern=h}],U={};function K(r){var L=U[r];if(L!==void 0)return L.exports;var v=U[r]={exports:{}};return j[r](v,v.exports,K),v.exports}var G=K(0);P=G})();var X=P;!(ie=[],J=function(){return{js_beautify:X}}.apply(be,ie),J!==void 0&&(rt.exports=J))})()},"746U":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return ie}),Z.d(be,"l",function(){return J}),Z.d(be,"k",function(){return P}),Z.d(be,"j",function(){return X}),Z.d(be,"g",function(){return j}),Z.d(be,"m",function(){return U}),Z.d(be,"h",function(){return K}),Z.d(be,"n",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"a",function(){return L}),Z.d(be,"i",function(){return v}),Z.d(be,"o",function(){return m}),Z.d(be,"e",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"p",function(){return l}),Z.d(be,"b",function(){return o});function ie(s){return Array.isArray(s)}function J(s){return typeof s=="string"}function P(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function X(s){return typeof s=="number"&&!isNaN(s)}function j(s){return s===!0||s===!1}function U(s){return typeof s=="undefined"}function K(s){return!G(s)}function G(s){return U(s)||s===null}function r(s,a){if(!s)throw new Error(a?`Unexpected type, expected '${a}'`:"Unexpected type")}function L(s){if(G(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function v(s){return typeof s=="function"}function m(s,a){const O=Math.min(s.length,a.length);for(let E=0;Efunction(){const D=Array.prototype.slice.call(arguments,0);return a(w,D)};let E={};for(const w of s)E[w]=O(w);return E}function l(s){return s===null?void 0:s}function o(s,a="Unreachable"){throw new Error(a)}},"7Cbv":function(rt,be,Z){"use strict";var ie=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),J=new Uint8Array(16);function P(){if(!ie)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ie(J)}var X=/^(?:[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 j(p){return typeof p=="string"&&X.test(p)}for(var U=j,K=[],G=0;G<256;++G)K.push((G+256).toString(16).substr(1));function r(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=(K[p[h+0]]+K[p[h+1]]+K[p[h+2]]+K[p[h+3]]+"-"+K[p[h+4]]+K[p[h+5]]+"-"+K[p[h+6]]+K[p[h+7]]+"-"+K[p[h+8]]+K[p[h+9]]+"-"+K[p[h+10]]+K[p[h+11]]+K[p[h+12]]+K[p[h+13]]+K[p[h+14]]+K[p[h+15]]).toLowerCase();if(!U(u))throw TypeError("Stringified UUID is invalid");return u}var L=r;function v(p,h,u){p=p||{};var f=p.random||(p.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,h){u=u||0;for(var l=0;l<16;++l)h[u+l]=f[l];return h}return L(f)}var m=be.a=v},"7ahc":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return O});var ie=Z("k1fw"),J=Z("0Owb"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("y8nQ"),U=Z("Vl3Y"),K=Z("tJVT"),G=Z("OaEy"),r=Z("2fM7"),L=Z("q1tI"),v=Z.n(L),m=Z("VrN/"),p=Z.n(m),h=Z("p77/"),u=Z.n(h),f=Z("c5Ni"),l=Z.n(f),o=r.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},a={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"]};be.b=function(E){var w=E.callback,D=E.onCancel,R=Object(L.useState)("python"),A=Object(K.a)(R,2),C=A[0],T=A[1];function c(y){T(a[y][1])}function S(y){w(y)}return v.a.createElement(U.a,Object(J.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:S}),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.a.createElement(r.a,{onChange:c},Object.keys(a).map(function(y){return v.a.createElement(o,{key:y,value:y},a[y][0])}))),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.a.createElement(O,{mode:C})),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(X.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(X.a,{type:"ghost",onClick:D},"\u53D6\u6D88")))};function O(E){var w=E.value,D=E.onChange,R=E.mode,A=E.options,C=A===void 0?{}:A,T=Object(L.useRef)(),c=Object(L.useState)(),S=Object(K.a)(c,2),y=S[0],b=S[1];return Object(L.useEffect)(function(){if(y){function B(F){var _=F.getValue();D&&D(_)}return y.on("change",B),function(){y.off("change",B)}}},[y,D]),Object(L.useEffect)(function(){y&&y.setOption("mode",R)},[y,R]),Object(L.useEffect)(function(){y&&((w!==y.getValue()||w==="")&&setTimeout(function(){y.setValue(w||" ")},300))},[y,w]),Object(L.useEffect)(function(){if(T.current&&!y){var B=p.a.fromTextArea(T.current,Object(ie.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));b(B)}},[T.current,y]),v.a.createElement("div",{className:"my-codemirror-container"},v.a.createElement("textarea",{ref:T}))}},"8EBN":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";ie.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 J=0;J-1&&X.substring(K+1,X.length);if(G)return ie.findModeByExtension(G)},ie.findModeByName=function(X){X=X.toLowerCase();for(var j=0;j=W.length?ee.slice(W.length):ee}).join(` -`)}var l=[],o=["

    "],s=new h.a.Renderer,a=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){l.length=0,o=["
      "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(Y,x,k,W){if(x>=Y.length||Y[x].level<=k)return x;var ee=Y[x];W.push("
    • "+ee.text+""),x++;var V=[];return x=w(Y,x,ee.level,V),V.length>0&&(W.push("
        "),V.forEach(function(Ee){W.push(Ee)}),W.push("
      ")),W.push("
    • "),x=w(Y,x,k,W),x}function D(){return w(l,0,0,o),o.push("
    "),o.join("")}var R={heading:function(x){var k=a.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[1].length,text:k[2]}},fences:function(x){var k=this.rules.block.fences.exec(x);if(k){var W=k[0],ee=f(W,k[3]||""),V=k[2]?k[2].trim():k[2];if(["latex","katex","math"].indexOf(V)>=0){var Ee=T(),Ye=ee;ee=Ee,d[Ee]={type:"block",expression:Ye}}return{type:"code",raw:W,lang:V,text:ee}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,T=function(){return"__special_katext_id_".concat(C++,"__")},d={};function S(){return d}function y(){C=0,d={}}function b(Y){return Y=Y.replace(A,function(x,k){var W=T();return d[W]={type:"inline",expression:k},W}),Y}var B=s.listitem;s.listitem=function(Y){return B(b(Y))};var F=s.paragraph;s.paragraph=function(Y){return F(b(Y))};var _=s.tablecell;s.tablecell=function(Y,x){return _(b(Y),x)},s.code=function(Y,x,k){var W=(x||"").match(/\S*/)[0];return W?["latex","katex","math"].indexOf(W)>=0?"

    ".concat(Y,"

    "):'
    ').concat(k?Y:Object(u.escape)(Y,!0),`
    +`)}var l=[],o=["
      "],s=new h.a.Renderer,a=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){l.length=0,o=["
        "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(Y,x,k,W){if(x>=Y.length||Y[x].level<=k)return x;var ee=Y[x];W.push("
      • "+ee.text+""),x++;var V=[];return x=w(Y,x,ee.level,V),V.length>0&&(W.push("
          "),V.forEach(function(Ee){W.push(Ee)}),W.push("
        ")),W.push("
      • "),x=w(Y,x,k,W),x}function D(){return w(l,0,0,o),o.push("
      "),o.join("")}var R={heading:function(x){var k=a.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[1].length,text:k[2]}},fences:function(x){var k=this.rules.block.fences.exec(x);if(k){var W=k[0],ee=f(W,k[3]||""),V=k[2]?k[2].trim():k[2];if(["latex","katex","math"].indexOf(V)>=0){var Ee=T(),Ye=ee;ee=Ee,c[Ee]={type:"block",expression:Ye}}return{type:"code",raw:W,lang:V,text:ee}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,T=function(){return"__special_katext_id_".concat(C++,"__")},c={};function S(){return c}function y(){C=0,c={}}function b(Y){return Y=Y.replace(A,function(x,k){var W=T();return c[W]={type:"inline",expression:k},W}),Y}var B=s.listitem;s.listitem=function(Y){return B(b(Y))};var F=s.paragraph;s.paragraph=function(Y){return F(b(Y))};var _=s.tablecell;s.tablecell=function(Y,x){return _(b(Y),x)},s.code=function(Y,x,k){var W=(x||"").match(/\S*/)[0];return W?["latex","katex","math"].indexOf(W)>=0?"

      ".concat(Y,"

      "):'
      ').concat(k?Y:Object(u.escape)(Y,!0),`
      `):'
      '+(k?Y:Object(u.escape)(Y,!0))+"
      "},s.heading=function(Y,x,k){var W=this.options.headerPrefix+k.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:W,level:x,text:Y}),"'+Y+""},h.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),h.a.use({tokenizer:R,renderer:s});var M=h.a,I=Z("SJMd"),g=Z("ulZh"),H=Z.n(g),$=Z("m3rI"),ne=Z("Oy/b"),se=Z("p5ED"),Oe=Z("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -38,7 +38,7 @@ 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 ge=function(Y,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,W){k.__proto__=W}||function(k,W){for(var ee in W)Object.prototype.hasOwnProperty.call(W,ee)&&(k[ee]=W[ee])})(Y,x)};function Te(Y,x){function k(){this.constructor=Y}ge(Y,x),Y.prototype=x===null?Object.create(x):(k.prototype=x.prototype,new k)}function Re(Y,x,k,W){return new(k||(k=Promise))(function(ee,V){function Ee(gt){try{tt(W.next(gt))}catch(Xe){V(Xe)}}function Ye(gt){try{tt(W.throw(gt))}catch(Xe){V(Xe)}}function tt(gt){var Xe;gt.done?ee(gt.value):(Xe=gt.value,Xe instanceof k?Xe:new k(function(xt){xt(Xe)})).then(Ee,Ye)}tt((W=W.apply(Y,x||[])).next())})}function Le(Y,x){var k,W,ee,V,Ee={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return V={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function Ye(tt){return function(gt){return function(Xe){if(k)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(k=1,W&&(ee=2&Xe[0]?W.return:Xe[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Xe[1])).done)return ee;switch(W=0,ee&&(Xe=[2&Xe[0],ee.value]),Xe[0]){case 0:case 1:ee=Xe;break;case 4:return Ee.label++,{value:Xe[1],done:!1};case 5:Ee.label++,W=Xe[1],Xe=[0];continue;case 7:Xe=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(ee=Ee.trys,(ee=ee.length>0&&ee[ee.length-1])||Xe[0]!==6&&Xe[0]!==2)){Ee=0;continue}if(Xe[0]===3&&(!ee||Xe[1]>ee[0]&&Xe[1]0&&ee[ee.length-1])||Xe[0]!==6&&Xe[0]!==2)){Ee=0;continue}if(Xe[0]===3&&(!ee||Xe[1]>ee[0]&&Xe[1] `),Ee.appendChild(Ye),Ee},x.prototype.setCurrentColor=function(k,W){var ee=this;this.currentColor=k,this.colorBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},x}(le),Se=function(){function Y(x,k,W){this._state="new",this._isSelected=!1,this._container=x,this._overlayContainer=k,this.globalSettings=W,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Y.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Y.prototype.ownsTarget=function(x){return!1},Object.defineProperty(Y.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Y.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Y.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Y.prototype.pointerDown=function(x,k){},Y.prototype.dblClick=function(x,k){},Y.prototype.manipulate=function(x){},Y.prototype.pointerUp=function(x){this.stateChanged()},Y.prototype.dispose=function(){},Y.prototype.addMarkerVisualToContainer=function(x){this.container.childNodes.length>0?this.container.insertBefore(x,this.container.childNodes[0]):this.container.appendChild(x)},Y.prototype.getState=function(){return{typeName:Y.typeName,state:this.state,notes:this.notes}},Y.prototype.restoreState=function(x){this._state=x.state,this.notes=x.notes},Y.prototype.scale=function(x,k){},Y.prototype.colorChanged=function(x){this.onColorChanged&&this.onColorChanged(x),this.stateChanged()},Y.prototype.fillColorChanged=function(x){this.onFillColorChanged&&this.onFillColorChanged(x),this.stateChanged()},Y.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)}},Y.typeName="MarkerBase",Y}(),Ie=function(){function Y(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Y.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},Y}(),We=function(){function Y(){this.GRIP_SIZE=10,this.visual=he.createGroup(),this.visual.appendChild(he.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(he.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y}(),Ve=function(){function Y(){}return Y.toITransformMatrix=function(x){return{a:x.a,b:x.b,c:x.c,d:x.d,e:x.e,f:x.f}},Y.toSVGMatrix=function(x,k){return x.a=k.a,x.b=k.b,x.c=k.c,x.d=k.d,x.e=k.e,x.f=k.f,x},Y}(),Qe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.left=0,V.top=0,V.width=0,V.height=0,V.defaultSize={x:50,y:20},V.offsetX=0,V.offsetY=0,V.rotationAngle=0,V.CB_DISTANCE=10,V._suppressMarkerCreateEvent=!1,V.container.transform.baseVal.appendItem(he.createTransform()),V.setupControlBox(),V}return Te(x,Y),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(k){this._visual=k;var W=he.createTransform();this._visual.transform.baseVal.appendItem(W)},enumerable:!1,configurable:!0}),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ee=this.unrotatePoint(k);if(this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.offsetX=ee.x-this.left,this.offsetY=ee.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(W),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(W)){this.activeGrip=this.rotatorGrip;var V=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=V.x-this.width/2,this.top=V.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},x.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},x.prototype.manipulate=function(k){var W=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(W.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(W.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(W):this.state==="rotate"&&this.rotate(k)},x.prototype.resize=function(k){var W=this.manipulationStartLeft,ee=this.manipulationStartWidth,V=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:W=this.manipulationStartLeft+k.x-this.manipulationStartX,ee=this.manipulationStartWidth+this.manipulationStartLeft-W;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ee=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:V=this.manipulationStartTop+k.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-V;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+k.y-this.manipulationStartY}ee>=0?(this.left=W,this.width=ee):(this.left=W+ee,this.width=-ee),Ee>=0?(this.top=V,this.height=Ee):(this.top=V+Ee,this.height=-Ee),this.setSize()},x.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},x.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var W=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*W,this.applyRotation()}},x.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},x.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var W=this.container.getCTM(),ee=he.createPoint(k.x,k.y);return{x:(ee=ee.matrixTransform(W)).x,y:ee.y}},x.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var W=this.container.getCTM();W=W.inverse();var ee=he.createPoint(k.x,k.y);return{x:(ee=ee.matrixTransform(W)).x,y:ee.y}},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.createGroup();var k=he.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=he.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=he.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 Ie,this.addControlGrips(),this.controlBox.style.display="none"},x.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,W=-k/2,ee=W,V=(this.width+this.CB_DISTANCE)/2-k/2,Ee=(this.height+this.CB_DISTANCE)/2-k/2,Ye=this.height+this.CB_DISTANCE-k/2,tt=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,W,ee),this.positionGrip(this.controlGrips.topCenter.visual,V,ee),this.positionGrip(this.controlGrips.topRight.visual,tt,ee),this.positionGrip(this.controlGrips.centerLeft.visual,W,Ee),this.positionGrip(this.controlGrips.centerRight.visual,tt,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,W,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,V,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,tt,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,V,ee-3*this.CB_DISTANCE)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,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:Ve.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ve.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.left=W.left,this.top=W.top,this.width=W.width,this.height=W.height,this.rotationAngle=W.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,W.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,W.containerTransformMatrix))},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W);var ee=this.rotatePoint({x:this.left,y:this.top}),V=this.unrotatePoint({x:ee.x*k,y:ee.y*W});this.left=V.x,this.top=V.y,this.width=this.width*k,this.height=this.height*W,this.adjustControlBox()},x}(Se),Je=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor="transparent",V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.opacity=1,V.setStrokeColor=V.setStrokeColor.bind(V),V.setFillColor=V.setFillColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.createVisual=V.createVisual.bind(V),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual)},x.prototype.createVisual=function(){this.visual=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.setSize()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){Y.prototype.pointerUp.call(this,k),this.setSize()},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},x.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&he.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},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){var W=k;this.fillColor=W.fillColor,this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.opacity=W.opacity,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize()},x.title="Rectangle marker",x}(Qe),st=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=W,Ee.currentWidth=ee,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",this.widths.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.flexGrow="2",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentWidth(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=ee.toString(),Ee.style.marginRight="5px",V.appendChild(Ee);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var tt=document.createElement("hr");tt.style.minWidth="20px",tt.style.border="0px",tt.style.borderTop=ee+"px solid "+k.uiStyleSettings.toolboxColor,tt.style.flexGrow="2",Ye.appendChild(tt),V.appendChild(Ye),k.widthBoxes.push(V)}),W},x.prototype.setCurrentWidth=function(k,W){var ee=this;this.currentWidth=k,this.widthBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},x}(le),qe=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.styles=[],Ee.styleBoxes=[],Ee.styles=W,Ee.currentStyle=ee,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",this.styles.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.styles.length-5+"%",V.style.borderColor=ee===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentStyle(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Ye=` - `;Ee.innerHTML=Ye,V.appendChild(Ee),k.styleBoxes.push(V)}),W},x.prototype.setCurrentStyle=function(k,W){var ee=this;this.currentStyle=k,this.styleBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},x}(le),at=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="FrameMarker",x.title="Frame marker",x.icon='',x}(Je),Ue=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},dt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.x1=0,V.y1=0,V.x2=0,V.y2=0,V.defaultLength=50,V.manipulationStartX=0,V.manipulationStartY=0,V.manipulationStartX1=0,V.manipulationStartY1=0,V.manipulationStartX2=0,V.manipulationStartY2=0,V.setupControlBox(),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(W)?this.activeGrip=this.grip1:this.grip2.ownsTarget(W)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),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(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},x.prototype.adjustVisual=function(){},x.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},x.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,0)},x.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.x1=W.x1,this.y1=W.y1,this.x2=W.x2,this.y2=W.y2},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.x1=this.x1*k,this.y1=this.y1*W,this.x2=this.x2*k,this.y2=this.y2*W,this.adjustVisual(),this.adjustControlBox()},x}(Se),lt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),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()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,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 k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.createVisual(),this.adjustVisual()},x.typeName="LineMarker",x.title="Line marker",x.icon='',x}(dt),je=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=W,Ee.currentFont=ee,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.overflow="hidden",W.style.flexGrow="2",this.fonts.forEach(function(ee){var V=document.createElement("div");V.style.display="inline-block",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.fonts.length-5+"%",V.style.borderColor=ee===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentFont(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=ee,Ee.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ye),V.appendChild(Ee),k.fontBoxes.push(V)}),W},x.prototype.setCurrentFont=function(k,W){var ee=this;this.currentFont=k,this.fontBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},x}(le),Ge=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.padding=5,V.DEFAULT_TEXT="your text here",V.text=V.DEFAULT_TEXT,V.isMoved=!1,V.color=ee.defaultColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setColor=V.setColor.bind(V),V.setFont=V.setFont.bind(V),V.renderText=V.renderText.bind(V),V.sizeText=V.sizeText.bind(V),V.textEditDivClicked=V.textEditDivClicked.bind(V),V.showTextEditor=V.showTextEditor.bind(V),V.setSize=V.setSize.bind(V),V.positionTextEditor=V.positionTextEditor.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V}return Te(x,Y),x.prototype.ownsTarget=function(k){if(Y.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var W=!1;return this.textElement.childNodes.forEach(function(ee){ee===k&&(W=!0)}),W},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.renderText=function(){var k=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(W){k.textElement.appendChild(he.createTSpan(W.trim()===""?" ":W.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},x.prototype.getTextScale=function(){var k=this.textElement.getBBox(),W=1;if(k.width>0&&k.height>0){var ee=(1*this.width-this.width*this.padding*2/100)/k.width,V=(1*this.height-this.height*this.padding*2/100)/k.height;W=Math.min(ee,V)}return W},x.prototype.getTextPosition=function(k){var W=this.textElement.getBBox(),ee=0,V=0;return W.width>0&&W.height>0&&(ee=(this.width-W.width*k)/2,V=this.height/2-W.height*k/2),{x:ee,y:V}},x.prototype.sizeText=function(){var k=this.textElement.getBBox(),W=this.getTextScale(),ee=this.getTextPosition(W);ee.y-=k.y*W,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ee.x+"px, "+ee.y+"px) scale("+W+", "+W+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ee.x,ee.y),this.textElement.transform.baseVal.getItem(1).setScale(W,W))},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},x.prototype.pointerUp=function(k){var W=this.state;W==="creating"&&(this._suppressMarkerCreateEvent=!0),Y.prototype.pointerUp.call(this,k),this.setSize(),(W==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},x.prototype.showTextEditor=function(){var k=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(W){W.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var W=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&W>.9;)W-=.1,k.textEditor.style.fontSize=Math.max(W,.9)+"em"}),this.textEditor.addEventListener("keyup",function(W){W.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(W){if(W.clipboardData){var ee=W.clipboardData.getData("text"),V=window.getSelection();if(!V.rangeCount)return!1;V.deleteFromDocument(),V.getRangeAt(0).insertNode(document.createTextNode(ee)),W.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.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 k=this.getTextScale(),W=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ee=this.textElement.getBBox(),V={x:ee.width*k,y:ee.height*k};W.x-=V.x/2,W.y-=V.y/2,this.textEditor.style.top=W.y+"px",this.textEditor.style.left=W.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-W.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},x.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},x.prototype.select=function(){Y.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},x.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Y.prototype.deselect.call(this)},x.prototype.dblClick=function(k,W){Y.prototype.dblClick.call(this,k,W),this.showTextEditor()},x.prototype.setColor=function(k){this.textElement&&he.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},x.prototype.setFont=function(k){this.textElement&&he.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,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 k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){var W=k;this.color=W.color,this.fontFamily=W.fontFamily,this.padding=W.padding,this.text=W.text,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize(),this.sizeText(),this.positionTextEditor()},x.typeName="TextMarker",x.title="Text marker",x.icon='',x}(Qe),Ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.lineWidth=3,V.drawing=!1,V.pixelRatio=1,V.color=ee.defaultColor,V.lineWidth=ee.defaultStrokeWidth,V.pixelRatio=ee.freehandPixelRatio,V.setColor=V.setColor.bind(V),V.addCanvas=V.addCanvas.bind(V),V.finishCreation=V.finishCreation.bind(V),V.setLineWidth=V.setLineWidth.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.lineWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.lineWidthPanel.onWidthChanged=V.setLineWidth,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var k=he.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},x.prototype.pointerDown=function(k,W){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(k.x,k.y),this.drawing=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Y.prototype.pointerUp.call(this,k)},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(),Y.prototype.select.call(this)},x.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Y.prototype.deselect.call(this)},x.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),W=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ee=W[0],V=W[1],Ee=W[2],Ye=W[3],tt=!1,gt=0;gt0&&(tt=!0,gtYe&&(Ye=gt),Xe>Ee&&(Ee=Xe));if(tt){this.left=ee/this.pixelRatio,this.top=V/this.pixelRatio,this.width=(Ee-ee)/this.pixelRatio,this.height=(Ye-V)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=Ee-ee,xt.height=Ye-V,xt.getContext("2d").putImageData(this.canvasContext.getImageData(ee,V,Ee-ee,Ye-V),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},x.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},x.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},x.prototype.setLineWidth=function(k){this.lineWidth=k},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 k=Object.assign({drawingImgUrl:this.drawingImgUrl},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){this.createVisual(),Y.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setDrawingImage()},x.typeName="FreehandMarker",x.title="Freehand marker",x.icon='',x}(Qe),_e=function(Y){function x(k,W,ee){var V=Y.call(this,k,ee||'')||this;return V.typeBoxes=[],V.currentType=W,V.setCurrentType=V.setCurrentType.bind(V),V}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2";for(var ee=function(Ye){var tt="both";switch(Ye){case 0:tt="both";break;case 1:tt="start";break;case 2:tt="end";break;case 3:tt="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=tt===V.currentType?V.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){k.setCurrentType(tt,gt)}),W.appendChild(gt),tt==="both"||tt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=` + `;Ee.innerHTML=Ye,V.appendChild(Ee),k.styleBoxes.push(V)}),W},x.prototype.setCurrentStyle=function(k,W){var ee=this;this.currentStyle=k,this.styleBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},x}(le),at=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="FrameMarker",x.title="Frame marker",x.icon='',x}(Je),Ue=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},ct=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.x1=0,V.y1=0,V.x2=0,V.y2=0,V.defaultLength=50,V.manipulationStartX=0,V.manipulationStartY=0,V.manipulationStartX1=0,V.manipulationStartY1=0,V.manipulationStartX2=0,V.manipulationStartY2=0,V.setupControlBox(),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(W)?this.activeGrip=this.grip1:this.grip2.ownsTarget(W)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),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(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},x.prototype.adjustVisual=function(){},x.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},x.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,0)},x.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.x1=W.x1,this.y1=W.y1,this.x2=W.x2,this.y2=W.y2},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.x1=this.x1*k,this.y1=this.y1*W,this.x2=this.x2*k,this.y2=this.y2*W,this.adjustVisual(),this.adjustControlBox()},x}(Se),lt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),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()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,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 k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.createVisual(),this.adjustVisual()},x.typeName="LineMarker",x.title="Line marker",x.icon='',x}(ct),je=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=W,Ee.currentFont=ee,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.overflow="hidden",W.style.flexGrow="2",this.fonts.forEach(function(ee){var V=document.createElement("div");V.style.display="inline-block",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.fonts.length-5+"%",V.style.borderColor=ee===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentFont(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=ee,Ee.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ye),V.appendChild(Ee),k.fontBoxes.push(V)}),W},x.prototype.setCurrentFont=function(k,W){var ee=this;this.currentFont=k,this.fontBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},x}(le),Ge=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.padding=5,V.DEFAULT_TEXT="your text here",V.text=V.DEFAULT_TEXT,V.isMoved=!1,V.color=ee.defaultColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setColor=V.setColor.bind(V),V.setFont=V.setFont.bind(V),V.renderText=V.renderText.bind(V),V.sizeText=V.sizeText.bind(V),V.textEditDivClicked=V.textEditDivClicked.bind(V),V.showTextEditor=V.showTextEditor.bind(V),V.setSize=V.setSize.bind(V),V.positionTextEditor=V.positionTextEditor.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V}return Te(x,Y),x.prototype.ownsTarget=function(k){if(Y.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var W=!1;return this.textElement.childNodes.forEach(function(ee){ee===k&&(W=!0)}),W},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.renderText=function(){var k=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(W){k.textElement.appendChild(he.createTSpan(W.trim()===""?" ":W.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},x.prototype.getTextScale=function(){var k=this.textElement.getBBox(),W=1;if(k.width>0&&k.height>0){var ee=(1*this.width-this.width*this.padding*2/100)/k.width,V=(1*this.height-this.height*this.padding*2/100)/k.height;W=Math.min(ee,V)}return W},x.prototype.getTextPosition=function(k){var W=this.textElement.getBBox(),ee=0,V=0;return W.width>0&&W.height>0&&(ee=(this.width-W.width*k)/2,V=this.height/2-W.height*k/2),{x:ee,y:V}},x.prototype.sizeText=function(){var k=this.textElement.getBBox(),W=this.getTextScale(),ee=this.getTextPosition(W);ee.y-=k.y*W,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ee.x+"px, "+ee.y+"px) scale("+W+", "+W+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ee.x,ee.y),this.textElement.transform.baseVal.getItem(1).setScale(W,W))},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},x.prototype.pointerUp=function(k){var W=this.state;W==="creating"&&(this._suppressMarkerCreateEvent=!0),Y.prototype.pointerUp.call(this,k),this.setSize(),(W==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},x.prototype.showTextEditor=function(){var k=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(W){W.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var W=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&W>.9;)W-=.1,k.textEditor.style.fontSize=Math.max(W,.9)+"em"}),this.textEditor.addEventListener("keyup",function(W){W.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(W){if(W.clipboardData){var ee=W.clipboardData.getData("text"),V=window.getSelection();if(!V.rangeCount)return!1;V.deleteFromDocument(),V.getRangeAt(0).insertNode(document.createTextNode(ee)),W.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.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 k=this.getTextScale(),W=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ee=this.textElement.getBBox(),V={x:ee.width*k,y:ee.height*k};W.x-=V.x/2,W.y-=V.y/2,this.textEditor.style.top=W.y+"px",this.textEditor.style.left=W.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-W.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},x.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},x.prototype.select=function(){Y.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},x.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Y.prototype.deselect.call(this)},x.prototype.dblClick=function(k,W){Y.prototype.dblClick.call(this,k,W),this.showTextEditor()},x.prototype.setColor=function(k){this.textElement&&he.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},x.prototype.setFont=function(k){this.textElement&&he.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,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 k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){var W=k;this.color=W.color,this.fontFamily=W.fontFamily,this.padding=W.padding,this.text=W.text,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize(),this.sizeText(),this.positionTextEditor()},x.typeName="TextMarker",x.title="Text marker",x.icon='',x}(Qe),Ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.lineWidth=3,V.drawing=!1,V.pixelRatio=1,V.color=ee.defaultColor,V.lineWidth=ee.defaultStrokeWidth,V.pixelRatio=ee.freehandPixelRatio,V.setColor=V.setColor.bind(V),V.addCanvas=V.addCanvas.bind(V),V.finishCreation=V.finishCreation.bind(V),V.setLineWidth=V.setLineWidth.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.lineWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.lineWidthPanel.onWidthChanged=V.setLineWidth,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var k=he.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},x.prototype.pointerDown=function(k,W){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(k.x,k.y),this.drawing=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Y.prototype.pointerUp.call(this,k)},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(),Y.prototype.select.call(this)},x.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Y.prototype.deselect.call(this)},x.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),W=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ee=W[0],V=W[1],Ee=W[2],Ye=W[3],tt=!1,gt=0;gt0&&(tt=!0,gtYe&&(Ye=gt),Xe>Ee&&(Ee=Xe));if(tt){this.left=ee/this.pixelRatio,this.top=V/this.pixelRatio,this.width=(Ee-ee)/this.pixelRatio,this.height=(Ye-V)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=Ee-ee,xt.height=Ye-V,xt.getContext("2d").putImageData(this.canvasContext.getImageData(ee,V,Ee-ee,Ye-V),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},x.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},x.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},x.prototype.setLineWidth=function(k){this.lineWidth=k},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 k=Object.assign({drawingImgUrl:this.drawingImgUrl},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){this.createVisual(),Y.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setDrawingImage()},x.typeName="FreehandMarker",x.title="Freehand marker",x.icon='',x}(Qe),_e=function(Y){function x(k,W,ee){var V=Y.call(this,k,ee||'')||this;return V.typeBoxes=[],V.currentType=W,V.setCurrentType=V.setCurrentType.bind(V),V}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2";for(var ee=function(Ye){var tt="both";switch(Ye){case 0:tt="both";break;case 1:tt="start";break;case 2:tt="end";break;case 3:tt="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=tt===V.currentType?V.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){k.setCurrentType(tt,gt)}),W.appendChild(gt),tt==="both"||tt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=` `,Xe.style.marginLeft="5px",gt.appendChild(Xe)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(V.uiStyleSettings!==void 0?V.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",xt.appendChild(jt),gt.appendChild(xt),tt==="both"||tt==="end"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` - `,$t.style.marginRight="5px",gt.appendChild($t)}V.typeBoxes.push(gt)},V=this,Ee=0;Ee<4;Ee++)ee(Ee);return W},x.prototype.setCurrentType=function(k,W){var ee=this;this.currentType=k,this.typeBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},x}(le),we=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.arrowType="end",V.arrowBaseHeight=10,V.arrowBaseWidth=10,V.getArrowPoints=V.getArrowPoints.bind(V),V.setArrowType=V.setArrowType.bind(V),V.arrowTypePanel=new _e("Arrow type","end"),V.arrowTypePanel.onArrowTypeChanged=V.setArrowType,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},x.prototype.getArrowPoints=function(k,W){var ee=this.arrowBaseWidth+2*this.strokeWidth,V=this.arrowBaseHeight+2*this.strokeWidth;return k-ee/2+","+(W+V/2)+" "+k+","+(W-V/2)+" "+(k+ee/2)+","+(W+V/2)},x.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="creating"&&this.createTips()},x.prototype.adjustVisual=function(){if(Y.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",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.arrow1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(W,0);var ee=this.arrow2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ee,0)}},x.prototype.setArrowType=function(k){this.arrowType=k,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 k=Object.assign({arrowType:this.arrowType},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.arrowType=W.arrowType,this.createTips(),this.adjustVisual()},x.typeName="ArrowMarker",x.title="Arrow marker",x.icon='',x}(lt),ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor=ee.defaultFillColor,V.strokeWidth=0,V.fillPanel=new ve("Color",ee.defaultColorSet,ee.defaultFillColor),V.fillPanel.onColorChanged=V.setFillColor,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="CoverMarker",x.title="Cover marker",x.icon='',x}(Je),ue=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=W,Ee.currentOpacity=ee,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",W.style.justifyContent="space-between",this.opacities.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="center",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentOpacity(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=100*ee+"%",V.appendChild(Ee),k.opacityBoxes.push(V)}),W},x.prototype.setCurrentOpacity=function(k,W){var ee=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},x}(le),de=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.setOpacity=V.setOpacity.bind(V),V.fillColor=ee.defaultHighlightColor,V.strokeWidth=0,V.opacity=ee.defaultHighlightOpacity,V.fillPanel=new ve("Color",ee.defaultColorSet,V.fillColor),V.fillPanel.onColorChanged=V.setFillColor,V.opacityPanel=new ue("Opacity",ee.defaultOpacitySteps,V.opacity),V.opacityPanel.onOpacityChanged=V.setOpacity,V}return Te(x,Y),x.prototype.setOpacity=function(k){this.opacity=k,this.visual&&he.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 k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="HighlightMarker",x.title="Highlight marker",x.icon='',x}(ae),me='',xe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.bgColor="transparent",V.tipPosition={x:0,y:0},V.tipBase1Position={x:0,y:0},V.tipBase2Position={x:0,y:0},V.tipMoving=!1,V.color=ee.defaultStrokeColor,V.bgColor=ee.defaultFillColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setBgColor=V.setBgColor.bind(V),V.getTipPoints=V.getTipPoints.bind(V),V.positionTip=V.positionTip.bind(V),V.setTipPoints=V.setTipPoints.bind(V),V.colorPanel=new ve("Text color",ee.defaultColorSet,V.color,''),V.colorPanel.onColorChanged=V.setColor,V.bgColorPanel=new ve("Fill color",ee.defaultColorSet,V.bgColor,me),V.bgColorPanel.onColorChanged=V.setBgColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V.tipGrip=new We,V.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),V.controlBox.appendChild(V.tipGrip.visual),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return Y.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},x.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},x.prototype.pointerDown=function(k,W){this.state==="new"&&Y.prototype.pointerDown.call(this,k,W),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(W)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Y.prototype.pointerUp.call(this,k);else{var W=this.state==="creating";Y.prototype.pointerUp.call(this,k),this.setTipPoints(W),this.positionTip()}},x.prototype.manipulate=function(k){if(this.tipMoving){var W=this.unrotatePoint(k);this.tipPosition={x:W.x-this.manipulationStartLeft,y:W.y-this.manipulationStartTop},this.positionTip()}else Y.prototype.manipulate.call(this,k)},x.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",k]]),he.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},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(k){k===void 0&&(k=!1);var W=Math.min(this.height/2,15),ee=this.height/5;k&&(this.tipPosition={x:W+ee/2,y:this.height+20});var V=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?V.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.tip1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(W,0);var ee=this.tip2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ee,0)}},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},x.typeName="MeasurementMarker",x.title="Measurement marker",x.icon='',x}(lt),ze=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokePanel.colors=ee.defaultColorSet,V.fillColor="transparent",V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="EllipseFrameMarker",x.title="Ellipse frame marker",x.icon='',x}(Pe),ht=function(){function Y(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Y.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))},Y.prototype.replaceLastUndoStep=function(x){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=x)},Y.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Y.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}},Y.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Y}(),ot=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.curveX=0,V.curveY=0,V.manipulationStartCurveX=0,V.manipulationStartCurveY=0,V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.positionGrips=V.positionGrips.bind(V),V.addControlGrips=V.addControlGrips.bind(V),V.adjustVisual=V.adjustVisual.bind(V),V.setupControlBox=V.setupControlBox.bind(V),V.resize=V.resize.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},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=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(W)&&(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()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setupControlBox=function(){Y.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.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,Y.prototype.addControlGrips.call(this)},x.prototype.positionGrips=function(){Y.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Y.prototype.resize.call(this,k),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(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},x.prototype.scale=function(k,W){this.curveX=this.curveX*k,this.curveY=this.curveY*W,Y.prototype.scale.call(this,k,W)},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.curveX=W.curveX,this.curveY=W.curveY,this.createVisual(),this.adjustVisual()},x.typeName="CurveMarker",x.title="Curve marker",x.icon='',x}(dt),yt=function(){function Y(x,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=x,this.cancelable=k}return Object.defineProperty(Y.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Y.prototype.preventDefault=function(){this._defaultPrevented=!0},Y}(),ct=function(Y){function x(k,W,ee){var V=Y.call(this,k,!1)||this;return V.dataUrl=W,V.state=ee,V}return Te(x,Y),x}(yt),ft=function(Y){function x(k,W,ee){ee===void 0&&(ee=!1);var V=Y.call(this,k,ee)||this;return V.marker=W,V}return Te(x,Y),x}(yt),Ot=function(){function Y(){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 Y.prototype.addEventListener=function(x,k){this[x].push(k)},Y.prototype.removeEventListener=function(x,k){var W=this[x].indexOf(k);W>-1&&this[x].splice(W,1)},Y}(),It=function(){function Y(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 Ue,this._isOpen=!1,this.undoRedoManager=new ht,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 Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Y.instanceCounter++,this.styles=new De(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(Y.prototype,"ALL_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ze,Pe,de,xe,He,ae,lt,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,Pe,de,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"BASIC_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,de]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(x){var k=this;this._availableMarkerTypes.splice(0),x.forEach(function(W){if(typeof W=="string"){var ee=k.ALL_MARKER_TYPES.find(function(V){return V.typeName===W});ee!==void 0&&k._availableMarkerTypes.push(ee)}else k._availableMarkerTypes.push(W)})},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Y.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Y.prototype.show=function(){var x=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new yt(x))})},Y.prototype.render=function(){return Re(this,void 0,void 0,function(){var x;return Le(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(x=new fe).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 k.sent(),[4,x.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Y.prototype.close=function(x){var k=this;if(x===void 0&&(x=!1),this.isOpen){var W=!1;x||this.eventListeners.beforeclose.forEach(function(ee){var V=new yt(k,!0);ee(V),V.defaultPrevented&&(W=!0)}),W||(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(ee){return ee(new yt(k))}),this.detachEvents(),this._isOpen=!1)}},Y.prototype.addMarkersToToolbar=function(){for(var x,k=[],W=0;Wthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*x:this.editorCanvas.clientWidth,W=k',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()},Y.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")},Y.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"},Y.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Y.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 Ne(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(x),1),x.dispose()},Y.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())},Y.prototype.toolbarButtonClicked=function(x,k){if(x==="marker"&&k!==void 0)this.createNewMarker(k);else if(x==="action")switch(k){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()}},Y.prototype.deleteSelectedMarker=function(){var x=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ee){var V=new ft(x,x._currentMarker,!0);ee(V),V.defaultPrevented&&(k=!0)}),!k){var W=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(ee){return ee(new ft(x,W))})}}},Y.prototype.clear=function(){var x=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ye=new ft(x,void 0,!0);Ee(Ye),Ye.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var W=function(Ee){var Ye=ee.markers[Ee];ee.setCurrentMarker(ee.markers[Ee]),ee._currentMarker.dispose(),ee.markerImage.removeChild(ee._currentMarker.container),ee.markers.splice(ee.markers.indexOf(ee._currentMarker),1),ee.eventListeners.markerdelete.forEach(function(tt){return tt(new ft(x,Ye))})},ee=this,V=this.markers.length-1;V>=0;V--)W(V);this.addUndoStep()}},Object.defineProperty(Y.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Y.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))},Y.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)},Y.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Y.prototype.addUndoStep=function(){var x=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),W=this.undoRedoManager.getLastUndoStep();if(!W||W.width===k.width&&W.height===k.height){var ee=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ee1&&this.panTo({x:x.clientX,y:x.clientY}))},Y.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()},Y.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Y.prototype.onKeyUp=function(x){this._currentMarker===void 0||this.notesArea!==void 0||x.key!=="Delete"&&x.key!=="Backspace"||this.deleteSelectedMarker()},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.markerImage.getBoundingClientRect();return{x:(x-W.left)/this.zoomLevel,y:(k-W.top)/this.zoomLevel}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.prototype.addLicenseKey=function(x){re.addKey(x)},Y.prototype.addEventListener=function(x,k){this.eventListeners.addEventListener(x,k)},Y.prototype.removeEventListener=function(x,k){this.eventListeners.removeEventListener(x,k)},Y.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(Y.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Y.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(k){return k(new yt(x))}))},Y.prototype.blur=function(){var x=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new yt(x))}))},Y.instanceCounter=0,Y}();/* ********************************** + `,$t.style.marginRight="5px",gt.appendChild($t)}V.typeBoxes.push(gt)},V=this,Ee=0;Ee<4;Ee++)ee(Ee);return W},x.prototype.setCurrentType=function(k,W){var ee=this;this.currentType=k,this.typeBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},x}(le),we=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.arrowType="end",V.arrowBaseHeight=10,V.arrowBaseWidth=10,V.getArrowPoints=V.getArrowPoints.bind(V),V.setArrowType=V.setArrowType.bind(V),V.arrowTypePanel=new _e("Arrow type","end"),V.arrowTypePanel.onArrowTypeChanged=V.setArrowType,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},x.prototype.getArrowPoints=function(k,W){var ee=this.arrowBaseWidth+2*this.strokeWidth,V=this.arrowBaseHeight+2*this.strokeWidth;return k-ee/2+","+(W+V/2)+" "+k+","+(W-V/2)+" "+(k+ee/2)+","+(W+V/2)},x.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="creating"&&this.createTips()},x.prototype.adjustVisual=function(){if(Y.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",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.arrow1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(W,0);var ee=this.arrow2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ee,0)}},x.prototype.setArrowType=function(k){this.arrowType=k,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 k=Object.assign({arrowType:this.arrowType},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.arrowType=W.arrowType,this.createTips(),this.adjustVisual()},x.typeName="ArrowMarker",x.title="Arrow marker",x.icon='',x}(lt),ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor=ee.defaultFillColor,V.strokeWidth=0,V.fillPanel=new ve("Color",ee.defaultColorSet,ee.defaultFillColor),V.fillPanel.onColorChanged=V.setFillColor,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="CoverMarker",x.title="Cover marker",x.icon='',x}(Je),ue=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=W,Ee.currentOpacity=ee,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",W.style.justifyContent="space-between",this.opacities.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="center",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentOpacity(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=100*ee+"%",V.appendChild(Ee),k.opacityBoxes.push(V)}),W},x.prototype.setCurrentOpacity=function(k,W){var ee=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},x}(le),ce=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.setOpacity=V.setOpacity.bind(V),V.fillColor=ee.defaultHighlightColor,V.strokeWidth=0,V.opacity=ee.defaultHighlightOpacity,V.fillPanel=new ve("Color",ee.defaultColorSet,V.fillColor),V.fillPanel.onColorChanged=V.setFillColor,V.opacityPanel=new ue("Opacity",ee.defaultOpacitySteps,V.opacity),V.opacityPanel.onOpacityChanged=V.setOpacity,V}return Te(x,Y),x.prototype.setOpacity=function(k){this.opacity=k,this.visual&&he.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 k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="HighlightMarker",x.title="Highlight marker",x.icon='',x}(ae),me='',xe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.bgColor="transparent",V.tipPosition={x:0,y:0},V.tipBase1Position={x:0,y:0},V.tipBase2Position={x:0,y:0},V.tipMoving=!1,V.color=ee.defaultStrokeColor,V.bgColor=ee.defaultFillColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setBgColor=V.setBgColor.bind(V),V.getTipPoints=V.getTipPoints.bind(V),V.positionTip=V.positionTip.bind(V),V.setTipPoints=V.setTipPoints.bind(V),V.colorPanel=new ve("Text color",ee.defaultColorSet,V.color,''),V.colorPanel.onColorChanged=V.setColor,V.bgColorPanel=new ve("Fill color",ee.defaultColorSet,V.bgColor,me),V.bgColorPanel.onColorChanged=V.setBgColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V.tipGrip=new We,V.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),V.controlBox.appendChild(V.tipGrip.visual),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return Y.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},x.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},x.prototype.pointerDown=function(k,W){this.state==="new"&&Y.prototype.pointerDown.call(this,k,W),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(W)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Y.prototype.pointerUp.call(this,k);else{var W=this.state==="creating";Y.prototype.pointerUp.call(this,k),this.setTipPoints(W),this.positionTip()}},x.prototype.manipulate=function(k){if(this.tipMoving){var W=this.unrotatePoint(k);this.tipPosition={x:W.x-this.manipulationStartLeft,y:W.y-this.manipulationStartTop},this.positionTip()}else Y.prototype.manipulate.call(this,k)},x.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",k]]),he.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},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(k){k===void 0&&(k=!1);var W=Math.min(this.height/2,15),ee=this.height/5;k&&(this.tipPosition={x:W+ee/2,y:this.height+20});var V=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?V.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.tip1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(W,0);var ee=this.tip2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ee,0)}},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},x.typeName="MeasurementMarker",x.title="Measurement marker",x.icon='',x}(lt),ze=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokePanel.colors=ee.defaultColorSet,V.fillColor="transparent",V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="EllipseFrameMarker",x.title="Ellipse frame marker",x.icon='',x}(Pe),ht=function(){function Y(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Y.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))},Y.prototype.replaceLastUndoStep=function(x){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=x)},Y.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Y.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}},Y.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Y}(),ot=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.curveX=0,V.curveY=0,V.manipulationStartCurveX=0,V.manipulationStartCurveY=0,V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.positionGrips=V.positionGrips.bind(V),V.addControlGrips=V.addControlGrips.bind(V),V.adjustVisual=V.adjustVisual.bind(V),V.setupControlBox=V.setupControlBox.bind(V),V.resize=V.resize.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},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=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(W)&&(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()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setupControlBox=function(){Y.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.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,Y.prototype.addControlGrips.call(this)},x.prototype.positionGrips=function(){Y.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Y.prototype.resize.call(this,k),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(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},x.prototype.scale=function(k,W){this.curveX=this.curveX*k,this.curveY=this.curveY*W,Y.prototype.scale.call(this,k,W)},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.curveX=W.curveX,this.curveY=W.curveY,this.createVisual(),this.adjustVisual()},x.typeName="CurveMarker",x.title="Curve marker",x.icon='',x}(ct),yt=function(){function Y(x,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=x,this.cancelable=k}return Object.defineProperty(Y.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Y.prototype.preventDefault=function(){this._defaultPrevented=!0},Y}(),dt=function(Y){function x(k,W,ee){var V=Y.call(this,k,!1)||this;return V.dataUrl=W,V.state=ee,V}return Te(x,Y),x}(yt),ft=function(Y){function x(k,W,ee){ee===void 0&&(ee=!1);var V=Y.call(this,k,ee)||this;return V.marker=W,V}return Te(x,Y),x}(yt),Ot=function(){function Y(){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 Y.prototype.addEventListener=function(x,k){this[x].push(k)},Y.prototype.removeEventListener=function(x,k){var W=this[x].indexOf(k);W>-1&&this[x].splice(W,1)},Y}(),It=function(){function Y(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 Ue,this._isOpen=!1,this.undoRedoManager=new ht,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 Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Y.instanceCounter++,this.styles=new De(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(Y.prototype,"ALL_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ze,Pe,ce,xe,He,ae,lt,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,Pe,ce,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"BASIC_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(x){var k=this;this._availableMarkerTypes.splice(0),x.forEach(function(W){if(typeof W=="string"){var ee=k.ALL_MARKER_TYPES.find(function(V){return V.typeName===W});ee!==void 0&&k._availableMarkerTypes.push(ee)}else k._availableMarkerTypes.push(W)})},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Y.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Y.prototype.show=function(){var x=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new yt(x))})},Y.prototype.render=function(){return Re(this,void 0,void 0,function(){var x;return Le(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(x=new fe).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 k.sent(),[4,x.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Y.prototype.close=function(x){var k=this;if(x===void 0&&(x=!1),this.isOpen){var W=!1;x||this.eventListeners.beforeclose.forEach(function(ee){var V=new yt(k,!0);ee(V),V.defaultPrevented&&(W=!0)}),W||(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(ee){return ee(new yt(k))}),this.detachEvents(),this._isOpen=!1)}},Y.prototype.addMarkersToToolbar=function(){for(var x,k=[],W=0;Wthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*x:this.editorCanvas.clientWidth,W=k',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()},Y.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")},Y.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"},Y.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Y.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 Ne(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(x),1),x.dispose()},Y.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())},Y.prototype.toolbarButtonClicked=function(x,k){if(x==="marker"&&k!==void 0)this.createNewMarker(k);else if(x==="action")switch(k){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()}},Y.prototype.deleteSelectedMarker=function(){var x=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ee){var V=new ft(x,x._currentMarker,!0);ee(V),V.defaultPrevented&&(k=!0)}),!k){var W=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(ee){return ee(new ft(x,W))})}}},Y.prototype.clear=function(){var x=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ye=new ft(x,void 0,!0);Ee(Ye),Ye.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var W=function(Ee){var Ye=ee.markers[Ee];ee.setCurrentMarker(ee.markers[Ee]),ee._currentMarker.dispose(),ee.markerImage.removeChild(ee._currentMarker.container),ee.markers.splice(ee.markers.indexOf(ee._currentMarker),1),ee.eventListeners.markerdelete.forEach(function(tt){return tt(new ft(x,Ye))})},ee=this,V=this.markers.length-1;V>=0;V--)W(V);this.addUndoStep()}},Object.defineProperty(Y.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Y.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))},Y.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)},Y.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Y.prototype.addUndoStep=function(){var x=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),W=this.undoRedoManager.getLastUndoStep();if(!W||W.width===k.width&&W.height===k.height){var ee=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ee1&&this.panTo({x:x.clientX,y:x.clientY}))},Y.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()},Y.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Y.prototype.onKeyUp=function(x){this._currentMarker===void 0||this.notesArea!==void 0||x.key!=="Delete"&&x.key!=="Backspace"||this.deleteSelectedMarker()},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.markerImage.getBoundingClientRect();return{x:(x-W.left)/this.zoomLevel,y:(k-W.top)/this.zoomLevel}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.prototype.addLicenseKey=function(x){re.addKey(x)},Y.prototype.addEventListener=function(x,k){this.eventListeners.addEventListener(x,k)},Y.prototype.removeEventListener=function(x,k){this.eventListeners.removeEventListener(x,k)},Y.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(Y.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Y.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(k){return k(new yt(x))}))},Y.prototype.blur=function(){var x=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new yt(x))}))},Y.instanceCounter=0,Y}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -190,7 +190,7 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.addClass(new wt("_fade_out",` animation-duration: 0.3s; animation-name: `+this.classNamePrefix+`_fade_out_animation_frames; - `))},Y.prototype.removeStyleSheet=function(){var x;this.styleSheet&&(((x=this.styleSheetRoot)!==null&&x!==void 0?x:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Y}(),Et=function(Y,x){this.selector=Y,this.style=x},wt=function(Y,x){this.localName=Y,this.style=x},Ut=function(){function Y(){this.blocks=[],this.display=""}return Y.prototype.addButtonBlock=function(x){x.className=this.blockClassName,x.buttonClassName=this.buttonClassName,x.buttonColorsClassName=this.buttonColorsClassName,x.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(x)},Y.prototype.addElementBlock=function(x){x.className===void 0&&(x.className=this.blockClassName),this.blocks.push(x)},Y.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(k){return x.appendChild(k.getUI())}),x},Y}(),tr=function(){function Y(){}return Y.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},Y}(),cr=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.buttons=[],k}return Zt(x,Y),x.prototype.addButton=function(k){k.className=this.buttonClassName,k.colorsClassName=this.buttonColorsClassName,k.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.buttons.forEach(function(W){return k.appendChild(W.getUI())}),k},x}(tr),Nt=function(){function Y(x,k){this._isActive=!1,this._isHidden=!1,this._icon=x,this.title=k,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Y.prototype,"icon",{get:function(){return this._icon},set:function(x){this._icon=x,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isActive",{get:function(){return this._isActive},set:function(x){this._isActive=x,this.adjustClassName()},enumerable:!1,configurable:!0}),Y.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},Y.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,"")))},Y.prototype.hide=function(){this._isHidden=!0},Y}(),mt=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.elements=[],k}return Zt(x,Y),x.prototype.addElement=function(k){this.elements.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.elements.forEach(function(W){return k.appendChild(W)}),k},x}(tr),Br=function(){function Y(x,k){this.horizontal=x,this.vertical=k}return Object.defineProperty(Y.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Y.prototype.getVerticalLength=function(x){return x/this.ratio},Y.prototype.getHorizontalLength=function(x){return x*this.ratio},Y}(),Vt=function(){function Y(){}return Y.getIcon=function(x,k){if(x>0&&k>0){var W=new Br(x,k),ee=W.ratio>=1?20:W.getHorizontalLength(20),V=W.ratio<1?20:W.getVerticalLength(20),Ee=document.createElementNS("http://www.w3.org/2000/svg","svg");Ee.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ee.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ee);var Ye=_t.createDefs();Ee.appendChild(Ye);var tt=_t.createElement("clipPath",[["id","text-bg-clip"]]);Ye.appendChild(tt);var gt=_t.createPath(_t.getHollowRectanglePath((24-ee)/2,(24-V)/2,ee,V,(24-ee)/2+2,(24-V)/2+2,ee-4,V-4));Ee.appendChild(gt);var Xe=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xe.appendChild(_t.createTSpan(x+":"+k)),Ee.appendChild(Xe);var xt=Xe.getBBox();_t.setAttributes(Xe,[["x",((24-xt.width)/2).toString()],["y",((24-xt.height)/2-xt.y).toString()]]);var jt=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(xt.width))/2,(24-Math.ceil(xt.height))/2,Math.ceil(xt.width),Math.ceil(xt.height)));return tt.appendChild(jt),_t.setAttributes(gt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ee),Ee.outerHTML}return''},Y}(),Jt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W)||this;return V.isDropdownOpen=!1,V.onClick=V.dropdownButtonClicked,V.dropdownButtons=ee,V}return Zt(x,Y),x.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(W){W.className=k.className,W.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild(W.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}(Nt),Rt=function(){function Y(x,k){this.GRIP_SIZE=10,this.color=x,this.fillColor=k,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y.prototype.setCenter=function(x,k){this.visual.childNodes.forEach(function(W){return _t.setAttributes(W,[["cx",x.toString()],["cy",k.toString()]])})},Y}(),lr=function(){function Y(x,k,W,ee){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=x,this.canvasHeight=k,this.margin=W,this.container=ee,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(Y.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(Y.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(x){this._isGridVisible=x,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(x){this._zoomFactor=x,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Y.prototype.open=function(){var x=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),_t.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var W=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(V,Ee){var Ye=k.y+W*(Ee+1);_t.setAttributes(V,[["x1",""+k.x],["y1",""+Ye],["x2",""+(k.x+k.width)],["y2",""+Ye]])});var ee=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(V,Ee){var Ye=k.x+ee*(Ee+1);_t.setAttributes(V,[["x1",""+Ye],["y1",""+k.y],["x2",""+Ye],["y2",""+(k.y+k.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Y.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)},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.container.getBoundingClientRect();return{x:x-W.left+this.margin,y:k-W.top+this.margin}},Y.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)},Y.prototype.onPointerMove=function(x){if(this.isMoving)this.move(this.clientToLocalCoordinates(x.clientX,x.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(x.clientX,x.clientY);this.resize(k)}x.preventDefault()},Y.prototype.onPointerUp=function(x){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(x.pointerId)},Y.prototype.move=function(x){var k=x.x-this.previousPoint.x,W=x.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,W=-W/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+W),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=x},Y.prototype.resize=function(x){var k=Object.assign({},this.cropRect),W=x.x-this.previousPoint.x,ee=x.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+Wthis.canvasWidth*this.zoomFactor&&(W=this.canvasWidth*this.zoomFactor-k.width),k.width+=W}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(W),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ee,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ee}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=x,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Y.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,k=this.cropRect.y+this.cropRect.height/2,W=this.aspectRatio.getHorizontalLength(this.cropRect.height),ee=this.aspectRatio.getVerticalLength(this.cropRect.width);W/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=x-this.cropRect.width/2,this.cropRect.y=k-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)}},Y.prototype.getRescaledRect=function(x,k,W,ee,V,Ee){var Ye=W/x,tt=ee/k;return{x:(V.x-Ee)*Ye+Ee,y:(V.y-Ee)*tt+Ee,width:V.width*Ye,height:V.height*tt}},Y.prototype.scaleCanvas=function(x,k){var W=this.getRescaledRect(this.canvasWidth,this.canvasHeight,x,k,this.cropRect,this.margin);this.canvasWidth=x,this.canvasHeight=k,this.onCropChange&&this.onCropChange(W),this.setCropRectangle(W)},Y}(),Ir=function(){function Y(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(Y.prototype,"angle",{get:function(){return this._angle},set:function(x){this._angle=x,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Y.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},Y.prototype.onPointerDown=function(x){this.controlContainer.setPointerCapture(x.pointerId),this.isDragging=!0,this.previousPoint={x:x.clientX,y:x.clientY}},Y.prototype.onPointerMove=function(x){this.isDragging&&(this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.previousPoint.x=x.clientX)},Y.prototype.onPointerUp=function(x){this.isDragging&&this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(x.pointerId)},Y.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var x=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-x.width)/2).toString()],["y",(this.height/2).toString()]])}},Y.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)}},Y.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 k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,W=1;W<=this.width/5+10;W++){var ee=W%5==0?this.height/3:this.height/6;k+="h4v"+-ee+"h1v"+ee}k+="v1H0Z",this.scaleShape=_t.createPath(k);var V=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(V),x.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ee=_t.createTSpan("");return Ee.innerHTML="°",this.angleLabelElement.appendChild(Ee),x.appendChild(this.angleLabelElement),document.body.removeChild(x),x},Y}(),Xr=function(){function Y(){this.naturalSize=!1,this.imageType="image/png"}return Y.prototype.rasterize=function(x,k,W,ee,V,Ee,Ye){var tt=this;return new Promise(function(gt){var Xe=document.createElement("canvas");Xe.width=x.width.baseVal.value-2*ee,Xe.height=x.height.baseVal.value-2*ee;var xt=1,jt=1;tt.naturalSize===!0?(xt=k.naturalWidth/(x.width.baseVal.value-2*ee)/Ee,jt=k.naturalHeight/(x.height.baseVal.value-2*ee)/Ye,Xe.width=k.naturalWidth/Ee,Xe.height=k.naturalHeight/Ye):tt.width!==void 0&&tt.height!==void 0&&(xt=tt.width/W.width,jt=tt.height/W.height,Xe.width*=xt,Xe.height*=jt);var $t=Xe.getContext("2d");$t.translate(Xe.width/2,Xe.height/2),$t.rotate(V*Math.PI/180),$t.scale(Ee,Ye),$t.translate(-Xe.width/2,-Xe.height/2),$t.drawImage(k,0,0,Xe.width,Xe.height);var jr=document.createElement("canvas");jr.width=W.width*xt,jr.height=W.height*jt,jr.getContext("2d").putImageData($t.getImageData((W.x-ee)*xt,(W.y-ee)*jt,W.width*xt,W.height*jt),0,0),gt(jr.toDataURL(tt.imageType,tt.imageQuality))})},Y}(),Ze=function(){function Y(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=Y.instanceCounter++,this.styles=new Lr(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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(x){this._zoomToCropEnabled=x,x?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.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(Y.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(Y.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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}),Y.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},Y.prototype.show=function(){this.showUI(),this.open()},Y.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(k){return k()}),this._isOpen=!1)},Y.prototype.addRenderEventListener=function(x){this.renderEventListeners.push(x)},Y.prototype.removeRenderEventListener=function(x){this.renderEventListeners.indexOf(x)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(x),1)},Y.prototype.addCloseEventListener=function(x){this.closeEventListeners.push(x)},Y.prototype.removeCloseEventListener=function(x){this.closeEventListeners.indexOf(x)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(x),1)},Y.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))},Y.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var x=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/x>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*x:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,W=k+2*this.CANVAS_MARGINx+this.CANVAS_MARGIN?this.target.offsetTop-(x+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"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},Y.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Y.prototype.addTopToolbar=function(){var x=this;this.topToolbar=new Ut,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new cr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var W=[];this.aspectRatios.forEach(function(jt){var $t=new Nt(Vt.getIcon(jt.horizontal,jt.vertical),jt.horizontal===0&&jt.vertical===0?"FREE":jt.horizontal+":"+jt.vertical);$t.onClick=function(){return x.ratioButtonClicked(jt)},W.push($t)}),this.aspectRatioButton=new Jt(Vt.getIcon(0,0),"Aspect ratio",W),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ee=new Nt('',"Toggle grid");ee.isActive=this.isGridVisible,ee.onClick=function(){x.isGridVisible=!x.isGridVisible,ee.isActive=x.isGridVisible},k.addButton(ee);var V=new Nt('',"Zoom to selection");if(V.isActive=this.zoomToCropEnabled,V.onClick=function(){x.zoomToCropEnabled=!x.zoomToCropEnabled,V.isActive=x.zoomToCropEnabled},k.addButton(V),!Kr.isLicensed){var Ee=new mt;this.topToolbar.addElementBlock(Ee);var Ye=document.createElement("div");Ye.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var tt=document.createElement("a");tt.style.color="currentColor",tt.href="https://markerjs.com/products/cropro",tt.target="_blank",tt.innerHTML='',Ye.appendChild(tt),Ee.addElement(Ye)}var gt=new cr;gt.minWidth=3*this.toolbarHeight+"px",gt.contentAlign="end",this.topToolbar.addButtonBlock(gt);var Xe=new Nt('',"OK");Xe.onClick=this.startRenderAndClose,gt.addButton(Xe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var xt=new Nt('',"Close");xt.onClick=this.close,gt.addButton(xt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(xt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Y.prototype.addBottomToolbar=function(){var x=this;this.bottomToolbar=new Ut,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new cr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var W=new Nt('',"Rotate left");W.onClick=this.rotateLeftButtonClicked,k.addButton(W);var ee=new Nt('',"Rotate right");ee.onClick=this.rotateRightButtonClicked,k.addButton(ee);var V=new mt;V.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(V),this.straightener=new Ir("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(gt){x.rotateBy(gt),x.straightener.angle=x.rotationAngle},V.addElement(this.straightener.getUI());var Ee=new cr;Ee.minWidth=2*this.toolbarHeight+"px",Ee.contentAlign="end",this.bottomToolbar.addButtonBlock(Ee);var Ye=new Nt('',"Flip horizontal");Ye.onClick=this.flipHorizontallyButtonClicked,Ee.addButton(Ye);var tt=new Nt('',"Flip vertical");tt.onClick=this.flipVerticallyButtonClicked,Ee.addButton(tt)},Y.prototype.ratioButtonClicked=function(x){this.aspectRatio=x,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Y.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Vt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Y.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Br(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Y.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Y.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Y.prototype.restoreState=function(x){if(x){var k=this.cropLayer.getRescaledRect(x.width,x.height,this.imageWidth,this.imageHeight,x.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=x.flippedHorizontally,this.flippedVertically=x.flippedVertically,this.applyFlip(),this.rotationAngle=x.rotationAngle,this.applyRotation()}},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.cropImage.getBoundingClientRect();return{x:x-W.left,y:k-W.top}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.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)},Y.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)},Y.prototype.rotateTo=function(x){x=(x=x>180?x-360:x)<=-180?x+360:x,this.rotationAngle=x,this.applyRotation()},Y.prototype.rotateBy=function(x){this.rotateTo((this.rotationAngle+x)%360)},Y.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 k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var W=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/W.width,this.imageHeight/W.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=x},Y.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Y.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Y.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Y.prototype.startRenderAndClose=function(){return Dt(this,void 0,void 0,function(){var x,k;return Cr(this,function(W){switch(W.label){case 0:return[4,this.render()];case 1:return x=W.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ee){return ee(x,k)}),this.close(!0),[2]}})})},Y.prototype.render=function(){return Dt(this,void 0,void 0,function(){var x;return Cr(this,function(k){switch(k.label){case 0:return(x=new Xr).naturalSize=this.renderAtNaturalSize,x.imageType=this.renderImageType,x.imageQuality=this.renderImageQuality,x.width=this.renderWidth,x.height=this.renderHeight,this.unzoomFromCrop(),_t.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 k.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,k.sent()]}})})},Y.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new wt("toolbar",` + `))},Y.prototype.removeStyleSheet=function(){var x;this.styleSheet&&(((x=this.styleSheetRoot)!==null&&x!==void 0?x:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Y}(),Et=function(Y,x){this.selector=Y,this.style=x},wt=function(Y,x){this.localName=Y,this.style=x},Ut=function(){function Y(){this.blocks=[],this.display=""}return Y.prototype.addButtonBlock=function(x){x.className=this.blockClassName,x.buttonClassName=this.buttonClassName,x.buttonColorsClassName=this.buttonColorsClassName,x.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(x)},Y.prototype.addElementBlock=function(x){x.className===void 0&&(x.className=this.blockClassName),this.blocks.push(x)},Y.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(k){return x.appendChild(k.getUI())}),x},Y}(),tr=function(){function Y(){}return Y.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},Y}(),dr=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.buttons=[],k}return Zt(x,Y),x.prototype.addButton=function(k){k.className=this.buttonClassName,k.colorsClassName=this.buttonColorsClassName,k.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.buttons.forEach(function(W){return k.appendChild(W.getUI())}),k},x}(tr),Nt=function(){function Y(x,k){this._isActive=!1,this._isHidden=!1,this._icon=x,this.title=k,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Y.prototype,"icon",{get:function(){return this._icon},set:function(x){this._icon=x,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isActive",{get:function(){return this._isActive},set:function(x){this._isActive=x,this.adjustClassName()},enumerable:!1,configurable:!0}),Y.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},Y.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,"")))},Y.prototype.hide=function(){this._isHidden=!0},Y}(),mt=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.elements=[],k}return Zt(x,Y),x.prototype.addElement=function(k){this.elements.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.elements.forEach(function(W){return k.appendChild(W)}),k},x}(tr),Br=function(){function Y(x,k){this.horizontal=x,this.vertical=k}return Object.defineProperty(Y.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Y.prototype.getVerticalLength=function(x){return x/this.ratio},Y.prototype.getHorizontalLength=function(x){return x*this.ratio},Y}(),Vt=function(){function Y(){}return Y.getIcon=function(x,k){if(x>0&&k>0){var W=new Br(x,k),ee=W.ratio>=1?20:W.getHorizontalLength(20),V=W.ratio<1?20:W.getVerticalLength(20),Ee=document.createElementNS("http://www.w3.org/2000/svg","svg");Ee.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ee.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ee);var Ye=_t.createDefs();Ee.appendChild(Ye);var tt=_t.createElement("clipPath",[["id","text-bg-clip"]]);Ye.appendChild(tt);var gt=_t.createPath(_t.getHollowRectanglePath((24-ee)/2,(24-V)/2,ee,V,(24-ee)/2+2,(24-V)/2+2,ee-4,V-4));Ee.appendChild(gt);var Xe=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xe.appendChild(_t.createTSpan(x+":"+k)),Ee.appendChild(Xe);var xt=Xe.getBBox();_t.setAttributes(Xe,[["x",((24-xt.width)/2).toString()],["y",((24-xt.height)/2-xt.y).toString()]]);var jt=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(xt.width))/2,(24-Math.ceil(xt.height))/2,Math.ceil(xt.width),Math.ceil(xt.height)));return tt.appendChild(jt),_t.setAttributes(gt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ee),Ee.outerHTML}return''},Y}(),Jt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W)||this;return V.isDropdownOpen=!1,V.onClick=V.dropdownButtonClicked,V.dropdownButtons=ee,V}return Zt(x,Y),x.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(W){W.className=k.className,W.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild(W.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}(Nt),Rt=function(){function Y(x,k){this.GRIP_SIZE=10,this.color=x,this.fillColor=k,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y.prototype.setCenter=function(x,k){this.visual.childNodes.forEach(function(W){return _t.setAttributes(W,[["cx",x.toString()],["cy",k.toString()]])})},Y}(),lr=function(){function Y(x,k,W,ee){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=x,this.canvasHeight=k,this.margin=W,this.container=ee,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(Y.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(Y.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(x){this._isGridVisible=x,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(x){this._zoomFactor=x,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Y.prototype.open=function(){var x=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),_t.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var W=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(V,Ee){var Ye=k.y+W*(Ee+1);_t.setAttributes(V,[["x1",""+k.x],["y1",""+Ye],["x2",""+(k.x+k.width)],["y2",""+Ye]])});var ee=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(V,Ee){var Ye=k.x+ee*(Ee+1);_t.setAttributes(V,[["x1",""+Ye],["y1",""+k.y],["x2",""+Ye],["y2",""+(k.y+k.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Y.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)},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.container.getBoundingClientRect();return{x:x-W.left+this.margin,y:k-W.top+this.margin}},Y.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)},Y.prototype.onPointerMove=function(x){if(this.isMoving)this.move(this.clientToLocalCoordinates(x.clientX,x.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(x.clientX,x.clientY);this.resize(k)}x.preventDefault()},Y.prototype.onPointerUp=function(x){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(x.pointerId)},Y.prototype.move=function(x){var k=x.x-this.previousPoint.x,W=x.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,W=-W/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+W),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=x},Y.prototype.resize=function(x){var k=Object.assign({},this.cropRect),W=x.x-this.previousPoint.x,ee=x.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+Wthis.canvasWidth*this.zoomFactor&&(W=this.canvasWidth*this.zoomFactor-k.width),k.width+=W}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(W),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ee,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ee}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=x,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Y.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,k=this.cropRect.y+this.cropRect.height/2,W=this.aspectRatio.getHorizontalLength(this.cropRect.height),ee=this.aspectRatio.getVerticalLength(this.cropRect.width);W/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=x-this.cropRect.width/2,this.cropRect.y=k-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)}},Y.prototype.getRescaledRect=function(x,k,W,ee,V,Ee){var Ye=W/x,tt=ee/k;return{x:(V.x-Ee)*Ye+Ee,y:(V.y-Ee)*tt+Ee,width:V.width*Ye,height:V.height*tt}},Y.prototype.scaleCanvas=function(x,k){var W=this.getRescaledRect(this.canvasWidth,this.canvasHeight,x,k,this.cropRect,this.margin);this.canvasWidth=x,this.canvasHeight=k,this.onCropChange&&this.onCropChange(W),this.setCropRectangle(W)},Y}(),Ir=function(){function Y(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(Y.prototype,"angle",{get:function(){return this._angle},set:function(x){this._angle=x,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Y.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},Y.prototype.onPointerDown=function(x){this.controlContainer.setPointerCapture(x.pointerId),this.isDragging=!0,this.previousPoint={x:x.clientX,y:x.clientY}},Y.prototype.onPointerMove=function(x){this.isDragging&&(this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.previousPoint.x=x.clientX)},Y.prototype.onPointerUp=function(x){this.isDragging&&this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(x.pointerId)},Y.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var x=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-x.width)/2).toString()],["y",(this.height/2).toString()]])}},Y.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)}},Y.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 k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,W=1;W<=this.width/5+10;W++){var ee=W%5==0?this.height/3:this.height/6;k+="h4v"+-ee+"h1v"+ee}k+="v1H0Z",this.scaleShape=_t.createPath(k);var V=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(V),x.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ee=_t.createTSpan("");return Ee.innerHTML="°",this.angleLabelElement.appendChild(Ee),x.appendChild(this.angleLabelElement),document.body.removeChild(x),x},Y}(),Xr=function(){function Y(){this.naturalSize=!1,this.imageType="image/png"}return Y.prototype.rasterize=function(x,k,W,ee,V,Ee,Ye){var tt=this;return new Promise(function(gt){var Xe=document.createElement("canvas");Xe.width=x.width.baseVal.value-2*ee,Xe.height=x.height.baseVal.value-2*ee;var xt=1,jt=1;tt.naturalSize===!0?(xt=k.naturalWidth/(x.width.baseVal.value-2*ee)/Ee,jt=k.naturalHeight/(x.height.baseVal.value-2*ee)/Ye,Xe.width=k.naturalWidth/Ee,Xe.height=k.naturalHeight/Ye):tt.width!==void 0&&tt.height!==void 0&&(xt=tt.width/W.width,jt=tt.height/W.height,Xe.width*=xt,Xe.height*=jt);var $t=Xe.getContext("2d");$t.translate(Xe.width/2,Xe.height/2),$t.rotate(V*Math.PI/180),$t.scale(Ee,Ye),$t.translate(-Xe.width/2,-Xe.height/2),$t.drawImage(k,0,0,Xe.width,Xe.height);var jr=document.createElement("canvas");jr.width=W.width*xt,jr.height=W.height*jt,jr.getContext("2d").putImageData($t.getImageData((W.x-ee)*xt,(W.y-ee)*jt,W.width*xt,W.height*jt),0,0),gt(jr.toDataURL(tt.imageType,tt.imageQuality))})},Y}(),Ze=function(){function Y(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=Y.instanceCounter++,this.styles=new Lr(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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(x){this._zoomToCropEnabled=x,x?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.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(Y.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(Y.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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}),Y.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},Y.prototype.show=function(){this.showUI(),this.open()},Y.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(k){return k()}),this._isOpen=!1)},Y.prototype.addRenderEventListener=function(x){this.renderEventListeners.push(x)},Y.prototype.removeRenderEventListener=function(x){this.renderEventListeners.indexOf(x)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(x),1)},Y.prototype.addCloseEventListener=function(x){this.closeEventListeners.push(x)},Y.prototype.removeCloseEventListener=function(x){this.closeEventListeners.indexOf(x)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(x),1)},Y.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))},Y.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var x=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/x>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*x:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,W=k+2*this.CANVAS_MARGINx+this.CANVAS_MARGIN?this.target.offsetTop-(x+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"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},Y.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Y.prototype.addTopToolbar=function(){var x=this;this.topToolbar=new Ut,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new dr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var W=[];this.aspectRatios.forEach(function(jt){var $t=new Nt(Vt.getIcon(jt.horizontal,jt.vertical),jt.horizontal===0&&jt.vertical===0?"FREE":jt.horizontal+":"+jt.vertical);$t.onClick=function(){return x.ratioButtonClicked(jt)},W.push($t)}),this.aspectRatioButton=new Jt(Vt.getIcon(0,0),"Aspect ratio",W),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ee=new Nt('',"Toggle grid");ee.isActive=this.isGridVisible,ee.onClick=function(){x.isGridVisible=!x.isGridVisible,ee.isActive=x.isGridVisible},k.addButton(ee);var V=new Nt('',"Zoom to selection");if(V.isActive=this.zoomToCropEnabled,V.onClick=function(){x.zoomToCropEnabled=!x.zoomToCropEnabled,V.isActive=x.zoomToCropEnabled},k.addButton(V),!Kr.isLicensed){var Ee=new mt;this.topToolbar.addElementBlock(Ee);var Ye=document.createElement("div");Ye.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var tt=document.createElement("a");tt.style.color="currentColor",tt.href="https://markerjs.com/products/cropro",tt.target="_blank",tt.innerHTML='',Ye.appendChild(tt),Ee.addElement(Ye)}var gt=new dr;gt.minWidth=3*this.toolbarHeight+"px",gt.contentAlign="end",this.topToolbar.addButtonBlock(gt);var Xe=new Nt('',"OK");Xe.onClick=this.startRenderAndClose,gt.addButton(Xe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var xt=new Nt('',"Close");xt.onClick=this.close,gt.addButton(xt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(xt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Y.prototype.addBottomToolbar=function(){var x=this;this.bottomToolbar=new Ut,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var k=new dr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var W=new Nt('',"Rotate left");W.onClick=this.rotateLeftButtonClicked,k.addButton(W);var ee=new Nt('',"Rotate right");ee.onClick=this.rotateRightButtonClicked,k.addButton(ee);var V=new mt;V.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(V),this.straightener=new Ir("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(gt){x.rotateBy(gt),x.straightener.angle=x.rotationAngle},V.addElement(this.straightener.getUI());var Ee=new dr;Ee.minWidth=2*this.toolbarHeight+"px",Ee.contentAlign="end",this.bottomToolbar.addButtonBlock(Ee);var Ye=new Nt('',"Flip horizontal");Ye.onClick=this.flipHorizontallyButtonClicked,Ee.addButton(Ye);var tt=new Nt('',"Flip vertical");tt.onClick=this.flipVerticallyButtonClicked,Ee.addButton(tt)},Y.prototype.ratioButtonClicked=function(x){this.aspectRatio=x,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Y.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Vt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Y.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Br(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Y.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Y.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Y.prototype.restoreState=function(x){if(x){var k=this.cropLayer.getRescaledRect(x.width,x.height,this.imageWidth,this.imageHeight,x.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=x.flippedHorizontally,this.flippedVertically=x.flippedVertically,this.applyFlip(),this.rotationAngle=x.rotationAngle,this.applyRotation()}},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.cropImage.getBoundingClientRect();return{x:x-W.left,y:k-W.top}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.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)},Y.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)},Y.prototype.rotateTo=function(x){x=(x=x>180?x-360:x)<=-180?x+360:x,this.rotationAngle=x,this.applyRotation()},Y.prototype.rotateBy=function(x){this.rotateTo((this.rotationAngle+x)%360)},Y.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 k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var W=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/W.width,this.imageHeight/W.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=x},Y.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Y.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Y.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Y.prototype.startRenderAndClose=function(){return Dt(this,void 0,void 0,function(){var x,k;return Cr(this,function(W){switch(W.label){case 0:return[4,this.render()];case 1:return x=W.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ee){return ee(x,k)}),this.close(!0),[2]}})})},Y.prototype.render=function(){return Dt(this,void 0,void 0,function(){var x;return Cr(this,function(k){switch(k.label){case 0:return(x=new Xr).naturalSize=this.renderAtNaturalSize,x.imageType=this.renderImageType,x.imageQuality=this.renderImageQuality,x.width=this.renderWidth,x.height=this.renderHeight,this.unzoomFromCrop(),_t.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 k.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,k.sent()]}})})},Y.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new wt("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -253,35 +253,35 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new wt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},Y.instanceCounter=0,Y}(),Ct=Z("8hTe"),mn=Z.n(Ct),gn=/]*>/g;function vn(Y){var x=document.createElement("div");return x.innerHTML=Y,x.childNodes.length===0?"":x.childNodes[0].nodeValue}var yn=be.a=function(Y){var x=Y.value,k=x===void 0?"":x,W=Y.edit,ee=W===void 0?!1:W,V=Y.className,Ee=Y.showTextOnly,Ye=Y.showLines,tt=Y.replaces,gt=Y.zoomImg,Xe=Y.hasMask,xt=Y.style,jt=xt===void 0?{}:xt,$t=Y.stylesPrev,jr=$t===void 0?{}:$t,Er=String(k),xr=Object(L.useRef)(),Zr=Object(L.useRef)(),Dn=Object(L.useState)(""),dr=Object(K.a)(Dn,2),zr=dr[0],un=dr[1],hn=Object(L.useState)("office"),Hr=Object(K.a)(hn,2),kn=Hr[0],bn=Hr[1],zn=function(){var Ht=new Ze(Zr.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return xr.current.style.display="none",fr.next=3,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar}});case 3:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new It(Zr.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(xr.current.style.display="none",!Zr.current){fr.next=6;break}return fr.next=4,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar.dataUrl}});case 4:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Qr=Object(L.useMemo)(function(){xr.current&&(xr.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Er=Er.replace(nr,"("+$.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+$.a.API_SERVER+"/api/attachments/").replace(yr,'"'+$.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 Mt=M(Er),ar=S();if(Er.match(/\[TOC\]/)&&(Mt=Mt.replace("

      [TOC]

      ",D()),O()),Mt=Mt.replace(/(__special_katext_id_\d+__)/g,function(nn,fr){var Ar=ar[fr],Yn=Ar.type,xn=Ar.expression;return Object(ne.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),Mt=Mt.replace(/▁/g,"\u2581\u2581\u2581"),y(),Ee){var Kt=document.createElement("div");return Kt.innerHTML=Mt,Kt.innerText}return setTimeout(function(){return ci()},500),Mt},[Er]),$r=Object(L.useRef)();E.WebkitLineClamp=Ye,Ye&&(jt=Object(j.a)(Object(j.a)({},jt),E));function _n(nr){var Ht=nr.target;if(Ht.tagName.toUpperCase()==="IMG"){if(gt){var yr=Ht.getAttribute("src");un(yr),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var Mt=Ht.getAttribute("href");if(Mt.indexOf("office")>-1)nr.preventDefault(),un(Mt),bn("office");else if(Mt.indexOf("application/pdf")>-1)nr.preventDefault(),un(Mt),bn("pdf");else if(Mt.indexOf("text/html")>-1)nr.preventDefault(),un(Mt),bn("html");else if(Mt.startsWith("#")){nr.preventDefault();var ar=document.getElementById(Mt.replace("#",""));ar&&ar.scrollIntoView(!0)}}}var ci=function(){var Ht,yr=(Ht=$r.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yr==null||yr.forEach(function(Mt){if(Mt.oncontextmenu=function(){return!1},Mt.src.indexOf(".m3u8")>-1&&!Mt.canPlayType("application/vnd.apple.mpegurl")){if(H.a.isSupported()){var ar=new H.a;ar.loadSource(Mt.src),ar.attachMedia(Mt)}}})};Object(L.useEffect)(function(){if($r.current&&Qr&&(Qr.match(gn)&&window.PR.prettyPrint()),$r.current)return $r.current.addEventListener("click",_n),function(){$r.current.removeEventListener("click",_n),y(),O()}},[Qr,$r.current,_n]);var En=function(Ht){if(!ee)return;Ht.target.nodeName==="IMG"?(xr.current.style.zIndex=1,xr.current.style.display="flex",xr.current.style.width=Ht.target.clientWidth+"px",xr.current.style.height=Ht.target.clientHeight+"px",xr.current.style.top=Ht.target.offsetTop+"px",xr.current.style.left=Ht.target.offsetLeft+"px",Zr.current.src=Ht.target.getAttribute("src")):xr.current.style.display="none"};return v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("div",{ref:$r,style:Object(j.a)({},jt),className:"".concat(V||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Qr}}),v.a.createElement("div",{ref:xr,className:mn.a.button},v.a.createElement(J.a,null,v.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),v.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),v.a.createElement("img",{ref:Zr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),v.a.createElement(se.a,{close:!0,data:zr,type:zr!=null&&zr.length?kn:"",style:Object(j.a)({},jr),onClose:function(){return un("")}}))}},"9VGf":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return P});var ie=Z("q1tI"),J=Z.n(ie);function P(X,j){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function K(){U.current()}if(j!==null){var G=setInterval(K,j);return function(){return clearInterval(G)}}},[j])}},BU3w:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return U});var ie=Z("MNnm"),J="rc-util-key";function P(K){if(K.attachTo)return K.attachTo;var G=document.querySelector("head");return G||document.body}function X(K){var G,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var L=document.createElement("style");if((G=r.csp)===null||G===void 0?void 0:G.nonce){var v;L.nonce=(v=r.csp)===null||v===void 0?void 0:v.nonce}L.innerHTML=K;var m=P(r),p=m.firstChild;return r.prepend&&m.prepend?m.prepend(L):r.prepend&&p?m.insertBefore(L,p):m.appendChild(L),L}var j=new Map;function U(K,G){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=P(r);if(!j.has(L)){var v=X("",r),m=v.parentNode;j.set(L,m),m.removeChild(v)}var p=Array.from(j.get(L).children).find(function(o){return o.tagName==="STYLE"&&o[J]===G});if(p){var h,u;if(((h=r.csp)===null||h===void 0?void 0:h.nonce)&&p.nonce!==((u=r.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=r.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==K&&(p.innerHTML=K),p}var l=X(K,r);return l[J]=G,l}},Bd2K:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(r,L,v){if(v!=ie.Init&&v&&r.removeKeyMap("autoCloseTags"),!L)return;var m={name:"autoCloseTags"};(typeof L!="object"||L.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof L!="object"||L.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),r.addKeyMap(m)});var J=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["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 X(r){if(r.getOption("disableInput"))return ie.Pass;for(var L=r.listSelections(),v=[],m=r.getOption("autoCloseTags"),p=0;ph.ch&&(s=s.slice(0,s.length-u.end+h.ch));var w=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=h.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&o.close||u.string.indexOf("/")==h.ch-u.start-1||O&&K(O,w)>-1||G(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(l)||[],s,h,!0))return ie.Pass;var D=typeof m=="object"&&m.emptyTags;if(D&&K(D,s)>-1){v[p]={text:"/>",newPos:ie.Pos(h.line,h.ch+2)};continue}var R=E&&K(E,w)>-1;v[p]={indent:R,text:">"+(R?` + `))},Y.instanceCounter=0,Y}(),Ct=Z("8hTe"),mn=Z.n(Ct),gn=/]*>/g;function vn(Y){var x=document.createElement("div");return x.innerHTML=Y,x.childNodes.length===0?"":x.childNodes[0].nodeValue}var yn=be.a=function(Y){var x=Y.value,k=x===void 0?"":x,W=Y.edit,ee=W===void 0?!1:W,V=Y.className,Ee=Y.showTextOnly,Ye=Y.showLines,tt=Y.replaces,gt=Y.zoomImg,Xe=Y.hasMask,xt=Y.style,jt=xt===void 0?{}:xt,$t=Y.stylesPrev,jr=$t===void 0?{}:$t,Er=String(k),xr=Object(L.useRef)(),Zr=Object(L.useRef)(),Dn=Object(L.useState)(""),cr=Object(K.a)(Dn,2),zr=cr[0],un=cr[1],hn=Object(L.useState)("office"),Hr=Object(K.a)(hn,2),kn=Hr[0],bn=Hr[1],zn=function(){var Ht=new Ze(Zr.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return xr.current.style.display="none",fr.next=3,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar}});case 3:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new It(Zr.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(xr.current.style.display="none",!Zr.current){fr.next=6;break}return fr.next=4,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar.dataUrl}});case 4:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Qr=Object(L.useMemo)(function(){xr.current&&(xr.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Er=Er.replace(nr,"("+$.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+$.a.API_SERVER+"/api/attachments/").replace(yr,'"'+$.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 Mt=M(Er),ar=S();if(Er.match(/\[TOC\]/)&&(Mt=Mt.replace("

      [TOC]

      ",D()),O()),Mt=Mt.replace(/(__special_katext_id_\d+__)/g,function(nn,fr){var Ar=ar[fr],Yn=Ar.type,xn=Ar.expression;return Object(ne.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),Mt=Mt.replace(/▁/g,"\u2581\u2581\u2581"),y(),Ee){var Kt=document.createElement("div");return Kt.innerHTML=Mt,Kt.innerText}return setTimeout(function(){return di()},500),Mt},[Er]),$r=Object(L.useRef)();E.WebkitLineClamp=Ye,Ye&&(jt=Object(j.a)(Object(j.a)({},jt),E));function _n(nr){var Ht=nr.target;if(Ht.tagName.toUpperCase()==="IMG"){if(gt){var yr=Ht.getAttribute("src");un(yr),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var Mt=Ht.getAttribute("href");if(Mt.indexOf("office")>-1)nr.preventDefault(),un(Mt),bn("office");else if(Mt.indexOf("application/pdf")>-1)nr.preventDefault(),un(Mt),bn("pdf");else if(Mt.indexOf("text/html")>-1)nr.preventDefault(),un(Mt),bn("html");else if(Mt.startsWith("#")){nr.preventDefault();var ar=document.getElementById(Mt.replace("#",""));ar&&ar.scrollIntoView(!0)}}}var di=function(){var Ht,yr=(Ht=$r.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yr==null||yr.forEach(function(Mt){if(Mt.oncontextmenu=function(){return!1},Mt.src.indexOf(".m3u8")>-1&&!Mt.canPlayType("application/vnd.apple.mpegurl")){if(H.a.isSupported()){var ar=new H.a;ar.loadSource(Mt.src),ar.attachMedia(Mt)}}})};Object(L.useEffect)(function(){if($r.current&&Qr&&(Qr.match(gn)&&window.PR.prettyPrint()),$r.current)return $r.current.addEventListener("click",_n),function(){$r.current.removeEventListener("click",_n),y(),O()}},[Qr,$r.current,_n]);var En=function(Ht){if(!ee)return;Ht.target.nodeName==="IMG"?(xr.current.style.zIndex=1,xr.current.style.display="flex",xr.current.style.width=Ht.target.clientWidth+"px",xr.current.style.height=Ht.target.clientHeight+"px",xr.current.style.top=Ht.target.offsetTop+"px",xr.current.style.left=Ht.target.offsetLeft+"px",Zr.current.src=Ht.target.getAttribute("src")):xr.current.style.display="none"};return v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("div",{ref:$r,style:Object(j.a)({},jt),className:"".concat(V||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Qr}}),v.a.createElement("div",{ref:xr,className:mn.a.button},v.a.createElement(J.a,null,v.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),v.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),v.a.createElement("img",{ref:Zr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),v.a.createElement(se.a,{close:!0,data:zr,type:zr!=null&&zr.length?kn:"",style:Object(j.a)({},jr),onClose:function(){return un("")}}))}},"9VGf":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return P});var ie=Z("q1tI"),J=Z.n(ie);function P(X,j){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function K(){U.current()}if(j!==null){var G=setInterval(K,j);return function(){return clearInterval(G)}}},[j])}},BU3w:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return U});var ie=Z("MNnm"),J="rc-util-key";function P(K){if(K.attachTo)return K.attachTo;var G=document.querySelector("head");return G||document.body}function X(K){var G,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var L=document.createElement("style");if((G=r.csp)===null||G===void 0?void 0:G.nonce){var v;L.nonce=(v=r.csp)===null||v===void 0?void 0:v.nonce}L.innerHTML=K;var m=P(r),p=m.firstChild;return r.prepend&&m.prepend?m.prepend(L):r.prepend&&p?m.insertBefore(L,p):m.appendChild(L),L}var j=new Map;function U(K,G){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=P(r);if(!j.has(L)){var v=X("",r),m=v.parentNode;j.set(L,m),m.removeChild(v)}var p=Array.from(j.get(L).children).find(function(o){return o.tagName==="STYLE"&&o[J]===G});if(p){var h,u;if(((h=r.csp)===null||h===void 0?void 0:h.nonce)&&p.nonce!==((u=r.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=r.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==K&&(p.innerHTML=K),p}var l=X(K,r);return l[J]=G,l}},Bd2K:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(r,L,v){if(v!=ie.Init&&v&&r.removeKeyMap("autoCloseTags"),!L)return;var m={name:"autoCloseTags"};(typeof L!="object"||L.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof L!="object"||L.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),r.addKeyMap(m)});var J=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["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 X(r){if(r.getOption("disableInput"))return ie.Pass;for(var L=r.listSelections(),v=[],m=r.getOption("autoCloseTags"),p=0;ph.ch&&(s=s.slice(0,s.length-u.end+h.ch));var w=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=h.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&o.close||u.string.indexOf("/")==h.ch-u.start-1||O&&K(O,w)>-1||G(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(l)||[],s,h,!0))return ie.Pass;var D=typeof m=="object"&&m.emptyTags;if(D&&K(D,s)>-1){v[p]={text:"/>",newPos:ie.Pos(h.line,h.ch+2)};continue}var R=E&&K(E,w)>-1;v[p]={indent:R,text:">"+(R?` `:"")+"",newPos:R?ie.Pos(h.line+1,0):ie.Pos(h.line,h.ch+1)}}for(var A=typeof m=="object"&&m.dontIndentOnAutoClose,p=L.length-1;p>=0;p--){var C=v[p];r.replaceRange(C.text,L[p].head,L[p].anchor,"+insert");var T=r.listSelections().slice(0);T[p]={head:C.newPos,anchor:C.newPos},r.setSelections(T),!A&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function j(r,L){for(var v=r.listSelections(),m=[],p=L?"/":""&&(O+=">"),m[f]=O}if(r.replaceSelections(m),v=r.listSelections(),!u)for(var f=0;f=0&&L[l]==v;l--)++f;m=u.to;for(var l=1;l0){for(var L=0;L1&&arguments[1]!==void 0?arguments[1]:"",L=[],v=0;vU,ie.serviceIds.set(U,K),K}function j(U){return function(K,G,r){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");P(U,K,r,!0)}}},DlQD:function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";function ie(Ae,_e){for(var we=0;we<_e.length;we++){var ae=_e[we];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Ae,ae.key,ae)}}function J(Ae,_e,we){return _e&&ie(Ae.prototype,_e),we&&ie(Ae,we),Ae}function P(Ae,_e){if(!Ae)return;if(typeof Ae=="string")return X(Ae,_e);var we=Object.prototype.toString.call(Ae).slice(8,-1);if(we==="Object"&&Ae.constructor&&(we=Ae.constructor.name),we==="Map"||we==="Set")return Array.from(Ae);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return X(Ae,_e)}function X(Ae,_e){(_e==null||_e>Ae.length)&&(_e=Ae.length);for(var we=0,ae=new Array(_e);we<_e;we++)ae[we]=Ae[we];return ae}function j(Ae,_e){var we;if(typeof Symbol=="undefined"||Ae[Symbol.iterator]==null){if(Array.isArray(Ae)||(we=P(Ae))||_e&&Ae&&typeof Ae.length=="number"){we&&(Ae=we);var ae=0;return function(){return ae>=Ae.length?{done:!0}:{done:!1,value:Ae[ae++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return we=Ae[Symbol.iterator](),we.next.bind(we)}function U(Ae,_e){return _e={exports:{}},Ae(_e,_e.exports),_e.exports}var K=U(function(Ae){function _e(){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 we(ae){Ae.exports.defaults=ae}Ae.exports={defaults:_e(),getDefaults:_e,changeDefaults:we}}),G=K.defaults,r=K.getDefaults,L=K.changeDefaults,v=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(_e){return u[_e]};function l(Ae,_e){if(_e){if(v.test(Ae))return Ae.replace(m,f)}else if(p.test(Ae))return Ae.replace(h,f);return Ae}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ae){return Ae.replace(o,function(_e,we){return we=we.toLowerCase(),we==="colon"?":":we.charAt(0)==="#"?we.charAt(1)==="x"?String.fromCharCode(parseInt(we.substring(2),16)):String.fromCharCode(+we.substring(1)):""})}var a=/(^|[^\[])\^/g;function O(Ae,_e){Ae=Ae.source||Ae,_e=_e||"";var we={replace:function(ue,de){return de=de.source||de,de=de.replace(a,"$1"),Ae=Ae.replace(ue,de),we},getRegex:function(){return new RegExp(Ae,_e)}};return we}var E=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(Ae,_e,we){if(Ae){var ae;try{ae=decodeURIComponent(s(we)).replace(E,"").toLowerCase()}catch(ue){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}_e&&!w.test(we)&&(we=d(_e,we));try{we=encodeURI(we).replace(/%25/g,"%")}catch(ue){return null}return we}var R={},A=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(Ae,_e){R[" "+Ae]||(A.test(Ae)?R[" "+Ae]=Ae+"/":R[" "+Ae]=B(Ae,"/",!0)),Ae=R[" "+Ae];var we=Ae.indexOf(":")===-1;return _e.substring(0,2)==="//"?we?_e:Ae.replace(C,"$1")+_e:_e.charAt(0)==="/"?we?_e:Ae.replace(T,"$1")+_e:Ae+_e}var S={exec:function(){}};function y(Ae){for(var _e=1,we,ae;_e=0&&xe[He]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ae=we.split(/ \|/),ue=0;if(ae.length>_e)ae.splice(_e);else for(;ae.length<_e;)ae.push("");for(;ue=ae.length?ue.slice(ae.length):ue}).join(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return we=Ae[Symbol.iterator](),we.next.bind(we)}function U(Ae,_e){return _e={exports:{}},Ae(_e,_e.exports),_e.exports}var K=U(function(Ae){function _e(){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 we(ae){Ae.exports.defaults=ae}Ae.exports={defaults:_e(),getDefaults:_e,changeDefaults:we}}),G=K.defaults,r=K.getDefaults,L=K.changeDefaults,v=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(_e){return u[_e]};function l(Ae,_e){if(_e){if(v.test(Ae))return Ae.replace(m,f)}else if(p.test(Ae))return Ae.replace(h,f);return Ae}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ae){return Ae.replace(o,function(_e,we){return we=we.toLowerCase(),we==="colon"?":":we.charAt(0)==="#"?we.charAt(1)==="x"?String.fromCharCode(parseInt(we.substring(2),16)):String.fromCharCode(+we.substring(1)):""})}var a=/(^|[^\[])\^/g;function O(Ae,_e){Ae=Ae.source||Ae,_e=_e||"";var we={replace:function(ue,ce){return ce=ce.source||ce,ce=ce.replace(a,"$1"),Ae=Ae.replace(ue,ce),we},getRegex:function(){return new RegExp(Ae,_e)}};return we}var E=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(Ae,_e,we){if(Ae){var ae;try{ae=decodeURIComponent(s(we)).replace(E,"").toLowerCase()}catch(ue){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}_e&&!w.test(we)&&(we=c(_e,we));try{we=encodeURI(we).replace(/%25/g,"%")}catch(ue){return null}return we}var R={},A=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ae,_e){R[" "+Ae]||(A.test(Ae)?R[" "+Ae]=Ae+"/":R[" "+Ae]=B(Ae,"/",!0)),Ae=R[" "+Ae];var we=Ae.indexOf(":")===-1;return _e.substring(0,2)==="//"?we?_e:Ae.replace(C,"$1")+_e:_e.charAt(0)==="/"?we?_e:Ae.replace(T,"$1")+_e:Ae+_e}var S={exec:function(){}};function y(Ae){for(var _e=1,we,ae;_e=0&&xe[He]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ae=we.split(/ \|/),ue=0;if(ae.length>_e)ae.splice(_e);else for(;ae.length<_e;)ae.push("");for(;ue=ae.length?ue.slice(ae.length):ue}).join(` `)}var ge=function(){function Ae(we){this.options=we||I}var _e=Ae.prototype;return _e.space=function(ae){var ue=this.rules.block.newline.exec(ae);if(ue)return ue[0].length>1?{type:"space",raw:ue[0]}:{raw:` -`}},_e.code=function(ae,ue){var de=this.rules.block.code.exec(ae);if(de){var me=ue[ue.length-1];if(me&&me.type==="paragraph")return{raw:de[0],text:de[0].trimRight()};var xe=de[0].replace(/^ {4}/gm,"");return{type:"code",raw:de[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:g(xe,` -`)}}},_e.fences=function(ae){var ue=this.rules.block.fences.exec(ae);if(ue){var de=ue[0],me=Oe(de,ue[3]||"");return{type:"code",raw:de,lang:ue[2]?ue[2].trim():ue[2],text:me}}},_e.heading=function(ae){var ue=this.rules.block.heading.exec(ae);if(ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},_e.nptable=function(ae){var ue=this.rules.block.nptable.exec(ae);if(ue){var de={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` -`):[],raw:ue[0]};if(de.header.length===de.align.length){var me=de.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ue[0],text:de}}},_e.list=function(ae){var ue=this.rules.block.list.exec(ae);if(ue){for(var de=ue[0],me=ue[2],xe=me.length>1,Pe=me[me.length-1]===")",He={type:"list",raw:de,ordered:xe,start:xe?+me.slice(0,-1):"",loose:!1,items:[]},ze=ue[0].match(this.rules.block.item),ht=!1,ot,yt,ct,ft,Ot,It,qt,Zt=ze.length,Dt=0;Dt1||this.options.smartLists&&ct!==me)&&(ft=ze.slice(Dt+1).join(` +`}},_e.code=function(ae,ue){var ce=this.rules.block.code.exec(ae);if(ce){var me=ue[ue.length-1];if(me&&me.type==="paragraph")return{raw:ce[0],text:ce[0].trimRight()};var xe=ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:ce[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:g(xe,` +`)}}},_e.fences=function(ae){var ue=this.rules.block.fences.exec(ae);if(ue){var ce=ue[0],me=Oe(ce,ue[3]||"");return{type:"code",raw:ce,lang:ue[2]?ue[2].trim():ue[2],text:me}}},_e.heading=function(ae){var ue=this.rules.block.heading.exec(ae);if(ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},_e.nptable=function(ae){var ue=this.rules.block.nptable.exec(ae);if(ue){var ce={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` +`):[],raw:ue[0]};if(ce.header.length===ce.align.length){var me=ce.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ue[0],text:ce}}},_e.list=function(ae){var ue=this.rules.block.list.exec(ae);if(ue){for(var ce=ue[0],me=ue[2],xe=me.length>1,Pe=me[me.length-1]===")",He={type:"list",raw:ce,ordered:xe,start:xe?+me.slice(0,-1):"",loose:!1,items:[]},ze=ue[0].match(this.rules.block.item),ht=!1,ot,yt,dt,ft,Ot,It,qt,Zt=ze.length,Dt=0;Dt1||this.options.smartLists&&dt!==me)&&(ft=ze.slice(Dt+1).join(` `),He.raw=He.raw.substring(0,He.raw.length-ft.length),Dt=Zt-1)),Ot=ht||/\n\n(?!\s*$)/.test(ot),Dt!==Zt-1&&(ht=ot.charAt(ot.length-1)===` -`,Ot||(Ot=ht)),Ot&&(He.loose=!0),It=/^\[[ xX]\] /.test(ot),qt=void 0,It&&(qt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),He.items.push({type:"list_item",raw:de,task:It,checked:qt,loose:Ot,text:ot});return He}},_e.html=function(ae){var ue=this.rules.block.html.exec(ae);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):$(ue[0]):ue[0]}},_e.def=function(ae){var ue=this.rules.block.def.exec(ae);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var de=ue[1].toLowerCase().replace(/\s+/g," ");return{tag:de,raw:ue[0],href:ue[2],title:ue[3]}}},_e.table=function(ae){var ue=this.rules.block.table.exec(ae);if(ue){var de={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` -`):[]};if(de.header.length===de.align.length){de.raw=ue[0];var me=de.align.length,xe;for(xe=0;xe/i.test(me[0])&&(ue=!1),!de&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?de=!0:de&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(de=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ue,inRawBlock:de,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]}},_e.link=function(ae){var ue=this.rules.inline.link.exec(ae);if(ue){var de=ne(ue[2],"()");if(de>-1){var me=ue[0].indexOf("!")===0?5:4,xe=me+ue[1].length+de;ue[2]=ue[2].substring(0,de),ue[0]=ue[0].substring(0,xe).trim(),ue[3]=""}var Pe=ue[2],He="";if(this.options.pedantic){var ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ze?(Pe=ze[1],He=ze[3]):He=""}else He=ue[3]?ue[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var ht=se(ue,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:He&&He.replace(this.rules.inline._escapes,"$1")},ue[0]);return ht}},_e.reflink=function(ae,ue){var de;if((de=this.rules.inline.reflink.exec(ae))||(de=this.rules.inline.nolink.exec(ae))){var me=(de[2]||de[1]).replace(/\s+/g," ");if(me=ue[me.toLowerCase()],!me||!me.href){var xe=de[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=se(de,me,de[0]);return Pe}},_e.strong=function(ae,ue,de){de===void 0&&(de="");var me=this.rules.inline.strong.start.exec(ae);if(me&&(!me[1]||me[1]&&(de===""||this.rules.inline.punctuation.exec(de)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ue.slice(0,me.index+3)),Pe)return{type:"strong",raw:ae.slice(0,Pe[0].length),text:ae.slice(2,Pe[0].length-2)}}},_e.em=function(ae,ue,de){de===void 0&&(de="");var me=this.rules.inline.em.start.exec(ae);if(me&&(!me[1]||me[1]&&(de===""||this.rules.inline.punctuation.exec(de)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.em.middle.exec(ue.slice(0,me.index+2)),Pe)return{type:"em",raw:ae.slice(0,Pe[0].length),text:ae.slice(1,Pe[0].length-1)}}},_e.codespan=function(ae){var ue=this.rules.inline.code.exec(ae);if(ue){var de=ue[2].replace(/\n/g," "),me=/[^ ]/.test(de),xe=de.startsWith(" ")&&de.endsWith(" ");return me&&xe&&(de=de.substring(1,de.length-1)),de=$(de,!0),{type:"codespan",raw:ue[0],text:de}}},_e.br=function(ae){var ue=this.rules.inline.br.exec(ae);if(ue)return{type:"br",raw:ue[0]}},_e.del=function(ae){var ue=this.rules.inline.del.exec(ae);if(ue)return{type:"del",raw:ue[0],text:ue[1]}},_e.autolink=function(ae,ue){var de=this.rules.inline.autolink.exec(ae);if(de){var me,xe;return de[2]==="@"?(me=$(this.options.mangle?ue(de[1]):de[1]),xe="mailto:"+me):(me=$(de[1]),xe=me),{type:"link",raw:de[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.url=function(ae,ue){var de;if(de=this.rules.inline.url.exec(ae)){var me,xe;if(de[2]==="@")me=$(this.options.mangle?ue(de[0]):de[0]),xe="mailto:"+me;else{var Pe;do Pe=de[0],de[0]=this.rules.inline._backpedal.exec(de[0])[0];while(Pe!==de[0]);me=$(de[0]),de[1]==="www."?xe="http://"+me:xe=me}return{type:"link",raw:de[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.inlineText=function(ae,ue,de){var me=this.rules.inline.text.exec(ae);if(me){var xe;return ue?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]:xe=$(this.options.smartypants?de(me[0]):me[0]),{type:"text",raw:me[0],text:xe}}},Ae}(),Te=M.noopTest,Re=M.edit,Le=M.merge,ce={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Te,table:Te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ce.def=Re(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex(),ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ce.item=Re(ce.item,"gm").replace(/bull/g,ce.bullet).getRegex(),ce.list=Re(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex(),ce._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",ce._comment=//,ce.html=Re(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ce.paragraph=Re(ce._paragraph).replace("hr",ce.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",")|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.blockquote=Re(ce.blockquote).replace("paragraph",ce.paragraph).getRegex(),ce.normal=Le({},ce),ce.gfm=Le({},ce.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*|$)"}),ce.gfm.nptable=Re(ce.gfm.nptable).replace("hr",ce.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",")|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.gfm.table=Re(ce.gfm.table).replace("hr",ce.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",")|<(?:script|pre|style|!--)").replace("tag",ce._tag).getRegex(),ce.pedantic=Le({},ce.normal,{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Te,paragraph:Re(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=Re(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=Re(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=Re(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=Re(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=Re(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=Re(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=Re(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=Re(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=Re(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=Re(he._blockSkip,"g").getRegex(),he.overlapSkip=Re(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._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])?)+(?![-_])/,he.autolink=Re(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=Re(he.tag).replace("comment",ce._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=Re(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=Re(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=Re(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=Le({},he),he.pedantic=Le({},he.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:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=Le({},he.normal,{escape:Re(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ae="x"+ae.toString(16)),_e+="&#"+ae+";";return _e}var Ne=function(){function Ae(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||fe,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:oe.normal,inline:De.normal};this.options.pedantic?(ae.block=oe.pedantic,ae.inline=De.pedantic):this.options.gfm&&(ae.block=oe.gfm,this.options.breaks?ae.inline=De.breaks:ae.inline=De.gfm),this.tokenizer.rules=ae}Ae.lex=function(ae,ue){var de=new Ae(ue);return de.lex(ae)};var _e=Ae.prototype;return _e.lex=function(ae){return ae=ae.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(ae,this.tokens,!0),this.inline(this.tokens),this.tokens},_e.blockTokens=function(ae,ue,de){ue===void 0&&(ue=[]),de===void 0&&(de=!0),ae=ae.replace(/^ +$/gm,"");for(var me,xe,Pe,He;ae;){if(me=this.tokenizer.space(ae)){ae=ae.substring(me.raw.length),me.type&&ue.push(me);continue}if(me=this.tokenizer.code(ae,ue)){ae=ae.substring(me.raw.length),me.type?ue.push(me):(He=ue[ue.length-1],He.raw+=` +`,Ot||(Ot=ht)),Ot&&(He.loose=!0),It=/^\[[ xX]\] /.test(ot),qt=void 0,It&&(qt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),He.items.push({type:"list_item",raw:ce,task:It,checked:qt,loose:Ot,text:ot});return He}},_e.html=function(ae){var ue=this.rules.block.html.exec(ae);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):$(ue[0]):ue[0]}},_e.def=function(ae){var ue=this.rules.block.def.exec(ae);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var ce=ue[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ue[0],href:ue[2],title:ue[3]}}},_e.table=function(ae){var ue=this.rules.block.table.exec(ae);if(ue){var ce={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` +`):[]};if(ce.header.length===ce.align.length){ce.raw=ue[0];var me=ce.align.length,xe;for(xe=0;xe/i.test(me[0])&&(ue=!1),!ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?ce=!0:ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(ce=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ue,inRawBlock:ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]}},_e.link=function(ae){var ue=this.rules.inline.link.exec(ae);if(ue){var ce=ne(ue[2],"()");if(ce>-1){var me=ue[0].indexOf("!")===0?5:4,xe=me+ue[1].length+ce;ue[2]=ue[2].substring(0,ce),ue[0]=ue[0].substring(0,xe).trim(),ue[3]=""}var Pe=ue[2],He="";if(this.options.pedantic){var ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ze?(Pe=ze[1],He=ze[3]):He=""}else He=ue[3]?ue[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var ht=se(ue,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:He&&He.replace(this.rules.inline._escapes,"$1")},ue[0]);return ht}},_e.reflink=function(ae,ue){var ce;if((ce=this.rules.inline.reflink.exec(ae))||(ce=this.rules.inline.nolink.exec(ae))){var me=(ce[2]||ce[1]).replace(/\s+/g," ");if(me=ue[me.toLowerCase()],!me||!me.href){var xe=ce[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=se(ce,me,ce[0]);return Pe}},_e.strong=function(ae,ue,ce){ce===void 0&&(ce="");var me=this.rules.inline.strong.start.exec(ae);if(me&&(!me[1]||me[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ue.slice(0,me.index+3)),Pe)return{type:"strong",raw:ae.slice(0,Pe[0].length),text:ae.slice(2,Pe[0].length-2)}}},_e.em=function(ae,ue,ce){ce===void 0&&(ce="");var me=this.rules.inline.em.start.exec(ae);if(me&&(!me[1]||me[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.em.middle.exec(ue.slice(0,me.index+2)),Pe)return{type:"em",raw:ae.slice(0,Pe[0].length),text:ae.slice(1,Pe[0].length-1)}}},_e.codespan=function(ae){var ue=this.rules.inline.code.exec(ae);if(ue){var ce=ue[2].replace(/\n/g," "),me=/[^ ]/.test(ce),xe=ce.startsWith(" ")&&ce.endsWith(" ");return me&&xe&&(ce=ce.substring(1,ce.length-1)),ce=$(ce,!0),{type:"codespan",raw:ue[0],text:ce}}},_e.br=function(ae){var ue=this.rules.inline.br.exec(ae);if(ue)return{type:"br",raw:ue[0]}},_e.del=function(ae){var ue=this.rules.inline.del.exec(ae);if(ue)return{type:"del",raw:ue[0],text:ue[1]}},_e.autolink=function(ae,ue){var ce=this.rules.inline.autolink.exec(ae);if(ce){var me,xe;return ce[2]==="@"?(me=$(this.options.mangle?ue(ce[1]):ce[1]),xe="mailto:"+me):(me=$(ce[1]),xe=me),{type:"link",raw:ce[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.url=function(ae,ue){var ce;if(ce=this.rules.inline.url.exec(ae)){var me,xe;if(ce[2]==="@")me=$(this.options.mangle?ue(ce[0]):ce[0]),xe="mailto:"+me;else{var Pe;do Pe=ce[0],ce[0]=this.rules.inline._backpedal.exec(ce[0])[0];while(Pe!==ce[0]);me=$(ce[0]),ce[1]==="www."?xe="http://"+me:xe=me}return{type:"link",raw:ce[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.inlineText=function(ae,ue,ce){var me=this.rules.inline.text.exec(ae);if(me){var xe;return ue?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]:xe=$(this.options.smartypants?ce(me[0]):me[0]),{type:"text",raw:me[0],text:xe}}},Ae}(),Te=M.noopTest,Re=M.edit,Le=M.merge,de={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Te,table:Te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};de._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,de._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,de.def=Re(de.def).replace("label",de._label).replace("title",de._title).getRegex(),de.bullet=/(?:[*+-]|\d{1,9}[.)])/,de.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,de.item=Re(de.item,"gm").replace(/bull/g,de.bullet).getRegex(),de.list=Re(de.list).replace(/bull/g,de.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+de.def.source+")").getRegex(),de._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",de._comment=//,de.html=Re(de.html,"i").replace("comment",de._comment).replace("tag",de._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de.paragraph=Re(de._paragraph).replace("hr",de.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",")|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.blockquote=Re(de.blockquote).replace("paragraph",de.paragraph).getRegex(),de.normal=Le({},de),de.gfm=Le({},de.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*|$)"}),de.gfm.nptable=Re(de.gfm.nptable).replace("hr",de.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",")|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.gfm.table=Re(de.gfm.table).replace("hr",de.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",")|<(?:script|pre|style|!--)").replace("tag",de._tag).getRegex(),de.pedantic=Le({},de.normal,{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",de._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Te,paragraph:Re(de.normal._paragraph).replace("hr",de.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",de.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=Re(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=Re(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=Re(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=Re(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=Re(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=Re(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=Re(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=Re(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=Re(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=Re(he._blockSkip,"g").getRegex(),he.overlapSkip=Re(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._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])?)+(?![-_])/,he.autolink=Re(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=Re(he.tag).replace("comment",de._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=Re(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=Re(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=Re(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=Le({},he),he.pedantic=Le({},he.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:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=Le({},he.normal,{escape:Re(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ae="x"+ae.toString(16)),_e+="&#"+ae+";";return _e}var Ne=function(){function Ae(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||fe,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:oe.normal,inline:De.normal};this.options.pedantic?(ae.block=oe.pedantic,ae.inline=De.pedantic):this.options.gfm&&(ae.block=oe.gfm,this.options.breaks?ae.inline=De.breaks:ae.inline=De.gfm),this.tokenizer.rules=ae}Ae.lex=function(ae,ue){var ce=new Ae(ue);return ce.lex(ae)};var _e=Ae.prototype;return _e.lex=function(ae){return ae=ae.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(ae,this.tokens,!0),this.inline(this.tokens),this.tokens},_e.blockTokens=function(ae,ue,ce){ue===void 0&&(ue=[]),ce===void 0&&(ce=!0),ae=ae.replace(/^ +$/gm,"");for(var me,xe,Pe,He;ae;){if(me=this.tokenizer.space(ae)){ae=ae.substring(me.raw.length),me.type&&ue.push(me);continue}if(me=this.tokenizer.code(ae,ue)){ae=ae.substring(me.raw.length),me.type?ue.push(me):(He=ue[ue.length-1],He.raw+=` `+me.raw,He.text+=` -`+me.text);continue}if(me=this.tokenizer.fences(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.heading(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.nptable(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.hr(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.blockquote(ae)){ae=ae.substring(me.raw.length),me.tokens=this.blockTokens(me.text,[],de),ue.push(me);continue}if(me=this.tokenizer.list(ae)){for(ae=ae.substring(me.raw.length),Pe=me.items.length,xe=0;xe0)for(;(ze=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)ht.includes(ze[0].slice(ze[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ze=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(Pe=this.tokenizer.escape(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.tag(ae,de,me)){ae=ae.substring(Pe.raw.length),de=Pe.inLink,me=Pe.inRawBlock,ue.push(Pe);continue}if(Pe=this.tokenizer.link(ae)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.strong(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.em(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.codespan(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.br(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.del(ae)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.autolink(ae,Ce)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(!de&&(Pe=this.tokenizer.url(ae,Ce))){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ae,me,Fe)){ae=ae.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ue.push(Pe);continue}if(ae){var ot="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ue},J(Ae,null,[{key:"rules",get:function(){return{block:oe,inline:De}}}]),Ae}(),Be=K.defaults,le=M.cleanUrl,ve=M.escape,Se=function(){function Ae(we){this.options=we||Be}var _e=Ae.prototype;return _e.code=function(ae,ue,de){var me=(ue||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ae,me);xe!=null&&xe!==ae&&(de=!0,ae=xe)}return me?'
      '+(de?ae:ve(ae,!0))+`
      -`:"
      "+(de?ae:ve(ae,!0))+`
      +`+me.text);continue}if(ae){var ze="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return ue},_e.inline=function(ae){var ue,ce,me,xe,Pe,He,ze=ae.length;for(ue=0;ue0)for(;(ze=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)ht.includes(ze[0].slice(ze[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ze=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(Pe=this.tokenizer.escape(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.tag(ae,ce,me)){ae=ae.substring(Pe.raw.length),ce=Pe.inLink,me=Pe.inRawBlock,ue.push(Pe);continue}if(Pe=this.tokenizer.link(ae)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.strong(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.em(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.codespan(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.br(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.del(ae)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.autolink(ae,Ce)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(!ce&&(Pe=this.tokenizer.url(ae,Ce))){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ae,me,Fe)){ae=ae.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ue.push(Pe);continue}if(ae){var ot="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ue},J(Ae,null,[{key:"rules",get:function(){return{block:oe,inline:De}}}]),Ae}(),Be=K.defaults,le=M.cleanUrl,ve=M.escape,Se=function(){function Ae(we){this.options=we||Be}var _e=Ae.prototype;return _e.code=function(ae,ue,ce){var me=(ue||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ae,me);xe!=null&&xe!==ae&&(ce=!0,ae=xe)}return me?'
      '+(ce?ae:ve(ae,!0))+`
      +`:"
      "+(ce?ae:ve(ae,!0))+`
      `},_e.blockquote=function(ae){return`
      `+ae+`
      -`},_e.html=function(ae){return ae},_e.heading=function(ae,ue,de,me){return this.options.headerIds?"'+ae+" +`},_e.html=function(ae){return ae},_e.heading=function(ae,ue,ce,me){return this.options.headerIds?"'+ae+" `:""+ae+" `},_e.hr=function(){return this.options.xhtml?`
      `:`
      -`},_e.list=function(ae,ue,de){var me=ue?"ol":"ul",xe=ue&&de!==1?' start="'+de+'"':"";return"<"+me+xe+`> +`},_e.list=function(ae,ue,ce){var me=ue?"ol":"ul",xe=ue&&ce!==1?' start="'+ce+'"':"";return"<"+me+xe+`> `+ae+" `},_e.listitem=function(ae){return"
    • "+ae+`
    • `},_e.checkbox=function(ae){return" "},_e.paragraph=function(ae){return"

      "+ae+`

      @@ -291,24 +291,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+ue+` `},_e.tablerow=function(ae){return` `+ae+` -`},_e.tablecell=function(ae,ue){var de=ue.header?"th":"td",me=ue.align?"<"+de+' align="'+ue.align+'">':"<"+de+">";return me+ae+" -`},_e.strong=function(ae){return""+ae+""},_e.em=function(ae){return""+ae+""},_e.codespan=function(ae){return""+ae+""},_e.br=function(){return this.options.xhtml?"
      ":"
      "},_e.del=function(ae){return""+ae+""},_e.link=function(ae,ue,de){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return de;var me='",me},_e.image=function(ae,ue,de){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return de;var me=''+de+'":">",me},_e.text=function(ae){return ae},Ae}(),Ie=function(){function Ae(){}var _e=Ae.prototype;return _e.strong=function(ae){return ae},_e.em=function(ae){return ae},_e.codespan=function(ae){return ae},_e.del=function(ae){return ae},_e.html=function(ae){return ae},_e.text=function(ae){return ae},_e.link=function(ae,ue,de){return""+de},_e.image=function(ae,ue,de){return""+de},_e.br=function(){return""},Ae}(),We=function(){function Ae(){this.seen={}}var _e=Ae.prototype;return _e.slug=function(ae){var ue=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var de=ue;do this.seen[de]++,ue=de+"-"+this.seen[de];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Ae}(),Ve=K.defaults,Qe=M.unescape,Je=function(){function Ae(we){this.options=we||Ve,this.options.renderer=this.options.renderer||new Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie,this.slugger=new We}Ae.parse=function(ae,ue){var de=new Ae(ue);return de.parse(ae)};var _e=Ae.prototype;return _e.parse=function(ae,ue){ue===void 0&&(ue=!0);var de="",me,xe,Pe,He,ze,ht,ot,yt,ct,ft,Ot,It,qt,Zt,Dt,Cr,Kr,_t,Lr=ae.length;for(me=0;me0&&Dt.tokens[0].type==="text"?(Dt.tokens[0].text=_t+" "+Dt.tokens[0].text,Dt.tokens[0].tokens&&Dt.tokens[0].tokens.length>0&&Dt.tokens[0].tokens[0].type==="text"&&(Dt.tokens[0].tokens[0].text=_t+" "+Dt.tokens[0].tokens[0].text)):Dt.tokens.unshift({type:"text",text:_t}):Zt+=_t),Zt+=this.parse(Dt.tokens,qt),ct+=this.renderer.listitem(Zt,Kr,Cr);de+=this.renderer.list(ct,Ot,It);continue}case"html":{de+=this.renderer.html(ft.text);continue}case"paragraph":{de+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(ct=ft.tokens?this.parseInline(ft.tokens):ft.text;me+1An error occurred:

      "+at(Pe.message+"",!0)+"
      ";throw Pe}}je.options=je.setOptions=function(Ae){return st(je.defaults,Ae),dt(je.defaults),je},je.getDefaults=Ue,je.defaults=lt,je.use=function(Ae){var _e=st({},Ae);if(Ae.renderer&&function(){var ae=je.defaults.renderer||new Se,ue=function(xe){var Pe=ae[xe];ae[xe]=function(){for(var He=arguments.length,ze=new Array(He),ht=0;ht`,triples:"",explode:"[]{}"},P=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,l){l&&l!=ie.Init&&(u.removeKeyMap(j),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(j))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:J[f]}var j={Backspace:r,Enter:L};function U(u){for(var f=0;f=0;s--){var O=o[s].head;u.replaceRange("",P(O.line,O.ch-1),P(O.line,O.ch+1),"+delete")}}function L(u){var f=G(u),l=f&&X(f,"explode");if(!l||u.getOption("disableInput"))return ie.Pass;for(var o=u.listSelections(),s=0;s0;return{anchor:new P(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new P(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var l=G(u);if(!l||u.getOption("disableInput"))return ie.Pass;var o=X(l,"pairs"),s=o.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(l,"closeBefore"),O=X(l,"triples"),E=o.charAt(s+1)==f,w=u.listSelections(),D=s%2==0,R,A=0;A=0&&u.getRange(T,P(T.line,T.ch+3))==f+f+f?d="skipThree":d="skip";else if(E&&T.ch>1&&O.indexOf(f)>=0&&u.getRange(P(T.line,T.ch-2),T)==f+f){if(T.ch>2&&/\bstring/.test(u.getTokenTypeAt(P(T.line,T.ch-2))))return ie.Pass;d="addFour"}else if(E){var y=T.ch==0?" ":u.getRange(P(T.line,T.ch-1),T);if(!ie.isWordChar(S)&&y!=f&&!ie.isWordChar(y))d="both";else return ie.Pass}else if(D&&(S.length===0||/\s/.test(S)||a.indexOf(S)>-1))d="both";else return ie.Pass;if(!R)R=d;else if(R!=d)return ie.Pass}var b=s%2?o.charAt(s-1):f,B=s%2?f:o.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)u.execCommand("goCharRight");else if(R=="surround"){for(var _=u.getSelections(),F=0;F<_.length;F++)_[F]=b+_[F]+B;u.replaceSelections(_,"around"),_=u.listSelections().slice();for(var F=0;F<_.length;F++)_[F]=v(_[F]);u.setSelections(_)}else R=="both"?(u.replaceSelection(b+B,null),u.triggerElectric(b+B),u.execCommand("goCharLeft")):R=="addFour"&&(u.replaceSelection(b+b+b+b,"before"),u.execCommand("goCharRight"))})}function p(u,f){var l=u.getRange(P(f.line,f.ch-1),P(f.line,f.ch+1));return l.length==2?l:null}function h(u,f){var l=u.getTokenAt(P(f.line,f.ch+1));return/\bstring/.test(l.type)&&l.start==f.ch&&(f.ch==0||!/\bstring/.test(u.getTokenTypeAt(f)))}})},FWmy:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});function ie(J,P){if(!J)throw new Error(P?`Assertion failed (${P})`:"Assertion Failed")}},GfqC:function(rt,be,Z){"use strict";var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P);function j(M,I){var g="cannot "+M.method+" "+M.action+" "+I.status+"'",H=new Error(g);return H.status=I.status,H.method=M.method,H.url=M.action,H}function U(M){var I=M.responseText||M.response;if(!I)return I;try{return JSON.parse(I)}catch(g){return I}}function K(M){var I=new XMLHttpRequest;M.onProgress&&I.upload&&(I.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),M.onProgress(ne)});var g=new FormData;M.data&&Object.keys(M.data).forEach(function($){var ne=M.data[$];if(Array.isArray(ne)){ne.forEach(function(se){g.append($+"[]",se)});return}g.append($,M.data[$])}),M.file instanceof Blob?g.append(M.filename,M.file,M.file.name):g.append(M.filename,M.file),I.onerror=function(ne){M.onError(ne)},I.onload=function(){return I.status<200||I.status>=300?M.onError(j(M,I),U(I)):M.onSuccess(U(I),I)},I.open(M.method,M.action,!0),M.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var H=M.headers||{};return H["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function($){H[$]!==null&&I.setRequestHeader($,H[$])}),I.send(g),{abort:function(){I.abort()}}}var G=+new Date,r=0;function L(){return"rc-upload-"+G+"-"+ ++r}function v(M,I){return M.indexOf(I,M.length-I.length)!==-1}var m=function(M,I){if(M&&I){var g=Array.isArray(I)?I:I.split(","),H=M.name||"",$=M.type||"",ne=$.replace(/\/.*$/,"");return g.some(function(se){var Oe=se.trim();return Oe.charAt(0)==="."?v(H.toLowerCase(),Oe.toLowerCase()):/\/\*$/.test(Oe)?ne===Oe.replace(/\/.*$/,""):$===Oe})}return!0};function p(M,I){var g=M.createReader(),H=[];function $(){g.readEntries(function(ne){var se=Array.prototype.slice.apply(ne);H=H.concat(se);var Oe=!se.length;Oe?I(H):$()})}$()}var h=function(I,g,H){var $=function ne(se,Oe){Oe=Oe||"",se.isFile?se.file(function(ge){H(ge)&&(se.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),g([ge]))}):se.isDirectory&&p(se,function(ge){ge.forEach(function(Te){ne(Te,""+Oe+se.name+"/")})})};I.forEach(function(ne){$(ne.webkitGetAsEntry())})},u=h,f=Object.assign||function(M){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(M,H))continue;g[H]=M[H]}return g}function O(M,I){if(!(M instanceof I))throw new TypeError("Cannot call a class as a function")}function E(M,I){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:M}function w(M,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);M.prototype=Object.create(I&&I.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(M,I):M.__proto__=I)}var D=function(I){return Object.keys(I).reduce(function(g,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(g[H]=I[H]),g},{})},R=function(M){w(I,M);function I(){var g,H,$,ne;O(this,I);for(var se=arguments.length,Oe=Array(se),ge=0;gea.length&&(E=a.length);Ow===D){const w=a[Symbol.iterator](),D=O[Symbol.iterator]();for(;;){const R=w.next(),A=D.next();if(R.done!==A.done)return!1;if(R.done)return!0;if(!E(R.value,A.value))return!1}}J.equals=s})(ie||(ie={}))},LdHM:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return a}),Z.d(be,"a",function(){return E});var ie=Z("1OyB"),J=Z("vuIU"),P=Z("Ji7U"),X=Z("LK+K"),j=Z("q1tI"),U=Z("rePB"),K=Z("Ff2n"),G=Z("ODXe"),r=Z("4IlW"),L=Z("bX4T"),v=Z("YrtM"),m=Z("TSYQ"),p=Z.n(m),h=Z("+nKL"),u=Z("8OUc"),f=function(H,$){var ne=H.prefixCls,se=H.id,Oe=H.flattenOptions,ge=H.childrenAsData,Te=H.values,Re=H.searchValue,Le=H.multiple,ce=H.defaultActiveFirstOption,he=H.height,re=H.itemHeight,fe=H.notFoundContent,oe=H.open,De=H.menuItemSelectedIcon,Fe=H.virtual,Ce=H.onSelect,Ne=H.onToggleOpen,Be=H.onActiveValue,le=H.onScroll,ve=H.onMouseEnter,Se="".concat(ne,"-item"),Ie=Object(v.a)(function(){return Oe},[oe,Oe],function(Ge,Ae){return Ae[0]&&Ge[1]!==Ae[1]}),We=j.useRef(null),Ve=function(Ae){Ae.preventDefault()},Qe=function(Ae){We.current&&We.current.scrollTo({index:Ae})},Je=function(Ae){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=Ie.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(g).map(function($,ne){if(!j.isValidElement($)||!$.type)return null;var se=$.type.isSelectOptGroup,Oe=$.key,ge=$.props,Te=ge.children,Re=Object(K.a)(ge,["children"]);return H||!se?R($):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(Oe===null?ne:Oe,"__"),label:Oe},Re),{},{options:A(Te)})}).filter(function($){return $})}var C=Z("2Qr1"),T=Z("qNPg"),d=Z("U8pU"),S=Z("Kwbf"),y=Z("WKfj");function b(g){var H=g.mode,$=g.options,ne=g.children,se=g.backfill,Oe=g.allowClear,ge=g.placeholder,Te=g.getInputElement,Re=g.showSearch,Le=g.onSearch,ce=g.defaultOpen,he=g.autoFocus,re=g.labelInValue,fe=g.value,oe=g.inputValue,De=g.optionLabelProp,Fe=H==="multiple"||H==="tags",Ce=Re!==void 0?Re:Fe||H==="combobox",Ne=$||A(ne);if(Object(S.a)(H!=="tags"||Ne.every(function(Se){return!Se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Be=Ne.some(function(Se){return Se.options?Se.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Se?Se.value:Se.key)=="number"});Object(S.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(H!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(H==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(S.a)(H==="combobox"||!Te,"`getInputElement` only work with `combobox` mode."),Object(S.b)(H!=="combobox"||!Te||!Oe||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ce&&H!=="combobox"&&H!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!ce||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fe!=null){var le=Object(y.d)(fe);Object(S.a)(!re||le.every(function(Se){return Object(d.a)(Se)==="object"&&("key"in Se||"value"in Se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Fe||Array.isArray(fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ne){var ve=null;Object(D.a)(ne).some(function(Se){if(!j.isValidElement(Se)||!Se.type)return!1;var Ie=Se.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var We=Object(D.a)(Se.props.children).every(function(Ve){return!j.isValidElement(Ve)||!Se.type||Ve.type.isSelectOption?!0:(ve=Ve.type,!1)});return!We}return ve=Ie,!0}),ve&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(S.a)(oe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var B=b,F=Object(T.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:A,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:B,fillOptionsWithMissingValue:C.a}),_=function(g){Object(P.a)($,g);var H=Object(X.a)($);function $(){var ne;return Object(ie.a)(this,$),ne=H.apply(this,arguments),ne.selectRef=j.createRef(),ne.focus=function(){ne.selectRef.current.focus()},ne.blur=function(){ne.selectRef.current.blur()},ne}return Object(J.a)($,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),$}(j.Component);_.Option=a,_.OptGroup=E;var M=_,I=be.c=M},M8RZ:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return r});var ie=Z("fWQN"),J=Z("mtLc"),P=Z("yKVA"),X=Z("879j"),j=Z("q1tI"),U=Z.n(j),K=Z("i8i4"),G=Z.n(K),r=function(L){Object(P.a)(m,L);var v=Object(X.a)(m);function m(p){var h;Object(ie.a)(this,m),h=v.call(this,p);var u=window.document;return h.node=u.createElement("div"),u.body.appendChild(h.node),h}return Object(J.a)(m,[{key:"render",value:function(){var h=this.props.children;return Object(K.createPortal)(h,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return r}),Z.d(be,"e",function(){return L}),Z.d(be,"a",function(){return v}),Z.d(be,"d",function(){return m}),Z.d(be,"f",function(){return p});var ie=Z("/cxE"),J=Z("pmY6"),P=Z("24hK"),X=Z("5Y4S"),j;(function(h){h.None=()=>J.a.None;function u(b){return(B,F=null,_)=>{let M=!1,I;return I=b(g=>M?void 0:(I?I.dispose():M=!0,B.call(F,g)),null,_),M&&I.dispose(),I}}h.once=u;function f(b,B){return E((F,_=null,M)=>b(I=>F.call(_,B(I)),null,M))}h.map=f;function l(b,B){return E((F,_=null,M)=>b(I=>{B(I),F.call(_,I)},null,M))}h.forEach=l;function o(b,B){return E((F,_=null,M)=>b(I=>B(I)&&F.call(_,I),null,M))}h.filter=o;function s(b){return b}h.signal=s;function a(...b){return(B,F=null,_)=>Object(J.e)(...b.map(M=>M(I=>B.call(F,I),null,_)))}h.any=a;function O(b,B,F){let _=F;return f(b,M=>(_=B(_,M),_))}h.reduce=O;function E(b){let B;const F=new r({onFirstListenerAdd(){B=b(F.fire,F)},onLastListenerRemove(){B.dispose()}});return F.event}function w(b,B,F=100,_=!1,M){let I,g,H,$=0;const ne=new r({leakWarningThreshold:M,onFirstListenerAdd(){I=b(se=>{$++,g=B(g,se),_&&!H&&(ne.fire(g),g=void 0),clearTimeout(H),H=setTimeout(()=>{const Oe=g;g=void 0,H=void 0,(!_||$>1)&&ne.fire(Oe),$=0},F)})},onLastListenerRemove(){I.dispose()}});return ne.event}h.debounce=w;function D(b,B=(F,_)=>F===_){let F=!0,_;return o(b,M=>{const I=F||!B(M,_);return F=!1,_=M,I})}h.latch=D;function R(b,B){return[h.filter(b,B),h.filter(b,F=>!B(F))]}h.split=R;function A(b,B=!1,F=[]){let _=F.slice(),M=b(H=>{_?_.push(H):g.fire(H)});const I=()=>{_&&_.forEach(H=>g.fire(H)),_=null},g=new r({onFirstListenerAdd(){M||(M=b(H=>g.fire(H)))},onFirstListenerDidAdd(){_&&(B?setTimeout(I):I())},onLastListenerRemove(){M&&M.dispose(),M=null}});return g.event}h.buffer=A;class C{constructor(b){this.event=b}map(b){return new C(f(this.event,b))}forEach(b){return new C(l(this.event,b))}filter(b){return new C(o(this.event,b))}reduce(b,B){return new C(O(this.event,b,B))}latch(){return new C(D(this.event))}debounce(b,B=100,F=!1,_){return new C(w(this.event,b,B,F,_))}on(b,B,F){return this.event(b,B,F)}once(b,B,F){return u(this.event)(b,B,F)}}function T(b){return new C(b)}h.chain=T;function d(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.on(B,_),I=()=>b.removeListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromNodeEventEmitter=d;function S(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.addEventListener(B,_),I=()=>b.removeEventListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromDOMEventEmitter=S;function y(b){return new Promise(B=>u(b)(B))}h.toPromise=y})(j||(j={}));class U{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${U._idPool++}`}start(h){this._stopWatch=new X.a(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let K=-1;class G{constructor(h,u=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let u=K;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||h':"<"+ce+">";return me+ae+" +`},_e.strong=function(ae){return""+ae+""},_e.em=function(ae){return""+ae+""},_e.codespan=function(ae){return""+ae+""},_e.br=function(){return this.options.xhtml?"
      ":"
      "},_e.del=function(ae){return""+ae+""},_e.link=function(ae,ue,ce){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return ce;var me='
      ",me},_e.image=function(ae,ue,ce){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return ce;var me=''+ce+'":">",me},_e.text=function(ae){return ae},Ae}(),Ie=function(){function Ae(){}var _e=Ae.prototype;return _e.strong=function(ae){return ae},_e.em=function(ae){return ae},_e.codespan=function(ae){return ae},_e.del=function(ae){return ae},_e.html=function(ae){return ae},_e.text=function(ae){return ae},_e.link=function(ae,ue,ce){return""+ce},_e.image=function(ae,ue,ce){return""+ce},_e.br=function(){return""},Ae}(),We=function(){function Ae(){this.seen={}}var _e=Ae.prototype;return _e.slug=function(ae){var ue=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var ce=ue;do this.seen[ce]++,ue=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Ae}(),Ve=K.defaults,Qe=M.unescape,Je=function(){function Ae(we){this.options=we||Ve,this.options.renderer=this.options.renderer||new Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie,this.slugger=new We}Ae.parse=function(ae,ue){var ce=new Ae(ue);return ce.parse(ae)};var _e=Ae.prototype;return _e.parse=function(ae,ue){ue===void 0&&(ue=!0);var ce="",me,xe,Pe,He,ze,ht,ot,yt,dt,ft,Ot,It,qt,Zt,Dt,Cr,Kr,_t,Lr=ae.length;for(me=0;me0&&Dt.tokens[0].type==="text"?(Dt.tokens[0].text=_t+" "+Dt.tokens[0].text,Dt.tokens[0].tokens&&Dt.tokens[0].tokens.length>0&&Dt.tokens[0].tokens[0].type==="text"&&(Dt.tokens[0].tokens[0].text=_t+" "+Dt.tokens[0].tokens[0].text)):Dt.tokens.unshift({type:"text",text:_t}):Zt+=_t),Zt+=this.parse(Dt.tokens,qt),dt+=this.renderer.listitem(Zt,Kr,Cr);ce+=this.renderer.list(dt,Ot,It);continue}case"html":{ce+=this.renderer.html(ft.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(dt=ft.tokens?this.parseInline(ft.tokens):ft.text;me+1An error occurred:

      "+at(Pe.message+"",!0)+"
      ";throw Pe}}je.options=je.setOptions=function(Ae){return st(je.defaults,Ae),ct(je.defaults),je},je.getDefaults=Ue,je.defaults=lt,je.use=function(Ae){var _e=st({},Ae);if(Ae.renderer&&function(){var ae=je.defaults.renderer||new Se,ue=function(xe){var Pe=ae[xe];ae[xe]=function(){for(var He=arguments.length,ze=new Array(He),ht=0;ht`,triples:"",explode:"[]{}"},P=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,l){l&&l!=ie.Init&&(u.removeKeyMap(j),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(j))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:J[f]}var j={Backspace:r,Enter:L};function U(u){for(var f=0;f=0;s--){var O=o[s].head;u.replaceRange("",P(O.line,O.ch-1),P(O.line,O.ch+1),"+delete")}}function L(u){var f=G(u),l=f&&X(f,"explode");if(!l||u.getOption("disableInput"))return ie.Pass;for(var o=u.listSelections(),s=0;s0;return{anchor:new P(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new P(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var l=G(u);if(!l||u.getOption("disableInput"))return ie.Pass;var o=X(l,"pairs"),s=o.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(l,"closeBefore"),O=X(l,"triples"),E=o.charAt(s+1)==f,w=u.listSelections(),D=s%2==0,R,A=0;A=0&&u.getRange(T,P(T.line,T.ch+3))==f+f+f?c="skipThree":c="skip";else if(E&&T.ch>1&&O.indexOf(f)>=0&&u.getRange(P(T.line,T.ch-2),T)==f+f){if(T.ch>2&&/\bstring/.test(u.getTokenTypeAt(P(T.line,T.ch-2))))return ie.Pass;c="addFour"}else if(E){var y=T.ch==0?" ":u.getRange(P(T.line,T.ch-1),T);if(!ie.isWordChar(S)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(D&&(S.length===0||/\s/.test(S)||a.indexOf(S)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var b=s%2?o.charAt(s-1):f,B=s%2?f:o.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)u.execCommand("goCharRight");else if(R=="surround"){for(var _=u.getSelections(),F=0;F<_.length;F++)_[F]=b+_[F]+B;u.replaceSelections(_,"around"),_=u.listSelections().slice();for(var F=0;F<_.length;F++)_[F]=v(_[F]);u.setSelections(_)}else R=="both"?(u.replaceSelection(b+B,null),u.triggerElectric(b+B),u.execCommand("goCharLeft")):R=="addFour"&&(u.replaceSelection(b+b+b+b,"before"),u.execCommand("goCharRight"))})}function p(u,f){var l=u.getRange(P(f.line,f.ch-1),P(f.line,f.ch+1));return l.length==2?l:null}function h(u,f){var l=u.getTokenAt(P(f.line,f.ch+1));return/\bstring/.test(l.type)&&l.start==f.ch&&(f.ch==0||!/\bstring/.test(u.getTokenTypeAt(f)))}})},FWmy:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});function ie(J,P){if(!J)throw new Error(P?`Assertion failed (${P})`:"Assertion Failed")}},GfqC:function(rt,be,Z){"use strict";var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P);function j(M,I){var g="cannot "+M.method+" "+M.action+" "+I.status+"'",H=new Error(g);return H.status=I.status,H.method=M.method,H.url=M.action,H}function U(M){var I=M.responseText||M.response;if(!I)return I;try{return JSON.parse(I)}catch(g){return I}}function K(M){var I=new XMLHttpRequest;M.onProgress&&I.upload&&(I.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),M.onProgress(ne)});var g=new FormData;M.data&&Object.keys(M.data).forEach(function($){var ne=M.data[$];if(Array.isArray(ne)){ne.forEach(function(se){g.append($+"[]",se)});return}g.append($,M.data[$])}),M.file instanceof Blob?g.append(M.filename,M.file,M.file.name):g.append(M.filename,M.file),I.onerror=function(ne){M.onError(ne)},I.onload=function(){return I.status<200||I.status>=300?M.onError(j(M,I),U(I)):M.onSuccess(U(I),I)},I.open(M.method,M.action,!0),M.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var H=M.headers||{};return H["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function($){H[$]!==null&&I.setRequestHeader($,H[$])}),I.send(g),{abort:function(){I.abort()}}}var G=+new Date,r=0;function L(){return"rc-upload-"+G+"-"+ ++r}function v(M,I){return M.indexOf(I,M.length-I.length)!==-1}var m=function(M,I){if(M&&I){var g=Array.isArray(I)?I:I.split(","),H=M.name||"",$=M.type||"",ne=$.replace(/\/.*$/,"");return g.some(function(se){var Oe=se.trim();return Oe.charAt(0)==="."?v(H.toLowerCase(),Oe.toLowerCase()):/\/\*$/.test(Oe)?ne===Oe.replace(/\/.*$/,""):$===Oe})}return!0};function p(M,I){var g=M.createReader(),H=[];function $(){g.readEntries(function(ne){var se=Array.prototype.slice.apply(ne);H=H.concat(se);var Oe=!se.length;Oe?I(H):$()})}$()}var h=function(I,g,H){var $=function ne(se,Oe){Oe=Oe||"",se.isFile?se.file(function(ge){H(ge)&&(se.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),g([ge]))}):se.isDirectory&&p(se,function(ge){ge.forEach(function(Te){ne(Te,""+Oe+se.name+"/")})})};I.forEach(function(ne){$(ne.webkitGetAsEntry())})},u=h,f=Object.assign||function(M){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(M,H))continue;g[H]=M[H]}return g}function O(M,I){if(!(M instanceof I))throw new TypeError("Cannot call a class as a function")}function E(M,I){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:M}function w(M,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);M.prototype=Object.create(I&&I.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(M,I):M.__proto__=I)}var D=function(I){return Object.keys(I).reduce(function(g,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(g[H]=I[H]),g},{})},R=function(M){w(I,M);function I(){var g,H,$,ne;O(this,I);for(var se=arguments.length,Oe=Array(se),ge=0;gea.length&&(E=a.length);Ow===D){const w=a[Symbol.iterator](),D=O[Symbol.iterator]();for(;;){const R=w.next(),A=D.next();if(R.done!==A.done)return!1;if(R.done)return!0;if(!E(R.value,A.value))return!1}}J.equals=s})(ie||(ie={}))},LdHM:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return a}),Z.d(be,"a",function(){return E});var ie=Z("1OyB"),J=Z("vuIU"),P=Z("Ji7U"),X=Z("LK+K"),j=Z("q1tI"),U=Z("rePB"),K=Z("Ff2n"),G=Z("ODXe"),r=Z("4IlW"),L=Z("bX4T"),v=Z("YrtM"),m=Z("TSYQ"),p=Z.n(m),h=Z("+nKL"),u=Z("8OUc"),f=function(H,$){var ne=H.prefixCls,se=H.id,Oe=H.flattenOptions,ge=H.childrenAsData,Te=H.values,Re=H.searchValue,Le=H.multiple,de=H.defaultActiveFirstOption,he=H.height,re=H.itemHeight,fe=H.notFoundContent,oe=H.open,De=H.menuItemSelectedIcon,Fe=H.virtual,Ce=H.onSelect,Ne=H.onToggleOpen,Be=H.onActiveValue,le=H.onScroll,ve=H.onMouseEnter,Se="".concat(ne,"-item"),Ie=Object(v.a)(function(){return Oe},[oe,Oe],function(Ge,Ae){return Ae[0]&&Ge[1]!==Ae[1]}),We=j.useRef(null),Ve=function(Ae){Ae.preventDefault()},Qe=function(Ae){We.current&&We.current.scrollTo({index:Ae})},Je=function(Ae){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=Ie.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(g).map(function($,ne){if(!j.isValidElement($)||!$.type)return null;var se=$.type.isSelectOptGroup,Oe=$.key,ge=$.props,Te=ge.children,Re=Object(K.a)(ge,["children"]);return H||!se?R($):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(Oe===null?ne:Oe,"__"),label:Oe},Re),{},{options:A(Te)})}).filter(function($){return $})}var C=Z("2Qr1"),T=Z("qNPg"),c=Z("U8pU"),S=Z("Kwbf"),y=Z("WKfj");function b(g){var H=g.mode,$=g.options,ne=g.children,se=g.backfill,Oe=g.allowClear,ge=g.placeholder,Te=g.getInputElement,Re=g.showSearch,Le=g.onSearch,de=g.defaultOpen,he=g.autoFocus,re=g.labelInValue,fe=g.value,oe=g.inputValue,De=g.optionLabelProp,Fe=H==="multiple"||H==="tags",Ce=Re!==void 0?Re:Fe||H==="combobox",Ne=$||A(ne);if(Object(S.a)(H!=="tags"||Ne.every(function(Se){return!Se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Be=Ne.some(function(Se){return Se.options?Se.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Se?Se.value:Se.key)=="number"});Object(S.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(H!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(H==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(S.a)(H==="combobox"||!Te,"`getInputElement` only work with `combobox` mode."),Object(S.b)(H!=="combobox"||!Te||!Oe||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ce&&H!=="combobox"&&H!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!de||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fe!=null){var le=Object(y.d)(fe);Object(S.a)(!re||le.every(function(Se){return Object(c.a)(Se)==="object"&&("key"in Se||"value"in Se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Fe||Array.isArray(fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ne){var ve=null;Object(D.a)(ne).some(function(Se){if(!j.isValidElement(Se)||!Se.type)return!1;var Ie=Se.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var We=Object(D.a)(Se.props.children).every(function(Ve){return!j.isValidElement(Ve)||!Se.type||Ve.type.isSelectOption?!0:(ve=Ve.type,!1)});return!We}return ve=Ie,!0}),ve&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(S.a)(oe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var B=b,F=Object(T.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:A,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:B,fillOptionsWithMissingValue:C.a}),_=function(g){Object(P.a)($,g);var H=Object(X.a)($);function $(){var ne;return Object(ie.a)(this,$),ne=H.apply(this,arguments),ne.selectRef=j.createRef(),ne.focus=function(){ne.selectRef.current.focus()},ne.blur=function(){ne.selectRef.current.blur()},ne}return Object(J.a)($,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),$}(j.Component);_.Option=a,_.OptGroup=E;var M=_,I=be.c=M},M8RZ:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return r});var ie=Z("fWQN"),J=Z("mtLc"),P=Z("yKVA"),X=Z("879j"),j=Z("q1tI"),U=Z.n(j),K=Z("i8i4"),G=Z.n(K),r=function(L){Object(P.a)(m,L);var v=Object(X.a)(m);function m(p){var h;Object(ie.a)(this,m),h=v.call(this,p);var u=window.document;return h.node=u.createElement("div"),u.body.appendChild(h.node),h}return Object(J.a)(m,[{key:"render",value:function(){var h=this.props.children;return Object(K.createPortal)(h,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return r}),Z.d(be,"e",function(){return L}),Z.d(be,"a",function(){return v}),Z.d(be,"d",function(){return m}),Z.d(be,"f",function(){return p});var ie=Z("/cxE"),J=Z("pmY6"),P=Z("24hK"),X=Z("5Y4S"),j;(function(h){h.None=()=>J.a.None;function u(b){return(B,F=null,_)=>{let M=!1,I;return I=b(g=>M?void 0:(I?I.dispose():M=!0,B.call(F,g)),null,_),M&&I.dispose(),I}}h.once=u;function f(b,B){return E((F,_=null,M)=>b(I=>F.call(_,B(I)),null,M))}h.map=f;function l(b,B){return E((F,_=null,M)=>b(I=>{B(I),F.call(_,I)},null,M))}h.forEach=l;function o(b,B){return E((F,_=null,M)=>b(I=>B(I)&&F.call(_,I),null,M))}h.filter=o;function s(b){return b}h.signal=s;function a(...b){return(B,F=null,_)=>Object(J.e)(...b.map(M=>M(I=>B.call(F,I),null,_)))}h.any=a;function O(b,B,F){let _=F;return f(b,M=>(_=B(_,M),_))}h.reduce=O;function E(b){let B;const F=new r({onFirstListenerAdd(){B=b(F.fire,F)},onLastListenerRemove(){B.dispose()}});return F.event}function w(b,B,F=100,_=!1,M){let I,g,H,$=0;const ne=new r({leakWarningThreshold:M,onFirstListenerAdd(){I=b(se=>{$++,g=B(g,se),_&&!H&&(ne.fire(g),g=void 0),clearTimeout(H),H=setTimeout(()=>{const Oe=g;g=void 0,H=void 0,(!_||$>1)&&ne.fire(Oe),$=0},F)})},onLastListenerRemove(){I.dispose()}});return ne.event}h.debounce=w;function D(b,B=(F,_)=>F===_){let F=!0,_;return o(b,M=>{const I=F||!B(M,_);return F=!1,_=M,I})}h.latch=D;function R(b,B){return[h.filter(b,B),h.filter(b,F=>!B(F))]}h.split=R;function A(b,B=!1,F=[]){let _=F.slice(),M=b(H=>{_?_.push(H):g.fire(H)});const I=()=>{_&&_.forEach(H=>g.fire(H)),_=null},g=new r({onFirstListenerAdd(){M||(M=b(H=>g.fire(H)))},onFirstListenerDidAdd(){_&&(B?setTimeout(I):I())},onLastListenerRemove(){M&&M.dispose(),M=null}});return g.event}h.buffer=A;class C{constructor(b){this.event=b}map(b){return new C(f(this.event,b))}forEach(b){return new C(l(this.event,b))}filter(b){return new C(o(this.event,b))}reduce(b,B){return new C(O(this.event,b,B))}latch(){return new C(D(this.event))}debounce(b,B=100,F=!1,_){return new C(w(this.event,b,B,F,_))}on(b,B,F){return this.event(b,B,F)}once(b,B,F){return u(this.event)(b,B,F)}}function T(b){return new C(b)}h.chain=T;function c(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.on(B,_),I=()=>b.removeListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromNodeEventEmitter=c;function S(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.addEventListener(B,_),I=()=>b.removeEventListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromDOMEventEmitter=S;function y(b){return new Promise(B=>u(b)(B))}h.toPromise=y})(j||(j={}));class U{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${U._idPool++}`}start(h){this._stopWatch=new X.a(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let K=-1;class G{constructor(h,u=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let u=K;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||h{const o=this._stacks.get(f)||0;this._stacks.set(f,o-1)}}}class r{constructor(h){var u;this._disposed=!1,this._options=h,this._leakageMon=K>0?new G(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(h,u,f)=>{var l;this._listeners||(this._listeners=new P.a);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[h,u]:h);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,u);const a=(l=this._leakageMon)===null||l===void 0?void 0:l.check(this._listeners.size),O=Object(J.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return f instanceof J.b?f.add(O):Array.isArray(f)&&f.push(O),O}),this._event}fire(h){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(let l of this._listeners)this._deliveryQueue.push([l,h]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[l,o]=this._deliveryQueue.shift();try{typeof l=="function"?l.call(void 0,o):l[0].call(l[1],o)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var h,u,f,l,o;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(l=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||l===void 0||l.call(f),(o=this._leakageMon)===null||o===void 0||o.dispose())}}class L extends r{constructor(h){super(h);this._isPaused=0,this._eventQueue=new P.a,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}class v extends L{constructor(h){var u;super(h);this._delay=(u=h.delay)!==null&&u!==void 0?u:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}class m{constructor(){this.buffers=[]}wrapEvent(h){return(u,f,l)=>h(o=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,o)):u.call(f,o)},void 0,l)}bufferEvents(h){const u=[];this.buffers.push(u);const f=h();return this.buffers.pop(),u.forEach(l=>l()),f}}class p{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=J.a.None,this.emitter=new r({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(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(rt,be,Z){"use strict";(function(ie,J){Z.d(be,"b",function(){return f}),Z.d(be,"i",function(){return a}),Z.d(be,"f",function(){return O}),Z.d(be,"d",function(){return E}),Z.d(be,"g",function(){return w}),Z.d(be,"h",function(){return D}),Z.d(be,"c",function(){return R}),Z.d(be,"k",function(){return A}),Z.d(be,"j",function(){return C}),Z.d(be,"a",function(){return T}),Z.d(be,"e",function(){return y});var P;const X="en";let j=!1,U=!1,K=!1,G=!1,r=!1,L=!1,v=!1,m,p=X,h,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let l;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?l=f.vscode.process:typeof J!="undefined"&&(l=J);const o=typeof((P=l==null?void 0:l.versions)===null||P===void 0?void 0:P.electron)=="string"&&l.type==="renderer";if(typeof navigator=="object"&&!o)u=navigator.userAgent,j=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,v=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=u.indexOf("Linux")>=0,L=!0,m=navigator.language,p=m;else if(typeof l=="object"){j=l.platform==="win32",U=l.platform==="darwin",K=l.platform==="linux",G=K&&!!l.env.SNAP&&!!l.env.SNAP_REVISION,m=X,p=X;const b=l.env.VSCODE_NLS_CONFIG;if(b)try{const B=JSON.parse(b),F=B.availableLanguages["*"];m=B.locale,p=F||X,h=B._translationsConfigFile}catch(B){}r=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:j?s=3:K&&(s=2);const a=j,O=U,E=K,w=r,D=L,R=v,A=u,C=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let I=0,g=F.length;I{const I=++_;F.push({id:I,callback:M}),f.postMessage({vscodeSetImmediateId:I},"*")}}if(typeof(l==null?void 0:l.nextTick)=="function")return l.nextTick.bind(l);const B=Promise.resolve();return F=>B.then(F)}(),T=U||v?2:j?1:3;let d=!0,S=!1;function y(){if(!S){S=!0;const b=new Uint8Array(2);b[0]=1,b[1]=2;const B=new Uint16Array(b.buffer);d=B[0]===(2<<8)+1}return d}}).call(this,Z("IyRk"),Z("Q2Ig"))},N0LK:function(rt,be,Z){"use strict";Z.d(be,"C",function(){return ie}),Z.d(be,"v",function(){return P}),Z.d(be,"s",function(){return X}),Z.d(be,"t",function(){return j}),Z.d(be,"U",function(){return U}),Z.d(be,"J",function(){return K}),Z.d(be,"O",function(){return G}),Z.d(be,"p",function(){return r}),Z.d(be,"T",function(){return L}),Z.d(be,"q",function(){return v}),Z.d(be,"N",function(){return m}),Z.d(be,"M",function(){return p}),Z.d(be,"Q",function(){return h}),Z.d(be,"u",function(){return u}),Z.d(be,"x",function(){return f}),Z.d(be,"I",function(){return l}),Z.d(be,"f",function(){return o}),Z.d(be,"h",function(){return s}),Z.d(be,"g",function(){return a}),Z.d(be,"i",function(){return O}),Z.d(be,"G",function(){return E}),Z.d(be,"H",function(){return w}),Z.d(be,"r",function(){return D}),Z.d(be,"R",function(){return R}),Z.d(be,"d",function(){return A}),Z.d(be,"e",function(){return C}),Z.d(be,"E",function(){return T}),Z.d(be,"F",function(){return d}),Z.d(be,"j",function(){return S}),Z.d(be,"z",function(){return y}),Z.d(be,"K",function(){return B}),Z.d(be,"L",function(){return F}),Z.d(be,"m",function(){return M}),Z.d(be,"k",function(){return g}),Z.d(be,"A",function(){return $}),Z.d(be,"a",function(){return ne}),Z.d(be,"n",function(){return se}),Z.d(be,"l",function(){return Oe}),Z.d(be,"D",function(){return ge}),Z.d(be,"B",function(){return Te}),Z.d(be,"b",function(){return Re}),Z.d(be,"S",function(){return Le}),Z.d(be,"o",function(){return ce}),Z.d(be,"P",function(){return he}),Z.d(be,"w",function(){return re}),Z.d(be,"c",function(){return fe}),Z.d(be,"y",function(){return Fe});function ie(le){return!le||typeof le!="string"?!0:le.trim().length===0}const J=/{(\d+)}/g;function P(le,...ve){return ve.length===0?le:le.replace(J,function(Se,Ie){const We=parseInt(Ie,10);return isNaN(We)||We<0||We>=ve.length?Se:ve[We]})}function X(le){return le.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function j(le){return le.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(le,ve=" "){const Se=K(le,ve);return G(Se,ve)}function K(le,ve){if(!le||!ve)return le;const Se=ve.length;if(Se===0||le.length===0)return le;let Ie=0;for(;le.indexOf(ve,Ie)===Ie;)Ie=Ie+Se;return le.substring(Ie)}function G(le,ve){if(!le||!ve)return le;const Se=ve.length,Ie=le.length;if(Se===0||Ie===0)return le;let We=Ie,Ve=-1;for(;!(Ve=le.lastIndexOf(ve,We-1),Ve===-1||Ve+Se!==We);){if(Ve===0)return"";We=Ve}return le.substring(0,We)}function r(le){return le.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function L(le){return le.replace(/\*/g,"")}function v(le,ve,Se={}){if(!le)throw new Error("Cannot create regex from empty string");ve||(le=j(le)),Se.wholeWord&&(/\B/.test(le.charAt(0))||(le="\\b"+le),/\B/.test(le.charAt(le.length-1))||(le=le+"\\b"));let Ie="";return Se.global&&(Ie+="g"),Se.matchCase||(Ie+="i"),Se.multiline&&(Ie+="m"),Se.unicode&&(Ie+="u"),new RegExp(le,Ie)}function m(le){if(le.source==="^"||le.source==="^$"||le.source==="$"||le.source==="^\\s*$")return!1;const ve=le.exec("");return!!(ve&&le.lastIndex===0)}function p(le){return(le.global?"g":"")+(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")}function h(le){return le.split(/\r\n|\r|\n/)}function u(le){for(let ve=0,Se=le.length;ve=0;Se--){const Ie=le.charCodeAt(Se);if(Ie!==32&&Ie!==9)return Se}return-1}function o(le,ve){return leve?1:0}function s(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Seqe)return 1}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function a(le,ve){return O(le,ve,0,le.length,0,ve.length)}function O(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Se=128||qe>=128)return s(le.toLowerCase(),ve.toLowerCase(),Se,Ie,We,Ve);E(st)&&(st-=32),E(qe)&&(qe-=32);const at=st-qe;if(at===0)continue;return at}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function E(le){return le>=97&&le<=122}function w(le){return le>=65&&le<=90}function D(le,ve){return le.length===ve.length&&O(le,ve)===0}function R(le,ve){const Se=ve.length;return ve.length>le.length?!1:O(le,ve,0,Se)===0}function A(le,ve){let Se,Ie=Math.min(le.length,ve.length);for(Se=0;Se1){const Ie=le.charCodeAt(ve-2);if(T(Ie))return S(Ie,Se)}return Se}function B(le,ve){const Se=oe.getInstance(),Ie=ve,We=le.length,Ve=y(le,We,ve);ve+=Ve>=65536?2:1;let Qe=Se.getGraphemeBreakType(Ve);for(;ve=65536?2:1,Qe=st}return ve-Ie}function F(le,ve){const Se=oe.getInstance(),Ie=ve,We=b(le,ve);ve-=We>=65536?2:1;let Ve=Se.getGraphemeBreakType(We);for(;ve>0;){const Qe=b(le,ve),Je=Se.getGraphemeBreakType(Qe);if(fe(Je,Ve))break;ve-=Qe>=65536?2:1,Ve=Je}return Ie-ve}const _=/(?:[\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 M(le){return _.test(le)}const I=/(?:[\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 g(le){return I.test(le)}const H=/^[\t\n\r\x20-\x7E]*$/;function $(le){return H.test(le)}const ne=/[\u2028\u2029]/;function se(le){return ne.test(le)}function Oe(le){for(let ve=0,Se=le.length;ve=11904&&le<=55215||le>=63744&&le<=64255||le>=65281&&le<=65374}function Te(le){return le>=127462&&le<=127487||le===8986||le===8987||le===9200||le===9203||le>=9728&&le<=10175||le===11088||le===11093||le>=127744&&le<=128591||le>=128640&&le<=128764||le>=128992&&le<=129003||le>=129280&&le<=129535||le>=129648&&le<=129750}const Re=String.fromCharCode(65279);function Le(le){return!!(le&&le.length>0&&le.charCodeAt(0)===65279)}function ce(le,ve=!1){return le?(ve&&(le=le.replace(/\\./g,"")),le.toLowerCase()!==le):!1}function he(le){const ve=90-65+1;return le=le%(2*ve),leve[3*Ie+1])Ie=2*Ie+1;else return ve[3*Ie+2];return 0}}oe._INSTANCE=null;function De(){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 Fe(le,ve){if(le===0)return 0;const Se=Ce(le,ve);if(Se!==void 0)return Se;const Ie=b(ve,le);return le-=Ne(Ie),le}function Ce(le,ve){let Se=b(ve,le);for(le-=Ne(Se);Be(Se)||Se===65039||Se===8419;){if(le===0)return;Se=b(ve,le),le-=Ne(Se)}if(!Te(Se))return;if(le>=0){const Ie=b(ve,le);Ie===8205&&(le-=Ne(Ie))}return le}function Ne(le){return le>=65536?2:1}function Be(le){return 127995<=le&&le<=127999}},Ot1p:function(rt,be,Z){"use strict";var ie=Z("2qtc"),J=Z("kLXV"),P=Z("rAM+"),X=Z("miYZ"),j=Z("tsqr"),U=Z("9og8"),K=Z("tJVT"),G=Z("jrin"),r=Z("WmNS"),L=Z.n(r),v=Z("q1tI"),m=Z.n(v),p=Z("VrN/"),h=Z.n(p),u=Z("bdgK"),f=Z("p77/"),l=Z("Bd2K"),o=Z("ELLl"),s=Z("19Vz"),a=Z("lZu9"),O=Z("+NIl"),E=Z("kSUc"),w=Z("9Bee"),D=function(xe){var Pe=xe.value,He=Pe===void 0?"":Pe,ze=xe.className,ht=xe.showTextOnly,ot=xe.showLines,yt=xe.style,ct=yt===void 0?{}:yt,ft=Object(v.useMemo)(function(){return""},[He]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},R=Z("0Owb"),A=Z("dejd"),C=Z("C+DQ"),T=Z("1vsH"),d=Z("m3rI"),S=[{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 y(xe){var Pe=xe.onActionCallback,He=xe.title,ze=xe.icon,ht=xe.actionName,ot=xe.className,yt=ot===void 0?"":ot,ct=xe.children;function ft(){Pe(ht)}return m.a.createElement("a",{title:He,className:yt,onClick:ft},m.a.createElement("i",{className:"md-iconfont ".concat(ze)}),ct)}var b=function(xe){var Pe=xe.watch,He=xe.showNullButton,ze=xe.onActionCallback,ht=xe.fullScreen,ot=xe.insertTemp,yt=xe.hidetoolBar,ct=xe.uuid,ft=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(T.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(T.F)("_educoder_session"),"&key=").concat(ct,"&api=").concat(encodeURIComponent(d.a.PROXY_SERVER)));var Ot=[].concat(S,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!yt&&Ot.map(function(It,qt){return m.a.createElement("li",{key:qt},It.actionName?m.a.createElement(y,Object(R.a)({},It,{onActionCallback:ze})):m.a.createElement("span",{className:"v-line"}))}),He?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ot&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ot),onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(ht?"icon-shrink":"icon-enlarge"),title:ht?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ze})))},B=Z("M8RZ"),F=Z("+L6B"),_=Z("2/Rp"),M=Z("y8nQ"),I=Z("Vl3Y"),g=Z("5NDa"),H=Z("5rEg"),$={labelCol:{span:4},wrapperCol:{span:20}},ne=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,Object(R.a)({},$,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ze}),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(H.a,null)),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(H.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},se=Z("7ahc"),Oe=Z("HmJG"),ge=Z("BjJ7"),Te=I.a.useForm,Re={width:280,marginRight:10},Le={labelCol:{span:5},wrapperCol:{span:19}},ce=function(xe){var Pe=xe.callback,He=xe.onCancel,ze=Te(),ht=Object(K.a)(ze,1),ot=ht[0];function yt(Ot){Pe(Ot)}function ct(Ot,It){if(Ot.status===-1){j.b.error(Ot.message);return}ot.setFieldsValue({src:"/api/attachments/".concat(Ot.id),type:It.type})}function ft(Ot){var It=Ot.target.files[0];re(It,ct)}return m.a.createElement(I.a,Object(R.a)({form:ot},Le,{className:"upload-image-panel",onFinish:yt}),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(H.a,{style:Re})),m.a.createElement(he,{onFileChange:ft}))),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(H.a,{style:{width:264}})),m.a.createElement(I.a.Item,{style:{textAlign:"right"}},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function he(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function re(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var He=new FormData;He.append("editormd-image-file",xe),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(ht){Pe(JSON.parse(ht.target.responseText),xe)},!1),ze.addEventListener("error",function(ht){console.error(ht)},!1),ze.open("POST","".concat(ge.a,"/api/attachments.json")),ze.send(He)}var fe=Z("giR+"),oe=Z("fyUT"),De=Z("7Kak"),Fe=Z("9yH6"),Ce=Fe.a.Group,Ne={margin:"0 8px"},Be=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ze},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Ne},"\u884C\u6570"),m.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(oe.a,null)),m.a.createElement("span",{style:Ne},"\u5217\u6570"),m.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(oe.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(I.a.Item,{name:"align"},m.a.createElement(Ce,null,m.a.createElement(Fe.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(Fe.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(Fe.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(Fe.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},le=Z("ErOA"),ve=Z("7Cbv"),Se="link",Ie="upload-image",We="code-block",Ve="add-table",Qe="------------",Je={default:Qe,left:":".concat(Qe),center:":".concat(Qe,":"),right:"".concat(Qe,":")},st=Z("9VGf"),qe,at;function Ue(){}var dt=0,lt=1e4,je="\u2581",Ge=` +`),l=this._stacks.get(f)||0;if(this._stacks.set(f,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;let o,s=0;for(const[a,O]of this._stacks)(!o||s{const o=this._stacks.get(f)||0;this._stacks.set(f,o-1)}}}class r{constructor(h){var u;this._disposed=!1,this._options=h,this._leakageMon=K>0?new G(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(h,u,f)=>{var l;this._listeners||(this._listeners=new P.a);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[h,u]:h);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,u);const a=(l=this._leakageMon)===null||l===void 0?void 0:l.check(this._listeners.size),O=Object(J.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return f instanceof J.b?f.add(O):Array.isArray(f)&&f.push(O),O}),this._event}fire(h){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(let l of this._listeners)this._deliveryQueue.push([l,h]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[l,o]=this._deliveryQueue.shift();try{typeof l=="function"?l.call(void 0,o):l[0].call(l[1],o)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var h,u,f,l,o;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(l=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||l===void 0||l.call(f),(o=this._leakageMon)===null||o===void 0||o.dispose())}}class L extends r{constructor(h){super(h);this._isPaused=0,this._eventQueue=new P.a,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}class v extends L{constructor(h){var u;super(h);this._delay=(u=h.delay)!==null&&u!==void 0?u:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}class m{constructor(){this.buffers=[]}wrapEvent(h){return(u,f,l)=>h(o=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,o)):u.call(f,o)},void 0,l)}bufferEvents(h){const u=[];this.buffers.push(u);const f=h();return this.buffers.pop(),u.forEach(l=>l()),f}}class p{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=J.a.None,this.emitter=new r({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(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(rt,be,Z){"use strict";(function(ie,J){Z.d(be,"b",function(){return f}),Z.d(be,"i",function(){return a}),Z.d(be,"f",function(){return O}),Z.d(be,"d",function(){return E}),Z.d(be,"g",function(){return w}),Z.d(be,"h",function(){return D}),Z.d(be,"c",function(){return R}),Z.d(be,"k",function(){return A}),Z.d(be,"j",function(){return C}),Z.d(be,"a",function(){return T}),Z.d(be,"e",function(){return y});var P;const X="en";let j=!1,U=!1,K=!1,G=!1,r=!1,L=!1,v=!1,m,p=X,h,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let l;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?l=f.vscode.process:typeof J!="undefined"&&(l=J);const o=typeof((P=l==null?void 0:l.versions)===null||P===void 0?void 0:P.electron)=="string"&&l.type==="renderer";if(typeof navigator=="object"&&!o)u=navigator.userAgent,j=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,v=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=u.indexOf("Linux")>=0,L=!0,m=navigator.language,p=m;else if(typeof l=="object"){j=l.platform==="win32",U=l.platform==="darwin",K=l.platform==="linux",G=K&&!!l.env.SNAP&&!!l.env.SNAP_REVISION,m=X,p=X;const b=l.env.VSCODE_NLS_CONFIG;if(b)try{const B=JSON.parse(b),F=B.availableLanguages["*"];m=B.locale,p=F||X,h=B._translationsConfigFile}catch(B){}r=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:j?s=3:K&&(s=2);const a=j,O=U,E=K,w=r,D=L,R=v,A=u,C=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let I=0,g=F.length;I{const I=++_;F.push({id:I,callback:M}),f.postMessage({vscodeSetImmediateId:I},"*")}}if(typeof(l==null?void 0:l.nextTick)=="function")return l.nextTick.bind(l);const B=Promise.resolve();return F=>B.then(F)}(),T=U||v?2:j?1:3;let c=!0,S=!1;function y(){if(!S){S=!0;const b=new Uint8Array(2);b[0]=1,b[1]=2;const B=new Uint16Array(b.buffer);c=B[0]===(2<<8)+1}return c}}).call(this,Z("IyRk"),Z("Q2Ig"))},N0LK:function(rt,be,Z){"use strict";Z.d(be,"C",function(){return ie}),Z.d(be,"v",function(){return P}),Z.d(be,"s",function(){return X}),Z.d(be,"t",function(){return j}),Z.d(be,"U",function(){return U}),Z.d(be,"J",function(){return K}),Z.d(be,"O",function(){return G}),Z.d(be,"p",function(){return r}),Z.d(be,"T",function(){return L}),Z.d(be,"q",function(){return v}),Z.d(be,"N",function(){return m}),Z.d(be,"M",function(){return p}),Z.d(be,"Q",function(){return h}),Z.d(be,"u",function(){return u}),Z.d(be,"x",function(){return f}),Z.d(be,"I",function(){return l}),Z.d(be,"f",function(){return o}),Z.d(be,"h",function(){return s}),Z.d(be,"g",function(){return a}),Z.d(be,"i",function(){return O}),Z.d(be,"G",function(){return E}),Z.d(be,"H",function(){return w}),Z.d(be,"r",function(){return D}),Z.d(be,"R",function(){return R}),Z.d(be,"d",function(){return A}),Z.d(be,"e",function(){return C}),Z.d(be,"E",function(){return T}),Z.d(be,"F",function(){return c}),Z.d(be,"j",function(){return S}),Z.d(be,"z",function(){return y}),Z.d(be,"K",function(){return B}),Z.d(be,"L",function(){return F}),Z.d(be,"m",function(){return M}),Z.d(be,"k",function(){return g}),Z.d(be,"A",function(){return $}),Z.d(be,"a",function(){return ne}),Z.d(be,"n",function(){return se}),Z.d(be,"l",function(){return Oe}),Z.d(be,"D",function(){return ge}),Z.d(be,"B",function(){return Te}),Z.d(be,"b",function(){return Re}),Z.d(be,"S",function(){return Le}),Z.d(be,"o",function(){return de}),Z.d(be,"P",function(){return he}),Z.d(be,"w",function(){return re}),Z.d(be,"c",function(){return fe}),Z.d(be,"y",function(){return Fe});function ie(le){return!le||typeof le!="string"?!0:le.trim().length===0}const J=/{(\d+)}/g;function P(le,...ve){return ve.length===0?le:le.replace(J,function(Se,Ie){const We=parseInt(Ie,10);return isNaN(We)||We<0||We>=ve.length?Se:ve[We]})}function X(le){return le.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function j(le){return le.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(le,ve=" "){const Se=K(le,ve);return G(Se,ve)}function K(le,ve){if(!le||!ve)return le;const Se=ve.length;if(Se===0||le.length===0)return le;let Ie=0;for(;le.indexOf(ve,Ie)===Ie;)Ie=Ie+Se;return le.substring(Ie)}function G(le,ve){if(!le||!ve)return le;const Se=ve.length,Ie=le.length;if(Se===0||Ie===0)return le;let We=Ie,Ve=-1;for(;!(Ve=le.lastIndexOf(ve,We-1),Ve===-1||Ve+Se!==We);){if(Ve===0)return"";We=Ve}return le.substring(0,We)}function r(le){return le.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function L(le){return le.replace(/\*/g,"")}function v(le,ve,Se={}){if(!le)throw new Error("Cannot create regex from empty string");ve||(le=j(le)),Se.wholeWord&&(/\B/.test(le.charAt(0))||(le="\\b"+le),/\B/.test(le.charAt(le.length-1))||(le=le+"\\b"));let Ie="";return Se.global&&(Ie+="g"),Se.matchCase||(Ie+="i"),Se.multiline&&(Ie+="m"),Se.unicode&&(Ie+="u"),new RegExp(le,Ie)}function m(le){if(le.source==="^"||le.source==="^$"||le.source==="$"||le.source==="^\\s*$")return!1;const ve=le.exec("");return!!(ve&&le.lastIndex===0)}function p(le){return(le.global?"g":"")+(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")}function h(le){return le.split(/\r\n|\r|\n/)}function u(le){for(let ve=0,Se=le.length;ve=0;Se--){const Ie=le.charCodeAt(Se);if(Ie!==32&&Ie!==9)return Se}return-1}function o(le,ve){return leve?1:0}function s(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Seqe)return 1}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function a(le,ve){return O(le,ve,0,le.length,0,ve.length)}function O(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Se=128||qe>=128)return s(le.toLowerCase(),ve.toLowerCase(),Se,Ie,We,Ve);E(st)&&(st-=32),E(qe)&&(qe-=32);const at=st-qe;if(at===0)continue;return at}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function E(le){return le>=97&&le<=122}function w(le){return le>=65&&le<=90}function D(le,ve){return le.length===ve.length&&O(le,ve)===0}function R(le,ve){const Se=ve.length;return ve.length>le.length?!1:O(le,ve,0,Se)===0}function A(le,ve){let Se,Ie=Math.min(le.length,ve.length);for(Se=0;Se1){const Ie=le.charCodeAt(ve-2);if(T(Ie))return S(Ie,Se)}return Se}function B(le,ve){const Se=oe.getInstance(),Ie=ve,We=le.length,Ve=y(le,We,ve);ve+=Ve>=65536?2:1;let Qe=Se.getGraphemeBreakType(Ve);for(;ve=65536?2:1,Qe=st}return ve-Ie}function F(le,ve){const Se=oe.getInstance(),Ie=ve,We=b(le,ve);ve-=We>=65536?2:1;let Ve=Se.getGraphemeBreakType(We);for(;ve>0;){const Qe=b(le,ve),Je=Se.getGraphemeBreakType(Qe);if(fe(Je,Ve))break;ve-=Qe>=65536?2:1,Ve=Je}return Ie-ve}const _=/(?:[\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 M(le){return _.test(le)}const I=/(?:[\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 g(le){return I.test(le)}const H=/^[\t\n\r\x20-\x7E]*$/;function $(le){return H.test(le)}const ne=/[\u2028\u2029]/;function se(le){return ne.test(le)}function Oe(le){for(let ve=0,Se=le.length;ve=11904&&le<=55215||le>=63744&&le<=64255||le>=65281&&le<=65374}function Te(le){return le>=127462&&le<=127487||le===8986||le===8987||le===9200||le===9203||le>=9728&&le<=10175||le===11088||le===11093||le>=127744&&le<=128591||le>=128640&&le<=128764||le>=128992&&le<=129003||le>=129280&&le<=129535||le>=129648&&le<=129750}const Re=String.fromCharCode(65279);function Le(le){return!!(le&&le.length>0&&le.charCodeAt(0)===65279)}function de(le,ve=!1){return le?(ve&&(le=le.replace(/\\./g,"")),le.toLowerCase()!==le):!1}function he(le){const ve=90-65+1;return le=le%(2*ve),leve[3*Ie+1])Ie=2*Ie+1;else return ve[3*Ie+2];return 0}}oe._INSTANCE=null;function De(){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 Fe(le,ve){if(le===0)return 0;const Se=Ce(le,ve);if(Se!==void 0)return Se;const Ie=b(ve,le);return le-=Ne(Ie),le}function Ce(le,ve){let Se=b(ve,le);for(le-=Ne(Se);Be(Se)||Se===65039||Se===8419;){if(le===0)return;Se=b(ve,le),le-=Ne(Se)}if(!Te(Se))return;if(le>=0){const Ie=b(ve,le);Ie===8205&&(le-=Ne(Ie))}return le}function Ne(le){return le>=65536?2:1}function Be(le){return 127995<=le&&le<=127999}},Ot1p:function(rt,be,Z){"use strict";var ie=Z("2qtc"),J=Z("kLXV"),P=Z("rAM+"),X=Z("miYZ"),j=Z("tsqr"),U=Z("9og8"),K=Z("tJVT"),G=Z("jrin"),r=Z("WmNS"),L=Z.n(r),v=Z("q1tI"),m=Z.n(v),p=Z("VrN/"),h=Z.n(p),u=Z("bdgK"),f=Z("p77/"),l=Z("Bd2K"),o=Z("ELLl"),s=Z("19Vz"),a=Z("lZu9"),O=Z("+NIl"),E=Z("kSUc"),w=Z("9Bee"),D=function(xe){var Pe=xe.value,He=Pe===void 0?"":Pe,ze=xe.className,ht=xe.showTextOnly,ot=xe.showLines,yt=xe.style,dt=yt===void 0?{}:yt,ft=Object(v.useMemo)(function(){return""},[He]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},R=Z("0Owb"),A=Z("dejd"),C=Z("C+DQ"),T=Z("1vsH"),c=Z("m3rI"),S=[{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 y(xe){var Pe=xe.onActionCallback,He=xe.title,ze=xe.icon,ht=xe.actionName,ot=xe.className,yt=ot===void 0?"":ot,dt=xe.children;function ft(){Pe(ht)}return m.a.createElement("a",{title:He,className:yt,onClick:ft},m.a.createElement("i",{className:"md-iconfont ".concat(ze)}),dt)}var b=function(xe){var Pe=xe.watch,He=xe.showNullButton,ze=xe.onActionCallback,ht=xe.fullScreen,ot=xe.insertTemp,yt=xe.hidetoolBar,dt=xe.uuid,ft=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(T.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(T.F)("_educoder_session"),"&key=").concat(dt,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ot=[].concat(S,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!yt&&Ot.map(function(It,qt){return m.a.createElement("li",{key:qt},It.actionName?m.a.createElement(y,Object(R.a)({},It,{onActionCallback:ze})):m.a.createElement("span",{className:"v-line"}))}),He?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ot&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ot),onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(ht?"icon-shrink":"icon-enlarge"),title:ht?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ze})))},B=Z("M8RZ"),F=Z("+L6B"),_=Z("2/Rp"),M=Z("y8nQ"),I=Z("Vl3Y"),g=Z("5NDa"),H=Z("5rEg"),$={labelCol:{span:4},wrapperCol:{span:20}},ne=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,Object(R.a)({},$,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ze}),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(H.a,null)),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(H.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},se=Z("7ahc"),Oe=Z("HmJG"),ge=Z("BjJ7"),Te=I.a.useForm,Re={width:280,marginRight:10},Le={labelCol:{span:5},wrapperCol:{span:19}},de=function(xe){var Pe=xe.callback,He=xe.onCancel,ze=Te(),ht=Object(K.a)(ze,1),ot=ht[0];function yt(Ot){Pe(Ot)}function dt(Ot,It){if(Ot.status===-1){j.b.error(Ot.message);return}ot.setFieldsValue({src:"/api/attachments/".concat(Ot.id),type:It.type})}function ft(Ot){var It=Ot.target.files[0];re(It,dt)}return m.a.createElement(I.a,Object(R.a)({form:ot},Le,{className:"upload-image-panel",onFinish:yt}),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(H.a,{style:Re})),m.a.createElement(he,{onFileChange:ft}))),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(H.a,{style:{width:264}})),m.a.createElement(I.a.Item,{style:{textAlign:"right"}},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function he(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function re(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var He=new FormData;He.append("editormd-image-file",xe),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(ht){Pe(JSON.parse(ht.target.responseText),xe)},!1),ze.addEventListener("error",function(ht){console.error(ht)},!1),ze.open("POST","".concat(ge.a,"/api/attachments.json")),ze.send(He)}var fe=Z("giR+"),oe=Z("fyUT"),De=Z("7Kak"),Fe=Z("9yH6"),Ce=Fe.a.Group,Ne={margin:"0 8px"},Be=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ze},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Ne},"\u884C\u6570"),m.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(oe.a,null)),m.a.createElement("span",{style:Ne},"\u5217\u6570"),m.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(oe.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(I.a.Item,{name:"align"},m.a.createElement(Ce,null,m.a.createElement(Fe.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(Fe.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(Fe.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(Fe.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},le=Z("ErOA"),ve=Z("7Cbv"),Se="link",Ie="upload-image",We="code-block",Ve="add-table",Qe="------------",Je={default:Qe,left:":".concat(Qe),center:":".concat(Qe,":"),right:"".concat(Qe,":")},st=Z("9VGf"),qe,at;function Ue(){}var ct=0,lt=1e4,je="\u2581",Ge=` **\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 Ae(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var _e=navigator.platform.toUpperCase().indexOf("MAC")>=0,we=_e?"Cmd":"Ctrl",ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ue=(qe={},Object(G.a)(qe,we+"-B","bold"),Object(G.a)(qe,we+"-I","italic"),qe),de=(at={},Object(G.a)(at,Se,"\u6DFB\u52A0\u94FE\u63A5"),Object(G.a)(at,We,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(G.a)(at,Ie,"\u6DFB\u52A0\u6587\u4EF6"),Object(G.a)(at,Ve,"\u6DFB\u52A0\u8868\u683C"),at),me=be.a=function(xe){var Pe=xe.defaultValue,He=Pe===void 0?"":Pe,ze=xe.onChange,ht=xe.width,ot=ht===void 0?"100%":ht,yt=xe.height,ct=yt===void 0?400:yt,ft=xe.miniToolbar,Ot=ft===void 0?!1:ft,It=xe.isFocus,qt=It===void 0?!1:It,Zt=xe.watch,Dt=xe.insertTemp,Cr=xe.mode,Kr=Cr===void 0?"markdown":Cr,_t=xe.id,Lr=_t===void 0?"markdown-editor-id":_t,Et=xe.showResizeBar,wt=Et===void 0?!1:Et,Ut=xe.noStorage,tr=Ut===void 0?!1:Ut,cr=xe.showNullButton,Nt=cr===void 0?!1:cr,mt=xe.hidetoolBar,Br=mt===void 0?!1:mt,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Rt=xe.onBlur,lr=xe.onCMBeforeChange,Ir=xe.onFullScreen,Xr=xe.className,Ze=Xr===void 0?"":Xr,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,Y=yn===void 0?"":yn,x=Object(v.useState)(null),k=Object(K.a)(x,2),W=k[0],ee=k[1],V=Object(v.useState)(He),Ee=Object(K.a)(V,2),Ye=Ee[0],tt=Ee[1],gt=Object(v.useState)(Zt),Xe=Object(K.a)(gt,2),xt=Xe[0],jt=Xe[1],$t=Object(v.useState)(Jt),jr=Object(K.a)($t,2),Er=jr[0],xr=jr[1],Zr=Object(v.useState)(""),Dn=Object(K.a)(Zr,2),dr=Dn[0],zr=Dn[1],un=Object(v.useState)(0),hn=Object(K.a)(un,2),Hr=hn[0],kn=hn[1],bn=Object(v.useState)(ct),zn=Object(K.a)(bn,2),Vn=zn[0],Qr=zn[1],$r=Object(v.useState)(!1),_n=Object(K.a)($r,2),ci=_n[0],En=_n[1],nr=Object(v.useRef)(Object(ve.a)()),Ht=Object(v.useRef)(!1),yr=Object(v.useRef)(),Mt=Object(v.useRef)(),ar=Object(v.useRef)(),Kt=Object(v.useRef)(),nn=Object(v.useRef)(),fr=function(){var vt=Object(U.a)(L.a.mark(function At(){var Tt,kt;return L.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(le.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:nr.current}});case 2:kt=Yt.sent,kt!=null&&(Tt=kt.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",W,Mt),kt.attachments.map(function(Ft){Ft.content_type.indexOf("image")>-1?W.replaceSelection("![,](/api/attachments/".concat(Ft.id,"?type=").concat(Ft.content_type,")")):Ft.content_type.indexOf("video")>-1?W.replaceSelection('')):Ft.content_type.indexOf("pdf")>-1?W.replaceSelection('
      ').concat(Ft.name,"")):W.replaceSelection("[".concat(Ft.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return vt.apply(this,arguments)}}();Object(v.useEffect)(function(){tt(Y),W==null||W.setValue(Y)},[Y]),Object(v.useEffect)(function(){Ir==null||Ir(Er)},[Er]),Object(v.useEffect)(function(){if(Mt.current){var vt=h.a.fromTextArea(Mt.current,{mode:Kr,lineNumbers:!Ot,lineWrapping:!0,value:He,autoCloseTags:!0,autoCloseBrackets:!0});qt&&vt.focus();function At(Tt,kt){if(mn){kt.preventDefault();return}var Bt=kt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Ft=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(kt.preventDefault(),Kr=="stex")return;try{var ur,Dr=Ft[1];((ur=Ft[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(Dr=Ft[0]);var Pt=Dr.getAsFile(),cn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(cn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){j.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",At),vt.on("dragleave",function(Tt,kt){ar.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,kt){ar.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,kt){ar.current.classList.add("mouse-hover-md");var Bt;if(Bt=kt.dataTransfer.files,Bt.length>0){kt.preventDefault(),kt.stopPropagation();for(var Yt=function(Dr){var Pt=Bt[Dr],cn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(cn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Ft=0;Ft0||Ft.target.offsetWidth>0)&&(Ar(),W.setSize("100%","100%"),W.refresh())}}catch(ur){Bt.e(ur)}finally{Bt.f()}});return Tt.observe(Mt.current.parentElement),Tt}if(W){var At=vt();return function(){At.unobserve(Mt.current.parentElement)}}},[W,Ar]),Object(v.useEffect)(function(){if(W){for(var vt=[],At=function(){var Ft=kt[Tt];Bt=Object(K.a)(Ft,2);var ur=Bt[0],Dr=Bt[1],Pt=Object(G.a)({},ur,function(){Yn(Dr)});vt.push(Pt),W.addKeyMap(Pt)},Tt=0,kt=Object.entries(ue);Tt0){var vt=new Date().getTime(),At=window.sessionStorage.getItem(Lr);vt>=Hr+lt&&(!At||At!==Ye)&&(window.sessionStorage.setItem(Lr,Ye),En(!0))}},lt),Object(v.useEffect)(function(){jt(Zt)},[W,Zt]),Object(v.useEffect)(function(){W&&(qt&&W.focus())},[W,qt]),Object(v.useEffect)(function(){if(xt&&W){var vt=W.getScrollerElement();function At(Tt){var kt=Tt.target;if(nn.current){var Bt=kt.scrollTop/kt.scrollHeight;nn.current.scrollTop=nn.current.scrollHeight*Bt}}return vt.addEventListener("scroll",At),function(){vt.removeEventListener("scroll",At)}}},[W,xt]),Object(v.useEffect)(function(){if(W&&lr){function vt(At,Tt){lr(At,Tt)}return W.on("beforeChange",vt),function(){W.off("beforeChange",vt)}}},[W,lr]),Object(v.useEffect)(function(){if(W&&Rt){function vt(){Rt(W.getValue())}return W.on("blur",vt),function(){W.off("blur",vt)}}},[W,Rt]),Object(v.useEffect)(function(){if(W){function vt(At){var Tt=At.getValue();tt(Tt),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&ze(Tt)}return W.on("change",vt),function(){W.off("change",vt)}}},[W,ze]),Object(v.useEffect)(function(){W&&(He==null?(W.setValue(""),tt("")):He!==W.getValue()&&(W.setValue(He),tt(He),W.setCursor(W.lineCount(),0)))},[W,He]);var Yn=Object(v.useCallback)(function(vt){var At=W.getCursor(),Tt=W.getSelection(),kt=Tt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ae(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var _e=navigator.platform.toUpperCase().indexOf("MAC")>=0,we=_e?"Cmd":"Ctrl",ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],ue=(qe={},Object(G.a)(qe,we+"-B","bold"),Object(G.a)(qe,we+"-I","italic"),qe),ce=(at={},Object(G.a)(at,Se,"\u6DFB\u52A0\u94FE\u63A5"),Object(G.a)(at,We,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(G.a)(at,Ie,"\u6DFB\u52A0\u6587\u4EF6"),Object(G.a)(at,Ve,"\u6DFB\u52A0\u8868\u683C"),at),me=be.a=function(xe){var Pe=xe.defaultValue,He=Pe===void 0?"":Pe,ze=xe.onChange,ht=xe.width,ot=ht===void 0?"100%":ht,yt=xe.height,dt=yt===void 0?400:yt,ft=xe.miniToolbar,Ot=ft===void 0?!1:ft,It=xe.isFocus,qt=It===void 0?!1:It,Zt=xe.watch,Dt=xe.insertTemp,Cr=xe.mode,Kr=Cr===void 0?"markdown":Cr,_t=xe.id,Lr=_t===void 0?"markdown-editor-id":_t,Et=xe.showResizeBar,wt=Et===void 0?!1:Et,Ut=xe.noStorage,tr=Ut===void 0?!1:Ut,dr=xe.showNullButton,Nt=dr===void 0?!1:dr,mt=xe.hidetoolBar,Br=mt===void 0?!1:mt,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Rt=xe.onBlur,lr=xe.onCMBeforeChange,Ir=xe.onFullScreen,Xr=xe.className,Ze=Xr===void 0?"":Xr,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,Y=yn===void 0?"":yn,x=Object(v.useState)(null),k=Object(K.a)(x,2),W=k[0],ee=k[1],V=Object(v.useState)(He),Ee=Object(K.a)(V,2),Ye=Ee[0],tt=Ee[1],gt=Object(v.useState)(Zt),Xe=Object(K.a)(gt,2),xt=Xe[0],jt=Xe[1],$t=Object(v.useState)(Jt),jr=Object(K.a)($t,2),Er=jr[0],xr=jr[1],Zr=Object(v.useState)(""),Dn=Object(K.a)(Zr,2),cr=Dn[0],zr=Dn[1],un=Object(v.useState)(0),hn=Object(K.a)(un,2),Hr=hn[0],kn=hn[1],bn=Object(v.useState)(dt),zn=Object(K.a)(bn,2),Vn=zn[0],Qr=zn[1],$r=Object(v.useState)(!1),_n=Object(K.a)($r,2),di=_n[0],En=_n[1],nr=Object(v.useRef)(Object(ve.a)()),Ht=Object(v.useRef)(!1),yr=Object(v.useRef)(),Mt=Object(v.useRef)(),ar=Object(v.useRef)(),Kt=Object(v.useRef)(),nn=Object(v.useRef)(),fr=function(){var vt=Object(U.a)(L.a.mark(function At(){var Tt,kt;return L.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(le.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:nr.current}});case 2:kt=Yt.sent,kt!=null&&(Tt=kt.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",W,Mt),kt.attachments.map(function(Ft){Ft.content_type.indexOf("image")>-1?W.replaceSelection("![,](/api/attachments/".concat(Ft.id,"?type=").concat(Ft.content_type,")")):Ft.content_type.indexOf("video")>-1?W.replaceSelection('')):Ft.content_type.indexOf("pdf")>-1?W.replaceSelection('').concat(Ft.name,"")):W.replaceSelection("[".concat(Ft.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return vt.apply(this,arguments)}}();Object(v.useEffect)(function(){tt(Y),W==null||W.setValue(Y)},[Y]),Object(v.useEffect)(function(){Ir==null||Ir(Er)},[Er]),Object(v.useEffect)(function(){if(Mt.current){var vt=h.a.fromTextArea(Mt.current,{mode:Kr,lineNumbers:!Ot,lineWrapping:!0,value:He,autoCloseTags:!0,autoCloseBrackets:!0});qt&&vt.focus();function At(Tt,kt){if(mn){kt.preventDefault();return}var Bt=kt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Ft=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(kt.preventDefault(),Kr=="stex")return;try{var ur,Dr=Ft[1];((ur=Ft[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(Dr=Ft[0]);var Pt=Dr.getAsFile(),dn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(dn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){j.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",At),vt.on("dragleave",function(Tt,kt){ar.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,kt){ar.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,kt){ar.current.classList.add("mouse-hover-md");var Bt;if(Bt=kt.dataTransfer.files,Bt.length>0){kt.preventDefault(),kt.stopPropagation();for(var Yt=function(Dr){var Pt=Bt[Dr],dn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(dn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Ft=0;Ft0||Ft.target.offsetWidth>0)&&(Ar(),W.setSize("100%","100%"),W.refresh())}}catch(ur){Bt.e(ur)}finally{Bt.f()}});return Tt.observe(Mt.current.parentElement),Tt}if(W){var At=vt();return function(){At.unobserve(Mt.current.parentElement)}}},[W,Ar]),Object(v.useEffect)(function(){if(W){for(var vt=[],At=function(){var Ft=kt[Tt];Bt=Object(K.a)(Ft,2);var ur=Bt[0],Dr=Bt[1],Pt=Object(G.a)({},ur,function(){Yn(Dr)});vt.push(Pt),W.addKeyMap(Pt)},Tt=0,kt=Object.entries(ue);Tt0){var vt=new Date().getTime(),At=window.sessionStorage.getItem(Lr);vt>=Hr+lt&&(!At||At!==Ye)&&(window.sessionStorage.setItem(Lr,Ye),En(!0))}},lt),Object(v.useEffect)(function(){jt(Zt)},[W,Zt]),Object(v.useEffect)(function(){W&&(qt&&W.focus())},[W,qt]),Object(v.useEffect)(function(){if(xt&&W){var vt=W.getScrollerElement();function At(Tt){var kt=Tt.target;if(nn.current){var Bt=kt.scrollTop/kt.scrollHeight;nn.current.scrollTop=nn.current.scrollHeight*Bt}}return vt.addEventListener("scroll",At),function(){vt.removeEventListener("scroll",At)}}},[W,xt]),Object(v.useEffect)(function(){if(W&&lr){function vt(At,Tt){lr(At,Tt)}return W.on("beforeChange",vt),function(){W.off("beforeChange",vt)}}},[W,lr]),Object(v.useEffect)(function(){if(W&&Rt){function vt(){Rt(W.getValue())}return W.on("blur",vt),function(){W.off("blur",vt)}}},[W,Rt]),Object(v.useEffect)(function(){if(W){function vt(At){var Tt=At.getValue();tt(Tt),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&ze(Tt)}return W.on("change",vt),function(){W.off("change",vt)}}},[W,ze]),Object(v.useEffect)(function(){W&&(He==null?(W.setValue(""),tt("")):He!==W.getValue()&&(W.setValue(He),tt(He),W.setCursor(W.lineCount(),0)))},[W,He]);var Yn=Object(v.useCallback)(function(vt){var At=W.getCursor(),Tt=W.getSelection(),kt=Tt.split(` `);switch(vt){case"bold":return W.replaceSelection("**"+Tt+"**"),Tt===""&&W.setCursor(At.line,At.ch+2),W.focus();case"italic":return W.replaceSelection("*"+Tt+"*"),Tt===""&&W.setCursor(At.line,At.ch+1),W.focus();case"code":return W.replaceSelection("`"+Tt+"`"),Tt===""&&W.setCursor(At.line,At.ch+1),W.focus();case"inline-latex":return W.replaceSelection("`$$"+Tt+"$$`"),Tt===""&&W.setCursor(At.line,At.ch+3),W.focus();case"latex":return W.replaceSelection("```latex\n"+Tt+"\n```"),W.setCursor(At.line+1,Tt.length+1),W.focus();case"line-break":return W.replaceSelection(`
      `),W.focus();case"list-ul":return Tt===""?W.replaceSelection("- "+Tt):W.replaceSelection(kt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(` `)),W.focus();case"list-ol":return Tt===""?W.replaceSelection("1. "+Tt):W.replaceSelection(kt.map(function(Bt,Yt){return Bt===""?"":"".concat(Yt+1,". ").concat(Bt)}).join(` -`)),W.focus();case"add-null-ch":return Tt===""&&W.setCursor(At.line,At.ch+1),W.replaceSelection(je),W.focus();case"inster-template-1":return Tt===""&&W.setCursor(At.line,At.ch),W.replaceSelection(Ge),W.focus();case"eraser":return W.setValue(""),W.focus();case"trigger-watch":return jt(!xt),W.focus();case"trigger-full-screen":return xr(!Er),W.focus();case Se:zr(Se);return;case We:zr(We);return;case Ie:zr(Ie);return;case Ve:zr(Ve);return;default:throw new Error}},[W,xt,Er]),xn=Object(v.useCallback)(function(vt){zr("");switch(dr){case Se:var At=vt.title,Tt=vt.link;return W.replaceSelection("[".concat(At,"](").concat(Tt,")")),W.focus();case We:var kt=vt.language,Bt=vt.content;return W.replaceSelection(["```"+kt,Bt,"```"].join(` -`)),W.focus();case Ie:var Yt=vt.src,Ft=vt.alt;return Ft?W.replaceSelection("![ ".concat(Ft," ]( ").concat(Yt,' "').concat(Ft,'" )')):W.replaceSelection("![,](".concat(Yt,")")),W.focus();case Ve:for(var ur=vt.row,Dr=vt.col,Pt=vt.align,cn=` -`,Wt=0;Wt300&&(ur=300);var Dr=ct+ur+"px";Qr(Dr)}}return vt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){vt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[W,Kt]),Object(v.useEffect)(function(){Qr(ct)},[ct]);var an=Ae(ot),fi=Ae(Vn),qr={width:an,height:fi},pi=Object(v.useMemo)(function(){if(Hr){var vt=new Date(Hr),At=vt.getHours(),Tt=vt.getMinutes(),kt=vt.getSeconds();return At=At<10?"0"+At:At,Tt=Tt<10?"0"+Tt:Tt,kt=kt<10?"0"+kt:kt,"".concat(At,":").concat(Tt,":").concat(kt)}return 0},[Hr]);function ji(){window.sessionStorage.removeItem(Lr),En(!1),kn(0)}function Mn(){En(!1),kn(0),W.setValue(window.sessionStorage.getItem(Lr))}function ua(vt,At){var Tt=W.getValue();Tt=Tt.replace(vt,At),tt(Tt),W==null||W.setValue(Tt)}return m.a.createElement(v.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ar},m.a.createElement("div",{className:"markdown-editor-container ".concat(Ze," ").concat(xt?"on-preview":""," ").concat(Ot?"mini":""," ").concat(Er?"full-screen":""),style:qr},m.a.createElement(b,{insertTemp:Dt,watch:xt,fullScreen:Er,showNullButton:Nt,onActionCallback:Yn,hidetoolBar:Br,uuid:nr.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:Mt,placeholder:vn})),xt?m.a.createElement("div",{ref:nn,className:"preview-container"},Kr==="stex"&&m.a.createElement(D,{value:Ye}),Kr!=="stex"&&m.a.createElement(w.a,{edit:!0,value:Ye,replaces:ua})):null))),wt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(B.a,null,de[dr]?m.a.createElement(J.a,{centered:!0,title:de[dr],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},di):null))}},SJMd:function(rt,be){/** +`)),W.focus();case"add-null-ch":return Tt===""&&W.setCursor(At.line,At.ch+1),W.replaceSelection(je),W.focus();case"inster-template-1":return Tt===""&&W.setCursor(At.line,At.ch),W.replaceSelection(Ge),W.focus();case"eraser":return W.setValue(""),W.focus();case"trigger-watch":return jt(!xt),W.focus();case"trigger-full-screen":return xr(!Er),W.focus();case Se:zr(Se);return;case We:zr(We);return;case Ie:zr(Ie);return;case Ve:zr(Ve);return;default:throw new Error}},[W,xt,Er]),xn=Object(v.useCallback)(function(vt){zr("");switch(cr){case Se:var At=vt.title,Tt=vt.link;return W.replaceSelection("[".concat(At,"](").concat(Tt,")")),W.focus();case We:var kt=vt.language,Bt=vt.content;return W.replaceSelection(["```"+kt,Bt,"```"].join(` +`)),W.focus();case Ie:var Yt=vt.src,Ft=vt.alt;return Ft?W.replaceSelection("![ ".concat(Ft," ]( ").concat(Yt,' "').concat(Ft,'" )')):W.replaceSelection("![,](".concat(Yt,")")),W.focus();case Ve:for(var ur=vt.row,Dr=vt.col,Pt=vt.align,dn=` +`,Wt=0;Wt300&&(ur=300);var Dr=dt+ur+"px";Qr(Dr)}}return vt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){vt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[W,Kt]),Object(v.useEffect)(function(){Qr(dt)},[dt]);var an=Ae(ot),fi=Ae(Vn),qr={width:an,height:fi},pi=Object(v.useMemo)(function(){if(Hr){var vt=new Date(Hr),At=vt.getHours(),Tt=vt.getMinutes(),kt=vt.getSeconds();return At=At<10?"0"+At:At,Tt=Tt<10?"0"+Tt:Tt,kt=kt<10?"0"+kt:kt,"".concat(At,":").concat(Tt,":").concat(kt)}return 0},[Hr]);function ji(){window.sessionStorage.removeItem(Lr),En(!1),kn(0)}function Mn(){En(!1),kn(0),W.setValue(window.sessionStorage.getItem(Lr))}function ua(vt,At){var Tt=W.getValue();Tt=Tt.replace(vt,At),tt(Tt),W==null||W.setValue(Tt)}return m.a.createElement(v.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ar},m.a.createElement("div",{className:"markdown-editor-container ".concat(Ze," ").concat(xt?"on-preview":""," ").concat(Ot?"mini":""," ").concat(Er?"full-screen":""),style:qr},m.a.createElement(b,{insertTemp:Dt,watch:xt,fullScreen:Er,showNullButton:Nt,onActionCallback:Yn,hidetoolBar:Br,uuid:nr.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:Mt,placeholder:vn})),xt?m.a.createElement("div",{ref:nn,className:"preview-container"},Kr==="stex"&&m.a.createElement(D,{value:Ye}),Kr!=="stex"&&m.a.createElement(w.a,{edit:!0,value:Ye,replaces:ua})):null))),wt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(B.a,null,ce[cr]?m.a.createElement(J.a,{centered:!0,title:ce[cr],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},ci):null))}},SJMd:function(rt,be){/** * @license * Copyright (C) 2006 Google Inc. * @@ -323,12 +323,12 @@ Please report this to https://github.com/markedjs/marked.`,_e.silent)return"

      A * 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 Z,ie,J,P=!1,X,j;window.PR_SHOULD_USE_CONTINUATION=!0;var U,K;(function(){var G=window,r=["break,continue,do,else,for,if,return,while"],L=[r,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],v=[L,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],m=[v,"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"],p=[v,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],h=[v,"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"],u="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",f=[v,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],l="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",o=[r,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[r,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],a=[r,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],O=[m,h,p,f,l,o,s,a],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",D="kwd",R="com",A="typ",C="lit",T="pun",d="pln",S="tag",y="dec",b="src",B="atn",F="atv",_="nocode",M="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(Ce){for(var Ne=0,Be=!1,le=!1,ve=0,Se=Ce.length;ve122||(ae<65||we>90||dt.push([Math.max(65,we)|32,Math.min(ae,90)|32]),ae<97||we>122||dt.push([Math.max(97,we)&~32,Math.min(ae,122)&~32]))}}dt.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ue=[],de=[],Ge=0;Geme[0]&&(me[1]+1>me[0]&&je.push("-"),je.push(Qe(me[1])))}return je.push("]"),je.join("")}function st(at){for(var Ue=at.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")),dt=Ue.length,lt=[],je=0,Ge=0;je=2&&we==="["?Ue[je]=Je(Ae):we!=="\\"&&(Ue[je]=Ae.replace(/[a-zA-Z]/g,function(de){var me=de.charCodeAt(0);return"["+String.fromCharCode(me&~32,me|32)+"]"}))}return Ue.join("")}for(var qe=[],ve=0,Se=Ce.length;ve|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(Ce){for(var Ne=0,Be=!1,le=!1,ve=0,Se=Ce.length;ve122||(ae<65||we>90||ct.push([Math.max(65,we)|32,Math.min(ae,90)|32]),ae<97||we>122||ct.push([Math.max(97,we)&~32,Math.min(ae,122)&~32]))}}ct.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ue=[],ce=[],Ge=0;Geme[0]&&(me[1]+1>me[0]&&je.push("-"),je.push(Qe(me[1])))}return je.push("]"),je.join("")}function st(at){for(var Ue=at.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")),ct=Ue.length,lt=[],je=0,Ge=0;je=2&&we==="["?Ue[je]=Je(Ae):we!=="\\"&&(Ue[je]=Ae.replace(/[a-zA-Z]/g,function(ce){var me=ce.charCodeAt(0);return"["+String.fromCharCode(me&~32,me|32)+"]"}))}return Ue.join("")}for(var qe=[],ve=0,Se=Ce.length;ve=0;)Be[qe.charAt(at)]=st;var Ue=st[1],dt=""+Ue;Ve.hasOwnProperty(dt)||(We.push(Ue),Ve[dt]=null)}We.push(/[\0-\uffff]/),le=I(We)})();var ve=Ne.length,Se=function(Ie){for(var We=Ie.sourceCode,Ve=Ie.basePos,Qe=Ie.sourceNode,Je=[Ve,d],st=0,qe=We.match(le)||[],at={},Ue=0,dt=qe.length;Ue=5&&je.substring(0,5)==="lang-",Ae&&!(Ge&&typeof Ge[1]=="string")&&(Ae=!1,je=b),Ae||(at[lt]=je)}var ae=st;if(st+=lt.length,!Ae)Je.push(Ve+ae,je);else{var ue=Ge[1],de=lt.indexOf(ue),me=de+ue.length;Ge[2]&&(me=lt.length-Ge[2].length,de=me-ue.length);var xe=je.substring(5);H(Qe,Ve+ae,lt.substring(0,de),Se,Je),H(Qe,Ve+ae+de,ue,he(xe,ue),Je),H(Qe,Ve+ae+me,lt.substring(me),Se,Je)}}Ie.decorations=Je};return Se}function Oe(Ce){var Ne=[],Be=[];Ce.tripleQuotedStrings?Ne.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ce.multiLineStrings?Ne.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ne.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ce.verbatimStrings&&Be.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var le=Ce.hashComments;le&&(Ce.cStyleComments?(le>1?Ne.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ne.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Be.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ne.push([R,/^#[^\r\n]*/,null,"#"])),Ce.cStyleComments&&(Be.push([R,/^\/\/[^\r\n]*/,null]),Be.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=Ce.regexLiterals;if(ve){var Se=ve>1?"":` -\r`,Ie=Se?".":"[\\S\\s]",We="/(?=[^/*"+Se+"])(?:[^/\\x5B\\x5C"+Se+"]|\\x5C"+Ie+"|\\x5B(?:[^\\x5C\\x5D"+Se+"]|\\x5C"+Ie+")*(?:\\x5D|$))+/";Be.push(["lang-regex",RegExp("^"+M+"("+We+")")])}var Ve=Ce.types;Ve&&Be.push([A,Ve]);var Qe=(""+Ce.keywords).replace(/^ | $/g,"");Qe.length&&Be.push([D,new RegExp("^(?:"+Qe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ne.push([d,/^\s+/,null,` \r - \xA0`]);var Je="^.[^\\s\\w.$@'\"`/\\\\]*";return Ce.regexLiterals&&(Je+="(?!s*/)"),Be.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[d,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[d,/^\\[\s\S]?/,null],[T,new RegExp(Je),null]),se(Ne,Be)}var ge=Oe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Te(Ce,Ne,Be){for(var le=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Se=Ce.ownerDocument,Ie=Se.createElement("li");Ce.firstChild;)Ie.appendChild(Ce.firstChild);var We=[Ie];function Ve(Ue){var dt=Ue.nodeType;if(dt==1&&!le.test(Ue.className))if(Ue.nodeName==="br")Qe(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var lt=Ue.firstChild;lt;lt=lt.nextSibling)Ve(lt);else if((dt==3||dt==4)&&Be){var je=Ue.nodeValue,Ge=je.match(ve);if(Ge){var Ae=je.substring(0,Ge.index);Ue.nodeValue=Ae;var _e=je.substring(Ge.index+Ge[0].length);if(_e){var we=Ue.parentNode;we.insertBefore(Se.createTextNode(_e),Ue.nextSibling)}Qe(Ue),Ae||Ue.parentNode.removeChild(Ue)}}}function Qe(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function dt(Ge,Ae){var _e=Ae?Ge.cloneNode(!1):Ge,we=Ge.parentNode;if(we){var ae=dt(we,1),ue=Ge.nextSibling;ae.appendChild(_e);for(var de=ue;de;de=ue)ue=de.nextSibling,ae.appendChild(de)}return _e}for(var lt=dt(Ue.nextSibling,0),je;(je=lt.parentNode)&&je.nodeType===1;)lt=je;We.push(lt)}for(var Je=0;Je=we&&(Ve+=2),Se>=ae&&(st+=2)}}finally{je&&(je.style.display=Ge)}}var Le={};function ce(Ce,Ne){for(var Be=Ne.length;--Be>=0;){var le=Ne[Be];Le.hasOwnProperty(le)?G.console&&console.warn("cannot override language handler %s",le):Le[le]=Ce}}function he(Ce,Ne){return Ce&&Le.hasOwnProperty(Ce)||(Ce=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ce(se([[d,/^[\s]+/,null,` \r -`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[S,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["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"]),ce(se([],[[F,/^[\s\S]+/]]),["uq.val"]),ce(Oe({keywords:m,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ce(Oe({keywords:"null,true,false"}),["json"]),ce(Oe({keywords:h,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ce(Oe({keywords:p,cStyleComments:!0}),["java"]),ce(Oe({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ce(Oe({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ce(Oe({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ce(Oe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ce(Oe({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ce(Oe({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ce(se([],[[w,/^[\s\S]+/]]),["regex"]);function re(Ce){var Ne=Ce.langExtension;try{var Be=g(Ce.sourceNode,Ce.pre),le=Be.sourceCode;Ce.sourceCode=le,Ce.spans=Be.spans,Ce.basePos=0,he(Ne,le)(Ce),Re(Ce)}catch(ve){G.console&&console.log(ve&&ve.stack||ve)}}function fe(Ce,Ne,Be){var le=Be||!1,ve=Ne||null,Se=document.createElement("div");Se.innerHTML="

      "+Ce+"
      ",Se=Se.firstChild,le&&Te(Se,le,!0);var Ie={langExtension:ve,numberLines:le,sourceNode:Se,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Ie),Se.innerHTML}function oe(Ce,Ne){var Be=Ne||document.body,le=Be.ownerDocument||document;function ve(_e){return Be.getElementsByTagName(_e)}for(var Se=[ve("pre"),ve("code"),ve("xmp")],Ie=[],We=0;We=0),j.set("isFirefox",X.indexOf("Firefox")>=0),j.set("isChrome",X.indexOf("Chrome")>=0),j.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class K{static has(_){return m.create(_)}static equals(_,M){return p.create(_,M)}static regex(_,M){return w.create(_,M)}static not(_){return l.create(_)}static and(..._){return A.create(_,null)}static or(..._){return C.create(_,null,!0)}static deserialize(_,M=!1){return _?this._deserializeOrExpression(_,M):void 0}static _deserializeOrExpression(_,M){let I=_.split("||");return C.create(I.map(g=>this._deserializeAndExpression(g,M)),null,!0)}static _deserializeAndExpression(_,M){let I=_.split("&&");return A.create(I.map(g=>this._deserializeOne(g,M)),null)}static _deserializeOne(_,M){if(_=_.trim(),_.indexOf("!=")>=0){let I=_.split("!=");return f.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("==")>=0){let I=_.split("==");return p.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("=~")>=0){let I=_.split("=~");return w.create(I[0].trim(),this._deserializeRegexValue(I[1],M))}if(_.indexOf(" in ")>=0){let I=_.split(" in ");return h.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const I=_.split(">=");return a.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const I=_.split(">");return s.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const I=_.split("<=");return E.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const I=_.split("<");return O.create(I[0].trim(),I[1].trim())}return/^\!\s*/.test(_)?l.create(_.substr(1).trim()):m.create(_)}static _deserializeValue(_,M){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let I=/^'([^']*)'$/.exec(_);return I?I[1].trim():_}static _deserializeRegexValue(_,M){if(Object(J.C)(_)){if(M)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let I=_.indexOf("/"),g=_.lastIndexOf("/");if(I===g||I<0){if(M)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let H=_.slice(I+1,g),$=_[g+1]==="i"?"i":"";try{return new RegExp(H,$)}catch(ne){if(M)throw new Error(`bad regexp-value '${_}', parse error: ${ne}`);return console.warn(`bad regexp-value '${_}', parse error: ${ne}`),null}}}function G(_,M){const I=_?_.substituteConstants():void 0,g=M?M.substituteConstants():void 0;return!I&&!g?!0:!I||!g?!1:I.equals(g)}function r(_,M){return _.cmp(M)}class L{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return v.INSTANCE}}L.INSTANCE=new L;class v{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}v.INSTANCE=new v;class m{constructor(_,M){this.key=_,this.negated=M,this.type=2}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?v.INSTANCE:L.INSTANCE:new m(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?v.INSTANCE:L.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}class p{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=4}static create(_,M,I=null){if(typeof M=="boolean")return M?m.create(_,I):l.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?v.INSTANCE:L.INSTANCE}return new p(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?v.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class h{constructor(_,M){this.key=_,this.valueKey=M,this.type=10,this.negated=null}static create(_,M){return new h(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const M=_.getValue(this.valueKey),I=_.getValue(this.key);return Array.isArray(M)?M.indexOf(I)>=0:typeof I=="string"&&typeof M=="object"&&M!==null?U.call(M,I):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(_){this._actual=_,this.type=11}static create(_){return new u(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=5}static create(_,M,I=null){if(typeof M=="boolean")return M?l.create(_,I):m.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?L.INSTANCE:v.INSTANCE}return new f(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?L.INSTANCE:v.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class l{constructor(_,M){this.key=_,this.negated=M,this.type=3}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?L.INSTANCE:v.INSTANCE:new l(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:v.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function o(_,M){if(typeof _=="string"){const I=parseFloat(_);isNaN(I)||(_=I)}return typeof _=="string"||typeof _=="number"?M(_):L.INSTANCE}class s{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=12}static create(_,M,I=null){return o(M,g=>new s(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 a{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=13}static create(_,M,I=null){return o(M,g=>new a(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class O{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=14}static create(_,M,I=null){return o(M,g=>new O(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))new E(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 w{constructor(_,M){this.key=_,this.regexp=M,this.type=7,this.negated=null}static create(_,M){return new w(_,M)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return MI?1:0}equals(_){if(_.type===this.type){const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return this.key===_.key&&M===I}return!1}substituteConstants(){return this}evaluate(_){let M=_.getValue(this.key);return this.regexp?this.regexp.test(M):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this)),this.negated}}class D{constructor(_){this._actual=_,this.type=8}static create(_){return new D(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(_){let M=null;for(let I=0,g=_.length;I_.expr.length)return 1;for(let M=0,I=this.expr.length;M1;){const H=I[I.length-1];if(H.type!==9)break;I.pop();const $=I.pop(),ne=I.length===0,se=C.create(H.expr.map(Oe=>A.create([Oe,$],null)),null,ne);se&&(I.push(se),I.sort(r))}return I.length===1?I[0]:new A(I,M)}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){const _=[];for(let M of this.expr)_.push(M.negate());this.negated=C.create(_,this,!0)}return this.negated}}class C{constructor(_,M){this.expr=_,this.negated=M,this.type=9}static create(_,M,I){return C._normalizeArr(_,M,I)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let M=0,I=this.expr.length;M_.serialize()).join(" || ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){let _=[];for(let M of this.expr)_.push(M.negate());for(;_.length>1;){const M=_.shift(),I=_.shift(),g=[];for(const $ of F(M))for(const ne of F(I))g.push(A.create([$,ne],null));const H=_.length===0;_.unshift(C.create(g,null,H))}this.negated=_[0]}return this.negated}}class T extends m{constructor(_,M,I){super(_,null);this._defaultValue=M,typeof I=="object"?T._info.push(Object.assign(Object.assign({},I),{key:_})):I!==!0&&T._info.push({key:_,description:I,type:M!=null?typeof M:void 0})}static all(){return T._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return p.create(this.key,_)}}T._info=[];const d=Object(P.c)("contextKeyService"),S="setContext";function y(_,M){return _M?1:0}function b(_,M,I,g){return _I?1:Mg?1:0}function B(_,M){if(M.type===6&&_.type!==9&&_.type!==6){for(const H of M.expr)if(_.equals(H))return!0}const I=_.negate(),g=F(I).concat(F(M));g.sort(r);for(let H=0;H=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var h=p.lastIndexOf(` +`):qe=qe.replace(/[ \t\r\n]+/g," "),le[Ie]=qe,Se[Ie<<1]=ve,ve+=qe.length,Se[Ie++<<1|1]=Ve)}}return We(Ce),{sourceCode:le.join("").replace(/\n$/,""),spans:Se}}function H(Ce,Ne,Be,le,ve){if(!Be)return;var Se={sourceNode:Ce,pre:1,langExtension:null,numberLines:null,sourceCode:Be,spans:null,basePos:Ne,decorations:null};le(Se),ve.push.apply(ve,Se.decorations)}var $=/\S/;function ne(Ce){for(var Ne=void 0,Be=Ce.firstChild;Be;Be=Be.nextSibling){var le=Be.nodeType;Ne=le===1?Ne?Ce:Be:le===3&&$.test(Be.nodeValue)?Ce:Ne}return Ne===Ce?void 0:Ne}function se(Ce,Ne){var Be={},le;(function(){for(var Ie=Ce.concat(Ne),We=[],Ve={},Qe=0,Je=Ie.length;Qe=0;)Be[qe.charAt(at)]=st;var Ue=st[1],ct=""+Ue;Ve.hasOwnProperty(ct)||(We.push(Ue),Ve[ct]=null)}We.push(/[\0-\uffff]/),le=I(We)})();var ve=Ne.length,Se=function(Ie){for(var We=Ie.sourceCode,Ve=Ie.basePos,Qe=Ie.sourceNode,Je=[Ve,c],st=0,qe=We.match(le)||[],at={},Ue=0,ct=qe.length;Ue=5&&je.substring(0,5)==="lang-",Ae&&!(Ge&&typeof Ge[1]=="string")&&(Ae=!1,je=b),Ae||(at[lt]=je)}var ae=st;if(st+=lt.length,!Ae)Je.push(Ve+ae,je);else{var ue=Ge[1],ce=lt.indexOf(ue),me=ce+ue.length;Ge[2]&&(me=lt.length-Ge[2].length,ce=me-ue.length);var xe=je.substring(5);H(Qe,Ve+ae,lt.substring(0,ce),Se,Je),H(Qe,Ve+ae+ce,ue,he(xe,ue),Je),H(Qe,Ve+ae+me,lt.substring(me),Se,Je)}}Ie.decorations=Je};return Se}function Oe(Ce){var Ne=[],Be=[];Ce.tripleQuotedStrings?Ne.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ce.multiLineStrings?Ne.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ne.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ce.verbatimStrings&&Be.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var le=Ce.hashComments;le&&(Ce.cStyleComments?(le>1?Ne.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ne.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Be.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ne.push([R,/^#[^\r\n]*/,null,"#"])),Ce.cStyleComments&&(Be.push([R,/^\/\/[^\r\n]*/,null]),Be.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=Ce.regexLiterals;if(ve){var Se=ve>1?"":` +\r`,Ie=Se?".":"[\\S\\s]",We="/(?=[^/*"+Se+"])(?:[^/\\x5B\\x5C"+Se+"]|\\x5C"+Ie+"|\\x5B(?:[^\\x5C\\x5D"+Se+"]|\\x5C"+Ie+")*(?:\\x5D|$))+/";Be.push(["lang-regex",RegExp("^"+M+"("+We+")")])}var Ve=Ce.types;Ve&&Be.push([A,Ve]);var Qe=(""+Ce.keywords).replace(/^ | $/g,"");Qe.length&&Be.push([D,new RegExp("^(?:"+Qe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ne.push([c,/^\s+/,null,` \r + \xA0`]);var Je="^.[^\\s\\w.$@'\"`/\\\\]*";return Ce.regexLiterals&&(Je+="(?!s*/)"),Be.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[T,new RegExp(Je),null]),se(Ne,Be)}var ge=Oe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Te(Ce,Ne,Be){for(var le=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Se=Ce.ownerDocument,Ie=Se.createElement("li");Ce.firstChild;)Ie.appendChild(Ce.firstChild);var We=[Ie];function Ve(Ue){var ct=Ue.nodeType;if(ct==1&&!le.test(Ue.className))if(Ue.nodeName==="br")Qe(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var lt=Ue.firstChild;lt;lt=lt.nextSibling)Ve(lt);else if((ct==3||ct==4)&&Be){var je=Ue.nodeValue,Ge=je.match(ve);if(Ge){var Ae=je.substring(0,Ge.index);Ue.nodeValue=Ae;var _e=je.substring(Ge.index+Ge[0].length);if(_e){var we=Ue.parentNode;we.insertBefore(Se.createTextNode(_e),Ue.nextSibling)}Qe(Ue),Ae||Ue.parentNode.removeChild(Ue)}}}function Qe(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ct(Ge,Ae){var _e=Ae?Ge.cloneNode(!1):Ge,we=Ge.parentNode;if(we){var ae=ct(we,1),ue=Ge.nextSibling;ae.appendChild(_e);for(var ce=ue;ce;ce=ue)ue=ce.nextSibling,ae.appendChild(ce)}return _e}for(var lt=ct(Ue.nextSibling,0),je;(je=lt.parentNode)&&je.nodeType===1;)lt=je;We.push(lt)}for(var Je=0;Je=we&&(Ve+=2),Se>=ae&&(st+=2)}}finally{je&&(je.style.display=Ge)}}var Le={};function de(Ce,Ne){for(var Be=Ne.length;--Be>=0;){var le=Ne[Be];Le.hasOwnProperty(le)?G.console&&console.warn("cannot override language handler %s",le):Le[le]=Ce}}function he(Ce,Ne){return Ce&&Le.hasOwnProperty(Ce)||(Ce=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),de(se([[c,/^[\s]+/,null,` \r +`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[S,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["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"]),de(se([],[[F,/^[\s\S]+/]]),["uq.val"]),de(Oe({keywords:m,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),de(Oe({keywords:"null,true,false"}),["json"]),de(Oe({keywords:h,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),de(Oe({keywords:p,cStyleComments:!0}),["java"]),de(Oe({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),de(Oe({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),de(Oe({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),de(Oe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),de(Oe({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),de(Oe({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),de(se([],[[w,/^[\s\S]+/]]),["regex"]);function re(Ce){var Ne=Ce.langExtension;try{var Be=g(Ce.sourceNode,Ce.pre),le=Be.sourceCode;Ce.sourceCode=le,Ce.spans=Be.spans,Ce.basePos=0,he(Ne,le)(Ce),Re(Ce)}catch(ve){G.console&&console.log(ve&&ve.stack||ve)}}function fe(Ce,Ne,Be){var le=Be||!1,ve=Ne||null,Se=document.createElement("div");Se.innerHTML="
      "+Ce+"
      ",Se=Se.firstChild,le&&Te(Se,le,!0);var Ie={langExtension:ve,numberLines:le,sourceNode:Se,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Ie),Se.innerHTML}function oe(Ce,Ne){var Be=Ne||document.body,le=Be.ownerDocument||document;function ve(_e){return Be.getElementsByTagName(_e)}for(var Se=[ve("pre"),ve("code"),ve("xmp")],Ie=[],We=0;We=0),j.set("isFirefox",X.indexOf("Firefox")>=0),j.set("isChrome",X.indexOf("Chrome")>=0),j.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class K{static has(_){return m.create(_)}static equals(_,M){return p.create(_,M)}static regex(_,M){return w.create(_,M)}static not(_){return l.create(_)}static and(..._){return A.create(_,null)}static or(..._){return C.create(_,null,!0)}static deserialize(_,M=!1){return _?this._deserializeOrExpression(_,M):void 0}static _deserializeOrExpression(_,M){let I=_.split("||");return C.create(I.map(g=>this._deserializeAndExpression(g,M)),null,!0)}static _deserializeAndExpression(_,M){let I=_.split("&&");return A.create(I.map(g=>this._deserializeOne(g,M)),null)}static _deserializeOne(_,M){if(_=_.trim(),_.indexOf("!=")>=0){let I=_.split("!=");return f.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("==")>=0){let I=_.split("==");return p.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("=~")>=0){let I=_.split("=~");return w.create(I[0].trim(),this._deserializeRegexValue(I[1],M))}if(_.indexOf(" in ")>=0){let I=_.split(" in ");return h.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const I=_.split(">=");return a.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const I=_.split(">");return s.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const I=_.split("<=");return E.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const I=_.split("<");return O.create(I[0].trim(),I[1].trim())}return/^\!\s*/.test(_)?l.create(_.substr(1).trim()):m.create(_)}static _deserializeValue(_,M){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let I=/^'([^']*)'$/.exec(_);return I?I[1].trim():_}static _deserializeRegexValue(_,M){if(Object(J.C)(_)){if(M)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let I=_.indexOf("/"),g=_.lastIndexOf("/");if(I===g||I<0){if(M)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let H=_.slice(I+1,g),$=_[g+1]==="i"?"i":"";try{return new RegExp(H,$)}catch(ne){if(M)throw new Error(`bad regexp-value '${_}', parse error: ${ne}`);return console.warn(`bad regexp-value '${_}', parse error: ${ne}`),null}}}function G(_,M){const I=_?_.substituteConstants():void 0,g=M?M.substituteConstants():void 0;return!I&&!g?!0:!I||!g?!1:I.equals(g)}function r(_,M){return _.cmp(M)}class L{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return v.INSTANCE}}L.INSTANCE=new L;class v{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}v.INSTANCE=new v;class m{constructor(_,M){this.key=_,this.negated=M,this.type=2}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?v.INSTANCE:L.INSTANCE:new m(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?v.INSTANCE:L.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}class p{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=4}static create(_,M,I=null){if(typeof M=="boolean")return M?m.create(_,I):l.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?v.INSTANCE:L.INSTANCE}return new p(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?v.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class h{constructor(_,M){this.key=_,this.valueKey=M,this.type=10,this.negated=null}static create(_,M){return new h(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const M=_.getValue(this.valueKey),I=_.getValue(this.key);return Array.isArray(M)?M.indexOf(I)>=0:typeof I=="string"&&typeof M=="object"&&M!==null?U.call(M,I):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(_){this._actual=_,this.type=11}static create(_){return new u(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=5}static create(_,M,I=null){if(typeof M=="boolean")return M?l.create(_,I):m.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?L.INSTANCE:v.INSTANCE}return new f(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?L.INSTANCE:v.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class l{constructor(_,M){this.key=_,this.negated=M,this.type=3}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?L.INSTANCE:v.INSTANCE:new l(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:v.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function o(_,M){if(typeof _=="string"){const I=parseFloat(_);isNaN(I)||(_=I)}return typeof _=="string"||typeof _=="number"?M(_):L.INSTANCE}class s{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=12}static create(_,M,I=null){return o(M,g=>new s(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 a{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=13}static create(_,M,I=null){return o(M,g=>new a(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class O{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=14}static create(_,M,I=null){return o(M,g=>new O(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))new E(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 w{constructor(_,M){this.key=_,this.regexp=M,this.type=7,this.negated=null}static create(_,M){return new w(_,M)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return MI?1:0}equals(_){if(_.type===this.type){const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return this.key===_.key&&M===I}return!1}substituteConstants(){return this}evaluate(_){let M=_.getValue(this.key);return this.regexp?this.regexp.test(M):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this)),this.negated}}class D{constructor(_){this._actual=_,this.type=8}static create(_){return new D(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(_){let M=null;for(let I=0,g=_.length;I_.expr.length)return 1;for(let M=0,I=this.expr.length;M1;){const H=I[I.length-1];if(H.type!==9)break;I.pop();const $=I.pop(),ne=I.length===0,se=C.create(H.expr.map(Oe=>A.create([Oe,$],null)),null,ne);se&&(I.push(se),I.sort(r))}return I.length===1?I[0]:new A(I,M)}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){const _=[];for(let M of this.expr)_.push(M.negate());this.negated=C.create(_,this,!0)}return this.negated}}class C{constructor(_,M){this.expr=_,this.negated=M,this.type=9}static create(_,M,I){return C._normalizeArr(_,M,I)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let M=0,I=this.expr.length;M_.serialize()).join(" || ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){let _=[];for(let M of this.expr)_.push(M.negate());for(;_.length>1;){const M=_.shift(),I=_.shift(),g=[];for(const $ of F(M))for(const ne of F(I))g.push(A.create([$,ne],null));const H=_.length===0;_.unshift(C.create(g,null,H))}this.negated=_[0]}return this.negated}}class T extends m{constructor(_,M,I){super(_,null);this._defaultValue=M,typeof I=="object"?T._info.push(Object.assign(Object.assign({},I),{key:_})):I!==!0&&T._info.push({key:_,description:I,type:M!=null?typeof M:void 0})}static all(){return T._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return p.create(this.key,_)}}T._info=[];const c=Object(P.c)("contextKeyService"),S="setContext";function y(_,M){return _M?1:0}function b(_,M,I,g){return _I?1:Mg?1:0}function B(_,M){if(M.type===6&&_.type!==9&&_.type!==6){for(const H of M.expr)if(_.equals(H))return!0}const I=_.negate(),g=F(I).concat(F(M));g.sort(r);for(let H=0;H=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var h=p.lastIndexOf(` `);h!==-1?this.__character_count=p.length-h:this.__character_count+=p.length},L.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function v(p,h){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),h=h||"",p.indent_level>0&&(h=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}v.prototype.get_indent_size=function(p,h){var u=this.__base_string_length;return h=h||0,p<0&&(u=0),u+=p*this.__indent_size,u+=h,u},v.prototype.get_indent_string=function(p,h){var u=this.__base_string;return h=h||0,p<0&&(p=0,u=""),h+=p*this.__indent_size,this.__ensure_cache(h),u+=this.__cache[h],u},v.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var p=this.__cache.length,h=0,u="";this.__indent_size&&p>=this.__indent_size&&(h=Math.floor(p/this.__indent_size),p-=h*this.__indent_size,u=new Array(h+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,h){this.__indent_cache=new v(p,h),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.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()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,h){return this.__indent_cache.get_indent_string(p,h)},m.prototype.get_indent_size=function(p,h){return this.__indent_cache.get_indent_size(p,h)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===` `&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(` `);return p!==` @@ -341,31 +341,31 @@ You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selec `)break;this._ch=this._input.next()}return R},w.prototype.eatWhitespace=function(D){for(var R=s.test(this._input.peek()),A=0;s.test(this._input.peek());)this._ch=this._input.next(),D&&this._ch===` `&&((A===0||A0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D=this._source_text,R=this._options.eol;R==="auto"&&(R=` `,D&&l.test(D||"")&&(R=D.match(l)[0])),D=D.replace(o,` -`);var A=D.match(/^[\t ]*/)[0];this._output=new p(this._options,A),this._input=new h(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,T=!1,d=!1,S=!1,y=!1,b=!1,B=!1,F=this._ch,_=!1,M,I,g;M=this._input.read(a),I=M!=="",g=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var H=this._input.read(O),$=f.get_directives(H);$&&$.ignore==="start"&&(H+=f.readIgnored(this._input)),this.print_string(H),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(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ne.match(/[ :]$/)&&(ne=this.eatString(": ").replace(/\s$/,""),this.print_string(ne),this._output.space_before_token=!0),ne=ne.replace(/\s$/,""),ne==="extend"?y=!0:ne==="import"&&(b=!0),ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,ne in this.CONDITIONAL_GROUP_RULE&&(S=!0)):!T&&C===0&&ne.indexOf(":")!==-1&&(d=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")d&&(d=!1,this.outdent()),S?(S=!1,T=this._indentLevel>=this._nestedLevel):T=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&T&&(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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),b=!1,y=!1,d&&(this.outdent(),d=!1),this.print_string(this._ch),T=!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 se=0;se"||this._ch==="+"||this._ch==="~")&&!d&&C===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(I),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 Te=g==='"'||g==="'";this.preserveSingleSpace(Te||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&_&&this._output.add_new_line()}var Re=this._output.get_code(R);return Re},r.exports.Beautifier=w},function(r,L,v){var m=v(6).Options;function p(h){m.call(this,h,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l` ${v} `).trim():""}class K{constructor(r,L,v){this.id=r,this.definition=L,this.description=v,P.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var G;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+";const L=new RegExp(`^(${r.iconNameExpression})(${r.iconModifierExpression})?$`);function v(h){if(h instanceof K)return["codicon","codicon-"+h.id];const u=L.exec(h.id);if(!u)return v(K.error);let[,f,l]=u;const o=["codicon","codicon-"+f];return l&&o.push("codicon-modifier-"+l.substr(1)),o}r.asClassNameArray=v;function m(h){return v(h).join(" ")}r.asClassName=m;function p(h){return"."+v(h).join(".")}r.asCSSSelector=p})(G||(G={})),function(r){r.add=new r("add",{fontCharacter:"\\ea60"}),r.plus=new r("plus",r.add.definition),r.gistNew=new r("gist-new",r.add.definition),r.repoCreate=new r("repo-create",r.add.definition),r.lightbulb=new r("lightbulb",{fontCharacter:"\\ea61"}),r.lightBulb=new r("light-bulb",{fontCharacter:"\\ea61"}),r.repo=new r("repo",{fontCharacter:"\\ea62"}),r.repoDelete=new r("repo-delete",{fontCharacter:"\\ea62"}),r.gistFork=new r("gist-fork",{fontCharacter:"\\ea63"}),r.repoForked=new r("repo-forked",{fontCharacter:"\\ea63"}),r.gitPullRequest=new r("git-pull-request",{fontCharacter:"\\ea64"}),r.gitPullRequestAbandoned=new r("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),r.recordKeys=new r("record-keys",{fontCharacter:"\\ea65"}),r.keyboard=new r("keyboard",{fontCharacter:"\\ea65"}),r.tag=new r("tag",{fontCharacter:"\\ea66"}),r.tagAdd=new r("tag-add",{fontCharacter:"\\ea66"}),r.tagRemove=new r("tag-remove",{fontCharacter:"\\ea66"}),r.person=new r("person",{fontCharacter:"\\ea67"}),r.personFollow=new r("person-follow",{fontCharacter:"\\ea67"}),r.personOutline=new r("person-outline",{fontCharacter:"\\ea67"}),r.personFilled=new r("person-filled",{fontCharacter:"\\ea67"}),r.gitBranch=new r("git-branch",{fontCharacter:"\\ea68"}),r.gitBranchCreate=new r("git-branch-create",{fontCharacter:"\\ea68"}),r.gitBranchDelete=new r("git-branch-delete",{fontCharacter:"\\ea68"}),r.sourceControl=new r("source-control",{fontCharacter:"\\ea68"}),r.mirror=new r("mirror",{fontCharacter:"\\ea69"}),r.mirrorPublic=new r("mirror-public",{fontCharacter:"\\ea69"}),r.star=new r("star",{fontCharacter:"\\ea6a"}),r.starAdd=new r("star-add",{fontCharacter:"\\ea6a"}),r.starDelete=new r("star-delete",{fontCharacter:"\\ea6a"}),r.starEmpty=new r("star-empty",{fontCharacter:"\\ea6a"}),r.comment=new r("comment",{fontCharacter:"\\ea6b"}),r.commentAdd=new r("comment-add",{fontCharacter:"\\ea6b"}),r.alert=new r("alert",{fontCharacter:"\\ea6c"}),r.warning=new r("warning",{fontCharacter:"\\ea6c"}),r.search=new r("search",{fontCharacter:"\\ea6d"}),r.searchSave=new r("search-save",{fontCharacter:"\\ea6d"}),r.logOut=new r("log-out",{fontCharacter:"\\ea6e"}),r.signOut=new r("sign-out",{fontCharacter:"\\ea6e"}),r.logIn=new r("log-in",{fontCharacter:"\\ea6f"}),r.signIn=new r("sign-in",{fontCharacter:"\\ea6f"}),r.eye=new r("eye",{fontCharacter:"\\ea70"}),r.eyeUnwatch=new r("eye-unwatch",{fontCharacter:"\\ea70"}),r.eyeWatch=new r("eye-watch",{fontCharacter:"\\ea70"}),r.circleFilled=new r("circle-filled",{fontCharacter:"\\ea71"}),r.primitiveDot=new r("primitive-dot",{fontCharacter:"\\ea71"}),r.closeDirty=new r("close-dirty",{fontCharacter:"\\ea71"}),r.debugBreakpoint=new r("debug-breakpoint",{fontCharacter:"\\ea71"}),r.debugBreakpointDisabled=new r("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),r.debugHint=new r("debug-hint",{fontCharacter:"\\ea71"}),r.primitiveSquare=new r("primitive-square",{fontCharacter:"\\ea72"}),r.edit=new r("edit",{fontCharacter:"\\ea73"}),r.pencil=new r("pencil",{fontCharacter:"\\ea73"}),r.info=new r("info",{fontCharacter:"\\ea74"}),r.issueOpened=new r("issue-opened",{fontCharacter:"\\ea74"}),r.gistPrivate=new r("gist-private",{fontCharacter:"\\ea75"}),r.gitForkPrivate=new r("git-fork-private",{fontCharacter:"\\ea75"}),r.lock=new r("lock",{fontCharacter:"\\ea75"}),r.mirrorPrivate=new r("mirror-private",{fontCharacter:"\\ea75"}),r.close=new r("close",{fontCharacter:"\\ea76"}),r.removeClose=new r("remove-close",{fontCharacter:"\\ea76"}),r.x=new r("x",{fontCharacter:"\\ea76"}),r.repoSync=new r("repo-sync",{fontCharacter:"\\ea77"}),r.sync=new r("sync",{fontCharacter:"\\ea77"}),r.clone=new r("clone",{fontCharacter:"\\ea78"}),r.desktopDownload=new r("desktop-download",{fontCharacter:"\\ea78"}),r.beaker=new r("beaker",{fontCharacter:"\\ea79"}),r.microscope=new r("microscope",{fontCharacter:"\\ea79"}),r.vm=new r("vm",{fontCharacter:"\\ea7a"}),r.deviceDesktop=new r("device-desktop",{fontCharacter:"\\ea7a"}),r.file=new r("file",{fontCharacter:"\\ea7b"}),r.fileText=new r("file-text",{fontCharacter:"\\ea7b"}),r.more=new r("more",{fontCharacter:"\\ea7c"}),r.ellipsis=new r("ellipsis",{fontCharacter:"\\ea7c"}),r.kebabHorizontal=new r("kebab-horizontal",{fontCharacter:"\\ea7c"}),r.mailReply=new r("mail-reply",{fontCharacter:"\\ea7d"}),r.reply=new r("reply",{fontCharacter:"\\ea7d"}),r.organization=new r("organization",{fontCharacter:"\\ea7e"}),r.organizationFilled=new r("organization-filled",{fontCharacter:"\\ea7e"}),r.organizationOutline=new r("organization-outline",{fontCharacter:"\\ea7e"}),r.newFile=new r("new-file",{fontCharacter:"\\ea7f"}),r.fileAdd=new r("file-add",{fontCharacter:"\\ea7f"}),r.newFolder=new r("new-folder",{fontCharacter:"\\ea80"}),r.fileDirectoryCreate=new r("file-directory-create",{fontCharacter:"\\ea80"}),r.trash=new r("trash",{fontCharacter:"\\ea81"}),r.trashcan=new r("trashcan",{fontCharacter:"\\ea81"}),r.history=new r("history",{fontCharacter:"\\ea82"}),r.clock=new r("clock",{fontCharacter:"\\ea82"}),r.folder=new r("folder",{fontCharacter:"\\ea83"}),r.fileDirectory=new r("file-directory",{fontCharacter:"\\ea83"}),r.symbolFolder=new r("symbol-folder",{fontCharacter:"\\ea83"}),r.logoGithub=new r("logo-github",{fontCharacter:"\\ea84"}),r.markGithub=new r("mark-github",{fontCharacter:"\\ea84"}),r.github=new r("github",{fontCharacter:"\\ea84"}),r.terminal=new r("terminal",{fontCharacter:"\\ea85"}),r.console=new r("console",{fontCharacter:"\\ea85"}),r.repl=new r("repl",{fontCharacter:"\\ea85"}),r.zap=new r("zap",{fontCharacter:"\\ea86"}),r.symbolEvent=new r("symbol-event",{fontCharacter:"\\ea86"}),r.error=new r("error",{fontCharacter:"\\ea87"}),r.stop=new r("stop",{fontCharacter:"\\ea87"}),r.variable=new r("variable",{fontCharacter:"\\ea88"}),r.symbolVariable=new r("symbol-variable",{fontCharacter:"\\ea88"}),r.array=new r("array",{fontCharacter:"\\ea8a"}),r.symbolArray=new r("symbol-array",{fontCharacter:"\\ea8a"}),r.symbolModule=new r("symbol-module",{fontCharacter:"\\ea8b"}),r.symbolPackage=new r("symbol-package",{fontCharacter:"\\ea8b"}),r.symbolNamespace=new r("symbol-namespace",{fontCharacter:"\\ea8b"}),r.symbolObject=new r("symbol-object",{fontCharacter:"\\ea8b"}),r.symbolMethod=new r("symbol-method",{fontCharacter:"\\ea8c"}),r.symbolFunction=new r("symbol-function",{fontCharacter:"\\ea8c"}),r.symbolConstructor=new r("symbol-constructor",{fontCharacter:"\\ea8c"}),r.symbolBoolean=new r("symbol-boolean",{fontCharacter:"\\ea8f"}),r.symbolNull=new r("symbol-null",{fontCharacter:"\\ea8f"}),r.symbolNumeric=new r("symbol-numeric",{fontCharacter:"\\ea90"}),r.symbolNumber=new r("symbol-number",{fontCharacter:"\\ea90"}),r.symbolStructure=new r("symbol-structure",{fontCharacter:"\\ea91"}),r.symbolStruct=new r("symbol-struct",{fontCharacter:"\\ea91"}),r.symbolParameter=new r("symbol-parameter",{fontCharacter:"\\ea92"}),r.symbolTypeParameter=new r("symbol-type-parameter",{fontCharacter:"\\ea92"}),r.symbolKey=new r("symbol-key",{fontCharacter:"\\ea93"}),r.symbolText=new r("symbol-text",{fontCharacter:"\\ea93"}),r.symbolReference=new r("symbol-reference",{fontCharacter:"\\ea94"}),r.goToFile=new r("go-to-file",{fontCharacter:"\\ea94"}),r.symbolEnum=new r("symbol-enum",{fontCharacter:"\\ea95"}),r.symbolValue=new r("symbol-value",{fontCharacter:"\\ea95"}),r.symbolRuler=new r("symbol-ruler",{fontCharacter:"\\ea96"}),r.symbolUnit=new r("symbol-unit",{fontCharacter:"\\ea96"}),r.activateBreakpoints=new r("activate-breakpoints",{fontCharacter:"\\ea97"}),r.archive=new r("archive",{fontCharacter:"\\ea98"}),r.arrowBoth=new r("arrow-both",{fontCharacter:"\\ea99"}),r.arrowDown=new r("arrow-down",{fontCharacter:"\\ea9a"}),r.arrowLeft=new r("arrow-left",{fontCharacter:"\\ea9b"}),r.arrowRight=new r("arrow-right",{fontCharacter:"\\ea9c"}),r.arrowSmallDown=new r("arrow-small-down",{fontCharacter:"\\ea9d"}),r.arrowSmallLeft=new r("arrow-small-left",{fontCharacter:"\\ea9e"}),r.arrowSmallRight=new r("arrow-small-right",{fontCharacter:"\\ea9f"}),r.arrowSmallUp=new r("arrow-small-up",{fontCharacter:"\\eaa0"}),r.arrowUp=new r("arrow-up",{fontCharacter:"\\eaa1"}),r.bell=new r("bell",{fontCharacter:"\\eaa2"}),r.bold=new r("bold",{fontCharacter:"\\eaa3"}),r.book=new r("book",{fontCharacter:"\\eaa4"}),r.bookmark=new r("bookmark",{fontCharacter:"\\eaa5"}),r.debugBreakpointConditionalUnverified=new r("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),r.debugBreakpointConditional=new r("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),r.debugBreakpointConditionalDisabled=new r("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),r.debugBreakpointDataUnverified=new r("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),r.debugBreakpointData=new r("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),r.debugBreakpointDataDisabled=new r("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),r.debugBreakpointLogUnverified=new r("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),r.debugBreakpointLog=new r("debug-breakpoint-log",{fontCharacter:"\\eaab"}),r.debugBreakpointLogDisabled=new r("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),r.briefcase=new r("briefcase",{fontCharacter:"\\eaac"}),r.broadcast=new r("broadcast",{fontCharacter:"\\eaad"}),r.browser=new r("browser",{fontCharacter:"\\eaae"}),r.bug=new r("bug",{fontCharacter:"\\eaaf"}),r.calendar=new r("calendar",{fontCharacter:"\\eab0"}),r.caseSensitive=new r("case-sensitive",{fontCharacter:"\\eab1"}),r.check=new r("check",{fontCharacter:"\\eab2"}),r.checklist=new r("checklist",{fontCharacter:"\\eab3"}),r.chevronDown=new r("chevron-down",{fontCharacter:"\\eab4"}),r.dropDownButton=new r("drop-down-button",r.chevronDown.definition),r.chevronLeft=new r("chevron-left",{fontCharacter:"\\eab5"}),r.chevronRight=new r("chevron-right",{fontCharacter:"\\eab6"}),r.chevronUp=new r("chevron-up",{fontCharacter:"\\eab7"}),r.chromeClose=new r("chrome-close",{fontCharacter:"\\eab8"}),r.chromeMaximize=new r("chrome-maximize",{fontCharacter:"\\eab9"}),r.chromeMinimize=new r("chrome-minimize",{fontCharacter:"\\eaba"}),r.chromeRestore=new r("chrome-restore",{fontCharacter:"\\eabb"}),r.circleOutline=new r("circle-outline",{fontCharacter:"\\eabc"}),r.debugBreakpointUnverified=new r("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),r.circleSlash=new r("circle-slash",{fontCharacter:"\\eabd"}),r.circuitBoard=new r("circuit-board",{fontCharacter:"\\eabe"}),r.clearAll=new r("clear-all",{fontCharacter:"\\eabf"}),r.clippy=new r("clippy",{fontCharacter:"\\eac0"}),r.closeAll=new r("close-all",{fontCharacter:"\\eac1"}),r.cloudDownload=new r("cloud-download",{fontCharacter:"\\eac2"}),r.cloudUpload=new r("cloud-upload",{fontCharacter:"\\eac3"}),r.code=new r("code",{fontCharacter:"\\eac4"}),r.collapseAll=new r("collapse-all",{fontCharacter:"\\eac5"}),r.colorMode=new r("color-mode",{fontCharacter:"\\eac6"}),r.commentDiscussion=new r("comment-discussion",{fontCharacter:"\\eac7"}),r.compareChanges=new r("compare-changes",{fontCharacter:"\\eafd"}),r.creditCard=new r("credit-card",{fontCharacter:"\\eac9"}),r.dash=new r("dash",{fontCharacter:"\\eacc"}),r.dashboard=new r("dashboard",{fontCharacter:"\\eacd"}),r.database=new r("database",{fontCharacter:"\\eace"}),r.debugContinue=new r("debug-continue",{fontCharacter:"\\eacf"}),r.debugDisconnect=new r("debug-disconnect",{fontCharacter:"\\ead0"}),r.debugPause=new r("debug-pause",{fontCharacter:"\\ead1"}),r.debugRestart=new r("debug-restart",{fontCharacter:"\\ead2"}),r.debugStart=new r("debug-start",{fontCharacter:"\\ead3"}),r.debugStepInto=new r("debug-step-into",{fontCharacter:"\\ead4"}),r.debugStepOut=new r("debug-step-out",{fontCharacter:"\\ead5"}),r.debugStepOver=new r("debug-step-over",{fontCharacter:"\\ead6"}),r.debugStop=new r("debug-stop",{fontCharacter:"\\ead7"}),r.debug=new r("debug",{fontCharacter:"\\ead8"}),r.deviceCameraVideo=new r("device-camera-video",{fontCharacter:"\\ead9"}),r.deviceCamera=new r("device-camera",{fontCharacter:"\\eada"}),r.deviceMobile=new r("device-mobile",{fontCharacter:"\\eadb"}),r.diffAdded=new r("diff-added",{fontCharacter:"\\eadc"}),r.diffIgnored=new r("diff-ignored",{fontCharacter:"\\eadd"}),r.diffModified=new r("diff-modified",{fontCharacter:"\\eade"}),r.diffRemoved=new r("diff-removed",{fontCharacter:"\\eadf"}),r.diffRenamed=new r("diff-renamed",{fontCharacter:"\\eae0"}),r.diff=new r("diff",{fontCharacter:"\\eae1"}),r.discard=new r("discard",{fontCharacter:"\\eae2"}),r.editorLayout=new r("editor-layout",{fontCharacter:"\\eae3"}),r.emptyWindow=new r("empty-window",{fontCharacter:"\\eae4"}),r.exclude=new r("exclude",{fontCharacter:"\\eae5"}),r.extensions=new r("extensions",{fontCharacter:"\\eae6"}),r.eyeClosed=new r("eye-closed",{fontCharacter:"\\eae7"}),r.fileBinary=new r("file-binary",{fontCharacter:"\\eae8"}),r.fileCode=new r("file-code",{fontCharacter:"\\eae9"}),r.fileMedia=new r("file-media",{fontCharacter:"\\eaea"}),r.filePdf=new r("file-pdf",{fontCharacter:"\\eaeb"}),r.fileSubmodule=new r("file-submodule",{fontCharacter:"\\eaec"}),r.fileSymlinkDirectory=new r("file-symlink-directory",{fontCharacter:"\\eaed"}),r.fileSymlinkFile=new r("file-symlink-file",{fontCharacter:"\\eaee"}),r.fileZip=new r("file-zip",{fontCharacter:"\\eaef"}),r.files=new r("files",{fontCharacter:"\\eaf0"}),r.filter=new r("filter",{fontCharacter:"\\eaf1"}),r.flame=new r("flame",{fontCharacter:"\\eaf2"}),r.foldDown=new r("fold-down",{fontCharacter:"\\eaf3"}),r.foldUp=new r("fold-up",{fontCharacter:"\\eaf4"}),r.fold=new r("fold",{fontCharacter:"\\eaf5"}),r.folderActive=new r("folder-active",{fontCharacter:"\\eaf6"}),r.folderOpened=new r("folder-opened",{fontCharacter:"\\eaf7"}),r.gear=new r("gear",{fontCharacter:"\\eaf8"}),r.gift=new r("gift",{fontCharacter:"\\eaf9"}),r.gistSecret=new r("gist-secret",{fontCharacter:"\\eafa"}),r.gist=new r("gist",{fontCharacter:"\\eafb"}),r.gitCommit=new r("git-commit",{fontCharacter:"\\eafc"}),r.gitCompare=new r("git-compare",{fontCharacter:"\\eafd"}),r.gitMerge=new r("git-merge",{fontCharacter:"\\eafe"}),r.githubAction=new r("github-action",{fontCharacter:"\\eaff"}),r.githubAlt=new r("github-alt",{fontCharacter:"\\eb00"}),r.globe=new r("globe",{fontCharacter:"\\eb01"}),r.grabber=new r("grabber",{fontCharacter:"\\eb02"}),r.graph=new r("graph",{fontCharacter:"\\eb03"}),r.gripper=new r("gripper",{fontCharacter:"\\eb04"}),r.heart=new r("heart",{fontCharacter:"\\eb05"}),r.home=new r("home",{fontCharacter:"\\eb06"}),r.horizontalRule=new r("horizontal-rule",{fontCharacter:"\\eb07"}),r.hubot=new r("hubot",{fontCharacter:"\\eb08"}),r.inbox=new r("inbox",{fontCharacter:"\\eb09"}),r.issueClosed=new r("issue-closed",{fontCharacter:"\\eba4"}),r.issueReopened=new r("issue-reopened",{fontCharacter:"\\eb0b"}),r.issues=new r("issues",{fontCharacter:"\\eb0c"}),r.italic=new r("italic",{fontCharacter:"\\eb0d"}),r.jersey=new r("jersey",{fontCharacter:"\\eb0e"}),r.json=new r("json",{fontCharacter:"\\eb0f"}),r.kebabVertical=new r("kebab-vertical",{fontCharacter:"\\eb10"}),r.key=new r("key",{fontCharacter:"\\eb11"}),r.law=new r("law",{fontCharacter:"\\eb12"}),r.lightbulbAutofix=new r("lightbulb-autofix",{fontCharacter:"\\eb13"}),r.linkExternal=new r("link-external",{fontCharacter:"\\eb14"}),r.link=new r("link",{fontCharacter:"\\eb15"}),r.listOrdered=new r("list-ordered",{fontCharacter:"\\eb16"}),r.listUnordered=new r("list-unordered",{fontCharacter:"\\eb17"}),r.liveShare=new r("live-share",{fontCharacter:"\\eb18"}),r.loading=new r("loading",{fontCharacter:"\\eb19"}),r.location=new r("location",{fontCharacter:"\\eb1a"}),r.mailRead=new r("mail-read",{fontCharacter:"\\eb1b"}),r.mail=new r("mail",{fontCharacter:"\\eb1c"}),r.markdown=new r("markdown",{fontCharacter:"\\eb1d"}),r.megaphone=new r("megaphone",{fontCharacter:"\\eb1e"}),r.mention=new r("mention",{fontCharacter:"\\eb1f"}),r.milestone=new r("milestone",{fontCharacter:"\\eb20"}),r.mortarBoard=new r("mortar-board",{fontCharacter:"\\eb21"}),r.move=new r("move",{fontCharacter:"\\eb22"}),r.multipleWindows=new r("multiple-windows",{fontCharacter:"\\eb23"}),r.mute=new r("mute",{fontCharacter:"\\eb24"}),r.noNewline=new r("no-newline",{fontCharacter:"\\eb25"}),r.note=new r("note",{fontCharacter:"\\eb26"}),r.octoface=new r("octoface",{fontCharacter:"\\eb27"}),r.openPreview=new r("open-preview",{fontCharacter:"\\eb28"}),r.package_=new r("package",{fontCharacter:"\\eb29"}),r.paintcan=new r("paintcan",{fontCharacter:"\\eb2a"}),r.pin=new r("pin",{fontCharacter:"\\eb2b"}),r.play=new r("play",{fontCharacter:"\\eb2c"}),r.run=new r("run",{fontCharacter:"\\eb2c"}),r.plug=new r("plug",{fontCharacter:"\\eb2d"}),r.preserveCase=new r("preserve-case",{fontCharacter:"\\eb2e"}),r.preview=new r("preview",{fontCharacter:"\\eb2f"}),r.project=new r("project",{fontCharacter:"\\eb30"}),r.pulse=new r("pulse",{fontCharacter:"\\eb31"}),r.question=new r("question",{fontCharacter:"\\eb32"}),r.quote=new r("quote",{fontCharacter:"\\eb33"}),r.radioTower=new r("radio-tower",{fontCharacter:"\\eb34"}),r.reactions=new r("reactions",{fontCharacter:"\\eb35"}),r.references=new r("references",{fontCharacter:"\\eb36"}),r.refresh=new r("refresh",{fontCharacter:"\\eb37"}),r.regex=new r("regex",{fontCharacter:"\\eb38"}),r.remoteExplorer=new r("remote-explorer",{fontCharacter:"\\eb39"}),r.remote=new r("remote",{fontCharacter:"\\eb3a"}),r.remove=new r("remove",{fontCharacter:"\\eb3b"}),r.replaceAll=new r("replace-all",{fontCharacter:"\\eb3c"}),r.replace=new r("replace",{fontCharacter:"\\eb3d"}),r.repoClone=new r("repo-clone",{fontCharacter:"\\eb3e"}),r.repoForcePush=new r("repo-force-push",{fontCharacter:"\\eb3f"}),r.repoPull=new r("repo-pull",{fontCharacter:"\\eb40"}),r.repoPush=new r("repo-push",{fontCharacter:"\\eb41"}),r.report=new r("report",{fontCharacter:"\\eb42"}),r.requestChanges=new r("request-changes",{fontCharacter:"\\eb43"}),r.rocket=new r("rocket",{fontCharacter:"\\eb44"}),r.rootFolderOpened=new r("root-folder-opened",{fontCharacter:"\\eb45"}),r.rootFolder=new r("root-folder",{fontCharacter:"\\eb46"}),r.rss=new r("rss",{fontCharacter:"\\eb47"}),r.ruby=new r("ruby",{fontCharacter:"\\eb48"}),r.saveAll=new r("save-all",{fontCharacter:"\\eb49"}),r.saveAs=new r("save-as",{fontCharacter:"\\eb4a"}),r.save=new r("save",{fontCharacter:"\\eb4b"}),r.screenFull=new r("screen-full",{fontCharacter:"\\eb4c"}),r.screenNormal=new r("screen-normal",{fontCharacter:"\\eb4d"}),r.searchStop=new r("search-stop",{fontCharacter:"\\eb4e"}),r.server=new r("server",{fontCharacter:"\\eb50"}),r.settingsGear=new r("settings-gear",{fontCharacter:"\\eb51"}),r.settings=new r("settings",{fontCharacter:"\\eb52"}),r.shield=new r("shield",{fontCharacter:"\\eb53"}),r.smiley=new r("smiley",{fontCharacter:"\\eb54"}),r.sortPrecedence=new r("sort-precedence",{fontCharacter:"\\eb55"}),r.splitHorizontal=new r("split-horizontal",{fontCharacter:"\\eb56"}),r.splitVertical=new r("split-vertical",{fontCharacter:"\\eb57"}),r.squirrel=new r("squirrel",{fontCharacter:"\\eb58"}),r.starFull=new r("star-full",{fontCharacter:"\\eb59"}),r.starHalf=new r("star-half",{fontCharacter:"\\eb5a"}),r.symbolClass=new r("symbol-class",{fontCharacter:"\\eb5b"}),r.symbolColor=new r("symbol-color",{fontCharacter:"\\eb5c"}),r.symbolConstant=new r("symbol-constant",{fontCharacter:"\\eb5d"}),r.symbolEnumMember=new r("symbol-enum-member",{fontCharacter:"\\eb5e"}),r.symbolField=new r("symbol-field",{fontCharacter:"\\eb5f"}),r.symbolFile=new r("symbol-file",{fontCharacter:"\\eb60"}),r.symbolInterface=new r("symbol-interface",{fontCharacter:"\\eb61"}),r.symbolKeyword=new r("symbol-keyword",{fontCharacter:"\\eb62"}),r.symbolMisc=new r("symbol-misc",{fontCharacter:"\\eb63"}),r.symbolOperator=new r("symbol-operator",{fontCharacter:"\\eb64"}),r.symbolProperty=new r("symbol-property",{fontCharacter:"\\eb65"}),r.wrench=new r("wrench",{fontCharacter:"\\eb65"}),r.wrenchSubaction=new r("wrench-subaction",{fontCharacter:"\\eb65"}),r.symbolSnippet=new r("symbol-snippet",{fontCharacter:"\\eb66"}),r.tasklist=new r("tasklist",{fontCharacter:"\\eb67"}),r.telescope=new r("telescope",{fontCharacter:"\\eb68"}),r.textSize=new r("text-size",{fontCharacter:"\\eb69"}),r.threeBars=new r("three-bars",{fontCharacter:"\\eb6a"}),r.thumbsdown=new r("thumbsdown",{fontCharacter:"\\eb6b"}),r.thumbsup=new r("thumbsup",{fontCharacter:"\\eb6c"}),r.tools=new r("tools",{fontCharacter:"\\eb6d"}),r.triangleDown=new r("triangle-down",{fontCharacter:"\\eb6e"}),r.triangleLeft=new r("triangle-left",{fontCharacter:"\\eb6f"}),r.triangleRight=new r("triangle-right",{fontCharacter:"\\eb70"}),r.triangleUp=new r("triangle-up",{fontCharacter:"\\eb71"}),r.twitter=new r("twitter",{fontCharacter:"\\eb72"}),r.unfold=new r("unfold",{fontCharacter:"\\eb73"}),r.unlock=new r("unlock",{fontCharacter:"\\eb74"}),r.unmute=new r("unmute",{fontCharacter:"\\eb75"}),r.unverified=new r("unverified",{fontCharacter:"\\eb76"}),r.verified=new r("verified",{fontCharacter:"\\eb77"}),r.versions=new r("versions",{fontCharacter:"\\eb78"}),r.vmActive=new r("vm-active",{fontCharacter:"\\eb79"}),r.vmOutline=new r("vm-outline",{fontCharacter:"\\eb7a"}),r.vmRunning=new r("vm-running",{fontCharacter:"\\eb7b"}),r.watch=new r("watch",{fontCharacter:"\\eb7c"}),r.whitespace=new r("whitespace",{fontCharacter:"\\eb7d"}),r.wholeWord=new r("whole-word",{fontCharacter:"\\eb7e"}),r.window=new r("window",{fontCharacter:"\\eb7f"}),r.wordWrap=new r("word-wrap",{fontCharacter:"\\eb80"}),r.zoomIn=new r("zoom-in",{fontCharacter:"\\eb81"}),r.zoomOut=new r("zoom-out",{fontCharacter:"\\eb82"}),r.listFilter=new r("list-filter",{fontCharacter:"\\eb83"}),r.listFlat=new r("list-flat",{fontCharacter:"\\eb84"}),r.listSelection=new r("list-selection",{fontCharacter:"\\eb85"}),r.selection=new r("selection",{fontCharacter:"\\eb85"}),r.listTree=new r("list-tree",{fontCharacter:"\\eb86"}),r.debugBreakpointFunctionUnverified=new r("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),r.debugBreakpointFunction=new r("debug-breakpoint-function",{fontCharacter:"\\eb88"}),r.debugBreakpointFunctionDisabled=new r("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),r.debugStackframeActive=new r("debug-stackframe-active",{fontCharacter:"\\eb89"}),r.debugStackframeDot=new r("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),r.debugStackframe=new r("debug-stackframe",{fontCharacter:"\\eb8b"}),r.debugStackframeFocused=new r("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),r.debugBreakpointUnsupported=new r("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),r.symbolString=new r("symbol-string",{fontCharacter:"\\eb8d"}),r.debugReverseContinue=new r("debug-reverse-continue",{fontCharacter:"\\eb8e"}),r.debugStepBack=new r("debug-step-back",{fontCharacter:"\\eb8f"}),r.debugRestartFrame=new r("debug-restart-frame",{fontCharacter:"\\eb90"}),r.callIncoming=new r("call-incoming",{fontCharacter:"\\eb92"}),r.callOutgoing=new r("call-outgoing",{fontCharacter:"\\eb93"}),r.menu=new r("menu",{fontCharacter:"\\eb94"}),r.expandAll=new r("expand-all",{fontCharacter:"\\eb95"}),r.feedback=new r("feedback",{fontCharacter:"\\eb96"}),r.groupByRefType=new r("group-by-ref-type",{fontCharacter:"\\eb97"}),r.ungroupByRefType=new r("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),r.account=new r("account",{fontCharacter:"\\eb99"}),r.bellDot=new r("bell-dot",{fontCharacter:"\\eb9a"}),r.debugConsole=new r("debug-console",{fontCharacter:"\\eb9b"}),r.library=new r("library",{fontCharacter:"\\eb9c"}),r.output=new r("output",{fontCharacter:"\\eb9d"}),r.runAll=new r("run-all",{fontCharacter:"\\eb9e"}),r.syncIgnored=new r("sync-ignored",{fontCharacter:"\\eb9f"}),r.pinned=new r("pinned",{fontCharacter:"\\eba0"}),r.githubInverted=new r("github-inverted",{fontCharacter:"\\eba1"}),r.debugAlt=new r("debug-alt",{fontCharacter:"\\eb91"}),r.serverProcess=new r("server-process",{fontCharacter:"\\eba2"}),r.serverEnvironment=new r("server-environment",{fontCharacter:"\\eba3"}),r.pass=new r("pass",{fontCharacter:"\\eba4"}),r.stopCircle=new r("stop-circle",{fontCharacter:"\\eba5"}),r.playCircle=new r("play-circle",{fontCharacter:"\\eba6"}),r.record=new r("record",{fontCharacter:"\\eba7"}),r.debugAltSmall=new r("debug-alt-small",{fontCharacter:"\\eba8"}),r.vmConnect=new r("vm-connect",{fontCharacter:"\\eba9"}),r.cloud=new r("cloud",{fontCharacter:"\\ebaa"}),r.merge=new r("merge",{fontCharacter:"\\ebab"}),r.exportIcon=new r("export",{fontCharacter:"\\ebac"}),r.graphLeft=new r("graph-left",{fontCharacter:"\\ebad"}),r.magnet=new r("magnet",{fontCharacter:"\\ebae"}),r.notebook=new r("notebook",{fontCharacter:"\\ebaf"}),r.redo=new r("redo",{fontCharacter:"\\ebb0"}),r.checkAll=new r("check-all",{fontCharacter:"\\ebb1"}),r.pinnedDirty=new r("pinned-dirty",{fontCharacter:"\\ebb2"}),r.passFilled=new r("pass-filled",{fontCharacter:"\\ebb3"}),r.circleLargeFilled=new r("circle-large-filled",{fontCharacter:"\\ebb4"}),r.circleLargeOutline=new r("circle-large-outline",{fontCharacter:"\\ebb5"}),r.combine=new r("combine",{fontCharacter:"\\ebb6"}),r.gather=new r("gather",{fontCharacter:"\\ebb6"}),r.table=new r("table",{fontCharacter:"\\ebb7"}),r.variableGroup=new r("variable-group",{fontCharacter:"\\ebb8"}),r.typeHierarchy=new r("type-hierarchy",{fontCharacter:"\\ebb9"}),r.typeHierarchySub=new r("type-hierarchy-sub",{fontCharacter:"\\ebba"}),r.typeHierarchySuper=new r("type-hierarchy-super",{fontCharacter:"\\ebbb"}),r.gitPullRequestCreate=new r("git-pull-request-create",{fontCharacter:"\\ebbc"}),r.runAbove=new r("run-above",{fontCharacter:"\\ebbd"}),r.runBelow=new r("run-below",{fontCharacter:"\\ebbe"}),r.notebookTemplate=new r("notebook-template",{fontCharacter:"\\ebbf"}),r.debugRerun=new r("debug-rerun",{fontCharacter:"\\ebc0"}),r.workspaceTrusted=new r("workspace-trusted",{fontCharacter:"\\ebc1"}),r.workspaceUntrusted=new r("workspace-untrusted",{fontCharacter:"\\ebc2"}),r.workspaceUnspecified=new r("workspace-unspecified",{fontCharacter:"\\ebc3"}),r.terminalCmd=new r("terminal-cmd",{fontCharacter:"\\ebc4"}),r.terminalDebian=new r("terminal-debian",{fontCharacter:"\\ebc5"}),r.terminalLinux=new r("terminal-linux",{fontCharacter:"\\ebc6"}),r.terminalPowershell=new r("terminal-powershell",{fontCharacter:"\\ebc7"}),r.terminalTmux=new r("terminal-tmux",{fontCharacter:"\\ebc8"}),r.terminalUbuntu=new r("terminal-ubuntu",{fontCharacter:"\\ebc9"}),r.terminalBash=new r("terminal-bash",{fontCharacter:"\\ebca"}),r.arrowSwap=new r("arrow-swap",{fontCharacter:"\\ebcb"}),r.copy=new r("copy",{fontCharacter:"\\ebcc"}),r.personAdd=new r("person-add",{fontCharacter:"\\ebcd"}),r.filterFilled=new r("filter-filled",{fontCharacter:"\\ebce"}),r.wand=new r("wand",{fontCharacter:"\\ebcf"}),r.debugLineByLine=new r("debug-line-by-line",{fontCharacter:"\\ebd0"}),r.inspect=new r("inspect",{fontCharacter:"\\ebd1"}),r.layers=new r("layers",{fontCharacter:"\\ebd2"}),r.layersDot=new r("layers-dot",{fontCharacter:"\\ebd3"}),r.layersActive=new r("layers-active",{fontCharacter:"\\ebd4"}),r.compass=new r("compass",{fontCharacter:"\\ebd5"}),r.compassDot=new r("compass-dot",{fontCharacter:"\\ebd6"}),r.compassActive=new r("compass-active",{fontCharacter:"\\ebd7"}),r.azure=new r("azure",{fontCharacter:"\\ebd8"}),r.issueDraft=new r("issue-draft",{fontCharacter:"\\ebd9"}),r.gitPullRequestClosed=new r("git-pull-request-closed",{fontCharacter:"\\ebda"}),r.gitPullRequestDraft=new r("git-pull-request-draft",{fontCharacter:"\\ebdb"}),r.debugAll=new r("debug-all",{fontCharacter:"\\ebdc"}),r.debugCoverage=new r("debug-coverage",{fontCharacter:"\\ebdd"}),r.runErrors=new r("run-errors",{fontCharacter:"\\ebde"}),r.folderLibrary=new r("folder-library",{fontCharacter:"\\ebdf"}),r.debugContinueSmall=new r("debug-continue-small",{fontCharacter:"\\ebe0"}),r.beakerStop=new r("beaker-stop",{fontCharacter:"\\ebe1"}),r.graphLine=new r("graph-line",{fontCharacter:"\\ebe2"}),r.graphScatter=new r("graph-scatter",{fontCharacter:"\\ebe3"}),r.pieChart=new r("pie-chart",{fontCharacter:"\\ebe4"}),r.bracket=new r("bracket",r.json.definition),r.bracketDot=new r("bracket-dot",{fontCharacter:"\\ebe5"}),r.bracketError=new r("bracket-error",{fontCharacter:"\\ebe6"}),r.lockSmall=new r("lock-small",{fontCharacter:"\\ebe7"}),r.azureDevops=new r("azure-devops",{fontCharacter:"\\ebe8"}),r.verifiedFilled=new r("verified-filled",{fontCharacter:"\\ebe9"})}(K||(K={}))},"VrN/":function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";var ie=navigator.userAgent,J=navigator.platform,P=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),K=X||j||U,G=K&&(X?document.documentMode||6:+(U||j)[1]),r=!U&&/WebKit\//.test(ie),L=r&&/Qt\/\d+\.\d+/.test(ie),v=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),l=/Android/.test(ie),o=f||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test(J),a=/\bCrOS\b/.test(ie),O=/win/i.test(J),E=m&&ie.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(m=!1,r=!0);var w=s&&(L||m&&(E==null||E<12.11)),D=P||K&&G>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A=function(e,t){var i=e.className,n=R(t).exec(i);if(n){var c=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(c?n[1]+c:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function d(e,t,i,n){var c=document.createElement(e);if(i&&(c.className=i),n&&(c.style.cssText=n),typeof t=="string")c.appendChild(document.createTextNode(t));else if(t)for(var N=0;N=t)return z+(t-N);z+=Q-N,z+=i-z%i,N=Q+1}}var $=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return n+Math.min(z,t-c);if(c+=N-n,c+=i-c%i,n=N+1,c>=t)return n}}var ce=[""];function he(e){for(;ce.length<=e;)ce.push(re(ce)+" ");return ce[e]}function re(e){return e[e.length-1]}function fe(e,t){for(var i=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ce.test(e))}function Be(e,t){return t?t.source.indexOf("\\w")>-1&&Ne(e)?!0:t.test(e):Ne(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])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 Se(e){return e.charCodeAt(0)>=768&&ve.test(e)}function Ie(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var c=(t+i)/2,N=n<0?Math.ceil(c):Math.floor(c);if(N==t)return e(N)?t:i;e(N)?i=N:t=N+n}}function Ve(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var c=!1,N=0;Nt||t==i&&z.to==t)&&(n(Math.max(z.from,t),Math.min(z.to,i),z.level==1?"rtl":"ltr",N),c=!0)}c||n(t,i,"ltr")}var Qe=null;function Je(e,t,i){var n;Qe=null;for(var c=0;ct)return c;N.to==t&&(N.from!=N.to&&i=="before"?n=c:Qe=c),N.from==t&&(N.from!=N.to&&i!="before"?n=c:Qe=c)}return n!=null?n:Qe}var st=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,N=/[LRr]/,z=/[Lb1n]/,Q=/[1n]/;function q(te,pe,ye){this.level=te,this.from=pe,this.to=ye}return function(te,pe){var ye=pe=="ltr"?"L":"R";if(te.length==0||pe=="ltr"&&!n.test(te))return!1;for(var Me=te.length,ke=[],Ke=0;Ke-1&&(n[t]=c.slice(0,N).concat(c.slice(N+1)))}}}function je(e,t){var i=dt(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),c=0;c0}function we(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function de(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function me(e){ae(e),ue(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var He=function(){if(K&&G<9)return!1;var e=d("div");return"draggable"in e||"dragDrop"in e}(),ze;function ht(e){if(ze==null){var t=d("span","\u200B");T(e,d("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(K&&G<8))}var i=ze?d("span","\u200B"):d("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ot;function yt(e){if(ot!=null)return ot;var t=T(e,document.createTextNode("A\u062EA")),i=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return C(e),!i||i.left==i.right?!1:ot=n.right-i.right<3}var ct=` +`);var A=D.match(/^[\t ]*/)[0];this._output=new p(this._options,A),this._input=new h(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,T=!1,c=!1,S=!1,y=!1,b=!1,B=!1,F=this._ch,_=!1,M,I,g;M=this._input.read(a),I=M!=="",g=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var H=this._input.read(O),$=f.get_directives(H);$&&$.ignore==="start"&&(H+=f.readIgnored(this._input)),this.print_string(H),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(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ne.match(/[ :]$/)&&(ne=this.eatString(": ").replace(/\s$/,""),this.print_string(ne),this._output.space_before_token=!0),ne=ne.replace(/\s$/,""),ne==="extend"?y=!0:ne==="import"&&(b=!0),ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,ne in this.CONDITIONAL_GROUP_RULE&&(S=!0)):!T&&C===0&&ne.indexOf(":")!==-1&&(c=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")c&&(c=!1,this.outdent()),S?(S=!1,T=this._indentLevel>=this._nestedLevel):T=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&T&&(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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),b=!1,y=!1,c&&(this.outdent(),c=!1),this.print_string(this._ch),T=!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 se=0;se"||this._ch==="+"||this._ch==="~")&&!c&&C===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(I),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 Te=g==='"'||g==="'";this.preserveSingleSpace(Te||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` +`&&_&&this._output.add_new_line()}var Re=this._output.get_code(R);return Re},r.exports.Beautifier=w},function(r,L,v){var m=v(6).Options;function p(h){m.call(this,h,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l` ${v} `).trim():""}class K{constructor(r,L,v){this.id=r,this.definition=L,this.description=v,P.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var G;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+";const L=new RegExp(`^(${r.iconNameExpression})(${r.iconModifierExpression})?$`);function v(h){if(h instanceof K)return["codicon","codicon-"+h.id];const u=L.exec(h.id);if(!u)return v(K.error);let[,f,l]=u;const o=["codicon","codicon-"+f];return l&&o.push("codicon-modifier-"+l.substr(1)),o}r.asClassNameArray=v;function m(h){return v(h).join(" ")}r.asClassName=m;function p(h){return"."+v(h).join(".")}r.asCSSSelector=p})(G||(G={})),function(r){r.add=new r("add",{fontCharacter:"\\ea60"}),r.plus=new r("plus",r.add.definition),r.gistNew=new r("gist-new",r.add.definition),r.repoCreate=new r("repo-create",r.add.definition),r.lightbulb=new r("lightbulb",{fontCharacter:"\\ea61"}),r.lightBulb=new r("light-bulb",{fontCharacter:"\\ea61"}),r.repo=new r("repo",{fontCharacter:"\\ea62"}),r.repoDelete=new r("repo-delete",{fontCharacter:"\\ea62"}),r.gistFork=new r("gist-fork",{fontCharacter:"\\ea63"}),r.repoForked=new r("repo-forked",{fontCharacter:"\\ea63"}),r.gitPullRequest=new r("git-pull-request",{fontCharacter:"\\ea64"}),r.gitPullRequestAbandoned=new r("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),r.recordKeys=new r("record-keys",{fontCharacter:"\\ea65"}),r.keyboard=new r("keyboard",{fontCharacter:"\\ea65"}),r.tag=new r("tag",{fontCharacter:"\\ea66"}),r.tagAdd=new r("tag-add",{fontCharacter:"\\ea66"}),r.tagRemove=new r("tag-remove",{fontCharacter:"\\ea66"}),r.person=new r("person",{fontCharacter:"\\ea67"}),r.personFollow=new r("person-follow",{fontCharacter:"\\ea67"}),r.personOutline=new r("person-outline",{fontCharacter:"\\ea67"}),r.personFilled=new r("person-filled",{fontCharacter:"\\ea67"}),r.gitBranch=new r("git-branch",{fontCharacter:"\\ea68"}),r.gitBranchCreate=new r("git-branch-create",{fontCharacter:"\\ea68"}),r.gitBranchDelete=new r("git-branch-delete",{fontCharacter:"\\ea68"}),r.sourceControl=new r("source-control",{fontCharacter:"\\ea68"}),r.mirror=new r("mirror",{fontCharacter:"\\ea69"}),r.mirrorPublic=new r("mirror-public",{fontCharacter:"\\ea69"}),r.star=new r("star",{fontCharacter:"\\ea6a"}),r.starAdd=new r("star-add",{fontCharacter:"\\ea6a"}),r.starDelete=new r("star-delete",{fontCharacter:"\\ea6a"}),r.starEmpty=new r("star-empty",{fontCharacter:"\\ea6a"}),r.comment=new r("comment",{fontCharacter:"\\ea6b"}),r.commentAdd=new r("comment-add",{fontCharacter:"\\ea6b"}),r.alert=new r("alert",{fontCharacter:"\\ea6c"}),r.warning=new r("warning",{fontCharacter:"\\ea6c"}),r.search=new r("search",{fontCharacter:"\\ea6d"}),r.searchSave=new r("search-save",{fontCharacter:"\\ea6d"}),r.logOut=new r("log-out",{fontCharacter:"\\ea6e"}),r.signOut=new r("sign-out",{fontCharacter:"\\ea6e"}),r.logIn=new r("log-in",{fontCharacter:"\\ea6f"}),r.signIn=new r("sign-in",{fontCharacter:"\\ea6f"}),r.eye=new r("eye",{fontCharacter:"\\ea70"}),r.eyeUnwatch=new r("eye-unwatch",{fontCharacter:"\\ea70"}),r.eyeWatch=new r("eye-watch",{fontCharacter:"\\ea70"}),r.circleFilled=new r("circle-filled",{fontCharacter:"\\ea71"}),r.primitiveDot=new r("primitive-dot",{fontCharacter:"\\ea71"}),r.closeDirty=new r("close-dirty",{fontCharacter:"\\ea71"}),r.debugBreakpoint=new r("debug-breakpoint",{fontCharacter:"\\ea71"}),r.debugBreakpointDisabled=new r("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),r.debugHint=new r("debug-hint",{fontCharacter:"\\ea71"}),r.primitiveSquare=new r("primitive-square",{fontCharacter:"\\ea72"}),r.edit=new r("edit",{fontCharacter:"\\ea73"}),r.pencil=new r("pencil",{fontCharacter:"\\ea73"}),r.info=new r("info",{fontCharacter:"\\ea74"}),r.issueOpened=new r("issue-opened",{fontCharacter:"\\ea74"}),r.gistPrivate=new r("gist-private",{fontCharacter:"\\ea75"}),r.gitForkPrivate=new r("git-fork-private",{fontCharacter:"\\ea75"}),r.lock=new r("lock",{fontCharacter:"\\ea75"}),r.mirrorPrivate=new r("mirror-private",{fontCharacter:"\\ea75"}),r.close=new r("close",{fontCharacter:"\\ea76"}),r.removeClose=new r("remove-close",{fontCharacter:"\\ea76"}),r.x=new r("x",{fontCharacter:"\\ea76"}),r.repoSync=new r("repo-sync",{fontCharacter:"\\ea77"}),r.sync=new r("sync",{fontCharacter:"\\ea77"}),r.clone=new r("clone",{fontCharacter:"\\ea78"}),r.desktopDownload=new r("desktop-download",{fontCharacter:"\\ea78"}),r.beaker=new r("beaker",{fontCharacter:"\\ea79"}),r.microscope=new r("microscope",{fontCharacter:"\\ea79"}),r.vm=new r("vm",{fontCharacter:"\\ea7a"}),r.deviceDesktop=new r("device-desktop",{fontCharacter:"\\ea7a"}),r.file=new r("file",{fontCharacter:"\\ea7b"}),r.fileText=new r("file-text",{fontCharacter:"\\ea7b"}),r.more=new r("more",{fontCharacter:"\\ea7c"}),r.ellipsis=new r("ellipsis",{fontCharacter:"\\ea7c"}),r.kebabHorizontal=new r("kebab-horizontal",{fontCharacter:"\\ea7c"}),r.mailReply=new r("mail-reply",{fontCharacter:"\\ea7d"}),r.reply=new r("reply",{fontCharacter:"\\ea7d"}),r.organization=new r("organization",{fontCharacter:"\\ea7e"}),r.organizationFilled=new r("organization-filled",{fontCharacter:"\\ea7e"}),r.organizationOutline=new r("organization-outline",{fontCharacter:"\\ea7e"}),r.newFile=new r("new-file",{fontCharacter:"\\ea7f"}),r.fileAdd=new r("file-add",{fontCharacter:"\\ea7f"}),r.newFolder=new r("new-folder",{fontCharacter:"\\ea80"}),r.fileDirectoryCreate=new r("file-directory-create",{fontCharacter:"\\ea80"}),r.trash=new r("trash",{fontCharacter:"\\ea81"}),r.trashcan=new r("trashcan",{fontCharacter:"\\ea81"}),r.history=new r("history",{fontCharacter:"\\ea82"}),r.clock=new r("clock",{fontCharacter:"\\ea82"}),r.folder=new r("folder",{fontCharacter:"\\ea83"}),r.fileDirectory=new r("file-directory",{fontCharacter:"\\ea83"}),r.symbolFolder=new r("symbol-folder",{fontCharacter:"\\ea83"}),r.logoGithub=new r("logo-github",{fontCharacter:"\\ea84"}),r.markGithub=new r("mark-github",{fontCharacter:"\\ea84"}),r.github=new r("github",{fontCharacter:"\\ea84"}),r.terminal=new r("terminal",{fontCharacter:"\\ea85"}),r.console=new r("console",{fontCharacter:"\\ea85"}),r.repl=new r("repl",{fontCharacter:"\\ea85"}),r.zap=new r("zap",{fontCharacter:"\\ea86"}),r.symbolEvent=new r("symbol-event",{fontCharacter:"\\ea86"}),r.error=new r("error",{fontCharacter:"\\ea87"}),r.stop=new r("stop",{fontCharacter:"\\ea87"}),r.variable=new r("variable",{fontCharacter:"\\ea88"}),r.symbolVariable=new r("symbol-variable",{fontCharacter:"\\ea88"}),r.array=new r("array",{fontCharacter:"\\ea8a"}),r.symbolArray=new r("symbol-array",{fontCharacter:"\\ea8a"}),r.symbolModule=new r("symbol-module",{fontCharacter:"\\ea8b"}),r.symbolPackage=new r("symbol-package",{fontCharacter:"\\ea8b"}),r.symbolNamespace=new r("symbol-namespace",{fontCharacter:"\\ea8b"}),r.symbolObject=new r("symbol-object",{fontCharacter:"\\ea8b"}),r.symbolMethod=new r("symbol-method",{fontCharacter:"\\ea8c"}),r.symbolFunction=new r("symbol-function",{fontCharacter:"\\ea8c"}),r.symbolConstructor=new r("symbol-constructor",{fontCharacter:"\\ea8c"}),r.symbolBoolean=new r("symbol-boolean",{fontCharacter:"\\ea8f"}),r.symbolNull=new r("symbol-null",{fontCharacter:"\\ea8f"}),r.symbolNumeric=new r("symbol-numeric",{fontCharacter:"\\ea90"}),r.symbolNumber=new r("symbol-number",{fontCharacter:"\\ea90"}),r.symbolStructure=new r("symbol-structure",{fontCharacter:"\\ea91"}),r.symbolStruct=new r("symbol-struct",{fontCharacter:"\\ea91"}),r.symbolParameter=new r("symbol-parameter",{fontCharacter:"\\ea92"}),r.symbolTypeParameter=new r("symbol-type-parameter",{fontCharacter:"\\ea92"}),r.symbolKey=new r("symbol-key",{fontCharacter:"\\ea93"}),r.symbolText=new r("symbol-text",{fontCharacter:"\\ea93"}),r.symbolReference=new r("symbol-reference",{fontCharacter:"\\ea94"}),r.goToFile=new r("go-to-file",{fontCharacter:"\\ea94"}),r.symbolEnum=new r("symbol-enum",{fontCharacter:"\\ea95"}),r.symbolValue=new r("symbol-value",{fontCharacter:"\\ea95"}),r.symbolRuler=new r("symbol-ruler",{fontCharacter:"\\ea96"}),r.symbolUnit=new r("symbol-unit",{fontCharacter:"\\ea96"}),r.activateBreakpoints=new r("activate-breakpoints",{fontCharacter:"\\ea97"}),r.archive=new r("archive",{fontCharacter:"\\ea98"}),r.arrowBoth=new r("arrow-both",{fontCharacter:"\\ea99"}),r.arrowDown=new r("arrow-down",{fontCharacter:"\\ea9a"}),r.arrowLeft=new r("arrow-left",{fontCharacter:"\\ea9b"}),r.arrowRight=new r("arrow-right",{fontCharacter:"\\ea9c"}),r.arrowSmallDown=new r("arrow-small-down",{fontCharacter:"\\ea9d"}),r.arrowSmallLeft=new r("arrow-small-left",{fontCharacter:"\\ea9e"}),r.arrowSmallRight=new r("arrow-small-right",{fontCharacter:"\\ea9f"}),r.arrowSmallUp=new r("arrow-small-up",{fontCharacter:"\\eaa0"}),r.arrowUp=new r("arrow-up",{fontCharacter:"\\eaa1"}),r.bell=new r("bell",{fontCharacter:"\\eaa2"}),r.bold=new r("bold",{fontCharacter:"\\eaa3"}),r.book=new r("book",{fontCharacter:"\\eaa4"}),r.bookmark=new r("bookmark",{fontCharacter:"\\eaa5"}),r.debugBreakpointConditionalUnverified=new r("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),r.debugBreakpointConditional=new r("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),r.debugBreakpointConditionalDisabled=new r("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),r.debugBreakpointDataUnverified=new r("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),r.debugBreakpointData=new r("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),r.debugBreakpointDataDisabled=new r("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),r.debugBreakpointLogUnverified=new r("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),r.debugBreakpointLog=new r("debug-breakpoint-log",{fontCharacter:"\\eaab"}),r.debugBreakpointLogDisabled=new r("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),r.briefcase=new r("briefcase",{fontCharacter:"\\eaac"}),r.broadcast=new r("broadcast",{fontCharacter:"\\eaad"}),r.browser=new r("browser",{fontCharacter:"\\eaae"}),r.bug=new r("bug",{fontCharacter:"\\eaaf"}),r.calendar=new r("calendar",{fontCharacter:"\\eab0"}),r.caseSensitive=new r("case-sensitive",{fontCharacter:"\\eab1"}),r.check=new r("check",{fontCharacter:"\\eab2"}),r.checklist=new r("checklist",{fontCharacter:"\\eab3"}),r.chevronDown=new r("chevron-down",{fontCharacter:"\\eab4"}),r.dropDownButton=new r("drop-down-button",r.chevronDown.definition),r.chevronLeft=new r("chevron-left",{fontCharacter:"\\eab5"}),r.chevronRight=new r("chevron-right",{fontCharacter:"\\eab6"}),r.chevronUp=new r("chevron-up",{fontCharacter:"\\eab7"}),r.chromeClose=new r("chrome-close",{fontCharacter:"\\eab8"}),r.chromeMaximize=new r("chrome-maximize",{fontCharacter:"\\eab9"}),r.chromeMinimize=new r("chrome-minimize",{fontCharacter:"\\eaba"}),r.chromeRestore=new r("chrome-restore",{fontCharacter:"\\eabb"}),r.circleOutline=new r("circle-outline",{fontCharacter:"\\eabc"}),r.debugBreakpointUnverified=new r("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),r.circleSlash=new r("circle-slash",{fontCharacter:"\\eabd"}),r.circuitBoard=new r("circuit-board",{fontCharacter:"\\eabe"}),r.clearAll=new r("clear-all",{fontCharacter:"\\eabf"}),r.clippy=new r("clippy",{fontCharacter:"\\eac0"}),r.closeAll=new r("close-all",{fontCharacter:"\\eac1"}),r.cloudDownload=new r("cloud-download",{fontCharacter:"\\eac2"}),r.cloudUpload=new r("cloud-upload",{fontCharacter:"\\eac3"}),r.code=new r("code",{fontCharacter:"\\eac4"}),r.collapseAll=new r("collapse-all",{fontCharacter:"\\eac5"}),r.colorMode=new r("color-mode",{fontCharacter:"\\eac6"}),r.commentDiscussion=new r("comment-discussion",{fontCharacter:"\\eac7"}),r.compareChanges=new r("compare-changes",{fontCharacter:"\\eafd"}),r.creditCard=new r("credit-card",{fontCharacter:"\\eac9"}),r.dash=new r("dash",{fontCharacter:"\\eacc"}),r.dashboard=new r("dashboard",{fontCharacter:"\\eacd"}),r.database=new r("database",{fontCharacter:"\\eace"}),r.debugContinue=new r("debug-continue",{fontCharacter:"\\eacf"}),r.debugDisconnect=new r("debug-disconnect",{fontCharacter:"\\ead0"}),r.debugPause=new r("debug-pause",{fontCharacter:"\\ead1"}),r.debugRestart=new r("debug-restart",{fontCharacter:"\\ead2"}),r.debugStart=new r("debug-start",{fontCharacter:"\\ead3"}),r.debugStepInto=new r("debug-step-into",{fontCharacter:"\\ead4"}),r.debugStepOut=new r("debug-step-out",{fontCharacter:"\\ead5"}),r.debugStepOver=new r("debug-step-over",{fontCharacter:"\\ead6"}),r.debugStop=new r("debug-stop",{fontCharacter:"\\ead7"}),r.debug=new r("debug",{fontCharacter:"\\ead8"}),r.deviceCameraVideo=new r("device-camera-video",{fontCharacter:"\\ead9"}),r.deviceCamera=new r("device-camera",{fontCharacter:"\\eada"}),r.deviceMobile=new r("device-mobile",{fontCharacter:"\\eadb"}),r.diffAdded=new r("diff-added",{fontCharacter:"\\eadc"}),r.diffIgnored=new r("diff-ignored",{fontCharacter:"\\eadd"}),r.diffModified=new r("diff-modified",{fontCharacter:"\\eade"}),r.diffRemoved=new r("diff-removed",{fontCharacter:"\\eadf"}),r.diffRenamed=new r("diff-renamed",{fontCharacter:"\\eae0"}),r.diff=new r("diff",{fontCharacter:"\\eae1"}),r.discard=new r("discard",{fontCharacter:"\\eae2"}),r.editorLayout=new r("editor-layout",{fontCharacter:"\\eae3"}),r.emptyWindow=new r("empty-window",{fontCharacter:"\\eae4"}),r.exclude=new r("exclude",{fontCharacter:"\\eae5"}),r.extensions=new r("extensions",{fontCharacter:"\\eae6"}),r.eyeClosed=new r("eye-closed",{fontCharacter:"\\eae7"}),r.fileBinary=new r("file-binary",{fontCharacter:"\\eae8"}),r.fileCode=new r("file-code",{fontCharacter:"\\eae9"}),r.fileMedia=new r("file-media",{fontCharacter:"\\eaea"}),r.filePdf=new r("file-pdf",{fontCharacter:"\\eaeb"}),r.fileSubmodule=new r("file-submodule",{fontCharacter:"\\eaec"}),r.fileSymlinkDirectory=new r("file-symlink-directory",{fontCharacter:"\\eaed"}),r.fileSymlinkFile=new r("file-symlink-file",{fontCharacter:"\\eaee"}),r.fileZip=new r("file-zip",{fontCharacter:"\\eaef"}),r.files=new r("files",{fontCharacter:"\\eaf0"}),r.filter=new r("filter",{fontCharacter:"\\eaf1"}),r.flame=new r("flame",{fontCharacter:"\\eaf2"}),r.foldDown=new r("fold-down",{fontCharacter:"\\eaf3"}),r.foldUp=new r("fold-up",{fontCharacter:"\\eaf4"}),r.fold=new r("fold",{fontCharacter:"\\eaf5"}),r.folderActive=new r("folder-active",{fontCharacter:"\\eaf6"}),r.folderOpened=new r("folder-opened",{fontCharacter:"\\eaf7"}),r.gear=new r("gear",{fontCharacter:"\\eaf8"}),r.gift=new r("gift",{fontCharacter:"\\eaf9"}),r.gistSecret=new r("gist-secret",{fontCharacter:"\\eafa"}),r.gist=new r("gist",{fontCharacter:"\\eafb"}),r.gitCommit=new r("git-commit",{fontCharacter:"\\eafc"}),r.gitCompare=new r("git-compare",{fontCharacter:"\\eafd"}),r.gitMerge=new r("git-merge",{fontCharacter:"\\eafe"}),r.githubAction=new r("github-action",{fontCharacter:"\\eaff"}),r.githubAlt=new r("github-alt",{fontCharacter:"\\eb00"}),r.globe=new r("globe",{fontCharacter:"\\eb01"}),r.grabber=new r("grabber",{fontCharacter:"\\eb02"}),r.graph=new r("graph",{fontCharacter:"\\eb03"}),r.gripper=new r("gripper",{fontCharacter:"\\eb04"}),r.heart=new r("heart",{fontCharacter:"\\eb05"}),r.home=new r("home",{fontCharacter:"\\eb06"}),r.horizontalRule=new r("horizontal-rule",{fontCharacter:"\\eb07"}),r.hubot=new r("hubot",{fontCharacter:"\\eb08"}),r.inbox=new r("inbox",{fontCharacter:"\\eb09"}),r.issueClosed=new r("issue-closed",{fontCharacter:"\\eba4"}),r.issueReopened=new r("issue-reopened",{fontCharacter:"\\eb0b"}),r.issues=new r("issues",{fontCharacter:"\\eb0c"}),r.italic=new r("italic",{fontCharacter:"\\eb0d"}),r.jersey=new r("jersey",{fontCharacter:"\\eb0e"}),r.json=new r("json",{fontCharacter:"\\eb0f"}),r.kebabVertical=new r("kebab-vertical",{fontCharacter:"\\eb10"}),r.key=new r("key",{fontCharacter:"\\eb11"}),r.law=new r("law",{fontCharacter:"\\eb12"}),r.lightbulbAutofix=new r("lightbulb-autofix",{fontCharacter:"\\eb13"}),r.linkExternal=new r("link-external",{fontCharacter:"\\eb14"}),r.link=new r("link",{fontCharacter:"\\eb15"}),r.listOrdered=new r("list-ordered",{fontCharacter:"\\eb16"}),r.listUnordered=new r("list-unordered",{fontCharacter:"\\eb17"}),r.liveShare=new r("live-share",{fontCharacter:"\\eb18"}),r.loading=new r("loading",{fontCharacter:"\\eb19"}),r.location=new r("location",{fontCharacter:"\\eb1a"}),r.mailRead=new r("mail-read",{fontCharacter:"\\eb1b"}),r.mail=new r("mail",{fontCharacter:"\\eb1c"}),r.markdown=new r("markdown",{fontCharacter:"\\eb1d"}),r.megaphone=new r("megaphone",{fontCharacter:"\\eb1e"}),r.mention=new r("mention",{fontCharacter:"\\eb1f"}),r.milestone=new r("milestone",{fontCharacter:"\\eb20"}),r.mortarBoard=new r("mortar-board",{fontCharacter:"\\eb21"}),r.move=new r("move",{fontCharacter:"\\eb22"}),r.multipleWindows=new r("multiple-windows",{fontCharacter:"\\eb23"}),r.mute=new r("mute",{fontCharacter:"\\eb24"}),r.noNewline=new r("no-newline",{fontCharacter:"\\eb25"}),r.note=new r("note",{fontCharacter:"\\eb26"}),r.octoface=new r("octoface",{fontCharacter:"\\eb27"}),r.openPreview=new r("open-preview",{fontCharacter:"\\eb28"}),r.package_=new r("package",{fontCharacter:"\\eb29"}),r.paintcan=new r("paintcan",{fontCharacter:"\\eb2a"}),r.pin=new r("pin",{fontCharacter:"\\eb2b"}),r.play=new r("play",{fontCharacter:"\\eb2c"}),r.run=new r("run",{fontCharacter:"\\eb2c"}),r.plug=new r("plug",{fontCharacter:"\\eb2d"}),r.preserveCase=new r("preserve-case",{fontCharacter:"\\eb2e"}),r.preview=new r("preview",{fontCharacter:"\\eb2f"}),r.project=new r("project",{fontCharacter:"\\eb30"}),r.pulse=new r("pulse",{fontCharacter:"\\eb31"}),r.question=new r("question",{fontCharacter:"\\eb32"}),r.quote=new r("quote",{fontCharacter:"\\eb33"}),r.radioTower=new r("radio-tower",{fontCharacter:"\\eb34"}),r.reactions=new r("reactions",{fontCharacter:"\\eb35"}),r.references=new r("references",{fontCharacter:"\\eb36"}),r.refresh=new r("refresh",{fontCharacter:"\\eb37"}),r.regex=new r("regex",{fontCharacter:"\\eb38"}),r.remoteExplorer=new r("remote-explorer",{fontCharacter:"\\eb39"}),r.remote=new r("remote",{fontCharacter:"\\eb3a"}),r.remove=new r("remove",{fontCharacter:"\\eb3b"}),r.replaceAll=new r("replace-all",{fontCharacter:"\\eb3c"}),r.replace=new r("replace",{fontCharacter:"\\eb3d"}),r.repoClone=new r("repo-clone",{fontCharacter:"\\eb3e"}),r.repoForcePush=new r("repo-force-push",{fontCharacter:"\\eb3f"}),r.repoPull=new r("repo-pull",{fontCharacter:"\\eb40"}),r.repoPush=new r("repo-push",{fontCharacter:"\\eb41"}),r.report=new r("report",{fontCharacter:"\\eb42"}),r.requestChanges=new r("request-changes",{fontCharacter:"\\eb43"}),r.rocket=new r("rocket",{fontCharacter:"\\eb44"}),r.rootFolderOpened=new r("root-folder-opened",{fontCharacter:"\\eb45"}),r.rootFolder=new r("root-folder",{fontCharacter:"\\eb46"}),r.rss=new r("rss",{fontCharacter:"\\eb47"}),r.ruby=new r("ruby",{fontCharacter:"\\eb48"}),r.saveAll=new r("save-all",{fontCharacter:"\\eb49"}),r.saveAs=new r("save-as",{fontCharacter:"\\eb4a"}),r.save=new r("save",{fontCharacter:"\\eb4b"}),r.screenFull=new r("screen-full",{fontCharacter:"\\eb4c"}),r.screenNormal=new r("screen-normal",{fontCharacter:"\\eb4d"}),r.searchStop=new r("search-stop",{fontCharacter:"\\eb4e"}),r.server=new r("server",{fontCharacter:"\\eb50"}),r.settingsGear=new r("settings-gear",{fontCharacter:"\\eb51"}),r.settings=new r("settings",{fontCharacter:"\\eb52"}),r.shield=new r("shield",{fontCharacter:"\\eb53"}),r.smiley=new r("smiley",{fontCharacter:"\\eb54"}),r.sortPrecedence=new r("sort-precedence",{fontCharacter:"\\eb55"}),r.splitHorizontal=new r("split-horizontal",{fontCharacter:"\\eb56"}),r.splitVertical=new r("split-vertical",{fontCharacter:"\\eb57"}),r.squirrel=new r("squirrel",{fontCharacter:"\\eb58"}),r.starFull=new r("star-full",{fontCharacter:"\\eb59"}),r.starHalf=new r("star-half",{fontCharacter:"\\eb5a"}),r.symbolClass=new r("symbol-class",{fontCharacter:"\\eb5b"}),r.symbolColor=new r("symbol-color",{fontCharacter:"\\eb5c"}),r.symbolConstant=new r("symbol-constant",{fontCharacter:"\\eb5d"}),r.symbolEnumMember=new r("symbol-enum-member",{fontCharacter:"\\eb5e"}),r.symbolField=new r("symbol-field",{fontCharacter:"\\eb5f"}),r.symbolFile=new r("symbol-file",{fontCharacter:"\\eb60"}),r.symbolInterface=new r("symbol-interface",{fontCharacter:"\\eb61"}),r.symbolKeyword=new r("symbol-keyword",{fontCharacter:"\\eb62"}),r.symbolMisc=new r("symbol-misc",{fontCharacter:"\\eb63"}),r.symbolOperator=new r("symbol-operator",{fontCharacter:"\\eb64"}),r.symbolProperty=new r("symbol-property",{fontCharacter:"\\eb65"}),r.wrench=new r("wrench",{fontCharacter:"\\eb65"}),r.wrenchSubaction=new r("wrench-subaction",{fontCharacter:"\\eb65"}),r.symbolSnippet=new r("symbol-snippet",{fontCharacter:"\\eb66"}),r.tasklist=new r("tasklist",{fontCharacter:"\\eb67"}),r.telescope=new r("telescope",{fontCharacter:"\\eb68"}),r.textSize=new r("text-size",{fontCharacter:"\\eb69"}),r.threeBars=new r("three-bars",{fontCharacter:"\\eb6a"}),r.thumbsdown=new r("thumbsdown",{fontCharacter:"\\eb6b"}),r.thumbsup=new r("thumbsup",{fontCharacter:"\\eb6c"}),r.tools=new r("tools",{fontCharacter:"\\eb6d"}),r.triangleDown=new r("triangle-down",{fontCharacter:"\\eb6e"}),r.triangleLeft=new r("triangle-left",{fontCharacter:"\\eb6f"}),r.triangleRight=new r("triangle-right",{fontCharacter:"\\eb70"}),r.triangleUp=new r("triangle-up",{fontCharacter:"\\eb71"}),r.twitter=new r("twitter",{fontCharacter:"\\eb72"}),r.unfold=new r("unfold",{fontCharacter:"\\eb73"}),r.unlock=new r("unlock",{fontCharacter:"\\eb74"}),r.unmute=new r("unmute",{fontCharacter:"\\eb75"}),r.unverified=new r("unverified",{fontCharacter:"\\eb76"}),r.verified=new r("verified",{fontCharacter:"\\eb77"}),r.versions=new r("versions",{fontCharacter:"\\eb78"}),r.vmActive=new r("vm-active",{fontCharacter:"\\eb79"}),r.vmOutline=new r("vm-outline",{fontCharacter:"\\eb7a"}),r.vmRunning=new r("vm-running",{fontCharacter:"\\eb7b"}),r.watch=new r("watch",{fontCharacter:"\\eb7c"}),r.whitespace=new r("whitespace",{fontCharacter:"\\eb7d"}),r.wholeWord=new r("whole-word",{fontCharacter:"\\eb7e"}),r.window=new r("window",{fontCharacter:"\\eb7f"}),r.wordWrap=new r("word-wrap",{fontCharacter:"\\eb80"}),r.zoomIn=new r("zoom-in",{fontCharacter:"\\eb81"}),r.zoomOut=new r("zoom-out",{fontCharacter:"\\eb82"}),r.listFilter=new r("list-filter",{fontCharacter:"\\eb83"}),r.listFlat=new r("list-flat",{fontCharacter:"\\eb84"}),r.listSelection=new r("list-selection",{fontCharacter:"\\eb85"}),r.selection=new r("selection",{fontCharacter:"\\eb85"}),r.listTree=new r("list-tree",{fontCharacter:"\\eb86"}),r.debugBreakpointFunctionUnverified=new r("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),r.debugBreakpointFunction=new r("debug-breakpoint-function",{fontCharacter:"\\eb88"}),r.debugBreakpointFunctionDisabled=new r("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),r.debugStackframeActive=new r("debug-stackframe-active",{fontCharacter:"\\eb89"}),r.debugStackframeDot=new r("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),r.debugStackframe=new r("debug-stackframe",{fontCharacter:"\\eb8b"}),r.debugStackframeFocused=new r("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),r.debugBreakpointUnsupported=new r("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),r.symbolString=new r("symbol-string",{fontCharacter:"\\eb8d"}),r.debugReverseContinue=new r("debug-reverse-continue",{fontCharacter:"\\eb8e"}),r.debugStepBack=new r("debug-step-back",{fontCharacter:"\\eb8f"}),r.debugRestartFrame=new r("debug-restart-frame",{fontCharacter:"\\eb90"}),r.callIncoming=new r("call-incoming",{fontCharacter:"\\eb92"}),r.callOutgoing=new r("call-outgoing",{fontCharacter:"\\eb93"}),r.menu=new r("menu",{fontCharacter:"\\eb94"}),r.expandAll=new r("expand-all",{fontCharacter:"\\eb95"}),r.feedback=new r("feedback",{fontCharacter:"\\eb96"}),r.groupByRefType=new r("group-by-ref-type",{fontCharacter:"\\eb97"}),r.ungroupByRefType=new r("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),r.account=new r("account",{fontCharacter:"\\eb99"}),r.bellDot=new r("bell-dot",{fontCharacter:"\\eb9a"}),r.debugConsole=new r("debug-console",{fontCharacter:"\\eb9b"}),r.library=new r("library",{fontCharacter:"\\eb9c"}),r.output=new r("output",{fontCharacter:"\\eb9d"}),r.runAll=new r("run-all",{fontCharacter:"\\eb9e"}),r.syncIgnored=new r("sync-ignored",{fontCharacter:"\\eb9f"}),r.pinned=new r("pinned",{fontCharacter:"\\eba0"}),r.githubInverted=new r("github-inverted",{fontCharacter:"\\eba1"}),r.debugAlt=new r("debug-alt",{fontCharacter:"\\eb91"}),r.serverProcess=new r("server-process",{fontCharacter:"\\eba2"}),r.serverEnvironment=new r("server-environment",{fontCharacter:"\\eba3"}),r.pass=new r("pass",{fontCharacter:"\\eba4"}),r.stopCircle=new r("stop-circle",{fontCharacter:"\\eba5"}),r.playCircle=new r("play-circle",{fontCharacter:"\\eba6"}),r.record=new r("record",{fontCharacter:"\\eba7"}),r.debugAltSmall=new r("debug-alt-small",{fontCharacter:"\\eba8"}),r.vmConnect=new r("vm-connect",{fontCharacter:"\\eba9"}),r.cloud=new r("cloud",{fontCharacter:"\\ebaa"}),r.merge=new r("merge",{fontCharacter:"\\ebab"}),r.exportIcon=new r("export",{fontCharacter:"\\ebac"}),r.graphLeft=new r("graph-left",{fontCharacter:"\\ebad"}),r.magnet=new r("magnet",{fontCharacter:"\\ebae"}),r.notebook=new r("notebook",{fontCharacter:"\\ebaf"}),r.redo=new r("redo",{fontCharacter:"\\ebb0"}),r.checkAll=new r("check-all",{fontCharacter:"\\ebb1"}),r.pinnedDirty=new r("pinned-dirty",{fontCharacter:"\\ebb2"}),r.passFilled=new r("pass-filled",{fontCharacter:"\\ebb3"}),r.circleLargeFilled=new r("circle-large-filled",{fontCharacter:"\\ebb4"}),r.circleLargeOutline=new r("circle-large-outline",{fontCharacter:"\\ebb5"}),r.combine=new r("combine",{fontCharacter:"\\ebb6"}),r.gather=new r("gather",{fontCharacter:"\\ebb6"}),r.table=new r("table",{fontCharacter:"\\ebb7"}),r.variableGroup=new r("variable-group",{fontCharacter:"\\ebb8"}),r.typeHierarchy=new r("type-hierarchy",{fontCharacter:"\\ebb9"}),r.typeHierarchySub=new r("type-hierarchy-sub",{fontCharacter:"\\ebba"}),r.typeHierarchySuper=new r("type-hierarchy-super",{fontCharacter:"\\ebbb"}),r.gitPullRequestCreate=new r("git-pull-request-create",{fontCharacter:"\\ebbc"}),r.runAbove=new r("run-above",{fontCharacter:"\\ebbd"}),r.runBelow=new r("run-below",{fontCharacter:"\\ebbe"}),r.notebookTemplate=new r("notebook-template",{fontCharacter:"\\ebbf"}),r.debugRerun=new r("debug-rerun",{fontCharacter:"\\ebc0"}),r.workspaceTrusted=new r("workspace-trusted",{fontCharacter:"\\ebc1"}),r.workspaceUntrusted=new r("workspace-untrusted",{fontCharacter:"\\ebc2"}),r.workspaceUnspecified=new r("workspace-unspecified",{fontCharacter:"\\ebc3"}),r.terminalCmd=new r("terminal-cmd",{fontCharacter:"\\ebc4"}),r.terminalDebian=new r("terminal-debian",{fontCharacter:"\\ebc5"}),r.terminalLinux=new r("terminal-linux",{fontCharacter:"\\ebc6"}),r.terminalPowershell=new r("terminal-powershell",{fontCharacter:"\\ebc7"}),r.terminalTmux=new r("terminal-tmux",{fontCharacter:"\\ebc8"}),r.terminalUbuntu=new r("terminal-ubuntu",{fontCharacter:"\\ebc9"}),r.terminalBash=new r("terminal-bash",{fontCharacter:"\\ebca"}),r.arrowSwap=new r("arrow-swap",{fontCharacter:"\\ebcb"}),r.copy=new r("copy",{fontCharacter:"\\ebcc"}),r.personAdd=new r("person-add",{fontCharacter:"\\ebcd"}),r.filterFilled=new r("filter-filled",{fontCharacter:"\\ebce"}),r.wand=new r("wand",{fontCharacter:"\\ebcf"}),r.debugLineByLine=new r("debug-line-by-line",{fontCharacter:"\\ebd0"}),r.inspect=new r("inspect",{fontCharacter:"\\ebd1"}),r.layers=new r("layers",{fontCharacter:"\\ebd2"}),r.layersDot=new r("layers-dot",{fontCharacter:"\\ebd3"}),r.layersActive=new r("layers-active",{fontCharacter:"\\ebd4"}),r.compass=new r("compass",{fontCharacter:"\\ebd5"}),r.compassDot=new r("compass-dot",{fontCharacter:"\\ebd6"}),r.compassActive=new r("compass-active",{fontCharacter:"\\ebd7"}),r.azure=new r("azure",{fontCharacter:"\\ebd8"}),r.issueDraft=new r("issue-draft",{fontCharacter:"\\ebd9"}),r.gitPullRequestClosed=new r("git-pull-request-closed",{fontCharacter:"\\ebda"}),r.gitPullRequestDraft=new r("git-pull-request-draft",{fontCharacter:"\\ebdb"}),r.debugAll=new r("debug-all",{fontCharacter:"\\ebdc"}),r.debugCoverage=new r("debug-coverage",{fontCharacter:"\\ebdd"}),r.runErrors=new r("run-errors",{fontCharacter:"\\ebde"}),r.folderLibrary=new r("folder-library",{fontCharacter:"\\ebdf"}),r.debugContinueSmall=new r("debug-continue-small",{fontCharacter:"\\ebe0"}),r.beakerStop=new r("beaker-stop",{fontCharacter:"\\ebe1"}),r.graphLine=new r("graph-line",{fontCharacter:"\\ebe2"}),r.graphScatter=new r("graph-scatter",{fontCharacter:"\\ebe3"}),r.pieChart=new r("pie-chart",{fontCharacter:"\\ebe4"}),r.bracket=new r("bracket",r.json.definition),r.bracketDot=new r("bracket-dot",{fontCharacter:"\\ebe5"}),r.bracketError=new r("bracket-error",{fontCharacter:"\\ebe6"}),r.lockSmall=new r("lock-small",{fontCharacter:"\\ebe7"}),r.azureDevops=new r("azure-devops",{fontCharacter:"\\ebe8"}),r.verifiedFilled=new r("verified-filled",{fontCharacter:"\\ebe9"})}(K||(K={}))},"VrN/":function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";var ie=navigator.userAgent,J=navigator.platform,P=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),K=X||j||U,G=K&&(X?document.documentMode||6:+(U||j)[1]),r=!U&&/WebKit\//.test(ie),L=r&&/Qt\/\d+\.\d+/.test(ie),v=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),l=/Android/.test(ie),o=f||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test(J),a=/\bCrOS\b/.test(ie),O=/win/i.test(J),E=m&&ie.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(m=!1,r=!0);var w=s&&(L||m&&(E==null||E<12.11)),D=P||K&&G>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A=function(e,t){var i=e.className,n=R(t).exec(i);if(n){var d=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(d?n[1]+d:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function c(e,t,i,n){var d=document.createElement(e);if(i&&(d.className=i),n&&(d.style.cssText=n),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var N=0;N=t)return z+(t-N);z+=Q-N,z+=i-z%i,N=Q+1}}var $=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return n+Math.min(z,t-d);if(d+=N-n,d+=i-d%i,n=N+1,d>=t)return n}}var de=[""];function he(e){for(;de.length<=e;)de.push(re(de)+" ");return de[e]}function re(e){return e[e.length-1]}function fe(e,t){for(var i=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ce.test(e))}function Be(e,t){return t?t.source.indexOf("\\w")>-1&&Ne(e)?!0:t.test(e):Ne(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])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 Se(e){return e.charCodeAt(0)>=768&&ve.test(e)}function Ie(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,N=n<0?Math.ceil(d):Math.floor(d);if(N==t)return e(N)?t:i;e(N)?i=N:t=N+n}}function Ve(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var d=!1,N=0;Nt||t==i&&z.to==t)&&(n(Math.max(z.from,t),Math.min(z.to,i),z.level==1?"rtl":"ltr",N),d=!0)}d||n(t,i,"ltr")}var Qe=null;function Je(e,t,i){var n;Qe=null;for(var d=0;dt)return d;N.to==t&&(N.from!=N.to&&i=="before"?n=d:Qe=d),N.from==t&&(N.from!=N.to&&i!="before"?n=d:Qe=d)}return n!=null?n:Qe}var st=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,N=/[LRr]/,z=/[Lb1n]/,Q=/[1n]/;function q(te,pe,ye){this.level=te,this.from=pe,this.to=ye}return function(te,pe){var ye=pe=="ltr"?"L":"R";if(te.length==0||pe=="ltr"&&!n.test(te))return!1;for(var Me=te.length,ke=[],Ke=0;Ke-1&&(n[t]=d.slice(0,N).concat(d.slice(N+1)))}}}function je(e,t){var i=ct(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),d=0;d0}function we(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function me(e){ae(e),ue(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var He=function(){if(K&&G<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ze;function ht(e){if(ze==null){var t=c("span","\u200B");T(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(K&&G<8))}var i=ze?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ot;function yt(e){if(ot!=null)return ot;var t=T(e,document.createTextNode("A\u062EA")),i=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return C(e),!i||i.left==i.right?!1:ot=n.right-i.right<3}var dt=` -b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var c=e.indexOf(` -`,t);c==-1&&(c=e.length);var N=e.slice(t,e.charAt(c-1)=="\r"?c-1:c),z=N.indexOf("\r");z!=-1?(i.push(N.slice(0,z)),t+=z+1):(i.push(N),t=c+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ft=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Ot=function(){var e=d("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),It=null;function qt(e){if(It!=null)return It;var t=T(e,d("span","x")),i=t.getBoundingClientRect(),n=y(t,0,1).getBoundingClientRect();return It=Math.abs(i.left-n.left)>1}var Zt={},Dt={};function Cr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Zt[e]=t}function Kr(e,t){Dt[e]=t}function _t(e){if(typeof e=="string"&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&typeof e.name=="string"&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];typeof t=="string"&&(t={name:t}),e=Fe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Lr(e,t){t=_t(t);var i=Zt[t.name];if(!i)return Lr(e,"text/plain");var n=i(e,t);if(Et.hasOwnProperty(t.name)){var c=Et[t.name];for(var N in c){if(!c.hasOwnProperty(N))continue;n.hasOwnProperty(N)&&(n["_"+N]=n[N]),n[N]=c[N]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var z in t.modeProps)n[z]=t.modeProps[z];return n}var Et={};function wt(e,t){var i=Et.hasOwnProperty(e)?Et[e]:Et[e]={};g(t,i)}function Ut(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var c=t[n];c instanceof Array&&(c=c.concat([])),i[n]=c}return i}function tr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function cr(e,t,i){return e.startState?e.startState(t,i):!0}var Nt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Nt.prototype.eol=function(){return this.pos>=this.string.length},Nt.prototype.sol=function(){return this.pos==this.lineStart},Nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nt.prototype.next=function(){if(this.post},Nt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Nt.prototype.skipToEnd=function(){this.pos=this.string.length},Nt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Nt.prototype.backUp=function(e){this.pos-=e},Nt.prototype.column=function(){return this.lastColumnPos0?null:(N&&t!==!1&&(this.pos+=N[0].length),N)}},Nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Nt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Nt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function mt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var c=i.children[n],N=c.chunkSize();if(t=e.first&&ti?Ze(i,mt(e,i).text.length):k(t,mt(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Ze(e.line,t):i<0?Ze(e.line,0):e}function W(e,t){for(var i=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},V.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},V.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},V.fromSaved=function(e,t,i){return t instanceof ee?new V(e,Ut(e.mode,t.state),i,t.lookAhead):new V(e,Ut(e.mode,t),i)},V.prototype.save=function(e){var t=e!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};function Ee(e,t,i,n){var c=[e.state.modeGen],N={};Er(e,t.text,e.doc.mode,i,function(te,pe){return c.push(te,pe)},N,n);for(var z=i.state,Q=function(te){i.baseTokens=c;var pe=e.state.overlays[te],ye=1,Me=0;i.state=!0,Er(e,t.text,pe.mode,i,function(ke,Ke){for(var $e=ye;Meke&&c.splice(ye,1,ke,c[ye+1],et),ye+=2,Me=Math.min(ke,et)}if(!Ke)return;if(pe.opaque)c.splice($e,ye-$e,ke,"overlay "+Ke),ye=$e+2;else for(;$ee.options.maxHighlightLength&&Ut(e.doc.mode,n.state),N=Ee(e,t,n);c&&(n.state=c),t.stateAfter=n.save(!c),t.styles=N.styles,N.classes?t.styleClasses=N.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function tt(e,t,i){var n=e.doc,c=e.display;if(!n.mode.startState)return new V(n,!0,t);var N=xr(e,t,i),z=N>n.first&&mt(n,N-1).stateAfter,Q=z?V.fromSaved(n,z,N):new V(n,cr(n.mode),N);return n.iter(N,t,function(q){gt(e,q.text,Q);var te=Q.line;q.stateAfter=te==t-1||te%5==0||te>=c.viewFrom&&tet.start)return N}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function $t(e,t,i,n){var c=e.doc,N=c.mode,z;t=x(c,t);var Q=mt(c,t.line),q=tt(e,t.line,i),te=new Nt(Q.text,e.options.tabSize,q),pe;for(n&&(pe=[]);(n||te.pose.options.maxHighlightLength?(Q=!1,z&>(e,t,n,pe.pos),pe.pos=t.length,ye=null):ye=jr(xt(i,pe,n.state,Me),N),Me){var ke=Me[0].name;ke&&(ye="m-"+(ye?ke+" "+ye:ke))}if(!Q||te!=ye){for(;qz;--Q){if(Q<=N.first)return N.first;var q=mt(N,Q-1),te=q.stateAfter;if(te&&(!i||Q+(te instanceof ee?te.lookAhead:0)<=N.modeFrontier))return Q;var pe=H(q.text,null,e.options.tabSize);(c==null||n>pe)&&(c=Q-1,n=pe)}return c}function Zr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;n--){var c=mt(e,n).stateAfter;if(c&&(!(c instanceof ee)||n+c.lookAhead=t:N.to>t);(n||(n=[])).push(new hn(z,N.from,q?null:N.to))}}return n}function Vn(e,t,i){var n;if(e)for(var c=0;c=t:N.to>t);if(Q||N.from==t&&z.type=="bookmark"&&(!i||N.marker.insertLeft)){var q=N.from==null||(z.inclusiveLeft?N.from<=t:N.from0&&Q)for(var pt=0;pt0)continue;var pe=[q,1],ye=Ct(te.from,Q.from),Me=Ct(te.to,Q.to);(ye<0||!z.inclusiveLeft&&!ye)&&pe.push({from:te.from,to:Q.from}),(Me>0||!z.inclusiveRight&&!Me)&&pe.push({from:Q.to,to:te.to}),c.splice.apply(c,pe),q+=pe.length-3}return c}function ci(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!n||yr(n,N.marker)<0)&&(n=N.marker)}return n}function fr(e,t,i,n,c){var N=mt(e,t),z=dr&&N.markedSpans;if(z)for(var Q=0;Q=0&&ye<=0||pe<=0&&ye>=0)continue;if(pe<=0&&(q.marker.inclusiveRight&&c.inclusiveLeft?Ct(te.to,i)>=0:Ct(te.to,i)>0)||pe>=0&&(q.marker.inclusiveRight&&c.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ar(e){for(var t;t=ar(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,i;t=Kt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function di(e,t){var i=mt(e,t),n=Ar(i);return i==n?t:Rt(n)}function Tn(e,t){if(t>e.lastLine())return t;var i=mt(e,t),n;if(!an(e,i))return t;for(;n=Kt(i);)i=n.find(1,!0).line;return Rt(i)+1}function an(e,t){var i=dr&&t.markedSpans;if(i)for(var n=void 0,c=0;ct.maxLineLength&&(t.maxLineLength=c,t.maxLine=n)})}var Mn=function(e,t,i){this.text=e,En(this,t),this.height=i?i(this):1};Mn.prototype.lineNo=function(){return Rt(this)},we(Mn);function ua(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ci(e),En(e,i);var c=n?n(e):1;c!=e.height&&Jt(e,c)}function vt(e){e.parent=null,ci(e)}var At={},Tt={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Tt:At;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var i=S("span",null,null,r?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var c=0;c<=(t.rest?t.rest.length:0);c++){var N=c?t.rest[c-1]:t.line,z=void 0;n.pos=0,n.addToken=Ft,yt(e.display.measure)&&(z=qe(N,e.doc.direction))&&(n.addToken=Dr(n.addToken,z)),n.map=[];var Q=t!=e.display.externalMeasured&&Rt(N);cn(N,n,Ye(e,N,Q)),N.styleClasses&&(N.styleClasses.bgClass&&(n.bgClass=_(N.styleClasses.bgClass,n.bgClass||"")),N.styleClasses.textClass&&(n.textClass=_(N.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ht(e.display.measure))),c==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(r){var q=n.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=_(n.pre.className,n.textClass||"")),n}function Yt(e){var t=d("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ft(e,t,i,n,c,N,z){if(!t)return;var Q=e.splitSpaces?ur(t,e.trailingSpace):t,q=e.cm.state.specialChars,te=!1,pe;if(!q.test(t))e.col+=t.length,pe=document.createTextNode(Q),e.map.push(e.pos,e.pos+t.length,pe),K&&G<9&&(te=!0),e.pos+=t.length;else{pe=document.createDocumentFragment();for(var ye=0;;){q.lastIndex=ye;var Me=q.exec(t),ke=Me?Me.index-ye:t.length-ye;if(ke){var Ke=document.createTextNode(Q.slice(ye,ye+ke));K&&G<9?pe.appendChild(d("span",[Ke])):pe.appendChild(Ke),e.map.push(e.pos,e.pos+ke,Ke),e.col+=ke,e.pos+=ke}if(!Me)break;ye+=ke+1;var $e=void 0;if(Me[0]==" "){var et=e.cm.options.tabSize,nt=et-e.col%et;$e=pe.appendChild(d("span",he(nt),"cm-tab")),$e.setAttribute("role","presentation"),$e.setAttribute("cm-text"," "),e.col+=nt}else Me[0]=="\r"||Me[0]==` -`?($e=pe.appendChild(d("span",Me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$e.setAttribute("cm-text",Me[0]),e.col+=1):($e=e.cm.options.specialCharPlaceholder(Me[0]),$e.setAttribute("cm-text",Me[0]),K&&G<9?pe.appendChild(d("span",[$e])):pe.appendChild($e),e.col+=1);e.map.push(e.pos,e.pos+1,$e),e.pos++}}if(e.trailingSpace=Q.charCodeAt(t.length-1)==32,i||n||c||te||N||z){var ut=i||"";n&&(ut+=n),c&&(ut+=c);var it=d("span",[pe],ut,N);if(z)for(var pt in z)z.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,z[pt]);return e.content.appendChild(it)}e.content.appendChild(pe)}function ur(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",c=0;cte&&ye.from<=te);Me++);if(ye.to>=pe)return e(i,n,c,N,z,Q,q);e(i,n.slice(0,ye.to-te),c,N,null,Q,q),N=null,n=n.slice(ye.to-te),te=ye.to}}}function Pt(e,t,i,n){var c=!n&&i.widgetNode;c&&e.map.push(e.pos,e.pos+t,c),!n&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",i.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=t,e.trailingSpace=!1}function cn(e,t,i){var n=e.markedSpans,c=e.text,N=0;if(!n){for(var z=1;zq||Lt.collapsed&&bt.to==q&&bt.from==q)){if(bt.to!=null&&bt.to!=q&&ke>bt.to&&(ke=bt.to,$e=""),Lt.className&&(Ke+=" "+Lt.className),Lt.css&&(Me=(Me?Me+";":"")+Lt.css),Lt.startStyle&&bt.from==q&&(et+=" "+Lt.startStyle),Lt.endStyle&&bt.to==ke&&(pt||(pt=[])).push(Lt.endStyle,bt.to),Lt.title&&((ut||(ut={})).title=Lt.title),Lt.attributes)for(var Xt in Lt.attributes)(ut||(ut={}))[Xt]=Lt.attributes[Xt];Lt.collapsed&&(!nt||yr(nt.marker,Lt)<0)&&(nt=bt)}else bt.from>q&&ke>bt.from&&(ke=bt.from)}if(pt)for(var gr=0;gr=Q)break;for(var Gr=Math.min(Q,ke);;){if(pe){var Nr=q+pe.length;if(!nt){var sr=Nr>Gr?pe.slice(0,Gr-q):pe;t.addToken(t,sr,ye?ye+Ke:Ke,et,q+sr.length==ke?$e:"",Me,ut)}if(Nr>=Gr){pe=pe.slice(Gr-q),q=Gr;break}q=Nr,et=""}pe=c.slice(N,N=i[te++]),ye=kt(i[te++],t.cm.options)}}}function Wt(e,t,i){this.line=t,this.rest=xn(t),this.size=this.rest?Rt(re(this.rest))-i+1:1,this.node=this.text=null,this.hidden=an(e,t)}function kr(e,t,i){for(var n=[],c,N=t;N2&&N.push((q.bottom+te.top)/2-i.top)}}N.push(i.bottom-i.top)}}function es(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;ni)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}function Bo(e,t){t=Ar(t);var i=Rt(t),n=e.display.externalMeasured=new Wt(e.doc,t,i);n.lineN=i;var c=n.built=Bt(e,n);return n.text=c.pre,T(e.display.lineMeasure,c.pre),n}function ts(e,t,i,n){return on(e,Xn(e,t),i,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(N=q-Q,c=N-1,t>=q&&(z="right")),c!=null){if(n=e[te+2],Q==q&&i==(n.insertLeft?"left":"right")&&(z=i),i=="left"&&c==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],z="left";if(i=="right"&&c==q-Q)for(;te=0&&!((i=e[c]).left!=i.right);c--);return i}function Ho(e,t,i,n){var c=ns(t.map,i,n),N=c.node,z=c.start,Q=c.end,q=c.collapse,te;if(N.nodeType==3){for(var pe=0;pe<4;pe++){for(;z&&Se(t.line.text.charAt(c.coverStart+z));)--z;for(;c.coverStart+Q0&&(q=n="right");var ye;e.options.lineWrapping&&(ye=N.getClientRects()).length>1?te=ye[n=="right"?ye.length-1:0]:te=N.getBoundingClientRect()}if(K&&G<9&&!z&&(!te||!te.left&&!te.right)){var Me=N.parentNode.getClientRects()[0];Me?te={left:Me.left,right:Me.left+Jn(e.display),top:Me.top,bottom:Me.bottom}:te=rs}for(var ke=te.top-t.rect.top,Ke=te.bottom-t.rect.top,$e=(ke+Ke)/2,et=t.view.measure.heights,nt=0;nt=n.text.length?(q=n.text.length,te="before"):q<=0&&(q=0,te="after"),!Q)return z(te=="before"?q-1:q,te=="before");function pe(Ke,$e,et){var nt=Q[$e],ut=nt.level==1;return z(et?Ke-1:Ke,ut!=et)}var ye=Je(Q,q,te),Me=Qe,ke=pe(q,ye,te=="before");return Me!=null&&(ke.other=pe(q,Me,te!="before")),ke}function us(e,t){var i=0;t=x(e.doc,t),e.options.lineWrapping||(i=Jn(e.display)*t.ch);var n=mt(e.doc,t.line),c=qr(n)+Hi(e.display);return{left:i,right:i,top:c,bottom:c+n.height}}function ga(e,t,i,n,c){var N=Ze(e,t,i);return N.xRel=c,n&&(N.outside=n),N}function va(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return ga(n.first,0,null,-1,-1);var c=lr(n,i),N=n.first+n.size-1;if(c>N)return ga(n.first+n.size-1,mt(n,N).text.length,null,1,1);t<0&&(t=0);for(var z=mt(n,c);;){var Q=Go(e,z,c,t,i),q=nn(z,Q.ch+(Q.xRel>0||Q.outside>0?1:0));if(!q)return Q;var te=q.find(1);if(te.line==c)return te;z=mt(n,c=te.line)}}function hs(e,t,i,n){n-=pa(t);var c=t.text.length,N=We(function(z){return on(e,i,z-1).bottom<=n},c,0);return c=We(function(z){return on(e,i,z).top>n},N,c),{begin:N,end:c}}function cs(e,t,i,n){i||(i=Xn(e,t));var c=Wi(e,t,on(e,i,n),"line").top;return hs(e,t,i,c)}function ya(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Go(e,t,i,n,c){c-=qr(t);var N=Xn(e,t),z=pa(t),Q=0,q=t.text.length,te=!0,pe=qe(t,e.doc.direction);if(pe){var ye=(e.options.lineWrapping?zo:Ko)(e,t,i,N,pe,n,c);te=ye.level!=1,Q=te?ye.from:ye.to-1,q=te?ye.to:ye.from-1}var Me=null,ke=null,Ke=We(function(St){var bt=on(e,N,St);return bt.top+=z,bt.bottom+=z,ya(bt,n,c,!1)?(bt.top<=c&&bt.left<=n&&(Me=St,ke=bt),!0):!1},Q,q),$e,et,nt=!1;if(ke){var ut=n-ke.left=pt.bottom?1:0}return Ke=Ie(t.text,Ke,1),ga(i,Ke,et,nt,n-$e)}function Ko(e,t,i,n,c,N,z){var Q=We(function(ye){var Me=c[ye],ke=Me.level!=1;return ya(en(e,Ze(i,ke?Me.to:Me.from,ke?"before":"after"),"line",t,n),N,z,!0)},0,c.length-1),q=c[Q];if(Q>0){var te=q.level!=1,pe=en(e,Ze(i,te?q.from:q.to,te?"after":"before"),"line",t,n);ya(pe,N,z,!0)&&pe.top>z&&(q=c[Q-1])}return q}function zo(e,t,i,n,c,N,z){var Q=hs(e,t,n,z),q=Q.begin,te=Q.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var pe=null,ye=null,Me=0;Me=te||ke.to<=q)continue;var Ke=ke.level!=1,$e=on(e,n,Ke?Math.min(te,ke.to)-1:Math.max(q,ke.from)).right,et=$eet)&&(pe=ke,ye=et)}return pe||(pe=c[c.length-1]),pe.fromte&&(pe={from:pe.from,to:te,level:pe.level}),pe}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=d("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(d("br"));Nn.appendChild(document.createTextNode("x"))}T(e.measure,Nn);var i=Nn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),C(e.measure),i||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=d("span","xxxxxxxxxx"),i=d("pre",[t],"CodeMirror-line-like");T(e.measure,i);var n=t.getBoundingClientRect(),c=(n.right-n.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function ba(e){for(var t=e.display,i={},n={},c=t.gutters.clientLeft,N=t.gutters.firstChild,z=0;N;N=N.nextSibling,++z){var Q=e.display.gutterSpecs[z].className;i[Q]=N.offsetLeft+N.clientLeft+c,n[Q]=N.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ds(e){var t=$n(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(c){if(an(e.doc,c))return 0;var N=0;if(c.widgets)for(var z=0;z0&&(te=mt(e.doc,q.line).text).length==q.ch){var pe=H(te,te.length,e.options.tabSize)-te.length;q=Ze(q.line,Math.max(0,Math.round((N-qa(e.display).left)/Jn(e.display))-pe))}return q}function Un(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;nt)&&(c.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=c.viewTo)dr&&di(e.doc,t)c.viewFrom?Sn(e):(c.viewFrom+=n,c.viewTo+=n);else if(t<=c.viewFrom&&i>=c.viewTo)Sn(e);else if(t<=c.viewFrom){var N=Gi(e,i,i+n,1);N?(c.view=c.view.slice(N.index),c.viewFrom=N.lineN,c.viewTo+=n):Sn(e)}else if(i>=c.viewTo){var z=Gi(e,t,t,-1);z?(c.view=c.view.slice(0,z.index),c.viewTo=z.lineN):Sn(e)}else{var Q=Gi(e,t,t,-1),q=Gi(e,i,i+n,1);Q&&q?(c.view=c.view.slice(0,Q.index).concat(kr(e,Q.lineN,q.lineN)).concat(c.view.slice(q.index)),c.viewTo+=n):Sn(e)}var te=c.externalMeasured;te&&(i=c.lineN&&t=n.viewTo)return;var N=n.view[Un(e,t)];if(N.node==null)return;var z=N.changes||(N.changes=[]);ne(z,i)==-1&&z.push(i)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gi(e,t,i,n){var c=Un(e,t),N,z=e.display.view;if(!dr||i==e.doc.first+e.doc.size)return{index:c,lineN:i};for(var Q=e.display.viewFrom,q=0;q0){if(c==z.length-1)return null;N=Q+z[c].size-t,c++}else N=Q-t;t+=N,i+=N}for(;di(e.doc,i)!=i;){if(c==(n<0?0:z.length-1))return null;i+=n*z[c-(n<0?1:0)].size,c+=n}return{index:c,lineN:i}}function Vo(e,t,i){var n=e.display,c=n.view;c.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=kr(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=kr(e,t,n.viewFrom).concat(n.view):n.viewFromi&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function fs(e){for(var t=e.display.view,i=0,n=0;n=e.display.viewTo||Q.to().line1}var Zt={},Dt={};function Cr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Zt[e]=t}function Kr(e,t){Dt[e]=t}function _t(e){if(typeof e=="string"&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&typeof e.name=="string"&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];typeof t=="string"&&(t={name:t}),e=Fe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Lr(e,t){t=_t(t);var i=Zt[t.name];if(!i)return Lr(e,"text/plain");var n=i(e,t);if(Et.hasOwnProperty(t.name)){var d=Et[t.name];for(var N in d){if(!d.hasOwnProperty(N))continue;n.hasOwnProperty(N)&&(n["_"+N]=n[N]),n[N]=d[N]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var z in t.modeProps)n[z]=t.modeProps[z];return n}var Et={};function wt(e,t){var i=Et.hasOwnProperty(e)?Et[e]:Et[e]={};g(t,i)}function Ut(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var d=t[n];d instanceof Array&&(d=d.concat([])),i[n]=d}return i}function tr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function dr(e,t,i){return e.startState?e.startState(t,i):!0}var Nt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Nt.prototype.eol=function(){return this.pos>=this.string.length},Nt.prototype.sol=function(){return this.pos==this.lineStart},Nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nt.prototype.next=function(){if(this.post},Nt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Nt.prototype.skipToEnd=function(){this.pos=this.string.length},Nt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Nt.prototype.backUp=function(e){this.pos-=e},Nt.prototype.column=function(){return this.lastColumnPos0?null:(N&&t!==!1&&(this.pos+=N[0].length),N)}},Nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Nt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Nt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function mt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var d=i.children[n],N=d.chunkSize();if(t=e.first&&ti?Ze(i,mt(e,i).text.length):k(t,mt(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Ze(e.line,t):i<0?Ze(e.line,0):e}function W(e,t){for(var i=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},V.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},V.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},V.fromSaved=function(e,t,i){return t instanceof ee?new V(e,Ut(e.mode,t.state),i,t.lookAhead):new V(e,Ut(e.mode,t),i)},V.prototype.save=function(e){var t=e!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};function Ee(e,t,i,n){var d=[e.state.modeGen],N={};Er(e,t.text,e.doc.mode,i,function(te,pe){return d.push(te,pe)},N,n);for(var z=i.state,Q=function(te){i.baseTokens=d;var pe=e.state.overlays[te],ye=1,Me=0;i.state=!0,Er(e,t.text,pe.mode,i,function(ke,Ke){for(var $e=ye;Meke&&d.splice(ye,1,ke,d[ye+1],et),ye+=2,Me=Math.min(ke,et)}if(!Ke)return;if(pe.opaque)d.splice($e,ye-$e,ke,"overlay "+Ke),ye=$e+2;else for(;$ee.options.maxHighlightLength&&Ut(e.doc.mode,n.state),N=Ee(e,t,n);d&&(n.state=d),t.stateAfter=n.save(!d),t.styles=N.styles,N.classes?t.styleClasses=N.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function tt(e,t,i){var n=e.doc,d=e.display;if(!n.mode.startState)return new V(n,!0,t);var N=xr(e,t,i),z=N>n.first&&mt(n,N-1).stateAfter,Q=z?V.fromSaved(n,z,N):new V(n,dr(n.mode),N);return n.iter(N,t,function(q){gt(e,q.text,Q);var te=Q.line;q.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return N}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function $t(e,t,i,n){var d=e.doc,N=d.mode,z;t=x(d,t);var Q=mt(d,t.line),q=tt(e,t.line,i),te=new Nt(Q.text,e.options.tabSize,q),pe;for(n&&(pe=[]);(n||te.pose.options.maxHighlightLength?(Q=!1,z&>(e,t,n,pe.pos),pe.pos=t.length,ye=null):ye=jr(xt(i,pe,n.state,Me),N),Me){var ke=Me[0].name;ke&&(ye="m-"+(ye?ke+" "+ye:ke))}if(!Q||te!=ye){for(;qz;--Q){if(Q<=N.first)return N.first;var q=mt(N,Q-1),te=q.stateAfter;if(te&&(!i||Q+(te instanceof ee?te.lookAhead:0)<=N.modeFrontier))return Q;var pe=H(q.text,null,e.options.tabSize);(d==null||n>pe)&&(d=Q-1,n=pe)}return d}function Zr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;n--){var d=mt(e,n).stateAfter;if(d&&(!(d instanceof ee)||n+d.lookAhead=t:N.to>t);(n||(n=[])).push(new hn(z,N.from,q?null:N.to))}}return n}function Vn(e,t,i){var n;if(e)for(var d=0;d=t:N.to>t);if(Q||N.from==t&&z.type=="bookmark"&&(!i||N.marker.insertLeft)){var q=N.from==null||(z.inclusiveLeft?N.from<=t:N.from0&&Q)for(var pt=0;pt0)continue;var pe=[q,1],ye=Ct(te.from,Q.from),Me=Ct(te.to,Q.to);(ye<0||!z.inclusiveLeft&&!ye)&&pe.push({from:te.from,to:Q.from}),(Me>0||!z.inclusiveRight&&!Me)&&pe.push({from:Q.to,to:te.to}),d.splice.apply(d,pe),q+=pe.length-3}return d}function di(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!n||yr(n,N.marker)<0)&&(n=N.marker)}return n}function fr(e,t,i,n,d){var N=mt(e,t),z=cr&&N.markedSpans;if(z)for(var Q=0;Q=0&&ye<=0||pe<=0&&ye>=0)continue;if(pe<=0&&(q.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,i)>=0:Ct(te.to,i)>0)||pe>=0&&(q.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ar(e){for(var t;t=ar(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,i;t=Kt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function ci(e,t){var i=mt(e,t),n=Ar(i);return i==n?t:Rt(n)}function Tn(e,t){if(t>e.lastLine())return t;var i=mt(e,t),n;if(!an(e,i))return t;for(;n=Kt(i);)i=n.find(1,!0).line;return Rt(i)+1}function an(e,t){var i=cr&&t.markedSpans;if(i)for(var n=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=n)})}var Mn=function(e,t,i){this.text=e,En(this,t),this.height=i?i(this):1};Mn.prototype.lineNo=function(){return Rt(this)},we(Mn);function ua(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),di(e),En(e,i);var d=n?n(e):1;d!=e.height&&Jt(e,d)}function vt(e){e.parent=null,di(e)}var At={},Tt={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Tt:At;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var i=S("span",null,null,r?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var N=d?t.rest[d-1]:t.line,z=void 0;n.pos=0,n.addToken=Ft,yt(e.display.measure)&&(z=qe(N,e.doc.direction))&&(n.addToken=Dr(n.addToken,z)),n.map=[];var Q=t!=e.display.externalMeasured&&Rt(N);dn(N,n,Ye(e,N,Q)),N.styleClasses&&(N.styleClasses.bgClass&&(n.bgClass=_(N.styleClasses.bgClass,n.bgClass||"")),N.styleClasses.textClass&&(n.textClass=_(N.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ht(e.display.measure))),d==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(r){var q=n.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=_(n.pre.className,n.textClass||"")),n}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ft(e,t,i,n,d,N,z){if(!t)return;var Q=e.splitSpaces?ur(t,e.trailingSpace):t,q=e.cm.state.specialChars,te=!1,pe;if(!q.test(t))e.col+=t.length,pe=document.createTextNode(Q),e.map.push(e.pos,e.pos+t.length,pe),K&&G<9&&(te=!0),e.pos+=t.length;else{pe=document.createDocumentFragment();for(var ye=0;;){q.lastIndex=ye;var Me=q.exec(t),ke=Me?Me.index-ye:t.length-ye;if(ke){var Ke=document.createTextNode(Q.slice(ye,ye+ke));K&&G<9?pe.appendChild(c("span",[Ke])):pe.appendChild(Ke),e.map.push(e.pos,e.pos+ke,Ke),e.col+=ke,e.pos+=ke}if(!Me)break;ye+=ke+1;var $e=void 0;if(Me[0]==" "){var et=e.cm.options.tabSize,nt=et-e.col%et;$e=pe.appendChild(c("span",he(nt),"cm-tab")),$e.setAttribute("role","presentation"),$e.setAttribute("cm-text"," "),e.col+=nt}else Me[0]=="\r"||Me[0]==` +`?($e=pe.appendChild(c("span",Me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$e.setAttribute("cm-text",Me[0]),e.col+=1):($e=e.cm.options.specialCharPlaceholder(Me[0]),$e.setAttribute("cm-text",Me[0]),K&&G<9?pe.appendChild(c("span",[$e])):pe.appendChild($e),e.col+=1);e.map.push(e.pos,e.pos+1,$e),e.pos++}}if(e.trailingSpace=Q.charCodeAt(t.length-1)==32,i||n||d||te||N||z){var ut=i||"";n&&(ut+=n),d&&(ut+=d);var it=c("span",[pe],ut,N);if(z)for(var pt in z)z.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,z[pt]);return e.content.appendChild(it)}e.content.appendChild(pe)}function ur(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",d=0;dte&&ye.from<=te);Me++);if(ye.to>=pe)return e(i,n,d,N,z,Q,q);e(i,n.slice(0,ye.to-te),d,N,null,Q,q),N=null,n=n.slice(ye.to-te),te=ye.to}}}function Pt(e,t,i,n){var d=!n&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!n&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function dn(e,t,i){var n=e.markedSpans,d=e.text,N=0;if(!n){for(var z=1;zq||Lt.collapsed&&bt.to==q&&bt.from==q)){if(bt.to!=null&&bt.to!=q&&ke>bt.to&&(ke=bt.to,$e=""),Lt.className&&(Ke+=" "+Lt.className),Lt.css&&(Me=(Me?Me+";":"")+Lt.css),Lt.startStyle&&bt.from==q&&(et+=" "+Lt.startStyle),Lt.endStyle&&bt.to==ke&&(pt||(pt=[])).push(Lt.endStyle,bt.to),Lt.title&&((ut||(ut={})).title=Lt.title),Lt.attributes)for(var Xt in Lt.attributes)(ut||(ut={}))[Xt]=Lt.attributes[Xt];Lt.collapsed&&(!nt||yr(nt.marker,Lt)<0)&&(nt=bt)}else bt.from>q&&ke>bt.from&&(ke=bt.from)}if(pt)for(var gr=0;gr=Q)break;for(var Gr=Math.min(Q,ke);;){if(pe){var Nr=q+pe.length;if(!nt){var sr=Nr>Gr?pe.slice(0,Gr-q):pe;t.addToken(t,sr,ye?ye+Ke:Ke,et,q+sr.length==ke?$e:"",Me,ut)}if(Nr>=Gr){pe=pe.slice(Gr-q),q=Gr;break}q=Nr,et=""}pe=d.slice(N,N=i[te++]),ye=kt(i[te++],t.cm.options)}}}function Wt(e,t,i){this.line=t,this.rest=xn(t),this.size=this.rest?Rt(re(this.rest))-i+1:1,this.node=this.text=null,this.hidden=an(e,t)}function kr(e,t,i){for(var n=[],d,N=t;N2&&N.push((q.bottom+te.top)/2-i.top)}}N.push(i.bottom-i.top)}}function es(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;ni)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Bo(e,t){t=Ar(t);var i=Rt(t),n=e.display.externalMeasured=new Wt(e.doc,t,i);n.lineN=i;var d=n.built=Bt(e,n);return n.text=d.pre,T(e.display.lineMeasure,d.pre),n}function ts(e,t,i,n){return on(e,Xn(e,t),i,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(N=q-Q,d=N-1,t>=q&&(z="right")),d!=null){if(n=e[te+2],Q==q&&i==(n.insertLeft?"left":"right")&&(z=i),i=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],z="left";if(i=="right"&&d==q-Q)for(;te=0&&!((i=e[d]).left!=i.right);d--);return i}function Ho(e,t,i,n){var d=ns(t.map,i,n),N=d.node,z=d.start,Q=d.end,q=d.collapse,te;if(N.nodeType==3){for(var pe=0;pe<4;pe++){for(;z&&Se(t.line.text.charAt(d.coverStart+z));)--z;for(;d.coverStart+Q0&&(q=n="right");var ye;e.options.lineWrapping&&(ye=N.getClientRects()).length>1?te=ye[n=="right"?ye.length-1:0]:te=N.getBoundingClientRect()}if(K&&G<9&&!z&&(!te||!te.left&&!te.right)){var Me=N.parentNode.getClientRects()[0];Me?te={left:Me.left,right:Me.left+Jn(e.display),top:Me.top,bottom:Me.bottom}:te=rs}for(var ke=te.top-t.rect.top,Ke=te.bottom-t.rect.top,$e=(ke+Ke)/2,et=t.view.measure.heights,nt=0;nt=n.text.length?(q=n.text.length,te="before"):q<=0&&(q=0,te="after"),!Q)return z(te=="before"?q-1:q,te=="before");function pe(Ke,$e,et){var nt=Q[$e],ut=nt.level==1;return z(et?Ke-1:Ke,ut!=et)}var ye=Je(Q,q,te),Me=Qe,ke=pe(q,ye,te=="before");return Me!=null&&(ke.other=pe(q,Me,te!="before")),ke}function us(e,t){var i=0;t=x(e.doc,t),e.options.lineWrapping||(i=Jn(e.display)*t.ch);var n=mt(e.doc,t.line),d=qr(n)+Hi(e.display);return{left:i,right:i,top:d,bottom:d+n.height}}function ga(e,t,i,n,d){var N=Ze(e,t,i);return N.xRel=d,n&&(N.outside=n),N}function va(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return ga(n.first,0,null,-1,-1);var d=lr(n,i),N=n.first+n.size-1;if(d>N)return ga(n.first+n.size-1,mt(n,N).text.length,null,1,1);t<0&&(t=0);for(var z=mt(n,d);;){var Q=Go(e,z,d,t,i),q=nn(z,Q.ch+(Q.xRel>0||Q.outside>0?1:0));if(!q)return Q;var te=q.find(1);if(te.line==d)return te;z=mt(n,d=te.line)}}function hs(e,t,i,n){n-=pa(t);var d=t.text.length,N=We(function(z){return on(e,i,z-1).bottom<=n},d,0);return d=We(function(z){return on(e,i,z).top>n},N,d),{begin:N,end:d}}function ds(e,t,i,n){i||(i=Xn(e,t));var d=Wi(e,t,on(e,i,n),"line").top;return hs(e,t,i,d)}function ya(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Go(e,t,i,n,d){d-=qr(t);var N=Xn(e,t),z=pa(t),Q=0,q=t.text.length,te=!0,pe=qe(t,e.doc.direction);if(pe){var ye=(e.options.lineWrapping?zo:Ko)(e,t,i,N,pe,n,d);te=ye.level!=1,Q=te?ye.from:ye.to-1,q=te?ye.to:ye.from-1}var Me=null,ke=null,Ke=We(function(St){var bt=on(e,N,St);return bt.top+=z,bt.bottom+=z,ya(bt,n,d,!1)?(bt.top<=d&&bt.left<=n&&(Me=St,ke=bt),!0):!1},Q,q),$e,et,nt=!1;if(ke){var ut=n-ke.left=pt.bottom?1:0}return Ke=Ie(t.text,Ke,1),ga(i,Ke,et,nt,n-$e)}function Ko(e,t,i,n,d,N,z){var Q=We(function(ye){var Me=d[ye],ke=Me.level!=1;return ya(en(e,Ze(i,ke?Me.to:Me.from,ke?"before":"after"),"line",t,n),N,z,!0)},0,d.length-1),q=d[Q];if(Q>0){var te=q.level!=1,pe=en(e,Ze(i,te?q.from:q.to,te?"after":"before"),"line",t,n);ya(pe,N,z,!0)&&pe.top>z&&(q=d[Q-1])}return q}function zo(e,t,i,n,d,N,z){var Q=hs(e,t,n,z),q=Q.begin,te=Q.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var pe=null,ye=null,Me=0;Me=te||ke.to<=q)continue;var Ke=ke.level!=1,$e=on(e,n,Ke?Math.min(te,ke.to)-1:Math.max(q,ke.from)).right,et=$eet)&&(pe=ke,ye=et)}return pe||(pe=d[d.length-1]),pe.fromte&&(pe={from:pe.from,to:te,level:pe.level}),pe}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(c("br"));Nn.appendChild(document.createTextNode("x"))}T(e.measure,Nn);var i=Nn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),C(e.measure),i||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),i=c("pre",[t],"CodeMirror-line-like");T(e.measure,i);var n=t.getBoundingClientRect(),d=(n.right-n.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,i={},n={},d=t.gutters.clientLeft,N=t.gutters.firstChild,z=0;N;N=N.nextSibling,++z){var Q=e.display.gutterSpecs[z].className;i[Q]=N.offsetLeft+N.clientLeft+d,n[Q]=N.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=$n(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(d){if(an(e.doc,d))return 0;var N=0;if(d.widgets)for(var z=0;z0&&(te=mt(e.doc,q.line).text).length==q.ch){var pe=H(te,te.length,e.options.tabSize)-te.length;q=Ze(q.line,Math.max(0,Math.round((N-qa(e.display).left)/Jn(e.display))-pe))}return q}function Un(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;nt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)cr&&ci(e.doc,t)d.viewFrom?Sn(e):(d.viewFrom+=n,d.viewTo+=n);else if(t<=d.viewFrom&&i>=d.viewTo)Sn(e);else if(t<=d.viewFrom){var N=Gi(e,i,i+n,1);N?(d.view=d.view.slice(N.index),d.viewFrom=N.lineN,d.viewTo+=n):Sn(e)}else if(i>=d.viewTo){var z=Gi(e,t,t,-1);z?(d.view=d.view.slice(0,z.index),d.viewTo=z.lineN):Sn(e)}else{var Q=Gi(e,t,t,-1),q=Gi(e,i,i+n,1);Q&&q?(d.view=d.view.slice(0,Q.index).concat(kr(e,Q.lineN,q.lineN)).concat(d.view.slice(q.index)),d.viewTo+=n):Sn(e)}var te=d.externalMeasured;te&&(i=d.lineN&&t=n.viewTo)return;var N=n.view[Un(e,t)];if(N.node==null)return;var z=N.changes||(N.changes=[]);ne(z,i)==-1&&z.push(i)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gi(e,t,i,n){var d=Un(e,t),N,z=e.display.view;if(!cr||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Q=e.display.viewFrom,q=0;q0){if(d==z.length-1)return null;N=Q+z[d].size-t,d++}else N=Q-t;t+=N,i+=N}for(;ci(e.doc,i)!=i;){if(d==(n<0?0:z.length-1))return null;i+=n*z[d-(n<0?1:0)].size,d+=n}return{index:d,lineN:i}}function Vo(e,t,i){var n=e.display,d=n.view;d.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=kr(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=kr(e,t,n.viewFrom).concat(n.view):n.viewFromi&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function fs(e){for(var t=e.display.view,i=0,n=0;n=e.display.viewTo||Q.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Zn(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),r&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Zn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zi(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n.005||pe<-.005)&&(Jt(c.line,z),ys(c.line),c.rest))for(var ye=0;yee.display.sizerWidth){var Me=Math.ceil(Q/Jn(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=z&&(N=lr(t,qr(mt(t,q))-e.wrapper.clientHeight),z=q)}return{from:N,to:Math.max(z,N+1)}}function Xo(e,t){if(Ge(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),c=null;if(t.top+n.top<0?c=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!u){var N=d("div","\u200B",null,`position: absolute; + height: `+(bt-pt)+"px"))}function ye(it,pt,St){var bt=mt(d,it),Lt=bt.text.length,Xt,gr;function er(sr,Fr){return ma(e,Ze(it,sr),"div",bt,Fr)}function Gr(sr,Fr,_r){var hr=ds(e,bt,null,sr),or=Fr=="ltr"==(_r=="after")?"left":"right",rr=_r=="after"?hr.begin:hr.end-(/\s/.test(bt.text.charAt(hr.end-1))?2:1);return er(rr,or)[or]}var Nr=qe(bt,d.direction);return Ve(Nr,pt||0,St==null?Lt:St,function(sr,Fr,_r,hr){var or=_r=="ltr",rr=er(sr,or?"left":"right"),Ur=er(Fr-1,or?"right":"left"),ui=pt==null&&sr==0,In=St==null&&Fr==Lt,Sr=hr==0,ln=!Nr||hr==Nr.length-1;if(Ur.top-rr.top<=3){var vr=(te?ui:In)&&Sr,Va=(te?In:ui)&&ln,pn=vr?Q:(or?rr:Ur).left,Gn=Va?q:(or?Ur:rr).right;pe(pn,rr.top,Gn-pn,rr.bottom)}else{var Kn,Rr,hi,Ya;or?(Kn=te&&ui&&Sr?Q:rr.left,Rr=te?q:Gr(sr,_r,"before"),hi=te?Q:Gr(Fr,_r,"after"),Ya=te&&In&&ln?q:Ur.right):(Kn=te?Gr(sr,_r,"before"):Q,Rr=!te&&ui&&Sr?q:rr.right,hi=!te&&In&&ln?Q:Ur.left,Ya=te?Gr(Fr,_r,"after"):q),pe(Kn,rr.top,Rr-Kn,rr.bottom),rr.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Zn(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),r&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Zn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zi(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n.005||pe<-.005)&&(Jt(d.line,z),ys(d.line),d.rest))for(var ye=0;yee.display.sizerWidth){var Me=Math.ceil(Q/Jn(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=z&&(N=lr(t,qr(mt(t,q))-e.wrapper.clientHeight),z=q)}return{from:N,to:Math.max(z,N+1)}}function Xo(e,t){if(Ge(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),d=null;if(t.top+n.top<0?d=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var N=c("div","\u200B",null,`position: absolute; top: `+(t.top-i.viewOffset-Hi(e.display))+`px; height: `+(t.bottom-t.top+sn(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(N),N.scrollIntoView(c),e.display.lineSpace.removeChild(N)}}function $o(e,t,i,n){n==null&&(n=0);var c;!e.options.lineWrapping&&t==i&&(t=t.ch?Ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ze(t.line,t.ch+1,"before"):t);for(var N=0;N<5;N++){var z=!1,Q=en(e,t),q=!i||i==t?Q:en(e,i);c={left:Math.min(Q.left,q.left),top:Math.min(Q.top,q.top)-n,right:Math.max(Q.left,q.left),bottom:Math.max(Q.bottom,q.bottom)+n};var te=wa(e,c),pe=e.doc.scrollTop,ye=e.doc.scrollLeft;if(te.scrollTop!=null&&(Ei(e,te.scrollTop),Math.abs(e.doc.scrollTop-pe)>1&&(z=!0)),te.scrollLeft!=null&&(Bn(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-ye)>1&&(z=!0)),!z)break}return c}function Jo(e,t){var i=wa(e,t);i.scrollTop!=null&&Ei(e,i.scrollTop),i.scrollLeft!=null&&Bn(e,i.scrollLeft)}function wa(e,t){var i=e.display,n=$n(e.display);t.top<0&&(t.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,N=da(e),z={};t.bottom-t.top>N&&(t.bottom=t.top+N);var Q=e.doc.height+ca(i),q=t.topQ-n;if(t.topc+N){var pe=Math.min(t.top,(te?Q:t.bottom)-N);pe!=c&&(z.scrollTop=pe)}var ye=e.options.fixedGutter?0:i.gutters.offsetWidth,Me=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-ye,ke=Pn(e)-i.gutters.offsetWidth,Ke=t.right-t.left>ke;return Ke&&(t.right=t.left+ke),t.left<10?z.scrollLeft=0:t.leftke+Me-3&&(z.scrollLeft=t.right+(Ke?0:10)-ke),z}function Sa(e,t){if(t==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qn(e){Yi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _i(e,t,i){(t!=null||i!=null)&&Yi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zo(e,t){Yi(e),e.curOp.scrollToPos=t}function Yi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=us(e,t.from),n=us(e,t.to);bs(e,i,n,t.margin)}}function bs(e,t,i,n){var c=wa(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});_i(e,c.scrollLeft,c.scrollTop)}function Ei(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||Aa(e,{top:t}),_s(e,t,!0),P&&Aa(e),wi(e,100)}function _s(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Bn(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xi(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+ca(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var jn=function(e,t,i){this.cm=i;var n=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=c.tabIndex=-1,e(n),e(c),Ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ue(c,"scroll",function(){c.clientWidth&&t(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,K&&G<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var c=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var N=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},jn.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var c=e.getBoundingClientRect(),N=i=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);N!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ti=function(){};Ti.prototype.update=function(){return{bottom:0,right:0}},Ti.prototype.setScrollLeft=function(){},Ti.prototype.setScrollTop=function(){},Ti.prototype.clear=function(){};function qn(e,t){t||(t=xi(e));var i=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var c=0;c<4&&i!=e.display.barWidth||n!=e.display.barHeight;c++)i!=e.display.barWidth&&e.options.lineWrapping&&zi(e),Es(e,xi(e)),i=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var xs={native:jn,null:Ti};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Bn(e,t):Ei(e,t)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Qo=0;function Hn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Qo},Jr(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(i){for(var n=0;n=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function rl(e){var t=e.cm,i=t.display;e.updatedDisplay&&zi(t),e.barMeasure=xi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=tt(e,t.highlightFrontier),c=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(N){if(n.line>=e.display.viewFrom){var z=N.styles,Q=N.text.length>e.options.maxHighlightLength?Ut(t.mode,n.state):null,q=Ee(e,N,n,!0);Q&&(n.state=Q),N.styles=q.styles;var te=N.styleClasses,pe=q.classes;pe?N.styleClasses=pe:te&&(N.styleClasses=null);for(var ye=!z||z.length!=N.styles.length||te!=pe&&(!te||!pe||te.bgClass!=pe.bgClass||te.textClass!=pe.textClass),Me=0;!ye&&Mei)return wi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),c.length&&Wr(e,function(){for(var N=0;N=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var c=n.first+n.size,N=Math.max(t.visible.from-e.options.viewportMargin,n.first),z=Math.min(c,t.visible.to+e.options.viewportMargin);i.viewFromz&&i.viewTo-z<20&&(z=Math.min(c,i.viewTo)),dr&&(N=di(e.doc,N),z=Tn(e.doc,z));var Q=N!=i.viewFrom||z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Vo(e,N,z),i.viewOffset=qr(mt(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var q=fs(e);if(!Q&&q==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var te=ol(e);return q>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),q>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(te),C(i.cursorDiv),C(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Q&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function ws(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+ca(e.display)-da(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vi(e.display,e.doc,i));if(!Ca(e,t))break;zi(e);var c=xi(e);bi(e),qn(e,c),Ra(e,c),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var i=new Xi(e,t);if(Ca(e,i)){zi(e),ws(e,i);var n=xi(e);bi(e),qn(e,n),Ra(e,n),i.finish()}}function ul(e,t,i){var n=e.display,c=e.options.lineNumbers,N=n.lineDiv,z=N.firstChild;function Q(Ke){var $e=Ke.nextSibling;return r&&s&&e.display.currentWheelTarget==Ke?Ke.style.display="none":Ke.parentNode.removeChild(Ke),$e}for(var q=n.view,te=n.viewFrom,pe=0;pe-1&&(ke=!1),Xa(e,ye,te,i)),ke&&(C(ye.lineNumber),ye.lineNumber.appendChild(document.createTextNode(Xr(e.options,te)))),z=ye.node.nextSibling}te+=ye.size}for(;z;)z=Q(z)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,c=t.gutters.offsetWidth,N=n+"px",z=0;zz.clientWidth,q=z.scrollHeight>z.clientHeight;if(!(n&&Q||c&&q))return;if(c&&s&&r){e:for(var te=t.target,pe=N.view;te!=z;te=te.parentNode)for(var ye=0;ye=0&&Ct(e,n.to())<=0)return i}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,i){var n=e&&e.options.selectionsMayTouch,c=t[i];t.sort(function(Me,ke){return Ct(Me.from(),ke.from())}),i=ne(t,c);for(var N=1;N0:q>=0){var te=yn(Q.from(),z.from()),pe=vn(Q.to(),z.to()),ye=Q.empty()?z.from()==z.head:Q.from()==Q.head;N<=i&&--i,t.splice(--N,2,new Gt(ye?pe:te,ye?te:pe))}}return new Yr(t,i)}function Cn(e,t){return new Yr([new Gt(e,t||e)],0)}function An(e){return e.text?Ze(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Ze(i,n)}function Ia(e,t){for(var i=[],n=0;n1&&e.remove(Q.line+1,Ke-1),e.insert(Q.line+1,nt)}br(e,"change",e,t)}function On(e,t,i){function n(c,N,z){if(c.linked)for(var Q=0;Q1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Ns(e,t,i,n){var c=e.history;c.undone.length=0;var N=+new Date,z,Q;if((c.lastOp==n||c.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&c.lastModTime>N-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(z=pl(c,c.lastOp==n)))Q=re(z.changes),Ct(t.from,t.to)==0&&Ct(t.from,Q.to)==0?Q.to=An(t):z.changes.push(Ma(e,t));else{var q=re(c.done);for((!q||!q.ranges)&&Zi(e.sel,c.done),z={changes:[Ma(e,t)],generation:c.generation},c.done.push(z);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(i),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=N,c.lastOp=c.lastSelOp=n,c.lastOrigin=c.lastSelOrigin=t.origin,Q||je(e,"historyAdded")}function ml(e,t,i,n){var c=t.charAt(0);return c=="*"||c=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var c=e.history,N=n&&n.origin;i==c.lastSelOp||N&&c.lastSelOrigin==N&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==N||ml(e,N,re(c.done),t))?c.done[c.done.length-1]=t:Zi(t,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=N,c.lastSelOp=i,n&&n.clearRedo!==!1&&Ps(c.undone)}function Zi(e,t){var i=re(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Fs(e,t,i,n){var c=t["spans_"+e.id],N=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(z){z.markedSpans&&((c||(c=t["spans_"+e.id]={}))[N]=z.markedSpans),++N})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(re(Q)[ye]=te[ye],delete te[ye]))}}return n}function Pa(e,t,i,n){if(n){var c=e.anchor;if(i){var N=Ct(t,c)<0;N!=Ct(i,c)<0?(c=t,t=i):N!=Ct(t,i)<0&&(t=i)}return new Gt(c,t)}else return new Gt(i||t,t)}function Qi(e,t,i,n,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new Yr([Pa(e.sel.primary(),t,i,c)],0),n)}function Bs(e,t,i){for(var n=[],c=e.cm&&(e.cm.display.shift||e.extend),N=0;N=t.ch:Q.to>t.ch))){if(c&&(je(q,"beforeCursorEnter"),q.explicitlyCleared))if(N.markedSpans){--z;continue}else break;if(!q.atomic)continue;if(i){var ye=q.find(n<0?1:-1),Me=void 0;if((n<0?pe:te)&&(ye=zs(e,ye,-n,ye&&ye.line==t.line?N:null)),ye&&ye.line==t.line&&(Me=Ct(ye,i))&&(n<0?Me<0:Me>0))return ti(e,ye,t,n,c)}var ke=q.find(n<0?-1:1);return(n<0?te:pe)&&(ke=zs(e,ke,n,ke.line==t.line?N:null)),ke?ti(e,ke,t,n,c):null}}return t}function ea(e,t,i,n,c){var N=n||1,z=ti(e,t,i,N,c)||!c&&ti(e,t,i,N,!0)||ti(e,t,i,-N,c)||!c&&ti(e,t,i,-N,!0);return z||(e.cantEdit=!0,Ze(e.first,0))}function zs(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?x(e,Ze(t.line-1)):null:i>0&&t.ch==(n||mt(e,t.line)).text.length?t.line=0;--c)Xs(e,{from:n[c].from,to:n[c].to,text:c?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var i=Ia(e,t);Ns(e,t,i,e.cm?e.cm.curOp.id:NaN),Ai(e,t,i,Qr(e,t));var n=[];On(e,function(c,N){!N&&ne(n,c.history)==-1&&(Qs(c.history,t),n.push(c.history)),Ai(c,t,null,Qr(c,t))})}function ta(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var c=e.history,N,z=e.sel,Q=t=="undo"?c.done:c.undone,q=t=="undo"?c.undone:c.done,te=0;te=0;--ke){var Ke=Me(ke);if(Ke)return Ke.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yr(fe(e.sel.ranges,function(c){return new Gt(Ze(c.anchor.line+t,c.anchor.ch),Ze(c.head.line+t,c.head.ch))}),e.sel.primIndex),e.cm){Mr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;ne.lastLine())return;if(t.from.lineN&&(t={from:t.from,to:Ze(N,mt(e,N).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Br(e,t.from,t.to),i||(i=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qi(e,i,ge),e.cantEdit&&ea(e,Ze(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,i){var n=e.doc,c=e.display,N=t.from,z=t.to,Q=!1,q=N.line;e.options.lineWrapping||(q=Rt(Ar(mt(n,N.line))),n.iter(q,z.line+1,function(ke){if(ke==c.maxLine)return Q=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ae(e),ka(n,t,i,ds(e)),e.options.lineWrapping||(n.iter(q,N.line+t.text.length,function(ke){var Ke=pi(ke);Ke>c.maxLineLength&&(c.maxLine=ke,c.maxLineLength=Ke,c.maxLineChanged=!0,Q=!1)}),Q&&(e.curOp.updateMaxLine=!0)),Zr(n,N.line),wi(e,400);var te=t.text.length-(z.line-N.line)-1;t.full?Mr(e):N.line==z.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,N.line,"text"):Mr(e,N.line,z.line+1,te);var pe=_e(e,"changes"),ye=_e(e,"change");if(ye||pe){var Me={from:N,to:z,text:t.text,removed:t.removed,origin:t.origin};ye&&br(e,"change",e,Me),pe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Me)}e.display.selForContextMenu=null}function ni(e,t,i,n,c){var N;n||(n=i),Ct(n,i)<0&&(N=[n,i],i=N[0],n=N[1]),typeof t=="string"&&(t=e.splitLines(t)),ri(e,{from:i,to:n,text:t,origin:c})}function Js(e,t,i,n){i1||!(this.children[0]instanceof Ri))){var Q=[];this.collapse(Q),this.children=[new Ri(Q)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var z=c.lines.length%25+25,Q=z;Q10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=pe,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mr(e,n,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&br(e,"markerCleared",e,this,n,c),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,c=0;c0||z==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=S("span",[N.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(fr(e,t.line,t,i,N)||t.line!=i.line&&fr(e,i.line,t,i,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}N.addToHistory&&Ns(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Q=t.line,q=e.cm,te;if(e.iter(Q,i.line+1,function(ye){q&&N.collapsed&&!q.options.lineWrapping&&Ar(ye)==q.display.maxLine&&(te=!0),N.collapsed&&Q!=t.line&&Jt(ye,0),bn(ye,new hn(N,Q==t.line?t.ch:null,Q==i.line?i.ch:null)),++Q}),N.collapsed&&e.iter(t.line,i.line+1,function(ye){an(e,ye)&&Jt(ye,0)}),N.clearOnEnter&&Ue(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(zr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),N.collapsed&&(N.id=++eo,N.atomic=!0),q){if(te&&(q.curOp.updateMaxLine=!0),N.collapsed)Mr(q,t.line,i.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var pe=t.line;pe<=i.line;pe++)wn(q,pe,"text");N.atomic&&Gs(q.doc),br(q,"markerAdded",q,N)}return N}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;q--)ri(this,n[q]);Q?Hs(this,Q):this.cm&&Qn(this.cm)}),undo:mr(function(){ta(this,"undo")}),redo:mr(function(){ta(this,"redo")}),undoSelection:mr(function(){ta(this,"undo",!0)}),redoSelection:mr(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n=e.ch)&&t.push(c.marker.parent||c.marker)}return t},findMarks:function(e,t,i){e=x(this,e),t=x(this,t);var n=[],c=e.line;return this.iter(e.line,t.line+1,function(N){var z=N.markedSpans;if(z)for(var Q=0;Q=q.to||q.from==null&&c!=e.line||q.from!=null&&c==t.line&&q.from>=t.ch)&&(!i||i(q.marker))&&n.push(q.marker.parent||q.marker)}++c}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;ne)return t=e,!0;e-=N,++i}),x(this,Ze(i,t))},indexFromPos:function(e){e=x(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var pe=e.dataTransfer.getData("Text");if(pe){var ye;if(t.state.draggingText&&!t.state.draggingText.copy&&(ye=t.listSelections()),qi(t.doc,Cn(i,i)),ye)for(var Me=0;Me=0;Q--)ni(e.doc,"",n[Q].from,n[Q].to,"+delete");Qn(e)})}function Fa(e,t,i){var n=Ie(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Ua(e,t,i){var n=Fa(e,t.ch,i);return n==null?null:new Ze(t.line,n,i<0?"after":"before")}function Ba(e,t,i,n,c){if(e){t.doc.direction=="rtl"&&(c=-c);var N=qe(i,t.doc.direction);if(N){var z=c<0?re(N):N[0],Q=c<0==(z.level==1),q=Q?"after":"before",te;if(z.level>0||t.doc.direction=="rtl"){var pe=Xn(t,i);te=c<0?i.text.length-1:0;var ye=on(t,pe,te).top;te=We(function(Me){return on(t,pe,Me).top==ye},c<0==(z.level==1)?z.from:z.to-1,te),q=="before"&&(te=Fa(i,te,1))}else te=c<0?z.to:z.from;return new Ze(n,te,q)}}return new Ze(n,c<0?i.text.length:0,c<0?"before":"after")}function Ml(e,t,i,n){var c=qe(t,e.doc.direction);if(!c)return Ua(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var N=Je(c,i.ch,i.sticky),z=c[N];if(e.doc.direction=="ltr"&&z.level%2==0&&(n>0?z.to>i.ch:z.from=z.from&&Me>=pe.begin)){var ke=ye?"before":"after";return new Ze(i.line,Me,ke)}}var Ke=function(nt,ut,it){for(var pt=function(Xt,gr){return gr?new Ze(i.line,Q(Xt,1),"before"):new Ze(i.line,Xt,"after")};nt>=0&&nt0==(St.level!=1),Lt=bt?it.begin:Q(it.end,-1);if(St.from<=Lt&&Lt0?pe.end:Q(pe.begin,-1);return et!=null&&!(n>0&&et==t.text.length)&&($e=Ke(n>0?0:c.length-1,n,te(et)),$e)?$e:null}var Pi={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return si(e,function(t){if(t.empty()){var i=mt(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)c=new Ze(c.line,c.ch+1),e.replaceRange(N.charAt(c.ch-1)+N.charAt(c.ch-2),Ze(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var z=mt(e.doc,c.line-1).text;z&&(c=new Ze(c.line,1),e.replaceRange(N.charAt(0)+e.doc.lineSeparator()+z.charAt(z.length-1),Ze(c.line-1,z.length-1),c,"+transpose"))}}i.push(new Gt(c,c))}e.setSelections(i)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&i==this.button};var Fi,Ui;function Hl(e,t){var i=+new Date;return Ui&&Ui.compare(i,e,t)?(Fi=Ui=null,"triple"):Fi&&Fi.compare(i,e,t)?(Ui=new Ha(i,e,t),Fi=null,"double"):(Fi=new Ha(i,e,t),Ui=null,"single")}function vo(e){var t=this,i=t.display;if(Ge(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,dn(i,e)){r||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),c=Pe(e),N=n?Hl(n,c):"single";if(window.focus(),c==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,c,n,N,e))return;c==1?n?Kl(t,n,N,e):xe(e)==i.scroller&&ae(e):c==2?(n&&Qi(t.doc,n),setTimeout(function(){return i.input.focus()},20)):c==3&&(D?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,i,n,c){var N="Click";return n=="double"?N="Double"+N:n=="triple"&&(N="Triple"+N),N=(t==1?"Left":t==2?"Middle":"Right")+N,Ni(e,oo(N,c),c,function(z){if(typeof z=="string"&&(z=Pi[z]),!z)return!1;var Q=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Q=z(e,i)!=Oe}finally{e.state.suppressEdits=!1}return Q})}function Gl(e,t,i){var n=e.getOption("configureMouse"),c=n?n(e,t,i):{};if(c.unit==null){var N=a?i.shiftKey&&i.metaKey:i.altKey;c.unit=N?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||i.shiftKey),c.addNew==null&&(c.addNew=s?i.metaKey:i.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(s?i.altKey:i.ctrlKey)),c}function Kl(e,t,i,n){K?setTimeout(I(gs,e),0):e.curOp.focus=B();var c=Gl(e,i,n),N=e.doc.sel,z;e.options.dragDrop&&He&&!e.isReadOnly()&&i=="single"&&(z=N.contains(t))>-1&&(Ct((z=N.ranges[z]).from(),t)<0||t.xRel>0)&&(Ct(z.to(),t)>0||t.xRel<0)?zl(e,n,t,c):Vl(e,n,t,c)}function zl(e,t,i,n){var c=e.display,N=!1,z=pr(e,function(te){r&&(c.scroller.draggable=!1),e.state.draggingText=!1,lt(c.wrapper.ownerDocument,"mouseup",z),lt(c.wrapper.ownerDocument,"mousemove",Q),lt(c.scroller,"dragstart",q),lt(c.scroller,"drop",z),N||(ae(te),n.addNew||Qi(e.doc,i,null,null,n.extend),r&&!p||K&&G==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),Q=function(te){N=N||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},q=function(){return N=!0};r&&(c.scroller.draggable=!0),e.state.draggingText=z,z.copy=!n.moveOnDrag,c.scroller.dragDrop&&c.scroller.dragDrop(),Ue(c.wrapper.ownerDocument,"mouseup",z),Ue(c.wrapper.ownerDocument,"mousemove",Q),Ue(c.scroller,"dragstart",q),Ue(c.scroller,"drop",z),vs(e),setTimeout(function(){return c.input.focus()},20)}function yo(e,t,i){if(i=="char")return new Gt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Gt(Ze(t.line,0),x(e.doc,Ze(t.line+1,0)));var n=i(e,t);return new Gt(n.from,n.to)}function Vl(e,t,i,n){var c=e.display,N=e.doc;ae(t);var z,Q,q=N.sel,te=q.ranges;if(n.addNew&&!n.extend?(Q=N.sel.contains(i),Q>-1?z=te[Q]:z=new Gt(i,i)):(z=N.sel.primary(),Q=N.sel.primIndex),n.unit=="rectangle")n.addNew||(z=new Gt(i,i)),i=Fn(e,t,!0,!0),Q=-1;else{var pe=yo(e,i,n.unit);n.extend?z=Pa(z,pe.anchor,pe.head,n.extend):z=pe}n.addNew?Q==-1?(Q=te.length,wr(N,tn(e,te.concat([z]),Q),{scroll:!1,origin:"*mouse"})):te.length>1&&te[Q].empty()&&n.unit=="char"&&!n.extend?(wr(N,tn(e,te.slice(0,Q).concat(te.slice(Q+1)),0),{scroll:!1,origin:"*mouse"}),q=N.sel):Na(N,Q,z,Te):(Q=0,wr(N,new Yr([z],0),Te),q=N.sel);var ye=i;function Me(it){if(Ct(ye,it)==0)return;if(ye=it,n.unit=="rectangle"){for(var pt=[],St=e.options.tabSize,bt=H(mt(N,i.line).text,i.ch,St),Lt=H(mt(N,it.line).text,it.ch,St),Xt=Math.min(bt,Lt),gr=Math.max(bt,Lt),er=Math.min(i.line,it.line),Gr=Math.min(e.lastLine(),Math.max(i.line,it.line));er<=Gr;er++){var Nr=mt(N,er).text,sr=Le(Nr,Xt,St);Xt==gr?pt.push(new Gt(Ze(er,sr),Ze(er,sr))):Nr.length>sr&&pt.push(new Gt(Ze(er,sr),Ze(er,Le(Nr,gr,St))))}pt.length||pt.push(new Gt(i,i)),wr(N,tn(e,q.ranges.slice(0,Q).concat(pt),Q),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var Fr=z,_r=yo(e,it,n.unit),hr=Fr.anchor,or;Ct(_r.anchor,hr)>0?(or=_r.head,hr=yn(Fr.from(),_r.anchor)):(or=_r.anchor,hr=vn(Fr.to(),_r.head));var rr=q.ranges.slice(0);rr[Q]=Yl(e,new Gt(x(N,hr),or)),wr(N,tn(e,rr,Q),Te)}}var ke=c.wrapper.getBoundingClientRect(),Ke=0;function $e(it){var pt=++Ke,St=Fn(e,it,!0,n.unit=="rectangle");if(!St)return;if(Ct(St,ye)!=0){e.curOp.focus=B(),Me(St);var bt=Vi(c,N);(St.line>=bt.to||St.lineke.bottom?20:0;Lt&&setTimeout(pr(e,function(){if(Ke!=pt)return;c.scroller.scrollTop+=Lt,$e(it)}),50)}}function et(it){e.state.selectingText=!1,Ke=Infinity,it&&(ae(it),c.input.focus()),lt(c.wrapper.ownerDocument,"mousemove",nt),lt(c.wrapper.ownerDocument,"mouseup",ut),N.history.lastSelOrigin=null}var nt=pr(e,function(it){it.buttons===0||!Pe(it)?et(it):$e(it)}),ut=pr(e,et);e.state.selectingText=ut,Ue(c.wrapper.ownerDocument,"mousemove",nt),Ue(c.wrapper.ownerDocument,"mouseup",ut)}function Yl(e,t){var i=t.anchor,n=t.head,c=mt(e.doc,i.line);if(Ct(i,n)==0&&i.sticky==n.sticky)return t;var N=qe(c);if(!N)return t;var z=Je(N,i.ch,i.sticky),Q=N[z];if(Q.from!=i.ch&&Q.to!=i.ch)return t;var q=z+(Q.from==i.ch==(Q.level!=1)?0:1);if(q==0||q==N.length)return t;var te;if(n.line!=i.line)te=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var pe=Je(N,n.ch,n.sticky),ye=pe-z||(n.ch-i.ch)*(Q.level==1?-1:1);pe==q-1||pe==q?te=ye<0:te=ye>0}var Me=N[q+(te?-1:0)],ke=te==(Me.level==1),Ke=ke?Me.from:Me.to,$e=ke?"after":"before";return i.ch==Ke&&i.sticky==$e?t:new Gt(new Ze(i.line,Ke,$e),n)}function bo(e,t,i,n){var c,N;if(t.touches)c=t.touches[0].clientX,N=t.touches[0].clientY;else try{c=t.clientX,N=t.clientY}catch(Me){return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ae(t);var z=e.display,Q=z.lineDiv.getBoundingClientRect();if(N>Q.bottom||!_e(e,i))return de(t);N-=Q.top-z.viewOffset;for(var q=0;q=c){var pe=lr(e.doc,N),ye=e.display.gutterSpecs[q];return je(e,i,e,pe,ye.className,t),de(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(dn(e.display,t)||Xl(e,t))return;if(Ge(e,t,"contextmenu"))return;D||e.display.input.onContextMenu(t)}function Xl(e,t){return _e(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(e)}var oi={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function i(n,c,N,z){e.defaults[n]=c,N&&(t[n]=z?function(Q,q,te){te!=oi&&N(Q,q,te)}:N)}e.defineOption=i,e.Init=oi,i("value","",function(n,c){return n.setValue(c)},!0),i("mode",null,function(n,c){n.doc.modeOption=c,Da(n)},!0),i("indentUnit",2,Da,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ci(n),yi(n),Mr(n)},!0),i("lineSeparator",null,function(n,c){if(n.doc.lineSep=c,!c)return;var N=[],z=n.doc.first;n.doc.iter(function(q){for(var te=0;;){var pe=q.text.indexOf(c,te);if(pe==-1)break;te=pe+c.length,N.push(Ze(z,pe))}z++});for(var Q=N.length-1;Q>=0;Q--)ni(n.doc,c,N[Q],Ze(N[Q].line,N[Q].ch+c.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,c,N){n.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),N!=oi&&n.refresh()}),i("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,c){return n.getInputField().spellcheck=c},!0),i("autocorrect",!1,function(n,c){return n.getInputField().autocorrect=c},!0),i("autocapitalize",!1,function(n,c){return n.getInputField().autocapitalize=c},!0),i("rtlMoveVisually",!O),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Eo(n),Si(n)},!0),i("keyMap","default",function(n,c,N){var z=na(c),Q=N!=oi&&na(N);Q&&Q.detach&&Q.detach(n,z),z.attach&&z.attach(n,Q||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,c){n.display.gutterSpecs=La(c,n.options.lineNumbers),Si(n)},!0),i("fixedGutter",!0,function(n,c){n.display.gutters.style.left=c?_a(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),i("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,c){n.display.gutterSpecs=La(n.options.gutters,c),Si(n)},!0),i("firstLineNumber",1,Si,!0),i("lineNumberFormatter",function(n){return n},Si,!0),i("showCursorWhenSelecting",!1,bi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,c){c=="nocursor"&&(Zn(n),n.display.input.blur()),n.display.input.readOnlyChanged(c)}),i("screenReaderLabel",null,function(n,c){c=c===""?null:c,n.display.input.screenReaderLabelChanged(c)}),i("disableInput",!1,function(n,c){c||n.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,bi,!0),i("singleCursorHeightPerLine",!0,bi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ci,!0),i("addModeClass",!1,Ci,!0),i("pollInterval",100),i("undoDepth",200,function(n,c){return n.doc.history.undoDepth=c}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ci,!0),i("moveInputWithCursor",!0,function(n,c){c||n.display.input.resetPosition()}),i("tabindex",null,function(n,c){return n.display.input.getField().tabIndex=c||""}),i("autofocus",null),i("direction","ltr",function(n,c){return n.doc.setDirection(c)},!0),i("phrases",null)}function Jl(e,t,i){var n=i&&i!=oi;if(!t!=!n){var c=e.display.dragFunctions,N=t?Ue:lt;N(e.display.scroller,"dragstart",c.start),N(e.display.scroller,"dragenter",c.enter),N(e.display.scroller,"dragover",c.over),N(e.display.scroller,"dragleave",c.leave),N(e.display.scroller,"drop",c.drop)}}function Zl(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),ji(e)),Ea(e),Mr(e),yi(e),setTimeout(function(){return qn(e)},100)}function Qt(e,t){var i=this;if(!(this instanceof Qt))return new Qt(e,t);this.options=t=t?g(t):{},g(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var c=new Qt.inputStyles[t.inputStyle](this),N=this.display=new hl(e,n,c,t);N.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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 $,keySeq:null,specialChars:null},t.autofocus&&!o&&N.input.focus(),K&&G<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Ql(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Ta(i)},20):Zn(this);for(var z in aa)aa.hasOwnProperty(z)&&aa[z](this,t[z],oi);Cs(this),t.finishInit&&t.finishInit(this);for(var Q=0;Q20*20}Ue(t.scroller,"touchstart",function(q){if(!Ge(e,q)&&!N(q)&&!Wa(e,q)){t.input.ensurePolled(),clearTimeout(i);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},q.touches.length==1&&(t.activeTouch.left=q.touches[0].pageX,t.activeTouch.top=q.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(q){var te=t.activeTouch;if(te&&!dn(t,q)&&te.left!=null&&!te.moved&&new Date-te.start<300){var pe=e.coordsChar(t.activeTouch,"page"),ye;!te.prev||z(te,te.prev)?ye=new Gt(pe,pe):!te.prev.prev||z(te,te.prev.prev)?ye=e.findWordAt(pe):ye=new Gt(Ze(pe.line,0),x(e.doc,Ze(pe.line+1,0))),e.setSelection(ye.anchor,ye.head),e.focus(),ae(q)}c()}),Ue(t.scroller,"touchcancel",c),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ei(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(q){return Rs(e,q)}),Ue(t.scroller,"DOMMouseScroll",function(q){return Rs(e,q)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(q){Ge(e,q)||me(q)},over:function(q){Ge(e,q)||(Ol(e,q),me(q))},start:function(q){return Al(e,q)},drop:pr(e,Cl),leave:function(q){Ge(e,q)||no(e)}};var Q=t.input.getField();Ue(Q,"keyup",function(q){return mo.call(e,q)}),Ue(Q,"keydown",pr(e,po)),Ue(Q,"keypress",pr(e,go)),Ue(Q,"focus",function(q){return Ta(e,q)}),Ue(Q,"blur",function(q){return Zn(e,q)})}var Ga=[];Qt.defineInitHook=function(e){return Ga.push(e)};function Bi(e,t,i,n){var c=e.doc,N;i==null&&(i="add"),i=="smart"&&(c.mode.indent?N=tt(e,t).state:i="prev");var z=e.options.tabSize,Q=mt(c,t),q=H(Q.text,null,z);Q.stateAfter&&(Q.stateAfter=null);var te=Q.text.match(/^\s*/)[0],pe;if(!n&&!/\S/.test(Q.text))pe=0,i="not";else if(i=="smart"&&(pe=c.mode.indent(N,Q.text.slice(te.length),Q.text),pe==Oe||pe>150)){if(!n)return;i="prev"}i=="prev"?t>c.first?pe=H(mt(c,t-1).text,null,z):pe=0:i=="add"?pe=q+e.options.indentUnit:i=="subtract"?pe=q-e.options.indentUnit:typeof i=="number"&&(pe=q+i),pe=Math.max(0,pe);var ye="",Me=0;if(e.options.indentWithTabs)for(var ke=Math.floor(pe/z);ke;--ke)Me+=z,ye+=" ";if(Mez,q=ct(t),te=null;if(Q&&n.ranges.length>1)if(rn&&rn.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(N),N.scrollIntoView(d),e.display.lineSpace.removeChild(N)}}function $o(e,t,i,n){n==null&&(n=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?Ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ze(t.line,t.ch+1,"before"):t);for(var N=0;N<5;N++){var z=!1,Q=en(e,t),q=!i||i==t?Q:en(e,i);d={left:Math.min(Q.left,q.left),top:Math.min(Q.top,q.top)-n,right:Math.max(Q.left,q.left),bottom:Math.max(Q.bottom,q.bottom)+n};var te=wa(e,d),pe=e.doc.scrollTop,ye=e.doc.scrollLeft;if(te.scrollTop!=null&&(Ei(e,te.scrollTop),Math.abs(e.doc.scrollTop-pe)>1&&(z=!0)),te.scrollLeft!=null&&(Bn(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-ye)>1&&(z=!0)),!z)break}return d}function Jo(e,t){var i=wa(e,t);i.scrollTop!=null&&Ei(e,i.scrollTop),i.scrollLeft!=null&&Bn(e,i.scrollLeft)}function wa(e,t){var i=e.display,n=$n(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,N=ca(e),z={};t.bottom-t.top>N&&(t.bottom=t.top+N);var Q=e.doc.height+da(i),q=t.topQ-n;if(t.topd+N){var pe=Math.min(t.top,(te?Q:t.bottom)-N);pe!=d&&(z.scrollTop=pe)}var ye=e.options.fixedGutter?0:i.gutters.offsetWidth,Me=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-ye,ke=Pn(e)-i.gutters.offsetWidth,Ke=t.right-t.left>ke;return Ke&&(t.right=t.left+ke),t.left<10?z.scrollLeft=0:t.leftke+Me-3&&(z.scrollLeft=t.right+(Ke?0:10)-ke),z}function Sa(e,t){if(t==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qn(e){Yi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _i(e,t,i){(t!=null||i!=null)&&Yi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zo(e,t){Yi(e),e.curOp.scrollToPos=t}function Yi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=us(e,t.from),n=us(e,t.to);bs(e,i,n,t.margin)}}function bs(e,t,i,n){var d=wa(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});_i(e,d.scrollLeft,d.scrollTop)}function Ei(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||Aa(e,{top:t}),_s(e,t,!0),P&&Aa(e),wi(e,100)}function _s(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Bn(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xi(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var jn=function(e,t,i){this.cm=i;var n=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=d.tabIndex=-1,e(n),e(d),Ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ue(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,K&&G<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var d=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var N=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},jn.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var d=e.getBoundingClientRect(),N=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);N!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ti=function(){};Ti.prototype.update=function(){return{bottom:0,right:0}},Ti.prototype.setScrollLeft=function(){},Ti.prototype.setScrollTop=function(){},Ti.prototype.clear=function(){};function qn(e,t){t||(t=xi(e));var i=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var d=0;d<4&&i!=e.display.barWidth||n!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&zi(e),Es(e,xi(e)),i=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var xs={native:jn,null:Ti};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Bn(e,t):Ei(e,t)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Qo=0;function Hn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Qo},Jr(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(i){for(var n=0;n=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function rl(e){var t=e.cm,i=t.display;e.updatedDisplay&&zi(t),e.barMeasure=xi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=tt(e,t.highlightFrontier),d=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(N){if(n.line>=e.display.viewFrom){var z=N.styles,Q=N.text.length>e.options.maxHighlightLength?Ut(t.mode,n.state):null,q=Ee(e,N,n,!0);Q&&(n.state=Q),N.styles=q.styles;var te=N.styleClasses,pe=q.classes;pe?N.styleClasses=pe:te&&(N.styleClasses=null);for(var ye=!z||z.length!=N.styles.length||te!=pe&&(!te||!pe||te.bgClass!=pe.bgClass||te.textClass!=pe.textClass),Me=0;!ye&&Mei)return wi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),d.length&&Wr(e,function(){for(var N=0;N=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var d=n.first+n.size,N=Math.max(t.visible.from-e.options.viewportMargin,n.first),z=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromz&&i.viewTo-z<20&&(z=Math.min(d,i.viewTo)),cr&&(N=ci(e.doc,N),z=Tn(e.doc,z));var Q=N!=i.viewFrom||z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Vo(e,N,z),i.viewOffset=qr(mt(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var q=fs(e);if(!Q&&q==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var te=ol(e);return q>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),q>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(te),C(i.cursorDiv),C(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Q&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function ws(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+da(e.display)-ca(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vi(e.display,e.doc,i));if(!Ca(e,t))break;zi(e);var d=xi(e);bi(e),qn(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var i=new Xi(e,t);if(Ca(e,i)){zi(e),ws(e,i);var n=xi(e);bi(e),qn(e,n),Ra(e,n),i.finish()}}function ul(e,t,i){var n=e.display,d=e.options.lineNumbers,N=n.lineDiv,z=N.firstChild;function Q(Ke){var $e=Ke.nextSibling;return r&&s&&e.display.currentWheelTarget==Ke?Ke.style.display="none":Ke.parentNode.removeChild(Ke),$e}for(var q=n.view,te=n.viewFrom,pe=0;pe-1&&(ke=!1),Xa(e,ye,te,i)),ke&&(C(ye.lineNumber),ye.lineNumber.appendChild(document.createTextNode(Xr(e.options,te)))),z=ye.node.nextSibling}te+=ye.size}for(;z;)z=Q(z)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,N=n+"px",z=0;zz.clientWidth,q=z.scrollHeight>z.clientHeight;if(!(n&&Q||d&&q))return;if(d&&s&&r){e:for(var te=t.target,pe=N.view;te!=z;te=te.parentNode)for(var ye=0;ye=0&&Ct(e,n.to())<=0)return i}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,i){var n=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Me,ke){return Ct(Me.from(),ke.from())}),i=ne(t,d);for(var N=1;N0:q>=0){var te=yn(Q.from(),z.from()),pe=vn(Q.to(),z.to()),ye=Q.empty()?z.from()==z.head:Q.from()==Q.head;N<=i&&--i,t.splice(--N,2,new Gt(ye?pe:te,ye?te:pe))}}return new Yr(t,i)}function Cn(e,t){return new Yr([new Gt(e,t||e)],0)}function An(e){return e.text?Ze(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Ze(i,n)}function Ia(e,t){for(var i=[],n=0;n1&&e.remove(Q.line+1,Ke-1),e.insert(Q.line+1,nt)}br(e,"change",e,t)}function On(e,t,i){function n(d,N,z){if(d.linked)for(var Q=0;Q1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Ns(e,t,i,n){var d=e.history;d.undone.length=0;var N=+new Date,z,Q;if((d.lastOp==n||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>N-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(z=pl(d,d.lastOp==n)))Q=re(z.changes),Ct(t.from,t.to)==0&&Ct(t.from,Q.to)==0?Q.to=An(t):z.changes.push(Ma(e,t));else{var q=re(d.done);for((!q||!q.ranges)&&Zi(e.sel,d.done),z={changes:[Ma(e,t)],generation:d.generation},d.done.push(z);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=N,d.lastOp=d.lastSelOp=n,d.lastOrigin=d.lastSelOrigin=t.origin,Q||je(e,"historyAdded")}function ml(e,t,i,n){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var d=e.history,N=n&&n.origin;i==d.lastSelOp||N&&d.lastSelOrigin==N&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==N||ml(e,N,re(d.done),t))?d.done[d.done.length-1]=t:Zi(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=N,d.lastSelOp=i,n&&n.clearRedo!==!1&&Ps(d.undone)}function Zi(e,t){var i=re(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Fs(e,t,i,n){var d=t["spans_"+e.id],N=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(z){z.markedSpans&&((d||(d=t["spans_"+e.id]={}))[N]=z.markedSpans),++N})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(re(Q)[ye]=te[ye],delete te[ye]))}}return n}function Pa(e,t,i,n){if(n){var d=e.anchor;if(i){var N=Ct(t,d)<0;N!=Ct(i,d)<0?(d=t,t=i):N!=Ct(t,i)<0&&(t=i)}return new Gt(d,t)}else return new Gt(i||t,t)}function Qi(e,t,i,n,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new Yr([Pa(e.sel.primary(),t,i,d)],0),n)}function Bs(e,t,i){for(var n=[],d=e.cm&&(e.cm.display.shift||e.extend),N=0;N=t.ch:Q.to>t.ch))){if(d&&(je(q,"beforeCursorEnter"),q.explicitlyCleared))if(N.markedSpans){--z;continue}else break;if(!q.atomic)continue;if(i){var ye=q.find(n<0?1:-1),Me=void 0;if((n<0?pe:te)&&(ye=zs(e,ye,-n,ye&&ye.line==t.line?N:null)),ye&&ye.line==t.line&&(Me=Ct(ye,i))&&(n<0?Me<0:Me>0))return ti(e,ye,t,n,d)}var ke=q.find(n<0?-1:1);return(n<0?te:pe)&&(ke=zs(e,ke,n,ke.line==t.line?N:null)),ke?ti(e,ke,t,n,d):null}}return t}function ea(e,t,i,n,d){var N=n||1,z=ti(e,t,i,N,d)||!d&&ti(e,t,i,N,!0)||ti(e,t,i,-N,d)||!d&&ti(e,t,i,-N,!0);return z||(e.cantEdit=!0,Ze(e.first,0))}function zs(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?x(e,Ze(t.line-1)):null:i>0&&t.ch==(n||mt(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:n[d].from,to:n[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var i=Ia(e,t);Ns(e,t,i,e.cm?e.cm.curOp.id:NaN),Ai(e,t,i,Qr(e,t));var n=[];On(e,function(d,N){!N&&ne(n,d.history)==-1&&(Qs(d.history,t),n.push(d.history)),Ai(d,t,null,Qr(d,t))})}function ta(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var d=e.history,N,z=e.sel,Q=t=="undo"?d.done:d.undone,q=t=="undo"?d.undone:d.done,te=0;te=0;--ke){var Ke=Me(ke);if(Ke)return Ke.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yr(fe(e.sel.ranges,function(d){return new Gt(Ze(d.anchor.line+t,d.anchor.ch),Ze(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;ne.lastLine())return;if(t.from.lineN&&(t={from:t.from,to:Ze(N,mt(e,N).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Br(e,t.from,t.to),i||(i=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qi(e,i,ge),e.cantEdit&&ea(e,Ze(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,i){var n=e.doc,d=e.display,N=t.from,z=t.to,Q=!1,q=N.line;e.options.lineWrapping||(q=Rt(Ar(mt(n,N.line))),n.iter(q,z.line+1,function(ke){if(ke==d.maxLine)return Q=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ae(e),ka(n,t,i,cs(e)),e.options.lineWrapping||(n.iter(q,N.line+t.text.length,function(ke){var Ke=pi(ke);Ke>d.maxLineLength&&(d.maxLine=ke,d.maxLineLength=Ke,d.maxLineChanged=!0,Q=!1)}),Q&&(e.curOp.updateMaxLine=!0)),Zr(n,N.line),wi(e,400);var te=t.text.length-(z.line-N.line)-1;t.full?Mr(e):N.line==z.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,N.line,"text"):Mr(e,N.line,z.line+1,te);var pe=_e(e,"changes"),ye=_e(e,"change");if(ye||pe){var Me={from:N,to:z,text:t.text,removed:t.removed,origin:t.origin};ye&&br(e,"change",e,Me),pe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Me)}e.display.selForContextMenu=null}function ni(e,t,i,n,d){var N;n||(n=i),Ct(n,i)<0&&(N=[n,i],i=N[0],n=N[1]),typeof t=="string"&&(t=e.splitLines(t)),ri(e,{from:i,to:n,text:t,origin:d})}function Js(e,t,i,n){i1||!(this.children[0]instanceof Ri))){var Q=[];this.collapse(Q),this.children=[new Ri(Q)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var z=d.lines.length%25+25,Q=z;Q10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=pe,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mr(e,n,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&br(e,"markerCleared",e,this,n,d),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,d=0;d0||z==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=S("span",[N.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(fr(e,t.line,t,i,N)||t.line!=i.line&&fr(e,i.line,t,i,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}N.addToHistory&&Ns(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Q=t.line,q=e.cm,te;if(e.iter(Q,i.line+1,function(ye){q&&N.collapsed&&!q.options.lineWrapping&&Ar(ye)==q.display.maxLine&&(te=!0),N.collapsed&&Q!=t.line&&Jt(ye,0),bn(ye,new hn(N,Q==t.line?t.ch:null,Q==i.line?i.ch:null)),++Q}),N.collapsed&&e.iter(t.line,i.line+1,function(ye){an(e,ye)&&Jt(ye,0)}),N.clearOnEnter&&Ue(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(zr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),N.collapsed&&(N.id=++eo,N.atomic=!0),q){if(te&&(q.curOp.updateMaxLine=!0),N.collapsed)Mr(q,t.line,i.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var pe=t.line;pe<=i.line;pe++)wn(q,pe,"text");N.atomic&&Gs(q.doc),br(q,"markerAdded",q,N)}return N}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;q--)ri(this,n[q]);Q?Hs(this,Q):this.cm&&Qn(this.cm)}),undo:mr(function(){ta(this,"undo")}),redo:mr(function(){ta(this,"redo")}),undoSelection:mr(function(){ta(this,"undo",!0)}),redoSelection:mr(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=x(this,e),t=x(this,t);var n=[],d=e.line;return this.iter(e.line,t.line+1,function(N){var z=N.markedSpans;if(z)for(var Q=0;Q=q.to||q.from==null&&d!=e.line||q.from!=null&&d==t.line&&q.from>=t.ch)&&(!i||i(q.marker))&&n.push(q.marker.parent||q.marker)}++d}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;ne)return t=e,!0;e-=N,++i}),x(this,Ze(i,t))},indexFromPos:function(e){e=x(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var pe=e.dataTransfer.getData("Text");if(pe){var ye;if(t.state.draggingText&&!t.state.draggingText.copy&&(ye=t.listSelections()),qi(t.doc,Cn(i,i)),ye)for(var Me=0;Me=0;Q--)ni(e.doc,"",n[Q].from,n[Q].to,"+delete");Qn(e)})}function Fa(e,t,i){var n=Ie(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Ua(e,t,i){var n=Fa(e,t.ch,i);return n==null?null:new Ze(t.line,n,i<0?"after":"before")}function Ba(e,t,i,n,d){if(e){t.doc.direction=="rtl"&&(d=-d);var N=qe(i,t.doc.direction);if(N){var z=d<0?re(N):N[0],Q=d<0==(z.level==1),q=Q?"after":"before",te;if(z.level>0||t.doc.direction=="rtl"){var pe=Xn(t,i);te=d<0?i.text.length-1:0;var ye=on(t,pe,te).top;te=We(function(Me){return on(t,pe,Me).top==ye},d<0==(z.level==1)?z.from:z.to-1,te),q=="before"&&(te=Fa(i,te,1))}else te=d<0?z.to:z.from;return new Ze(n,te,q)}}return new Ze(n,d<0?i.text.length:0,d<0?"before":"after")}function Ml(e,t,i,n){var d=qe(t,e.doc.direction);if(!d)return Ua(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var N=Je(d,i.ch,i.sticky),z=d[N];if(e.doc.direction=="ltr"&&z.level%2==0&&(n>0?z.to>i.ch:z.from=z.from&&Me>=pe.begin)){var ke=ye?"before":"after";return new Ze(i.line,Me,ke)}}var Ke=function(nt,ut,it){for(var pt=function(Xt,gr){return gr?new Ze(i.line,Q(Xt,1),"before"):new Ze(i.line,Xt,"after")};nt>=0&&nt0==(St.level!=1),Lt=bt?it.begin:Q(it.end,-1);if(St.from<=Lt&&Lt0?pe.end:Q(pe.begin,-1);return et!=null&&!(n>0&&et==t.text.length)&&($e=Ke(n>0?0:d.length-1,n,te(et)),$e)?$e:null}var Pi={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return si(e,function(t){if(t.empty()){var i=mt(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new Ze(d.line,d.ch+1),e.replaceRange(N.charAt(d.ch-1)+N.charAt(d.ch-2),Ze(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var z=mt(e.doc,d.line-1).text;z&&(d=new Ze(d.line,1),e.replaceRange(N.charAt(0)+e.doc.lineSeparator()+z.charAt(z.length-1),Ze(d.line-1,z.length-1),d,"+transpose"))}}i.push(new Gt(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&i==this.button};var Fi,Ui;function Hl(e,t){var i=+new Date;return Ui&&Ui.compare(i,e,t)?(Fi=Ui=null,"triple"):Fi&&Fi.compare(i,e,t)?(Ui=new Ha(i,e,t),Fi=null,"double"):(Fi=new Ha(i,e,t),Ui=null,"single")}function vo(e){var t=this,i=t.display;if(Ge(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,cn(i,e)){r||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),d=Pe(e),N=n?Hl(n,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,d,n,N,e))return;d==1?n?Kl(t,n,N,e):xe(e)==i.scroller&&ae(e):d==2?(n&&Qi(t.doc,n),setTimeout(function(){return i.input.focus()},20)):d==3&&(D?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,i,n,d){var N="Click";return n=="double"?N="Double"+N:n=="triple"&&(N="Triple"+N),N=(t==1?"Left":t==2?"Middle":"Right")+N,Ni(e,oo(N,d),d,function(z){if(typeof z=="string"&&(z=Pi[z]),!z)return!1;var Q=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Q=z(e,i)!=Oe}finally{e.state.suppressEdits=!1}return Q})}function Gl(e,t,i){var n=e.getOption("configureMouse"),d=n?n(e,t,i):{};if(d.unit==null){var N=a?i.shiftKey&&i.metaKey:i.altKey;d.unit=N?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=s?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?i.altKey:i.ctrlKey)),d}function Kl(e,t,i,n){K?setTimeout(I(gs,e),0):e.curOp.focus=B();var d=Gl(e,i,n),N=e.doc.sel,z;e.options.dragDrop&&He&&!e.isReadOnly()&&i=="single"&&(z=N.contains(t))>-1&&(Ct((z=N.ranges[z]).from(),t)<0||t.xRel>0)&&(Ct(z.to(),t)>0||t.xRel<0)?zl(e,n,t,d):Vl(e,n,t,d)}function zl(e,t,i,n){var d=e.display,N=!1,z=pr(e,function(te){r&&(d.scroller.draggable=!1),e.state.draggingText=!1,lt(d.wrapper.ownerDocument,"mouseup",z),lt(d.wrapper.ownerDocument,"mousemove",Q),lt(d.scroller,"dragstart",q),lt(d.scroller,"drop",z),N||(ae(te),n.addNew||Qi(e.doc,i,null,null,n.extend),r&&!p||K&&G==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Q=function(te){N=N||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},q=function(){return N=!0};r&&(d.scroller.draggable=!0),e.state.draggingText=z,z.copy=!n.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Ue(d.wrapper.ownerDocument,"mouseup",z),Ue(d.wrapper.ownerDocument,"mousemove",Q),Ue(d.scroller,"dragstart",q),Ue(d.scroller,"drop",z),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,i){if(i=="char")return new Gt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Gt(Ze(t.line,0),x(e.doc,Ze(t.line+1,0)));var n=i(e,t);return new Gt(n.from,n.to)}function Vl(e,t,i,n){var d=e.display,N=e.doc;ae(t);var z,Q,q=N.sel,te=q.ranges;if(n.addNew&&!n.extend?(Q=N.sel.contains(i),Q>-1?z=te[Q]:z=new Gt(i,i)):(z=N.sel.primary(),Q=N.sel.primIndex),n.unit=="rectangle")n.addNew||(z=new Gt(i,i)),i=Fn(e,t,!0,!0),Q=-1;else{var pe=yo(e,i,n.unit);n.extend?z=Pa(z,pe.anchor,pe.head,n.extend):z=pe}n.addNew?Q==-1?(Q=te.length,wr(N,tn(e,te.concat([z]),Q),{scroll:!1,origin:"*mouse"})):te.length>1&&te[Q].empty()&&n.unit=="char"&&!n.extend?(wr(N,tn(e,te.slice(0,Q).concat(te.slice(Q+1)),0),{scroll:!1,origin:"*mouse"}),q=N.sel):Na(N,Q,z,Te):(Q=0,wr(N,new Yr([z],0),Te),q=N.sel);var ye=i;function Me(it){if(Ct(ye,it)==0)return;if(ye=it,n.unit=="rectangle"){for(var pt=[],St=e.options.tabSize,bt=H(mt(N,i.line).text,i.ch,St),Lt=H(mt(N,it.line).text,it.ch,St),Xt=Math.min(bt,Lt),gr=Math.max(bt,Lt),er=Math.min(i.line,it.line),Gr=Math.min(e.lastLine(),Math.max(i.line,it.line));er<=Gr;er++){var Nr=mt(N,er).text,sr=Le(Nr,Xt,St);Xt==gr?pt.push(new Gt(Ze(er,sr),Ze(er,sr))):Nr.length>sr&&pt.push(new Gt(Ze(er,sr),Ze(er,Le(Nr,gr,St))))}pt.length||pt.push(new Gt(i,i)),wr(N,tn(e,q.ranges.slice(0,Q).concat(pt),Q),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var Fr=z,_r=yo(e,it,n.unit),hr=Fr.anchor,or;Ct(_r.anchor,hr)>0?(or=_r.head,hr=yn(Fr.from(),_r.anchor)):(or=_r.anchor,hr=vn(Fr.to(),_r.head));var rr=q.ranges.slice(0);rr[Q]=Yl(e,new Gt(x(N,hr),or)),wr(N,tn(e,rr,Q),Te)}}var ke=d.wrapper.getBoundingClientRect(),Ke=0;function $e(it){var pt=++Ke,St=Fn(e,it,!0,n.unit=="rectangle");if(!St)return;if(Ct(St,ye)!=0){e.curOp.focus=B(),Me(St);var bt=Vi(d,N);(St.line>=bt.to||St.lineke.bottom?20:0;Lt&&setTimeout(pr(e,function(){if(Ke!=pt)return;d.scroller.scrollTop+=Lt,$e(it)}),50)}}function et(it){e.state.selectingText=!1,Ke=Infinity,it&&(ae(it),d.input.focus()),lt(d.wrapper.ownerDocument,"mousemove",nt),lt(d.wrapper.ownerDocument,"mouseup",ut),N.history.lastSelOrigin=null}var nt=pr(e,function(it){it.buttons===0||!Pe(it)?et(it):$e(it)}),ut=pr(e,et);e.state.selectingText=ut,Ue(d.wrapper.ownerDocument,"mousemove",nt),Ue(d.wrapper.ownerDocument,"mouseup",ut)}function Yl(e,t){var i=t.anchor,n=t.head,d=mt(e.doc,i.line);if(Ct(i,n)==0&&i.sticky==n.sticky)return t;var N=qe(d);if(!N)return t;var z=Je(N,i.ch,i.sticky),Q=N[z];if(Q.from!=i.ch&&Q.to!=i.ch)return t;var q=z+(Q.from==i.ch==(Q.level!=1)?0:1);if(q==0||q==N.length)return t;var te;if(n.line!=i.line)te=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var pe=Je(N,n.ch,n.sticky),ye=pe-z||(n.ch-i.ch)*(Q.level==1?-1:1);pe==q-1||pe==q?te=ye<0:te=ye>0}var Me=N[q+(te?-1:0)],ke=te==(Me.level==1),Ke=ke?Me.from:Me.to,$e=ke?"after":"before";return i.ch==Ke&&i.sticky==$e?t:new Gt(new Ze(i.line,Ke,$e),n)}function bo(e,t,i,n){var d,N;if(t.touches)d=t.touches[0].clientX,N=t.touches[0].clientY;else try{d=t.clientX,N=t.clientY}catch(Me){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ae(t);var z=e.display,Q=z.lineDiv.getBoundingClientRect();if(N>Q.bottom||!_e(e,i))return ce(t);N-=Q.top-z.viewOffset;for(var q=0;q=d){var pe=lr(e.doc,N),ye=e.display.gutterSpecs[q];return je(e,i,e,pe,ye.className,t),ce(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(cn(e.display,t)||Xl(e,t))return;if(Ge(e,t,"contextmenu"))return;D||e.display.input.onContextMenu(t)}function Xl(e,t){return _e(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(e)}var oi={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function i(n,d,N,z){e.defaults[n]=d,N&&(t[n]=z?function(Q,q,te){te!=oi&&N(Q,q,te)}:N)}e.defineOption=i,e.Init=oi,i("value","",function(n,d){return n.setValue(d)},!0),i("mode",null,function(n,d){n.doc.modeOption=d,Da(n)},!0),i("indentUnit",2,Da,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ci(n),yi(n),Mr(n)},!0),i("lineSeparator",null,function(n,d){if(n.doc.lineSep=d,!d)return;var N=[],z=n.doc.first;n.doc.iter(function(q){for(var te=0;;){var pe=q.text.indexOf(d,te);if(pe==-1)break;te=pe+d.length,N.push(Ze(z,pe))}z++});for(var Q=N.length-1;Q>=0;Q--)ni(n.doc,d,N[Q],Ze(N[Q].line,N[Q].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,d,N){n.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),N!=oi&&n.refresh()}),i("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,d){return n.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(n,d){return n.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(n,d){return n.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!O),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Eo(n),Si(n)},!0),i("keyMap","default",function(n,d,N){var z=na(d),Q=N!=oi&&na(N);Q&&Q.detach&&Q.detach(n,z),z.attach&&z.attach(n,Q||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,d){n.display.gutterSpecs=La(d,n.options.lineNumbers),Si(n)},!0),i("fixedGutter",!0,function(n,d){n.display.gutters.style.left=d?_a(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),i("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,d){n.display.gutterSpecs=La(n.options.gutters,d),Si(n)},!0),i("firstLineNumber",1,Si,!0),i("lineNumberFormatter",function(n){return n},Si,!0),i("showCursorWhenSelecting",!1,bi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,d){d=="nocursor"&&(Zn(n),n.display.input.blur()),n.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(n,d){d=d===""?null:d,n.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(n,d){d||n.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,bi,!0),i("singleCursorHeightPerLine",!0,bi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ci,!0),i("addModeClass",!1,Ci,!0),i("pollInterval",100),i("undoDepth",200,function(n,d){return n.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ci,!0),i("moveInputWithCursor",!0,function(n,d){d||n.display.input.resetPosition()}),i("tabindex",null,function(n,d){return n.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(n,d){return n.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var n=i&&i!=oi;if(!t!=!n){var d=e.display.dragFunctions,N=t?Ue:lt;N(e.display.scroller,"dragstart",d.start),N(e.display.scroller,"dragenter",d.enter),N(e.display.scroller,"dragover",d.over),N(e.display.scroller,"dragleave",d.leave),N(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),ji(e)),Ea(e),Mr(e),yi(e),setTimeout(function(){return qn(e)},100)}function Qt(e,t){var i=this;if(!(this instanceof Qt))return new Qt(e,t);this.options=t=t?g(t):{},g(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var d=new Qt.inputStyles[t.inputStyle](this),N=this.display=new hl(e,n,d,t);N.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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 $,keySeq:null,specialChars:null},t.autofocus&&!o&&N.input.focus(),K&&G<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Ql(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Ta(i)},20):Zn(this);for(var z in aa)aa.hasOwnProperty(z)&&aa[z](this,t[z],oi);Cs(this),t.finishInit&&t.finishInit(this);for(var Q=0;Q20*20}Ue(t.scroller,"touchstart",function(q){if(!Ge(e,q)&&!N(q)&&!Wa(e,q)){t.input.ensurePolled(),clearTimeout(i);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},q.touches.length==1&&(t.activeTouch.left=q.touches[0].pageX,t.activeTouch.top=q.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(q){var te=t.activeTouch;if(te&&!cn(t,q)&&te.left!=null&&!te.moved&&new Date-te.start<300){var pe=e.coordsChar(t.activeTouch,"page"),ye;!te.prev||z(te,te.prev)?ye=new Gt(pe,pe):!te.prev.prev||z(te,te.prev.prev)?ye=e.findWordAt(pe):ye=new Gt(Ze(pe.line,0),x(e.doc,Ze(pe.line+1,0))),e.setSelection(ye.anchor,ye.head),e.focus(),ae(q)}d()}),Ue(t.scroller,"touchcancel",d),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ei(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(q){return Rs(e,q)}),Ue(t.scroller,"DOMMouseScroll",function(q){return Rs(e,q)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(q){Ge(e,q)||me(q)},over:function(q){Ge(e,q)||(Ol(e,q),me(q))},start:function(q){return Al(e,q)},drop:pr(e,Cl),leave:function(q){Ge(e,q)||no(e)}};var Q=t.input.getField();Ue(Q,"keyup",function(q){return mo.call(e,q)}),Ue(Q,"keydown",pr(e,po)),Ue(Q,"keypress",pr(e,go)),Ue(Q,"focus",function(q){return Ta(e,q)}),Ue(Q,"blur",function(q){return Zn(e,q)})}var Ga=[];Qt.defineInitHook=function(e){return Ga.push(e)};function Bi(e,t,i,n){var d=e.doc,N;i==null&&(i="add"),i=="smart"&&(d.mode.indent?N=tt(e,t).state:i="prev");var z=e.options.tabSize,Q=mt(d,t),q=H(Q.text,null,z);Q.stateAfter&&(Q.stateAfter=null);var te=Q.text.match(/^\s*/)[0],pe;if(!n&&!/\S/.test(Q.text))pe=0,i="not";else if(i=="smart"&&(pe=d.mode.indent(N,Q.text.slice(te.length),Q.text),pe==Oe||pe>150)){if(!n)return;i="prev"}i=="prev"?t>d.first?pe=H(mt(d,t-1).text,null,z):pe=0:i=="add"?pe=q+e.options.indentUnit:i=="subtract"?pe=q-e.options.indentUnit:typeof i=="number"&&(pe=q+i),pe=Math.max(0,pe);var ye="",Me=0;if(e.options.indentWithTabs)for(var ke=Math.floor(pe/z);ke;--ke)Me+=z,ye+=" ";if(Mez,q=dt(t),te=null;if(Q&&n.ranges.length>1)if(rn&&rn.text.join(` `)==t){if(n.ranges.length%rn.text.length==0){te=[];for(var pe=0;pe=0;Me--){var ke=n.ranges[Me],Ke=ke.from(),$e=ke.to();ke.empty()&&(i&&i>0?Ke=Ze(Ke.line,Ke.ch-i):e.state.overwrite&&!Q?$e=Ze($e.line,Math.min(mt(N,$e.line).text.length,$e.ch+re(q).length)):Q&&rn&&rn.lineWise&&rn.text.join(` `)==q.join(` -`)&&(Ke=$e=Ze(Ke.line,0)));var et={from:Ke,to:$e,text:te?te[Me%te.length]:q,origin:c||(Q?"paste":e.state.cutIncoming>z?"cut":"+input")};ri(e.doc,et),br(e,"inputRead",e,et)}t&&!Q&&wo(e,t),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ye),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return Ka(t,i,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var c=i.ranges[n];if(c.head.ch>100||n&&i.ranges[n-1].head.line==c.head.line)continue;var N=e.getModeAt(c.head),z=!1;if(N.electricChars){for(var Q=0;Q-1){z=Bi(e,c.head.line,"smart");break}}else N.electricInput&&(N.electricInput.test(mt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(z=Bi(e,c.head.line,"smart")));z&&br(e,"electricInput",e,c.head.line)}}function So(e){for(var t=[],i=[],n=0;nN&&(Bi(this,Q.head.line,n,!0),N=Q.head.line,z==this.doc.sel.primIndex&&Qn(this));else{var q=Q.from(),te=Q.to(),pe=Math.max(N,q.line);N=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var ye=pe;ye0&&Na(this.doc,z,new Gt(q,Me[z].to()),ge)}}}),getTokenAt:function(n,c){return $t(this,n,c)},getLineTokens:function(n,c){return $t(this,Ze(n),c,!0)},getTokenTypeAt:function(n){n=x(this.doc,n);var c=Ye(this,mt(this.doc,n.line)),N=0,z=(c.length-1)/2,Q=n.ch,q;if(Q==0)q=c[2];else for(;;){var te=N+z>>1;if((te?c[te*2-1]:0)>=Q)z=te;else if(c[te*2+1]q&&(n=q,z=!0),Q=mt(this.doc,n)}else Q=n;return Wi(this,Q,{top:0,left:0},c||"page",N||z).top+(z?this.doc.height-qr(Q):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,c,N,z,Q){var q=this.display;n=en(this,x(this.doc,n));var te=n.bottom,pe=n.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),q.sizer.appendChild(c),z=="over")te=n.top;else if(z=="above"||z=="near"){var ye=Math.max(q.wrapper.clientHeight,this.doc.height),Me=Math.max(q.sizer.clientWidth,q.lineSpace.clientWidth);(z=="above"||n.bottom+c.offsetHeight>ye)&&n.top>c.offsetHeight?te=n.top-c.offsetHeight:n.bottom+c.offsetHeight<=ye&&(te=n.bottom),pe+c.offsetWidth>Me&&(pe=Me-c.offsetWidth)}c.style.top=te+"px",c.style.left=c.style.right="",Q=="right"?(pe=q.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(Q=="left"?pe=0:Q=="middle"&&(pe=(q.sizer.clientWidth-c.offsetWidth)/2),c.style.left=pe+"px"),N&&Jo(this,{left:pe,top:te,right:pe+c.offsetWidth,bottom:te+c.offsetHeight})},triggerOnKeyDown:Or(po),triggerOnKeyPress:Or(go),triggerOnKeyUp:mo,triggerOnMouseDown:Or(vo),execCommand:function(n){if(Pi.hasOwnProperty(n))return Pi[n].call(null,this)},triggerElectric:Or(function(n){wo(this,n)}),findPosH:function(n,c,N,z){var Q=1;c<0&&(Q=-1,c=-c);for(var q=x(this.doc,n),te=0;te0&&pe(N.charAt(z-1));)--z;for(;Q.5||this.options.lineWrapping)&&Ea(this),je(this,"refresh",this)}),swapDoc:Or(function(n){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yi(this),this.display.input.reset(),_i(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,br(this,"swapDoc",this,c),c}),phrase:function(n){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,n)?c[n]:n},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}},we(e),e.registerHelper=function(n,c,N){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][c]=N},e.registerGlobalHelper=function(n,c,N,z){e.registerHelper(n,c,z),i[n]._global.push({pred:N,val:z})}}function za(e,t,i,n,c){var N=t,z=i,Q=mt(e,t.line),q=c&&e.direction=="rtl"?-i:i;function te(){var ut=t.line+q;return ut=e.first+e.size?!1:(t=new Ze(ut,t.ch,t.sticky),Q=mt(e,ut))}function pe(ut){var it;if(n=="codepoint"){var pt=Q.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(pt)?it=null:it=new Ze(t.line,Math.max(0,Math.min(Q.text.length,t.ch+i*(pt>=55296&&pt<56320?2:1))),-i)}else c?it=Ml(e.cm,Q,t,i):it=Ua(Q,t,i);if(it==null)if(!ut&&te())t=Ba(c,e.cm,Q,t.line,q);else return!1;else t=it;return!0}if(n=="char"||n=="codepoint")pe();else if(n=="column")pe(!0);else if(n=="word"||n=="group")for(var ye=null,Me=n=="group",ke=e.cm&&e.cm.getHelper(t,"wordChars"),Ke=!0;!(i<0&&!pe(!Ke));Ke=!1){var $e=Q.text.charAt(t.ch)||` +`)&&(Ke=$e=Ze(Ke.line,0)));var et={from:Ke,to:$e,text:te?te[Me%te.length]:q,origin:d||(Q?"paste":e.state.cutIncoming>z?"cut":"+input")};ri(e.doc,et),br(e,"inputRead",e,et)}t&&!Q&&wo(e,t),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ye),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return Ka(t,i,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var d=i.ranges[n];if(d.head.ch>100||n&&i.ranges[n-1].head.line==d.head.line)continue;var N=e.getModeAt(d.head),z=!1;if(N.electricChars){for(var Q=0;Q-1){z=Bi(e,d.head.line,"smart");break}}else N.electricInput&&(N.electricInput.test(mt(e.doc,d.head.line).text.slice(0,d.head.ch))&&(z=Bi(e,d.head.line,"smart")));z&&br(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],i=[],n=0;nN&&(Bi(this,Q.head.line,n,!0),N=Q.head.line,z==this.doc.sel.primIndex&&Qn(this));else{var q=Q.from(),te=Q.to(),pe=Math.max(N,q.line);N=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var ye=pe;ye0&&Na(this.doc,z,new Gt(q,Me[z].to()),ge)}}}),getTokenAt:function(n,d){return $t(this,n,d)},getLineTokens:function(n,d){return $t(this,Ze(n),d,!0)},getTokenTypeAt:function(n){n=x(this.doc,n);var d=Ye(this,mt(this.doc,n.line)),N=0,z=(d.length-1)/2,Q=n.ch,q;if(Q==0)q=d[2];else for(;;){var te=N+z>>1;if((te?d[te*2-1]:0)>=Q)z=te;else if(d[te*2+1]q&&(n=q,z=!0),Q=mt(this.doc,n)}else Q=n;return Wi(this,Q,{top:0,left:0},d||"page",N||z).top+(z?this.doc.height-qr(Q):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,d,N,z,Q){var q=this.display;n=en(this,x(this.doc,n));var te=n.bottom,pe=n.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),q.sizer.appendChild(d),z=="over")te=n.top;else if(z=="above"||z=="near"){var ye=Math.max(q.wrapper.clientHeight,this.doc.height),Me=Math.max(q.sizer.clientWidth,q.lineSpace.clientWidth);(z=="above"||n.bottom+d.offsetHeight>ye)&&n.top>d.offsetHeight?te=n.top-d.offsetHeight:n.bottom+d.offsetHeight<=ye&&(te=n.bottom),pe+d.offsetWidth>Me&&(pe=Me-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",Q=="right"?(pe=q.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Q=="left"?pe=0:Q=="middle"&&(pe=(q.sizer.clientWidth-d.offsetWidth)/2),d.style.left=pe+"px"),N&&Jo(this,{left:pe,top:te,right:pe+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Or(po),triggerOnKeyPress:Or(go),triggerOnKeyUp:mo,triggerOnMouseDown:Or(vo),execCommand:function(n){if(Pi.hasOwnProperty(n))return Pi[n].call(null,this)},triggerElectric:Or(function(n){wo(this,n)}),findPosH:function(n,d,N,z){var Q=1;d<0&&(Q=-1,d=-d);for(var q=x(this.doc,n),te=0;te0&&pe(N.charAt(z-1));)--z;for(;Q.5||this.options.lineWrapping)&&Ea(this),je(this,"refresh",this)}),swapDoc:Or(function(n){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yi(this),this.display.input.reset(),_i(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,br(this,"swapDoc",this,d),d}),phrase:function(n){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,n)?d[n]:n},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}},we(e),e.registerHelper=function(n,d,N){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][d]=N},e.registerGlobalHelper=function(n,d,N,z){e.registerHelper(n,d,z),i[n]._global.push({pred:N,val:z})}}function za(e,t,i,n,d){var N=t,z=i,Q=mt(e,t.line),q=d&&e.direction=="rtl"?-i:i;function te(){var ut=t.line+q;return ut=e.first+e.size?!1:(t=new Ze(ut,t.ch,t.sticky),Q=mt(e,ut))}function pe(ut){var it;if(n=="codepoint"){var pt=Q.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(pt)?it=null:it=new Ze(t.line,Math.max(0,Math.min(Q.text.length,t.ch+i*(pt>=55296&&pt<56320?2:1))),-i)}else d?it=Ml(e.cm,Q,t,i):it=Ua(Q,t,i);if(it==null)if(!ut&&te())t=Ba(d,e.cm,Q,t.line,q);else return!1;else t=it;return!0}if(n=="char"||n=="codepoint")pe();else if(n=="column")pe(!0);else if(n=="word"||n=="group")for(var ye=null,Me=n=="group",ke=e.cm&&e.cm.getHelper(t,"wordChars"),Ke=!0;!(i<0&&!pe(!Ke));Ke=!1){var $e=Q.text.charAt(t.ch)||` `,et=Be($e,ke)?"w":Me&&$e==` -`?"n":!Me||/\s/.test($e)?null:"p";if(Me&&!Ke&&!et&&(et="s"),ye&&ye!=et){i<0&&(i=1,pe(),t.sticky="after");break}if(et&&(ye=et),i>0&&!pe(!Ke))break}var nt=ea(e,t,N,z,!0);return mn(N,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,i,n){var c=e.doc,N=t.left,z;if(n=="page"){var Q=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),q=Math.max(Q-.5*$n(e.display),3);z=(i>0?t.bottom:t.top)+i*q}else n=="line"&&(z=i>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,N,z),!te.outside);){if(i<0?z<=0:z>=c.height){te.hitSide=!0;break}z+=i*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,i=this,n=i.cm,c=i.div=e.lineDiv;Co(c,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function N(Q){for(var q=Q.target;q;q=q.parentNode){if(q==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(q.className))break}return!1}Ue(c,"paste",function(Q){if(!N(Q)||Ge(n,Q)||To(Q,n))return;G<=11&&setTimeout(pr(n,function(){return t.updateFromDOM()}),20)}),Ue(c,"compositionstart",function(Q){t.composing={data:Q.data,done:!1}}),Ue(c,"compositionupdate",function(Q){t.composing||(t.composing={data:Q.data,done:!1})}),Ue(c,"compositionend",function(Q){t.composing&&(Q.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(c,"touchstart",function(){return i.forceCompositionEnd()}),Ue(c,"input",function(){t.composing||t.readFromDOMSoon()});function z(Q){if(!N(Q)||Ge(n,Q))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),Q.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var q=So(n);sa({lineWise:!0,text:q.text}),Q.type=="cut"&&n.operation(function(){n.setSelections(q.ranges,0,ge),n.replaceSelection("",null,"cut")})}else return;if(Q.clipboardData){Q.clipboardData.clearData();var te=rn.text.join(` +`?"n":!Me||/\s/.test($e)?null:"p";if(Me&&!Ke&&!et&&(et="s"),ye&&ye!=et){i<0&&(i=1,pe(),t.sticky="after");break}if(et&&(ye=et),i>0&&!pe(!Ke))break}var nt=ea(e,t,N,z,!0);return mn(N,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,i,n){var d=e.doc,N=t.left,z;if(n=="page"){var Q=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),q=Math.max(Q-.5*$n(e.display),3);z=(i>0?t.bottom:t.top)+i*q}else n=="line"&&(z=i>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,N,z),!te.outside);){if(i<0?z<=0:z>=d.height){te.hitSide=!0;break}z+=i*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,i=this,n=i.cm,d=i.div=e.lineDiv;Co(d,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function N(Q){for(var q=Q.target;q;q=q.parentNode){if(q==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(q.className))break}return!1}Ue(d,"paste",function(Q){if(!N(Q)||Ge(n,Q)||To(Q,n))return;G<=11&&setTimeout(pr(n,function(){return t.updateFromDOM()}),20)}),Ue(d,"compositionstart",function(Q){t.composing={data:Q.data,done:!1}}),Ue(d,"compositionupdate",function(Q){t.composing||(t.composing={data:Q.data,done:!1})}),Ue(d,"compositionend",function(Q){t.composing&&(Q.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(d,"touchstart",function(){return i.forceCompositionEnd()}),Ue(d,"input",function(){t.composing||t.readFromDOMSoon()});function z(Q){if(!N(Q)||Ge(n,Q))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),Q.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var q=So(n);sa({lineWise:!0,text:q.text}),Q.type=="cut"&&n.operation(function(){n.setSelections(q.ranges,0,ge),n.replaceSelection("",null,"cut")})}else return;if(Q.clipboardData){Q.clipboardData.clearData();var te=rn.text.join(` `);if(Q.clipboardData.setData("Text",te),Q.clipboardData.getData("Text")==te){Q.preventDefault();return}}var pe=Ao(),ye=pe.firstChild;n.display.lineSpace.insertBefore(pe,n.display.lineSpace.firstChild),ye.value=rn.text.join(` -`);var Me=document.activeElement;M(ye),setTimeout(function(){n.display.lineSpace.removeChild(pe),Me.focus(),Me==c&&i.showPrimarySelection()},50)}Ue(c,"copy",z),Ue(c,"cut",z)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),c=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||c.line=t.display.viewFrom&&Ro(t,n)||{node:Q[0].measure.map[2],offset:0},te=c.linee.firstLine()&&(n=Ze(n.line-1,mt(e.doc,n.line-1).length)),c.ch==mt(e.doc,c.line).text.length&&c.linet.viewTo-1)return!1;var N,z,Q;n.line==t.viewFrom||(N=Un(e,n.line))==0?(z=Rt(t.view[0].line),Q=t.view[0].node):(z=Rt(t.view[N].line),Q=t.view[N-1].node.nextSibling);var q=Un(e,c.line),te,pe;if(q==t.view.length-1?(te=t.viewTo-1,pe=t.lineDiv.lastChild):(te=Rt(t.view[q+1].line)-1,pe=t.view[q+1].node.previousSibling),!Q)return!1;for(var ye=e.doc.splitLines(tu(e,Q,pe,z,te)),Me=Br(e.doc,Ze(z,0),Ze(te,mt(e.doc,te).text.length));ye.length>1&&Me.length>1;)if(re(ye)==re(Me))ye.pop(),Me.pop(),te--;else if(ye[0]==Me[0])ye.shift(),Me.shift(),z++;else break;for(var ke=0,Ke=0,$e=ye[0],et=Me[0],nt=Math.min($e.length,et.length);ken.ch&&ut.charCodeAt(ut.length-Ke-1)==it.charCodeAt(it.length-Ke-1);)ke--,Ke++;ye[ye.length-1]=ut.slice(0,ut.length-Ke).replace(/^\u200b+/,""),ye[0]=ye[0].slice(ke).replace(/\u200b+$/,"");var St=Ze(z,ke),bt=Ze(te,Me.length?re(Me).length-Ke:0);if(ye.length>1||ye[0]||Ct(St,bt))return ni(e.doc,ye,St,bt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Mr(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pr(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var i=fa(e,t.line);if(!i||i.hidden)return null;var n=mt(e.doc,t.line),c=es(i,n,t.line),N=qe(n,e.doc.direction),z="left";if(N){var Q=Je(N,t.ch);z=Q%2?"right":"left"}var q=ns(c.map,t.ch,z);return q.offset=q.collapse=="right"?q.end:q.start,q}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function li(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,c){var N="",z=!1,Q=e.doc.lineSeparator(),q=!1;function te(ke){return function(Ke){return Ke.id==ke}}function pe(){z&&(N+=Q,q&&(N+=Q),z=q=!1)}function ye(ke){ke&&(pe(),N+=ke)}function Me(ke){if(ke.nodeType==1){var Ke=ke.getAttribute("cm-text");if(Ke){ye(Ke);return}var $e=ke.getAttribute("cm-marker"),et;if($e){var nt=e.findMarks(Ze(n,0),Ze(c+1,0),te(+$e));nt.length&&(et=nt[0].find(0))&&ye(Br(e.doc,et.from,et.to).join(Q));return}if(ke.getAttribute("contenteditable")=="false")return;var ut=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;ut&&pe();for(var it=0;it=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(c,"paste",function(z){if(Ge(n,z)||To(z,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function N(z){if(Ge(n,z))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var Q=So(n);sa({lineWise:!0,text:Q.text}),z.type=="cut"?n.setSelections(Q.ranges,null,ge):(i.prevInput="",c.value=Q.text.join(` -`),M(c))}else return;z.type=="cut"&&(n.state.cutIncoming=+new Date)}Ue(c,"cut",N),Ue(c,"copy",N),Ue(e.scroller,"paste",function(z){if(dn(e,z)||Ge(n,z))return;if(!c.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var Q=new Event("paste");Q.clipboardData=z.clipboardData,c.dispatchEvent(Q)}),Ue(e.lineSpace,"selectstart",function(z){dn(e,z)||ae(z)}),Ue(c,"compositionstart",function(){var z=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:z,range:n.markText(z,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(c,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},ir.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ir.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var c=en(e,i.sel.primary().head,"div"),N=t.wrapper.getBoundingClientRect(),z=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,c.top+z.top-N.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,c.left+z.left-N.left))}return n},ir.prototype.showSelection=function(e){var t=this.cm,i=t.display;T(i.cursorDiv,e.cursors),T(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ir.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&M(this.textarea),K&&G>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",K&&G>=9&&(this.hasSelection=null))},ir.prototype.getField=function(){return this.textarea},ir.prototype.supportsTouch=function(){return!1},ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!o||B()!=this.textarea))try{this.textarea.focus()}catch(e){}},ir.prototype.blur=function(){this.textarea.blur()},ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ir.prototype.receivedFocus=function(){this.slowPoll()},ir.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ir.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},ir.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ft(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var c=i.value;if(c==n&&!t.somethingSelected())return!1;if(K&&G>=9&&this.hasSelection===c||s&&/[\uf700-\uf7ff]/.test(c))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var N=c.charCodeAt(0);if(N==8203&&!n&&(n="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var z=0,Q=Math.min(n.length,c.length);z1e3||c.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){K&&G>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,c=t.textarea;t.contextMenuPending&&t.contextMenuPending();var N=Fn(i,e),z=n.scroller.scrollTop;if(!N||m)return;var Q=i.options.resetSelectionOnContextMenu;Q&&i.doc.sel.contains(N)==-1&&pr(i,wr)(i.doc,Cn(N),ge);var q=c.style.cssText,te=t.wrapper.style.cssText,pe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var Me=document.activeElement;M(ye),setTimeout(function(){n.display.lineSpace.removeChild(pe),Me.focus(),Me==d&&i.showPrimarySelection()},50)}Ue(d,"copy",z),Ue(d,"cut",z)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,n)||{node:Q[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(n=Ze(n.line-1,mt(e.doc,n.line-1).length)),d.ch==mt(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var N,z,Q;n.line==t.viewFrom||(N=Un(e,n.line))==0?(z=Rt(t.view[0].line),Q=t.view[0].node):(z=Rt(t.view[N].line),Q=t.view[N-1].node.nextSibling);var q=Un(e,d.line),te,pe;if(q==t.view.length-1?(te=t.viewTo-1,pe=t.lineDiv.lastChild):(te=Rt(t.view[q+1].line)-1,pe=t.view[q+1].node.previousSibling),!Q)return!1;for(var ye=e.doc.splitLines(tu(e,Q,pe,z,te)),Me=Br(e.doc,Ze(z,0),Ze(te,mt(e.doc,te).text.length));ye.length>1&&Me.length>1;)if(re(ye)==re(Me))ye.pop(),Me.pop(),te--;else if(ye[0]==Me[0])ye.shift(),Me.shift(),z++;else break;for(var ke=0,Ke=0,$e=ye[0],et=Me[0],nt=Math.min($e.length,et.length);ken.ch&&ut.charCodeAt(ut.length-Ke-1)==it.charCodeAt(it.length-Ke-1);)ke--,Ke++;ye[ye.length-1]=ut.slice(0,ut.length-Ke).replace(/^\u200b+/,""),ye[0]=ye[0].slice(ke).replace(/\u200b+$/,"");var St=Ze(z,ke),bt=Ze(te,Me.length?re(Me).length-Ke:0);if(ye.length>1||ye[0]||Ct(St,bt))return ni(e.doc,ye,St,bt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Mr(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pr(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var i=fa(e,t.line);if(!i||i.hidden)return null;var n=mt(e.doc,t.line),d=es(i,n,t.line),N=qe(n,e.doc.direction),z="left";if(N){var Q=Je(N,t.ch);z=Q%2?"right":"left"}var q=ns(d.map,t.ch,z);return q.offset=q.collapse=="right"?q.end:q.start,q}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function li(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,d){var N="",z=!1,Q=e.doc.lineSeparator(),q=!1;function te(ke){return function(Ke){return Ke.id==ke}}function pe(){z&&(N+=Q,q&&(N+=Q),z=q=!1)}function ye(ke){ke&&(pe(),N+=ke)}function Me(ke){if(ke.nodeType==1){var Ke=ke.getAttribute("cm-text");if(Ke){ye(Ke);return}var $e=ke.getAttribute("cm-marker"),et;if($e){var nt=e.findMarks(Ze(n,0),Ze(d+1,0),te(+$e));nt.length&&(et=nt[0].find(0))&&ye(Br(e.doc,et.from,et.to).join(Q));return}if(ke.getAttribute("contenteditable")=="false")return;var ut=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;ut&&pe();for(var it=0;it=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(d,"paste",function(z){if(Ge(n,z)||To(z,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function N(z){if(Ge(n,z))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var Q=So(n);sa({lineWise:!0,text:Q.text}),z.type=="cut"?n.setSelections(Q.ranges,null,ge):(i.prevInput="",d.value=Q.text.join(` +`),M(d))}else return;z.type=="cut"&&(n.state.cutIncoming=+new Date)}Ue(d,"cut",N),Ue(d,"copy",N),Ue(e.scroller,"paste",function(z){if(cn(e,z)||Ge(n,z))return;if(!d.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var Q=new Event("paste");Q.clipboardData=z.clipboardData,d.dispatchEvent(Q)}),Ue(e.lineSpace,"selectstart",function(z){cn(e,z)||ae(z)}),Ue(d,"compositionstart",function(){var z=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:z,range:n.markText(z,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},ir.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ir.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var d=en(e,i.sel.primary().head,"div"),N=t.wrapper.getBoundingClientRect(),z=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+z.top-N.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+z.left-N.left))}return n},ir.prototype.showSelection=function(e){var t=this.cm,i=t.display;T(i.cursorDiv,e.cursors),T(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ir.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&M(this.textarea),K&&G>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",K&&G>=9&&(this.hasSelection=null))},ir.prototype.getField=function(){return this.textarea},ir.prototype.supportsTouch=function(){return!1},ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!o||B()!=this.textarea))try{this.textarea.focus()}catch(e){}},ir.prototype.blur=function(){this.textarea.blur()},ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ir.prototype.receivedFocus=function(){this.slowPoll()},ir.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ir.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},ir.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ft(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==n&&!t.somethingSelected())return!1;if(K&&G>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var N=d.charCodeAt(0);if(N==8203&&!n&&(n="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var z=0,Q=Math.min(n.length,d.length);z1e3||d.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){K&&G>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var N=Fn(i,e),z=n.scroller.scrollTop;if(!N||m)return;var Q=i.options.resetSelectionOnContextMenu;Q&&i.doc.sel.contains(N)==-1&&pr(i,wr)(i.doc,Cn(N),ge);var q=d.style.cssText,te=t.wrapper.style.cssText,pe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-pe.top-5)+"px; left: "+(e.clientX-pe.left-5)+`px; z-index: 1000; background: `+(K?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ye;r&&(ye=window.scrollY),n.input.focus(),r&&window.scrollTo(null,ye),n.input.reset(),i.somethingSelected()||(c.value=t.prevInput=" "),t.contextMenuPending=ke,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Me(){if(c.selectionStart!=null){var $e=i.somethingSelected(),et="\u200B"+($e?c.value:"");c.value="\u21DA",c.value=et,t.prevInput=$e?"":"\u200B",c.selectionStart=1,c.selectionEnd=et.length,n.selForContextMenu=i.doc.sel}}function ke(){if(t.contextMenuPending!=ke)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,c.style.cssText=q,K&&G<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=z),c.selectionStart!=null){(!K||K&&G<9)&&Me();var $e=0,et=function(){n.selForContextMenu==i.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&t.prevInput=="\u200B"?pr(i,Vs)(i):$e++<10?n.detectingSelectAll=setTimeout(et,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(et,200)}}if(K&&G>=9&&Me(),D){me(e);var Ke=function(){lt(window,"mouseup",Ke),setTimeout(ke,20)};Ue(window,"mouseup",Ke)}else setTimeout(ke,50)},ir.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ir.prototype.setUneditable=function(){},ir.prototype.needsContentAttribute=!1;function nu(e,t){if(t=t?g(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=B();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=Q.getValue()}var c;if(e.form&&(Ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var N=e.form;c=N.submit;try{var z=N.submit=function(){n(),N.submit=c,N.submit(),N.submit=z}}catch(q){}}t.finishInit=function(q){q.save=n,q.getTextArea=function(){return e},q.toTextArea=function(){q.toTextArea=isNaN,n(),e.parentNode.removeChild(q.getWrapperElement()),e.style.display="",e.form&&(lt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var Q=Qt(function(q){return e.parentNode.insertBefore(q,e.nextSibling)},t);return Q}function iu(e){e.off=lt,e.on=Ue,e.wheelEventPixels=cl,e.Doc=Pr,e.splitLines=ct,e.countColumn=H,e.findColumn=Le,e.isWordChar=Ne,e.Pass=Oe,e.signal=je,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Ze,e.cmpPos=Ct,e.modes=Zt,e.mimeModes=Dt,e.resolveMode=_t,e.getMode=Lr,e.modeExtensions=Et,e.extendMode=wt,e.copyState=Ut,e.startState=cr,e.innerMode=tr,e.commands=Pi,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ai,e.normalizeKeyMap=kl,e.StringStream=Nt,e.SharedTextMarker=Di,e.TextMarker=Rn,e.LineWidget=Ii,e.e_preventDefault=ae,e.e_stopPropagation=ue,e.e_stop=me,e.addClass=F,e.contains=b,e.rmClass=A,e.keyNames=Ln}$l(Qt),ql(Qt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pr.prototype)Pr.prototype.hasOwnProperty(la)&&ne(au,la)<0&&(Qt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[la]));return we(Pr),Qt.inputStyles={textarea:ir,contenteditable:zt},Qt.defineMode=function(e){!Qt.defaults.mode&&e!="null"&&(Qt.defaults.mode=e),Cr.apply(this,arguments)},Qt.defineMIME=Kr,Qt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qt.defineMIME("text/plain","null"),Qt.defineExtension=function(e,t){Qt.prototype[e]=t},Qt.defineDocExtension=function(e,t){Pr.prototype[e]=t},Qt.fromTextArea=nu,iu(Qt),Qt.version="5.58.2",Qt})},Y1PL:function(rt,be,Z){"use strict";Z.r(be),Z.d(be,"ResizableTextArea",function(){return ne});var ie=Z("wx14"),J=Z("1OyB"),P=Z("vuIU"),X=Z("Ji7U"),j=Z("LK+K"),U=Z("q1tI"),K=Z("VTBJ"),G=Z("rePB"),r=Z("Zm9Q"),L=Z("Kwbf"),v=Z("c+Xe"),m=Z("m+aA"),p=Z("bdgK"),h=new Map;function u(ge){ge.forEach(function(Te){var Re,Le=Te.target;(Re=h.get(Le))===null||Re===void 0||Re.forEach(function(ce){return ce(Le)})})}var f=new p.default(u),l=null,o=null;function s(ge,Te){h.has(ge)||(h.set(ge,new Set),f.observe(ge)),h.get(ge).add(Te)}function a(ge,Te){h.has(ge)&&(h.get(ge).delete(Te),h.get(ge).size||(f.unobserve(ge),h.delete(ge)))}var O=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(){return Object(J.a)(this,Re),Te.apply(this,arguments)}return Object(P.a)(Re,[{key:"render",value:function(){return this.props.children}}]),Re}(U.Component),E=U.createContext(null);function w(ge){var Te=ge.children,Re=ge.onBatchResize,Le=U.useRef(0),ce=U.useRef([]),he=U.useContext(E),re=U.useCallback(function(fe,oe,De){Le.current+=1;var Fe=Le.current;ce.current.push({size:fe,element:oe,data:De}),Promise.resolve().then(function(){Fe===Le.current&&(Re==null||Re(ce.current),ce.current=[])}),he==null||he(fe,oe,De)},[Re,he]);return U.createElement(E.Provider,{value:re},Te)}function D(ge){var Te=ge.children,Re=ge.disabled,Le=U.useRef(null),ce=U.useRef(null),he=U.useContext(E),re=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),fe=U.isValidElement(Te)&&Object(v.c)(Te),oe=fe?Te.ref:null,De=U.useMemo(function(){return Object(v.a)(oe,Le)},[oe,Le]),Fe=U.useRef(ge);Fe.current=ge;var Ce=U.useCallback(function(Ne){var Be=Fe.current,le=Be.onResize,ve=Be.data,Se=Ne.getBoundingClientRect(),Ie=Se.width,We=Se.height,Ve=Ne.offsetWidth,Qe=Ne.offsetHeight,Je=Math.floor(Ie),st=Math.floor(We);if(re.current.width!==Je||re.current.height!==st||re.current.offsetWidth!==Ve||re.current.offsetHeight!==Qe){var qe={width:Je,height:st,offsetWidth:Ve,offsetHeight:Qe};re.current=qe;var at=Ve===Math.round(Ie)?Ie:Ve,Ue=Qe===Math.round(We)?We:Qe,dt=Object(K.a)(Object(K.a)({},qe),{},{offsetWidth:at,offsetHeight:Ue});he==null||he(dt,Ne,ve),le&&Promise.resolve().then(function(){le(dt,Ne)})}},[]);return U.useEffect(function(){var Ne=Object(m.a)(Le.current)||Object(m.a)(ce.current);return Ne&&!Re&&s(Ne,Ce),function(){return a(Ne,Ce)}},[Le.current,Re]),U.createElement(O,{ref:ce},fe?U.cloneElement(Te,{ref:De}):Te)}var R="rc-observer-key";function A(ge){var Te=ge.children,Re=Object(r.a)(Te);return Re.map(function(Le,ce){var he=(Le==null?void 0:Le.key)||"".concat(R,"-").concat(ce);return U.createElement(D,Object(ie.a)({},ge,{key:he}),Le)})}A.Collection=w;var C=A,T=Z("bT9E"),d=Z("TSYQ"),S=Z.n(d),y=` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ye;r&&(ye=window.scrollY),n.input.focus(),r&&window.scrollTo(null,ye),n.input.reset(),i.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=ke,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Me(){if(d.selectionStart!=null){var $e=i.somethingSelected(),et="\u200B"+($e?d.value:"");d.value="\u21DA",d.value=et,t.prevInput=$e?"":"\u200B",d.selectionStart=1,d.selectionEnd=et.length,n.selForContextMenu=i.doc.sel}}function ke(){if(t.contextMenuPending!=ke)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=q,K&&G<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=z),d.selectionStart!=null){(!K||K&&G<9)&&Me();var $e=0,et=function(){n.selForContextMenu==i.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pr(i,Vs)(i):$e++<10?n.detectingSelectAll=setTimeout(et,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(et,200)}}if(K&&G>=9&&Me(),D){me(e);var Ke=function(){lt(window,"mouseup",Ke),setTimeout(ke,20)};Ue(window,"mouseup",Ke)}else setTimeout(ke,50)},ir.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ir.prototype.setUneditable=function(){},ir.prototype.needsContentAttribute=!1;function nu(e,t){if(t=t?g(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=B();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=Q.getValue()}var d;if(e.form&&(Ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var N=e.form;d=N.submit;try{var z=N.submit=function(){n(),N.submit=d,N.submit(),N.submit=z}}catch(q){}}t.finishInit=function(q){q.save=n,q.getTextArea=function(){return e},q.toTextArea=function(){q.toTextArea=isNaN,n(),e.parentNode.removeChild(q.getWrapperElement()),e.style.display="",e.form&&(lt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Q=Qt(function(q){return e.parentNode.insertBefore(q,e.nextSibling)},t);return Q}function iu(e){e.off=lt,e.on=Ue,e.wheelEventPixels=dl,e.Doc=Pr,e.splitLines=dt,e.countColumn=H,e.findColumn=Le,e.isWordChar=Ne,e.Pass=Oe,e.signal=je,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Ze,e.cmpPos=Ct,e.modes=Zt,e.mimeModes=Dt,e.resolveMode=_t,e.getMode=Lr,e.modeExtensions=Et,e.extendMode=wt,e.copyState=Ut,e.startState=dr,e.innerMode=tr,e.commands=Pi,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ai,e.normalizeKeyMap=kl,e.StringStream=Nt,e.SharedTextMarker=Di,e.TextMarker=Rn,e.LineWidget=Ii,e.e_preventDefault=ae,e.e_stopPropagation=ue,e.e_stop=me,e.addClass=F,e.contains=b,e.rmClass=A,e.keyNames=Ln}$l(Qt),ql(Qt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pr.prototype)Pr.prototype.hasOwnProperty(la)&&ne(au,la)<0&&(Qt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[la]));return we(Pr),Qt.inputStyles={textarea:ir,contenteditable:zt},Qt.defineMode=function(e){!Qt.defaults.mode&&e!="null"&&(Qt.defaults.mode=e),Cr.apply(this,arguments)},Qt.defineMIME=Kr,Qt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qt.defineMIME("text/plain","null"),Qt.defineExtension=function(e,t){Qt.prototype[e]=t},Qt.defineDocExtension=function(e,t){Pr.prototype[e]=t},Qt.fromTextArea=nu,iu(Qt),Qt.version="5.58.2",Qt})},Y1PL:function(rt,be,Z){"use strict";Z.r(be),Z.d(be,"ResizableTextArea",function(){return ne});var ie=Z("wx14"),J=Z("1OyB"),P=Z("vuIU"),X=Z("Ji7U"),j=Z("LK+K"),U=Z("q1tI"),K=Z("VTBJ"),G=Z("rePB"),r=Z("Zm9Q"),L=Z("Kwbf"),v=Z("c+Xe"),m=Z("m+aA"),p=Z("bdgK"),h=new Map;function u(ge){ge.forEach(function(Te){var Re,Le=Te.target;(Re=h.get(Le))===null||Re===void 0||Re.forEach(function(de){return de(Le)})})}var f=new p.default(u),l=null,o=null;function s(ge,Te){h.has(ge)||(h.set(ge,new Set),f.observe(ge)),h.get(ge).add(Te)}function a(ge,Te){h.has(ge)&&(h.get(ge).delete(Te),h.get(ge).size||(f.unobserve(ge),h.delete(ge)))}var O=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(){return Object(J.a)(this,Re),Te.apply(this,arguments)}return Object(P.a)(Re,[{key:"render",value:function(){return this.props.children}}]),Re}(U.Component),E=U.createContext(null);function w(ge){var Te=ge.children,Re=ge.onBatchResize,Le=U.useRef(0),de=U.useRef([]),he=U.useContext(E),re=U.useCallback(function(fe,oe,De){Le.current+=1;var Fe=Le.current;de.current.push({size:fe,element:oe,data:De}),Promise.resolve().then(function(){Fe===Le.current&&(Re==null||Re(de.current),de.current=[])}),he==null||he(fe,oe,De)},[Re,he]);return U.createElement(E.Provider,{value:re},Te)}function D(ge){var Te=ge.children,Re=ge.disabled,Le=U.useRef(null),de=U.useRef(null),he=U.useContext(E),re=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),fe=U.isValidElement(Te)&&Object(v.c)(Te),oe=fe?Te.ref:null,De=U.useMemo(function(){return Object(v.a)(oe,Le)},[oe,Le]),Fe=U.useRef(ge);Fe.current=ge;var Ce=U.useCallback(function(Ne){var Be=Fe.current,le=Be.onResize,ve=Be.data,Se=Ne.getBoundingClientRect(),Ie=Se.width,We=Se.height,Ve=Ne.offsetWidth,Qe=Ne.offsetHeight,Je=Math.floor(Ie),st=Math.floor(We);if(re.current.width!==Je||re.current.height!==st||re.current.offsetWidth!==Ve||re.current.offsetHeight!==Qe){var qe={width:Je,height:st,offsetWidth:Ve,offsetHeight:Qe};re.current=qe;var at=Ve===Math.round(Ie)?Ie:Ve,Ue=Qe===Math.round(We)?We:Qe,ct=Object(K.a)(Object(K.a)({},qe),{},{offsetWidth:at,offsetHeight:Ue});he==null||he(ct,Ne,ve),le&&Promise.resolve().then(function(){le(ct,Ne)})}},[]);return U.useEffect(function(){var Ne=Object(m.a)(Le.current)||Object(m.a)(de.current);return Ne&&!Re&&s(Ne,Ce),function(){return a(Ne,Ce)}},[Le.current,Re]),U.createElement(O,{ref:de},fe?U.cloneElement(Te,{ref:De}):Te)}var R="rc-observer-key";function A(ge){var Te=ge.children,Re=Object(r.a)(Te);return Re.map(function(Le,de){var he=(Le==null?void 0:Le.key)||"".concat(R,"-").concat(de);return U.createElement(D,Object(ie.a)({},ge,{key:he}),Le)})}A.Collection=w;var C=A,T=Z("bT9E"),c=Z("TSYQ"),S=Z.n(c),y=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -375,7 +375,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var c=e. z-index:-1000 !important; top:0 !important; right:0 !important -`,b=["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"],B={},F;function _(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(Te&&B[Re])return B[Re];var Le=window.getComputedStyle(ge),ce=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),he=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),re=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),fe=b.map(function(De){return"".concat(De,":").concat(Le.getPropertyValue(De))}).join(";"),oe={sizingStyle:fe,paddingSize:he,borderSize:re,boxSizing:ce};return Te&&Re&&(B[Re]=oe),oe}function M(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),ge.getAttribute("wrap")?F.setAttribute("wrap",ge.getAttribute("wrap")):F.removeAttribute("wrap");var ce=_(ge,Te),he=ce.paddingSize,re=ce.borderSize,fe=ce.boxSizing,oe=ce.sizingStyle;F.setAttribute("style","".concat(oe,";").concat(y)),F.value=ge.value||ge.placeholder||"";var De=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,Ce=F.scrollHeight,Ne;if(fe==="border-box"?Ce+=re:fe==="content-box"&&(Ce-=he),Re!==null||Le!==null){F.value=" ";var Be=F.scrollHeight-he;Re!==null&&(De=Be*Re,fe==="border-box"&&(De=De+he+re),Ce=Math.max(De,Ce)),Le!==null&&(Fe=Be*Le,fe==="border-box"&&(Fe=Fe+he+re),Ne=Ce>Fe?"":"hidden",Ce=Math.min(Fe,Ce))}return{height:Ce,minHeight:De,maxHeight:Fe,overflowY:Ne,resize:"none"}}var I=Z("Gytx"),g=Z.n(I),H;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(H||(H={}));var $=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var ce;return Object(J.a)(this,Re),ce=Te.call(this,Le),ce.nextFrameActionId=void 0,ce.resizeFrameId=void 0,ce.textArea=void 0,ce.saveTextArea=function(he){ce.textArea=he},ce.handleResize=function(he){var re=ce.state.resizeStatus,fe=ce.props,oe=fe.autoSize,De=fe.onResize;if(re!==H.NONE)return;typeof De=="function"&&De(he),oe&&ce.resizeOnNextFrame()},ce.resizeOnNextFrame=function(){cancelAnimationFrame(ce.nextFrameActionId),ce.nextFrameActionId=requestAnimationFrame(ce.resizeTextarea)},ce.resizeTextarea=function(){var he=ce.props.autoSize;if(!he||!ce.textArea)return;var re=he.minRows,fe=he.maxRows,oe=M(ce.textArea,!1,re,fe);ce.setState({textareaStyles:oe,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(ce.resizeFrameId),ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:H.RESIZED},function(){ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:H.NONE}),ce.fixFirefoxAutoScroll()})})})})},ce.renderTextArea=function(){var he=ce.props,re=he.prefixCls,fe=re===void 0?"rc-textarea":re,oe=he.autoSize,De=he.onResize,Fe=he.className,Ce=he.disabled,Ne=ce.state,Be=Ne.textareaStyles,le=Ne.resizeStatus,ve=Object(T.a)(ce.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Se=S()(fe,Fe,Object(G.a)({},"".concat(fe,"-disabled"),Ce));"value"in ve&&(ve.value=ve.value||"");var Ie=Object(K.a)(Object(K.a)(Object(K.a)({},ce.props.style),Be),le===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return U.createElement(C,{onResize:ce.handleResize,disabled:!(oe||De)},U.createElement("textarea",Object(ie.a)({},ve,{className:Se,style:Ie,ref:ce.saveTextArea})))},ce.state={textareaStyles:{},resizeStatus:H.NONE},ce}return Object(P.a)(Re,[{key:"componentDidUpdate",value:function(ce){(ce.value!==this.props.value||!g()(ce.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 ce=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(ce,he)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Re}(U.Component),ne=$,se=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var ce;Object(J.a)(this,Re),ce=Te.call(this,Le),ce.resizableTextArea=void 0,ce.focus=function(){ce.resizableTextArea.textArea.focus()},ce.saveTextArea=function(re){ce.resizableTextArea=re},ce.handleChange=function(re){var fe=ce.props.onChange;ce.setValue(re.target.value,function(){ce.resizableTextArea.resizeTextarea()}),fe&&fe(re)},ce.handleKeyDown=function(re){var fe=ce.props,oe=fe.onPressEnter,De=fe.onKeyDown;re.keyCode===13&&oe&&oe(re),De&&De(re)};var he=typeof Le.value=="undefined"||Le.value===null?Le.defaultValue:Le.value;return ce.state={value:he},ce}return Object(P.a)(Re,[{key:"setValue",value:function(ce,he){"value"in this.props||this.setState({value:ce},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return U.createElement(ne,Object(ie.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ce){return"value"in ce?{value:ce.value}:null}}]),Re}(U.Component),Oe=be.default=se},ZW9T:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return I});var ie=Z("k1fw"),J=Z("oBTY"),P=Z("miYZ"),X=Z("tsqr"),j=Z("rAM+"),U=Z("tJVT"),K=Z("PpiC"),G=Z("q1tI"),r=Z.n(G),L=Z("bdgK"),v=Z("9og8"),m=Z("WmNS"),p=Z.n(m),h={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"]},u={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`,b=["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"],B={},F;function _(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(Te&&B[Re])return B[Re];var Le=window.getComputedStyle(ge),de=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),he=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),re=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),fe=b.map(function(De){return"".concat(De,":").concat(Le.getPropertyValue(De))}).join(";"),oe={sizingStyle:fe,paddingSize:he,borderSize:re,boxSizing:de};return Te&&Re&&(B[Re]=oe),oe}function M(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),ge.getAttribute("wrap")?F.setAttribute("wrap",ge.getAttribute("wrap")):F.removeAttribute("wrap");var de=_(ge,Te),he=de.paddingSize,re=de.borderSize,fe=de.boxSizing,oe=de.sizingStyle;F.setAttribute("style","".concat(oe,";").concat(y)),F.value=ge.value||ge.placeholder||"";var De=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,Ce=F.scrollHeight,Ne;if(fe==="border-box"?Ce+=re:fe==="content-box"&&(Ce-=he),Re!==null||Le!==null){F.value=" ";var Be=F.scrollHeight-he;Re!==null&&(De=Be*Re,fe==="border-box"&&(De=De+he+re),Ce=Math.max(De,Ce)),Le!==null&&(Fe=Be*Le,fe==="border-box"&&(Fe=Fe+he+re),Ne=Ce>Fe?"":"hidden",Ce=Math.min(Fe,Ce))}return{height:Ce,minHeight:De,maxHeight:Fe,overflowY:Ne,resize:"none"}}var I=Z("Gytx"),g=Z.n(I),H;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(H||(H={}));var $=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var de;return Object(J.a)(this,Re),de=Te.call(this,Le),de.nextFrameActionId=void 0,de.resizeFrameId=void 0,de.textArea=void 0,de.saveTextArea=function(he){de.textArea=he},de.handleResize=function(he){var re=de.state.resizeStatus,fe=de.props,oe=fe.autoSize,De=fe.onResize;if(re!==H.NONE)return;typeof De=="function"&&De(he),oe&&de.resizeOnNextFrame()},de.resizeOnNextFrame=function(){cancelAnimationFrame(de.nextFrameActionId),de.nextFrameActionId=requestAnimationFrame(de.resizeTextarea)},de.resizeTextarea=function(){var he=de.props.autoSize;if(!he||!de.textArea)return;var re=he.minRows,fe=he.maxRows,oe=M(de.textArea,!1,re,fe);de.setState({textareaStyles:oe,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(de.resizeFrameId),de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:H.RESIZED},function(){de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:H.NONE}),de.fixFirefoxAutoScroll()})})})})},de.renderTextArea=function(){var he=de.props,re=he.prefixCls,fe=re===void 0?"rc-textarea":re,oe=he.autoSize,De=he.onResize,Fe=he.className,Ce=he.disabled,Ne=de.state,Be=Ne.textareaStyles,le=Ne.resizeStatus,ve=Object(T.a)(de.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Se=S()(fe,Fe,Object(G.a)({},"".concat(fe,"-disabled"),Ce));"value"in ve&&(ve.value=ve.value||"");var Ie=Object(K.a)(Object(K.a)(Object(K.a)({},de.props.style),Be),le===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return U.createElement(C,{onResize:de.handleResize,disabled:!(oe||De)},U.createElement("textarea",Object(ie.a)({},ve,{className:Se,style:Ie,ref:de.saveTextArea})))},de.state={textareaStyles:{},resizeStatus:H.NONE},de}return Object(P.a)(Re,[{key:"componentDidUpdate",value:function(de){(de.value!==this.props.value||!g()(de.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 de=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(de,he)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Re}(U.Component),ne=$,se=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var de;Object(J.a)(this,Re),de=Te.call(this,Le),de.resizableTextArea=void 0,de.focus=function(){de.resizableTextArea.textArea.focus()},de.saveTextArea=function(re){de.resizableTextArea=re},de.handleChange=function(re){var fe=de.props.onChange;de.setValue(re.target.value,function(){de.resizableTextArea.resizeTextarea()}),fe&&fe(re)},de.handleKeyDown=function(re){var fe=de.props,oe=fe.onPressEnter,De=fe.onKeyDown;re.keyCode===13&&oe&&oe(re),De&&De(re)};var he=typeof Le.value=="undefined"||Le.value===null?Le.defaultValue:Le.value;return de.state={value:he},de}return Object(P.a)(Re,[{key:"setValue",value:function(de,he){"value"in this.props||this.setState({value:de},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return U.createElement(ne,Object(ie.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(de){return"value"in de?{value:de.value}:null}}]),Re}(U.Component),Oe=be.default=se},ZW9T:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return I});var ie=Z("k1fw"),J=Z("oBTY"),P=Z("miYZ"),X=Z("tsqr"),j=Z("rAM+"),U=Z("tJVT"),K=Z("PpiC"),G=Z("q1tI"),r=Z.n(G),L=Z("bdgK"),v=Z("9og8"),m=Z("WmNS"),p=Z.n(m),h={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"]},u={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"]},f={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(` @@ -394,12 +394,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var c=e. `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},l={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(` -`)}]},o=Z("5VLF"),s=Z.n(o),a={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"]}},O=function(H,$){return $.map(function(ne){return{label:ne,kind:H.languages.CompletionItemKind.Keyword,insertText:ne}})},E=function(H){return Object.keys(a.tables).map(function($){return{label:$,kind:H.languages.CompletionItemKind.Variable,insertText:$}})},w=function(H,$){var ne=a.tables[H];return ne?ne.map(function(se){return{label:se,kind:$.languages.CompletionItemKind.Field,insertText:se}}):[]};function D(g,H,$,ne,se){var Oe=H.getWordUntilPosition($),ge={startLineNumber:$.lineNumber,endLineNumber:$.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Te=ne.map(function(Re){return{label:Re,kind:g.languages.CompletionItemKind.Keyword,insertText:Re,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}});return se.map(function(Re){Te.push(Object(ie.a)(Object(ie.a)({},Re),{},{range:ge}))}),Te}var R=function(g){a.languages.map(function(se){return g.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(ge,Te,Re){return Object(v.a)(p.a.mark(function Le(){var ce;return p.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return ce=s()(ge.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}),re.abrupt("return",[{range:ge.getFullModelRange(),text:ce}]);case 2:case"end":return re.stop()}},Le)}))()}}),se});var H=f.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=l.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=u.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}});g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(f.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(f.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:Object(J.a)(h.keywords.map(function(Le){return{label:Le,kind:g.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}}))}}}),g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(u.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(u.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(l.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(l.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=Z("fjLI"),T=Z("LvDl"),d=Z("+ua5");function S(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function y(){}var b=!1,B={"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 F(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=g;if(Array.isArray(g)){for(var $=0;$0||cr.target.offsetWidth>0)&&Ge.current.instance.layout()}}catch(Nt){Ut.e(Nt)}finally{Ut.f()}}),Et.observe(je.current)),Et}function He(){X.b.warn(decodeURIComponent(A))}var ze=function(){var wt=Ge.current.instance;if(Oe!=null&&wt&&me){var Ut=wt.getModel();Ut&&Oe!==Ut.getValue()&&(b=!0,Ut.setValue(Oe),wt.layout(),b=!1)}};Object(G.useEffect)(function(){_e.current&&clearTimeout(_e.current),_e.current=setTimeout(function(){ze()},500)},[Oe,me,Ge.current]),Object(G.useEffect)(function(){if(at&&Ge.current&&Ge.current.instance){var Et=Ge.current.instance;Et.changeViewZones(function(Ut){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=dt,Ut.addZone({afterLineNumber:at||11,heightInLines:3,domNode:tr})});var wt={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}};Et.addOverlayWidget(wt),Et.revealPositionInCenter({lineNumber:20,column:1})}},[at,Ge.current,me]);function ht(){var Et=Ge.current.instance;if(Et){var wt=Et.getSelection(),Ut=Ge.current.pastePos||{},tr=new _.Range(Ut.startLineNumber||wt.endLineNumber,Ut.startColumn||wt.endColumn,Ut.endLineNumber||wt.endLineNumber,Ut.endColumn||wt.endColumn);setTimeout(function(){Et.executeEdits("",[{range:tr,text:""}])},300)}}function ot(Et){(window.navigator.platform.match("Mac")?Et.metaKey:Et.ctrlKey)&&Et.keyCode==83&&(Et.preventDefault(),Ce())}var yt=function(){if(Be&&Ge.current.instance){var wt=Ge.current.instance.getContentHeight();_t(wt0||We.target.offsetWidth>0)&&Be.layout()}}catch(Ve){Se.e(Ve)}finally{Se.f()}}),le.observe(ce.current)),le}Object(G.useEffect)(function(){ce.current&&Promise.all([Z.e(16),Z.e(28)]).then(Z.t.bind(null,"M/lh",7)).then(function(Be){_=Be;var le=_.editor.createDiffEditor(ce.current,Object(ie.a)(Object(ie.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},Le),{},{wordWrap:!0}));oe(le);var ve=De(le);return function(){le.dispose();var Se=le.getModel();Se&&Se.dispose(),ve.unobserve(ce.current)}})},[]),Object(G.useEffect)(function(){fe&&fe.setModel({original:_.editor.createModel(Oe,Te),modified:_.editor.createModel(ge,Te)})},[Oe,ge,Te,fe]);var Fe=S($),Ce=S(se),Ne={width:Fe,height:Ce};return r.a.createElement("div",{className:"my-diff-editor",ref:ce,style:Ne})}},ZpRC:function(rt,be,Z){"use strict";function ie(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function J(v,m){return(!m||v!=="hidden")&&v!=="visible"&&v!=="clip"}function P(v,m){if(v.clientHeightm||f>v&&l=m&&o>=p?f-v-h:l>m&&op?l-m+u:0}var j=function(v,m){var p=window,h=m.scrollMode,u=m.block,f=m.inline,l=m.boundary,o=m.skipOverflowHiddenElements,s=typeof l=="function"?l:function(Be){return Be!==l};if(!ie(v))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,O=[],E=v;ie(E)&&s(E);){if((E=E.parentElement)===a){O.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,o)&&O.push(E)}for(var w=p.visualViewport?p.visualViewport.width:innerWidth,D=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,C=v.getBoundingClientRect(),T=C.height,d=C.width,S=C.top,y=C.right,b=C.bottom,B=C.left,F=u==="start"||u==="nearest"?S:u==="end"?b:S+T/2,_=f==="center"?B+d/2:f==="end"?y:B,M=[],I=0;I=0&&B>=0&&b<=D&&y<=w&&S>=se&&b<=ge&&B>=Te&&y<=Oe)return M;var Re=getComputedStyle(g),Le=parseInt(Re.borderLeftWidth,10),ce=parseInt(Re.borderTopWidth,10),he=parseInt(Re.borderRightWidth,10),re=parseInt(Re.borderBottomWidth,10),fe=0,oe=0,De="offsetWidth"in g?g.offsetWidth-g.clientWidth-Le-he:0,Fe="offsetHeight"in g?g.offsetHeight-g.clientHeight-ce-re:0;if(a===g)fe=u==="start"?F:u==="end"?F-D:u==="nearest"?X(A,A+D,D,ce,re,A+F,A+F+T,T):F-D/2,oe=f==="start"?_:f==="center"?_-w/2:f==="end"?_-w:X(R,R+w,w,Le,he,R+_,R+_+d,d),fe=Math.max(0,fe+A),oe=Math.max(0,oe+R);else{fe=u==="start"?F-se-ce:u==="end"?F-ge+re+Fe:u==="nearest"?X(se,ge,$,ce,re+Fe,F,F+T,T):F-(se+$/2)+Fe/2,oe=f==="start"?_-Te-Le:f==="center"?_-(Te+ne/2)+De/2:f==="end"?_-Oe+he+De:X(Te,Oe,ne,Le,he+De,_,_+d,d);var Ce=g.scrollLeft,Ne=g.scrollTop;F+=Ne-(fe=Math.max(0,Math.min(Ne+fe,g.scrollHeight-$+Fe))),_+=Ce-(oe=Math.max(0,Math.min(Ce+oe,g.scrollWidth-ne+De)))}M.push({el:g,top:fe,left:oe})}return M};function U(v){return v===Object(v)&&Object.keys(v).length!==0}function K(v,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;v.forEach(function(h){var u=h.el,f=h.top,l=h.left;u.scroll&&p?u.scroll({top:f,left:l,behavior:m}):(u.scrollTop=f,u.scrollLeft=l)})}function G(v){return v===!1?{block:"end",inline:"nearest"}:U(v)?v:{block:"start",inline:"nearest"}}function r(v,m){var p=!v.ownerDocument.documentElement.contains(v);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:j(v,m));if(p)return;var h=G(m);return K(j(v,h),h.behavior)}var L=be.a=r},Zss7:function(rt,be,Z){var ie;(function(J){var P=/^\s+/,X=/\s+$/,j=0,U=J.round,K=J.min,G=J.max,r=J.random;function L(re,fe){if(re=re||"",fe=fe||{},re instanceof L)return re;if(!(this instanceof L))return new L(re,fe);var oe=v(re);this._originalInput=re,this._r=oe.r,this._g=oe.g,this._b=oe.b,this._a=oe.a,this._roundA=U(100*this._a)/100,this._format=fe.format||oe.format,this._gradientType=fe.gradientType,this._r<1&&(this._r=U(this._r)),this._g<1&&(this._g=U(this._g)),this._b<1&&(this._b=U(this._b)),this._ok=oe.ok,this._tc_id=j++}L.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),fe,oe,De,Fe,Ce,Ne;return fe=re.r/255,oe=re.g/255,De=re.b/255,fe<=.03928?Fe=fe/12.92:Fe=J.pow((fe+.055)/1.055,2.4),oe<=.03928?Ce=oe/12.92:Ce=J.pow((oe+.055)/1.055,2.4),De<=.03928?Ne=De/12.92:Ne=J.pow((De+.055)/1.055,2.4),.2126*Fe+.7152*Ce+.0722*Ne},setAlpha:function(re){return this._a=M(re),this._roundA=U(100*this._a)/100,this},toHsv:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=u(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.v*100);return this._a==1?"hsv("+fe+", "+oe+"%, "+De+"%)":"hsva("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHsl:function(){var re=p(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=p(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.l*100);return this._a==1?"hsl("+fe+", "+oe+"%, "+De+"%)":"hsla("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHex:function(re){return l(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return o(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(I(this._r,255)*100)+"%",g:U(I(this._g,255)*100)+"%",b:U(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%)":"rgba("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var fe="#"+s(this._r,this._g,this._b,this._a),oe=fe,De=this._gradientType?"GradientType = 1, ":"";if(re){var Fe=L(re);oe="#"+s(Fe._r,Fe._g,Fe._b,Fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+De+"startColorstr="+fe+",endColorstr="+oe+")"},toString:function(re){var fe=!!re;re=re||this._format;var oe=!1,De=this._a<1&&this._a>=0,Fe=!fe&&De&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return Fe?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(oe=this.toRgbString()),re==="prgb"&&(oe=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(oe=this.toHexString()),re==="hex3"&&(oe=this.toHexString(!0)),re==="hex4"&&(oe=this.toHex8String(!0)),re==="hex8"&&(oe=this.toHex8String()),re==="name"&&(oe=this.toName()),re==="hsl"&&(oe=this.toHslString()),re==="hsv"&&(oe=this.toHsvString()),oe||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(re,fe){var oe=re.apply(null,[this].concat([].slice.call(fe)));return this._r=oe._r,this._g=oe._g,this._b=oe._b,this.setAlpha(oe._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(a,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(re,fe){return re.apply(null,[this].concat([].slice.call(fe)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(d,arguments)}},L.fromRatio=function(re,fe){if(typeof re=="object"){var oe={};for(var De in re)re.hasOwnProperty(De)&&(De==="a"?oe[De]=re[De]:oe[De]=Oe(re[De]));re=oe}return L(re,fe)};function v(re){var fe={r:0,g:0,b:0},oe=1,De=null,Fe=null,Ce=null,Ne=!1,Be=!1;return typeof re=="string"&&(re=ce(re)),typeof re=="object"&&(Le(re.r)&&Le(re.g)&&Le(re.b)?(fe=m(re.r,re.g,re.b),Ne=!0,Be=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Le(re.h)&&Le(re.s)&&Le(re.v)?(De=Oe(re.s),Fe=Oe(re.v),fe=f(re.h,De,Fe),Ne=!0,Be="hsv"):Le(re.h)&&Le(re.s)&&Le(re.l)&&(De=Oe(re.s),Ce=Oe(re.l),fe=h(re.h,De,Ce),Ne=!0,Be="hsl"),re.hasOwnProperty("a")&&(oe=re.a)),oe=M(oe),{ok:Ne,format:re.format||Be,r:K(255,G(fe.r,0)),g:K(255,G(fe.g,0)),b:K(255,G(fe.b,0)),a:oe}}function m(re,fe,oe){return{r:I(re,255)*255,g:I(fe,255)*255,b:I(oe,255)*255}}function p(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=(De+Fe)/2;if(De==Fe)Ce=Ne=0;else{var le=De-Fe;Ne=Be>.5?le/(2-De-Fe):le/(De+Fe);switch(De){case re:Ce=(fe-oe)/le+(fe1&&(Ie-=1),Ie<1/6?ve+(Se-ve)*6*Ie:Ie<1/2?Se:Ie<2/3?ve+(Se-ve)*(2/3-Ie)*6:ve}if(fe===0)De=Fe=Ce=oe;else{var Be=oe<.5?oe*(1+fe):oe+fe-oe*fe,le=2*oe-Be;De=Ne(le,Be,re+1/3),Fe=Ne(le,Be,re),Ce=Ne(le,Be,re-1/3)}return{r:De*255,g:Fe*255,b:Ce*255}}function u(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=De,le=De-Fe;if(Ne=De===0?0:le/De,De==Fe)Ce=0;else{switch(De){case re:Ce=(fe-oe)/le+(fe>1)+720)%360;--fe;)De.h=(De.h+Fe)%360,Ce.push(L(De));return Ce}function b(re,fe){fe=fe||6;for(var oe=L(re).toHsv(),De=oe.h,Fe=oe.s,Ce=oe.v,Ne=[],Be=1/fe;fe--;)Ne.push(L({h:De,s:Fe,v:Ce})),Ce=(Ce+Be)%1;return Ne}L.mix=function(re,fe,oe){oe=oe===0?0:oe||50;var De=L(re).toRgb(),Fe=L(fe).toRgb(),Ce=oe/100,Ne={r:(Fe.r-De.r)*Ce+De.r,g:(Fe.g-De.g)*Ce+De.g,b:(Fe.b-De.b)*Ce+De.b,a:(Fe.a-De.a)*Ce+De.a};return L(Ne)},L.readability=function(re,fe){var oe=L(re),De=L(fe);return(J.max(oe.getLuminance(),De.getLuminance())+.05)/(J.min(oe.getLuminance(),De.getLuminance())+.05)},L.isReadable=function(re,fe,oe){var De=L.readability(re,fe),Fe,Ce;Ce=!1,Fe=he(oe);switch(Fe.level+Fe.size){case"AAsmall":case"AAAlarge":Ce=De>=4.5;break;case"AAlarge":Ce=De>=3;break;case"AAAsmall":Ce=De>=7;break}return Ce},L.mostReadable=function(re,fe,oe){var De=null,Fe=0,Ce,Ne,Be,le;oe=oe||{},Ne=oe.includeFallbackColors,Be=oe.level,le=oe.size;for(var ve=0;veFe&&(Fe=Ce,De=L(fe[ve]));return L.isReadable(re,De,{level:Be,size:le})||!Ne?De:(oe.includeFallbackColors=!1,L.mostReadable(re,["#fff","#000"],oe))};var B=L.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"},F=L.hexNames=_(B);function _(re){var fe={};for(var oe in re)re.hasOwnProperty(oe)&&(fe[re[oe]]=oe);return fe}function M(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function I(re,fe){$(re)&&(re="100%");var oe=ne(re);return re=K(fe,G(0,parseFloat(re))),oe&&(re=parseInt(re*fe,10)/100),J.abs(re-fe)<1e-6?1:re%fe/parseFloat(fe)}function g(re){return K(1,G(0,re))}function H(re){return parseInt(re,16)}function $(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function ne(re){return typeof re=="string"&&re.indexOf("%")!=-1}function se(re){return re.length==1?"0"+re:""+re}function Oe(re){return re<=1&&(re=re*100+"%"),re}function ge(re){return J.round(parseFloat(re)*255).toString(16)}function Te(re){return H(re)/255}var Re=function(){var re="[-\\+]?\\d+%?",fe="[-\\+]?\\d*\\.\\d+%?",oe="(?:"+fe+")|(?:"+re+")",De="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?",Fe="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?";return{CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+De),rgba:new RegExp("rgba"+Fe),hsl:new RegExp("hsl"+De),hsla:new RegExp("hsla"+Fe),hsv:new RegExp("hsv"+De),hsva:new RegExp("hsva"+Fe),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 Le(re){return!!Re.CSS_UNIT.exec(re)}function ce(re){re=re.replace(P,"").replace(X,"").toLowerCase();var fe=!1;if(B[re])re=B[re],fe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe;return(oe=Re.rgb.exec(re))?{r:oe[1],g:oe[2],b:oe[3]}:(oe=Re.rgba.exec(re))?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=Re.hsl.exec(re))?{h:oe[1],s:oe[2],l:oe[3]}:(oe=Re.hsla.exec(re))?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=Re.hsv.exec(re))?{h:oe[1],s:oe[2],v:oe[3]}:(oe=Re.hsva.exec(re))?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=Re.hex8.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),a:Te(oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex6.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),format:fe?"name":"hex"}:(oe=Re.hex4.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),a:Te(oe[4]+""+oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex3.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),format:fe?"name":"hex"}:!1}function he(re){var fe,oe;return re=re||{level:"AA",size:"small"},fe=(re.level||"AA").toUpperCase(),oe=(re.size||"small").toLowerCase(),fe!=="AA"&&fe!=="AAA"&&(fe="AA"),oe!=="small"&&oe!=="large"&&(oe="small"),{level:fe,size:oe}}rt.exports?rt.exports=L:!(ie=function(){return L}.call(be,Z,be,rt),ie!==void 0&&(rt.exports=ie))})(Math)},bT9E:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("VTBJ");function J(P,X){var j=Object(ie.a)({},P);return Array.isArray(X)&&X.forEach(function(U){delete j[U]}),j}},c5Ni:function(rt,be,Z){},dejd:function(rt,be,Z){},dmUQ:function(rt,be,Z){"use strict";var ie=Z("Ff2n"),J=Z("rePB"),P=Z("1OyB"),X=Z("vuIU"),j=Z("Ji7U"),U=Z("md7G"),K=Z("foSv"),G=Z("q1tI"),r=Z.n(G),L=Z("TSYQ"),v=Z.n(L),m=Z("4IlW");function p(T,d){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(T);d&&(y=y.filter(function(b){return Object.getOwnPropertyDescriptor(T,b).enumerable})),S.push.apply(S,y)}return S}function h(T){for(var d=1;d1?ne-1:0),Oe=1;Oe1?I-1:0),H=1;H=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var I=0;return M.indexOf(".")>=0&&(I=M.length-M.indexOf(".")-1),I},b.getInputDisplayValue=function(_){var M=_||b.state,I=M.focused,g=M.inputValue,H=M.value,$;I?$=g:$=b.toPrecisionAsStep(H),$==null&&($="");var ne=b.formatWrapper($);return w(b.props.decimalSeparator)&&(ne=ne.toString().replace(".",b.props.decimalSeparator)),ne},b.recordCursorPosition=function(){try{b.cursorStart=b.input.selectionStart,b.cursorEnd=b.input.selectionEnd,b.currentValue=b.input.value,b.cursorBefore=b.input.value.substring(0,b.cursorStart),b.cursorAfter=b.input.value.substring(b.cursorEnd)}catch(_){}},b.restoreByAfter=function(_){if(_===void 0)return!1;var M=b.input.value,I=M.lastIndexOf(_);if(I===-1)return!1;var g=b.cursorBefore.length;return b.lastKeyCode===m.a.DELETE&&b.cursorBefore.charAt(g-1)===_[0]?(b.fixCaret(g,g),!0):I+_.length===M.length?(b.fixCaret(I,I),!0):!1},b.partRestoreByAfter=function(_){return _===void 0?!1:Array.prototype.some.call(_,function(M,I){var g=_.substring(I);return b.restoreByAfter(g)})},b.isNotCompleteNumber=function(_){return isNaN(_)||_===""||_===null||_&&_.toString().indexOf(".")===_.toString().length-1},b.stop=function(){b.autoStepTimer&&clearTimeout(b.autoStepTimer)},b.down=function(_,M,I){b.pressingUpOrDown=!0,b.step("down",_,M,I)},b.up=function(_,M,I){b.pressingUpOrDown=!0,b.step("up",_,M,I)},b.saveInput=function(_){b.input=_};var B=y.value;B===void 0&&(B=y.defaultValue),b.state={focused:y.autoFocus};var F=b.getValidValue(b.toNumber(B));return b.state=h(h({},b.state),{},{inputValue:b.toPrecisionAsStep(F),value:F}),b}return Object(X.a)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(b){var B=this.props,F=B.value,_=B.onChange,M=B.max,I=B.min,g=this.state.focused;if(b){if(!D(b.value,F)||!D(b.max,M)||!D(b.min,I)){var H=g?F:this.getValidValue(F),$;this.pressingUpOrDown?$=H:this.inputting?$=this.rawInput:$=this.toPrecisionAsStep(H),this.setState({value:H,inputValue:$})}var ne="value"in this.props?F:this.state.value;"max"in this.props&&b.max!==M&&typeof ne=="number"&&ne>M&&_&&_(M),"min"in this.props&&b.min!==I&&typeof ne=="number"&&ne1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_=parseFloat(b);return isNaN(_)?b:(_F&&(_=F),_)}},{key:"setValue",value:function(b,B){var F=this.props.precision,_=this.isNotCompleteNumber(parseFloat(b))?null:parseFloat(b),M=this.state.value,I=M===void 0?null:M,g=this.state.inputValue,H=g===void 0?null:g,$=typeof _=="number"?_.toFixed(F):"".concat(_),ne=_!==I||$!=="".concat(H);return"value"in this.props?(H=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:H},B)):this.setState({value:_,inputValue:this.toPrecisionAsStep(b)},B),ne&&this.props.onChange(_),_}},{key:"getMaxPrecision",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,_=F.precision,M=F.step;if(w(_))return _;var I=this.getPrecision(B),g=this.getPrecision(M),H=this.getPrecision(b);return b?Math.max(H,I+g):I+g}},{key:"getPrecisionFactor",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(b,B);return Math.pow(10,F)}},{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(b){return this.props.formatter?this.props.formatter(b):b}},{key:"toPrecisionAsStep",value:function(b){if(this.isNotCompleteNumber(b)||b==="")return b;var B=Math.abs(this.getMaxPrecision(b));return isNaN(B)?b.toString():Number(b).toFixed(B)}},{key:"toNumber",value:function(b){var B=this.props.precision,F=this.state.focused,_=b&&b.length>16&&F;return this.isNotCompleteNumber(b)||_?b:w(B)?Math.round(b*Math.pow(10,B))/Math.pow(10,B):Number(b)}},{key:"upStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b+_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"downStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b-_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"step",value:function(b,B){var F=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),B&&(B.persist(),B.preventDefault());var I=this.props;if(I.disabled)return;var g=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(g))return;var H=this["".concat(b,"Step")](g,_),$=H>I.max||HI.max?H=I.max:H=se),Ge=(st||st===0)&&(isNaN(st)||Number(st)<=Oe),Ae=je||_||M,_e=Ge||_||M,we=v()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(J.a)({},"".concat(F,"-handler-up-disabled"),Ae)),ae=v()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(J.a)({},"".concat(F,"-handler-down-disabled"),_e)),ue=I?{onTouchStart:Ae?l:this.up,onTouchEnd:this.stop}:{onMouseDown:Ae?l:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},de=I?{onTouchStart:_e?l:this.down,onTouchEnd:this.stop}:{onMouseDown:_e?l:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return r.a.createElement("div",{className:at,style:ge,title:Te,onMouseEnter:Re,onMouseLeave:Le,onMouseOver:ce,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},r.a.createElement("div",{className:"".concat(F,"-handler-wrap")},r.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Ae,className:we}),H||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:o})),r.a.createElement("span",Object.assign({unselectable:"on"},de,{role:"button","aria-label":"Decrease Value","aria-disabled":_e,className:ae}),$||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:o}))),r.a.createElement("div",{className:"".concat(F,"-input-wrap")},r.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":se,"aria-valuenow":st,required:re,type:De,placeholder:Fe,onPaste:We,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:oe,autoComplete:g,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:dt?this.onKeyDown:l,onKeyUp:dt?this.onKeyUp:l,autoFocus:Se,maxLength:ve,readOnly:M,disabled:_,max:se,min:Oe,step:le,name:Ie,title:Te,id:Ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(lt),pattern:Be,inputMode:Ne,onInput:Ve},Ue))))}}]),S}(r.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:l,onKeyDown:l,onPressEnter:l,onFocus:l,onBlur:l,parser:s,required:!1,autoComplete:"off"};var A=R,C=be.a=A},fjLI:function(rt,be,Z){"use strict";Z.d(be,"f",function(){return p}),Z.d(be,"b",function(){return h}),Z.d(be,"a",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"e",function(){return l}),Z.d(be,"c",function(){return o});var ie=Z("8HAY"),J=Z("Vhoy"),P=Z("MI8n"),X=Z("JYp7"),j=Z("pmY6"),U=Z("24hK"),K=Z("nnTU"),G=Z("T8No"),r=Z("Cg/j"),L=Z("t9D7"),v=function(s,a,O,E){var w=arguments.length,D=w<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,O):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(s,a,O,E);else for(var A=s.length-1;A>=0;A--)(R=s[A])&&(D=(w<3?R(D):w>3?R(a,O,D):R(a,O))||D);return w>3&&D&&Object.defineProperty(a,O,D),D},m=function(s,a){return function(O,E){a(O,E,s)}};function p(s){return s.command!==void 0}class h{constructor(s){this.id=h._idPool++,this._debugName=s}}h._idPool=0,h.CommandPalette=new h("CommandPalette"),h.EditorContext=new h("EditorContext"),h.SimpleEditorContext=new h("SimpleEditorContext"),h.EditorContextCopy=new h("EditorContextCopy"),h.EditorContextPeek=new h("EditorContextPeek"),h.MenubarEditMenu=new h("MenubarEditMenu"),h.MenubarCopy=new h("MenubarCopy"),h.MenubarGoMenu=new h("MenubarGoMenu"),h.MenubarSelectionMenu=new h("MenubarSelectionMenu"),h.InlineCompletionsActions=new h("InlineCompletionsActions");const u=Object(r.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new P.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===h.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(j.i)(()=>{let a=!1;for(const O of s)a=this._commands.delete(O.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,O)=>s.set(O,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,O=new U.a;for(const{id:E,item:w}of s){let D=this._menuItems.get(E);D||(D=new U.a,this._menuItems.set(E,D)),O.push(D.push(w)),a.add(E)}return this._onDidChangeMenu.fire(a),Object(j.i)(()=>{if(O.size>0){for(let E of O)E();this._onDidChangeMenu.fire(a),O.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===h.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const O of s)p(O)&&(a.add(O.command.id),O.alt&&a.add(O.alt.id));this._commands.forEach((O,E)=>{a.has(E)||s.push({command:O})})}};class l extends ie.e{constructor(s,a,O,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=O,this._options=E}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),O=a.getActions(this._options);a.dispose();for(const[,E]of O)E.length>0&&(s.push(...E),s.push(new ie.d));return s.length&&s.pop(),s}}let o=class s{constructor(a,O,E,w,D){var R,A;if(this._commandService=D,this.id=a.id,this.label=(E==null?void 0:E.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(A=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&A!==void 0?A:"",this.enabled=!a.precondition||w.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const C=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=w.contextMatchesRules(C.condition),this.checked&&C.tooltip&&(this.tooltip=typeof C.tooltip=="string"?C.tooltip:C.tooltip.value),C.title&&(this.label=typeof C.title=="string"?C.title:C.title.value)}this.item=a,this.alt=O?new s(O,void 0,E,w,D):void 0,this._options=E,L.d.isThemeIcon(a.icon)&&(this.class=J.a.asClassName(a.icon))}dispose(){}run(...a){var O,E;let w=[];return((O=this._options)===null||O===void 0?void 0:O.arg)&&(w=[...w,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(w=[...w,...a]),this._commandService.executeCommand(this.id,...w)}};o=v([m(3,G.b),m(4,K.b)],o)},h78n:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return b});var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P),j={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},U=function(_){var M=_.map(function(){return Object(ie.useRef)()}),I=Object(ie.useRef)();return Object(ie.useEffect)(function(){var g=Date.now(),H=!1;Object.keys(M).forEach(function($){var ne=M[$].current;if(!ne)return;H=!0;var se=ne.style;se.transitionDuration=".3s, .3s, .3s, .06s",I.current&&g-I.current<100&&(se.transitionDuration="0s, 0s")}),H&&(I.current=Date.now())}),[M]};function K(){return K=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function m(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function p(F){if(Array.isArray(F))return F}function h(F,_){if(F==null)return{};var M=u(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function u(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var f=function(_){var M=_.className,I=_.percent,g=_.prefixCls,H=_.strokeColor,$=_.strokeLinecap,ne=_.strokeWidth,se=_.style,Oe=_.trailColor,ge=_.trailWidth,Te=_.transition,Re=h(_,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Re.gapPosition;var Le=Array.isArray(I)?I:[I],ce=Array.isArray(H)?H:[H],he=U(Le),re=G(he,1),fe=re[0],oe=ne/2,De=100-ne/2,Fe="M ".concat($==="round"?oe:0,",").concat(oe,` - L `).concat($==="round"?De:100,",").concat(oe),Ce="0 0 100 ".concat(ne),Ne=0;return J.a.createElement("svg",K({className:X()("".concat(g,"-line"),M),viewBox:Ce,preserveAspectRatio:"none",style:se},Re),J.a.createElement("path",{className:"".concat(g,"-line-trail"),d:Fe,strokeLinecap:$,stroke:Oe,strokeWidth:ge||ne,fillOpacity:"0"}),Le.map(function(Be,le){var ve={strokeDasharray:"".concat(Be,"px, 100px"),strokeDashoffset:"-".concat(Ne,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=ce[le]||ce[ce.length-1];return Ne+=Be,J.a.createElement("path",{key:le,className:"".concat(g,"-line-path"),d:Fe,strokeLinecap:$,stroke:Se,strokeWidth:ne,fillOpacity:"0",ref:fe[le],style:ve})}))};f.defaultProps=j;var l=f;function o(){return o=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function w(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function D(F){if(Array.isArray(F))return F}function R(F,_){if(F==null)return{};var M=A(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function A(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var C=0;function T(F){return+F.replace("%","")}function d(F){return Array.isArray(F)?F:[F]}function S(F,_,M,I){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,$=50-I/2,ne=0,se=-$,Oe=0,ge=-2*$;switch(H){case"left":ne=-$,se=0,Oe=2*$,ge=0;break;case"right":ne=$,se=0,Oe=-2*$,ge=0;break;case"bottom":se=$,ge=2*$;break;default:}var Te="M 50,50 m ".concat(ne,",").concat(se,` +`)}]},o=Z("5VLF"),s=Z.n(o),a={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"]}},O=function(H,$){return $.map(function(ne){return{label:ne,kind:H.languages.CompletionItemKind.Keyword,insertText:ne}})},E=function(H){return Object.keys(a.tables).map(function($){return{label:$,kind:H.languages.CompletionItemKind.Variable,insertText:$}})},w=function(H,$){var ne=a.tables[H];return ne?ne.map(function(se){return{label:se,kind:$.languages.CompletionItemKind.Field,insertText:se}}):[]};function D(g,H,$,ne,se){var Oe=H.getWordUntilPosition($),ge={startLineNumber:$.lineNumber,endLineNumber:$.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Te=ne.map(function(Re){return{label:Re,kind:g.languages.CompletionItemKind.Keyword,insertText:Re,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}});return se.map(function(Re){Te.push(Object(ie.a)(Object(ie.a)({},Re),{},{range:ge}))}),Te}var R=function(g){a.languages.map(function(se){return g.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(ge,Te,Re){return Object(v.a)(p.a.mark(function Le(){var de;return p.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return de=s()(ge.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}),re.abrupt("return",[{range:ge.getFullModelRange(),text:de}]);case 2:case"end":return re.stop()}},Le)}))()}}),se});var H=f.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=l.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=u.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}});g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(f.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(f.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:Object(J.a)(h.keywords.map(function(Le){return{label:Le,kind:g.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}}))}}}),g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(u.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(u.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(l.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(l.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=Z("fjLI"),T=Z("LvDl"),c=Z("+ua5");function S(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function y(){}var b=!1,B={"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 F(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=g;if(Array.isArray(g)){for(var $=0;$0||dr.target.offsetWidth>0)&&Ge.current.instance.layout()}}catch(Nt){Ut.e(Nt)}finally{Ut.f()}}),Et.observe(je.current)),Et}function He(){X.b.warn(decodeURIComponent(A))}var ze=function(){var wt=Ge.current.instance;if(Oe!=null&&wt&&me){var Ut=wt.getModel();Ut&&Oe!==Ut.getValue()&&(b=!0,Ut.setValue(Oe),wt.layout(),b=!1)}};Object(G.useEffect)(function(){_e.current&&clearTimeout(_e.current),_e.current=setTimeout(function(){ze()},500)},[Oe,me,Ge.current]),Object(G.useEffect)(function(){if(at&&Ge.current&&Ge.current.instance){var Et=Ge.current.instance;Et.changeViewZones(function(Ut){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=ct,Ut.addZone({afterLineNumber:at||11,heightInLines:3,domNode:tr})});var wt={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}};Et.addOverlayWidget(wt),Et.revealPositionInCenter({lineNumber:20,column:1})}},[at,Ge.current,me]);function ht(){var Et=Ge.current.instance;if(Et){var wt=Et.getSelection(),Ut=Ge.current.pastePos||{},tr=new _.Range(Ut.startLineNumber||wt.endLineNumber,Ut.startColumn||wt.endColumn,Ut.endLineNumber||wt.endLineNumber,Ut.endColumn||wt.endColumn);setTimeout(function(){Et.executeEdits("",[{range:tr,text:""}])},300)}}function ot(Et){(window.navigator.platform.match("Mac")?Et.metaKey:Et.ctrlKey)&&Et.keyCode==83&&(Et.preventDefault(),Ce())}var yt=function(){if(Be&&Ge.current.instance){var wt=Ge.current.instance.getContentHeight();_t(wt0||We.target.offsetWidth>0)&&Be.layout()}}catch(Ve){Se.e(Ve)}finally{Se.f()}}),le.observe(de.current)),le}Object(G.useEffect)(function(){de.current&&Promise.all([Z.e(16),Z.e(28)]).then(Z.t.bind(null,"M/lh",7)).then(function(Be){_=Be;var le=_.editor.createDiffEditor(de.current,Object(ie.a)(Object(ie.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},Le),{},{wordWrap:!0}));oe(le);var ve=De(le);return function(){le.dispose();var Se=le.getModel();Se&&Se.dispose(),ve.unobserve(de.current)}})},[]),Object(G.useEffect)(function(){fe&&fe.setModel({original:_.editor.createModel(Oe,Te),modified:_.editor.createModel(ge,Te)})},[Oe,ge,Te,fe]);var Fe=S($),Ce=S(se),Ne={width:Fe,height:Ce};return r.a.createElement("div",{className:"my-diff-editor",ref:de,style:Ne})}},ZpRC:function(rt,be,Z){"use strict";function ie(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function J(v,m){return(!m||v!=="hidden")&&v!=="visible"&&v!=="clip"}function P(v,m){if(v.clientHeightm||f>v&&l=m&&o>=p?f-v-h:l>m&&op?l-m+u:0}var j=function(v,m){var p=window,h=m.scrollMode,u=m.block,f=m.inline,l=m.boundary,o=m.skipOverflowHiddenElements,s=typeof l=="function"?l:function(Be){return Be!==l};if(!ie(v))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,O=[],E=v;ie(E)&&s(E);){if((E=E.parentElement)===a){O.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,o)&&O.push(E)}for(var w=p.visualViewport?p.visualViewport.width:innerWidth,D=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,C=v.getBoundingClientRect(),T=C.height,c=C.width,S=C.top,y=C.right,b=C.bottom,B=C.left,F=u==="start"||u==="nearest"?S:u==="end"?b:S+T/2,_=f==="center"?B+c/2:f==="end"?y:B,M=[],I=0;I=0&&B>=0&&b<=D&&y<=w&&S>=se&&b<=ge&&B>=Te&&y<=Oe)return M;var Re=getComputedStyle(g),Le=parseInt(Re.borderLeftWidth,10),de=parseInt(Re.borderTopWidth,10),he=parseInt(Re.borderRightWidth,10),re=parseInt(Re.borderBottomWidth,10),fe=0,oe=0,De="offsetWidth"in g?g.offsetWidth-g.clientWidth-Le-he:0,Fe="offsetHeight"in g?g.offsetHeight-g.clientHeight-de-re:0;if(a===g)fe=u==="start"?F:u==="end"?F-D:u==="nearest"?X(A,A+D,D,de,re,A+F,A+F+T,T):F-D/2,oe=f==="start"?_:f==="center"?_-w/2:f==="end"?_-w:X(R,R+w,w,Le,he,R+_,R+_+c,c),fe=Math.max(0,fe+A),oe=Math.max(0,oe+R);else{fe=u==="start"?F-se-de:u==="end"?F-ge+re+Fe:u==="nearest"?X(se,ge,$,de,re+Fe,F,F+T,T):F-(se+$/2)+Fe/2,oe=f==="start"?_-Te-Le:f==="center"?_-(Te+ne/2)+De/2:f==="end"?_-Oe+he+De:X(Te,Oe,ne,Le,he+De,_,_+c,c);var Ce=g.scrollLeft,Ne=g.scrollTop;F+=Ne-(fe=Math.max(0,Math.min(Ne+fe,g.scrollHeight-$+Fe))),_+=Ce-(oe=Math.max(0,Math.min(Ce+oe,g.scrollWidth-ne+De)))}M.push({el:g,top:fe,left:oe})}return M};function U(v){return v===Object(v)&&Object.keys(v).length!==0}function K(v,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;v.forEach(function(h){var u=h.el,f=h.top,l=h.left;u.scroll&&p?u.scroll({top:f,left:l,behavior:m}):(u.scrollTop=f,u.scrollLeft=l)})}function G(v){return v===!1?{block:"end",inline:"nearest"}:U(v)?v:{block:"start",inline:"nearest"}}function r(v,m){var p=!v.ownerDocument.documentElement.contains(v);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:j(v,m));if(p)return;var h=G(m);return K(j(v,h),h.behavior)}var L=be.a=r},Zss7:function(rt,be,Z){var ie;(function(J){var P=/^\s+/,X=/\s+$/,j=0,U=J.round,K=J.min,G=J.max,r=J.random;function L(re,fe){if(re=re||"",fe=fe||{},re instanceof L)return re;if(!(this instanceof L))return new L(re,fe);var oe=v(re);this._originalInput=re,this._r=oe.r,this._g=oe.g,this._b=oe.b,this._a=oe.a,this._roundA=U(100*this._a)/100,this._format=fe.format||oe.format,this._gradientType=fe.gradientType,this._r<1&&(this._r=U(this._r)),this._g<1&&(this._g=U(this._g)),this._b<1&&(this._b=U(this._b)),this._ok=oe.ok,this._tc_id=j++}L.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),fe,oe,De,Fe,Ce,Ne;return fe=re.r/255,oe=re.g/255,De=re.b/255,fe<=.03928?Fe=fe/12.92:Fe=J.pow((fe+.055)/1.055,2.4),oe<=.03928?Ce=oe/12.92:Ce=J.pow((oe+.055)/1.055,2.4),De<=.03928?Ne=De/12.92:Ne=J.pow((De+.055)/1.055,2.4),.2126*Fe+.7152*Ce+.0722*Ne},setAlpha:function(re){return this._a=M(re),this._roundA=U(100*this._a)/100,this},toHsv:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=u(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.v*100);return this._a==1?"hsv("+fe+", "+oe+"%, "+De+"%)":"hsva("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHsl:function(){var re=p(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=p(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.l*100);return this._a==1?"hsl("+fe+", "+oe+"%, "+De+"%)":"hsla("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHex:function(re){return l(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return o(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(I(this._r,255)*100)+"%",g:U(I(this._g,255)*100)+"%",b:U(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%)":"rgba("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var fe="#"+s(this._r,this._g,this._b,this._a),oe=fe,De=this._gradientType?"GradientType = 1, ":"";if(re){var Fe=L(re);oe="#"+s(Fe._r,Fe._g,Fe._b,Fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+De+"startColorstr="+fe+",endColorstr="+oe+")"},toString:function(re){var fe=!!re;re=re||this._format;var oe=!1,De=this._a<1&&this._a>=0,Fe=!fe&&De&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return Fe?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(oe=this.toRgbString()),re==="prgb"&&(oe=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(oe=this.toHexString()),re==="hex3"&&(oe=this.toHexString(!0)),re==="hex4"&&(oe=this.toHex8String(!0)),re==="hex8"&&(oe=this.toHex8String()),re==="name"&&(oe=this.toName()),re==="hsl"&&(oe=this.toHslString()),re==="hsv"&&(oe=this.toHsvString()),oe||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(re,fe){var oe=re.apply(null,[this].concat([].slice.call(fe)));return this._r=oe._r,this._g=oe._g,this._b=oe._b,this.setAlpha(oe._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(a,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(re,fe){return re.apply(null,[this].concat([].slice.call(fe)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(c,arguments)}},L.fromRatio=function(re,fe){if(typeof re=="object"){var oe={};for(var De in re)re.hasOwnProperty(De)&&(De==="a"?oe[De]=re[De]:oe[De]=Oe(re[De]));re=oe}return L(re,fe)};function v(re){var fe={r:0,g:0,b:0},oe=1,De=null,Fe=null,Ce=null,Ne=!1,Be=!1;return typeof re=="string"&&(re=de(re)),typeof re=="object"&&(Le(re.r)&&Le(re.g)&&Le(re.b)?(fe=m(re.r,re.g,re.b),Ne=!0,Be=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Le(re.h)&&Le(re.s)&&Le(re.v)?(De=Oe(re.s),Fe=Oe(re.v),fe=f(re.h,De,Fe),Ne=!0,Be="hsv"):Le(re.h)&&Le(re.s)&&Le(re.l)&&(De=Oe(re.s),Ce=Oe(re.l),fe=h(re.h,De,Ce),Ne=!0,Be="hsl"),re.hasOwnProperty("a")&&(oe=re.a)),oe=M(oe),{ok:Ne,format:re.format||Be,r:K(255,G(fe.r,0)),g:K(255,G(fe.g,0)),b:K(255,G(fe.b,0)),a:oe}}function m(re,fe,oe){return{r:I(re,255)*255,g:I(fe,255)*255,b:I(oe,255)*255}}function p(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=(De+Fe)/2;if(De==Fe)Ce=Ne=0;else{var le=De-Fe;Ne=Be>.5?le/(2-De-Fe):le/(De+Fe);switch(De){case re:Ce=(fe-oe)/le+(fe1&&(Ie-=1),Ie<1/6?ve+(Se-ve)*6*Ie:Ie<1/2?Se:Ie<2/3?ve+(Se-ve)*(2/3-Ie)*6:ve}if(fe===0)De=Fe=Ce=oe;else{var Be=oe<.5?oe*(1+fe):oe+fe-oe*fe,le=2*oe-Be;De=Ne(le,Be,re+1/3),Fe=Ne(le,Be,re),Ce=Ne(le,Be,re-1/3)}return{r:De*255,g:Fe*255,b:Ce*255}}function u(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=De,le=De-Fe;if(Ne=De===0?0:le/De,De==Fe)Ce=0;else{switch(De){case re:Ce=(fe-oe)/le+(fe>1)+720)%360;--fe;)De.h=(De.h+Fe)%360,Ce.push(L(De));return Ce}function b(re,fe){fe=fe||6;for(var oe=L(re).toHsv(),De=oe.h,Fe=oe.s,Ce=oe.v,Ne=[],Be=1/fe;fe--;)Ne.push(L({h:De,s:Fe,v:Ce})),Ce=(Ce+Be)%1;return Ne}L.mix=function(re,fe,oe){oe=oe===0?0:oe||50;var De=L(re).toRgb(),Fe=L(fe).toRgb(),Ce=oe/100,Ne={r:(Fe.r-De.r)*Ce+De.r,g:(Fe.g-De.g)*Ce+De.g,b:(Fe.b-De.b)*Ce+De.b,a:(Fe.a-De.a)*Ce+De.a};return L(Ne)},L.readability=function(re,fe){var oe=L(re),De=L(fe);return(J.max(oe.getLuminance(),De.getLuminance())+.05)/(J.min(oe.getLuminance(),De.getLuminance())+.05)},L.isReadable=function(re,fe,oe){var De=L.readability(re,fe),Fe,Ce;Ce=!1,Fe=he(oe);switch(Fe.level+Fe.size){case"AAsmall":case"AAAlarge":Ce=De>=4.5;break;case"AAlarge":Ce=De>=3;break;case"AAAsmall":Ce=De>=7;break}return Ce},L.mostReadable=function(re,fe,oe){var De=null,Fe=0,Ce,Ne,Be,le;oe=oe||{},Ne=oe.includeFallbackColors,Be=oe.level,le=oe.size;for(var ve=0;veFe&&(Fe=Ce,De=L(fe[ve]));return L.isReadable(re,De,{level:Be,size:le})||!Ne?De:(oe.includeFallbackColors=!1,L.mostReadable(re,["#fff","#000"],oe))};var B=L.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"},F=L.hexNames=_(B);function _(re){var fe={};for(var oe in re)re.hasOwnProperty(oe)&&(fe[re[oe]]=oe);return fe}function M(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function I(re,fe){$(re)&&(re="100%");var oe=ne(re);return re=K(fe,G(0,parseFloat(re))),oe&&(re=parseInt(re*fe,10)/100),J.abs(re-fe)<1e-6?1:re%fe/parseFloat(fe)}function g(re){return K(1,G(0,re))}function H(re){return parseInt(re,16)}function $(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function ne(re){return typeof re=="string"&&re.indexOf("%")!=-1}function se(re){return re.length==1?"0"+re:""+re}function Oe(re){return re<=1&&(re=re*100+"%"),re}function ge(re){return J.round(parseFloat(re)*255).toString(16)}function Te(re){return H(re)/255}var Re=function(){var re="[-\\+]?\\d+%?",fe="[-\\+]?\\d*\\.\\d+%?",oe="(?:"+fe+")|(?:"+re+")",De="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?",Fe="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?";return{CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+De),rgba:new RegExp("rgba"+Fe),hsl:new RegExp("hsl"+De),hsla:new RegExp("hsla"+Fe),hsv:new RegExp("hsv"+De),hsva:new RegExp("hsva"+Fe),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 Le(re){return!!Re.CSS_UNIT.exec(re)}function de(re){re=re.replace(P,"").replace(X,"").toLowerCase();var fe=!1;if(B[re])re=B[re],fe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe;return(oe=Re.rgb.exec(re))?{r:oe[1],g:oe[2],b:oe[3]}:(oe=Re.rgba.exec(re))?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=Re.hsl.exec(re))?{h:oe[1],s:oe[2],l:oe[3]}:(oe=Re.hsla.exec(re))?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=Re.hsv.exec(re))?{h:oe[1],s:oe[2],v:oe[3]}:(oe=Re.hsva.exec(re))?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=Re.hex8.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),a:Te(oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex6.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),format:fe?"name":"hex"}:(oe=Re.hex4.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),a:Te(oe[4]+""+oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex3.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),format:fe?"name":"hex"}:!1}function he(re){var fe,oe;return re=re||{level:"AA",size:"small"},fe=(re.level||"AA").toUpperCase(),oe=(re.size||"small").toLowerCase(),fe!=="AA"&&fe!=="AAA"&&(fe="AA"),oe!=="small"&&oe!=="large"&&(oe="small"),{level:fe,size:oe}}rt.exports?rt.exports=L:!(ie=function(){return L}.call(be,Z,be,rt),ie!==void 0&&(rt.exports=ie))})(Math)},bT9E:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("VTBJ");function J(P,X){var j=Object(ie.a)({},P);return Array.isArray(X)&&X.forEach(function(U){delete j[U]}),j}},c5Ni:function(rt,be,Z){},dejd:function(rt,be,Z){},dmUQ:function(rt,be,Z){"use strict";var ie=Z("Ff2n"),J=Z("rePB"),P=Z("1OyB"),X=Z("vuIU"),j=Z("Ji7U"),U=Z("md7G"),K=Z("foSv"),G=Z("q1tI"),r=Z.n(G),L=Z("TSYQ"),v=Z.n(L),m=Z("4IlW");function p(T,c){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(T);c&&(y=y.filter(function(b){return Object.getOwnPropertyDescriptor(T,b).enumerable})),S.push.apply(S,y)}return S}function h(T){for(var c=1;c1?ne-1:0),Oe=1;Oe1?I-1:0),H=1;H=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var I=0;return M.indexOf(".")>=0&&(I=M.length-M.indexOf(".")-1),I},b.getInputDisplayValue=function(_){var M=_||b.state,I=M.focused,g=M.inputValue,H=M.value,$;I?$=g:$=b.toPrecisionAsStep(H),$==null&&($="");var ne=b.formatWrapper($);return w(b.props.decimalSeparator)&&(ne=ne.toString().replace(".",b.props.decimalSeparator)),ne},b.recordCursorPosition=function(){try{b.cursorStart=b.input.selectionStart,b.cursorEnd=b.input.selectionEnd,b.currentValue=b.input.value,b.cursorBefore=b.input.value.substring(0,b.cursorStart),b.cursorAfter=b.input.value.substring(b.cursorEnd)}catch(_){}},b.restoreByAfter=function(_){if(_===void 0)return!1;var M=b.input.value,I=M.lastIndexOf(_);if(I===-1)return!1;var g=b.cursorBefore.length;return b.lastKeyCode===m.a.DELETE&&b.cursorBefore.charAt(g-1)===_[0]?(b.fixCaret(g,g),!0):I+_.length===M.length?(b.fixCaret(I,I),!0):!1},b.partRestoreByAfter=function(_){return _===void 0?!1:Array.prototype.some.call(_,function(M,I){var g=_.substring(I);return b.restoreByAfter(g)})},b.isNotCompleteNumber=function(_){return isNaN(_)||_===""||_===null||_&&_.toString().indexOf(".")===_.toString().length-1},b.stop=function(){b.autoStepTimer&&clearTimeout(b.autoStepTimer)},b.down=function(_,M,I){b.pressingUpOrDown=!0,b.step("down",_,M,I)},b.up=function(_,M,I){b.pressingUpOrDown=!0,b.step("up",_,M,I)},b.saveInput=function(_){b.input=_};var B=y.value;B===void 0&&(B=y.defaultValue),b.state={focused:y.autoFocus};var F=b.getValidValue(b.toNumber(B));return b.state=h(h({},b.state),{},{inputValue:b.toPrecisionAsStep(F),value:F}),b}return Object(X.a)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(b){var B=this.props,F=B.value,_=B.onChange,M=B.max,I=B.min,g=this.state.focused;if(b){if(!D(b.value,F)||!D(b.max,M)||!D(b.min,I)){var H=g?F:this.getValidValue(F),$;this.pressingUpOrDown?$=H:this.inputting?$=this.rawInput:$=this.toPrecisionAsStep(H),this.setState({value:H,inputValue:$})}var ne="value"in this.props?F:this.state.value;"max"in this.props&&b.max!==M&&typeof ne=="number"&&ne>M&&_&&_(M),"min"in this.props&&b.min!==I&&typeof ne=="number"&&ne1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_=parseFloat(b);return isNaN(_)?b:(_F&&(_=F),_)}},{key:"setValue",value:function(b,B){var F=this.props.precision,_=this.isNotCompleteNumber(parseFloat(b))?null:parseFloat(b),M=this.state.value,I=M===void 0?null:M,g=this.state.inputValue,H=g===void 0?null:g,$=typeof _=="number"?_.toFixed(F):"".concat(_),ne=_!==I||$!=="".concat(H);return"value"in this.props?(H=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:H},B)):this.setState({value:_,inputValue:this.toPrecisionAsStep(b)},B),ne&&this.props.onChange(_),_}},{key:"getMaxPrecision",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,_=F.precision,M=F.step;if(w(_))return _;var I=this.getPrecision(B),g=this.getPrecision(M),H=this.getPrecision(b);return b?Math.max(H,I+g):I+g}},{key:"getPrecisionFactor",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(b,B);return Math.pow(10,F)}},{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(b){return this.props.formatter?this.props.formatter(b):b}},{key:"toPrecisionAsStep",value:function(b){if(this.isNotCompleteNumber(b)||b==="")return b;var B=Math.abs(this.getMaxPrecision(b));return isNaN(B)?b.toString():Number(b).toFixed(B)}},{key:"toNumber",value:function(b){var B=this.props.precision,F=this.state.focused,_=b&&b.length>16&&F;return this.isNotCompleteNumber(b)||_?b:w(B)?Math.round(b*Math.pow(10,B))/Math.pow(10,B):Number(b)}},{key:"upStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b+_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"downStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b-_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"step",value:function(b,B){var F=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),B&&(B.persist(),B.preventDefault());var I=this.props;if(I.disabled)return;var g=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(g))return;var H=this["".concat(b,"Step")](g,_),$=H>I.max||HI.max?H=I.max:H=se),Ge=(st||st===0)&&(isNaN(st)||Number(st)<=Oe),Ae=je||_||M,_e=Ge||_||M,we=v()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(J.a)({},"".concat(F,"-handler-up-disabled"),Ae)),ae=v()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(J.a)({},"".concat(F,"-handler-down-disabled"),_e)),ue=I?{onTouchStart:Ae?l:this.up,onTouchEnd:this.stop}:{onMouseDown:Ae?l:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=I?{onTouchStart:_e?l:this.down,onTouchEnd:this.stop}:{onMouseDown:_e?l:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return r.a.createElement("div",{className:at,style:ge,title:Te,onMouseEnter:Re,onMouseLeave:Le,onMouseOver:de,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},r.a.createElement("div",{className:"".concat(F,"-handler-wrap")},r.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Ae,className:we}),H||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:o})),r.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":_e,className:ae}),$||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:o}))),r.a.createElement("div",{className:"".concat(F,"-input-wrap")},r.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":se,"aria-valuenow":st,required:re,type:De,placeholder:Fe,onPaste:We,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:oe,autoComplete:g,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ct?this.onKeyDown:l,onKeyUp:ct?this.onKeyUp:l,autoFocus:Se,maxLength:ve,readOnly:M,disabled:_,max:se,min:Oe,step:le,name:Ie,title:Te,id:Ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(lt),pattern:Be,inputMode:Ne,onInput:Ve},Ue))))}}]),S}(r.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:l,onKeyDown:l,onPressEnter:l,onFocus:l,onBlur:l,parser:s,required:!1,autoComplete:"off"};var A=R,C=be.a=A},fjLI:function(rt,be,Z){"use strict";Z.d(be,"f",function(){return p}),Z.d(be,"b",function(){return h}),Z.d(be,"a",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"e",function(){return l}),Z.d(be,"c",function(){return o});var ie=Z("8HAY"),J=Z("Vhoy"),P=Z("MI8n"),X=Z("JYp7"),j=Z("pmY6"),U=Z("24hK"),K=Z("nnTU"),G=Z("T8No"),r=Z("Cg/j"),L=Z("t9D7"),v=function(s,a,O,E){var w=arguments.length,D=w<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,O):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(s,a,O,E);else for(var A=s.length-1;A>=0;A--)(R=s[A])&&(D=(w<3?R(D):w>3?R(a,O,D):R(a,O))||D);return w>3&&D&&Object.defineProperty(a,O,D),D},m=function(s,a){return function(O,E){a(O,E,s)}};function p(s){return s.command!==void 0}class h{constructor(s){this.id=h._idPool++,this._debugName=s}}h._idPool=0,h.CommandPalette=new h("CommandPalette"),h.EditorContext=new h("EditorContext"),h.SimpleEditorContext=new h("SimpleEditorContext"),h.EditorContextCopy=new h("EditorContextCopy"),h.EditorContextPeek=new h("EditorContextPeek"),h.MenubarEditMenu=new h("MenubarEditMenu"),h.MenubarCopy=new h("MenubarCopy"),h.MenubarGoMenu=new h("MenubarGoMenu"),h.MenubarSelectionMenu=new h("MenubarSelectionMenu"),h.InlineCompletionsActions=new h("InlineCompletionsActions");const u=Object(r.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new P.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===h.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(j.i)(()=>{let a=!1;for(const O of s)a=this._commands.delete(O.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,O)=>s.set(O,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,O=new U.a;for(const{id:E,item:w}of s){let D=this._menuItems.get(E);D||(D=new U.a,this._menuItems.set(E,D)),O.push(D.push(w)),a.add(E)}return this._onDidChangeMenu.fire(a),Object(j.i)(()=>{if(O.size>0){for(let E of O)E();this._onDidChangeMenu.fire(a),O.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===h.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const O of s)p(O)&&(a.add(O.command.id),O.alt&&a.add(O.alt.id));this._commands.forEach((O,E)=>{a.has(E)||s.push({command:O})})}};class l extends ie.e{constructor(s,a,O,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=O,this._options=E}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),O=a.getActions(this._options);a.dispose();for(const[,E]of O)E.length>0&&(s.push(...E),s.push(new ie.d));return s.length&&s.pop(),s}}let o=class s{constructor(a,O,E,w,D){var R,A;if(this._commandService=D,this.id=a.id,this.label=(E==null?void 0:E.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(A=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&A!==void 0?A:"",this.enabled=!a.precondition||w.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const C=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=w.contextMatchesRules(C.condition),this.checked&&C.tooltip&&(this.tooltip=typeof C.tooltip=="string"?C.tooltip:C.tooltip.value),C.title&&(this.label=typeof C.title=="string"?C.title:C.title.value)}this.item=a,this.alt=O?new s(O,void 0,E,w,D):void 0,this._options=E,L.d.isThemeIcon(a.icon)&&(this.class=J.a.asClassName(a.icon))}dispose(){}run(...a){var O,E;let w=[];return((O=this._options)===null||O===void 0?void 0:O.arg)&&(w=[...w,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(w=[...w,...a]),this._commandService.executeCommand(this.id,...w)}};o=v([m(3,G.b),m(4,K.b)],o)},h78n:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return b});var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P),j={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},U=function(_){var M=_.map(function(){return Object(ie.useRef)()}),I=Object(ie.useRef)();return Object(ie.useEffect)(function(){var g=Date.now(),H=!1;Object.keys(M).forEach(function($){var ne=M[$].current;if(!ne)return;H=!0;var se=ne.style;se.transitionDuration=".3s, .3s, .3s, .06s",I.current&&g-I.current<100&&(se.transitionDuration="0s, 0s")}),H&&(I.current=Date.now())}),[M]};function K(){return K=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function m(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function p(F){if(Array.isArray(F))return F}function h(F,_){if(F==null)return{};var M=u(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function u(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var f=function(_){var M=_.className,I=_.percent,g=_.prefixCls,H=_.strokeColor,$=_.strokeLinecap,ne=_.strokeWidth,se=_.style,Oe=_.trailColor,ge=_.trailWidth,Te=_.transition,Re=h(_,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Re.gapPosition;var Le=Array.isArray(I)?I:[I],de=Array.isArray(H)?H:[H],he=U(Le),re=G(he,1),fe=re[0],oe=ne/2,De=100-ne/2,Fe="M ".concat($==="round"?oe:0,",").concat(oe,` + L `).concat($==="round"?De:100,",").concat(oe),Ce="0 0 100 ".concat(ne),Ne=0;return J.a.createElement("svg",K({className:X()("".concat(g,"-line"),M),viewBox:Ce,preserveAspectRatio:"none",style:se},Re),J.a.createElement("path",{className:"".concat(g,"-line-trail"),d:Fe,strokeLinecap:$,stroke:Oe,strokeWidth:ge||ne,fillOpacity:"0"}),Le.map(function(Be,le){var ve={strokeDasharray:"".concat(Be,"px, 100px"),strokeDashoffset:"-".concat(Ne,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=de[le]||de[de.length-1];return Ne+=Be,J.a.createElement("path",{key:le,className:"".concat(g,"-line-path"),d:Fe,strokeLinecap:$,stroke:Se,strokeWidth:ne,fillOpacity:"0",ref:fe[le],style:ve})}))};f.defaultProps=j;var l=f;function o(){return o=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function w(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function D(F){if(Array.isArray(F))return F}function R(F,_){if(F==null)return{};var M=A(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function A(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var C=0;function T(F){return+F.replace("%","")}function c(F){return Array.isArray(F)?F:[F]}function S(F,_,M,I){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,$=50-I/2,ne=0,se=-$,Oe=0,ge=-2*$;switch(H){case"left":ne=-$,se=0,Oe=2*$,ge=0;break;case"right":ne=$,se=0,Oe=-2*$,ge=0;break;case"bottom":se=$,ge=2*$;break;default:}var Te="M 50,50 m ".concat(ne,",").concat(se,` a `).concat($,",").concat($," 0 1 1 ").concat(Oe,",").concat(-ge,` - a `).concat($,",").concat($," 0 1 1 ").concat(-Oe,",").concat(ge),Re=Math.PI*2*$,Le={stroke:M,strokeDasharray:"".concat(_/100*(Re-g),"px ").concat(Re,"px"),strokeDashoffset:"-".concat(g/2+F/100*(Re-g),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Te,pathStyle:Le}}var y=function(_){var M=_.prefixCls,I=_.strokeWidth,g=_.trailWidth,H=_.gapDegree,$=_.gapPosition,ne=_.trailColor,se=_.strokeLinecap,Oe=_.style,ge=_.className,Te=_.strokeColor,Re=_.percent,Le=R(_,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ce=Object(ie.useMemo)(function(){return C+=1,C},[]),he=S(0,100,ne,I,H,$),re=he.pathString,fe=he.pathStyle,oe=d(Re),De=d(Te),Fe=De.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),Ce=U(oe),Ne=s(Ce,1),Be=Ne[0],le=function(){var Se=0;return oe.map(function(Ie,We){var Ve=De[We]||De[De.length-1],Qe=Object.prototype.toString.call(Ve)==="[object Object]"?"url(#".concat(M,"-gradient-").concat(ce,")"):"",Je=S(Se,Ie,Ve,I,H,$);return Se+=Ie,J.a.createElement("path",{key:We,className:"".concat(M,"-circle-path"),d:Je.pathString,stroke:Qe,strokeLinecap:se,strokeWidth:I,opacity:Ie===0?0:1,fillOpacity:"0",style:Je.pathStyle,ref:Be[We]})})};return J.a.createElement("svg",o({className:X()("".concat(M,"-circle"),ge),viewBox:"0 0 100 100",style:Oe},Le),Fe&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(M,"-gradient-").concat(ce),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Fe).sort(function(ve,Se){return T(ve)-T(Se)}).map(function(ve,Se){return J.a.createElement("stop",{key:Se,offset:ve,stopColor:Fe[ve]})}))),J.a.createElement("path",{className:"".concat(M,"-circle-trail"),d:re,stroke:ne,strokeLinecap:se,strokeWidth:g||I,fillOpacity:"0",style:fe}),le().reverse())};y.defaultProps=j;var b=y,B={Line:l,Circle:b}},ic2d:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return X});var ie=Z("FWmy"),J=Z("746U");class P{constructor(){this.data=new Map}add(j,U){ie.a(J.l(j)),ie.a(J.k(U)),ie.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,U)}as(j){return this.data.get(j)||null}}const X=new P},kSUc:function(rt,be,Z){},lZu9:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("1eCo"),Z("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function(J,P){var X=ie.getMode(J,"text/html"),j=X.name=="null";function U(I){if(ie.findModeByName){var g=ie.findModeByName(I);g&&(I=g.mime||g.mimes[0])}var H=ie.getMode(J,I);return H.name=="null"?null:H}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var K={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var G in K)K.hasOwnProperty(G)&&P.tokenTypeOverrides[G]&&(K[G]=P.tokenTypeOverrides[G]);var r=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,m=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function s(I,g,H){return g.f=g.inline=H,H(I,g)}function a(I,g,H){return g.f=g.block=H,H(I,g)}function O(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==D){var g=j;if(!g){var H=ie.innerMode(X,I.htmlState);g=H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText}g&&(I.f=T,I.block=w,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function w(I,g){var H=I.column()===g.indentation,$=O(g.prevLine.stream),ne=g.indentedCode,se=g.prevLine.hr,Oe=g.list!==!1,ge=(g.listStack[g.listStack.length-1]||0)+3;g.indentedCode=!1;var Te=g.indentation;if(g.indentationDiff===null&&(g.indentationDiff=g.indentation,Oe)){for(g.list=null;Te=4&&(ne||g.prevLine.fencedCodeEnd||g.prevLine.header||$))return I.skipToEnd(),g.indentedCode=!0,K.code;if(I.eatSpace())return null;if(H&&g.indentation<=ge&&(ce=I.match(m))&&ce[1].length<=6)return g.quote=0,g.header=ce[1].length,g.thisLine.header=!0,P.highlightFormatting&&(g.formatting="header"),g.f=g.inline,A(g);if(g.indentation<=ge&&I.eat(">"))return g.quote=H?1:g.quote+1,P.highlightFormatting&&(g.formatting="quote"),I.eatSpace(),A(g);if(!Le&&!g.setext&&H&&g.indentation<=ge&&(ce=I.match(L))){var he=ce[1]?"ol":"ul";return g.indentation=Te+I.current().length,g.list=!0,g.quote=0,g.listStack.push(g.indentation),g.em=!1,g.strong=!1,g.code=!1,g.strikethrough=!1,P.taskLists&&I.match(v,!1)&&(g.taskList=!0),g.f=g.inline,P.highlightFormatting&&(g.formatting=["list","list-"+he]),A(g)}else{if(H&&g.indentation<=ge&&(ce=I.match(u,!0)))return g.quote=0,g.fencedEndRE=new RegExp(ce[1]+"+ *$"),g.localMode=P.fencedCodeBlockHighlighting&&U(ce[2]||P.fencedCodeBlockDefaultMode),g.localMode&&(g.localState=ie.startState(g.localMode)),g.f=g.block=R,P.highlightFormatting&&(g.formatting="code-block"),g.code=-1,A(g);if(g.setext||(!Re||!Oe)&&!g.quote&&g.list===!1&&!g.code&&!Le&&!f.test(I.string)&&(ce=I.lookAhead(1))&&(ce=ce.match(p)))return g.setext?(g.header=g.setext,g.setext=0,I.skipToEnd(),P.highlightFormatting&&(g.formatting="header")):(g.header=ce[0].charAt(0)=="="?1:2,g.setext=g.header),g.thisLine.header=!0,g.f=g.inline,A(g);if(Le)return I.skipToEnd(),g.hr=!0,g.thisLine.hr=!0,K.hr;if(I.peek()==="[")return s(I,g,B)}return s(I,g,g.inline)}function D(I,g){var H=X.token(I,g.htmlState);if(!j){var $=ie.innerMode(X,g.htmlState);($.mode.name=="xml"&&$.state.tagStart===null&&!$.state.context&&$.state.tokenize.isInText||g.md_inside&&I.current().indexOf(">")>-1)&&(g.f=T,g.block=w,g.htmlState=null)}return H}function R(I,g){var H=g.listStack[g.listStack.length-1]||0,$=g.indentation=I.quote?g.push(K.formatting+"-"+I.formatting[H]+"-"+I.quote):g.push("error"))}if(I.taskOpen)return g.push("meta"),g.length?g.join(" "):null;if(I.taskClosed)return g.push("property"),g.length?g.join(" "):null;if(I.linkHref?g.push(K.linkHref,"url"):(I.strong&&g.push(K.strong),I.em&&g.push(K.em),I.strikethrough&&g.push(K.strikethrough),I.emoji&&g.push(K.emoji),I.linkText&&g.push(K.linkText),I.code&&g.push(K.code),I.image&&g.push(K.image),I.imageAltText&&g.push(K.imageAltText,"link"),I.imageMarker&&g.push(K.imageMarker)),I.header&&g.push(K.header,K.header+"-"+I.header),I.quote&&(g.push(K.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=I.quote?g.push(K.quote+"-"+I.quote):g.push(K.quote+"-"+P.maxBlockquoteDepth)),I.list!==!1){var $=(I.listStack.length-1)%3;$?$===1?g.push(K.list2):g.push(K.list3):g.push(K.list1)}return I.trailingSpaceNewLine?g.push("trailing-space-new-line"):I.trailingSpace&&g.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),g.length?g.join(" "):null}function C(I,g){return I.match(h,!0)?A(g):void 0}function T(I,g){var H=g.text(I,g);if(typeof H!="undefined")return H;if(g.list)return g.list=null,A(g);if(g.taskList){var $=I.match(v,!0)[1]===" ";return $?g.taskOpen=!0:g.taskClosed=!0,P.highlightFormatting&&(g.formatting="task"),g.taskList=!1,A(g)}if(g.taskOpen=!1,g.taskClosed=!1,g.header&&I.match(/^#+$/,!0))return P.highlightFormatting&&(g.formatting="header"),A(g);var ne=I.next();if(g.linkTitle){g.linkTitle=!1;var se=ne;ne==="("&&(se=")"),se=(se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+se+"\\\\]+|\\\\\\\\|\\\\.)"+se;if(I.match(new RegExp(Oe),!0))return K.linkHref}if(ne==="`"){var ge=g.formatting;P.highlightFormatting&&(g.formatting="code"),I.eatWhile("`");var Te=I.current().length;if(g.code==0&&(!g.quote||Te==1))return g.code=Te,A(g);if(Te==g.code){var Re=A(g);return g.code=0,Re}else return g.formatting=ge,A(g)}else if(g.code)return A(g);if(ne==="\\"&&(I.next(),P.highlightFormatting)){var Le=A(g),ce=K.formatting+"-escape";return Le?Le+" "+ce:ce}if(ne==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return g.imageMarker=!0,g.image=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="["&&g.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return g.imageMarker=!1,g.imageAltText=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="]"&&g.imageAltText){P.highlightFormatting&&(g.formatting="image");var Le=A(g);return g.imageAltText=!1,g.image=!1,g.inline=g.f=S,Le}if(ne==="["&&!g.image)return g.linkText&&I.match(/^.*?\]/)||(g.linkText=!0,P.highlightFormatting&&(g.formatting="link")),A(g);if(ne==="]"&&g.linkText){P.highlightFormatting&&(g.formatting="link");var Le=A(g);return g.linkText=!1,g.inline=g.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?S:T,Le}if(ne==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=d,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkInline}if(ne==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=d,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkEmail}if(P.xml&&ne==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=I.string.indexOf(">",I.pos);if(he!=-1){var re=I.string.substring(I.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(g.md_inside=!0)}return I.backUp(1),g.htmlState=ie.startState(X),a(I,g,D)}if(P.xml&&ne==="<"&&I.match(/^\/\w*?>/))return g.md_inside=!1,"tag";if(ne==="*"||ne==="_"){for(var fe=1,oe=I.pos==1?" ":I.string.charAt(I.pos-2);fe<3&&I.eat(ne);)fe++;var De=I.peek()||" ",Fe=!/\s/.test(De)&&(!l.test(De)||/\s/.test(oe)||l.test(oe)),Ce=!/\s/.test(oe)&&(!l.test(oe)||/\s/.test(De)||l.test(De)),Ne=null,Be=null;if(fe%2&&(!g.em&&Fe&&(ne==="*"||!Ce||l.test(oe))?Ne=!0:g.em==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Ne=!1)),fe>1&&(!g.strong&&Fe&&(ne==="*"||!Ce||l.test(oe))?Be=!0:g.strong==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Be=!1)),Be!=null||Ne!=null){P.highlightFormatting&&(g.formatting=Ne==null?"strong":Be==null?"em":"strong em"),Ne===!0&&(g.em=ne),Be===!0&&(g.strong=ne);var Re=A(g);return Ne===!1&&(g.em=!1),Be===!1&&(g.strong=!1),Re}}else if(ne===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return A(g);I.backUp(1)}if(P.strikethrough){if(ne==="~"&&I.eatWhile(ne)){if(g.strikethrough){P.highlightFormatting&&(g.formatting="strikethrough");var Re=A(g);return g.strikethrough=!1,Re}else if(I.match(/^[^\s]/,!1))return g.strikethrough=!0,P.highlightFormatting&&(g.formatting="strikethrough"),A(g)}else if(ne===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return A(g);I.backUp(2)}}if(P.emoji&&ne===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){g.emoji=!0,P.highlightFormatting&&(g.formatting="emoji");var le=A(g);return g.emoji=!1,le}return ne===" "&&(I.match(/^ +$/,!1)?g.trailingSpace++:g.trailingSpace&&(g.trailingSpaceNewLine=!0)),A(g)}function d(I,g){var H=I.next();if(H===">"){g.f=g.inline=T,P.highlightFormatting&&(g.formatting="link");var $=A(g);return $?$+=" ":$="",$+K.linkInline}return I.match(/^[^>]+/,!0),K.linkInline}function S(I,g){if(I.eatSpace())return null;var H=I.next();return H==="("||H==="["?(g.f=g.inline=b(H==="("?")":"]"),P.highlightFormatting&&(g.formatting="link-string"),g.linkHref=!0,A(g)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function b(I){return function(g,H){var $=g.next();if($===I){H.f=H.inline=T,P.highlightFormatting&&(H.formatting="link-string");var ne=A(H);return H.linkHref=!1,ne}return g.match(y[I]),H.linkHref=!0,A(H)}}function B(I,g){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(g.f=F,I.next(),P.highlightFormatting&&(g.formatting="link"),g.linkText=!0,A(g)):s(I,g,T)}function F(I,g){if(I.match(/^\]:/,!0)){g.f=g.inline=_,P.highlightFormatting&&(g.formatting="link");var H=A(g);return g.linkText=!1,H}return I.match(/^([^\]\\]|\\.)+/,!0),K.linkText}function _(I,g){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?g.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),g.f=g.inline=T,K.linkHref+" url")}var M={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:T,text:C,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(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ie.copyState(X,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ie.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,g){if(g.formatting=!1,I!=g.thisLine.stream){if(g.header=0,g.hr=!1,I.match(/^\s*$/,!0))return E(g),null;if(g.prevLine=g.thisLine,g.thisLine={stream:I},g.taskList=!1,g.trailingSpace=0,g.trailingSpaceNewLine=!1,!g.localState&&(g.f=g.block,g.f!=D)){var H=I.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(g.indentation=H,g.indentationDiff=null,H>0)return null}}return g.f(I,g)},innerMode:function(I){return I.block==D?{state:I.htmlState,mode:X}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:M}},indent:function(I,g,H){return I.block==D&&X.indent?X.indent(I.htmlState,g,H):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,g,H):ie.Pass},blankLine:E,getType:A,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});var ie;(function(J){J.DARK="dark",J.LIGHT="light",J.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return K}),Z.d(be,"a",function(){return G});var ie=Z("MI8n"),J=Z("JYp7"),P=Z("pmY6"),X=Z("24hK"),j=Z("746U"),U=Z("Cg/j");const K=Object(U.c)("commandService"),G=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(r,L){if(!r)throw new Error("invalid command");if(typeof r=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:r,handler:L})}if(r.description){const u=[];for(let l of r.description.args)u.push(l.constraint);const f=r.handler;r.handler=function(l,...o){return Object(j.o)(o,u),f(l,...o)}}const{id:v}=r;let m=this._commands.get(v);m||(m=new X.a,this._commands.set(v,m));let p=m.unshift(r),h=Object(P.i)(()=>{p();const u=this._commands.get(v);(u==null?void 0:u.isEmpty())&&this._commands.delete(v)});return this._onDidRegisterCommand.fire(v),h}registerCommandAlias(r,L){return G.registerCommand(r,(v,...m)=>v.get(K).executeCommand(L,...m))}getCommand(r){const L=this._commands.get(r);return!L||L.isEmpty()?void 0:J.a.first(L)}getCommands(){const r=new Map;for(const L of this._commands.keys()){const v=this.getCommand(L);v&&r.set(L,v)}return r}};G.registerCommand("noop",()=>{})},osHv:function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J=ie.Pos;function P(l,o){return l.line-o.line||l.ch-o.ch}var X="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",j=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+j+"]*)","g");function K(l,o,s,a){this.line=o,this.ch=s,this.cm=l,this.text=l.getLine(o),this.min=a?Math.max(a.from,l.firstLine()):l.firstLine(),this.max=a?Math.min(a.to-1,l.lastLine()):l.lastLine()}function G(l,o){var s=l.cm.getTokenTypeAt(J(l.line,o));return s&&/\btag\b/.test(s)}function r(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function L(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function v(l){for(;;){var o=l.text.indexOf(">",l.ch);if(o==-1){if(r(l))continue;return}if(!G(l,o+1)){l.ch=o+1;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function m(l){for(;;){var o=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}U.lastIndex=o,l.ch=o;var s=U.exec(l.text);if(s&&s.index==o)return s}}function p(l){for(;;){U.lastIndex=l.ch;var o=U.exec(l.text);if(!o){if(r(l))continue;return}if(!G(l,o.index+1)){l.ch=o.index+1;continue}return l.ch=o.index+o[0].length,o}}function h(l){for(;;){var o=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function u(l,o){for(var s=[];;){var a=p(l),O,E=l.line,w=l.ch-(a?a[0].length:0);if(!a||!(O=v(l)))return;if(O=="selfClose")continue;if(a[1]){for(var D=s.length-1;D>=0;--D)if(s[D]==a[2]){s.length=D;break}if(D<0&&(!o||o==a[2]))return{tag:a[2],from:J(E,w),to:J(l.line,l.ch)}}else s.push(a[2])}}function f(l,o){for(var s=[];;){var a=h(l);if(!a)return;if(a=="selfClose"){m(l);continue}var O=l.line,E=l.ch,w=m(l);if(!w)return;if(w[1])s.push(w[2]);else{for(var D=s.length-1;D>=0;--D)if(s[D]==w[2]){s.length=D;break}if(D<0&&(!o||o==w[2]))return{tag:w[2],from:J(l.line,l.ch),to:J(O,E)}}}}ie.registerHelper("fold","xml",function(l,o){for(var s=new K(l,o.line,0);;){var a=p(s);if(!a||s.line!=o.line)return;var O=v(s);if(!O)return;if(!a[1]&&O!="selfClose"){var E=J(s.line,s.ch),w=u(s,a[2]);return w&&P(w.from,E)>0?{from:E,to:w.from}:null}}}),ie.findMatchingTag=function(l,o,s){var a=new K(l,o.line,o.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var O=v(a),E=O&&J(a.line,a.ch),w=O&&m(a);if(!O||!w||P(a,o)>0)return;var D={from:J(a.line,a.ch),to:E,tag:w[2]};return O=="selfClose"?{open:D,close:null,at:"open"}:w[1]?{open:f(a,w[2]),close:D,at:"close"}:(a=new K(l,E.line,E.ch,s),{open:D,close:u(a,w[2]),at:"open"})},ie.findEnclosingTag=function(l,o,s,a){for(var O=new K(l,o.line,o.ch,s);;){var E=f(O,a);if(!E)break;var w=new K(l,o.line,o.ch,s),D=u(w,E.tag);if(D)return{open:E,close:D}}},ie.scanForClosingTag=function(l,o,s,a){var O=new K(l,o.line,o.ch,a?{from:0,to:a}:null);return u(O,s)}})},p5ED:function(rt,be,Z){"use strict";var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("5Dmo"),X=Z("3S7+"),j=Z("k1fw"),U=Z("9og8"),K=Z("tJVT"),G=Z("WmNS"),r=Z.n(G),L=Z("q1tI"),v=Z.n(L),m=Z("vHTk"),p=Z.n(m),h=Z("yEEn"),u=Z("ZW9T"),f=Z("1vsH"),l=Z("V0Rq"),o=Z("m3rI");be.a=function(s){var a,O,E,w,D,R,A,C=s.editOffice,T=C===void 0?"view":C,d=s.data,S=s.theme,y=s.type,b=s.filename,B=s.monacoEditor,F=s.className,_=s.style,M=s.close,I=s.onClose,g=s.hasMask,H=s.disabledDownload,$=Object(L.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ne=Object(K.a)($,2),se=ne[0],Oe=ne[1],ge=Object(L.useState)(""),Te=Object(K.a)(ge,2),Re=Te[0],Le=Te[1],ce=Object(L.useState)(),he=Object(K.a)(ce,2),re=he[0],fe=he[1],oe=window.ENV==="build"?"/react/build":"",De=o.a.PROXY_SERVER||location.origin,Fe,Ce=1024*1024,Ne=10*Ce,Be=Object(L.useRef)();(a=d)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(d=o.a.API_SERVER+d),y==="office"&&(Fe=Object(f.T)(d).filesize,Fe>Ne&&(y="other")),b&&B&&(B.filename=b),Object(L.useEffect)(function(){var Ie,We,Ve=(Ie=document.cookie)===null||Ie===void 0||((We=Ie.replace(/\s/g,""))===null||We===void 0)?void 0:We.split(";");Ve==null||Ve.map(function(Qe){var Je=Qe.split("=");Je[0]==="_educoder_session"&&Le(Je[1])})},[]),Object(L.useEffect)(function(){y==="office"&&le()},[y,d]);var le=function(){var Ie=Object(U.a)(r.a.mark(function We(){var Ve,Qe,Je;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return console.log("data:",d),Ve=d,d.startsWith("http")||(Ve=location.origin+Ve),Qe=new URL(Ve).pathname.split("/").pop(),qe.next=6,Object(l.V)({attachment_id:Qe});case 6:Je=qe.sent,fe(Je);case 8:case"end":return qe.stop()}},We)}));return function(){return Ie.apply(this,arguments)}}(),ve=function(){if(d.startsWith("http")||d.startsWith("blob:")){Se();return}Object(f.z)(b||"educoder",d,b)},Se=function(){Object(f.x)(b||"educoder",decodeURIComponent(d))};return v.a.createElement("div",{style:Object(j.a)({},_||{}),className:"".concat(g&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},M&&v.a.createElement("div",{className:p.a.close,ref:Be},!H&&v.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{onClick:Se},v.a.createElement("i",{className:"icon-quxiaozhiding"}))),v.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{className:"",onClick:I},v.a.createElement("i",{className:"icon-guanbi1"})))),v.a.createElement("div",{className:"".concat(p.a[F]," ").concat(F," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&v.a.createElement(u.b,B)),y==="audio"&&v.a.createElement("audio",{src:"".concat(((O=d)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((E=d)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(d),autoPlay:!0}),y==="video"&&v.a.createElement(v.a.Fragment,null,((w=d)===null||w===void 0?void 0:w.indexOf("http"))>-1?v.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):v.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),y==="office"&&re&&v.a.createElement("iframe",{src:"".concat(oe,"/office.html?key=").concat(re.key,"&url=").concat(De+re.url,"&callbackUrl=").concat(De+re.callbackUrl,"&fileType=").concat(re.fileType,"&title=").concat(re.title,"&model=").concat(T,"&officeServer=").concat(o.a.OFFICE_SERVER,"&disabledDownload=").concat(!!H)}),y==="html"&&v.a.createElement("iframe",{src:d+"&disposition=inline"}),y==="pdf"&&v.a.createElement("iframe",{src:"".concat(oe,"/js/pdfview/index.html?url=").concat(d,"&disabledDownload=").concat(!!H)}),y==="image"&&v.a.createElement("img",{src:"".concat(((D=d)===null||D===void 0?void 0:D.indexOf("http://"))>-1||((R=d)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(A=d)!==null&&A!==void 0&&A.startsWith("/api")?"":"data:image/png;base64,").concat(d)}),y==="other"&&v.a.createElement("div",null,v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(rt,be,Z){},pmY6:function(rt,be,Z){"use strict";Z.d(be,"h",function(){return L}),Z.d(be,"g",function(){return m}),Z.d(be,"f",function(){return p}),Z.d(be,"e",function(){return h}),Z.d(be,"i",function(){return u}),Z.d(be,"b",function(){return f}),Z.d(be,"a",function(){return l}),Z.d(be,"d",function(){return o}),Z.d(be,"c",function(){return s});var ie=Z("C/vA"),J=Z("JYp7");const P=!1;let X=null;function j(a){X=a}if(P){const a="__is_disposable_tracked__";j(new class{trackDisposable(O){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{O[a]||console.log(E)},3e3)}setParent(O,E){if(O&&O!==l.None)try{O[a]=!0}catch(w){}}markAsDisposed(O){if(O&&O!==l.None)try{O[a]=!0}catch(E){}}markAsSingleton(O){}})}function U(a){return X==null||X.trackDisposable(a),a}function K(a){X==null||X.markAsDisposed(a)}function G(a,O){X==null||X.setParent(a,O)}function r(a,O){if(!X)return;for(const E of a)X.setParent(E,O)}function L(a){return X==null||X.markAsSingleton(a),a}class v extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if(J.a.is(a)){let O=[];for(const E of a)if(E)try{E.dispose()}catch(w){O.push(w)}if(O.length===1)throw O[0];if(O.length>1)throw new v(O);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function h(...a){const O=u(()=>p(a));return r(a,O),O}function u(a){const O=U({dispose:Object(ie.a)(()=>{K(O),a()})});return O}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;K(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return G(a,this),this._isDisposed?f.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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class l{constructor(){this._store=new f,U(this),G(this._store,this)}dispose(){K(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}l.None=Object.freeze({dispose(){}});class o{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var O;if(this._isDisposed||a===this._value)return;(O=this._value)===null||O===void 0||O.dispose(),a&&G(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,K(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&G(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(rt,be,Z){var ie,J;(function(){var P;(function(){"use strict";var K=[,,function(v){function m(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` + a `).concat($,",").concat($," 0 1 1 ").concat(-Oe,",").concat(ge),Re=Math.PI*2*$,Le={stroke:M,strokeDasharray:"".concat(_/100*(Re-g),"px ").concat(Re,"px"),strokeDashoffset:"-".concat(g/2+F/100*(Re-g),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Te,pathStyle:Le}}var y=function(_){var M=_.prefixCls,I=_.strokeWidth,g=_.trailWidth,H=_.gapDegree,$=_.gapPosition,ne=_.trailColor,se=_.strokeLinecap,Oe=_.style,ge=_.className,Te=_.strokeColor,Re=_.percent,Le=R(_,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),de=Object(ie.useMemo)(function(){return C+=1,C},[]),he=S(0,100,ne,I,H,$),re=he.pathString,fe=he.pathStyle,oe=c(Re),De=c(Te),Fe=De.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),Ce=U(oe),Ne=s(Ce,1),Be=Ne[0],le=function(){var Se=0;return oe.map(function(Ie,We){var Ve=De[We]||De[De.length-1],Qe=Object.prototype.toString.call(Ve)==="[object Object]"?"url(#".concat(M,"-gradient-").concat(de,")"):"",Je=S(Se,Ie,Ve,I,H,$);return Se+=Ie,J.a.createElement("path",{key:We,className:"".concat(M,"-circle-path"),d:Je.pathString,stroke:Qe,strokeLinecap:se,strokeWidth:I,opacity:Ie===0?0:1,fillOpacity:"0",style:Je.pathStyle,ref:Be[We]})})};return J.a.createElement("svg",o({className:X()("".concat(M,"-circle"),ge),viewBox:"0 0 100 100",style:Oe},Le),Fe&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(M,"-gradient-").concat(de),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Fe).sort(function(ve,Se){return T(ve)-T(Se)}).map(function(ve,Se){return J.a.createElement("stop",{key:Se,offset:ve,stopColor:Fe[ve]})}))),J.a.createElement("path",{className:"".concat(M,"-circle-trail"),d:re,stroke:ne,strokeLinecap:se,strokeWidth:g||I,fillOpacity:"0",style:fe}),le().reverse())};y.defaultProps=j;var b=y,B={Line:l,Circle:b}},ic2d:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return X});var ie=Z("FWmy"),J=Z("746U");class P{constructor(){this.data=new Map}add(j,U){ie.a(J.l(j)),ie.a(J.k(U)),ie.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,U)}as(j){return this.data.get(j)||null}}const X=new P},kSUc:function(rt,be,Z){},lZu9:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("1eCo"),Z("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function(J,P){var X=ie.getMode(J,"text/html"),j=X.name=="null";function U(I){if(ie.findModeByName){var g=ie.findModeByName(I);g&&(I=g.mime||g.mimes[0])}var H=ie.getMode(J,I);return H.name=="null"?null:H}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var K={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var G in K)K.hasOwnProperty(G)&&P.tokenTypeOverrides[G]&&(K[G]=P.tokenTypeOverrides[G]);var r=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,m=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function s(I,g,H){return g.f=g.inline=H,H(I,g)}function a(I,g,H){return g.f=g.block=H,H(I,g)}function O(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==D){var g=j;if(!g){var H=ie.innerMode(X,I.htmlState);g=H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText}g&&(I.f=T,I.block=w,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function w(I,g){var H=I.column()===g.indentation,$=O(g.prevLine.stream),ne=g.indentedCode,se=g.prevLine.hr,Oe=g.list!==!1,ge=(g.listStack[g.listStack.length-1]||0)+3;g.indentedCode=!1;var Te=g.indentation;if(g.indentationDiff===null&&(g.indentationDiff=g.indentation,Oe)){for(g.list=null;Te=4&&(ne||g.prevLine.fencedCodeEnd||g.prevLine.header||$))return I.skipToEnd(),g.indentedCode=!0,K.code;if(I.eatSpace())return null;if(H&&g.indentation<=ge&&(de=I.match(m))&&de[1].length<=6)return g.quote=0,g.header=de[1].length,g.thisLine.header=!0,P.highlightFormatting&&(g.formatting="header"),g.f=g.inline,A(g);if(g.indentation<=ge&&I.eat(">"))return g.quote=H?1:g.quote+1,P.highlightFormatting&&(g.formatting="quote"),I.eatSpace(),A(g);if(!Le&&!g.setext&&H&&g.indentation<=ge&&(de=I.match(L))){var he=de[1]?"ol":"ul";return g.indentation=Te+I.current().length,g.list=!0,g.quote=0,g.listStack.push(g.indentation),g.em=!1,g.strong=!1,g.code=!1,g.strikethrough=!1,P.taskLists&&I.match(v,!1)&&(g.taskList=!0),g.f=g.inline,P.highlightFormatting&&(g.formatting=["list","list-"+he]),A(g)}else{if(H&&g.indentation<=ge&&(de=I.match(u,!0)))return g.quote=0,g.fencedEndRE=new RegExp(de[1]+"+ *$"),g.localMode=P.fencedCodeBlockHighlighting&&U(de[2]||P.fencedCodeBlockDefaultMode),g.localMode&&(g.localState=ie.startState(g.localMode)),g.f=g.block=R,P.highlightFormatting&&(g.formatting="code-block"),g.code=-1,A(g);if(g.setext||(!Re||!Oe)&&!g.quote&&g.list===!1&&!g.code&&!Le&&!f.test(I.string)&&(de=I.lookAhead(1))&&(de=de.match(p)))return g.setext?(g.header=g.setext,g.setext=0,I.skipToEnd(),P.highlightFormatting&&(g.formatting="header")):(g.header=de[0].charAt(0)=="="?1:2,g.setext=g.header),g.thisLine.header=!0,g.f=g.inline,A(g);if(Le)return I.skipToEnd(),g.hr=!0,g.thisLine.hr=!0,K.hr;if(I.peek()==="[")return s(I,g,B)}return s(I,g,g.inline)}function D(I,g){var H=X.token(I,g.htmlState);if(!j){var $=ie.innerMode(X,g.htmlState);($.mode.name=="xml"&&$.state.tagStart===null&&!$.state.context&&$.state.tokenize.isInText||g.md_inside&&I.current().indexOf(">")>-1)&&(g.f=T,g.block=w,g.htmlState=null)}return H}function R(I,g){var H=g.listStack[g.listStack.length-1]||0,$=g.indentation=I.quote?g.push(K.formatting+"-"+I.formatting[H]+"-"+I.quote):g.push("error"))}if(I.taskOpen)return g.push("meta"),g.length?g.join(" "):null;if(I.taskClosed)return g.push("property"),g.length?g.join(" "):null;if(I.linkHref?g.push(K.linkHref,"url"):(I.strong&&g.push(K.strong),I.em&&g.push(K.em),I.strikethrough&&g.push(K.strikethrough),I.emoji&&g.push(K.emoji),I.linkText&&g.push(K.linkText),I.code&&g.push(K.code),I.image&&g.push(K.image),I.imageAltText&&g.push(K.imageAltText,"link"),I.imageMarker&&g.push(K.imageMarker)),I.header&&g.push(K.header,K.header+"-"+I.header),I.quote&&(g.push(K.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=I.quote?g.push(K.quote+"-"+I.quote):g.push(K.quote+"-"+P.maxBlockquoteDepth)),I.list!==!1){var $=(I.listStack.length-1)%3;$?$===1?g.push(K.list2):g.push(K.list3):g.push(K.list1)}return I.trailingSpaceNewLine?g.push("trailing-space-new-line"):I.trailingSpace&&g.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),g.length?g.join(" "):null}function C(I,g){return I.match(h,!0)?A(g):void 0}function T(I,g){var H=g.text(I,g);if(typeof H!="undefined")return H;if(g.list)return g.list=null,A(g);if(g.taskList){var $=I.match(v,!0)[1]===" ";return $?g.taskOpen=!0:g.taskClosed=!0,P.highlightFormatting&&(g.formatting="task"),g.taskList=!1,A(g)}if(g.taskOpen=!1,g.taskClosed=!1,g.header&&I.match(/^#+$/,!0))return P.highlightFormatting&&(g.formatting="header"),A(g);var ne=I.next();if(g.linkTitle){g.linkTitle=!1;var se=ne;ne==="("&&(se=")"),se=(se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+se+"\\\\]+|\\\\\\\\|\\\\.)"+se;if(I.match(new RegExp(Oe),!0))return K.linkHref}if(ne==="`"){var ge=g.formatting;P.highlightFormatting&&(g.formatting="code"),I.eatWhile("`");var Te=I.current().length;if(g.code==0&&(!g.quote||Te==1))return g.code=Te,A(g);if(Te==g.code){var Re=A(g);return g.code=0,Re}else return g.formatting=ge,A(g)}else if(g.code)return A(g);if(ne==="\\"&&(I.next(),P.highlightFormatting)){var Le=A(g),de=K.formatting+"-escape";return Le?Le+" "+de:de}if(ne==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return g.imageMarker=!0,g.image=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="["&&g.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return g.imageMarker=!1,g.imageAltText=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="]"&&g.imageAltText){P.highlightFormatting&&(g.formatting="image");var Le=A(g);return g.imageAltText=!1,g.image=!1,g.inline=g.f=S,Le}if(ne==="["&&!g.image)return g.linkText&&I.match(/^.*?\]/)||(g.linkText=!0,P.highlightFormatting&&(g.formatting="link")),A(g);if(ne==="]"&&g.linkText){P.highlightFormatting&&(g.formatting="link");var Le=A(g);return g.linkText=!1,g.inline=g.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?S:T,Le}if(ne==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=c,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkInline}if(ne==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=c,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkEmail}if(P.xml&&ne==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=I.string.indexOf(">",I.pos);if(he!=-1){var re=I.string.substring(I.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(g.md_inside=!0)}return I.backUp(1),g.htmlState=ie.startState(X),a(I,g,D)}if(P.xml&&ne==="<"&&I.match(/^\/\w*?>/))return g.md_inside=!1,"tag";if(ne==="*"||ne==="_"){for(var fe=1,oe=I.pos==1?" ":I.string.charAt(I.pos-2);fe<3&&I.eat(ne);)fe++;var De=I.peek()||" ",Fe=!/\s/.test(De)&&(!l.test(De)||/\s/.test(oe)||l.test(oe)),Ce=!/\s/.test(oe)&&(!l.test(oe)||/\s/.test(De)||l.test(De)),Ne=null,Be=null;if(fe%2&&(!g.em&&Fe&&(ne==="*"||!Ce||l.test(oe))?Ne=!0:g.em==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Ne=!1)),fe>1&&(!g.strong&&Fe&&(ne==="*"||!Ce||l.test(oe))?Be=!0:g.strong==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Be=!1)),Be!=null||Ne!=null){P.highlightFormatting&&(g.formatting=Ne==null?"strong":Be==null?"em":"strong em"),Ne===!0&&(g.em=ne),Be===!0&&(g.strong=ne);var Re=A(g);return Ne===!1&&(g.em=!1),Be===!1&&(g.strong=!1),Re}}else if(ne===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return A(g);I.backUp(1)}if(P.strikethrough){if(ne==="~"&&I.eatWhile(ne)){if(g.strikethrough){P.highlightFormatting&&(g.formatting="strikethrough");var Re=A(g);return g.strikethrough=!1,Re}else if(I.match(/^[^\s]/,!1))return g.strikethrough=!0,P.highlightFormatting&&(g.formatting="strikethrough"),A(g)}else if(ne===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return A(g);I.backUp(2)}}if(P.emoji&&ne===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){g.emoji=!0,P.highlightFormatting&&(g.formatting="emoji");var le=A(g);return g.emoji=!1,le}return ne===" "&&(I.match(/^ +$/,!1)?g.trailingSpace++:g.trailingSpace&&(g.trailingSpaceNewLine=!0)),A(g)}function c(I,g){var H=I.next();if(H===">"){g.f=g.inline=T,P.highlightFormatting&&(g.formatting="link");var $=A(g);return $?$+=" ":$="",$+K.linkInline}return I.match(/^[^>]+/,!0),K.linkInline}function S(I,g){if(I.eatSpace())return null;var H=I.next();return H==="("||H==="["?(g.f=g.inline=b(H==="("?")":"]"),P.highlightFormatting&&(g.formatting="link-string"),g.linkHref=!0,A(g)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function b(I){return function(g,H){var $=g.next();if($===I){H.f=H.inline=T,P.highlightFormatting&&(H.formatting="link-string");var ne=A(H);return H.linkHref=!1,ne}return g.match(y[I]),H.linkHref=!0,A(H)}}function B(I,g){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(g.f=F,I.next(),P.highlightFormatting&&(g.formatting="link"),g.linkText=!0,A(g)):s(I,g,T)}function F(I,g){if(I.match(/^\]:/,!0)){g.f=g.inline=_,P.highlightFormatting&&(g.formatting="link");var H=A(g);return g.linkText=!1,H}return I.match(/^([^\]\\]|\\.)+/,!0),K.linkText}function _(I,g){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?g.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),g.f=g.inline=T,K.linkHref+" url")}var M={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:T,text:C,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(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ie.copyState(X,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ie.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,g){if(g.formatting=!1,I!=g.thisLine.stream){if(g.header=0,g.hr=!1,I.match(/^\s*$/,!0))return E(g),null;if(g.prevLine=g.thisLine,g.thisLine={stream:I},g.taskList=!1,g.trailingSpace=0,g.trailingSpaceNewLine=!1,!g.localState&&(g.f=g.block,g.f!=D)){var H=I.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(g.indentation=H,g.indentationDiff=null,H>0)return null}}return g.f(I,g)},innerMode:function(I){return I.block==D?{state:I.htmlState,mode:X}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:M}},indent:function(I,g,H){return I.block==D&&X.indent?X.indent(I.htmlState,g,H):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,g,H):ie.Pass},blankLine:E,getType:A,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});var ie;(function(J){J.DARK="dark",J.LIGHT="light",J.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return K}),Z.d(be,"a",function(){return G});var ie=Z("MI8n"),J=Z("JYp7"),P=Z("pmY6"),X=Z("24hK"),j=Z("746U"),U=Z("Cg/j");const K=Object(U.c)("commandService"),G=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(r,L){if(!r)throw new Error("invalid command");if(typeof r=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:r,handler:L})}if(r.description){const u=[];for(let l of r.description.args)u.push(l.constraint);const f=r.handler;r.handler=function(l,...o){return Object(j.o)(o,u),f(l,...o)}}const{id:v}=r;let m=this._commands.get(v);m||(m=new X.a,this._commands.set(v,m));let p=m.unshift(r),h=Object(P.i)(()=>{p();const u=this._commands.get(v);(u==null?void 0:u.isEmpty())&&this._commands.delete(v)});return this._onDidRegisterCommand.fire(v),h}registerCommandAlias(r,L){return G.registerCommand(r,(v,...m)=>v.get(K).executeCommand(L,...m))}getCommand(r){const L=this._commands.get(r);return!L||L.isEmpty()?void 0:J.a.first(L)}getCommands(){const r=new Map;for(const L of this._commands.keys()){const v=this.getCommand(L);v&&r.set(L,v)}return r}};G.registerCommand("noop",()=>{})},osHv:function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J=ie.Pos;function P(l,o){return l.line-o.line||l.ch-o.ch}var X="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",j=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+j+"]*)","g");function K(l,o,s,a){this.line=o,this.ch=s,this.cm=l,this.text=l.getLine(o),this.min=a?Math.max(a.from,l.firstLine()):l.firstLine(),this.max=a?Math.min(a.to-1,l.lastLine()):l.lastLine()}function G(l,o){var s=l.cm.getTokenTypeAt(J(l.line,o));return s&&/\btag\b/.test(s)}function r(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function L(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function v(l){for(;;){var o=l.text.indexOf(">",l.ch);if(o==-1){if(r(l))continue;return}if(!G(l,o+1)){l.ch=o+1;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function m(l){for(;;){var o=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}U.lastIndex=o,l.ch=o;var s=U.exec(l.text);if(s&&s.index==o)return s}}function p(l){for(;;){U.lastIndex=l.ch;var o=U.exec(l.text);if(!o){if(r(l))continue;return}if(!G(l,o.index+1)){l.ch=o.index+1;continue}return l.ch=o.index+o[0].length,o}}function h(l){for(;;){var o=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function u(l,o){for(var s=[];;){var a=p(l),O,E=l.line,w=l.ch-(a?a[0].length:0);if(!a||!(O=v(l)))return;if(O=="selfClose")continue;if(a[1]){for(var D=s.length-1;D>=0;--D)if(s[D]==a[2]){s.length=D;break}if(D<0&&(!o||o==a[2]))return{tag:a[2],from:J(E,w),to:J(l.line,l.ch)}}else s.push(a[2])}}function f(l,o){for(var s=[];;){var a=h(l);if(!a)return;if(a=="selfClose"){m(l);continue}var O=l.line,E=l.ch,w=m(l);if(!w)return;if(w[1])s.push(w[2]);else{for(var D=s.length-1;D>=0;--D)if(s[D]==w[2]){s.length=D;break}if(D<0&&(!o||o==w[2]))return{tag:w[2],from:J(l.line,l.ch),to:J(O,E)}}}}ie.registerHelper("fold","xml",function(l,o){for(var s=new K(l,o.line,0);;){var a=p(s);if(!a||s.line!=o.line)return;var O=v(s);if(!O)return;if(!a[1]&&O!="selfClose"){var E=J(s.line,s.ch),w=u(s,a[2]);return w&&P(w.from,E)>0?{from:E,to:w.from}:null}}}),ie.findMatchingTag=function(l,o,s){var a=new K(l,o.line,o.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var O=v(a),E=O&&J(a.line,a.ch),w=O&&m(a);if(!O||!w||P(a,o)>0)return;var D={from:J(a.line,a.ch),to:E,tag:w[2]};return O=="selfClose"?{open:D,close:null,at:"open"}:w[1]?{open:f(a,w[2]),close:D,at:"close"}:(a=new K(l,E.line,E.ch,s),{open:D,close:u(a,w[2]),at:"open"})},ie.findEnclosingTag=function(l,o,s,a){for(var O=new K(l,o.line,o.ch,s);;){var E=f(O,a);if(!E)break;var w=new K(l,o.line,o.ch,s),D=u(w,E.tag);if(D)return{open:E,close:D}}},ie.scanForClosingTag=function(l,o,s,a){var O=new K(l,o.line,o.ch,a?{from:0,to:a}:null);return u(O,s)}})},p5ED:function(rt,be,Z){"use strict";var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("5Dmo"),X=Z("3S7+"),j=Z("k1fw"),U=Z("9og8"),K=Z("tJVT"),G=Z("WmNS"),r=Z.n(G),L=Z("q1tI"),v=Z.n(L),m=Z("vHTk"),p=Z.n(m),h=Z("yEEn"),u=Z("ZW9T"),f=Z("1vsH"),l=Z("V0Rq"),o=Z("m3rI");be.a=function(s){var a,O,E,w,D,R,A,C=s.editOffice,T=C===void 0?"view":C,c=s.data,S=s.theme,y=s.type,b=s.filename,B=s.monacoEditor,F=s.className,_=s.style,M=s.close,I=s.onClose,g=s.hasMask,H=s.disabledDownload,$=Object(L.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ne=Object(K.a)($,2),se=ne[0],Oe=ne[1],ge=Object(L.useState)(""),Te=Object(K.a)(ge,2),Re=Te[0],Le=Te[1],de=Object(L.useState)(),he=Object(K.a)(de,2),re=he[0],fe=he[1],oe=window.ENV==="build"?"/react/build":"",De=o.a.PROXY_SERVER||location.origin,Fe,Ce=1024*1024,Ne=10*Ce,Be=Object(L.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=o.a.API_SERVER+c),y==="office"&&(Fe=Object(f.T)(c).filesize,Fe>Ne&&(y="other")),b&&B&&(B.filename=b),Object(L.useEffect)(function(){var Ie,We,Ve=(Ie=document.cookie)===null||Ie===void 0||((We=Ie.replace(/\s/g,""))===null||We===void 0)?void 0:We.split(";");Ve==null||Ve.map(function(Qe){var Je=Qe.split("=");Je[0]==="_educoder_session"&&Le(Je[1])})},[]),Object(L.useEffect)(function(){y==="office"&&le()},[y,c]);var le=function(){var Ie=Object(U.a)(r.a.mark(function We(){var Ve,Qe,Je;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Qe=new URL(Ve).pathname.split("/").pop(),qe.next=6,Object(l.V)({attachment_id:Qe});case 6:Je=qe.sent,fe(Je);case 8:case"end":return qe.stop()}},We)}));return function(){return Ie.apply(this,arguments)}}(),ve=function(){if(c.startsWith("http")||c.startsWith("blob:")){Se();return}Object(f.z)(b||"educoder",c,b)},Se=function(){Object(f.x)(b||"educoder",decodeURIComponent(c))};return v.a.createElement("div",{style:Object(j.a)({},_||{}),className:"".concat(g&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},M&&v.a.createElement("div",{className:p.a.close,ref:Be},!H&&v.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{onClick:Se},v.a.createElement("i",{className:"icon-quxiaozhiding"}))),v.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{className:"",onClick:I},v.a.createElement("i",{className:"icon-guanbi1"})))),v.a.createElement("div",{className:"".concat(p.a[F]," ").concat(F," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&v.a.createElement(u.b,B)),y==="audio"&&v.a.createElement("audio",{src:"".concat(((O=c)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((E=c)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&v.a.createElement(v.a.Fragment,null,((w=c)===null||w===void 0?void 0:w.indexOf("http"))>-1?v.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):v.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&re&&v.a.createElement("iframe",{src:"".concat(oe,"/office.html?key=").concat(re.key,"&url=").concat(De+re.url,"&callbackUrl=").concat(De+re.callbackUrl,"&fileType=").concat(re.fileType,"&title=").concat(re.title,"&model=").concat(T,"&officeServer=").concat(o.a.OFFICE_SERVER,"&disabledDownload=").concat(!!H)}),y==="html"&&v.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&v.a.createElement("iframe",{src:"".concat(oe,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!H)}),y==="image"&&v.a.createElement("img",{src:"".concat(((D=c)===null||D===void 0?void 0:D.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(A=c)!==null&&A!==void 0&&A.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&v.a.createElement("div",null,v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(rt,be,Z){},pmY6:function(rt,be,Z){"use strict";Z.d(be,"h",function(){return L}),Z.d(be,"g",function(){return m}),Z.d(be,"f",function(){return p}),Z.d(be,"e",function(){return h}),Z.d(be,"i",function(){return u}),Z.d(be,"b",function(){return f}),Z.d(be,"a",function(){return l}),Z.d(be,"d",function(){return o}),Z.d(be,"c",function(){return s});var ie=Z("C/vA"),J=Z("JYp7");const P=!1;let X=null;function j(a){X=a}if(P){const a="__is_disposable_tracked__";j(new class{trackDisposable(O){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{O[a]||console.log(E)},3e3)}setParent(O,E){if(O&&O!==l.None)try{O[a]=!0}catch(w){}}markAsDisposed(O){if(O&&O!==l.None)try{O[a]=!0}catch(E){}}markAsSingleton(O){}})}function U(a){return X==null||X.trackDisposable(a),a}function K(a){X==null||X.markAsDisposed(a)}function G(a,O){X==null||X.setParent(a,O)}function r(a,O){if(!X)return;for(const E of a)X.setParent(E,O)}function L(a){return X==null||X.markAsSingleton(a),a}class v extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if(J.a.is(a)){let O=[];for(const E of a)if(E)try{E.dispose()}catch(w){O.push(w)}if(O.length===1)throw O[0];if(O.length>1)throw new v(O);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function h(...a){const O=u(()=>p(a));return r(a,O),O}function u(a){const O=U({dispose:Object(ie.a)(()=>{K(O),a()})});return O}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;K(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return G(a,this),this._isDisposed?f.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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class l{constructor(){this._store=new f,U(this),G(this._store,this)}dispose(){K(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}l.None=Object.freeze({dispose(){}});class o{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var O;if(this._isDisposed||a===this._value)return;(O=this._value)===null||O===void 0||O.dispose(),a&&G(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,K(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&G(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(rt,be,Z){var ie,J;(function(){var P;(function(){"use strict";var K=[,,function(v){function m(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` `);f!==-1?this.__character_count=u.length-f:this.__character_count+=u.length},m.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function p(u,f){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),f=f||"",u.indent_level>0&&(f=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=f,this.__base_string_length=f.length}p.prototype.get_indent_size=function(u,f){var l=this.__base_string_length;return f=f||0,u<0&&(l=0),l+=u*this.__indent_size,l+=f,l},p.prototype.get_indent_string=function(u,f){var l=this.__base_string;return f=f||0,u<0&&(u=0,l=""),f+=u*this.__indent_size,this.__ensure_cache(f),l+=this.__cache[f],l},p.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var u=this.__cache.length,f=0,l="";this.__indent_size&&u>=this.__indent_size&&(f=Math.floor(u/this.__indent_size),u-=f*this.__indent_size,l=new Array(f+1).join(this.__indent_string)),u&&(l+=new Array(u+1).join(" ")),this.__cache.push(l)};function h(u,f){this.__indent_cache=new p(u,f),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(u,f){return this.__indent_cache.get_indent_string(u,f)},h.prototype.get_indent_size=function(u,f){return this.__indent_cache.get_indent_size(u,f)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(u){this.trim(!0);var f=this.current_line.pop();f&&(f[f.length-1]===` `&&(f=f.replace(/\n+$/g,"")),this.current_line.push(f)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(` `);return u!==` @@ -418,21 +418,21 @@ You passed in: '`+this.raw_options[u]+"'");return o},m.prototype._is_valid_selec `)),F=H+F.replace(/\n/g,` `+H)}I&&(F?F=I+F+` `+g:F=I+g),S.print_newline(!1),F&&(y.text=F,y.whitespace_before="",y.newlines=0,S.add_raw_token(y),S.print_newline(!0))}},A.prototype._handle_tag_open=function(S,y,b,B){var F=this._get_tag_open_token(y);return(b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===l.TAG_OPEN&&y.text.indexOf("]*)/),this.tag_check=b?b[1]:""):(b=y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(y.text.startsWith("{{#>")||y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&y.next!==null?this.tag_check=y.next.text.split(" ")[0]:this.tag_check=y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),y.type===l.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||y.closed&&y.closed.text==="/>";var B=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(B=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(B)))}};A.prototype._get_tag_open_token=function(S){var y=new C(this._tag_stack.get_parser_token(),S);return y.alignment_size=this._options.wrap_attributes_indent_size,y.is_end_tag=y.is_end_tag||w(y.tag_check,this._options.void_elements),y.is_empty_element=y.tag_complete||y.is_start_tag&&y.is_end_tag,y.is_unformatted=!y.tag_complete&&w(y.tag_check,this._options.unformatted),y.is_content_unformatted=!y.is_empty_element&&w(y.tag_check,this._options.content_unformatted),y.is_inline_element=w(y.tag_name,this._options.inline)||y.tag_name.includes("-")||y.tag_start_char==="{",y},A.prototype._set_tag_position=function(S,y,b,B,F){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||S.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=E(b.tag_check,y)))),w(b.tag_check,this._options.extra_liners)&&(S.print_newline(!1),S._output.just_added_blankline()||S.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var _=S.current_line_has_match(/{{#if/);_||S.print_newline(!1)}b.tag_name==="!--"&&F.type===l.TAG_CLOSE&&B.is_end_tag&&b.text.indexOf(` -`)===-1||(b.is_inline_element||b.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,b))}else if(b.is_end_tag){var M=!1;M=b.start_tag_token&&b.start_tag_token.multiline_content,M=M||!b.is_inline_element&&!(B.is_inline_element||B.is_unformatted)&&!(F.type===l.TAG_CLOSE&&b.start_tag_token===B)&&F.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(M=!1),M&&S.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(F.type!=="TK_CONTENT"||b.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,b)},A.prototype._calcluate_parent_multiline=function(S,y){y.parent&&S._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var T=["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"],d=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(S){var y=null;if(S.is_empty_element||!S.is_start_tag||!S.parent)return;if(S.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(S.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul"]);else if(S.tag_name==="dd"||S.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&T.indexOf(S.tag_name)!==-1){var b=S.parent.parent;(!b||d.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),y},v.exports.Beautifier=A},function(v,m,p){var h=p(6).Options;function u(f){h.call(this,f,"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"])}u.prototype=new h,v.exports.Options=u},function(v,m,p){var h=p(9).Tokenizer,u=p(9).TOKEN,f=p(13).Directives,l=p(14).TemplatablePattern,o=p(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:u.START,RAW:u.RAW,EOF:u.EOF},a=new f(/<\!--/,/-->/),O=function(E,w){h.call(this,E,w),this._current_tag_name="";var D=new l(this._input).read_options(this._options),R=new o(this._input);if(this.__patterns={word:D.until(/[\n\r\t <]/),single_quote:D.until_after(/'/),double_quote:D.until_after(/"/),attribute:D.until(/[\n\r\t =>]|\/>/),element_name:D.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(//),cdata:R.starting_with(//),conditional_comment:R.starting_with(//),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 A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(A).until_after(A)}};O.prototype=new h,O.prototype._is_comment=function(E){return!1},O.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},O.prototype._is_closing=function(E,w){return E.type===s.TAG_CLOSE&&w&&((E.text===">"||E.text==="/>")&&w.text[0]==="<"||E.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(E,w){var D=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(D=D||this._read_open_handlebars(R,w),D=D||this._read_attribute(R,E,w),D=D||this._read_close(R,w),D=D||this._read_raw_content(R,E,w),D=D||this._read_content_word(R),D=D||this._read_comment_or_cdata(R),D=D||this._read_processing(R),D=D||this._read_open(R,w),D=D||this._create_token(s.UNKNOWN,this._input.next()),D)},O.prototype._read_comment_or_cdata=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);A==="!"&&(D=this.__patterns.comment.read(),D?(R=a.get_directives(D),R&&R.ignore==="start"&&(D+=a.readIgnored(this._input))):D=this.__patterns.cdata.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_processing=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(D=this.__patterns.conditional_comment.read(),D=D||this.__patterns.processing.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_open=function(E,w){var D=null,R=null;return w||E==="<"&&(D=this._input.next(),this._input.peek()==="/"&&(D+=this._input.next()),D+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,D)),R},O.prototype._read_open_handlebars=function(E,w){var D=null,R=null;return w||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(D=this.__patterns.handlebars_comment.read(),D=D||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,D)):(D=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,D))),R},O.prototype._read_close=function(E,w){var D=null,R=null;return w&&(w.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(D=this._input.next(),E==="/"&&(D+=this._input.next()),R=this._create_token(s.TAG_CLOSE,D)):w.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},O.prototype._read_attribute=function(E,w,D){var R=null,A="";if(D&&D.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var C=this._input.next();E==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,C)}else A=this.__patterns.attribute.read(),A&&(w.type===s.EQUALS?R=this._create_token(s.VALUE,A):R=this._create_token(s.ATTRIBUTE,A));return R},O.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)},O.prototype._read_raw_content=function(E,w,D){var R="";if(D&&D.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(w.type===s.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var A=w.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var C=this._read_comment_or_cdata(E);if(C)return C.type=s.TEXT,C;R=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(A)&&(R=this._input.readUntil(new RegExp("","ig")))}return R?this._create_token(s.TEXT,R):null},O.prototype._read_content_word=function(E){var w="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(s.TEXT,w)},v.exports.Tokenizer=O,v.exports.TOKEN=s}],G={};function r(v){var m=G[v];if(m!==void 0)return m.exports;var p=G[v]={exports:{}};return K[v](p,p.exports,r),p.exports}var L=r(18);P=L})();var X=P;if(!0)!(ie=[Z,Z("6UM0"),Z("TXwP")],J=function(K){var G=Z("6UM0"),r=Z("TXwP");return{html_beautify:function(L,v){return X(L,v,G.js_beautify,r.css_beautify)}}}.apply(be,ie),J!==void 0&&(rt.exports=J));else var j,U})()},qduV:function(rt,be,Z){"use strict";Z.r(be);var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("sPJy"),X=Z("bE4q"),j=Z("miYZ"),U=Z("tsqr"),K=Z("2qtc"),G=Z("kLXV"),r=Z("oBTY"),L=Z("9og8"),v=Z("k1fw"),m=Z("y8nQ"),p=Z("Vl3Y"),h=Z("tJVT"),u=Z("WmNS"),f=Z.n(u),l=Z("q1tI"),o=Z.n(l),s=Z("Ty5D"),a=Z("9kvl"),O=Z("55Ip"),E=Z("Ot1p"),w=Z("XYT7"),D=Z("zgC5"),R=Z.n(D),A=Z("500L"),C=Z("HBuW"),T=function(S){var y,b,B,F,_,M=S.shixunHomeworks,I=S.newCourse,g=S.globalSetting,H=S.loading,$=S.dispatch,ne=S.match,se=Object(s.i)(),Oe=p.a.useForm(),ge=Object(h.a)(Oe,1),Te=ge[0],Re=Object(l.useState)({}),Le=Object(h.a)(Re,2),ce=Le[0],he=Le[1],re=Object(l.useState)(!0),fe=Object(h.a)(re,2),oe=fe[0],De=fe[1],Fe=Object(l.useState)(!1),Ce=Object(h.a)(Fe,2),Ne=Ce[0],Be=Ce[1],le=Object(l.useState)(),ve=Object(h.a)(le,2),Se=ve[0],Ie=ve[1],We=Object(l.useRef)(),Ve=M.studentWorkAddDefaultData,Qe=Object(l.useState)([]),Je=Object(h.a)(Qe,2),st=Je[0],qe=Je[1],at=M.replyList,Ue=M.workDetail,dt=Object(l.useRef)(null),lt=Object(l.useState)({page:1,limit:20,search:""}),je=Object(h.a)(lt,2),Ge=je[0],Ae=je[1];Object(l.useEffect)(function(){se.commonHomeworkId!==""&&(se.categoryId=se.commonHomeworkId,$({type:"shixunHomeworks/getWorkDetail",payload:Object(v.a)({},se)}))},[se.commonHomeworkId]);var _e=function(){var xe=Object(L.a)(f.a.mark(function Pe(){var He,ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Be(!0),ot.next=3,$({type:"shixunHomeworks/getSearchMemberList",payload:Object(v.a)(Object(v.a)({},ne.params),Ge)});case 3:ze=ot.sent,Be(!1),ze.members&&qe([].concat(Object(r.a)(st),Object(r.a)(ze.members))),((He=ze.members)===null||He===void 0?void 0:He.length)<20&&De(!1);case 7:case"end":return ot.stop()}},Pe)}));return function(){return xe.apply(this,arguments)}}(),we=function(Pe){G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ae=function xe(Pe){var He;Pe=(He=Pe)!==null&&He!==void 0&&He.includes(".json")?Pe:"".concat(Pe,".json"),G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ze=Object(L.a)(f.a.mark(function ot(){var yt,ct;return f.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(C.Bb)({url:Pe});case 2:if(yt=Ot.sent,yt){Ot.next=5;break}return Ot.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ot.next=8,Object(C.E)({id:yt.shixun_identifier});case 8:if(ct=Ot.sent,!(ct!=null&&ct.game_identifier)){Ot.next=12;break}return a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ct.game_identifier)),Ot.abrupt("return");case 12:(ct==null?void 0:ct.status)===2?xe(ct==null?void 0:ct.message):(ct==null?void 0:ct.status)===3&&we(ct==null?void 0:ct.message);case 13:case"end":return Ot.stop()}},ot)}));function ht(){return ze.apply(this,arguments)}return ht}()})},ue=function(){var Pe,He;if(Ue!=null&&(Pe=Ue.shixun_info)!==null&&Pe!==void 0&&Pe.is_jupyter||Ue!=null&&(He=Ue.shixun_info)!==null&&He!==void 0&&He.is_jupyter_lab){$({type:"shixunsDetail/execJupyter",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){ze!=null&&ze.identifier&&(a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.identifier,"/jupyter")))});return}$({type:"shixunsDetail/execShixun",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){if(ze!=null&&ze.game_identifier){a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.game_identifier));return}(ze==null?void 0:ze.status)===2?ae(ze==null?void 0:ze.message):(ze==null?void 0:ze.status)===3&&we(ze==null?void 0:ze.message)})};Object(l.useEffect)(function(){new Promise(Object(L.a)(f.a.mark(function xe(){var Pe;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,$({type:"shixunHomeworks/addStudentWorkDefaultData",payload:Object(v.a)(Object(v.a)({},ne.params),{},{type:3})});case 2:Pe=ze.sent;case 3:case"end":return ze.stop()}},xe)}))),_e()},[]);var de=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object(w.c)(Object(v.a)(Object(v.a)(Object(v.a)({},ne.params),He),{},{type:3}));case 2:ze=ot.sent,ze.status===0&&a.d.push("/classrooms/".concat(se.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/review/").concat(ze.work_id));case 4:case"end":return ot.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}(),me=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze,ht;return f.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:ze=Object(v.a)({},ce),ze.attachment_ids&&(ze.attachment_ids=ze==null||((ht=ze.attachment_ids)===null||ht===void 0)?void 0:ht.map(function(ct){return ct.response.id})),!ze.attachment_ids||ze.attachment_ids==""?G.a.confirm({title:o.a.createElement("div",null,"\u8FD8\u672A\u4E0A\u4F20\u9644\u4EF6",o.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\u4F5C\u54C1\uFF1F"),onOk:function(){de(ze)}}):de(ze);case 3:case"end":return yt.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}();return o.a.createElement("section",{className:R.a.bg},o.a.createElement("div",{ref:dt},Ve.course_name&&o.a.createElement("section",{className:"animated fadeIn"},o.a.createElement("aside",null,Ve.category&&o.a.createElement(X.a,{separator:">"},o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.course_name)),o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.category.category_name)),o.a.createElement(X.a.Item,null,Ve==null?void 0:Ve.user_name," \u63D0\u4EA4\u4F5C\u54C1")))),o.a.createElement(p.a,{form:Te,className:R.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){he(Object(v.a)({},Te.getFieldsValue())),console.log("formValue:",ce)},initialValues:[{base_on_project:1}],onFinish:me},o.a.createElement("div",{className:R.a.mdWrap},o.a.createElement("div",{className:R.a.titleWrapper},o.a.createElement("div",{className:"zuoyeTitle"},M==null||((y=M.studentWorkAddDefaultData)===null||y===void 0)?void 0:y.homework_name),o.a.createElement("div",null,o.a.createElement("div",{className:"zuoyemiaosu"},o.a.createElement("span",{className:"icon"}),o.a.createElement("h4",{className:"direction"},"\u4F5C\u4E1A\u63CF\u8FF0")),o.a.createElement("div",{dangerouslySetInnerHTML:{__html:M==null||((b=M.studentWorkAddDefaultData)===null||b===void 0)?void 0:b.homework_description}}),(Ue==null||((B=Ue.shixun_info)===null||B===void 0)?void 0:B.shixun_status)!=-1&&(Ue==null?void 0:Ue.is_shixun)&&o.a.createElement(J.a,{onClick:function(){ue()},style:{position:"absolute",bottom:"30px",left:"30px"},className:"btnWrapper",type:"primary"},o.a.createElement("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),Ue==null||((F=Ue.shixun_info)===null||F===void 0||((_=F.task_operation)===null||_===void 0))?void 0:_[0]))),o.a.createElement("div",{style:{background:"#fff",width:"954px",paddingTop:"30px",paddingLeft:"37px",paddingRight:"26px",position:"relative"}},o.a.createElement(p.a.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:65535,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u523665535\u4E2A\u5B57\u7B26"}]},o.a.createElement(E.a,{height:665,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u4F5C\u4E1A\u5185\u5BB9\u6216\u4F5C\u4E1A\u9644\u4EF6\u7684\u7B80\u8981\u63CF\u8FF0\uFF0C\u6700\u5927\u9650\u5236\u4E3A65535\u4E2A\u5B57\u7B26",watch:!0,defaultValue:ce.intro})),o.a.createElement("div",null,o.a.createElement(p.a.Item,{name:"attachment_ids"},o.a.createElement(A.b,null))))))),o.a.createElement("div",{className:R.a.backgroundFa},o.a.createElement("div",{style:{width:1378,display:"flex",justifyContent:"end"}},o.a.createElement(p.a.Item,null,o.a.createElement(J.a,{size:"large",type:"primary",ghost:!0,className:R.a.button,style:{width:"60px",height:"32px",background:"#F8F9FC",borderRadius:"2px",border:"1px solid #C3CFE0",marginRight:"20px"},onClick:function(){return a.d.push("/classrooms/".concat(ne.params.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/detail"))}},"\u53D6\u6D88"),o.a.createElement(J.a,{size:"large",type:"primary",className:"".concat(R.a.button),htmlType:"submit",style:{height:"32px"},loading:H["newCourse/editCourse"]||H["newCourse/submitCourse"],onClick:function(){Te.submit()}},"\u63D0\u4EA4")))))};be.default=Object(a.a)(function(d){var S=d.shixunHomeworks,y=d.newCourse,b=d.loading,B=d.globalSetting;return{shixunHomeworks:S,newCourse:y,globalSetting:B,loading:b.effects}})(T)},"rAM+":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("Qw5x");function J(P,X){var j;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(j=Object(ie.a)(P))||X&&P&&typeof P.length=="number"){j&&(P=j);var U=0,K=function(){};return{s:K,n:function(){return U>=P.length?{done:!0}:{done:!1,value:P[U++]}},e:function(m){throw m},f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=!0,r=!1,L;return{s:function(){j=P[Symbol.iterator]()},n:function(){var m=j.next();return G=m.done,m},e:function(m){r=!0,L=m},f:function(){try{!G&&j.return!=null&&j.return()}finally{if(r)throw L}}}}},rUJ1:function(rt,be){const Z=/[&<>"']/,ie=/[&<>"']/g,J=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},j=R=>X[R];function U(R,A){if(A){if(Z.test(R))return R.replace(ie,j)}else if(J.test(R))return R.replace(P,j);return R}const K=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function G(R){return R.replace(K,(A,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const r=/(^|[^\[])\^/g;function L(R,A){R=R.source||R,A=A||"";const C={replace:(T,d)=>(d=d.source||d,d=d.replace(r,"$1"),R=R.replace(T,d),C),getRegex:()=>new RegExp(R,A)};return C}const v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(R,A,C){if(R){let T;try{T=decodeURIComponent(G(C)).replace(v,"").toLowerCase()}catch(d){return null}if(T.indexOf("javascript:")===0||T.indexOf("vbscript:")===0||T.indexOf("data:")===0)return null}A&&!m.test(C)&&(C=o(A,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(T){return null}return C}const h={},u=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(R,A){h[" "+R]||(u.test(R)?h[" "+R]=R+"/":h[" "+R]=E(R,"/",!0)),R=h[" "+R];const C=R.indexOf(":")===-1;return A.substring(0,2)==="//"?C?A:R.replace(f,"$1")+A:A.charAt(0)==="/"?C?A:R.replace(l,"$1")+A:R+A}const s={exec:function(){}};function a(R){let A=1,C,T;for(;A{let B=!1,F=y;for(;--F>=0&&b[F]==="\\";)B=!B;return B?"|":" |"}),T=C.split(/ \|/);let d=0;if(T.length>A)T.splice(A);else for(;T.length{const o=this.themingParticipants.indexOf(l);this.themingParticipants.splice(o,1)})}getThemingParticipants(){return this.themingParticipants}}let h=new p;j.a.add(m.ThemingContribution,h);function u(l){return h.onColorThemeChange(l)}class f extends P.a{constructor(l){super();this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(o=>this.onThemeChange(o)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},ulZh:function(rt,be,Z){typeof window!="undefined"&&function(J,P){rt.exports=P()}(this,function(){return function(ie){var J={};function P(X){if(J[X])return J[X].exports;var j=J[X]={i:X,l:!1,exports:{}};return ie[X].call(j.exports,j,j.exports,P),j.l=!0,j.exports}return P.m=ie,P.c=J,P.d=function(X,j,U){P.o(X,j)||Object.defineProperty(X,j,{enumerable:!0,get:U})},P.r=function(X){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},P.t=function(X,j){if(j&1&&(X=P(X)),j&8)return X;if(j&4&&typeof X=="object"&&X&&X.__esModule)return X;var U=Object.create(null);if(P.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:X}),j&2&&typeof X!="string")for(var K in X)P.d(U,K,function(G){return X[G]}.bind(null,K));return U},P.n=function(X){var j=X&&X.__esModule?function(){return X.default}:function(){return X};return P.d(j,"a",j),j},P.o=function(X,j){return Object.prototype.hasOwnProperty.call(X,j)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ie,J,P){"use strict";var X=Object.prototype.hasOwnProperty,j="~";function U(){}Object.create&&(U.prototype=Object.create(null),new U().__proto__||(j=!1));function K(v,m,p){this.fn=v,this.context=m,this.once=p||!1}function G(v,m,p,h,u){if(typeof p!="function")throw new TypeError("The listener must be a function");var f=new K(p,h||v,u),l=j?j+m:m;return v._events[l]?v._events[l].fn?v._events[l]=[v._events[l],f]:v._events[l].push(f):(v._events[l]=f,v._eventsCount++),v}function r(v,m){--v._eventsCount===0?v._events=new U:delete v._events[m]}function L(){this._events=new U,this._eventsCount=0}L.prototype.eventNames=function(){var m=[],p,h;if(this._eventsCount===0)return m;for(h in p=this._events)X.call(p,h)&&m.push(j?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(p)):m},L.prototype.listeners=function(m){var p=j?j+m:m,h=this._events[p];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,f=h.length,l=new Array(f);u0},!1)}function v(m,p){for(var h={main:[p]},u={main:[]},f={main:{}};L(h);)for(var l=Object.keys(h),o=0;o=2*D/A||b<=F)return;var _=Number.POSITIVE_INFINITY,M;for(M=l.level-1;M>T;M--){var I=C[M].maxBitrate;if(_=D*I/(8*.8*y),_=b)return;var g=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+l.sn+(o?" part "+o.index:"")+" of level "+l.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+M+` +`)===-1||(b.is_inline_element||b.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,b))}else if(b.is_end_tag){var M=!1;M=b.start_tag_token&&b.start_tag_token.multiline_content,M=M||!b.is_inline_element&&!(B.is_inline_element||B.is_unformatted)&&!(F.type===l.TAG_CLOSE&&b.start_tag_token===B)&&F.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(M=!1),M&&S.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(F.type!=="TK_CONTENT"||b.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,b)},A.prototype._calcluate_parent_multiline=function(S,y){y.parent&&S._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var T=["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"],c=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(S){var y=null;if(S.is_empty_element||!S.is_start_tag||!S.parent)return;if(S.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(S.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul"]);else if(S.tag_name==="dd"||S.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&T.indexOf(S.tag_name)!==-1){var b=S.parent.parent;(!b||c.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),y},v.exports.Beautifier=A},function(v,m,p){var h=p(6).Options;function u(f){h.call(this,f,"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"])}u.prototype=new h,v.exports.Options=u},function(v,m,p){var h=p(9).Tokenizer,u=p(9).TOKEN,f=p(13).Directives,l=p(14).TemplatablePattern,o=p(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:u.START,RAW:u.RAW,EOF:u.EOF},a=new f(/<\!--/,/-->/),O=function(E,w){h.call(this,E,w),this._current_tag_name="";var D=new l(this._input).read_options(this._options),R=new o(this._input);if(this.__patterns={word:D.until(/[\n\r\t <]/),single_quote:D.until_after(/'/),double_quote:D.until_after(/"/),attribute:D.until(/[\n\r\t =>]|\/>/),element_name:D.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(//),cdata:R.starting_with(//),conditional_comment:R.starting_with(//),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 A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(A).until_after(A)}};O.prototype=new h,O.prototype._is_comment=function(E){return!1},O.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},O.prototype._is_closing=function(E,w){return E.type===s.TAG_CLOSE&&w&&((E.text===">"||E.text==="/>")&&w.text[0]==="<"||E.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(E,w){var D=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(D=D||this._read_open_handlebars(R,w),D=D||this._read_attribute(R,E,w),D=D||this._read_close(R,w),D=D||this._read_raw_content(R,E,w),D=D||this._read_content_word(R),D=D||this._read_comment_or_cdata(R),D=D||this._read_processing(R),D=D||this._read_open(R,w),D=D||this._create_token(s.UNKNOWN,this._input.next()),D)},O.prototype._read_comment_or_cdata=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);A==="!"&&(D=this.__patterns.comment.read(),D?(R=a.get_directives(D),R&&R.ignore==="start"&&(D+=a.readIgnored(this._input))):D=this.__patterns.cdata.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_processing=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(D=this.__patterns.conditional_comment.read(),D=D||this.__patterns.processing.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_open=function(E,w){var D=null,R=null;return w||E==="<"&&(D=this._input.next(),this._input.peek()==="/"&&(D+=this._input.next()),D+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,D)),R},O.prototype._read_open_handlebars=function(E,w){var D=null,R=null;return w||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(D=this.__patterns.handlebars_comment.read(),D=D||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,D)):(D=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,D))),R},O.prototype._read_close=function(E,w){var D=null,R=null;return w&&(w.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(D=this._input.next(),E==="/"&&(D+=this._input.next()),R=this._create_token(s.TAG_CLOSE,D)):w.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},O.prototype._read_attribute=function(E,w,D){var R=null,A="";if(D&&D.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var C=this._input.next();E==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,C)}else A=this.__patterns.attribute.read(),A&&(w.type===s.EQUALS?R=this._create_token(s.VALUE,A):R=this._create_token(s.ATTRIBUTE,A));return R},O.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)},O.prototype._read_raw_content=function(E,w,D){var R="";if(D&&D.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(w.type===s.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var A=w.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var C=this._read_comment_or_cdata(E);if(C)return C.type=s.TEXT,C;R=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(A)&&(R=this._input.readUntil(new RegExp("","ig")))}return R?this._create_token(s.TEXT,R):null},O.prototype._read_content_word=function(E){var w="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(s.TEXT,w)},v.exports.Tokenizer=O,v.exports.TOKEN=s}],G={};function r(v){var m=G[v];if(m!==void 0)return m.exports;var p=G[v]={exports:{}};return K[v](p,p.exports,r),p.exports}var L=r(18);P=L})();var X=P;if(!0)!(ie=[Z,Z("6UM0"),Z("TXwP")],J=function(K){var G=Z("6UM0"),r=Z("TXwP");return{html_beautify:function(L,v){return X(L,v,G.js_beautify,r.css_beautify)}}}.apply(be,ie),J!==void 0&&(rt.exports=J));else var j,U})()},qduV:function(rt,be,Z){"use strict";Z.r(be);var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("sPJy"),X=Z("bE4q"),j=Z("miYZ"),U=Z("tsqr"),K=Z("2qtc"),G=Z("kLXV"),r=Z("oBTY"),L=Z("9og8"),v=Z("k1fw"),m=Z("y8nQ"),p=Z("Vl3Y"),h=Z("tJVT"),u=Z("WmNS"),f=Z.n(u),l=Z("q1tI"),o=Z.n(l),s=Z("Ty5D"),a=Z("9kvl"),O=Z("55Ip"),E=Z("Ot1p"),w=Z("XYT7"),D=Z("zgC5"),R=Z.n(D),A=Z("500L"),C=Z("HBuW"),T=function(S){var y,b,B,F,_,M=S.shixunHomeworks,I=S.newCourse,g=S.globalSetting,H=S.loading,$=S.dispatch,ne=S.match,se=Object(s.i)(),Oe=p.a.useForm(),ge=Object(h.a)(Oe,1),Te=ge[0],Re=Object(l.useState)({}),Le=Object(h.a)(Re,2),de=Le[0],he=Le[1],re=Object(l.useState)(!0),fe=Object(h.a)(re,2),oe=fe[0],De=fe[1],Fe=Object(l.useState)(!1),Ce=Object(h.a)(Fe,2),Ne=Ce[0],Be=Ce[1],le=Object(l.useState)(),ve=Object(h.a)(le,2),Se=ve[0],Ie=ve[1],We=Object(l.useRef)(),Ve=M.studentWorkAddDefaultData,Qe=Object(l.useState)([]),Je=Object(h.a)(Qe,2),st=Je[0],qe=Je[1],at=M.replyList,Ue=M.workDetail,ct=Object(l.useRef)(null),lt=Object(l.useState)({page:1,limit:20,search:""}),je=Object(h.a)(lt,2),Ge=je[0],Ae=je[1];Object(l.useEffect)(function(){se.commonHomeworkId!==""&&(se.categoryId=se.commonHomeworkId,$({type:"shixunHomeworks/getWorkDetail",payload:Object(v.a)({},se)}))},[se.commonHomeworkId]);var _e=function(){var xe=Object(L.a)(f.a.mark(function Pe(){var He,ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Be(!0),ot.next=3,$({type:"shixunHomeworks/getSearchMemberList",payload:Object(v.a)(Object(v.a)({},ne.params),Ge)});case 3:ze=ot.sent,Be(!1),ze.members&&qe([].concat(Object(r.a)(st),Object(r.a)(ze.members))),((He=ze.members)===null||He===void 0?void 0:He.length)<20&&De(!1);case 7:case"end":return ot.stop()}},Pe)}));return function(){return xe.apply(this,arguments)}}(),we=function(Pe){G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ae=function xe(Pe){var He;Pe=(He=Pe)!==null&&He!==void 0&&He.includes(".json")?Pe:"".concat(Pe,".json"),G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ze=Object(L.a)(f.a.mark(function ot(){var yt,dt;return f.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(C.Bb)({url:Pe});case 2:if(yt=Ot.sent,yt){Ot.next=5;break}return Ot.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ot.next=8,Object(C.E)({id:yt.shixun_identifier});case 8:if(dt=Ot.sent,!(dt!=null&&dt.game_identifier)){Ot.next=12;break}return a.d===null||a.d===void 0||a.d.push("/tasks/".concat(dt.game_identifier)),Ot.abrupt("return");case 12:(dt==null?void 0:dt.status)===2?xe(dt==null?void 0:dt.message):(dt==null?void 0:dt.status)===3&&we(dt==null?void 0:dt.message);case 13:case"end":return Ot.stop()}},ot)}));function ht(){return ze.apply(this,arguments)}return ht}()})},ue=function(){var Pe,He;if(Ue!=null&&(Pe=Ue.shixun_info)!==null&&Pe!==void 0&&Pe.is_jupyter||Ue!=null&&(He=Ue.shixun_info)!==null&&He!==void 0&&He.is_jupyter_lab){$({type:"shixunsDetail/execJupyter",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){ze!=null&&ze.identifier&&(a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.identifier,"/jupyter")))});return}$({type:"shixunsDetail/execShixun",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){if(ze!=null&&ze.game_identifier){a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.game_identifier));return}(ze==null?void 0:ze.status)===2?ae(ze==null?void 0:ze.message):(ze==null?void 0:ze.status)===3&&we(ze==null?void 0:ze.message)})};Object(l.useEffect)(function(){new Promise(Object(L.a)(f.a.mark(function xe(){var Pe;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,$({type:"shixunHomeworks/addStudentWorkDefaultData",payload:Object(v.a)(Object(v.a)({},ne.params),{},{type:3})});case 2:Pe=ze.sent;case 3:case"end":return ze.stop()}},xe)}))),_e()},[]);var ce=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object(w.c)(Object(v.a)(Object(v.a)(Object(v.a)({},ne.params),He),{},{type:3}));case 2:ze=ot.sent,ze.status===0&&a.d.push("/classrooms/".concat(se.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/review/").concat(ze.work_id));case 4:case"end":return ot.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}(),me=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze,ht;return f.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:ze=Object(v.a)({},de),ze.attachment_ids&&(ze.attachment_ids=ze==null||((ht=ze.attachment_ids)===null||ht===void 0)?void 0:ht.map(function(dt){return dt.response.id})),!ze.attachment_ids||ze.attachment_ids==""?G.a.confirm({title:o.a.createElement("div",null,"\u8FD8\u672A\u4E0A\u4F20\u9644\u4EF6",o.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\u4F5C\u54C1\uFF1F"),onOk:function(){ce(ze)}}):ce(ze);case 3:case"end":return yt.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}();return o.a.createElement("section",{className:R.a.bg},o.a.createElement("div",{ref:ct},Ve.course_name&&o.a.createElement("section",{className:"animated fadeIn"},o.a.createElement("aside",null,Ve.category&&o.a.createElement(X.a,{separator:">"},o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.course_name)),o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.category.category_name)),o.a.createElement(X.a.Item,null,Ve==null?void 0:Ve.user_name," \u63D0\u4EA4\u4F5C\u54C1")))),o.a.createElement(p.a,{form:Te,className:R.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){he(Object(v.a)({},Te.getFieldsValue())),console.log("formValue:",de)},initialValues:[{base_on_project:1}],onFinish:me},o.a.createElement("div",{className:R.a.mdWrap},o.a.createElement("div",{className:R.a.titleWrapper},o.a.createElement("div",{className:"zuoyeTitle"},M==null||((y=M.studentWorkAddDefaultData)===null||y===void 0)?void 0:y.homework_name),o.a.createElement("div",null,o.a.createElement("div",{className:"zuoyemiaosu"},o.a.createElement("span",{className:"icon"}),o.a.createElement("h4",{className:"direction"},"\u4F5C\u4E1A\u63CF\u8FF0")),o.a.createElement("div",{dangerouslySetInnerHTML:{__html:M==null||((b=M.studentWorkAddDefaultData)===null||b===void 0)?void 0:b.homework_description}}),(Ue==null||((B=Ue.shixun_info)===null||B===void 0)?void 0:B.shixun_status)!=-1&&(Ue==null?void 0:Ue.is_shixun)&&o.a.createElement(J.a,{onClick:function(){ue()},style:{position:"absolute",bottom:"30px",left:"30px"},className:"btnWrapper",type:"primary"},o.a.createElement("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),Ue==null||((F=Ue.shixun_info)===null||F===void 0||((_=F.task_operation)===null||_===void 0))?void 0:_[0]))),o.a.createElement("div",{style:{background:"#fff",width:"954px",paddingTop:"30px",paddingLeft:"37px",paddingRight:"26px",position:"relative"}},o.a.createElement(p.a.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:65535,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u523665535\u4E2A\u5B57\u7B26"}]},o.a.createElement(E.a,{height:665,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u4F5C\u4E1A\u5185\u5BB9\u6216\u4F5C\u4E1A\u9644\u4EF6\u7684\u7B80\u8981\u63CF\u8FF0\uFF0C\u6700\u5927\u9650\u5236\u4E3A65535\u4E2A\u5B57\u7B26",watch:!0,defaultValue:de.intro})),o.a.createElement("div",null,o.a.createElement(p.a.Item,{name:"attachment_ids"},o.a.createElement(A.b,null))))))),o.a.createElement("div",{className:R.a.backgroundFa},o.a.createElement("div",{style:{width:1378,display:"flex",justifyContent:"end"}},o.a.createElement(p.a.Item,null,o.a.createElement(J.a,{size:"large",type:"primary",ghost:!0,className:R.a.button,style:{width:"60px",height:"32px",background:"#F8F9FC",borderRadius:"2px",border:"1px solid #C3CFE0",marginRight:"20px"},onClick:function(){return a.d.push("/classrooms/".concat(ne.params.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/detail"))}},"\u53D6\u6D88"),o.a.createElement(J.a,{size:"large",type:"primary",className:"".concat(R.a.button),htmlType:"submit",style:{height:"32px"},loading:H["newCourse/editCourse"]||H["newCourse/submitCourse"],onClick:function(){Te.submit()}},"\u63D0\u4EA4")))))};be.default=Object(a.a)(function(c){var S=c.shixunHomeworks,y=c.newCourse,b=c.loading,B=c.globalSetting;return{shixunHomeworks:S,newCourse:y,globalSetting:B,loading:b.effects}})(T)},"rAM+":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("Qw5x");function J(P,X){var j;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(j=Object(ie.a)(P))||X&&P&&typeof P.length=="number"){j&&(P=j);var U=0,K=function(){};return{s:K,n:function(){return U>=P.length?{done:!0}:{done:!1,value:P[U++]}},e:function(m){throw m},f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=!0,r=!1,L;return{s:function(){j=P[Symbol.iterator]()},n:function(){var m=j.next();return G=m.done,m},e:function(m){r=!0,L=m},f:function(){try{!G&&j.return!=null&&j.return()}finally{if(r)throw L}}}}},rUJ1:function(rt,be){const Z=/[&<>"']/,ie=/[&<>"']/g,J=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},j=R=>X[R];function U(R,A){if(A){if(Z.test(R))return R.replace(ie,j)}else if(J.test(R))return R.replace(P,j);return R}const K=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function G(R){return R.replace(K,(A,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const r=/(^|[^\[])\^/g;function L(R,A){R=R.source||R,A=A||"";const C={replace:(T,c)=>(c=c.source||c,c=c.replace(r,"$1"),R=R.replace(T,c),C),getRegex:()=>new RegExp(R,A)};return C}const v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(R,A,C){if(R){let T;try{T=decodeURIComponent(G(C)).replace(v,"").toLowerCase()}catch(c){return null}if(T.indexOf("javascript:")===0||T.indexOf("vbscript:")===0||T.indexOf("data:")===0)return null}A&&!m.test(C)&&(C=o(A,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(T){return null}return C}const h={},u=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(R,A){h[" "+R]||(u.test(R)?h[" "+R]=R+"/":h[" "+R]=E(R,"/",!0)),R=h[" "+R];const C=R.indexOf(":")===-1;return A.substring(0,2)==="//"?C?A:R.replace(f,"$1")+A:A.charAt(0)==="/"?C?A:R.replace(l,"$1")+A:R+A}const s={exec:function(){}};function a(R){let A=1,C,T;for(;A{let B=!1,F=y;for(;--F>=0&&b[F]==="\\";)B=!B;return B?"|":" |"}),T=C.split(/ \|/);let c=0;if(T.length>A)T.splice(A);else for(;T.length{const o=this.themingParticipants.indexOf(l);this.themingParticipants.splice(o,1)})}getThemingParticipants(){return this.themingParticipants}}let h=new p;j.a.add(m.ThemingContribution,h);function u(l){return h.onColorThemeChange(l)}class f extends P.a{constructor(l){super();this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(o=>this.onThemeChange(o)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},ulZh:function(rt,be,Z){typeof window!="undefined"&&function(J,P){rt.exports=P()}(this,function(){return function(ie){var J={};function P(X){if(J[X])return J[X].exports;var j=J[X]={i:X,l:!1,exports:{}};return ie[X].call(j.exports,j,j.exports,P),j.l=!0,j.exports}return P.m=ie,P.c=J,P.d=function(X,j,U){P.o(X,j)||Object.defineProperty(X,j,{enumerable:!0,get:U})},P.r=function(X){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},P.t=function(X,j){if(j&1&&(X=P(X)),j&8)return X;if(j&4&&typeof X=="object"&&X&&X.__esModule)return X;var U=Object.create(null);if(P.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:X}),j&2&&typeof X!="string")for(var K in X)P.d(U,K,function(G){return X[G]}.bind(null,K));return U},P.n=function(X){var j=X&&X.__esModule?function(){return X.default}:function(){return X};return P.d(j,"a",j),j},P.o=function(X,j){return Object.prototype.hasOwnProperty.call(X,j)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ie,J,P){"use strict";var X=Object.prototype.hasOwnProperty,j="~";function U(){}Object.create&&(U.prototype=Object.create(null),new U().__proto__||(j=!1));function K(v,m,p){this.fn=v,this.context=m,this.once=p||!1}function G(v,m,p,h,u){if(typeof p!="function")throw new TypeError("The listener must be a function");var f=new K(p,h||v,u),l=j?j+m:m;return v._events[l]?v._events[l].fn?v._events[l]=[v._events[l],f]:v._events[l].push(f):(v._events[l]=f,v._eventsCount++),v}function r(v,m){--v._eventsCount===0?v._events=new U:delete v._events[m]}function L(){this._events=new U,this._eventsCount=0}L.prototype.eventNames=function(){var m=[],p,h;if(this._eventsCount===0)return m;for(h in p=this._events)X.call(p,h)&&m.push(j?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(p)):m},L.prototype.listeners=function(m){var p=j?j+m:m,h=this._events[p];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,f=h.length,l=new Array(f);u0},!1)}function v(m,p){for(var h={main:[p]},u={main:[]},f={main:{}};L(h);)for(var l=Object.keys(h),o=0;o=2*D/A||b<=F)return;var _=Number.POSITIVE_INFINITY,M;for(M=l.level-1;M>T;M--){var I=C[M].maxBitrate;if(_=D*I/(8*.8*y),_=b)return;var g=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+l.sn+(o?" part "+o.index:"")+" of level "+l.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+M+` Current BW estimate: `+(Object(X.isFiniteNumber)(g)?(g/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+b.toFixed(3)+` s Estimated load time for the next fragment: `+_.toFixed(3)+` s - Time to underbuffer: `+F.toFixed(3)+" s"),s.nextLoadLevel=M,this.bwEstimator.sample(R,w.loaded),this.clearTimer(),l.loader&&(this.fragCurrent=this.partCurrent=null,l.loader.abort()),s.trigger(U.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:l,part:o,stats:w})},u.onFragLoaded=function(l,o){var s=o.frag,a=o.part;if(s.type===r.PlaylistLevelType.MAIN&&Object(X.isFiniteNumber)(s.sn)){var O=a?a.stats:s.stats,E=a?a.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[s.level],D=(w.loaded?w.loaded.bytes:0)+O.loaded,R=(w.loaded?w.loaded.duration:0)+E;w.loaded={bytes:D,duration:R},w.realBitrate=Math.round(8*D/R)}if(s.bitrateTest){var A={stats:O,frag:s,part:a,id:s.type};this.onFragBuffered(U.Events.FRAG_BUFFERED,A),s.bitrateTest=!1}}},u.onFragBuffered=function(l,o){var s=o.frag,a=o.part,O=a?a.stats:s.stats;if(O.aborted)return;if(s.type!==r.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=O.parsing.end-O.loading.start;this.bwEstimator.sample(E,O.loaded),O.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},u.onError=function(l,o){switch(o.details){case G.ErrorDetails.FRAG_LOAD_ERROR:case G.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},u.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},u.getNextABRAutoLevel=function(){var l=this.fragCurrent,o=this.partCurrent,s=this.hls,a=s.maxAutoLevel,O=s.config,E=s.minAutoLevel,w=s.media,D=o?o.duration:l?l.duration:0,R=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():O.abrEwmaDefaultEstimate,T=(K.BufferHelper.bufferInfo(w,R,O.maxBufferHole).end-R)/A,d=this.findBestLevel(C,E,a,T,O.abrBandWidthFactor,O.abrBandWidthUpFactor);if(d>=0)return d;L.logger.trace((T?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var S=D?Math.min(D,O.maxStarvationDelay):O.maxStarvationDelay,y=O.abrBandWidthFactor,b=O.abrBandWidthUpFactor;if(!T){var B=this.bitrateTestDelay;if(B){var F=D?Math.min(D,O.maxLoadingDelay):O.maxLoadingDelay;S=F-B,L.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*S)+" ms"),y=b=1}}return d=this.findBestLevel(C,E,a,T+S,y,b),Math.max(d,0)},u.findBestLevel=function(l,o,s,a,O,E){for(var w,D=this.fragCurrent,R=this.partCurrent,A=this.lastLoadedFragLevel,C=this.hls.levels,T=C[A],d=!!(T!=null&&(w=T.details)!==null&&w!==void 0&&w.live),S=T==null?void 0:T.codecSet,y=R?R.duration:D?D.duration:0,b=s;b>=o;b--){var B=C[b];if(!B||S&&B.codecSet!==S)continue;var F=B.details,_=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||y,M=void 0;b<=A?M=O*l:M=E*l;var I=C[b].maxBitrate,g=I*_/M;if(L.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(M)+"/"+I+"/"+_+"/"+a+"/"+g),M>I&&(!g||d&&!this.bitrateTestDelay||g0&&T===-1?(this.log("Override startPosition with lastCurrentTime @"+d.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=T,this.tick()},A.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var T,d=this.levels,S=this.trackId,y=d==null||((T=d[S])===null||T===void 0)?void 0:T.details;if(y){if(this.waitForCdnTuneIn(y))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var b,B=performance.now(),F=this.retryDate;(!F||B>=F||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var _=this.waitingData;if(_){var M=_.frag,I=_.part,g=_.cache,H=_.complete;if(this.initPTS[M.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var $=g.flush(),ne={frag:M,part:I,payload:$,networkDetails:null};this._handleFragmentLoadProgress(ne),H&&D.prototype._handleFragmentLoadComplete.call(this,ne)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+M.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var se=this.getLoadPosition(),Oe=K.BufferHelper.bufferInfo(this.mediaBuffer,se,this.config.maxBufferHole),ge=Object(u.fragmentWithinToleranceTest)(Oe.end,this.config.maxFragLookUpTolerance,M);ge<0&&(o.logger.log("Waiting fragment cc ("+M.cc+") @ "+M.start+" cancelled because another fragment at "+Oe.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var T=this.waitingData;T&&(this.fragmentTracker.removeFragment(T.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},A.onTickEnd=function(){var T=this.media;if(!T||!T.readyState)return;var d=this.mediaBuffer?this.mediaBuffer:T,S=d.buffered;!this.loadedmetadata&&S.length&&(this.loadedmetadata=!0),this.lastCurrentTime=T.currentTime},A.doTickIdle=function(){var T,d,S=this.hls,y=this.levels,b=this.media,B=this.trackId,F=S.config;if(!y||!y[B])return;if(!b&&(this.startFragRequested||!F.startFragPrefetch))return;var _=y[B],M=_.details;if(!M||M.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(M)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,v.ElementaryStreamTypes.AUDIO,L.PlaylistLevelType.AUDIO));var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,L.PlaylistLevelType.AUDIO);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(),$=this.audioSwitch;if(g>=H&&!$)return;if(!$&&this._streamEnded(I,M)){S.trigger(U.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var ne=M.fragments,se=ne[0].start,Oe=I.end;if($){var ge=this.getLoadPosition();Oe=ge,M.PTSKnown&&gese||I.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=se+.05))}var Te=this.getNextFragment(Oe,M);if(!Te){this.bufferFlushed=!0;return}((T=Te.decryptdata)===null||T===void 0?void 0:T.keyFormat)==="identity"&&!((d=Te.decryptdata)!==null&&d!==void 0&&d.key)?this.loadKey(Te,M):this.loadFragment(Te,M,Oe)},A.getMaxBufferLength=function(){var T=D.prototype.getMaxBufferLength.call(this),d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,L.PlaylistLevelType.MAIN);return d===null?T:Math.max(T,d.len)},A.onMediaDetaching=function(){this.videoBuffer=null,D.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(T,d){var S=d.audioTracks;this.resetTransmuxer(),this.levels=S.map(function(y){return new r.Level(y)})},A.onAudioTrackSwitching=function(T,d){var S=!!d.url;this.trackId=d.id;var y=this.fragCurrent;y!=null&&y.loader&&y.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),S?this.setInterval(E):this.resetTransmuxer(),S?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(T,d){this.mainDetails=d.details},A.onAudioTrackLoaded=function(T,d){var S,y=this.levels,b=d.details,B=d.id;if(!y){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var F=y[B],_=0;if(b.live||(S=F.details)!==null&&S!==void 0&&S.live){var M=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!M)return;!F.details&&b.hasProgramDateTime&&M.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(b,M),_=b.fragments[0].start):_=this.alignPlaylists(b,F.details)}F.details=b,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(F.details,_),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=j.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(T){var d,S=T.frag,y=T.part,b=T.payload,B=this.config,F=this.trackId,_=this.levels;if(!_){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var M=_[F];console.assert(M,"Audio track is defined on fragment load progress");var I=M.details;console.assert(I,"Audio track details are defined on fragment load progress");var g=B.defaultAudioCodec||M.audioCodec||"mp4a.40.2",H=this.transmuxer;H||(H=this.transmuxer=new p.default(this.hls,L.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $=this.initPTS[S.cc],ne=(d=S.initSegment)===null||d===void 0?void 0:d.data;if($!==void 0){var se=!1,Oe=y?y.index:-1,ge=Oe!==-1,Te=new h.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,b.byteLength,Oe,ge);H.push(b,ne,g,"",S,y,I.totalduration,se,Te,$)}else{o.logger.log("Unknown video PTS for cc "+S.cc+", waiting for video PTS before demuxing audio frag "+S.sn+" of ["+I.startSN+" ,"+I.endSN+"],track "+F);var Re=this.waitingData=this.waitingData||{frag:S,part:y,cache:new m.default,complete:!1},Le=Re.cache;Le.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(T){if(this.waitingData){this.waitingData.complete=!0;return}D.prototype._handleFragmentLoadComplete.call(this,T)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(T,d){var S=d.tracks.audio;S&&(this.mediaBuffer=S.buffer),d.tracks.video&&(this.videoBuffer=d.tracks.video.buffer)},A.onFragBuffered=function(T,d){var S=d.frag,y=d.part;if(S.type!==L.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(y?" p: "+y.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}S.sn!=="initSegment"&&(this.fragPrevious=S,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(S,y)},A.onError=function(T,d){switch(d.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.AUDIO,d);break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==j.State.ERROR&&this.state!==j.State.STOPPED&&(this.state=d.fatal?j.State.ERROR:j.State.IDLE,this.warn(d.details+" while loading frag, switching to "+this.state+" state"));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if(d.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var S=!0,y=this.getFwdBufferInfo(this.mediaBuffer,L.PlaylistLevelType.AUDIO);y&&y.len>.5&&(S=!this.reduceMaxBufferLength(y.len)),S&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(T,d){var S=d.type;S===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(T){var d,S="audio",y=this.hls,b=T.remuxResult,B=T.chunkMeta,F=this.getCurrentContext(B);if(!F){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var _=F.frag,M=F.part,I=b.audio,g=b.text,H=b.id3,$=b.initSegment;if(this.fragContextChanged(_))return;if(this.state=j.State.PARSING,this.audioSwitch&&I&&this.completeAudioSwitch(),$!=null&&$.tracks&&(this._bufferInitSegment($.tracks,_,B),y.trigger(U.Events.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:S,tracks:$.tracks})),I){var ne=I.startPTS,se=I.endPTS,Oe=I.startDTS,ge=I.endDTS;M&&(M.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:ne,endPTS:se,startDTS:Oe,endDTS:ge}),_.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,ne,se,Oe,ge),this.bufferFragmentData(I,_,M,B)}if(H!=null&&(d=H.samples)!==null&&d!==void 0&&d.length){var Te=s({frag:_,id:S},H);y.trigger(U.Events.FRAG_PARSING_METADATA,Te)}if(g){var Re=s({frag:_,id:S},g);y.trigger(U.Events.FRAG_PARSING_USERDATA,Re)}},A._bufferInitSegment=function(T,d,S){if(this.state!==j.State.PARSING)return;T.video&&delete T.video;var y=T.audio;if(!y)return;y.levelCodec=y.codec,y.id="audio",this.log("Init audio buffer, container:"+y.container+", codecs[parsed]=["+y.codec+"]"),this.hls.trigger(U.Events.BUFFER_CODECS,T);var b=y.initSegment;if(b!=null&&b.byteLength){var B={type:"audio",frag:d,part:null,chunkMeta:S,parent:d.type,data:b};this.hls.trigger(U.Events.BUFFER_APPENDING,B)}this.tick()},A.loadFragment=function(T,d,S){var y=this.fragmentTracker.getState(T);this.fragCurrent=T,(this.audioSwitch||y===G.FragmentState.NOT_LOADED||y===G.FragmentState.PARTIAL)&&(T.sn==="initSegment"?this._loadInitSegment(T):d.live&&!Object(X.isFiniteNumber)(this.initPTS[T.cc])?(this.log("Waiting for video PTS in continuity counter "+T.cc+" of live stream before loading audio fragment "+T.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,D.prototype.loadFragment.call(this,T,d,S)))},A.completeAudioSwitch=function(){var T=this.hls,d=this.media,S=this.trackId;d&&(this.log("Switching audio track : flushing all audio"),D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,T.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:S})},R}(j.default);J.default=w},"./src/controller/audio-track-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/controller/base-playlist-controller.ts"),K=P("./src/types/loader.ts");function G(p,h){for(var u=0;u=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=o[this.trackId];this.log("Now switching to audio-track index "+l);var a=o[l],O=a.id,E=a.groupId,w=E===void 0?"":E,D=a.name,R=a.type,A=a.url;if(this.trackId=l,this.trackName=D,this.selectDefaultTrack=!1,this.hls.trigger(X.Events.AUDIO_TRACK_SWITCHING,{id:O,groupId:w,name:D,type:R,url:A}),a.details&&!a.details.live)return;var C=this.switchParams(a.url,s==null?void 0:s.details);this.loadPlaylist(C)},u.selectInitialTrack=function(){var l=this.tracksInGroup;console.assert(l.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,s=this.findTrackId(o)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},u.findTrackId=function(l){for(var o=this.tracksInGroup,s=0;sh.partTarget&&(a+=1)}if(Object(X.isFiniteNumber)(s))return new j.HlsUrlParameters(s,Object(X.isFiniteNumber)(a)?a:void 0,j.HlsSkip.No)}}},v.loadPlaylist=function(p){},v.shouldLoadTrack=function(p){return this.canLoad&&p&&!!p.url&&(!p.details||p.details.live)},v.playlistLoaded=function(p,h,u){var f=this,l=h.details,o=h.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(l.advancedDateTime=Date.now()-s,l.live||u!=null&&u.live){if(l.reloaded(u),u&&this.log("live playlist "+p+" "+(l.advanced?"REFRESHED "+l.lastPartSn+"-"+l.lastPartIndex:"MISSED")),u&&l.fragments.length>0&&Object(U.mergeDetails)(u,l),!this.canLoad||!l.live)return;var a,O=void 0,E=void 0;if(l.canBlockReload&&l.endSN&&l.advanced){var w=this.hls.config.lowLatencyMode,D=l.lastPartSn,R=l.endSN,A=l.lastPartIndex,C=A!==-1,T=D===R,d=w?0:A;C?(O=T?R+1:D,E=T?d:A+1):O=R+1;var S=l.age,y=S+l.ageHeader,b=Math.min(y-l.partTarget,l.targetduration*1.5);if(b>0){if(u&&b>u.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+u.tuneInGoal+" to: "+b+" with playlist age: "+l.age),b=0;else{var B=Math.floor(b/l.targetduration);if(O+=B,E!==void 0){var F=Math.round(b%l.targetduration/l.partTarget);E+=F}this.log("CDN Tune-in age: "+l.ageHeader+"s last advanced "+S.toFixed(2)+"s goal: "+b+" skip sn "+B+" to part "+E)}l.tuneInGoal=b}if(a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E),w||!T){this.loadPlaylist(a);return}}else a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E);var _=Object(U.computeReloadInterval)(l,o);O!==void 0&&l.canBlockReload&&(_-=l.partTarget||1),this.log("reload live playlist "+p+" in "+Math.round(_)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(a)},_)}else this.clearTimer()},v.getDeliveryDirectives=function(p,h,u,f){var l=Object(j.getSkipValue)(p,u);return h!=null&&h.skip&&p.deltaUpdateFailed&&(u=h.msn,f=h.part,l=j.HlsSkip.No),new j.HlsUrlParameters(u,f,l)},v.retryLoadingOrFail=function(p){var h=this,u=this.hls.config,f=this.retryCount-1&&(l=p.context)!==null&&l!==void 0&&l.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+p.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*u.levelLoadingRetryDelay,u.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return h.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+p.details+'"')}}else this.warn('cannot recover from error "'+p.details+'"'),this.clearTimer(),p.fatal=!0;return f},L}()},"./src/controller/base-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"State",function(){return R}),P.d(J,"default",function(){return A});var X=P("./src/polyfills/number.ts"),j=P("./src/task-loop.ts"),U=P("./src/controller/fragment-tracker.ts"),K=P("./src/utils/buffer-helper.ts"),G=P("./src/utils/logger.ts"),r=P("./src/events.ts"),L=P("./src/errors.ts"),v=P("./src/types/transmuxer.ts"),m=P("./src/utils/mp4-tools.ts"),p=P("./src/utils/discontinuities.ts"),h=P("./src/controller/fragment-finders.ts"),u=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),l=P("./src/crypt/decrypter.ts"),o=P("./src/utils/time-ranges.ts"),s=P("./src/types/loader.ts");function a(C,T){for(var d=0;d$;(M0&&M&&M.key&&M.iv&&M.method==="AES-128"){var I=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(_),M.key.buffer,M.iv.buffer).then(function(g){var H=self.performance.now();return F.trigger(r.Events.FRAG_DECRYPTED,{frag:y,payload:g,stats:{tstart:I,tdecrypt:H}}),B.payload=g,B})}return B}).then(function(B){var F=b.fragCurrent,_=b.hls,M=b.levels;if(!M)throw new Error("init load aborted, missing levels");var I=M[y.level].details;console.assert(I,"Level details are defined when init segment is loaded");var g=y.stats;b.state=R.IDLE,b.fragLoadError=0,y.data=new Uint8Array(B.payload),g.parsing.start=g.buffering.start=self.performance.now(),g.parsing.end=g.buffering.end=self.performance.now(),B.frag===F&&_.trigger(r.Events.FRAG_BUFFERED,{stats:g,frag:F,part:null,id:y.type}),b.tick()}).catch(function(B){b.warn(B),b.resetFragmentLoading(y)})},d.fragContextChanged=function(y){var b=this.fragCurrent;return!y||!b||y.level!==b.level||y.sn!==b.sn||y.urlId!==b.urlId},d.fragBufferedComplete=function(y,b){var B=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+y.type+" sn: "+y.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+y.level+" "+o.default.toString(K.BufferHelper.getBuffered(B))),this.state=R.IDLE,this.tick()},d._handleFragmentLoadComplete=function(y){var b=this.transmuxer;if(!b)return;var B=y.frag,F=y.part,_=y.partsLoaded,M=!_||_.length===0||_.some(function(g){return!g}),I=new v.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,F?F.index:-1,!M);b.flush(I)},d._handleFragmentLoadProgress=function(y){},d._doFragLoad=function(y,b,B,F){var _=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(y.start,B||0),this.config.lowLatencyMode&&b){var M=b.partList;if(M&&F){B>y.end&&b.fragmentHint&&(y=b.fragmentHint);var I=this.getNextPart(M,y,B);if(I>-1){var g=M[I];return this.log("Loading part sn: "+y.sn+" p: "+g.index+" cc: "+y.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+I+"-"+(M.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=g.start+g.duration,this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,part:M[I],targetBufferTime:B}),this.doFragPartsLoad(y,M,I,F).catch(function(H){return _.handleFragLoadError(H)})}else if(!y.url||this.loadedEndOfParts(M,B))return Promise.resolve(null)}}return this.log("Loading fragment "+y.sn+" cc: "+y.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),Object(X.isFiniteNumber)(y.sn)&&!this.bitrateTest&&(this.nextLoadPosition=y.start+y.duration),this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,targetBufferTime:B}),this.fragmentLoader.load(y,F).catch(function(H){return _.handleFragLoadError(H)})},d.doFragPartsLoad=function(y,b,B,F){var _=this;return new Promise(function(M,I){var g=[],H=function $(ne){var se=b[ne];_.fragmentLoader.loadPart(y,se,F).then(function(Oe){g[se.index]=Oe;var ge=Oe.part;_.hls.trigger(r.Events.FRAG_LOADED,Oe);var Te=b[ne+1];if(Te&&Te.fragment===y)$(ne+1);else return M({frag:y,part:ge,partsLoaded:g})}).catch(I)};H(B)})},d.handleFragLoadError=function(y){var b=y.data;return b&&b.details===L.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(r.Events.ERROR,b),null},d._handleTransmuxerFlush=function(y){var b=this.getCurrentContext(y);if(!b||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var B=b.frag,F=b.part,_=b.level,M=self.performance.now();B.stats.parsing.end=M,F&&(F.stats.parsing.end=M),this.updateLevelTiming(B,F,_,y.partial)},d.getCurrentContext=function(y){var b=this.levels,B=y.level,F=y.sn,_=y.part;if(!b||!b[B])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+B+". The current chunk will not be buffered."),null;var M=b[B],I=_>-1?Object(u.getPartWith)(M,F,_):null,g=I?I.fragment:Object(u.getFragmentWithSN)(M,F,this.fragCurrent);return g?{frag:g,part:I,level:M}:null},d.bufferFragmentData=function(y,b,B,F){if(!y||this.state!==R.PARSING)return;var _=y.data1,M=y.data2,I=_;if(_&&M&&(I=Object(m.appendUint8Array)(_,M)),!I||!I.length)return;var g={type:y.type,frag:b,part:B,chunkMeta:F,parent:b.type,data:I};this.hls.trigger(r.Events.BUFFER_APPENDING,g),y.dropped&&y.independent&&!B&&this.flushBufferGap(b)},d.flushBufferGap=function(y){var b=this.media;if(!b)return;if(!K.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,y.start);return}var B=b.currentTime,F=K.BufferHelper.bufferInfo(b,B,0),_=y.duration,M=Math.min(this.config.maxFragLookUpTolerance*2,_*.25),I=Math.max(Math.min(y.start-M,F.end-M),B+M);y.start-I>M&&this.flushMainBuffer(I,y.start)},d.getFwdBufferInfo=function(y,b){var B=this.config,F=this.getLoadPosition();if(!Object(X.isFiniteNumber)(F))return null;var _=K.BufferHelper.bufferInfo(y,F,B.maxBufferHole);if(_.len===0&&_.nextStart!==void 0){var M=this.fragmentTracker.getBufferedFrag(F,b);if(M&&_.nextStart=B?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},d.getNextFragment=function(y,b){var B,F,_=b.fragments,M=_.length;if(!M)return null;var I=this.config,g=_[0].start,H;if(b.live){var $=I.initialLiveManifestSize;if(M<$)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+$+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(H=this.getInitialLiveFragment(b,_),this.startPosition=H?this.hls.liveSyncPosition||H.start:y)}else y<=g&&(H=_[0]);if(!H){var ne=I.lowLatencyMode?b.partEnd:b.fragmentEnd;H=this.getFragmentAtPosition(y,ne,b)}return(B=H)!==null&&B!==void 0&&B.initSegment&&!((F=H)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(H=H.initSegment),H},d.getNextPart=function(y,b,B){for(var F=-1,_=!1,M=!0,I=0,g=y.length;I-1&&BB.start&&B.loaded},d.getInitialLiveFragment=function(y,b){var B=this.fragPrevious,F=null;if(B){if(y.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),F=Object(h.findFragmentByPDT)(b,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var _=B.sn+1;if(_>=y.startSN&&_<=y.endSN){var M=b[_-y.startSN];B.cc===M.cc&&(F=M,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(h.findFragWithCC)(b,B.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var I=this.hls.liveSyncPosition;I!==null&&(F=this.getFragmentAtPosition(I,this.bitrateTest?y.fragmentEnd:y.edge,y))}return F},d.getFragmentAtPosition=function(y,b,B){var F=this.config,_=this.fragPrevious,M=B.fragments,I=B.endSN,g=B.fragmentHint,H=F.maxFragLookUpTolerance,$=!!(F.lowLatencyMode&&B.partList&&g);$&&g&&!this.bitrateTest&&(M=M.concat(g),I=g.sn);var ne;if(yb-H?0:H;ne=Object(h.findFragmentByPTS)(_,M,y,se)}else ne=M[M.length-1];if(ne){var Oe=ne.sn-B.startSN,ge=_&&ne.level===_.level,Te=M[Oe+1],Re=this.fragmentTracker.getState(ne);if(Re===U.FragmentState.BACKTRACKED){ne=null;for(var Le=Oe;M[Le]&&this.fragmentTracker.getState(M[Le])===U.FragmentState.BACKTRACKED;)_?ne=M[Le--]:ne=M[--Le];ne||(ne=Te)}else _&&ne.sn===_.sn&&!$&&(ge&&(ne.sn=M-b.maxFragLookUpTolerance&&_<=I;if(F!==null&&B.duration>F&&(_"+y.startSN+" prev-sn: "+(_?_.sn:"na")+" fragments: "+I),ne}return g},d.waitForCdnTuneIn=function(y){var b=3;return y.live&&y.canBlockReload&&y.tuneInGoal>Math.max(y.partHoldBack,y.partTarget*b)},d.setStartPosition=function(y,b){var B=this.startPosition;if(B"+y))}}]),T}(j.default)},"./src/controller/buffer-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./src/errors.ts"),G=P("./src/utils/buffer-helper.ts"),r=P("./src/utils/mediasource-helper.ts"),L=P("./src/loader/fragment.ts"),v=P("./src/controller/buffer-operation-queue.ts"),m=Object(r.getMediaSource)(),p=/([ha]vc.)(?:\.[^.,]+)+/,h=function(){function u(l){var o=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=o.hls,a=o.media,O=o.mediaSource;U.logger.log("[buffer-controller]: Media source opened"),a&&(o.updateMediaElementDuration(),s.trigger(j.Events.MEDIA_ATTACHED,{media:a})),O&&O.removeEventListener("sourceopen",o._onMediaSourceOpen),o.checkPendingTracks()},this._onMediaSourceClose=function(){U.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.logger.log("[buffer-controller]: Media source ended")},this.hls=l,this._initSourceBuffer(),this.registerListeners()}var f=u.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var o=this.hls;o.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(j.Events.BUFFER_RESET,this.onBufferReset,this),o.on(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(j.Events.BUFFER_EOS,this.onBufferEos,this),o.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(j.Events.FRAG_PARSED,this.onFragParsed,this),o.on(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(j.Events.BUFFER_RESET,this.onBufferReset,this),o.off(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(j.Events.BUFFER_EOS,this.onBufferEos,this),o.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(j.Events.FRAG_PARSED,this.onFragParsed,this),o.off(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new v.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(o,s){var a=2;(s.audio&&!s.video||!s.altAudio)&&(a=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=a,this.details=null,U.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(o,s){var a=this.media=s.media;if(a&&m){var O=this.mediaSource=new m;O.addEventListener("sourceopen",this._onMediaSourceOpen),O.addEventListener("sourceended",this._onMediaSourceEnded),O.addEventListener("sourceclose",this._onMediaSourceClose),a.src=self.URL.createObjectURL(O),this._objectUrl=a.src}},f.onMediaDetaching=function(){var o=this.media,s=this.mediaSource,a=this._objectUrl;if(s){if(U.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(O){U.logger.warn("[buffer-controller]: onMediaDetaching: "+O.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(a&&self.URL.revokeObjectURL(a),o.src===a?(o.removeAttribute("src"),o.load()):U.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(j.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(s){var a=o.sourceBuffer[s];try{a&&(o.removeBufferListeners(s),o.mediaSource&&o.mediaSource.removeSourceBuffer(a),o.sourceBuffer[s]=void 0)}catch(O){U.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",O)}}),this._initSourceBuffer()},f.onBufferCodecs=function(o,s){var a=this,O=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(O){var w=a.tracks[E];if(w&&typeof w.buffer.changeType=="function"){var D=s[E],R=D.codec,A=D.levelCodec,C=D.container,T=(w.levelCodec||w.codec).replace(p,"$1"),d=(A||R).replace(p,"$1");if(T!==d){var S=C+";codecs="+(A||R);a.appendChangeType(E,S)}}}else a.pendingTracks[E]=s[E]}),O)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(o,s){var a=this,O=this.operationQueue,E={execute:function(){var D=a.sourceBuffer[o];D&&(U.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+s),D.changeType(s)),O.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(D){U.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",D)}};O.append(E,o)},f.onBufferAppending=function(o,s){var a=this,O=this.hls,E=this.operationQueue,w=this.tracks,D=s.data,R=s.type,A=s.frag,C=s.part,T=s.chunkMeta,d=T.buffering[R],S=self.performance.now();d.start=S;var y=A.stats.buffering,b=C?C.stats.buffering:null;y.start===0&&(y.start=S),b&&b.start===0&&(b.start=S);var B=w.audio,F=R==="audio"&&T.id===1&&(B==null?void 0:B.container)==="audio/mpeg",_={execute:function(){if(d.executeStart=self.performance.now(),F){var I=a.sourceBuffer[R];if(I){var g=A.start-I.timestampOffset;Math.abs(g)>=.1&&(U.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+g+") sn: "+A.sn+")"),I.timestampOffset=A.start)}}a.appendExecutor(D,R)},onStart:function(){},onComplete:function(){var I=self.performance.now();d.executeEnd=d.end=I,y.first===0&&(y.first=I),b&&b.first===0&&(b.first=I);var g=a.sourceBuffer,H={};for(var $ in g)H[$]=G.BufferHelper.getBuffered(g[$]);a.appendError=0,a.hls.trigger(j.Events.BUFFER_APPENDED,{type:R,frag:A,part:C,chunkMeta:T,parent:A.type,timeRanges:H})},onError:function(I){U.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",I);var g={type:K.ErrorTypes.MEDIA_ERROR,parent:A.type,details:K.ErrorDetails.BUFFER_APPEND_ERROR,err:I,fatal:!1};I.code===DOMException.QUOTA_EXCEEDED_ERR?g.details=K.ErrorDetails.BUFFER_FULL_ERROR:(a.appendError++,g.details=K.ErrorDetails.BUFFER_APPEND_ERROR,a.appendError>O.config.appendErrorMaxRetry&&(U.logger.error("[buffer-controller]: Failed "+O.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),g.fatal=!0)),O.trigger(j.Events.ERROR,g)}};E.append(_,R)},f.onBufferFlushing=function(o,s){var a=this,O=this.operationQueue,E=function(D){return{execute:a.removeExecutor.bind(a,D,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){a.hls.trigger(j.Events.BUFFER_FLUSHED,{type:D})},onError:function(A){U.logger.warn("[buffer-controller]: Failed to remove from "+D+" SourceBuffer",A)}}};s.type?O.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(w){O.append(E(w),w)})},f.onFragParsed=function(o,s){var a=this,O=s.frag,E=s.part,w=[],D=E?E.elementaryStreams:O.elementaryStreams;D[L.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(D[L.ElementaryStreamTypes.AUDIO]&&w.push("audio"),D[L.ElementaryStreamTypes.VIDEO]&&w.push("video"));var R=function(){var C=self.performance.now();O.stats.buffering.end=C,E&&(E.stats.buffering.end=C);var T=E?E.stats:O.stats;a.hls.trigger(j.Events.FRAG_BUFFERED,{frag:O,part:E,stats:T,id:O.type})};w.length===0&&U.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+O.type+" level: "+O.level+" sn: "+O.sn),this.blockBuffers(R,w)},f.onFragChanged=function(o,s){this.flushBackBuffer()},f.onBufferEos=function(o,s){var a=this,O=this.getSourceBufferTypes().reduce(function(E,w){var D=a.sourceBuffer[w];return(!s.type||s.type===w)&&(D&&!D.ended&&(D.ended=!0,U.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),E&&!!(!D||D.ended)},!0);O&&this.blockBuffers(function(){var E=a.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},f.onLevelUpdated=function(o,s){var a=s.details;if(!a.fragments.length)return;this.details=a,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var o=this.hls,s=this.details,a=this.media,O=this.sourceBuffer;if(!a||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var w=s.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(X.isFiniteNumber)(w)||w<0)return;var D=a.currentTime,R=s.levelTargetDuration,A=Math.max(w,R),C=Math.floor(D/R)*R-A;E.forEach(function(T){var d=O[T];if(d){var S=G.BufferHelper.getBuffered(d);S.length>0&&C>S.start(0)&&(o.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),s.live&&o.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),o.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:T}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,s=this.hls,a=this.media,O=this.mediaSource,E=o.fragments[0].start+o.totalduration,w=a.duration,D=Object(X.isFiniteNumber)(O.duration)?O.duration:0;o.live&&s.config.liveDurationInfinity?(U.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),O.duration=Infinity,this.updateSeekableRange(o)):(E>D&&E>w||!Object(X.isFiniteNumber)(w))&&(U.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),O.duration=E)},f.updateSeekableRange=function(o){var s=this.mediaSource,a=o.fragments,O=a.length;if(O&&o.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,a[0].start),w=Math.max(E,E+o.totalduration);s.setLiveSeekableRange(E,w)}},f.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,s=this.operationQueue,a=this.pendingTracks,O=Object.keys(a).length;if(O&&!o||O===2){this.createSourceBuffers(a),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(w){s.executeNext(w)})}},f.createSourceBuffers=function(o){var s=this.sourceBuffer,a=this.mediaSource;if(!a)throw Error("createSourceBuffers called when mediaSource was null");var O=0;for(var E in o)if(!s[E]){var w=o[E];if(!w)throw Error("source buffer exists for track "+E+", however track does not");var D=w.levelCodec||w.codec,R=w.container+";codecs="+D;U.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var A=s[E]=a.addSourceBuffer(R),C=E;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[E]={buffer:A,codec:D,container:w.container,levelCodec:w.levelCodec,id:w.id},O++}catch(T){U.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+T.message),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:T,mimeType:R})}}O&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(o){var s=this.operationQueue,a=s.current(o);a.onStart()},f._onSBUpdateEnd=function(o){var s=this.operationQueue,a=s.current(o);a.onComplete(),s.shiftAndExecuteNext(o)},f._onSBUpdateError=function(o,s){U.logger.error("[buffer-controller]: "+o+" SourceBuffer error",s),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var a=this.operationQueue.current(o);a&&a.onError(s)},f.removeExecutor=function(o,s,a){var O=this.media,E=this.mediaSource,w=this.operationQueue,D=this.sourceBuffer,R=D[o];if(!O||!E||!R){U.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(o);return}var A=Object(X.isFiniteNumber)(O.duration)?O.duration:Infinity,C=Object(X.isFiniteNumber)(E.duration)?E.duration:Infinity,T=Math.max(0,s),d=Math.min(a,A,C);d>T?(U.logger.log("[buffer-controller]: Removing ["+T+","+d+"] from the "+o+" SourceBuffer"),console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.remove(T,d)):w.shiftAndExecuteNext(o)},f.appendExecutor=function(o,s){var a=this.operationQueue,O=this.sourceBuffer,E=O[s];if(!E){U.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),a.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(o)},f.blockBuffers=function(o,s){var a=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){U.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var O=this.operationQueue,E=s.map(function(w){return O.appendBlocker(w)});Promise.all(E).then(function(){o(),s.forEach(function(w){var D=a.sourceBuffer[w];(!D||!D.updating)&&O.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(o,s,a){var O=this.sourceBuffer[o];if(!O)return;var E=a.bind(this,o);this.listeners[o].push({event:s,listener:E}),O.addEventListener(s,E)},f.removeBufferListeners=function(o){var s=this.sourceBuffer[o];if(!s)return;this.listeners[o].forEach(function(a){s.removeEventListener(a.event,a.listener)})},u}()},"./src/controller/buffer-operation-queue.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return j});var X=P("./src/utils/logger.ts"),j=function(){function U(G){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=G}var K=U.prototype;return K.append=function(r,L){var v=this.queues[L];v.push(r),v.length===1&&this.buffers[L]&&this.executeNext(L)},K.insertAbort=function(r,L){var v=this.queues[L];v.unshift(r),this.executeNext(L)},K.appendBlocker=function(r){var L,v=new Promise(function(p){L=p}),m={execute:L,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(m,r),v},K.executeNext=function(r){var L=this.buffers,v=this.queues,m=L[r],p=v[r];if(p.length){var h=p[0];try{h.execute()}catch(u){X.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),h.onError(u),(!m||!m.updating)&&(p.shift(),this.executeNext(r))}}},K.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},K.current=function(r){return this.queues[r][0]},U}()},"./src/controller/cap-level-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts");function j(G,r){for(var L=0;L0&&this.mediaWidth>0){var v=this.hls.levels;if(v.length){var m=this.hls;m.autoLevelCapping=this.getMaxLevel(v.length-1),m.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=m.autoLevelCapping}}},r.getMaxLevel=function(v){var m=this,p=this.hls.levels;if(!p.length)return-1;var h=p.filter(function(u,f){return G.isLevelAllowed(f,m.restrictedLevels)&&f<=v});return this.clientRect=null,G.getMaxLevelByMediaSize(h,this.mediaWidth,this.mediaHeight)},r.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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var v=this.media,m={width:0,height:0};if(v){var p=v.getBoundingClientRect();m.width=p.width,m.height=p.height,!m.width&&!m.height&&(m.width=p.right-p.left||v.width||0,m.height=p.bottom-p.top||v.height||0)}return this.clientRect=m,m},G.isLevelAllowed=function(v,m){return m===void 0&&(m=[]),m.indexOf(v)===-1},G.getMaxLevelByMediaSize=function(v,m,p){if(!v||!v.length)return-1;for(var h=function(s,a){return a?s.width!==a.width||s.height!==a.height:!0},u=v.length-1,f=0;f=m||l.height>=p)&&h(l,v[f+1])){u=f;break}}return u},U(G,[{key:"mediaWidth",get:function(){return this.getDimensions().width*G.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*G.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var v=1;try{v=self.devicePixelRatio}catch(m){}return v}}]),G}();J.default=K},"./src/controller/cmcd-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/events.ts"),j=P("./src/types/cmcd.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/utils/logger.ts");function G(u,f){for(var l=0;l=u.length?{done:!0}:{done:!1,value:u[o++]}}}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 v(u,f){if(!u)return;if(typeof u=="string")return m(u,f);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return m(u,f)}function m(u,f){(f==null||f>u.length)&&(f=u.length);for(var l=0,o=new Array(f);ls&&(s=w.bitrate)}return s>0?s:NaN},f.getBufferLength=function(o){var s=this.hls.media,a=o===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!a||!s)return NaN;var O=U.BufferHelper.bufferInfo(a,s.currentTime,this.config.maxBufferHole);return O.len*1e3},f.createPlaylistLoader=function(){var o=this.config.pLoader,s=this.applyPlaylistData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},f.createFragmentLoader=function(){var o=this.config.fLoader,s=this.applyFragmentData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},u.uuid=function(){var o=URL.createObjectURL(new Blob),s=o.toString();return URL.revokeObjectURL(o),s.substr(s.lastIndexOf("/")+1)},u.serialize=function(o){for(var s=[],a=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},O=function(F){return Math.round(F)},E=function(F){return O(F/100)*100},w=function(F){return encodeURIComponent(F)},D={br:O,d:O,bl:E,dl:E,mtp:E,nor:w,rtp:E,tb:O},R=Object.keys(o||{}).sort(),A=L(R),C;!(C=A()).done;){var T=C.value,d=o[T];if(!a(d))continue;if(T==="v"&&d===1)continue;if(T=="pr"&&d===1)continue;var S=D[T];S&&(d=S(d));var y=typeof d,b=void 0;T==="ot"||T==="sf"||T==="st"?b=T+"="+d:y==="boolean"?b=T:y==="number"?b=T+"="+d:b=T+"="+JSON.stringify(d),s.push(b)}return s.join(",")},u.toHeaders=function(o){for(var s=Object.keys(o),a={},O=["Object","Request","Session","Status"],E=[{},{},{},{}],w={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},D=0,R=s;DL){this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=L-this._requestLicenseFailureCount+1;U.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(s,a)}break}},u._generateLicenseRequestChallenge=function(l,o){switch(l.mediaKeySystemDomain){case K.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+l.mediaKeySystemDomain)},u._requestLicense=function(l,o){U.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){U.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var a=this.getLicenseServerUrl(s.mediaKeySystemDomain),O=this._createLicenseXhr(a,l,o);U.logger.log("Sending license request to URL: "+a);var E=this._generateLicenseRequestChallenge(s,l);O.send(E)}catch(w){U.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},u.onMediaAttached=function(l,o){if(!this._emeEnabled)return;var s=o.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},u.onMediaDetached=function(){var l=this._media,o=this._mediaKeysList;if(!l)return;l.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return l.setMediaKeys(null)}).catch(function(){})},u.onManifestParsed=function(l,o){if(!this._emeEnabled)return;var s=o.levels.map(function(O){return O.audioCodec}).filter(function(O){return!!O}),a=o.levels.map(function(O){return O.videoCodec}).filter(function(O){return!!O});this._attemptKeySystemAccess(K.KeySystems.WIDEVINE,s,a)},r(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}();J.default=p},"./src/controller/fps-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=function(){function K(r){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=r,this.registerListeners()}var G=K.prototype;return G.setStreamController=function(L){this.streamController=L},G.registerListeners=function(){this.hls.on(X.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},G.unregisterListeners=function(){this.hls.off(X.Events.MEDIA_ATTACHING,this.onMediaAttaching)},G.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},G.onMediaAttaching=function(L,v){var m=this.hls.config;if(m.capLevelOnFPSDrop){var p=v.media instanceof self.HTMLVideoElement?v.media:null;this.media=p,p&&typeof p.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),m.fpsDroppedMonitoringPeriod)}},G.checkFPS=function(L,v,m){var p=performance.now();if(v){if(this.lastTime){var h=p-this.lastTime,u=m-this.lastDroppedFrames,f=v-this.lastDecodedFrames,l=1e3*u/h,o=this.hls;if(o.trigger(X.Events.FPS_DROP,{currentDropped:u,currentDecoded:f,totalDroppedFrames:m}),l>0&&u>o.config.fpsDroppedMonitoringThreshold*f){var s=o.currentLevel;j.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=s)&&(s=s-1,o.trigger(X.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:o.currentLevel}),o.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=p,this.lastDroppedFrames=m,this.lastDecodedFrames=v}},G.checkFPSInterval=function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var v=L.getVideoPlaybackQuality();this.checkFPS(L,v.totalVideoFrames,v.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)},K}();J.default=U},"./src/controller/fragment-finders.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFragmentByPDT",function(){return U}),P.d(J,"findFragmentByPTS",function(){return K}),P.d(J,"fragmentWithinToleranceTest",function(){return G}),P.d(J,"pdtWithinToleranceTest",function(){return r}),P.d(J,"findFragWithCC",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/binary-search.ts");function U(v,m,p){if(m===null||!Array.isArray(v)||!v.length||!Object(X.isFiniteNumber)(m))return null;var h=v[0].programDateTime;if(m<(h||0))return null;var u=v[v.length-1].endProgramDateTime;if(m>=(u||0))return null;p=p||0;for(var f=0;fv&&p.start?-1:0}function r(v,m,p){var h=Math.min(m,p.duration+(p.deltaPTS?p.deltaPTS:0))*1e3,u=p.endProgramDateTime||0;return u-h>v}function L(v,m){return j.default.search(v,function(p){return p.ccm?-1:0})}},"./src/controller/fragment-tracker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"FragmentState",function(){return U}),P.d(J,"FragmentTracker",function(){return K});var X=P("./src/events.ts"),j=P("./src/types/loader.ts"),U;(function(L){L.NOT_LOADED="NOT_LOADED",L.BACKTRACKED="BACKTRACKED",L.APPENDING="APPENDING",L.PARTIAL="PARTIAL",L.OK="OK"})(U||(U={}));var K=function(){function L(m){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=m,this._registerListeners()}var v=L.prototype;return v._registerListeners=function(){var p=this.hls;p.on(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.on(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.on(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v._unregisterListeners=function(){var p=this.hls;p.off(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.off(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.off(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},v.getAppendedFrag=function(p,h){if(h===j.PlaylistLevelType.MAIN){var u=this.activeFragment,f=this.activeParts;if(!u)return null;if(f)for(var l=f.length;l--;){var o=f[l],s=o?o.end:u.appendedPTS;if(o.start<=p&&s!==void 0&&p<=s)return l>9&&(this.activeParts=f.slice(l-9)),o}else if(u.start<=p&&u.appendedPTS!==void 0&&p<=u.appendedPTS)return u}return this.getBufferedFrag(p,h)},v.getBufferedFrag=function(p,h){for(var u=this.fragments,f=Object.keys(u),l=f.length;l--;){var o=u[f[l]];if((o==null?void 0:o.body.type)===h&&o.buffered){var s=o.body;if(s.start<=p&&p<=s.end)return s}}return null},v.detectEvictedFragments=function(p,h,u){var f=this;Object.keys(this.fragments).forEach(function(l){var o=f.fragments[l];if(!o)return;if(!o.buffered){o.body.type===u&&f.removeFragment(o.body);return}var s=o.range[p];if(!s)return;s.time.some(function(a){var O=!f.isTimeBuffered(a.startPTS,a.endPTS,h);return O&&f.removeFragment(o.body),O})})},v.detectPartialFragments=function(p){var h=this,u=this.timeRanges,f=p.frag,l=p.part;if(!u||f.sn==="initSegment")return;var o=r(f),s=this.fragments[o];if(!s)return;Object.keys(u).forEach(function(a){var O=f.elementaryStreams[a];if(!O)return;var E=u[a],w=l!==null||O.partial===!0;s.range[a]=h.getBufferedTimes(f,l,w,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},v.fragBuffered=function(p){var h=r(p),u=this.fragments[h];u&&(u.backtrack=u.loaded=null,u.buffered=!0)},v.getBufferedTimes=function(p,h,u,f){for(var l={time:[],partial:u},o=h?h.start:p.start,s=h?h.end:p.end,a=p.minEndPTS||s,O=p.maxStartPTS||o,E=0;E=w&&a<=D){l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});break}else if(ow)l.partial=!0,l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});else if(s<=w)break}return l},v.getPartialFragment=function(p){var h=null,u,f,l,o=0,s=this.bufferPadding,a=this.fragments;return Object.keys(a).forEach(function(O){var E=a[O];if(!E)return;G(E)&&(f=E.body.start-s,l=E.body.end+s,p>=f&&p<=l&&(u=Math.min(p-f,l-p),o<=u&&(h=E.body,o=u)))}),h},v.getState=function(p){var h=r(p),u=this.fragments[h];return u?u.buffered?G(u)?U.PARTIAL:U.OK:u.backtrack?U.BACKTRACKED:U.APPENDING:U.NOT_LOADED},v.backtrack=function(p,h){var u=r(p),f=this.fragments[u];if(!f||f.backtrack)return null;var l=f.backtrack=h||f.loaded;return f.loaded=null,l},v.getBacktrackData=function(p){var h=r(p),u=this.fragments[h];if(u){var f,l=u.backtrack;if(l!=null&&(f=l.payload)!==null&&f!==void 0&&f.byteLength)return l;this.removeFragment(p)}return null},v.isTimeBuffered=function(p,h,u){for(var f,l,o=0;o=f&&h<=l)return!0;if(h<=f)return!1}return!1},v.onFragLoaded=function(p,h){var u=h.frag,f=h.part;if(u.sn==="initSegment"||u.bitrateTest||f)return;var l=r(u);this.fragments[l]={body:u,loaded:h,backtrack:null,buffered:!1,range:Object.create(null)}},v.onBufferAppended=function(p,h){var u=this,f=h.frag,l=h.part,o=h.timeRanges;if(f.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=f,l){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(l)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(a){var O=o[a];if(u.detectEvictedFragments(a,O),!l)for(var E=0;Ep&&f.removeFragment(s)}})},v.removeFragment=function(p){var h=r(p);p.stats.loaded=0,p.clearElementaryStreamInfo(),delete this.fragments[h]},v.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},L}();function G(L){var v,m;return L.buffered&&(((v=L.range.video)===null||v===void 0?void 0:v.partial)||((m=L.range.audio)===null||m===void 0?void 0:m.partial))}function r(L){return L.type+"_"+L.level+"_"+L.urlId+"_"+L.sn}},"./src/controller/gap-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"STALL_MINIMUM_DURATION_MS",function(){return G}),P.d(J,"MAX_START_GAP_JUMP",function(){return r}),P.d(J,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return L}),P.d(J,"SKIP_BUFFER_RANGE_START",function(){return v}),P.d(J,"default",function(){return m});var X=P("./src/utils/buffer-helper.ts"),j=P("./src/errors.ts"),U=P("./src/events.ts"),K=P("./src/utils/logger.ts"),G=250,r=2,L=.1,v=.05,m=function(){function p(u,f,l,o){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=u,this.media=f,this.fragmentTracker=l,this.hls=o}var h=p.prototype;return h.destroy=function(){this.hls=this.fragmentTracker=this.media=null},h.poll=function(f){var l=this.config,o=this.media,s=this.stalled,a=o.currentTime,O=o.seeking,E=this.seeking&&!O,w=!this.seeking&&O;if(this.seeking=O,a!==f){if(this.moved=!0,s!==null){if(this.stallReported){var D=self.performance.now()-s;K.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(D)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||E)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!X.BufferHelper.getBuffered(o).length)return;var R=X.BufferHelper.bufferInfo(o,a,0),A=R.len>0,C=R.nextStart||0;if(!A&&!C)return;if(O){var T=R.len>r,d=!C||C-a>r&&!this.fragmentTracker.getPartialFragment(a);if(T||d)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var S,y=Math.max(C,R.start||0)-a,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=b==null||((S=b.details)===null||S===void 0)?void 0:S.live,F=B?b.details.targetduration*2:r;if(y>0&&y<=F){this._trySkipBufferHole(null);return}}var _=self.performance.now();if(s===null){this.stalled=_;return}var M=_-s;!O&&M>=G&&this._reportStall(R.len);var I=X.BufferHelper.bufferInfo(o,a,l.maxBufferHole);this._tryFixBufferStall(I,M)},h._tryFixBufferStall=function(f,l){var o=this.config,s=this.fragmentTracker,a=this.media,O=a.currentTime,E=s.getPartialFragment(O);if(E){var w=this._trySkipBufferHole(E);if(w)return}f.len>o.maxBufferHole&&l>o.highBufferWatchdogPeriod*1e3&&(K.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(f){var l=this.hls,o=this.media,s=this.stallReported;s||(this.stallReported=!0,K.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+f+")"),l.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},h._trySkipBufferHole=function(f){for(var l=this.config,o=this.hls,s=this.media,a=s.currentTime,O=0,E=X.BufferHelper.getBuffered(s),w=0;w=O&&a.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,o)),D=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20;p.playbackRate=Math.min(w,Math.max(1,D))}else p.playbackRate!==1&&p.playbackRate!==0&&(p.playbackRate=1)},v.estimateLiveEdge=function(){var p=this.levelDetails;return p===null?null:p.edge+p.age},v.computeLatency=function(){var p=this.estimateLiveEdge();return p===null?null:p-this.currentTime},G(L,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var p=this.config,h=this.levelDetails;return p.liveMaxLatencyDuration!==void 0?p.liveMaxLatencyDuration:h?p.liveMaxLatencyDurationCount*h.targetduration:0}},{key:"targetLatency",get:function(){var p=this.levelDetails;if(p===null)return null;var h=p.holdBack,u=p.partHoldBack,f=p.targetduration,l=this.config,o=l.liveSyncDuration,s=l.liveSyncDurationCount,a=l.lowLatencyMode,O=this.hls.userConfig,E=a&&u||h;(O.liveSyncDuration||O.liveSyncDurationCount||E===0)&&(E=o!==void 0?o:s*f);var w=f,D=1;return E+Math.min(this.stallCount*D,w)}},{key:"liveSyncPosition",get:function(){var p=this.estimateLiveEdge(),h=this.targetLatency,u=this.levelDetails;if(p===null||h===null||u===null)return null;var f=u.edge,l=p-h-this.edgeStalled,o=f-u.totalduration,s=f-(this.config.lowLatencyMode&&u.partTarget||u.targetduration);return Math.min(Math.max(o,l),s)}},{key:"drift",get:function(){var p=this.levelDetails;return p===null?1:p.drift}},{key:"edgeStalled",get:function(){var p=this.levelDetails;if(p===null)return 0;var h=(this.config.lowLatencyMode&&p.partTarget||p.targetduration)*3;return Math.max(p.age-h,0)}},{key:"forwardBufferLength",get:function(){var p=this.media,h=this.levelDetails;if(!p||!h)return 0;var u=p.buffered.length;return u?p.buffered.end(u-1):h.edge-this.currentTime}}]),L}()},"./src/controller/level-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return l});var X=P("./src/types/level.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/codecs.ts"),G=P("./src/controller/level-helper.ts"),r=P("./src/controller/base-playlist-controller.ts"),L=P("./src/types/loader.ts");function v(){return v=Object.assign||function(o){for(var s=1;s0){C=D[0].bitrate,D.sort(function(M,I){return M.bitrate-I.bitrate}),this._levels=D;for(var B=0;Bthis.hls.config.fragLoadingMaxRetry&&(T=w.frag.level)):T=w.frag.level}break;case U.ErrorDetails.LEVEL_LOAD_ERROR:case U.ErrorDetails.LEVEL_LOAD_TIMEOUT:D&&(D.deliveryDirectives&&(C=!1),T=D.level),A=!0;break;case U.ErrorDetails.REMUX_ALLOC_ERROR:T=w.level,A=!0;break}T!==void 0&&this.recoverLevel(w,T,A,C)},a.recoverLevel=function(E,w,D,R){var A=E.details,C=this._levels[w];if(C.loadError++,D){var T=this.retryLoadingOrFail(E);if(T)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var d=C.url.length;if(d>1&&C.loadError1){var R=(w.urlId+1)%D;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(A){A.urlId=R}),this.level=E}},a.onFragLoaded=function(E,w){var D=w.frag;if(D!==void 0&&D.type===L.PlaylistLevelType.MAIN){var R=this._levels[D.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},a.onLevelLoaded=function(E,w){var D,R=w.level,A=w.details,C=this._levels[R];if(!C){var T;this.warn("Invalid level index "+R),(T=w.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(A.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(R,w,C.details)):(D=w.deliveryDirectives)!==null&&D!==void 0&&D.skip&&(A.deltaUpdateFailed=!0)},a.onAudioTrackSwitched=function(E,w){var D=this.hls.levels[this.currentLevelIndex];if(!D)return;if(D.audioGroupIds){for(var R=-1,A=this.hls.audioTracks[w.id].groupId,C=0;C0){var R=D.urlId,A=D.url[R];if(E)try{A=E.addDirectives(A)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+w+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+A),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:A,level:w,id:R,deliveryDirectives:E||null})}},a.removeLevel=function(E,w){var D=function(C,T){return T!==w},R=this._levels.filter(function(A,C){return C!==E?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(D),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(D)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(D)),A.urlId=0,!0):!1}).map(function(A,C){var T=A.details;return T!=null&&T.fragments&&T.fragments.forEach(function(d){d.level=C}),A});this._levels=R,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:R})},p(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var w,D=this._levels;if(D.length===0)return;if(this.currentLevelIndex===E&&(w=D[E])!==null&&w!==void 0&&w.details)return;if(E<0||E>=D.length){var R=E<0;if(this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.OTHER_ERROR,details:U.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,D.length-1)}this.clearTimer();var A=this.currentLevelIndex,C=D[A],T=D[E];this.log("switching to level "+E+" from "+A),this.currentLevelIndex=E;var d=v({},T,{level:E,maxBitrate:T.maxBitrate,uri:T.uri,urlId:T.urlId});delete d._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,d);var S=T.details;if(!S||S.live){var y=this.switchParams(T.uri,C==null?void 0:C.details);this.loadPlaylist(y)}}},{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}(r.default)},"./src/controller/level-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"addGroupId",function(){return U}),P.d(J,"assignTrackIdsByGroup",function(){return K}),P.d(J,"updatePTS",function(){return G}),P.d(J,"updateFragPTSDTS",function(){return L}),P.d(J,"mergeDetails",function(){return v}),P.d(J,"mapPartIntersection",function(){return m}),P.d(J,"mapFragmentIntersection",function(){return p}),P.d(J,"adjustSliding",function(){return h}),P.d(J,"addSliding",function(){return u}),P.d(J,"computeReloadInterval",function(){return f}),P.d(J,"getFragmentWithSN",function(){return l}),P.d(J,"getPartWith",function(){return o});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts");function U(s,a,O){switch(a){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(O);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(O);break}}function K(s){var a={};s.forEach(function(O){var E=O.groupId||"";O.id=a[E]=a[E]||0,a[E]++})}function G(s,a,O){var E=s[a],w=s[O];r(E,w)}function r(s,a){var O=a.startPTS;if(Object(X.isFiniteNumber)(O)){var E=0,w;a.sn>s.sn?(E=O-s.start,w=s):(E=s.start-O,w=a),w.duration!==E&&(w.duration=E)}else if(a.sn>s.sn){var D=s.cc===a.cc;D&&s.minEndPTS?a.start=s.start+(s.minEndPTS-s.start):a.start=s.start+s.duration}else a.start=Math.max(s.start-a.duration,0)}function L(s,a,O,E,w,D){var R=E-O;R<=0&&(j.logger.warn("Fragment should have a positive duration",a),E=O+a.duration,D=w+a.duration);var A=O,C=E,T=a.startPTS,d=a.endPTS;if(Object(X.isFiniteNumber)(T)){var S=Math.abs(T-O);Object(X.isFiniteNumber)(a.deltaPTS)?a.deltaPTS=Math.max(S,a.deltaPTS):a.deltaPTS=S,A=Math.max(O,T),O=Math.min(O,T),w=Math.min(w,a.startDTS),C=Math.min(E,d),E=Math.max(E,d),D=Math.max(D,a.endDTS)}a.duration=E-O;var y=O-a.start;a.appendedPTS=E,a.start=a.startPTS=O,a.maxStartPTS=A,a.startDTS=w,a.endPTS=E,a.minEndPTS=C,a.endDTS=D;var b=a.sn;if(!s||bs.endSN)return 0;var B,F=b-s.startSN,_=s.fragments;for(_[F]=a,B=F;B>0;B--)r(_[B],_[B-1]);for(B=F;B<_.length-1;B++)r(_[B],_[B+1]);return s.fragmentHint&&r(_[_.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,y}function v(s,a){for(var O=null,E=s.fragments,w=E.length-1;w>=0;w--){var D=E[w].initSegment;if(D){O=D;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,A;if(p(s,a,function(B,F){B.relurl&&(R=B.cc-F.cc),Object(X.isFiniteNumber)(B.startPTS)&&Object(X.isFiniteNumber)(B.endPTS)&&(F.start=F.startPTS=B.startPTS,F.startDTS=B.startDTS,F.appendedPTS=B.appendedPTS,F.maxStartPTS=B.maxStartPTS,F.endPTS=B.endPTS,F.endDTS=B.endDTS,F.minEndPTS=B.minEndPTS,F.duration=B.endPTS-B.startPTS,F.duration&&(A=F),a.PTSKnown=a.alignedSliding=!0),F.elementaryStreams=B.elementaryStreams,F.loader=B.loader,F.stats=B.stats,F.urlId=B.urlId,B.initSegment&&(F.initSegment=B.initSegment,O=B.initSegment)}),O){var C=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;C.forEach(function(B){var F;(!B.initSegment||B.initSegment.relurl===((F=O)===null||F===void 0?void 0:F.relurl))&&(B.initSegment=O)})}if(a.skippedSegments&&(a.deltaUpdateFailed=a.fragments.some(function(B){return!B}),a.deltaUpdateFailed)){j.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var T=a.skippedSegments;T--;)a.fragments.shift();a.startSN=a.fragments[0].sn,a.startCC=a.fragments[0].cc}var d=a.fragments;if(R){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var S=0;S=E.length)return;u(a,E[O].start)}function u(s,a){if(a){for(var O=s.fragments,E=s.skippedSegments;E0&&w0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),C=T),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var C,T=this.levels,d=this.level,S=T==null||((C=T[d])===null||C===void 0)?void 0:C.details;if(S&&(!S.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(S))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var y,b=self.performance.now(),B=this.retryDate;(!B||b>=B||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var C,T,d=this.hls,S=this.levelLastLoaded,y=this.levels,b=this.media,B=d.config,F=d.nextLoadLevel;if(S===null||!b&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!y||!y[F])return;var _=y[F];this.level=d.nextLoadLevel=F;var M=_.details;if(!M||this.state===j.State.WAITING_LEVEL||M.live&&this.levelLastLoaded!==F){this.state=j.State.WAITING_LEVEL;return}var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,L.PlaylistLevelType.MAIN);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(_.maxBitrate);if(g>=H)return;if(this._streamEnded(I,M)){var $={};this.altAudio&&($.type="video"),this.hls.trigger(K.Events.BUFFER_EOS,$),this.state=j.State.ENDED;return}var ne=I.end,se=this.getNextFragment(ne,M);if(this.couldBacktrack&&!this.fragPrevious&&se&&se.sn!=="initSegment"){var Oe=se.sn-M.startSN;Oe>1&&(se=M.fragments[Oe-1],this.fragmentTracker.removeFragment(se))}if(se&&this.fragmentTracker.getState(se)===r.FragmentState.OK&&this.nextLoadPosition>ne){var ge=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,ge,L.PlaylistLevelType.MAIN),se=this.getNextFragment(this.nextLoadPosition,M)}if(!se)return;se.initSegment&&!se.initSegment.data&&!this.bitrateTest&&(se=se.initSegment),((C=se.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((T=se.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(se,M):this.loadFragment(se,M,ne)},R.loadFragment=function(C,T,d){var S,y=this.fragmentTracker.getState(C);if(this.fragCurrent=C,y===r.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(C);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else y=r.FragmentState.NOT_LOADED}y===r.FragmentState.NOT_LOADED||y===r.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,C,T,d)):y===r.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((S=this.media)===null||S===void 0?void 0:S.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(C){var T=this.fragmentTracker.getAppendedFrag(C,L.PlaylistLevelType.MAIN);return T&&"fragment"in T?T.fragment:T},R.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,L.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var C=this.levels,T=this.media;if(T!=null&&T.readyState){var d,S=this.getAppendedFrag(T.currentTime);if(S&&S.start>1&&this.flushMainBuffer(0,S.start-1),!T.paused&&C){var y=this.hls.nextLoadLevel,b=C[y],B=this.fragLastKbps;B&&this.fragCurrent?d=this.fragCurrent.duration*b.maxBitrate/(1e3*B)+1:d=0}else d=0;var F=this.getBufferedFrag(T.currentTime+d);if(F){var _=this.followingBufferedFrag(F);if(_){this.abortCurrentFrag();var M=_.maxStartPTS?_.maxStartPTS:_.start,I=_.duration,g=Math.max(F.end,M+Math.min(Math.max(I-this.config.maxFragLookUpTolerance,I*.5),I*.75));this.flushMainBuffer(g,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(C,T){w.prototype.flushMainBuffer.call(this,C,T,this.altAudio?"video":null)},R.onMediaAttached=function(C,T){w.prototype.onMediaAttached.call(this,C,T);var d=T.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),d.addEventListener("playing",this.onvplaying),d.addEventListener("seeked",this.onvseeked),this.gapController=new h.default(this.config,d,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var C=this.media,T=C?C.currentTime:null;Object(X.isFiniteNumber)(T)&&this.log("Media seeked to "+T.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(K.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(C,T){var d=!1,S=!1,y;T.levels.forEach(function(b){y=b.audioCodec,y&&(y.indexOf("mp4a.40.2")!==-1&&(d=!0),y.indexOf("mp4a.40.5")!==-1&&(S=!0))}),this.audioCodecSwitch=d&&S&&!Object(U.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=T.levels,this.startFragRequested=!1},R.onLevelLoading=function(C,T){var d=this.levels;if(!d||this.state!==j.State.IDLE)return;var S=d[T.level];(!S.details||S.details.live&&this.levelLastLoaded!==T.level||this.waitForCdnTuneIn(S.details))&&(this.state=j.State.WAITING_LEVEL)},R.onLevelLoaded=function(C,T){var d,S=this.levels,y=T.level,b=T.details,B=b.totalduration;if(!S){this.warn("Levels were reset while loading level "+y);return}this.log("Level "+y+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+B);var F=this.fragCurrent;F&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==T.level&&F.loader&&(this.state=j.State.IDLE,F.loader.abort()));var _=S[y],M=0;if(b.live||(d=_.details)!==null&&d!==void 0&&d.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;M=this.alignPlaylists(b,_.details)}if(_.details=b,this.levelLastLoaded=y,this.hls.trigger(K.Events.LEVEL_UPDATED,{details:b,level:y}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=j.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,M),this.tick()},R._handleFragmentLoadProgress=function(C){var T,d=C.frag,S=C.part,y=C.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+d.sn+" of level "+d.level+" will not be buffered");return}var B=b[d.level],F=B.details;if(!F){this.warn("Dropping fragment "+d.sn+" of level "+d.level+" after level details were reset");return}var _=B.videoCodec,M=F.PTSKnown||!F.live,I=(T=d.initSegment)===null||T===void 0?void 0:T.data,g=this._getAudioCodec(B),H=this.transmuxer=this.transmuxer||new m.default(this.hls,L.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),$=S?S.index:-1,ne=$!==-1,se=new p.ChunkMetadata(d.level,d.sn,d.stats.chunkCount,y.byteLength,$,ne),Oe=this.initPTS[d.cc];H.push(y,I,g,_,d,S,F.totalduration,M,se,Oe)},R.onAudioTrackSwitching=function(C,T){var d=this.altAudio,S=!!T.url,y=T.id;if(!S){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var B=this.hls;d&&B.trigger(K.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(K.Events.AUDIO_TRACK_SWITCHED,{id:y})}},R.onAudioTrackSwitched=function(C,T){var d=T.id,S=!!this.hls.audioTracks[d].url;if(S){var y=this.videoBuffer;y&&this.mediaBuffer!==y&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=y)}this.altAudio=S,this.tick()},R.onBufferCreated=function(C,T){var d=T.tracks,S,y,b=!1;for(var B in d){var F=d[B];if(F.id==="main"){if(y=B,S=F,B==="video"){var _=d[B];_&&(this.videoBuffer=_.buffer)}}else b=!0}b&&S?(this.log("Alternate track found, use "+y+".buffered to schedule main fragment loading"),this.mediaBuffer=S.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(C,T){var d=T.frag,S=T.part;if(d&&d.type!==L.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(d)){this.warn("Fragment "+d.sn+(S?" p: "+S.index:"")+" of level "+d.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var y=S?S.stats:d.stats;this.fragLastKbps=Math.round(8*y.total/(y.buffering.end-y.loading.first)),d.sn!=="initSegment"&&(this.fragPrevious=d),this.fragBufferedComplete(d,S)},R.onError=function(C,T){switch(T.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.MAIN,T);break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(T.fatal?(this.warn(""+T.details),this.state=j.State.ERROR):!T.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var d=!0,S=this.getFwdBufferInfo(this.media,L.PlaylistLevelType.MAIN);S&&S.len>.5&&(d=!this.reduceMaxBufferLength(S.len)),d&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var C=this.media,T=this.gapController;if(!C||!T||!C.readyState)return;var d=G.BufferHelper.getBuffered(C);!this.loadedmetadata&&d.length?(this.loadedmetadata=!0,this.seekToStartPos()):T.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(C,T){var d=T.type;if(d!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var S=(d===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(S,d,L.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(C,T){this.levels=T.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var C=this.media,T=C.currentTime,d=this.startPosition;if(d>=0&&T0&&(b1&&C.seeking===!1){var d=C.currentTime;if(G.BufferHelper.isBuffered(C,d)?T=this.getAppendedFrag(d):G.BufferHelper.isBuffered(C,d+.1)&&(T=this.getAppendedFrag(d+.1)),T){var S=this.fragPlaying,y=T.level;(!S||T.sn!==S.sn||S.level!==y||T.urlId!==S.urlId)&&(this.hls.trigger(K.Events.FRAG_CHANGED,{frag:T}),(!S||S.level!==y)&&this.hls.trigger(K.Events.LEVEL_SWITCHED,{level:y}),this.fragPlaying=T)}}},o(D,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);if(T)return T.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(T)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),D}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"SubtitleStreamController",function(){return s});var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/controller/fragment-finders.ts"),G=P("./src/utils/discontinuities.ts"),r=P("./src/controller/level-helper.ts"),L=P("./src/controller/fragment-tracker.ts"),v=P("./src/controller/base-stream-controller.ts"),m=P("./src/types/loader.ts"),p=P("./src/types/level.ts");function h(a,O){for(var E=0;E=T[y].start&&S<=T[y].end){d=T[y];break}var b=A.start+A.duration;d?d.end=b:(d={start:S,end:b},T.push(d)),this.fragmentTracker.fragBuffered(A)},E.onBufferFlushing=function(D,R){var A=R.startOffset,C=R.endOffset;if(A===0&&C!==Number.POSITIVE_INFINITY){var T=this.currentTrackId,d=this.levels;if(!d.length||!d[T]||!d[T].details)return;var S=d[T].details,y=S.targetduration,b=C-y;if(b<=0)return;R.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(B){for(var F=0;F=S.length||T!==d||!y)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(A=y.details)!==null&&A!==void 0&&A.live){var b=this.mainDetails;if(C.deltaUpdateFailed||!b)return;var B=b.fragments[0];if(!y.details)C.hasProgramDateTime&&b.hasProgramDateTime?Object(G.alignMediaPlaylistByPDT)(C,b):B&&Object(r.addSliding)(C,B.start);else{var F=this.alignPlaylists(C,y.details);F===0&&B&&Object(r.addSliding)(C,B.start)}}if(y.details=C,this.levelLastLoaded=T,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===v.State.IDLE){var _=Object(K.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);_||(this.warn("Subtitle playlist not aligned with playback"),y.details=void 0)}},E._handleFragmentLoadComplete=function(D){var R=D.frag,A=D.payload,C=R.decryptdata,T=this.hls;if(this.fragContextChanged(R))return;if(A&&A.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var d=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),C.key.buffer,C.iv.buffer).then(function(S){var y=performance.now();T.trigger(X.Events.FRAG_DECRYPTED,{frag:R,payload:S,stats:{tstart:d,tdecrypt:y}})})}},E.doTick=function(){if(!this.media){this.state=v.State.IDLE;return}if(this.state===v.State.IDLE){var D,R=this.currentTrackId,A=this.levels;if(!A.length||!A[R]||!A[R].details)return;var C=A[R].details,T=C.targetduration,d=this.config,S=this.media,y=U.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,S.currentTime-T,d.maxBufferHole),b=y.end,B=y.len,F=this.getMaxBufferLength()+T;if(B>F)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var _=C.fragments,M=_.length,I=C.edge,g,H=this.fragPrevious;if(b-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)},f.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},f.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 o=p(this.media.textTracks);o.forEach(function(s){Object(j.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(o,s){this.tracks=s.subtitleTracks},f.onSubtitleTrackLoaded=function(o,s){var a=s.id,O=s.details,E=this.trackId,w=this.tracksInGroup[E];if(!w){this.warn("Invalid subtitle track id "+a);return}var D=w.details;w.details=s.details,this.log("subtitle track "+a+" loaded ["+O.startSN+"-"+O.endSN+"]"),a===this.trackId&&(this.retryCount=0,this.playlistLoaded(a,s,D))},f.onLevelLoading=function(o,s){this.switchLevel(s.level)},f.onLevelSwitching=function(o,s){this.switchLevel(s.level)},f.switchLevel=function(o){var s=this.hls.levels[o];if(!(s!=null&&s.textGroupIds))return;var a=s.textGroupIds[s.urlId];if(this.groupId!==a){var O=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!a||R.groupId===a});this.tracksInGroup=E;var w=this.findTrackId(O==null?void 0:O.name)||this.findTrackId();this.groupId=a;var D={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+a+'" group-id'),this.hls.trigger(X.Events.SUBTITLE_TRACKS_UPDATED,D),w!==-1&&this.setSubtitleTrack(w,O)}},f.findTrackId=function(o){for(var s=this.tracksInGroup,a=0;a=O.length)return;this.clearTimer();var E=O[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,E){var w=E.id,D=E.groupId,R=D===void 0?"":D,A=E.name,C=E.type,T=E.url;this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:R,name:A,type:C,url:T});var d=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(d)}else this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:o})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,s=p(this.media.textTracks),a=0;a=0&&(C[0]=Math.min(C[0],O),C[1]=Math.max(C[1],E),R=!0,T/(E-O)>.5))return}if(R||D.push([O,E]),this.config.renderTextTracksNatively){var d=this.captionsTracks[a];this.Cues.newCue(d,O,E,w)}else{var S=this.Cues.newCue(null,O,E,w);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:S,track:a})}},o.onInitPtsFound=function(a,O){var E=this,w=O.frag,D=O.id,R=O.initPTS,A=O.timescale,C=this.unparsedVttFrags;D==="main"&&(this.initPTS[w.cc]=R,this.timescale[w.cc]=A),C.length&&(this.unparsedVttFrags=[],C.forEach(function(T){E.onFragLoaded(j.Events.FRAG_LOADED,T)}))},o.getExistingTrack=function(a){var O=this.media;if(O)for(var E=0;E>>8^A&255^99,L[w]=A,v[A]=w;var C=E[w],T=E[C],d=E[T],S=E[A]*257^A*16843008;p[w]=S<<24|S>>>8,h[w]=S<<16|S>>>16,u[w]=S<<8|S>>>24,f[w]=S,S=d*16843009^T*65537^C*257^w*16843008,o[A]=S<<24|S>>>8,s[A]=S<<16|S>>>16,a[A]=S<<8|S>>>24,O[A]=S,w?(w=C^E[E[E[d^C]]],D^=E[E[D]]):w=D=1}},G.expandKey=function(L){for(var v=this.uint8ArrayToUint32Array_(L),m=!0,p=0;p>>6)+1;var S=(a[O+2]&60)>>>2;if(S>d.length-1){s.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+S});return}return R=(a[O+2]&1)<<2,R|=(a[O+3]&192)>>>6,X.logger.log("manifest codec:"+E+", ADTS type:"+w+", samplingIndex:"+S),/firefox/i.test(C)?S>=6?(w=5,A=new Array(4),D=S-3):(w=2,A=new Array(2),D=S):C.indexOf("android")!==-1?(w=2,A=new Array(2),D=S):(w=5,A=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&S>=6?D=S-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(S>=6&&R===1||/vivaldi/i.test(C))||!E&&R===1)&&(w=2,A=new Array(2)),D=S)),A[0]=w<<3,A[0]|=(S&14)>>1,A[1]|=(S&1)<<7,A[1]|=R<<3,w===5&&(A[1]|=(D&14)>>1,A[2]=(D&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:d[S],channelCount:R,codec:"mp4a.40."+w,manifestCodec:T}}function G(s,a){return s[a]===255&&(s[a+1]&246)===240}function r(s,a){return s[a+1]&1?7:9}function L(s,a){return(s[a+3]&3)<<11|s[a+4]<<3|(s[a+5]&224)>>>5}function v(s,a){return a+5=s.length)return!1;var E=L(s,a);if(E<=O)return!1;var w=a+E;return w===s.length||m(s,w)}return!1}function u(s,a,O,E,w){if(!s.samplerate){var D=K(a,O,E,w);if(!D)return;s.config=D.config,s.samplerate=D.samplerate,s.channelCount=D.channelCount,s.codec=D.codec,s.manifestCodec=D.manifestCodec,X.logger.log("parsed codec:"+s.codec+", rate:"+D.samplerate+", channels:"+D.channelCount)}}function f(s){return 1024*9e4/s}function l(s,a,O,E,w){var D=r(s,a),R=L(s,a);if(R-=D,R>0){var A=O+E*w;return{headerLength:D,frameLength:R,stamp:A}}}function o(s,a,O,E,w){var D=f(s.samplerate),R=l(a,O,E,w,D);if(R){var A=R.frameLength,C=R.headerLength,T=R.stamp,d=C+A,S=Math.max(0,O+d-a.length),y;S?(y=new Uint8Array(d-C),y.set(a.subarray(O+C,a.length),0)):y=a.subarray(O+C,O+d);var b={unit:y,pts:T};return S||s.samples.push(b),{sample:b,length:d,missing:S}}}},"./src/demux/base-audio-demuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"initPTSFn",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/dummy-demuxed-track.ts"),K=P("./src/utils/mp4-tools.ts"),G=P("./src/utils/typed-array.ts"),r=function(){function v(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var m=v.prototype;return m.resetInitSegment=function(h,u,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},m.resetTimeStamp=function(){},m.resetContiguity=function(){},m.canParse=function(h,u){return!1},m.appendFrame=function(h,u,f){},m.demux=function(h,u){this.cachedData&&(h=Object(K.appendUint8Array)(this.cachedData,h),this.cachedData=null);var f=j.getID3Data(h,0),l=f?f.length:0,o,s,a=this._audioTrack,O=this._id3Track,E=f?j.getTimeStamp(f):void 0,w=h.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=L(E,u)),f&&f.length>0&&O.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),s=this.initPTS;lr?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,L=r>>3,r-=L>>3,this.bytesAvailable-=L,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},K.readBits=function(r){var L=Math.min(this.bitsAvailable,r),v=this.word>>>32-L;return r>32&&X.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=L,this.bitsAvailable>0?this.word<<=L:this.bytesAvailable>0&&this.loadWord(),L=r-L,L>0&&this.bitsAvailable?v<>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},K.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(r){for(var L=8,v=8,m,p=0;p0?w.subarray(R,R+A):void 0},K=function(w,D){var R=0;return R=(w[D]&127)<<21,R|=(w[D+1]&127)<<14,R|=(w[D+2]&127)<<7,R|=w[D+3]&127,R},G=function(w,D){return X(w,D)&&K(w,D+6)+10<=w.length-D},r=function(w){for(var D=m(w),R=0;R>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(d);break;case 12:case 13:S=w[B++],b+=String.fromCharCode((d&31)<<6|S&63);break;case 14:S=w[B++],y=w[B++],b+=String.fromCharCode((d&15)<<12|(S&63)<<6|(y&63)<<0);break;default:}}return b},s={decodeTextFrame:u},a;function O(){return!a&&typeof self.TextDecoder!="undefined"&&(a=new self.TextDecoder("utf-8")),a}},"./src/demux/mp3demuxer.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/demux/base-audio-demuxer.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/logger.ts"),K=P("./src/demux/mpegaudio.ts");function G(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,r(v,m)}function r(v,m){return r=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},r(v,m)}var L=function(v){G(m,v);function m(){return v.apply(this,arguments)||this}var p=m.prototype;return p.resetInitSegment=function(u,f,l){v.prototype.resetInitSegment.call(this,u,f,l),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:u,duration:l,inputTimeScale:9e4,dropped:0}},m.probe=function(u){if(!u)return!1;for(var f=j.getID3Data(u,0)||[],l=f.length,o=u.length;l0},G.demux=function(L){var v=L,m=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(v=Object(X.appendUint8Array)(this.remainderData,L));var p=Object(X.segmentValidRange)(v);this.remainderData=p.remainder,m.samples=p.valid||new Uint8Array}else m.samples=v;return{audioTrack:Object(j.dummyTrack)(),avcTrack:m,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.flush=function(){var L=Object(j.dummyTrack)();return L.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:L,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.demuxSampleAes=function(L,v,m){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},G.destroy=function(){},K}();U.minProbeByteLength=1024,J.default=U},"./src/demux/mpegaudio.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"appendFrame",function(){return r}),P.d(J,"parseHeader",function(){return L}),P.d(J,"isHeaderPattern",function(){return v}),P.d(J,"isHeader",function(){return m}),P.d(J,"canParse",function(){return p}),P.d(J,"probe",function(){return h});var X=null,j=[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],U=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],K=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],G=[0,1,1,4];function r(u,f,l,o,s){if(l+24>f.length)return;var a=L(f,l);if(a&&l+a.frameLength<=f.length){var O=a.samplesPerFrame*9e4/a.sampleRate,E=o+s*O,w={unit:f.subarray(l,l+a.frameLength),pts:E,dts:E};return u.config=[],u.channelCount=a.channelCount,u.samplerate=a.sampleRate,u.samples.push(w),{sample:w,length:a.frameLength,missing:0}}}function L(u,f){var l=u[f+1]>>3&3,o=u[f+1]>>1&3,s=u[f+2]>>4&15,a=u[f+2]>>2&3;if(l!==1&&s!==0&&s!==15&&a!==3){var O=u[f+2]>>1&1,E=u[f+3]>>6,w=l===3?3-o:o===3?3:4,D=j[w*14+s-1]*1e3,R=l===3?0:l===2?1:2,A=U[R*3+a],C=E===3?1:2,T=K[l][o],d=G[o],S=T*8*d,y=Math.floor(T*D/A+O)*d;if(X===null){var b=navigator.userAgent||"",B=b.match(/Chrome\/(\d+)/i);X=B?parseInt(B[1]):0}var F=!!X&&X<=87;return F&&o===2&&D>=224e3&&E===0&&(u[f+3]=u[f+3]|128),{sampleRate:A,channelCount:C,frameLength:y,samplesPerFrame:S}}}function v(u,f){return u[f]===255&&(u[f+1]&224)===224&&(u[f+1]&6)!==0}function m(u,f){return f+1=L.length){m();return}if(L[v].unit.length<32)continue;var p=this.decrypter.isSync();if(this.decryptAacSample(L,v,m,p),!p)return}},G.getAvcEncryptedData=function(L){for(var v=Math.floor((L.length-48)/160)*16+16,m=new Int8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)m.set(L.subarray(h,h+16),p);return m},G.getAvcDecryptedUnit=function(L,v){for(var m=new Uint8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)L.set(m.subarray(p,p+16),h);return L},G.decryptAvcSample=function(L,v,m,p,h,u){var f=Object(j.discardEPB)(h.data),l=this.getAvcEncryptedData(f),o=this;this.decryptBuffer(l.buffer,function(s){h.data=o.getAvcDecryptedUnit(f,s),u||o.decryptAvcSamples(L,v,m+1,p)})},G.decryptAvcSamples=function(L,v,m,p){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;v++,m=0){if(v>=L.length){p();return}for(var h=L[v].units;!(m>=h.length);m++){var u=h[m];if(u.data.length<=48||u.type!==1&&u.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(L,v,m,p,u,f),!f)return}}},K}();J.default=U},"./src/demux/transmuxer-interface.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./node_modules/webworkify-webpack/index.js"),j=P.n(X),U=P("./src/events.ts"),K=P("./src/demux/transmuxer.ts"),G=P("./src/utils/logger.ts"),r=P("./src/errors.ts"),L=P("./src/utils/mediasource-helper.ts"),v=P("./node_modules/eventemitter3/index.js"),m=P.n(v),p=Object(L.getMediaSource)()||{isTypeSupported:function(){return!1}},h=function(){function u(l,o,s,a){var O=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=l,this.id=o,this.onTransmuxComplete=s,this.onFlush=a;var E=l.config,w=function(T,d){d=d||{},d.frag=O.frag,d.id=O.id,l.trigger(T,d)};this.observer=new v.EventEmitter,this.observer.on(U.Events.FRAG_DECRYPTED,w),this.observer.on(U.Events.ERROR,w);var D={mp4:p.isTypeSupported("video/mp4"),mpeg:p.isTypeSupported("audio/mpeg"),mp3:p.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){G.logger.log("demuxing in webworker");var A;try{A=this.worker=X("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(C){l.trigger(U.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},A.postMessage({cmd:"init",typeSupported:D,vendor:R,id:o,config:JSON.stringify(E)})}catch(C){G.logger.warn("Error in worker:",C),G.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new K.default(this.observer,D,E,R,o),this.worker=null}}else this.transmuxer=new K.default(this.observer,D,E,R,o)}var f=u.prototype;return f.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var a=this.observer;a&&a.removeAllListeners(),this.observer=null},f.push=function(o,s,a,O,E,w,D,R,A,C){var T=this;A.transmuxing.start=self.performance.now();var d=this.transmuxer,S=this.worker,y=w?w.start:E.start,b=E.decryptdata,B=this.frag,F=!(B&&E.cc===B.cc),_=!(B&&A.level===B.level),M=B?A.sn-B.sn:-1,I=this.part?A.part-this.part.index:1,g=!_&&(M===1||M===0&&I===1),H=self.performance.now();(_||M||E.stats.parsing.start===0)&&(E.stats.parsing.start=H),w&&(I||!g)&&(w.stats.parsing.start=H);var $=new K.TransmuxState(F,g,R,_,y);if(!g||F){G.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+` + Time to underbuffer: `+F.toFixed(3)+" s"),s.nextLoadLevel=M,this.bwEstimator.sample(R,w.loaded),this.clearTimer(),l.loader&&(this.fragCurrent=this.partCurrent=null,l.loader.abort()),s.trigger(U.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:l,part:o,stats:w})},u.onFragLoaded=function(l,o){var s=o.frag,a=o.part;if(s.type===r.PlaylistLevelType.MAIN&&Object(X.isFiniteNumber)(s.sn)){var O=a?a.stats:s.stats,E=a?a.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[s.level],D=(w.loaded?w.loaded.bytes:0)+O.loaded,R=(w.loaded?w.loaded.duration:0)+E;w.loaded={bytes:D,duration:R},w.realBitrate=Math.round(8*D/R)}if(s.bitrateTest){var A={stats:O,frag:s,part:a,id:s.type};this.onFragBuffered(U.Events.FRAG_BUFFERED,A),s.bitrateTest=!1}}},u.onFragBuffered=function(l,o){var s=o.frag,a=o.part,O=a?a.stats:s.stats;if(O.aborted)return;if(s.type!==r.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=O.parsing.end-O.loading.start;this.bwEstimator.sample(E,O.loaded),O.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},u.onError=function(l,o){switch(o.details){case G.ErrorDetails.FRAG_LOAD_ERROR:case G.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},u.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},u.getNextABRAutoLevel=function(){var l=this.fragCurrent,o=this.partCurrent,s=this.hls,a=s.maxAutoLevel,O=s.config,E=s.minAutoLevel,w=s.media,D=o?o.duration:l?l.duration:0,R=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():O.abrEwmaDefaultEstimate,T=(K.BufferHelper.bufferInfo(w,R,O.maxBufferHole).end-R)/A,c=this.findBestLevel(C,E,a,T,O.abrBandWidthFactor,O.abrBandWidthUpFactor);if(c>=0)return c;L.logger.trace((T?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var S=D?Math.min(D,O.maxStarvationDelay):O.maxStarvationDelay,y=O.abrBandWidthFactor,b=O.abrBandWidthUpFactor;if(!T){var B=this.bitrateTestDelay;if(B){var F=D?Math.min(D,O.maxLoadingDelay):O.maxLoadingDelay;S=F-B,L.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*S)+" ms"),y=b=1}}return c=this.findBestLevel(C,E,a,T+S,y,b),Math.max(c,0)},u.findBestLevel=function(l,o,s,a,O,E){for(var w,D=this.fragCurrent,R=this.partCurrent,A=this.lastLoadedFragLevel,C=this.hls.levels,T=C[A],c=!!(T!=null&&(w=T.details)!==null&&w!==void 0&&w.live),S=T==null?void 0:T.codecSet,y=R?R.duration:D?D.duration:0,b=s;b>=o;b--){var B=C[b];if(!B||S&&B.codecSet!==S)continue;var F=B.details,_=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||y,M=void 0;b<=A?M=O*l:M=E*l;var I=C[b].maxBitrate,g=I*_/M;if(L.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(M)+"/"+I+"/"+_+"/"+a+"/"+g),M>I&&(!g||c&&!this.bitrateTestDelay||g0&&T===-1?(this.log("Override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=T,this.tick()},A.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var T,c=this.levels,S=this.trackId,y=c==null||((T=c[S])===null||T===void 0)?void 0:T.details;if(y){if(this.waitForCdnTuneIn(y))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var b,B=performance.now(),F=this.retryDate;(!F||B>=F||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var _=this.waitingData;if(_){var M=_.frag,I=_.part,g=_.cache,H=_.complete;if(this.initPTS[M.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var $=g.flush(),ne={frag:M,part:I,payload:$,networkDetails:null};this._handleFragmentLoadProgress(ne),H&&D.prototype._handleFragmentLoadComplete.call(this,ne)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+M.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var se=this.getLoadPosition(),Oe=K.BufferHelper.bufferInfo(this.mediaBuffer,se,this.config.maxBufferHole),ge=Object(u.fragmentWithinToleranceTest)(Oe.end,this.config.maxFragLookUpTolerance,M);ge<0&&(o.logger.log("Waiting fragment cc ("+M.cc+") @ "+M.start+" cancelled because another fragment at "+Oe.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var T=this.waitingData;T&&(this.fragmentTracker.removeFragment(T.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},A.onTickEnd=function(){var T=this.media;if(!T||!T.readyState)return;var c=this.mediaBuffer?this.mediaBuffer:T,S=c.buffered;!this.loadedmetadata&&S.length&&(this.loadedmetadata=!0),this.lastCurrentTime=T.currentTime},A.doTickIdle=function(){var T,c,S=this.hls,y=this.levels,b=this.media,B=this.trackId,F=S.config;if(!y||!y[B])return;if(!b&&(this.startFragRequested||!F.startFragPrefetch))return;var _=y[B],M=_.details;if(!M||M.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(M)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,v.ElementaryStreamTypes.AUDIO,L.PlaylistLevelType.AUDIO));var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,L.PlaylistLevelType.AUDIO);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(),$=this.audioSwitch;if(g>=H&&!$)return;if(!$&&this._streamEnded(I,M)){S.trigger(U.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var ne=M.fragments,se=ne[0].start,Oe=I.end;if($){var ge=this.getLoadPosition();Oe=ge,M.PTSKnown&&gese||I.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=se+.05))}var Te=this.getNextFragment(Oe,M);if(!Te){this.bufferFlushed=!0;return}((T=Te.decryptdata)===null||T===void 0?void 0:T.keyFormat)==="identity"&&!((c=Te.decryptdata)!==null&&c!==void 0&&c.key)?this.loadKey(Te,M):this.loadFragment(Te,M,Oe)},A.getMaxBufferLength=function(){var T=D.prototype.getMaxBufferLength.call(this),c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,L.PlaylistLevelType.MAIN);return c===null?T:Math.max(T,c.len)},A.onMediaDetaching=function(){this.videoBuffer=null,D.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(T,c){var S=c.audioTracks;this.resetTransmuxer(),this.levels=S.map(function(y){return new r.Level(y)})},A.onAudioTrackSwitching=function(T,c){var S=!!c.url;this.trackId=c.id;var y=this.fragCurrent;y!=null&&y.loader&&y.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),S?this.setInterval(E):this.resetTransmuxer(),S?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(T,c){this.mainDetails=c.details},A.onAudioTrackLoaded=function(T,c){var S,y=this.levels,b=c.details,B=c.id;if(!y){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var F=y[B],_=0;if(b.live||(S=F.details)!==null&&S!==void 0&&S.live){var M=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!M)return;!F.details&&b.hasProgramDateTime&&M.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(b,M),_=b.fragments[0].start):_=this.alignPlaylists(b,F.details)}F.details=b,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(F.details,_),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=j.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(T){var c,S=T.frag,y=T.part,b=T.payload,B=this.config,F=this.trackId,_=this.levels;if(!_){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var M=_[F];console.assert(M,"Audio track is defined on fragment load progress");var I=M.details;console.assert(I,"Audio track details are defined on fragment load progress");var g=B.defaultAudioCodec||M.audioCodec||"mp4a.40.2",H=this.transmuxer;H||(H=this.transmuxer=new p.default(this.hls,L.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $=this.initPTS[S.cc],ne=(c=S.initSegment)===null||c===void 0?void 0:c.data;if($!==void 0){var se=!1,Oe=y?y.index:-1,ge=Oe!==-1,Te=new h.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,b.byteLength,Oe,ge);H.push(b,ne,g,"",S,y,I.totalduration,se,Te,$)}else{o.logger.log("Unknown video PTS for cc "+S.cc+", waiting for video PTS before demuxing audio frag "+S.sn+" of ["+I.startSN+" ,"+I.endSN+"],track "+F);var Re=this.waitingData=this.waitingData||{frag:S,part:y,cache:new m.default,complete:!1},Le=Re.cache;Le.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(T){if(this.waitingData){this.waitingData.complete=!0;return}D.prototype._handleFragmentLoadComplete.call(this,T)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(T,c){var S=c.tracks.audio;S&&(this.mediaBuffer=S.buffer),c.tracks.video&&(this.videoBuffer=c.tracks.video.buffer)},A.onFragBuffered=function(T,c){var S=c.frag,y=c.part;if(S.type!==L.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(y?" p: "+y.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}S.sn!=="initSegment"&&(this.fragPrevious=S,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(S,y)},A.onError=function(T,c){switch(c.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.AUDIO,c);break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==j.State.ERROR&&this.state!==j.State.STOPPED&&(this.state=c.fatal?j.State.ERROR:j.State.IDLE,this.warn(c.details+" while loading frag, switching to "+this.state+" state"));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if(c.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var S=!0,y=this.getFwdBufferInfo(this.mediaBuffer,L.PlaylistLevelType.AUDIO);y&&y.len>.5&&(S=!this.reduceMaxBufferLength(y.len)),S&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(T,c){var S=c.type;S===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(T){var c,S="audio",y=this.hls,b=T.remuxResult,B=T.chunkMeta,F=this.getCurrentContext(B);if(!F){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var _=F.frag,M=F.part,I=b.audio,g=b.text,H=b.id3,$=b.initSegment;if(this.fragContextChanged(_))return;if(this.state=j.State.PARSING,this.audioSwitch&&I&&this.completeAudioSwitch(),$!=null&&$.tracks&&(this._bufferInitSegment($.tracks,_,B),y.trigger(U.Events.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:S,tracks:$.tracks})),I){var ne=I.startPTS,se=I.endPTS,Oe=I.startDTS,ge=I.endDTS;M&&(M.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:ne,endPTS:se,startDTS:Oe,endDTS:ge}),_.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,ne,se,Oe,ge),this.bufferFragmentData(I,_,M,B)}if(H!=null&&(c=H.samples)!==null&&c!==void 0&&c.length){var Te=s({frag:_,id:S},H);y.trigger(U.Events.FRAG_PARSING_METADATA,Te)}if(g){var Re=s({frag:_,id:S},g);y.trigger(U.Events.FRAG_PARSING_USERDATA,Re)}},A._bufferInitSegment=function(T,c,S){if(this.state!==j.State.PARSING)return;T.video&&delete T.video;var y=T.audio;if(!y)return;y.levelCodec=y.codec,y.id="audio",this.log("Init audio buffer, container:"+y.container+", codecs[parsed]=["+y.codec+"]"),this.hls.trigger(U.Events.BUFFER_CODECS,T);var b=y.initSegment;if(b!=null&&b.byteLength){var B={type:"audio",frag:c,part:null,chunkMeta:S,parent:c.type,data:b};this.hls.trigger(U.Events.BUFFER_APPENDING,B)}this.tick()},A.loadFragment=function(T,c,S){var y=this.fragmentTracker.getState(T);this.fragCurrent=T,(this.audioSwitch||y===G.FragmentState.NOT_LOADED||y===G.FragmentState.PARTIAL)&&(T.sn==="initSegment"?this._loadInitSegment(T):c.live&&!Object(X.isFiniteNumber)(this.initPTS[T.cc])?(this.log("Waiting for video PTS in continuity counter "+T.cc+" of live stream before loading audio fragment "+T.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,D.prototype.loadFragment.call(this,T,c,S)))},A.completeAudioSwitch=function(){var T=this.hls,c=this.media,S=this.trackId;c&&(this.log("Switching audio track : flushing all audio"),D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,T.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:S})},R}(j.default);J.default=w},"./src/controller/audio-track-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/controller/base-playlist-controller.ts"),K=P("./src/types/loader.ts");function G(p,h){for(var u=0;u=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=o[this.trackId];this.log("Now switching to audio-track index "+l);var a=o[l],O=a.id,E=a.groupId,w=E===void 0?"":E,D=a.name,R=a.type,A=a.url;if(this.trackId=l,this.trackName=D,this.selectDefaultTrack=!1,this.hls.trigger(X.Events.AUDIO_TRACK_SWITCHING,{id:O,groupId:w,name:D,type:R,url:A}),a.details&&!a.details.live)return;var C=this.switchParams(a.url,s==null?void 0:s.details);this.loadPlaylist(C)},u.selectInitialTrack=function(){var l=this.tracksInGroup;console.assert(l.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,s=this.findTrackId(o)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},u.findTrackId=function(l){for(var o=this.tracksInGroup,s=0;sh.partTarget&&(a+=1)}if(Object(X.isFiniteNumber)(s))return new j.HlsUrlParameters(s,Object(X.isFiniteNumber)(a)?a:void 0,j.HlsSkip.No)}}},v.loadPlaylist=function(p){},v.shouldLoadTrack=function(p){return this.canLoad&&p&&!!p.url&&(!p.details||p.details.live)},v.playlistLoaded=function(p,h,u){var f=this,l=h.details,o=h.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(l.advancedDateTime=Date.now()-s,l.live||u!=null&&u.live){if(l.reloaded(u),u&&this.log("live playlist "+p+" "+(l.advanced?"REFRESHED "+l.lastPartSn+"-"+l.lastPartIndex:"MISSED")),u&&l.fragments.length>0&&Object(U.mergeDetails)(u,l),!this.canLoad||!l.live)return;var a,O=void 0,E=void 0;if(l.canBlockReload&&l.endSN&&l.advanced){var w=this.hls.config.lowLatencyMode,D=l.lastPartSn,R=l.endSN,A=l.lastPartIndex,C=A!==-1,T=D===R,c=w?0:A;C?(O=T?R+1:D,E=T?c:A+1):O=R+1;var S=l.age,y=S+l.ageHeader,b=Math.min(y-l.partTarget,l.targetduration*1.5);if(b>0){if(u&&b>u.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+u.tuneInGoal+" to: "+b+" with playlist age: "+l.age),b=0;else{var B=Math.floor(b/l.targetduration);if(O+=B,E!==void 0){var F=Math.round(b%l.targetduration/l.partTarget);E+=F}this.log("CDN Tune-in age: "+l.ageHeader+"s last advanced "+S.toFixed(2)+"s goal: "+b+" skip sn "+B+" to part "+E)}l.tuneInGoal=b}if(a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E),w||!T){this.loadPlaylist(a);return}}else a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E);var _=Object(U.computeReloadInterval)(l,o);O!==void 0&&l.canBlockReload&&(_-=l.partTarget||1),this.log("reload live playlist "+p+" in "+Math.round(_)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(a)},_)}else this.clearTimer()},v.getDeliveryDirectives=function(p,h,u,f){var l=Object(j.getSkipValue)(p,u);return h!=null&&h.skip&&p.deltaUpdateFailed&&(u=h.msn,f=h.part,l=j.HlsSkip.No),new j.HlsUrlParameters(u,f,l)},v.retryLoadingOrFail=function(p){var h=this,u=this.hls.config,f=this.retryCount-1&&(l=p.context)!==null&&l!==void 0&&l.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+p.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*u.levelLoadingRetryDelay,u.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return h.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+p.details+'"')}}else this.warn('cannot recover from error "'+p.details+'"'),this.clearTimer(),p.fatal=!0;return f},L}()},"./src/controller/base-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"State",function(){return R}),P.d(J,"default",function(){return A});var X=P("./src/polyfills/number.ts"),j=P("./src/task-loop.ts"),U=P("./src/controller/fragment-tracker.ts"),K=P("./src/utils/buffer-helper.ts"),G=P("./src/utils/logger.ts"),r=P("./src/events.ts"),L=P("./src/errors.ts"),v=P("./src/types/transmuxer.ts"),m=P("./src/utils/mp4-tools.ts"),p=P("./src/utils/discontinuities.ts"),h=P("./src/controller/fragment-finders.ts"),u=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),l=P("./src/crypt/decrypter.ts"),o=P("./src/utils/time-ranges.ts"),s=P("./src/types/loader.ts");function a(C,T){for(var c=0;c$;(M0&&M&&M.key&&M.iv&&M.method==="AES-128"){var I=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(_),M.key.buffer,M.iv.buffer).then(function(g){var H=self.performance.now();return F.trigger(r.Events.FRAG_DECRYPTED,{frag:y,payload:g,stats:{tstart:I,tdecrypt:H}}),B.payload=g,B})}return B}).then(function(B){var F=b.fragCurrent,_=b.hls,M=b.levels;if(!M)throw new Error("init load aborted, missing levels");var I=M[y.level].details;console.assert(I,"Level details are defined when init segment is loaded");var g=y.stats;b.state=R.IDLE,b.fragLoadError=0,y.data=new Uint8Array(B.payload),g.parsing.start=g.buffering.start=self.performance.now(),g.parsing.end=g.buffering.end=self.performance.now(),B.frag===F&&_.trigger(r.Events.FRAG_BUFFERED,{stats:g,frag:F,part:null,id:y.type}),b.tick()}).catch(function(B){b.warn(B),b.resetFragmentLoading(y)})},c.fragContextChanged=function(y){var b=this.fragCurrent;return!y||!b||y.level!==b.level||y.sn!==b.sn||y.urlId!==b.urlId},c.fragBufferedComplete=function(y,b){var B=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+y.type+" sn: "+y.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+y.level+" "+o.default.toString(K.BufferHelper.getBuffered(B))),this.state=R.IDLE,this.tick()},c._handleFragmentLoadComplete=function(y){var b=this.transmuxer;if(!b)return;var B=y.frag,F=y.part,_=y.partsLoaded,M=!_||_.length===0||_.some(function(g){return!g}),I=new v.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,F?F.index:-1,!M);b.flush(I)},c._handleFragmentLoadProgress=function(y){},c._doFragLoad=function(y,b,B,F){var _=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(y.start,B||0),this.config.lowLatencyMode&&b){var M=b.partList;if(M&&F){B>y.end&&b.fragmentHint&&(y=b.fragmentHint);var I=this.getNextPart(M,y,B);if(I>-1){var g=M[I];return this.log("Loading part sn: "+y.sn+" p: "+g.index+" cc: "+y.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+I+"-"+(M.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=g.start+g.duration,this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,part:M[I],targetBufferTime:B}),this.doFragPartsLoad(y,M,I,F).catch(function(H){return _.handleFragLoadError(H)})}else if(!y.url||this.loadedEndOfParts(M,B))return Promise.resolve(null)}}return this.log("Loading fragment "+y.sn+" cc: "+y.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),Object(X.isFiniteNumber)(y.sn)&&!this.bitrateTest&&(this.nextLoadPosition=y.start+y.duration),this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,targetBufferTime:B}),this.fragmentLoader.load(y,F).catch(function(H){return _.handleFragLoadError(H)})},c.doFragPartsLoad=function(y,b,B,F){var _=this;return new Promise(function(M,I){var g=[],H=function $(ne){var se=b[ne];_.fragmentLoader.loadPart(y,se,F).then(function(Oe){g[se.index]=Oe;var ge=Oe.part;_.hls.trigger(r.Events.FRAG_LOADED,Oe);var Te=b[ne+1];if(Te&&Te.fragment===y)$(ne+1);else return M({frag:y,part:ge,partsLoaded:g})}).catch(I)};H(B)})},c.handleFragLoadError=function(y){var b=y.data;return b&&b.details===L.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(r.Events.ERROR,b),null},c._handleTransmuxerFlush=function(y){var b=this.getCurrentContext(y);if(!b||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var B=b.frag,F=b.part,_=b.level,M=self.performance.now();B.stats.parsing.end=M,F&&(F.stats.parsing.end=M),this.updateLevelTiming(B,F,_,y.partial)},c.getCurrentContext=function(y){var b=this.levels,B=y.level,F=y.sn,_=y.part;if(!b||!b[B])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+B+". The current chunk will not be buffered."),null;var M=b[B],I=_>-1?Object(u.getPartWith)(M,F,_):null,g=I?I.fragment:Object(u.getFragmentWithSN)(M,F,this.fragCurrent);return g?{frag:g,part:I,level:M}:null},c.bufferFragmentData=function(y,b,B,F){if(!y||this.state!==R.PARSING)return;var _=y.data1,M=y.data2,I=_;if(_&&M&&(I=Object(m.appendUint8Array)(_,M)),!I||!I.length)return;var g={type:y.type,frag:b,part:B,chunkMeta:F,parent:b.type,data:I};this.hls.trigger(r.Events.BUFFER_APPENDING,g),y.dropped&&y.independent&&!B&&this.flushBufferGap(b)},c.flushBufferGap=function(y){var b=this.media;if(!b)return;if(!K.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,y.start);return}var B=b.currentTime,F=K.BufferHelper.bufferInfo(b,B,0),_=y.duration,M=Math.min(this.config.maxFragLookUpTolerance*2,_*.25),I=Math.max(Math.min(y.start-M,F.end-M),B+M);y.start-I>M&&this.flushMainBuffer(I,y.start)},c.getFwdBufferInfo=function(y,b){var B=this.config,F=this.getLoadPosition();if(!Object(X.isFiniteNumber)(F))return null;var _=K.BufferHelper.bufferInfo(y,F,B.maxBufferHole);if(_.len===0&&_.nextStart!==void 0){var M=this.fragmentTracker.getBufferedFrag(F,b);if(M&&_.nextStart=B?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},c.getNextFragment=function(y,b){var B,F,_=b.fragments,M=_.length;if(!M)return null;var I=this.config,g=_[0].start,H;if(b.live){var $=I.initialLiveManifestSize;if(M<$)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+$+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(H=this.getInitialLiveFragment(b,_),this.startPosition=H?this.hls.liveSyncPosition||H.start:y)}else y<=g&&(H=_[0]);if(!H){var ne=I.lowLatencyMode?b.partEnd:b.fragmentEnd;H=this.getFragmentAtPosition(y,ne,b)}return(B=H)!==null&&B!==void 0&&B.initSegment&&!((F=H)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(H=H.initSegment),H},c.getNextPart=function(y,b,B){for(var F=-1,_=!1,M=!0,I=0,g=y.length;I-1&&BB.start&&B.loaded},c.getInitialLiveFragment=function(y,b){var B=this.fragPrevious,F=null;if(B){if(y.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),F=Object(h.findFragmentByPDT)(b,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var _=B.sn+1;if(_>=y.startSN&&_<=y.endSN){var M=b[_-y.startSN];B.cc===M.cc&&(F=M,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(h.findFragWithCC)(b,B.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var I=this.hls.liveSyncPosition;I!==null&&(F=this.getFragmentAtPosition(I,this.bitrateTest?y.fragmentEnd:y.edge,y))}return F},c.getFragmentAtPosition=function(y,b,B){var F=this.config,_=this.fragPrevious,M=B.fragments,I=B.endSN,g=B.fragmentHint,H=F.maxFragLookUpTolerance,$=!!(F.lowLatencyMode&&B.partList&&g);$&&g&&!this.bitrateTest&&(M=M.concat(g),I=g.sn);var ne;if(yb-H?0:H;ne=Object(h.findFragmentByPTS)(_,M,y,se)}else ne=M[M.length-1];if(ne){var Oe=ne.sn-B.startSN,ge=_&&ne.level===_.level,Te=M[Oe+1],Re=this.fragmentTracker.getState(ne);if(Re===U.FragmentState.BACKTRACKED){ne=null;for(var Le=Oe;M[Le]&&this.fragmentTracker.getState(M[Le])===U.FragmentState.BACKTRACKED;)_?ne=M[Le--]:ne=M[--Le];ne||(ne=Te)}else _&&ne.sn===_.sn&&!$&&(ge&&(ne.sn=M-b.maxFragLookUpTolerance&&_<=I;if(F!==null&&B.duration>F&&(_"+y.startSN+" prev-sn: "+(_?_.sn:"na")+" fragments: "+I),ne}return g},c.waitForCdnTuneIn=function(y){var b=3;return y.live&&y.canBlockReload&&y.tuneInGoal>Math.max(y.partHoldBack,y.partTarget*b)},c.setStartPosition=function(y,b){var B=this.startPosition;if(B"+y))}}]),T}(j.default)},"./src/controller/buffer-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./src/errors.ts"),G=P("./src/utils/buffer-helper.ts"),r=P("./src/utils/mediasource-helper.ts"),L=P("./src/loader/fragment.ts"),v=P("./src/controller/buffer-operation-queue.ts"),m=Object(r.getMediaSource)(),p=/([ha]vc.)(?:\.[^.,]+)+/,h=function(){function u(l){var o=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=o.hls,a=o.media,O=o.mediaSource;U.logger.log("[buffer-controller]: Media source opened"),a&&(o.updateMediaElementDuration(),s.trigger(j.Events.MEDIA_ATTACHED,{media:a})),O&&O.removeEventListener("sourceopen",o._onMediaSourceOpen),o.checkPendingTracks()},this._onMediaSourceClose=function(){U.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.logger.log("[buffer-controller]: Media source ended")},this.hls=l,this._initSourceBuffer(),this.registerListeners()}var f=u.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var o=this.hls;o.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(j.Events.BUFFER_RESET,this.onBufferReset,this),o.on(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(j.Events.BUFFER_EOS,this.onBufferEos,this),o.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(j.Events.FRAG_PARSED,this.onFragParsed,this),o.on(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(j.Events.BUFFER_RESET,this.onBufferReset,this),o.off(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(j.Events.BUFFER_EOS,this.onBufferEos,this),o.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(j.Events.FRAG_PARSED,this.onFragParsed,this),o.off(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new v.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(o,s){var a=2;(s.audio&&!s.video||!s.altAudio)&&(a=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=a,this.details=null,U.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(o,s){var a=this.media=s.media;if(a&&m){var O=this.mediaSource=new m;O.addEventListener("sourceopen",this._onMediaSourceOpen),O.addEventListener("sourceended",this._onMediaSourceEnded),O.addEventListener("sourceclose",this._onMediaSourceClose),a.src=self.URL.createObjectURL(O),this._objectUrl=a.src}},f.onMediaDetaching=function(){var o=this.media,s=this.mediaSource,a=this._objectUrl;if(s){if(U.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(O){U.logger.warn("[buffer-controller]: onMediaDetaching: "+O.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(a&&self.URL.revokeObjectURL(a),o.src===a?(o.removeAttribute("src"),o.load()):U.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(j.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(s){var a=o.sourceBuffer[s];try{a&&(o.removeBufferListeners(s),o.mediaSource&&o.mediaSource.removeSourceBuffer(a),o.sourceBuffer[s]=void 0)}catch(O){U.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",O)}}),this._initSourceBuffer()},f.onBufferCodecs=function(o,s){var a=this,O=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(O){var w=a.tracks[E];if(w&&typeof w.buffer.changeType=="function"){var D=s[E],R=D.codec,A=D.levelCodec,C=D.container,T=(w.levelCodec||w.codec).replace(p,"$1"),c=(A||R).replace(p,"$1");if(T!==c){var S=C+";codecs="+(A||R);a.appendChangeType(E,S)}}}else a.pendingTracks[E]=s[E]}),O)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(o,s){var a=this,O=this.operationQueue,E={execute:function(){var D=a.sourceBuffer[o];D&&(U.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+s),D.changeType(s)),O.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(D){U.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",D)}};O.append(E,o)},f.onBufferAppending=function(o,s){var a=this,O=this.hls,E=this.operationQueue,w=this.tracks,D=s.data,R=s.type,A=s.frag,C=s.part,T=s.chunkMeta,c=T.buffering[R],S=self.performance.now();c.start=S;var y=A.stats.buffering,b=C?C.stats.buffering:null;y.start===0&&(y.start=S),b&&b.start===0&&(b.start=S);var B=w.audio,F=R==="audio"&&T.id===1&&(B==null?void 0:B.container)==="audio/mpeg",_={execute:function(){if(c.executeStart=self.performance.now(),F){var I=a.sourceBuffer[R];if(I){var g=A.start-I.timestampOffset;Math.abs(g)>=.1&&(U.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+g+") sn: "+A.sn+")"),I.timestampOffset=A.start)}}a.appendExecutor(D,R)},onStart:function(){},onComplete:function(){var I=self.performance.now();c.executeEnd=c.end=I,y.first===0&&(y.first=I),b&&b.first===0&&(b.first=I);var g=a.sourceBuffer,H={};for(var $ in g)H[$]=G.BufferHelper.getBuffered(g[$]);a.appendError=0,a.hls.trigger(j.Events.BUFFER_APPENDED,{type:R,frag:A,part:C,chunkMeta:T,parent:A.type,timeRanges:H})},onError:function(I){U.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",I);var g={type:K.ErrorTypes.MEDIA_ERROR,parent:A.type,details:K.ErrorDetails.BUFFER_APPEND_ERROR,err:I,fatal:!1};I.code===DOMException.QUOTA_EXCEEDED_ERR?g.details=K.ErrorDetails.BUFFER_FULL_ERROR:(a.appendError++,g.details=K.ErrorDetails.BUFFER_APPEND_ERROR,a.appendError>O.config.appendErrorMaxRetry&&(U.logger.error("[buffer-controller]: Failed "+O.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),g.fatal=!0)),O.trigger(j.Events.ERROR,g)}};E.append(_,R)},f.onBufferFlushing=function(o,s){var a=this,O=this.operationQueue,E=function(D){return{execute:a.removeExecutor.bind(a,D,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){a.hls.trigger(j.Events.BUFFER_FLUSHED,{type:D})},onError:function(A){U.logger.warn("[buffer-controller]: Failed to remove from "+D+" SourceBuffer",A)}}};s.type?O.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(w){O.append(E(w),w)})},f.onFragParsed=function(o,s){var a=this,O=s.frag,E=s.part,w=[],D=E?E.elementaryStreams:O.elementaryStreams;D[L.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(D[L.ElementaryStreamTypes.AUDIO]&&w.push("audio"),D[L.ElementaryStreamTypes.VIDEO]&&w.push("video"));var R=function(){var C=self.performance.now();O.stats.buffering.end=C,E&&(E.stats.buffering.end=C);var T=E?E.stats:O.stats;a.hls.trigger(j.Events.FRAG_BUFFERED,{frag:O,part:E,stats:T,id:O.type})};w.length===0&&U.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+O.type+" level: "+O.level+" sn: "+O.sn),this.blockBuffers(R,w)},f.onFragChanged=function(o,s){this.flushBackBuffer()},f.onBufferEos=function(o,s){var a=this,O=this.getSourceBufferTypes().reduce(function(E,w){var D=a.sourceBuffer[w];return(!s.type||s.type===w)&&(D&&!D.ended&&(D.ended=!0,U.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),E&&!!(!D||D.ended)},!0);O&&this.blockBuffers(function(){var E=a.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},f.onLevelUpdated=function(o,s){var a=s.details;if(!a.fragments.length)return;this.details=a,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var o=this.hls,s=this.details,a=this.media,O=this.sourceBuffer;if(!a||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var w=s.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(X.isFiniteNumber)(w)||w<0)return;var D=a.currentTime,R=s.levelTargetDuration,A=Math.max(w,R),C=Math.floor(D/R)*R-A;E.forEach(function(T){var c=O[T];if(c){var S=G.BufferHelper.getBuffered(c);S.length>0&&C>S.start(0)&&(o.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),s.live&&o.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),o.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:T}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,s=this.hls,a=this.media,O=this.mediaSource,E=o.fragments[0].start+o.totalduration,w=a.duration,D=Object(X.isFiniteNumber)(O.duration)?O.duration:0;o.live&&s.config.liveDurationInfinity?(U.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),O.duration=Infinity,this.updateSeekableRange(o)):(E>D&&E>w||!Object(X.isFiniteNumber)(w))&&(U.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),O.duration=E)},f.updateSeekableRange=function(o){var s=this.mediaSource,a=o.fragments,O=a.length;if(O&&o.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,a[0].start),w=Math.max(E,E+o.totalduration);s.setLiveSeekableRange(E,w)}},f.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,s=this.operationQueue,a=this.pendingTracks,O=Object.keys(a).length;if(O&&!o||O===2){this.createSourceBuffers(a),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(w){s.executeNext(w)})}},f.createSourceBuffers=function(o){var s=this.sourceBuffer,a=this.mediaSource;if(!a)throw Error("createSourceBuffers called when mediaSource was null");var O=0;for(var E in o)if(!s[E]){var w=o[E];if(!w)throw Error("source buffer exists for track "+E+", however track does not");var D=w.levelCodec||w.codec,R=w.container+";codecs="+D;U.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var A=s[E]=a.addSourceBuffer(R),C=E;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[E]={buffer:A,codec:D,container:w.container,levelCodec:w.levelCodec,id:w.id},O++}catch(T){U.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+T.message),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:T,mimeType:R})}}O&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(o){var s=this.operationQueue,a=s.current(o);a.onStart()},f._onSBUpdateEnd=function(o){var s=this.operationQueue,a=s.current(o);a.onComplete(),s.shiftAndExecuteNext(o)},f._onSBUpdateError=function(o,s){U.logger.error("[buffer-controller]: "+o+" SourceBuffer error",s),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var a=this.operationQueue.current(o);a&&a.onError(s)},f.removeExecutor=function(o,s,a){var O=this.media,E=this.mediaSource,w=this.operationQueue,D=this.sourceBuffer,R=D[o];if(!O||!E||!R){U.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(o);return}var A=Object(X.isFiniteNumber)(O.duration)?O.duration:Infinity,C=Object(X.isFiniteNumber)(E.duration)?E.duration:Infinity,T=Math.max(0,s),c=Math.min(a,A,C);c>T?(U.logger.log("[buffer-controller]: Removing ["+T+","+c+"] from the "+o+" SourceBuffer"),console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.remove(T,c)):w.shiftAndExecuteNext(o)},f.appendExecutor=function(o,s){var a=this.operationQueue,O=this.sourceBuffer,E=O[s];if(!E){U.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),a.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(o)},f.blockBuffers=function(o,s){var a=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){U.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var O=this.operationQueue,E=s.map(function(w){return O.appendBlocker(w)});Promise.all(E).then(function(){o(),s.forEach(function(w){var D=a.sourceBuffer[w];(!D||!D.updating)&&O.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(o,s,a){var O=this.sourceBuffer[o];if(!O)return;var E=a.bind(this,o);this.listeners[o].push({event:s,listener:E}),O.addEventListener(s,E)},f.removeBufferListeners=function(o){var s=this.sourceBuffer[o];if(!s)return;this.listeners[o].forEach(function(a){s.removeEventListener(a.event,a.listener)})},u}()},"./src/controller/buffer-operation-queue.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return j});var X=P("./src/utils/logger.ts"),j=function(){function U(G){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=G}var K=U.prototype;return K.append=function(r,L){var v=this.queues[L];v.push(r),v.length===1&&this.buffers[L]&&this.executeNext(L)},K.insertAbort=function(r,L){var v=this.queues[L];v.unshift(r),this.executeNext(L)},K.appendBlocker=function(r){var L,v=new Promise(function(p){L=p}),m={execute:L,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(m,r),v},K.executeNext=function(r){var L=this.buffers,v=this.queues,m=L[r],p=v[r];if(p.length){var h=p[0];try{h.execute()}catch(u){X.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),h.onError(u),(!m||!m.updating)&&(p.shift(),this.executeNext(r))}}},K.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},K.current=function(r){return this.queues[r][0]},U}()},"./src/controller/cap-level-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts");function j(G,r){for(var L=0;L0&&this.mediaWidth>0){var v=this.hls.levels;if(v.length){var m=this.hls;m.autoLevelCapping=this.getMaxLevel(v.length-1),m.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=m.autoLevelCapping}}},r.getMaxLevel=function(v){var m=this,p=this.hls.levels;if(!p.length)return-1;var h=p.filter(function(u,f){return G.isLevelAllowed(f,m.restrictedLevels)&&f<=v});return this.clientRect=null,G.getMaxLevelByMediaSize(h,this.mediaWidth,this.mediaHeight)},r.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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var v=this.media,m={width:0,height:0};if(v){var p=v.getBoundingClientRect();m.width=p.width,m.height=p.height,!m.width&&!m.height&&(m.width=p.right-p.left||v.width||0,m.height=p.bottom-p.top||v.height||0)}return this.clientRect=m,m},G.isLevelAllowed=function(v,m){return m===void 0&&(m=[]),m.indexOf(v)===-1},G.getMaxLevelByMediaSize=function(v,m,p){if(!v||!v.length)return-1;for(var h=function(s,a){return a?s.width!==a.width||s.height!==a.height:!0},u=v.length-1,f=0;f=m||l.height>=p)&&h(l,v[f+1])){u=f;break}}return u},U(G,[{key:"mediaWidth",get:function(){return this.getDimensions().width*G.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*G.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var v=1;try{v=self.devicePixelRatio}catch(m){}return v}}]),G}();J.default=K},"./src/controller/cmcd-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/events.ts"),j=P("./src/types/cmcd.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/utils/logger.ts");function G(u,f){for(var l=0;l=u.length?{done:!0}:{done:!1,value:u[o++]}}}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 v(u,f){if(!u)return;if(typeof u=="string")return m(u,f);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return m(u,f)}function m(u,f){(f==null||f>u.length)&&(f=u.length);for(var l=0,o=new Array(f);ls&&(s=w.bitrate)}return s>0?s:NaN},f.getBufferLength=function(o){var s=this.hls.media,a=o===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!a||!s)return NaN;var O=U.BufferHelper.bufferInfo(a,s.currentTime,this.config.maxBufferHole);return O.len*1e3},f.createPlaylistLoader=function(){var o=this.config.pLoader,s=this.applyPlaylistData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},f.createFragmentLoader=function(){var o=this.config.fLoader,s=this.applyFragmentData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},u.uuid=function(){var o=URL.createObjectURL(new Blob),s=o.toString();return URL.revokeObjectURL(o),s.substr(s.lastIndexOf("/")+1)},u.serialize=function(o){for(var s=[],a=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},O=function(F){return Math.round(F)},E=function(F){return O(F/100)*100},w=function(F){return encodeURIComponent(F)},D={br:O,d:O,bl:E,dl:E,mtp:E,nor:w,rtp:E,tb:O},R=Object.keys(o||{}).sort(),A=L(R),C;!(C=A()).done;){var T=C.value,c=o[T];if(!a(c))continue;if(T==="v"&&c===1)continue;if(T=="pr"&&c===1)continue;var S=D[T];S&&(c=S(c));var y=typeof c,b=void 0;T==="ot"||T==="sf"||T==="st"?b=T+"="+c:y==="boolean"?b=T:y==="number"?b=T+"="+c:b=T+"="+JSON.stringify(c),s.push(b)}return s.join(",")},u.toHeaders=function(o){for(var s=Object.keys(o),a={},O=["Object","Request","Session","Status"],E=[{},{},{},{}],w={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},D=0,R=s;DL){this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=L-this._requestLicenseFailureCount+1;U.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(s,a)}break}},u._generateLicenseRequestChallenge=function(l,o){switch(l.mediaKeySystemDomain){case K.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+l.mediaKeySystemDomain)},u._requestLicense=function(l,o){U.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){U.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var a=this.getLicenseServerUrl(s.mediaKeySystemDomain),O=this._createLicenseXhr(a,l,o);U.logger.log("Sending license request to URL: "+a);var E=this._generateLicenseRequestChallenge(s,l);O.send(E)}catch(w){U.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},u.onMediaAttached=function(l,o){if(!this._emeEnabled)return;var s=o.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},u.onMediaDetached=function(){var l=this._media,o=this._mediaKeysList;if(!l)return;l.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return l.setMediaKeys(null)}).catch(function(){})},u.onManifestParsed=function(l,o){if(!this._emeEnabled)return;var s=o.levels.map(function(O){return O.audioCodec}).filter(function(O){return!!O}),a=o.levels.map(function(O){return O.videoCodec}).filter(function(O){return!!O});this._attemptKeySystemAccess(K.KeySystems.WIDEVINE,s,a)},r(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}();J.default=p},"./src/controller/fps-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=function(){function K(r){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=r,this.registerListeners()}var G=K.prototype;return G.setStreamController=function(L){this.streamController=L},G.registerListeners=function(){this.hls.on(X.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},G.unregisterListeners=function(){this.hls.off(X.Events.MEDIA_ATTACHING,this.onMediaAttaching)},G.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},G.onMediaAttaching=function(L,v){var m=this.hls.config;if(m.capLevelOnFPSDrop){var p=v.media instanceof self.HTMLVideoElement?v.media:null;this.media=p,p&&typeof p.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),m.fpsDroppedMonitoringPeriod)}},G.checkFPS=function(L,v,m){var p=performance.now();if(v){if(this.lastTime){var h=p-this.lastTime,u=m-this.lastDroppedFrames,f=v-this.lastDecodedFrames,l=1e3*u/h,o=this.hls;if(o.trigger(X.Events.FPS_DROP,{currentDropped:u,currentDecoded:f,totalDroppedFrames:m}),l>0&&u>o.config.fpsDroppedMonitoringThreshold*f){var s=o.currentLevel;j.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=s)&&(s=s-1,o.trigger(X.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:o.currentLevel}),o.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=p,this.lastDroppedFrames=m,this.lastDecodedFrames=v}},G.checkFPSInterval=function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var v=L.getVideoPlaybackQuality();this.checkFPS(L,v.totalVideoFrames,v.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)},K}();J.default=U},"./src/controller/fragment-finders.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFragmentByPDT",function(){return U}),P.d(J,"findFragmentByPTS",function(){return K}),P.d(J,"fragmentWithinToleranceTest",function(){return G}),P.d(J,"pdtWithinToleranceTest",function(){return r}),P.d(J,"findFragWithCC",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/binary-search.ts");function U(v,m,p){if(m===null||!Array.isArray(v)||!v.length||!Object(X.isFiniteNumber)(m))return null;var h=v[0].programDateTime;if(m<(h||0))return null;var u=v[v.length-1].endProgramDateTime;if(m>=(u||0))return null;p=p||0;for(var f=0;fv&&p.start?-1:0}function r(v,m,p){var h=Math.min(m,p.duration+(p.deltaPTS?p.deltaPTS:0))*1e3,u=p.endProgramDateTime||0;return u-h>v}function L(v,m){return j.default.search(v,function(p){return p.ccm?-1:0})}},"./src/controller/fragment-tracker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"FragmentState",function(){return U}),P.d(J,"FragmentTracker",function(){return K});var X=P("./src/events.ts"),j=P("./src/types/loader.ts"),U;(function(L){L.NOT_LOADED="NOT_LOADED",L.BACKTRACKED="BACKTRACKED",L.APPENDING="APPENDING",L.PARTIAL="PARTIAL",L.OK="OK"})(U||(U={}));var K=function(){function L(m){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=m,this._registerListeners()}var v=L.prototype;return v._registerListeners=function(){var p=this.hls;p.on(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.on(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.on(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v._unregisterListeners=function(){var p=this.hls;p.off(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.off(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.off(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},v.getAppendedFrag=function(p,h){if(h===j.PlaylistLevelType.MAIN){var u=this.activeFragment,f=this.activeParts;if(!u)return null;if(f)for(var l=f.length;l--;){var o=f[l],s=o?o.end:u.appendedPTS;if(o.start<=p&&s!==void 0&&p<=s)return l>9&&(this.activeParts=f.slice(l-9)),o}else if(u.start<=p&&u.appendedPTS!==void 0&&p<=u.appendedPTS)return u}return this.getBufferedFrag(p,h)},v.getBufferedFrag=function(p,h){for(var u=this.fragments,f=Object.keys(u),l=f.length;l--;){var o=u[f[l]];if((o==null?void 0:o.body.type)===h&&o.buffered){var s=o.body;if(s.start<=p&&p<=s.end)return s}}return null},v.detectEvictedFragments=function(p,h,u){var f=this;Object.keys(this.fragments).forEach(function(l){var o=f.fragments[l];if(!o)return;if(!o.buffered){o.body.type===u&&f.removeFragment(o.body);return}var s=o.range[p];if(!s)return;s.time.some(function(a){var O=!f.isTimeBuffered(a.startPTS,a.endPTS,h);return O&&f.removeFragment(o.body),O})})},v.detectPartialFragments=function(p){var h=this,u=this.timeRanges,f=p.frag,l=p.part;if(!u||f.sn==="initSegment")return;var o=r(f),s=this.fragments[o];if(!s)return;Object.keys(u).forEach(function(a){var O=f.elementaryStreams[a];if(!O)return;var E=u[a],w=l!==null||O.partial===!0;s.range[a]=h.getBufferedTimes(f,l,w,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},v.fragBuffered=function(p){var h=r(p),u=this.fragments[h];u&&(u.backtrack=u.loaded=null,u.buffered=!0)},v.getBufferedTimes=function(p,h,u,f){for(var l={time:[],partial:u},o=h?h.start:p.start,s=h?h.end:p.end,a=p.minEndPTS||s,O=p.maxStartPTS||o,E=0;E=w&&a<=D){l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});break}else if(ow)l.partial=!0,l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});else if(s<=w)break}return l},v.getPartialFragment=function(p){var h=null,u,f,l,o=0,s=this.bufferPadding,a=this.fragments;return Object.keys(a).forEach(function(O){var E=a[O];if(!E)return;G(E)&&(f=E.body.start-s,l=E.body.end+s,p>=f&&p<=l&&(u=Math.min(p-f,l-p),o<=u&&(h=E.body,o=u)))}),h},v.getState=function(p){var h=r(p),u=this.fragments[h];return u?u.buffered?G(u)?U.PARTIAL:U.OK:u.backtrack?U.BACKTRACKED:U.APPENDING:U.NOT_LOADED},v.backtrack=function(p,h){var u=r(p),f=this.fragments[u];if(!f||f.backtrack)return null;var l=f.backtrack=h||f.loaded;return f.loaded=null,l},v.getBacktrackData=function(p){var h=r(p),u=this.fragments[h];if(u){var f,l=u.backtrack;if(l!=null&&(f=l.payload)!==null&&f!==void 0&&f.byteLength)return l;this.removeFragment(p)}return null},v.isTimeBuffered=function(p,h,u){for(var f,l,o=0;o=f&&h<=l)return!0;if(h<=f)return!1}return!1},v.onFragLoaded=function(p,h){var u=h.frag,f=h.part;if(u.sn==="initSegment"||u.bitrateTest||f)return;var l=r(u);this.fragments[l]={body:u,loaded:h,backtrack:null,buffered:!1,range:Object.create(null)}},v.onBufferAppended=function(p,h){var u=this,f=h.frag,l=h.part,o=h.timeRanges;if(f.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=f,l){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(l)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(a){var O=o[a];if(u.detectEvictedFragments(a,O),!l)for(var E=0;Ep&&f.removeFragment(s)}})},v.removeFragment=function(p){var h=r(p);p.stats.loaded=0,p.clearElementaryStreamInfo(),delete this.fragments[h]},v.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},L}();function G(L){var v,m;return L.buffered&&(((v=L.range.video)===null||v===void 0?void 0:v.partial)||((m=L.range.audio)===null||m===void 0?void 0:m.partial))}function r(L){return L.type+"_"+L.level+"_"+L.urlId+"_"+L.sn}},"./src/controller/gap-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"STALL_MINIMUM_DURATION_MS",function(){return G}),P.d(J,"MAX_START_GAP_JUMP",function(){return r}),P.d(J,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return L}),P.d(J,"SKIP_BUFFER_RANGE_START",function(){return v}),P.d(J,"default",function(){return m});var X=P("./src/utils/buffer-helper.ts"),j=P("./src/errors.ts"),U=P("./src/events.ts"),K=P("./src/utils/logger.ts"),G=250,r=2,L=.1,v=.05,m=function(){function p(u,f,l,o){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=u,this.media=f,this.fragmentTracker=l,this.hls=o}var h=p.prototype;return h.destroy=function(){this.hls=this.fragmentTracker=this.media=null},h.poll=function(f){var l=this.config,o=this.media,s=this.stalled,a=o.currentTime,O=o.seeking,E=this.seeking&&!O,w=!this.seeking&&O;if(this.seeking=O,a!==f){if(this.moved=!0,s!==null){if(this.stallReported){var D=self.performance.now()-s;K.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(D)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||E)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!X.BufferHelper.getBuffered(o).length)return;var R=X.BufferHelper.bufferInfo(o,a,0),A=R.len>0,C=R.nextStart||0;if(!A&&!C)return;if(O){var T=R.len>r,c=!C||C-a>r&&!this.fragmentTracker.getPartialFragment(a);if(T||c)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var S,y=Math.max(C,R.start||0)-a,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=b==null||((S=b.details)===null||S===void 0)?void 0:S.live,F=B?b.details.targetduration*2:r;if(y>0&&y<=F){this._trySkipBufferHole(null);return}}var _=self.performance.now();if(s===null){this.stalled=_;return}var M=_-s;!O&&M>=G&&this._reportStall(R.len);var I=X.BufferHelper.bufferInfo(o,a,l.maxBufferHole);this._tryFixBufferStall(I,M)},h._tryFixBufferStall=function(f,l){var o=this.config,s=this.fragmentTracker,a=this.media,O=a.currentTime,E=s.getPartialFragment(O);if(E){var w=this._trySkipBufferHole(E);if(w)return}f.len>o.maxBufferHole&&l>o.highBufferWatchdogPeriod*1e3&&(K.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(f){var l=this.hls,o=this.media,s=this.stallReported;s||(this.stallReported=!0,K.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+f+")"),l.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},h._trySkipBufferHole=function(f){for(var l=this.config,o=this.hls,s=this.media,a=s.currentTime,O=0,E=X.BufferHelper.getBuffered(s),w=0;w=O&&a.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,o)),D=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20;p.playbackRate=Math.min(w,Math.max(1,D))}else p.playbackRate!==1&&p.playbackRate!==0&&(p.playbackRate=1)},v.estimateLiveEdge=function(){var p=this.levelDetails;return p===null?null:p.edge+p.age},v.computeLatency=function(){var p=this.estimateLiveEdge();return p===null?null:p-this.currentTime},G(L,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var p=this.config,h=this.levelDetails;return p.liveMaxLatencyDuration!==void 0?p.liveMaxLatencyDuration:h?p.liveMaxLatencyDurationCount*h.targetduration:0}},{key:"targetLatency",get:function(){var p=this.levelDetails;if(p===null)return null;var h=p.holdBack,u=p.partHoldBack,f=p.targetduration,l=this.config,o=l.liveSyncDuration,s=l.liveSyncDurationCount,a=l.lowLatencyMode,O=this.hls.userConfig,E=a&&u||h;(O.liveSyncDuration||O.liveSyncDurationCount||E===0)&&(E=o!==void 0?o:s*f);var w=f,D=1;return E+Math.min(this.stallCount*D,w)}},{key:"liveSyncPosition",get:function(){var p=this.estimateLiveEdge(),h=this.targetLatency,u=this.levelDetails;if(p===null||h===null||u===null)return null;var f=u.edge,l=p-h-this.edgeStalled,o=f-u.totalduration,s=f-(this.config.lowLatencyMode&&u.partTarget||u.targetduration);return Math.min(Math.max(o,l),s)}},{key:"drift",get:function(){var p=this.levelDetails;return p===null?1:p.drift}},{key:"edgeStalled",get:function(){var p=this.levelDetails;if(p===null)return 0;var h=(this.config.lowLatencyMode&&p.partTarget||p.targetduration)*3;return Math.max(p.age-h,0)}},{key:"forwardBufferLength",get:function(){var p=this.media,h=this.levelDetails;if(!p||!h)return 0;var u=p.buffered.length;return u?p.buffered.end(u-1):h.edge-this.currentTime}}]),L}()},"./src/controller/level-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return l});var X=P("./src/types/level.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/codecs.ts"),G=P("./src/controller/level-helper.ts"),r=P("./src/controller/base-playlist-controller.ts"),L=P("./src/types/loader.ts");function v(){return v=Object.assign||function(o){for(var s=1;s0){C=D[0].bitrate,D.sort(function(M,I){return M.bitrate-I.bitrate}),this._levels=D;for(var B=0;Bthis.hls.config.fragLoadingMaxRetry&&(T=w.frag.level)):T=w.frag.level}break;case U.ErrorDetails.LEVEL_LOAD_ERROR:case U.ErrorDetails.LEVEL_LOAD_TIMEOUT:D&&(D.deliveryDirectives&&(C=!1),T=D.level),A=!0;break;case U.ErrorDetails.REMUX_ALLOC_ERROR:T=w.level,A=!0;break}T!==void 0&&this.recoverLevel(w,T,A,C)},a.recoverLevel=function(E,w,D,R){var A=E.details,C=this._levels[w];if(C.loadError++,D){var T=this.retryLoadingOrFail(E);if(T)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var c=C.url.length;if(c>1&&C.loadError1){var R=(w.urlId+1)%D;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(A){A.urlId=R}),this.level=E}},a.onFragLoaded=function(E,w){var D=w.frag;if(D!==void 0&&D.type===L.PlaylistLevelType.MAIN){var R=this._levels[D.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},a.onLevelLoaded=function(E,w){var D,R=w.level,A=w.details,C=this._levels[R];if(!C){var T;this.warn("Invalid level index "+R),(T=w.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(A.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(R,w,C.details)):(D=w.deliveryDirectives)!==null&&D!==void 0&&D.skip&&(A.deltaUpdateFailed=!0)},a.onAudioTrackSwitched=function(E,w){var D=this.hls.levels[this.currentLevelIndex];if(!D)return;if(D.audioGroupIds){for(var R=-1,A=this.hls.audioTracks[w.id].groupId,C=0;C0){var R=D.urlId,A=D.url[R];if(E)try{A=E.addDirectives(A)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+w+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+A),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:A,level:w,id:R,deliveryDirectives:E||null})}},a.removeLevel=function(E,w){var D=function(C,T){return T!==w},R=this._levels.filter(function(A,C){return C!==E?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(D),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(D)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(D)),A.urlId=0,!0):!1}).map(function(A,C){var T=A.details;return T!=null&&T.fragments&&T.fragments.forEach(function(c){c.level=C}),A});this._levels=R,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:R})},p(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var w,D=this._levels;if(D.length===0)return;if(this.currentLevelIndex===E&&(w=D[E])!==null&&w!==void 0&&w.details)return;if(E<0||E>=D.length){var R=E<0;if(this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.OTHER_ERROR,details:U.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,D.length-1)}this.clearTimer();var A=this.currentLevelIndex,C=D[A],T=D[E];this.log("switching to level "+E+" from "+A),this.currentLevelIndex=E;var c=v({},T,{level:E,maxBitrate:T.maxBitrate,uri:T.uri,urlId:T.urlId});delete c._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,c);var S=T.details;if(!S||S.live){var y=this.switchParams(T.uri,C==null?void 0:C.details);this.loadPlaylist(y)}}},{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}(r.default)},"./src/controller/level-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"addGroupId",function(){return U}),P.d(J,"assignTrackIdsByGroup",function(){return K}),P.d(J,"updatePTS",function(){return G}),P.d(J,"updateFragPTSDTS",function(){return L}),P.d(J,"mergeDetails",function(){return v}),P.d(J,"mapPartIntersection",function(){return m}),P.d(J,"mapFragmentIntersection",function(){return p}),P.d(J,"adjustSliding",function(){return h}),P.d(J,"addSliding",function(){return u}),P.d(J,"computeReloadInterval",function(){return f}),P.d(J,"getFragmentWithSN",function(){return l}),P.d(J,"getPartWith",function(){return o});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts");function U(s,a,O){switch(a){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(O);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(O);break}}function K(s){var a={};s.forEach(function(O){var E=O.groupId||"";O.id=a[E]=a[E]||0,a[E]++})}function G(s,a,O){var E=s[a],w=s[O];r(E,w)}function r(s,a){var O=a.startPTS;if(Object(X.isFiniteNumber)(O)){var E=0,w;a.sn>s.sn?(E=O-s.start,w=s):(E=s.start-O,w=a),w.duration!==E&&(w.duration=E)}else if(a.sn>s.sn){var D=s.cc===a.cc;D&&s.minEndPTS?a.start=s.start+(s.minEndPTS-s.start):a.start=s.start+s.duration}else a.start=Math.max(s.start-a.duration,0)}function L(s,a,O,E,w,D){var R=E-O;R<=0&&(j.logger.warn("Fragment should have a positive duration",a),E=O+a.duration,D=w+a.duration);var A=O,C=E,T=a.startPTS,c=a.endPTS;if(Object(X.isFiniteNumber)(T)){var S=Math.abs(T-O);Object(X.isFiniteNumber)(a.deltaPTS)?a.deltaPTS=Math.max(S,a.deltaPTS):a.deltaPTS=S,A=Math.max(O,T),O=Math.min(O,T),w=Math.min(w,a.startDTS),C=Math.min(E,c),E=Math.max(E,c),D=Math.max(D,a.endDTS)}a.duration=E-O;var y=O-a.start;a.appendedPTS=E,a.start=a.startPTS=O,a.maxStartPTS=A,a.startDTS=w,a.endPTS=E,a.minEndPTS=C,a.endDTS=D;var b=a.sn;if(!s||bs.endSN)return 0;var B,F=b-s.startSN,_=s.fragments;for(_[F]=a,B=F;B>0;B--)r(_[B],_[B-1]);for(B=F;B<_.length-1;B++)r(_[B],_[B+1]);return s.fragmentHint&&r(_[_.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,y}function v(s,a){for(var O=null,E=s.fragments,w=E.length-1;w>=0;w--){var D=E[w].initSegment;if(D){O=D;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,A;if(p(s,a,function(B,F){B.relurl&&(R=B.cc-F.cc),Object(X.isFiniteNumber)(B.startPTS)&&Object(X.isFiniteNumber)(B.endPTS)&&(F.start=F.startPTS=B.startPTS,F.startDTS=B.startDTS,F.appendedPTS=B.appendedPTS,F.maxStartPTS=B.maxStartPTS,F.endPTS=B.endPTS,F.endDTS=B.endDTS,F.minEndPTS=B.minEndPTS,F.duration=B.endPTS-B.startPTS,F.duration&&(A=F),a.PTSKnown=a.alignedSliding=!0),F.elementaryStreams=B.elementaryStreams,F.loader=B.loader,F.stats=B.stats,F.urlId=B.urlId,B.initSegment&&(F.initSegment=B.initSegment,O=B.initSegment)}),O){var C=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;C.forEach(function(B){var F;(!B.initSegment||B.initSegment.relurl===((F=O)===null||F===void 0?void 0:F.relurl))&&(B.initSegment=O)})}if(a.skippedSegments&&(a.deltaUpdateFailed=a.fragments.some(function(B){return!B}),a.deltaUpdateFailed)){j.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var T=a.skippedSegments;T--;)a.fragments.shift();a.startSN=a.fragments[0].sn,a.startCC=a.fragments[0].cc}var c=a.fragments;if(R){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var S=0;S=E.length)return;u(a,E[O].start)}function u(s,a){if(a){for(var O=s.fragments,E=s.skippedSegments;E0&&w0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),C=T),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var C,T=this.levels,c=this.level,S=T==null||((C=T[c])===null||C===void 0)?void 0:C.details;if(S&&(!S.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(S))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var y,b=self.performance.now(),B=this.retryDate;(!B||b>=B||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var C,T,c=this.hls,S=this.levelLastLoaded,y=this.levels,b=this.media,B=c.config,F=c.nextLoadLevel;if(S===null||!b&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!y||!y[F])return;var _=y[F];this.level=c.nextLoadLevel=F;var M=_.details;if(!M||this.state===j.State.WAITING_LEVEL||M.live&&this.levelLastLoaded!==F){this.state=j.State.WAITING_LEVEL;return}var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,L.PlaylistLevelType.MAIN);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(_.maxBitrate);if(g>=H)return;if(this._streamEnded(I,M)){var $={};this.altAudio&&($.type="video"),this.hls.trigger(K.Events.BUFFER_EOS,$),this.state=j.State.ENDED;return}var ne=I.end,se=this.getNextFragment(ne,M);if(this.couldBacktrack&&!this.fragPrevious&&se&&se.sn!=="initSegment"){var Oe=se.sn-M.startSN;Oe>1&&(se=M.fragments[Oe-1],this.fragmentTracker.removeFragment(se))}if(se&&this.fragmentTracker.getState(se)===r.FragmentState.OK&&this.nextLoadPosition>ne){var ge=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,ge,L.PlaylistLevelType.MAIN),se=this.getNextFragment(this.nextLoadPosition,M)}if(!se)return;se.initSegment&&!se.initSegment.data&&!this.bitrateTest&&(se=se.initSegment),((C=se.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((T=se.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(se,M):this.loadFragment(se,M,ne)},R.loadFragment=function(C,T,c){var S,y=this.fragmentTracker.getState(C);if(this.fragCurrent=C,y===r.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(C);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else y=r.FragmentState.NOT_LOADED}y===r.FragmentState.NOT_LOADED||y===r.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,C,T,c)):y===r.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((S=this.media)===null||S===void 0?void 0:S.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(C){var T=this.fragmentTracker.getAppendedFrag(C,L.PlaylistLevelType.MAIN);return T&&"fragment"in T?T.fragment:T},R.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,L.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var C=this.levels,T=this.media;if(T!=null&&T.readyState){var c,S=this.getAppendedFrag(T.currentTime);if(S&&S.start>1&&this.flushMainBuffer(0,S.start-1),!T.paused&&C){var y=this.hls.nextLoadLevel,b=C[y],B=this.fragLastKbps;B&&this.fragCurrent?c=this.fragCurrent.duration*b.maxBitrate/(1e3*B)+1:c=0}else c=0;var F=this.getBufferedFrag(T.currentTime+c);if(F){var _=this.followingBufferedFrag(F);if(_){this.abortCurrentFrag();var M=_.maxStartPTS?_.maxStartPTS:_.start,I=_.duration,g=Math.max(F.end,M+Math.min(Math.max(I-this.config.maxFragLookUpTolerance,I*.5),I*.75));this.flushMainBuffer(g,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(C,T){w.prototype.flushMainBuffer.call(this,C,T,this.altAudio?"video":null)},R.onMediaAttached=function(C,T){w.prototype.onMediaAttached.call(this,C,T);var c=T.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),c.addEventListener("playing",this.onvplaying),c.addEventListener("seeked",this.onvseeked),this.gapController=new h.default(this.config,c,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var C=this.media,T=C?C.currentTime:null;Object(X.isFiniteNumber)(T)&&this.log("Media seeked to "+T.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(K.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(C,T){var c=!1,S=!1,y;T.levels.forEach(function(b){y=b.audioCodec,y&&(y.indexOf("mp4a.40.2")!==-1&&(c=!0),y.indexOf("mp4a.40.5")!==-1&&(S=!0))}),this.audioCodecSwitch=c&&S&&!Object(U.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=T.levels,this.startFragRequested=!1},R.onLevelLoading=function(C,T){var c=this.levels;if(!c||this.state!==j.State.IDLE)return;var S=c[T.level];(!S.details||S.details.live&&this.levelLastLoaded!==T.level||this.waitForCdnTuneIn(S.details))&&(this.state=j.State.WAITING_LEVEL)},R.onLevelLoaded=function(C,T){var c,S=this.levels,y=T.level,b=T.details,B=b.totalduration;if(!S){this.warn("Levels were reset while loading level "+y);return}this.log("Level "+y+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+B);var F=this.fragCurrent;F&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==T.level&&F.loader&&(this.state=j.State.IDLE,F.loader.abort()));var _=S[y],M=0;if(b.live||(c=_.details)!==null&&c!==void 0&&c.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;M=this.alignPlaylists(b,_.details)}if(_.details=b,this.levelLastLoaded=y,this.hls.trigger(K.Events.LEVEL_UPDATED,{details:b,level:y}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=j.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,M),this.tick()},R._handleFragmentLoadProgress=function(C){var T,c=C.frag,S=C.part,y=C.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+c.sn+" of level "+c.level+" will not be buffered");return}var B=b[c.level],F=B.details;if(!F){this.warn("Dropping fragment "+c.sn+" of level "+c.level+" after level details were reset");return}var _=B.videoCodec,M=F.PTSKnown||!F.live,I=(T=c.initSegment)===null||T===void 0?void 0:T.data,g=this._getAudioCodec(B),H=this.transmuxer=this.transmuxer||new m.default(this.hls,L.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),$=S?S.index:-1,ne=$!==-1,se=new p.ChunkMetadata(c.level,c.sn,c.stats.chunkCount,y.byteLength,$,ne),Oe=this.initPTS[c.cc];H.push(y,I,g,_,c,S,F.totalduration,M,se,Oe)},R.onAudioTrackSwitching=function(C,T){var c=this.altAudio,S=!!T.url,y=T.id;if(!S){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var B=this.hls;c&&B.trigger(K.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(K.Events.AUDIO_TRACK_SWITCHED,{id:y})}},R.onAudioTrackSwitched=function(C,T){var c=T.id,S=!!this.hls.audioTracks[c].url;if(S){var y=this.videoBuffer;y&&this.mediaBuffer!==y&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=y)}this.altAudio=S,this.tick()},R.onBufferCreated=function(C,T){var c=T.tracks,S,y,b=!1;for(var B in c){var F=c[B];if(F.id==="main"){if(y=B,S=F,B==="video"){var _=c[B];_&&(this.videoBuffer=_.buffer)}}else b=!0}b&&S?(this.log("Alternate track found, use "+y+".buffered to schedule main fragment loading"),this.mediaBuffer=S.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(C,T){var c=T.frag,S=T.part;if(c&&c.type!==L.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(c)){this.warn("Fragment "+c.sn+(S?" p: "+S.index:"")+" of level "+c.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var y=S?S.stats:c.stats;this.fragLastKbps=Math.round(8*y.total/(y.buffering.end-y.loading.first)),c.sn!=="initSegment"&&(this.fragPrevious=c),this.fragBufferedComplete(c,S)},R.onError=function(C,T){switch(T.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.MAIN,T);break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(T.fatal?(this.warn(""+T.details),this.state=j.State.ERROR):!T.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var c=!0,S=this.getFwdBufferInfo(this.media,L.PlaylistLevelType.MAIN);S&&S.len>.5&&(c=!this.reduceMaxBufferLength(S.len)),c&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var C=this.media,T=this.gapController;if(!C||!T||!C.readyState)return;var c=G.BufferHelper.getBuffered(C);!this.loadedmetadata&&c.length?(this.loadedmetadata=!0,this.seekToStartPos()):T.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(C,T){var c=T.type;if(c!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var S=(c===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(S,c,L.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(C,T){this.levels=T.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var C=this.media,T=C.currentTime,c=this.startPosition;if(c>=0&&T0&&(b1&&C.seeking===!1){var c=C.currentTime;if(G.BufferHelper.isBuffered(C,c)?T=this.getAppendedFrag(c):G.BufferHelper.isBuffered(C,c+.1)&&(T=this.getAppendedFrag(c+.1)),T){var S=this.fragPlaying,y=T.level;(!S||T.sn!==S.sn||S.level!==y||T.urlId!==S.urlId)&&(this.hls.trigger(K.Events.FRAG_CHANGED,{frag:T}),(!S||S.level!==y)&&this.hls.trigger(K.Events.LEVEL_SWITCHED,{level:y}),this.fragPlaying=T)}}},o(D,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);if(T)return T.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(T)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),D}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"SubtitleStreamController",function(){return s});var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/controller/fragment-finders.ts"),G=P("./src/utils/discontinuities.ts"),r=P("./src/controller/level-helper.ts"),L=P("./src/controller/fragment-tracker.ts"),v=P("./src/controller/base-stream-controller.ts"),m=P("./src/types/loader.ts"),p=P("./src/types/level.ts");function h(a,O){for(var E=0;E=T[y].start&&S<=T[y].end){c=T[y];break}var b=A.start+A.duration;c?c.end=b:(c={start:S,end:b},T.push(c)),this.fragmentTracker.fragBuffered(A)},E.onBufferFlushing=function(D,R){var A=R.startOffset,C=R.endOffset;if(A===0&&C!==Number.POSITIVE_INFINITY){var T=this.currentTrackId,c=this.levels;if(!c.length||!c[T]||!c[T].details)return;var S=c[T].details,y=S.targetduration,b=C-y;if(b<=0)return;R.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(B){for(var F=0;F=S.length||T!==c||!y)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(A=y.details)!==null&&A!==void 0&&A.live){var b=this.mainDetails;if(C.deltaUpdateFailed||!b)return;var B=b.fragments[0];if(!y.details)C.hasProgramDateTime&&b.hasProgramDateTime?Object(G.alignMediaPlaylistByPDT)(C,b):B&&Object(r.addSliding)(C,B.start);else{var F=this.alignPlaylists(C,y.details);F===0&&B&&Object(r.addSliding)(C,B.start)}}if(y.details=C,this.levelLastLoaded=T,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===v.State.IDLE){var _=Object(K.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);_||(this.warn("Subtitle playlist not aligned with playback"),y.details=void 0)}},E._handleFragmentLoadComplete=function(D){var R=D.frag,A=D.payload,C=R.decryptdata,T=this.hls;if(this.fragContextChanged(R))return;if(A&&A.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var c=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),C.key.buffer,C.iv.buffer).then(function(S){var y=performance.now();T.trigger(X.Events.FRAG_DECRYPTED,{frag:R,payload:S,stats:{tstart:c,tdecrypt:y}})})}},E.doTick=function(){if(!this.media){this.state=v.State.IDLE;return}if(this.state===v.State.IDLE){var D,R=this.currentTrackId,A=this.levels;if(!A.length||!A[R]||!A[R].details)return;var C=A[R].details,T=C.targetduration,c=this.config,S=this.media,y=U.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,S.currentTime-T,c.maxBufferHole),b=y.end,B=y.len,F=this.getMaxBufferLength()+T;if(B>F)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var _=C.fragments,M=_.length,I=C.edge,g,H=this.fragPrevious;if(b-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)},f.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},f.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 o=p(this.media.textTracks);o.forEach(function(s){Object(j.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(o,s){this.tracks=s.subtitleTracks},f.onSubtitleTrackLoaded=function(o,s){var a=s.id,O=s.details,E=this.trackId,w=this.tracksInGroup[E];if(!w){this.warn("Invalid subtitle track id "+a);return}var D=w.details;w.details=s.details,this.log("subtitle track "+a+" loaded ["+O.startSN+"-"+O.endSN+"]"),a===this.trackId&&(this.retryCount=0,this.playlistLoaded(a,s,D))},f.onLevelLoading=function(o,s){this.switchLevel(s.level)},f.onLevelSwitching=function(o,s){this.switchLevel(s.level)},f.switchLevel=function(o){var s=this.hls.levels[o];if(!(s!=null&&s.textGroupIds))return;var a=s.textGroupIds[s.urlId];if(this.groupId!==a){var O=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!a||R.groupId===a});this.tracksInGroup=E;var w=this.findTrackId(O==null?void 0:O.name)||this.findTrackId();this.groupId=a;var D={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+a+'" group-id'),this.hls.trigger(X.Events.SUBTITLE_TRACKS_UPDATED,D),w!==-1&&this.setSubtitleTrack(w,O)}},f.findTrackId=function(o){for(var s=this.tracksInGroup,a=0;a=O.length)return;this.clearTimer();var E=O[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,E){var w=E.id,D=E.groupId,R=D===void 0?"":D,A=E.name,C=E.type,T=E.url;this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:R,name:A,type:C,url:T});var c=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(c)}else this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:o})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,s=p(this.media.textTracks),a=0;a=0&&(C[0]=Math.min(C[0],O),C[1]=Math.max(C[1],E),R=!0,T/(E-O)>.5))return}if(R||D.push([O,E]),this.config.renderTextTracksNatively){var c=this.captionsTracks[a];this.Cues.newCue(c,O,E,w)}else{var S=this.Cues.newCue(null,O,E,w);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:S,track:a})}},o.onInitPtsFound=function(a,O){var E=this,w=O.frag,D=O.id,R=O.initPTS,A=O.timescale,C=this.unparsedVttFrags;D==="main"&&(this.initPTS[w.cc]=R,this.timescale[w.cc]=A),C.length&&(this.unparsedVttFrags=[],C.forEach(function(T){E.onFragLoaded(j.Events.FRAG_LOADED,T)}))},o.getExistingTrack=function(a){var O=this.media;if(O)for(var E=0;E>>8^A&255^99,L[w]=A,v[A]=w;var C=E[w],T=E[C],c=E[T],S=E[A]*257^A*16843008;p[w]=S<<24|S>>>8,h[w]=S<<16|S>>>16,u[w]=S<<8|S>>>24,f[w]=S,S=c*16843009^T*65537^C*257^w*16843008,o[A]=S<<24|S>>>8,s[A]=S<<16|S>>>16,a[A]=S<<8|S>>>24,O[A]=S,w?(w=C^E[E[E[c^C]]],D^=E[E[D]]):w=D=1}},G.expandKey=function(L){for(var v=this.uint8ArrayToUint32Array_(L),m=!0,p=0;p>>6)+1;var S=(a[O+2]&60)>>>2;if(S>c.length-1){s.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+S});return}return R=(a[O+2]&1)<<2,R|=(a[O+3]&192)>>>6,X.logger.log("manifest codec:"+E+", ADTS type:"+w+", samplingIndex:"+S),/firefox/i.test(C)?S>=6?(w=5,A=new Array(4),D=S-3):(w=2,A=new Array(2),D=S):C.indexOf("android")!==-1?(w=2,A=new Array(2),D=S):(w=5,A=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&S>=6?D=S-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(S>=6&&R===1||/vivaldi/i.test(C))||!E&&R===1)&&(w=2,A=new Array(2)),D=S)),A[0]=w<<3,A[0]|=(S&14)>>1,A[1]|=(S&1)<<7,A[1]|=R<<3,w===5&&(A[1]|=(D&14)>>1,A[2]=(D&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:c[S],channelCount:R,codec:"mp4a.40."+w,manifestCodec:T}}function G(s,a){return s[a]===255&&(s[a+1]&246)===240}function r(s,a){return s[a+1]&1?7:9}function L(s,a){return(s[a+3]&3)<<11|s[a+4]<<3|(s[a+5]&224)>>>5}function v(s,a){return a+5=s.length)return!1;var E=L(s,a);if(E<=O)return!1;var w=a+E;return w===s.length||m(s,w)}return!1}function u(s,a,O,E,w){if(!s.samplerate){var D=K(a,O,E,w);if(!D)return;s.config=D.config,s.samplerate=D.samplerate,s.channelCount=D.channelCount,s.codec=D.codec,s.manifestCodec=D.manifestCodec,X.logger.log("parsed codec:"+s.codec+", rate:"+D.samplerate+", channels:"+D.channelCount)}}function f(s){return 1024*9e4/s}function l(s,a,O,E,w){var D=r(s,a),R=L(s,a);if(R-=D,R>0){var A=O+E*w;return{headerLength:D,frameLength:R,stamp:A}}}function o(s,a,O,E,w){var D=f(s.samplerate),R=l(a,O,E,w,D);if(R){var A=R.frameLength,C=R.headerLength,T=R.stamp,c=C+A,S=Math.max(0,O+c-a.length),y;S?(y=new Uint8Array(c-C),y.set(a.subarray(O+C,a.length),0)):y=a.subarray(O+C,O+c);var b={unit:y,pts:T};return S||s.samples.push(b),{sample:b,length:c,missing:S}}}},"./src/demux/base-audio-demuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"initPTSFn",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/dummy-demuxed-track.ts"),K=P("./src/utils/mp4-tools.ts"),G=P("./src/utils/typed-array.ts"),r=function(){function v(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var m=v.prototype;return m.resetInitSegment=function(h,u,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},m.resetTimeStamp=function(){},m.resetContiguity=function(){},m.canParse=function(h,u){return!1},m.appendFrame=function(h,u,f){},m.demux=function(h,u){this.cachedData&&(h=Object(K.appendUint8Array)(this.cachedData,h),this.cachedData=null);var f=j.getID3Data(h,0),l=f?f.length:0,o,s,a=this._audioTrack,O=this._id3Track,E=f?j.getTimeStamp(f):void 0,w=h.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=L(E,u)),f&&f.length>0&&O.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),s=this.initPTS;lr?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,L=r>>3,r-=L>>3,this.bytesAvailable-=L,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},K.readBits=function(r){var L=Math.min(this.bitsAvailable,r),v=this.word>>>32-L;return r>32&&X.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=L,this.bitsAvailable>0?this.word<<=L:this.bytesAvailable>0&&this.loadWord(),L=r-L,L>0&&this.bitsAvailable?v<>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},K.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(r){for(var L=8,v=8,m,p=0;p0?w.subarray(R,R+A):void 0},K=function(w,D){var R=0;return R=(w[D]&127)<<21,R|=(w[D+1]&127)<<14,R|=(w[D+2]&127)<<7,R|=w[D+3]&127,R},G=function(w,D){return X(w,D)&&K(w,D+6)+10<=w.length-D},r=function(w){for(var D=m(w),R=0;R>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(c);break;case 12:case 13:S=w[B++],b+=String.fromCharCode((c&31)<<6|S&63);break;case 14:S=w[B++],y=w[B++],b+=String.fromCharCode((c&15)<<12|(S&63)<<6|(y&63)<<0);break;default:}}return b},s={decodeTextFrame:u},a;function O(){return!a&&typeof self.TextDecoder!="undefined"&&(a=new self.TextDecoder("utf-8")),a}},"./src/demux/mp3demuxer.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/demux/base-audio-demuxer.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/logger.ts"),K=P("./src/demux/mpegaudio.ts");function G(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,r(v,m)}function r(v,m){return r=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},r(v,m)}var L=function(v){G(m,v);function m(){return v.apply(this,arguments)||this}var p=m.prototype;return p.resetInitSegment=function(u,f,l){v.prototype.resetInitSegment.call(this,u,f,l),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:u,duration:l,inputTimeScale:9e4,dropped:0}},m.probe=function(u){if(!u)return!1;for(var f=j.getID3Data(u,0)||[],l=f.length,o=u.length;l0},G.demux=function(L){var v=L,m=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(v=Object(X.appendUint8Array)(this.remainderData,L));var p=Object(X.segmentValidRange)(v);this.remainderData=p.remainder,m.samples=p.valid||new Uint8Array}else m.samples=v;return{audioTrack:Object(j.dummyTrack)(),avcTrack:m,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.flush=function(){var L=Object(j.dummyTrack)();return L.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:L,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.demuxSampleAes=function(L,v,m){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},G.destroy=function(){},K}();U.minProbeByteLength=1024,J.default=U},"./src/demux/mpegaudio.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"appendFrame",function(){return r}),P.d(J,"parseHeader",function(){return L}),P.d(J,"isHeaderPattern",function(){return v}),P.d(J,"isHeader",function(){return m}),P.d(J,"canParse",function(){return p}),P.d(J,"probe",function(){return h});var X=null,j=[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],U=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],K=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],G=[0,1,1,4];function r(u,f,l,o,s){if(l+24>f.length)return;var a=L(f,l);if(a&&l+a.frameLength<=f.length){var O=a.samplesPerFrame*9e4/a.sampleRate,E=o+s*O,w={unit:f.subarray(l,l+a.frameLength),pts:E,dts:E};return u.config=[],u.channelCount=a.channelCount,u.samplerate=a.sampleRate,u.samples.push(w),{sample:w,length:a.frameLength,missing:0}}}function L(u,f){var l=u[f+1]>>3&3,o=u[f+1]>>1&3,s=u[f+2]>>4&15,a=u[f+2]>>2&3;if(l!==1&&s!==0&&s!==15&&a!==3){var O=u[f+2]>>1&1,E=u[f+3]>>6,w=l===3?3-o:o===3?3:4,D=j[w*14+s-1]*1e3,R=l===3?0:l===2?1:2,A=U[R*3+a],C=E===3?1:2,T=K[l][o],c=G[o],S=T*8*c,y=Math.floor(T*D/A+O)*c;if(X===null){var b=navigator.userAgent||"",B=b.match(/Chrome\/(\d+)/i);X=B?parseInt(B[1]):0}var F=!!X&&X<=87;return F&&o===2&&D>=224e3&&E===0&&(u[f+3]=u[f+3]|128),{sampleRate:A,channelCount:C,frameLength:y,samplesPerFrame:S}}}function v(u,f){return u[f]===255&&(u[f+1]&224)===224&&(u[f+1]&6)!==0}function m(u,f){return f+1=L.length){m();return}if(L[v].unit.length<32)continue;var p=this.decrypter.isSync();if(this.decryptAacSample(L,v,m,p),!p)return}},G.getAvcEncryptedData=function(L){for(var v=Math.floor((L.length-48)/160)*16+16,m=new Int8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)m.set(L.subarray(h,h+16),p);return m},G.getAvcDecryptedUnit=function(L,v){for(var m=new Uint8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)L.set(m.subarray(p,p+16),h);return L},G.decryptAvcSample=function(L,v,m,p,h,u){var f=Object(j.discardEPB)(h.data),l=this.getAvcEncryptedData(f),o=this;this.decryptBuffer(l.buffer,function(s){h.data=o.getAvcDecryptedUnit(f,s),u||o.decryptAvcSamples(L,v,m+1,p)})},G.decryptAvcSamples=function(L,v,m,p){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;v++,m=0){if(v>=L.length){p();return}for(var h=L[v].units;!(m>=h.length);m++){var u=h[m];if(u.data.length<=48||u.type!==1&&u.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(L,v,m,p,u,f),!f)return}}},K}();J.default=U},"./src/demux/transmuxer-interface.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./node_modules/webworkify-webpack/index.js"),j=P.n(X),U=P("./src/events.ts"),K=P("./src/demux/transmuxer.ts"),G=P("./src/utils/logger.ts"),r=P("./src/errors.ts"),L=P("./src/utils/mediasource-helper.ts"),v=P("./node_modules/eventemitter3/index.js"),m=P.n(v),p=Object(L.getMediaSource)()||{isTypeSupported:function(){return!1}},h=function(){function u(l,o,s,a){var O=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=l,this.id=o,this.onTransmuxComplete=s,this.onFlush=a;var E=l.config,w=function(T,c){c=c||{},c.frag=O.frag,c.id=O.id,l.trigger(T,c)};this.observer=new v.EventEmitter,this.observer.on(U.Events.FRAG_DECRYPTED,w),this.observer.on(U.Events.ERROR,w);var D={mp4:p.isTypeSupported("video/mp4"),mpeg:p.isTypeSupported("audio/mpeg"),mp3:p.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){G.logger.log("demuxing in webworker");var A;try{A=this.worker=X("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(C){l.trigger(U.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},A.postMessage({cmd:"init",typeSupported:D,vendor:R,id:o,config:JSON.stringify(E)})}catch(C){G.logger.warn("Error in worker:",C),G.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new K.default(this.observer,D,E,R,o),this.worker=null}}else this.transmuxer=new K.default(this.observer,D,E,R,o)}var f=u.prototype;return f.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var a=this.observer;a&&a.removeAllListeners(),this.observer=null},f.push=function(o,s,a,O,E,w,D,R,A,C){var T=this;A.transmuxing.start=self.performance.now();var c=this.transmuxer,S=this.worker,y=w?w.start:E.start,b=E.decryptdata,B=this.frag,F=!(B&&E.cc===B.cc),_=!(B&&A.level===B.level),M=B?A.sn-B.sn:-1,I=this.part?A.part-this.part.index:1,g=!_&&(M===1||M===0&&I===1),H=self.performance.now();(_||M||E.stats.parsing.start===0)&&(E.stats.parsing.start=H),w&&(I||!g)&&(w.stats.parsing.start=H);var $=new K.TransmuxState(F,g,R,_,y);if(!g||F){G.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+` discontinuity: `+F+` trackSwitch: `+_+` contiguous: `+g+` accurateTimeOffset: `+R+` - timeOffset: `+y);var ne=new K.TransmuxConfig(a,O,s,D,C);this.configureTransmuxer(ne)}if(this.frag=E,this.part=w,S)S.postMessage({cmd:"demux",data:o,decryptdata:b,chunkMeta:A,state:$},o instanceof ArrayBuffer?[o]:[]);else if(d){var se=d.push(o,b,A,$);Object(K.isPromise)(se)?se.then(function(Oe){T.handleTransmuxComplete(Oe)}):this.handleTransmuxComplete(se)}},f.flush=function(o){var s=this;o.transmuxing.start=self.performance.now();var a=this.transmuxer,O=this.worker;if(O)O.postMessage({cmd:"flush",chunkMeta:o});else if(a){var E=a.flush(o);Object(K.isPromise)(E)?E.then(function(w){s.handleFlushResult(w,o)}):this.handleFlushResult(E,o)}},f.handleFlushResult=function(o,s){var a=this;o.forEach(function(O){a.handleTransmuxComplete(O)}),this.onFlush(s)},f.onWorkerMessage=function(o){var s=o.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(o){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:o}):a&&a.configure(o)},f.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return r});var X=P("./src/demux/transmuxer.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./node_modules/eventemitter3/index.js"),G=P.n(K);function r(h){var u=new K.EventEmitter,f=function(o,s){h.postMessage({event:o,data:s})};u.on(j.Events.FRAG_DECRYPTED,f),u.on(j.Events.ERROR,f),h.addEventListener("message",function(l){var o=l.data;switch(o.cmd){case"init":{var s=JSON.parse(o.config);h.transmuxer=new X.default(u,o.typeSupported,s,o.vendor,o.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{h.transmuxer.configure(o.config);break}case"demux":{var a=h.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(X.isPromise)(a)?a.then(function(w){L(h,w)}):L(h,a);break}case"flush":{var O=o.chunkMeta,E=h.transmuxer.flush(O);Object(X.isPromise)(E)?E.then(function(w){m(h,w,O)}):m(h,E,O);break}default:break}})}function L(h,u){if(p(u.remuxResult))return;var f=[],l=u.remuxResult,o=l.audio,s=l.video;o&&v(f,o),s&&v(f,s),h.postMessage({event:"transmuxComplete",data:u},f)}function v(h,u){u.data1&&h.push(u.data1.buffer),u.data2&&h.push(u.data2.buffer)}function m(h,u,f){u.forEach(function(l){L(h,l)}),h.postMessage({event:"flush",data:f})}function p(h){return!h.audio&&!h.video&&!h.text&&!h.id3&&!h.initSegment}},"./src/demux/transmuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"isPromise",function(){return E}),P.d(J,"TransmuxConfig",function(){return w}),P.d(J,"TransmuxState",function(){return D});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/crypt/decrypter.ts"),K=P("./src/demux/aacdemuxer.ts"),G=P("./src/demux/mp4demuxer.ts"),r=P("./src/demux/tsdemuxer.ts"),L=P("./src/demux/mp3demuxer.ts"),v=P("./src/remux/mp4-remuxer.ts"),m=P("./src/remux/passthrough-remuxer.ts"),p=P("./src/demux/chunk-cache.ts"),h=P("./src/utils/mp4-tools.ts"),u=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var l=[{demux:r.default,remux:v.default},{demux:G.default,remux:m.default},{demux:K.default,remux:v.default},{demux:L.default,remux:v.default}],o=1024;l.forEach(function(R){var A=R.demux;o=Math.max(o,A.minProbeByteLength)});var s=function(){function R(C,T,d,S,y){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 p.default,this.observer=C,this.typeSupported=T,this.config=d,this.vendor=S,this.id=y}var A=R.prototype;return A.configure=function(T){this.transmuxConfig=T,this.decrypter&&this.decrypter.reset()},A.push=function(T,d,S,y){var b=this,B=S.transmuxing;B.executeStart=f();var F=new Uint8Array(T),_=this.cache,M=this.config,I=this.currentTransmuxState,g=this.transmuxConfig;y&&(this.currentTransmuxState=y);var H=a(F,d);if(H&&H.method==="AES-128"){var $=this.getDecrypter();if(M.enableSoftwareAES){var ne=$.softwareDecrypt(F,H.key.buffer,H.iv.buffer);if(!ne)return B.executeEnd=f(),O(S);F=new Uint8Array(ne)}else return this.decryptionPromise=$.webCryptoDecrypt(F,H.key.buffer,H.iv.buffer).then(function(Ne){var Be=b.push(Ne,null,S);return b.decryptionPromise=null,Be}),this.decryptionPromise}var se=y||I,Oe=se.contiguous,ge=se.discontinuity,Te=se.trackSwitch,Re=se.accurateTimeOffset,Le=se.timeOffset,ce=g.audioCodec,he=g.videoCodec,re=g.defaultInitPts,fe=g.duration,oe=g.initSegmentData;if((ge||Te)&&this.resetInitSegment(oe,ce,he,fe),ge&&this.resetInitialTimestamp(re),Oe||this.resetContiguity(),this.needsProbing(F,ge,Te)){if(_.dataLength){var De=_.flush();F=Object(h.appendUint8Array)(De,F)}this.configureTransmuxer(F,g)}var Fe=this.transmux(F,H,Le,Re,S),Ce=this.currentTransmuxState;return Ce.contiguous=!0,Ce.discontinuity=!1,Ce.trackSwitch=!1,B.executeEnd=f(),Fe},A.flush=function(T){var d=this,S=T.transmuxing;S.executeStart=f();var y=this.decrypter,b=this.cache,B=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return d.flush(T)});var _=[],M=B.timeOffset;if(y){var I=y.flush();I&&_.push(this.push(I,null,T))}var g=b.dataLength;b.reset();var H=this.demuxer,$=this.remuxer;if(!H||!$)return g>=o&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),S.executeEnd=f(),[O(T)];var ne=H.flush(M);return E(ne)?ne.then(function(se){return d.flushRemux(_,se,T),_}):(this.flushRemux(_,ne,T),_)},A.flushRemux=function(T,d,S){var y=d.audioTrack,b=d.avcTrack,B=d.id3Track,F=d.textTrack,_=this.currentTransmuxState,M=_.accurateTimeOffset,I=_.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+S.sn+(S.part>-1?" p: "+S.part:"")+" of level "+S.level);var g=this.remuxer.remux(y,b,B,F,I,M,!0,this.id);T.push({remuxResult:g,chunkMeta:S}),S.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(T){var d=this.demuxer,S=this.remuxer;if(!d||!S)return;d.resetTimeStamp(T),S.resetTimeStamp(T)},A.resetContiguity=function(){var T=this.demuxer,d=this.remuxer;if(!T||!d)return;T.resetContiguity(),d.resetNextTimestamp()},A.resetInitSegment=function(T,d,S,y){var b=this.demuxer,B=this.remuxer;if(!b||!B)return;b.resetInitSegment(d,S,y),B.resetInitSegment(T,d,S)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(T,d,S,y,b){var B;return d&&d.method==="SAMPLE-AES"?B=this.transmuxSampleAes(T,d,S,y,b):B=this.transmuxUnencrypted(T,S,y,b),B},A.transmuxUnencrypted=function(T,d,S,y){var b=this.demuxer.demux(T,d,!1,!this.config.progressive),B=b.audioTrack,F=b.avcTrack,_=b.id3Track,M=b.textTrack,I=this.remuxer.remux(B,F,_,M,d,S,!1,this.id);return{remuxResult:I,chunkMeta:y}},A.transmuxSampleAes=function(T,d,S,y,b){var B=this;return this.demuxer.demuxSampleAes(T,d,S).then(function(F){var _=B.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,S,y,!1,B.id);return{remuxResult:_,chunkMeta:b}})},A.configureTransmuxer=function(T,d){for(var S=this.config,y=this.observer,b=this.typeSupported,B=this.vendor,F=d.audioCodec,_=d.defaultInitPts,M=d.duration,I=d.initSegmentData,g=d.videoCodec,H,$=0,ne=l.length;$0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(C=A),C}var O=function(A){return{remuxResult:{},chunkMeta:A}};function E(R){return"then"in R&&R.then instanceof Function}var w=function(A,C,T,d,S){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=C,this.initSegmentData=T,this.duration=d,this.defaultInitPts=S},D=function(A,C,T,d,S){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=C,this.accurateTimeOffset=T,this.trackSwitch=d,this.timeOffset=S}},"./src/demux/tsdemuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"discardEPB",function(){return O});var X=P("./src/demux/adts.ts"),j=P("./src/demux/mpegaudio.ts"),U=P("./src/demux/exp-golomb.ts"),K=P("./src/demux/id3.ts"),G=P("./src/demux/sample-aes.ts"),r=P("./src/events.ts"),L=P("./src/utils/mp4-tools.ts"),v=P("./src/utils/logger.ts"),m=P("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},h=function(){function E(D,R,A){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=D,this.config=R,this.typeSupported=A}E.probe=function(R){var A=E.syncOffset(R);return A<0?!1:(A&&v.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var A=Math.min(1e3,R.length-3*188),C=0;C>4,ce=void 0;if(Le>1){if(ce=ge+5+R[ge+4],ce===ge+188)continue}else ce=ge+4;switch(Re){case B:Te&&(F&&(d=o(F))&&this.parseAVCPES(d,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(ce,ge+188)),F.size+=ge+188-ce);break;case _:Te&&(I&&(d=o(I))&&(y.isAAC?this.parseAACPES(d):this.parseMPEGPES(d)),I={data:[],size:0}),I&&(I.data.push(R.subarray(ce,ge+188)),I.size+=ge+188-ce);break;case M:Te&&(g&&(d=o(g))&&this.parseID3PES(d),g={data:[],size:0}),g&&(g.data.push(R.subarray(ce,ge+188)),g.size+=ge+188-ce);break;case 0:Te&&(ce+=R[ce]+1),ne=this._pmtId=f(R,ce);break;case ne:{Te&&(ce+=R[ce]+1);var he=l(R,ce,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);B=he.avc,B>0&&(S.pid=B),_=he.audio,_>0&&(y.pid=_,y.isAAC=he.isAAC),M=he.id3,M>0&&(b.pid=M),H&&!$&&(v.logger.log("reparse from beginning"),H=!1,ge=Oe-188),$=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});S.pesData=F,y.pesData=I,b.pesData=g;var re={audioTrack:y,avcTrack:S,id3Track:b,textTrack:this._txtTrack};return T&&this.extractRemainingSamples(re),re},w.flush=function(){var R=this.remainderData;this.remainderData=null;var A;return R?A=this.demux(R,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(R){var A=R.audioTrack,C=R.avcTrack,T=R.id3Track,d=C.pesData,S=A.pesData,y=T.pesData,b;d&&(b=o(d))?(this.parseAVCPES(b,!0),C.pesData=null):C.pesData=d,S&&(b=o(S))?(A.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),A.pesData=null):(S!=null&&S.size&&v.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=S),y&&(b=o(y))?(this.parseID3PES(b),T.pesData=null):T.pesData=y},w.demuxSampleAes=function(R,A,C){var T=this.demux(R,C,!0,!this.config.progressive),d=this.sampleAes=new G.default(this.observer,this.config,A);return this.decrypt(T,d)},w.decrypt=function(R,A){return new Promise(function(C){var T=R.audioTrack,d=R.avcTrack;T.samples&&T.isAAC?A.decryptAacSamples(T.samples,0,function(){d.samples?A.decryptAvcSamples(d.samples,0,0,function(){C(R)}):C(R)}):d.samples&&A.decryptAvcSamples(d.samples,0,0,function(){C(R)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(R,A){var C=this,T=this._avcTrack,d=this.parseAVCNALu(R.data),S=!1,y=this.avcSample,b,B=!1;R.data=null,y&&d.length&&!T.audFound&&(s(y,T),y=this.avcSample=u(!1,R.pts,R.dts,"")),d.forEach(function(F){switch(F.type){case 1:{b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="NDR "),y.frame=!0;var _=F.data;if(B&&_.length>4){var M=new U.default(_).readSliceType();(M===2||M===4||M===7||M===9)&&(y.key=!0)}break}case 5:b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{b=!0,S&&y&&(y.debug+="SEI ");var I=new U.default(O(F.data));I.readUByte();for(var g=0,H=0,$=!1,ne=0;!$&&I.bytesAvailable>1;){g=0;do ne=I.readUByte(),g+=ne;while(ne===255);H=0;do ne=I.readUByte(),H+=ne;while(ne===255);if(g===4&&I.bytesAvailable!==0){$=!0;var se=I.readUByte();if(se===181){var Oe=I.readUShort();if(Oe===49){var ge=I.readUInt();if(ge===1195456820){var Te=I.readUByte();if(Te===3){for(var Re=I.readUByte(),Le=I.readUByte(),ce=31&Re,he=[Re,Le],re=0;re16){for(var fe=[],oe=0;oe<16;oe++)fe.push(I.readUByte().toString(16)),(oe===3||oe===5||oe===7||oe===9)&&fe.push("-");for(var De=H-16,Fe=new Uint8Array(De),Ce=0;Ce=0){var I={data:R.subarray(_,y-T-1),type:M};S.push(I)}else{var g=this.getLastNalUnit();if(g&&(d&&y<=4-d&&(g.state&&(g.data=g.data.subarray(0,g.data.byteLength-d))),B=y-T-1,B>0)){var H=new Uint8Array(g.data.byteLength+B);H.set(g.data,0),H.set(R.subarray(0,B),g.data.byteLength),g.data=H,g.state=0}}y=0&&T>=0){var $={data:R.subarray(_,A),type:M,state:T};S.push($)}if(S.length===0){var ne=this.getLastNalUnit();if(ne){var se=new Uint8Array(ne.data.byteLength+R.byteLength);se.set(ne.data,0),se.set(R,ne.data.byteLength),ne.data=se}}return C.naluState=T,S},w.parseAACPES=function(R){var A=0,C=this._audioTrack,T=this.aacOverFlow,d=R.data;if(T){this.aacOverFlow=null;var S=T.sample.unit.byteLength,y=Math.min(T.missing,S),b=S-y;T.sample.unit.set(d.subarray(0,y),b),C.samples.push(T.sample),A=T.missing}var B,F;for(B=A,F=d.length;B1;){var S=new Uint8Array(d[0].length+d[1].length);S.set(d[0]),S.set(d[1],d[0].length),d[0]=S,d.splice(1,1)}D=d[0];var y=(D[0]<<16)+(D[1]<<8)+D[2];if(y===1){if(R=(D[4]<<8)+D[5],R&&R>E.size-6)return null;var b=D[7];b&192&&(C=(D[9]&14)*536870912+(D[10]&255)*4194304+(D[11]&254)*16384+(D[12]&255)*128+(D[13]&254)/2,b&64?(T=(D[14]&14)*536870912+(D[15]&255)*4194304+(D[16]&254)*16384+(D[17]&255)*128+(D[18]&254)/2,C-T>60*9e4&&(v.logger.warn(Math.round((C-T)/9e4)+"s delta between PTS and DTS, align them"),C=T)):T=C),A=D[8];var B=A+9;if(E.size<=B)return null;E.size-=B;for(var F=new Uint8Array(E.size),_=0,M=d.length;_I){B-=I;continue}else D=D.subarray(B),I-=B,B=0;F.set(D,w),w+=I}return R&&(R-=A+3),{data:F,pts:C,dts:T,len:R}}return null}function s(E,w){if(E.units.length&&E.frame){if(E.pts===void 0){var D=w.samples,R=D.length;if(R){var A=D[R-1];E.pts=A.pts,E.dts=A.dts}else{w.dropped++;return}}w.samples.push(E)}E.debug.length&&v.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function a(E,w){var D=E.length;if(D>0){if(w.pts>=E[D-1].pts)E.push(w);else for(var R=D-1;R>=0;R--)if(w.ptsC)return d;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,C=this.autoLevelCapping,T;return C===-1&&A&&A.length?T=A.length-1:T=C,T}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var C=this.audioTrackController;C&&(C.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 o.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:u.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isSupported",function(){return U}),P.d(J,"changeTypeSupported",function(){return K});var X=P("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var G=Object(X.getMediaSource)();if(!G)return!1;var r=j(),L=G&&typeof G.isTypeSupported=="function"&&G.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),v=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!L&&!!v}function K(){var G,r=j();return typeof(r==null||((G=r.prototype)===null||G===void 0)?void 0:G.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h}),P.d(J,"LoadError",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/errors.ts");function U(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,v(l,o)}function K(l){var o=typeof Map=="function"?new Map:void 0;return K=function(a){if(a===null||!L(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(a))return o.get(a);o.set(a,O)}function O(){return G(a,arguments,m(this).constructor)}return O.prototype=Object.create(a.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),v(O,a)},K(l)}function G(l,o,s){return r()?G=Reflect.construct:G=function(O,E,w){var D=[null];D.push.apply(D,E);var R=Function.bind.apply(O,D),A=new R;return w&&v(A,w.prototype),A},G.apply(null,arguments)}function r(){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(l){return!1}}function L(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function v(l,o){return v=Object.setPrototypeOf||function(a,O){return a.__proto__=O,a},v(l,o)}function m(l){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(l)}var p=Math.pow(2,17),h=function(){function l(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var o=l.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(a,O){var E=this,w=a.url;if(!w)return Promise.reject(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){E.loader&&E.loader.destroy();var d=E.loader=a.loader=R?new R(D):new A(D),S=u(a),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=d.stats,d.load(S,y,{onSuccess:function(B,F,_,M){E.resetLoader(a,d),C({frag:a,part:null,payload:B.data,networkDetails:M})},onError:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:B,networkDetails:_}))},onAbort:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:_}))},onTimeout:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:_}))},onProgress:function(B,F,_,M){O&&O({frag:a,part:null,payload:_,networkDetails:M})}})})},o.loadPart=function(a,O,E){var w=this;this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){w.loader&&w.loader.destroy();var d=w.loader=a.loader=R?new R(D):new A(D),S=u(a,O),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};O.stats=d.stats,d.load(S,y,{onSuccess:function(B,F,_,M){w.resetLoader(a,d),w.updateStatsFromPart(a,O);var I={frag:a,part:O,payload:B.data,networkDetails:M};E(I),C(I)},onError:function(B,F,_){w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:O,response:B,networkDetails:_}))},onAbort:function(B,F,_){a.stats.aborted=O.stats.aborted,w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:O,networkDetails:_}))},onTimeout:function(B,F,_){w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:O,networkDetails:_}))}})})},o.updateStatsFromPart=function(a,O){var E=a.stats,w=O.stats,D=w.total;if(E.loaded+=w.loaded,D){var R=Math.round(a.duration/O.duration),A=Math.min(Math.round(E.loaded/D),R),C=R-A,T=C*Math.round(E.loaded/A);E.total=E.loaded+T}else E.total=Math.max(E.loaded,E.total);var d=E.loading,S=w.loading;d.start?d.first+=S.first-S.start:(d.start=S.start,d.first=S.first),d.end=S.end},o.resetLoader=function(a,O){a.loader=null,this.loader===O&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),O.destroy()},l}();function u(l,o){o===void 0&&(o=null);var s=o||l,a={frag:l,part:o,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},O=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(O)&&Object(X.isFiniteNumber)(E)&&(a.rangeStart=O,a.rangeEnd=E),a}var f=function(l){U(o,l);function o(s){for(var a,O=arguments.length,E=new Array(O>1?O-1:0),w=1;w>8*(15-D)&255;return w},a.setDecryptDataFromLevelKey=function(E,w){var D=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(D=G.LevelKey.fromURI(E.uri),D.method=E.method,D.iv=this.createInitializationVector(w),D.keyFormat="identity"),D},a.setElementaryStreamInfo=function(E,w,D,R,A,C){C===void 0&&(C=!1);var T=this.elementaryStreams,d=T[E];if(!d){T[E]={startPTS:w,endPTS:D,startDTS:R,endDTS:A,partial:C};return}d.startPTS=Math.min(d.startPTS,w),d.endPTS=Math.max(d.endPTS,D),d.startDTS=Math.min(d.startDTS,R),d.endDTS=Math.max(d.endDTS,A)},a.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[h.AUDIO]=null,E[h.VIDEO]=null,E[h.AUDIOVIDEO]=null},p(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&&K.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(X.isFiniteNumber)(this.programDateTime))return null;var E=Object(X.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}(u),l=function(o){L(s,o);function s(a,O,E,w,D){var R;R=o.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 r.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=O,R.index=w;var A=a.enumeratedString("BYTERANGE");return A&&R.setByteRange(A,D),D&&(R.fragOffset=D.fragOffset+D.duration),R}return p(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 O=this.elementaryStreams;return!!(O.audio||O.video||O.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return K});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/utils/logger.ts"),K=function(){function G(L){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=L,this._registerListeners()}var r=G.prototype;return r._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var v in this.loaders){var m=this.loaders[v];m&&m.destroy()}this.loaders={}},r.onKeyLoading=function(v,m){var p=m.frag,h=p.type,u=this.loaders[h];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var l=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+h),u.abort()),!f){U.logger.warn("key uri is falsy");return}var o=l.loader,s=p.loader=this.loaders[h]=new o(l);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},O={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,O,E)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},r.loadsuccess=function(v,m,p){var h=p.frag;if(!h.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=h.decryptdata.key=new Uint8Array(v.data),h.loader=null,delete this.loaders[h.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:h})},r.loaderror=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:v})},r.loadtimeout=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},G}()},"./src/loader/level-details.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelDetails",function(){return G});var X=P("./src/polyfills/number.ts");function j(r,L){for(var v=0;vm.endSN||p>0||p===0&&h>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||K}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelKey",function(){return G});var X=P("./node_modules/url-toolkit/src/url-toolkit.js"),j=P.n(X);function U(r,L){for(var v=0;v2){var T=C.shift()+".";return T+=parseInt(C.shift()).toString(16),T+=("000"+parseInt(C.shift()).toString(16)).substr(-4),T}return A},D.resolve=function(A,C){return j.buildAbsoluteURL(C,A,{alwaysNormalize:!0})},D.parseMasterPlaylist=function(A,C){var T=[],d={},S=!1;p.lastIndex=0;for(var y;(y=p.exec(A))!=null;)if(y[1]){var b=new L.AttrList(y[1]),B={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:D.resolve(y[2],C)},F=b.decimalResolution("RESOLUTION");F&&(B.width=F.width,B.height=F.height),a((b.CODECS||"").split(/[ ,]+/).filter(function(M){return M}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=D.convertAVC1ToAVCOTI(B.videoCodec)),T.push(B)}else if(y[3]){var _=new L.AttrList(y[3]);_["DATA-ID"]&&(S=!0,d[_["DATA-ID"]]=_)}return{levels:T,sessionData:S?d:null}},D.parseMasterPlaylistMedia=function(A,C,T,d){d===void 0&&(d=[]);var S,y=[],b=0;for(h.lastIndex=0;(S=h.exec(A))!==null;){var B=new L.AttrList(S[1]);if(B.TYPE===T){var F={attrs:B,bitrate:0,id:b++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:T,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?D.resolve(B.URI,C):""};if(d.length){var _=D.findGroup(d,F.groupId)||d[0];O(F,_,"audioCodec"),O(F,_,"textCodec")}y.push(F)}}return y},D.parseLevelPlaylist=function(A,C,T,d,S){var y=new G.LevelDetails(C),b=y.fragments,B=null,F=0,_=0,M=0,I=0,g=null,H=new K.Fragment(d,C),$,ne,se,Oe=-1,ge=!1;for(u.lastIndex=0,y.m3u8=A;($=u.exec(A))!==null;){ge&&(ge=!1,H=new K.Fragment(d,C),H.start=M,H.sn=F,H.cc=I,H.level=T,B&&(H.initSegment=B,H.rawProgramDateTime=B.rawProgramDateTime));var Te=$[1];if(Te){H.duration=parseFloat(Te);var Re=(" "+$[2]).slice(1);H.title=Re||null,H.tagList.push(Re?["INF",Te,Re]:["INF",Te])}else if($[3])Object(X.isFiniteNumber)(H.duration)&&(H.start=M,se&&(H.levelkey=se),H.sn=F,H.level=T,H.cc=I,H.urlId=S,b.push(H),H.relurl=(" "+$[3]).slice(1),w(H,g),g=H,M+=H.duration,F++,_=0,ge=!0);else if($[4]){var Le=(" "+$[4]).slice(1);g?H.setByteRange(Le,g):H.setByteRange(Le)}else if($[5])H.rawProgramDateTime=(" "+$[5]).slice(1),H.tagList.push(["PROGRAM-DATE-TIME",H.rawProgramDateTime]),Oe===-1&&(Oe=b.length);else{if($=$[0].match(f),!$){v.logger.warn("No matches on slow regex match for level playlist!");continue}for(ne=1;ne<$.length&&!(typeof $[ne]!="undefined");ne++);var ce=(" "+$[ne]).slice(1),he=(" "+$[ne+1]).slice(1),re=$[ne+2]?(" "+$[ne+2]).slice(1):"";switch(ce){case"PLAYLIST-TYPE":y.type=he.toUpperCase();break;case"MEDIA-SEQUENCE":F=y.startSN=parseInt(he);break;case"SKIP":{var fe=new L.AttrList(he),oe=fe.decimalInteger("SKIPPED-SEGMENTS");if(Object(X.isFiniteNumber)(oe)){y.skippedSegments=oe;for(var De=oe;De--;)b.unshift(null);F+=oe}var Fe=fe.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fe&&(y.recentlyRemovedDateranges=Fe.split(" "));break}case"TARGETDURATION":y.targetduration=parseFloat(he);break;case"VERSION":y.version=parseInt(he);break;case"EXTM3U":break;case"ENDLIST":y.live=!1;break;case"#":(he||re)&&H.tagList.push(re?[he,re]:[he]);break;case"DIS":I++;case"GAP":H.tagList.push([ce]);break;case"BITRATE":H.tagList.push([ce,he]);break;case"DISCONTINUITY-SEQ":I=parseInt(he);break;case"KEY":{var Ce,Ne=new L.AttrList(he),Be=Ne.enumeratedString("METHOD"),le=Ne.URI,ve=Ne.hexadecimalInteger("IV"),Se=Ne.enumeratedString("KEYFORMATVERSIONS"),Ie=Ne.enumeratedString("KEYID"),We=(Ce=Ne.enumeratedString("KEYFORMAT"))!=null?Ce:"identity",Ve=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ve.indexOf(We)>-1){v.logger.warn("Keyformat "+We+" is not supported from the manifest");continue}else if(We!=="identity")continue;Be&&(se=r.LevelKey.fromURL(C,le),le&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Be)>=0&&(se.method=Be,se.keyFormat=We,Ie&&(se.keyID=Ie),Se&&(se.keyFormatVersions=Se),se.iv=ve));break}case"START":{var Qe=new L.AttrList(he),Je=Qe.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)(Je)&&(y.startTimeOffset=Je);break}case"MAP":{var st=new L.AttrList(he);H.relurl=st.URI,st.BYTERANGE&&H.setByteRange(st.BYTERANGE),H.level=T,H.sn="initSegment",se&&(H.levelkey=se),H.initSegment=null,B=H,ge=!0;break}case"SERVER-CONTROL":{var qe=new L.AttrList(he);y.canBlockReload=qe.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=qe.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&qe.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=qe.optionalFloat("PART-HOLD-BACK",0),y.holdBack=qe.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var at=new L.AttrList(he);y.partTarget=at.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=y.partList;Ue||(Ue=y.partList=[]);var dt=_>0?Ue[Ue.length-1]:void 0,lt=_++,je=new K.Part(new L.AttrList(he),H,C,lt,dt);Ue.push(je),H.duration+=je.duration;break}case"PRELOAD-HINT":{var Ge=new L.AttrList(he);y.preloadHint=Ge;break}case"RENDITION-REPORT":{var Ae=new L.AttrList(he);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ae);break}default:v.logger.warn("line parsed but not handled: "+$);break}}}g&&!g.relurl?(b.pop(),M-=g.duration,y.partList&&(y.fragmentHint=g)):y.partList&&(w(H,g),H.cc=I,y.fragmentHint=H);var _e=b.length,we=b[0],ae=b[_e-1];if(M+=y.skippedSegments*y.targetduration,M>0&&_e&&ae){y.averagetargetduration=M/_e;var ue=ae.sn;y.endSN=ue!=="initSegment"?ue:0,we&&(y.startCC=we.cc,we.initSegment||y.fragments.every(function(de){return de.relurl&&o(de.relurl)})&&(v.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),H=new K.Fragment(d,C),H.relurl=ae.relurl,H.level=T,H.sn="initSegment",we.initSegment=H,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(M+=y.fragmentHint.duration),y.totalduration=M,y.endCC=I,Oe>0&&E(b,Oe),y},D}();function a(D,R){["video","audio","text"].forEach(function(A){var C=D.filter(function(d){return Object(m.isCodecType)(d,A)});if(C.length){var T=C.filter(function(d){return d.lastIndexOf("avc1",0)===0||d.lastIndexOf("mp4a",0)===0});R[A+"Codec"]=T.length>0?T[0]:C[0],D=D.filter(function(d){return C.indexOf(d)===-1})}}),R.unknownCodecs=D}function O(D,R,A){var C=R[A];C&&(D[A]=C)}function E(D,R){for(var A=D[R],C=R;C--;){var T=D[C];if(!T)return;T.programDateTime=A.programDateTime-T.duration*1e3,A=T}}function w(D,R){D.rawProgramDateTime?D.programDateTime=Date.parse(D.rawProgramDateTime):R!=null&&R.programDateTime&&(D.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(D.programDateTime)||(D.programDateTime=null,D.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/logger.ts"),G=P("./src/utils/mp4-tools.ts"),r=P("./src/loader/m3u8-parser.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case L.PlaylistContextType.AUDIO_TRACK:return L.PlaylistLevelType.AUDIO;case L.PlaylistContextType.SUBTITLE_TRACK:return L.PlaylistLevelType.SUBTITLE;default:return L.PlaylistLevelType.MAIN}}function p(u,f){var l=u.url;return(l===void 0||l.indexOf("data:")===0)&&(l=f.url),l}var h=function(){function u(l){this.hls=void 0,this.loaders=Object.create(null),this.hls=l,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var o=this.hls;o.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(o){var s=this.hls.config,a=s.pLoader,O=s.loader,E=a||O,w=new E(s);return o.loader=w,this.loaders[o.type]=w,w},f.getInternalLoader=function(o){return this.loaders[o.type]},f.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},f.destroyInternalLoaders=function(){for(var o in this.loaders){var s=this.loaders[o];s&&s.destroy(),this.resetInternalLoader(o)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(o,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:L.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(o,s){var a=s.id,O=s.level,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:null,level:O,responseType:"text",type:L.PlaylistContextType.LEVEL,url:E,deliveryDirectives:w})},f.onAudioTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:w})},f.load=function(o){var s,a=this.hls.config,O=this.getInternalLoader(o);if(O){var E=O.context;if(E&&E.url===o.url){K.logger.trace("[playlist-loader]: playlist request ongoing");return}K.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),O.abort()}var w,D,R,A;switch(o.type){case L.PlaylistContextType.MANIFEST:w=a.manifestLoadingMaxRetry,D=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,A=a.manifestLoadingMaxRetryTimeout;break;case L.PlaylistContextType.LEVEL:case L.PlaylistContextType.AUDIO_TRACK:case L.PlaylistContextType.SUBTITLE_TRACK:w=0,D=a.levelLoadingTimeOut;break;default:w=a.levelLoadingMaxRetry,D=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,A=a.levelLoadingMaxRetryTimeout;break}if(O=this.createInternalLoader(o),(s=o.deliveryDirectives)!==null&&s!==void 0&&s.part){var C;if(o.type===L.PlaylistContextType.LEVEL&&o.level!==null?C=this.hls.levels[o.level].details:o.type===L.PlaylistContextType.AUDIO_TRACK&&o.id!==null?C=this.hls.audioTracks[o.id].details:o.type===L.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(C=this.hls.subtitleTracks[o.id].details),C){var T=C.partTarget,d=C.targetduration;T&&d&&(D=Math.min(Math.max(T*3,d*.8)*1e3,D))}}var S={timeout:D,maxRetry:w,retryDelay:R,maxRetryDelay:A,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};O.load(o,S,y)},f.loadsuccess=function(o,s,a,O){if(O===void 0&&(O=null),a.isSidxRequest){this.handleSidxRequest(o,a),this.handlePlaylistLoaded(o,s,a,O);return}this.resetInternalLoader(a.type);var E=o.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,a,"no EXTM3U delimiter",O);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,s,a,O):this.handleMasterPlaylist(o,s,a,O)},f.loaderror=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,o)},f.loadtimeout=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(o,s,a,O){var E=this.hls,w=o.data,D=p(o,a),R=r.default.parseMasterPlaylist(w,D),A=R.levels,C=R.sessionData;if(!A.length){this.handleManifestParsingError(o,a,"no level found in manifest",O);return}var T=A.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),d=A.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),S=r.default.parseMasterPlaylistMedia(w,D,"AUDIO",T),y=r.default.parseMasterPlaylistMedia(w,D,"SUBTITLES",d),b=r.default.parseMasterPlaylistMedia(w,D,"CLOSED-CAPTIONS");if(S.length){var B=S.some(function(F){return!F.url});!B&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(K.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new v.AttrList({}),bitrate:0,url:""}))}E.trigger(j.Events.MANIFEST_LOADED,{levels:A,audioTracks:S,subtitles:y,captions:b,url:D,stats:s,networkDetails:O,sessionData:C})},f.handleTrackOrLevelPlaylist=function(o,s,a,O){var E=this.hls,w=a.id,D=a.level,R=a.type,A=p(o,a),C=Object(X.isFiniteNumber)(w)?w:0,T=Object(X.isFiniteNumber)(D)?D:C,d=m(a),S=r.default.parseLevelPlaylist(o.data,A,T,d,C);if(!S.fragments.length){E.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===L.PlaylistContextType.MANIFEST){var y={attrs:new v.AttrList({}),bitrate:0,details:S,name:"",url:A};E.trigger(j.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:A,stats:s,networkDetails:O,sessionData:null})}if(s.parsing.end=performance.now(),S.needSidxRanges){var b,B=(b=S.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:B,isSidxRequest:!0,type:R,level:D,levelDetails:S,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=S,this.handlePlaylistLoaded(o,s,a,O)},f.handleSidxRequest=function(o,s){var a=Object(G.parseSegmentIndex)(new Uint8Array(o.data));if(!a)return;var O=a.references,E=s.levelDetails;O.forEach(function(w,D){var R=w.info,A=E.fragments[D];A.byteRange.length===0&&A.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),A.initSegment&&A.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(o,s,a,O){this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===L.PlaylistContextType.MANIFEST,url:o.url,reason:a,response:o,context:s,networkDetails:O})},f.handleNetworkError=function(o,s,a,O){a===void 0&&(a=!1),K.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var E=U.ErrorDetails.UNKNOWN,w=!1,D=this.getInternalLoader(o);switch(o.type){case L.PlaylistContextType.MANIFEST:E=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case L.PlaylistContextType.LEVEL:E=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.AUDIO_TRACK:E=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.SUBTITLE_TRACK:E=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}D&&this.resetInternalLoader(o.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:E,fatal:w,url:o.url,loader:D,context:o,networkDetails:s};O&&(R.response=O),this.hls.trigger(j.Events.ERROR,R)},f.handlePlaylistLoaded=function(o,s,a,O){var E=a.type,w=a.level,D=a.id,R=a.groupId,A=a.loader,C=a.levelDetails,T=a.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(o,a,"invalid target duration",O);return}if(!A)return;C.live&&(A.getCacheAge&&(C.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(E){case L.PlaylistContextType.MANIFEST:case L.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:C,level:w||0,id:D||0,stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break}},u}();J.default=h},"./src/polyfills/number.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isFiniteNumber",function(){return X}),P.d(J,"MAX_SAFE_INTEGER",function(){return j});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(){}return j.getSilentFrame=function(K,G){switch(K){case"mp4a.40.2":if(G===1)return new Uint8Array([0,200,0,128,35,128]);if(G===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(G===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(G===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(G===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(G===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(G===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(G===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(G===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},j}();J.default=X},"./src/remux/mp4-generator.ts":function(ie,J,P){"use strict";P.r(J);var X=Math.pow(2,32)-1,j=function(){function U(){}return U.init=function(){U.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var G;for(G in U.types)U.types.hasOwnProperty(G)&&(U.types[G]=[G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2),G.charCodeAt(3)]);var r=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]),L=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]);U.HDLR_TYPES={video:r,audio:L};var v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),h=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,h),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,v))},U.box=function(G){for(var r=8,L=arguments.length,v=new Array(L>1?L-1:0),m=1;m>24&255,u[1]=r>>16&255,u[2]=r>>8&255,u[3]=r&255,u.set(G,4),p=0,r=8;p>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&255,85,196,0,0]))},U.mdia=function(G){return U.box(U.types.mdia,U.mdhd(G.timescale,G.duration),U.hdlr(G.type),U.minf(G))},U.mfhd=function(G){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,G>>24,G>>16&255,G>>8&255,G&255]))},U.minf=function(G){return G.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(G)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(G))},U.moof=function(G,r,L){return U.box(U.types.moof,U.mfhd(G),U.traf(L,r))},U.moov=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trak(G[r]);return U.box.apply(null,[U.types.moov,U.mvhd(G[0].timescale,G[0].duration)].concat(L).concat(U.mvex(G)))},U.mvex=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trex(G[r]);return U.box.apply(null,[U.types.mvex].concat(L))},U.mvhd=function(G,r){r*=G;var L=Math.floor(r/(X+1)),v=Math.floor(r%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,G>>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&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 U.box(U.types.mvhd,m)},U.sdtp=function(G){var r=G.samples||[],L=new Uint8Array(4+r.length),v,m;for(v=0;v>>8&255),r.push(p&255),r=r.concat(Array.prototype.slice.call(m));for(v=0;v>>8&255),L.push(p&255),L=L.concat(Array.prototype.slice.call(m));var h=U.box(U.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|G.sps.length].concat(r).concat([G.pps.length]).concat(L))),u=G.width,f=G.height,l=G.pixelRatio[0],o=G.pixelRatio[1];return U.box(U.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,u>>8&255,u&255,f>>8&255,f&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]),h,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,l&255,o>>24,o>>16&255,o>>8&255,o&255])))},U.esds=function(G){var r=G.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(G.config).concat([6,1,2]))},U.mp4a=function(G){var r=G.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),U.box(U.types.esds,U.esds(G)))},U.mp3=function(G){var r=G.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},U.stsd=function(G){return G.type==="audio"?!G.isAAC&&G.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(G)):U.box(U.types.stsd,U.STSD,U.mp4a(G)):U.box(U.types.stsd,U.STSD,U.avc1(G))},U.tkhd=function(G){var r=G.id,L=G.duration*G.timescale,v=G.width,m=G.height,p=Math.floor(L/(X+1)),h=Math.floor(L%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,h>>24,h>>16&255,h>>8&255,h&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,v>>8&255,v&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(G,r){var L=U.sdtp(G),v=G.id,m=Math.floor(r/(X+1)),p=Math.floor(r%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,v>>24,v>>16&255,v>>8&255,v&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(G,L.length+16+20+8+16+8+8),L)},U.trak=function(G){return G.duration=G.duration||4294967295,U.box(U.types.trak,U.tkhd(G),U.mdia(G))},U.trex=function(G){var r=G.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(G,r){var L=G.samples||[],v=L.length,m=12+16*v,p=new Uint8Array(m),h,u,f,l,o,s;for(r+=8+m,p.set([0,0,15,1,v>>>24&255,v>>>16&255,v>>>8&255,v&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),h=0;h>>24&255,f>>>16&255,f>>>8&255,f&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*h);return U.box(U.types.trun,p)},U.initSegment=function(G){U.types||U.init();var r=U.moov(G),L=new Uint8Array(U.FTYP.byteLength+r.byteLength);return L.set(U.FTYP),L.set(r,U.FTYP.byteLength),L},U}();j.types=void 0,j.HDLR_TYPES=void 0,j.STTS=void 0,j.STSC=void 0,j.STCO=void 0,j.STSZ=void 0,j.VMHD=void 0,j.SMHD=void 0,j.STSD=void 0,j.FTYP=void 0,j.DINF=void 0,J.default=j},"./src/remux/mp4-remuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"normalizePts",function(){return a});var X=P("./src/polyfills/number.ts"),j=P("./src/remux/aac-helper.ts"),U=P("./src/remux/mp4-generator.ts"),K=P("./src/events.ts"),G=P("./src/errors.ts"),r=P("./src/utils/logger.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(D){for(var R=1;R0?S:y.pts},C[0].pts);return T&&r.logger.debug("PTS rollover detected"),d},R.remux=function(C,T,d,S,y,b,B,F){var _,M,I,g,H,$,ne=y,se=y,Oe=C.pid>-1,ge=T.pid>-1,Te=T.samples.length,Re=C.samples.length>0,Le=Te>1,ce=(!Oe||Re)&&(!ge||Le)||this.ISGenerated||B;if(ce){this.ISGenerated||(I=this.generateIS(C,T,y));var he=this.isVideoContiguous,re=-1;if(Le&&(re=O(T.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if($=!0,re>0){r.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+Te+" video samples due to a missing keyframe");var fe=this.getVideoStartPts(T.samples);T.samples=T.samples.slice(re),T.dropped+=re,se+=(T.samples[0].pts-fe)/(T.timescale||9e4)}else re===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+Te+" video samples"),$=!1);if(this.ISGenerated){if(Re&&Le){var oe=this.getVideoStartPts(T.samples),De=a(C.samples[0].pts,oe)-oe,Fe=De/T.inputTimeScale;ne+=Math.max(0,Fe),se+=Math.max(0,-Fe)}if(Re){if(C.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(C,T,y)),M=this.remuxAudio(C,ne,this.isAudioContiguous,b,ge||Le||F===L.PlaylistLevelType.AUDIO?se:void 0),Le){var Ce=M?M.endPTS-M.startPTS:0;T.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(C,T,y)),_=this.remuxVideo(T,se,he,Ce)}}else Le&&(_=this.remuxVideo(T,se,he,0));_&&(_.firstKeyFrame=re,_.independent=re!==-1)}}return this.ISGenerated&&(d.samples.length&&(H=this.remuxID3(d,y)),S.samples.length&&(g=this.remuxText(S,y))),{audio:M,video:_,initSegment:I,independent:$,text:g,id3:H}},R.generateIS=function(C,T,d){var S=C.samples,y=T.samples,b=this.typeSupported,B={},F=!Object(X.isFiniteNumber)(this._initPTS),_="audio/mp4",M,I,g;if(F&&(M=I=Infinity),C.config&&S.length&&(C.timescale=C.samplerate,C.isAAC||(b.mpeg?(_="audio/mpeg",C.codec=""):b.mp3&&(C.codec="mp3")),B.audio={id:"audio",container:_,codec:C.codec,initSegment:!C.isAAC&&b.mpeg?new Uint8Array(0):U.default.initSegment([C]),metadata:{channelCount:C.channelCount}},F&&(g=C.inputTimeScale,M=I=S[0].pts-Math.round(g*d))),T.sps&&T.pps&&y.length&&(T.timescale=T.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:T.codec,initSegment:U.default.initSegment([T]),metadata:{width:T.width,height:T.height}},F)){g=T.inputTimeScale;var H=this.getVideoStartPts(y),$=Math.round(g*d);I=Math.min(I,a(y[0].dts,H)-$),M=Math.min(M,H-$)}if(Object.keys(B).length)return this.ISGenerated=!0,F&&(this._initPTS=M,this._initDTS=I),{tracks:B,initPTS:M,timescale:g}},R.remuxVideo=function(C,T,d,S){var y=C.inputTimeScale,b=C.samples,B=[],F=b.length,_=this._initPTS,M=this.nextAvcDts,I=8,g,H,$,ne=Number.POSITIVE_INFINITY,se=Number.NEGATIVE_INFINITY,Oe=0,ge=!1;if(!d||M===null){var Te=T*y,Re=b[0].pts-a(b[0].dts,b[0].pts);M=Te-Re}for(var Le=0;Lece.pts){var he=9e4*.2;Oe=Math.max(Math.min(Oe,ce.pts-ce.dts),-1*he)}ce.dts0?Le-1:Le].dts&&(ge=!0)}ge&&b.sort(function(yt,ct){var ft=yt.dts-ct.dts,Ot=yt.pts-ct.pts;return ft||Ot}),H=b[0].dts,$=b[b.length-1].dts;var re=Math.round(($-H)/(F-1));if(Oe<0){if(Oere,Ne=Fe<-1;if(Ce||Ne){Ce?r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms ("+Fe+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(-Fe,!0)+" ms ("+Fe+"dts) overlapping between fragments detected"),H=M;var Be=b[0].pts-Fe;b[0].dts=H,b[0].pts=Be,r.logger.log("Video: First PTS/DTS adjusted: "+Object(v.toMsFromMpegTsClock)(Be,!0)+"/"+Object(v.toMsFromMpegTsClock)(H,!0)+", delta: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms")}}o&&(H=Math.max(0,H));for(var le=0,ve=0,Se=0;Se0?Ue-1:Ue].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var me=Math.floor(ue.maxBufferHole*y),xe=(S?ne+S*y:this.nextAudioPts)-dt.pts;xe>me?(g=xe-de,g<0&&(g=de),r.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=de}else g=de}var Pe=Math.round(dt.pts-dt.dts);B.push(new E(dt.key,g,je,Pe))}if(B.length&&f&&f<70){var He=B[0].flags;He.dependsOn=2,He.isNonSync=0}console.assert(g!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=M=$+g,this.isVideoContiguous=!0;var ze=U.default.moof(C.sequenceNumber++,H,m({},C,{samples:B})),ht="video",ot={data1:ze,data2:qe,startPTS:ne/y,endPTS:(se+g)/y,startDTS:H/y,endDTS:M/y,type:ht,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(qe.length,"MDAT length must not be zero"),ot},R.remuxAudio=function(C,T,d,S,y){var b=C.inputTimeScale,B=C.samplerate?C.samplerate:b,F=b/B,_=C.isAAC?h:u,M=_*F,I=this._initPTS,g=!C.isAAC&&this.typeSupported.mpeg,H=[],$=C.samples,ne=g?0:8,se=this.nextAudioPts||-1,Oe=T*b;if(this.isAudioContiguous=d=d||$.length&&se>0&&(S&&Math.abs(Oe-se)<9e3||Math.abs(a($[0].pts-I,Oe)-se)<20*M),$.forEach(function(we){we.pts=a(we.pts-I,Oe)}),!d||se<0){if($=$.filter(function(we){return we.pts>=0}),!$.length)return;y===0?se=0:S?se=Math.max(0,Oe):se=$[0].pts}if(C.isAAC)for(var ge=y!==void 0,Te=this.config.maxAudioFramesDrift,Re=0,Le=se;Re<$.length;Re++){var ce=$[Re],he=ce.pts,re=he-Le,fe=Math.abs(1e3*re/b);if(re<=-Te*M&&ge)Re===0&&(r.logger.warn("Audio frame @ "+(he/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*re/b)+" ms."),this.nextAudioPts=se=Le=he);else if(re>=Te*M&&fe0){ve+=ne;try{le=new Uint8Array(ve)}catch(we){this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:G.ErrorTypes.MUX_ERROR,details:G.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!g){var qe=new DataView(le.buffer);qe.setUint32(0,ve),le.set(U.default.types.mdat,4)}}else return;le.set(Qe,ne);var at=Qe.byteLength;ne+=at,H.push(new E(!0,_,at,0)),Be=Je}var Ue=H.length;if(!Ue)return;var dt=H[H.length-1];this.nextAudioPts=se=Be+F*dt.duration;var lt=g?new Uint8Array(0):U.default.moof(C.sequenceNumber++,Ne/F,m({},C,{samples:H}));C.samples=[];var je=Ne/b,Ge=se/b,Ae="audio",_e={data1:lt,data2:le,startPTS:je,endPTS:Ge,startDTS:je,endDTS:Ge,type:Ae,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(le.length,"MDAT length must not be zero"),_e},R.remuxEmptyAudio=function(C,T,d,S){var y=C.inputTimeScale,b=C.samplerate?C.samplerate:y,B=y/b,F=this.nextAudioPts,_=(F!==null?F:S.startDTS*y)+this._initDTS,M=S.endDTS*y+this._initDTS,I=B*h,g=Math.ceil((M-_)/I),H=j.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!H){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var $=[],ne=0;ne4294967296;)D+=A;return D}function O(D){for(var R=0;R0?this.lastEndDTS=C:(K.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!D.audio,d=!!D.video,S="";T&&(S+="audio"),d&&(S+="video");var y={data1:E,startPTS:A,startDTS:A,endPTS:C,endDTS:C,type:S,hasAudio:T,hasVideo:d,nb:1,dropped:0};return O.audio=y.type==="audio"?y:void 0,O.video=y.type!=="audio"?y:void 0,O.text=l,O.id3=f,O.initSegment=w,O},v}(),r=function(m,p,h){return Object(j.getStartDTS)(m,p)-h};function L(v,m){var p=v==null?void 0:v.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}J.default=G},"./src/task-loop.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return X});var X=function(){function j(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=j.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(G){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,G),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},j}()},"./src/types/cmcd.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"CMCDVersion",function(){return X}),P.d(J,"CMCDObjectType",function(){return j}),P.d(J,"CMCDStreamingFormat",function(){return U}),P.d(J,"CMCDStreamType",function(){return K});var X=1,j;(function(G){G.MANIFEST="m",G.AUDIO="a",G.VIDEO="v",G.MUXED="av",G.INIT="i",G.CAPTION="c",G.TIMED_TEXT="tt",G.KEY="k",G.OTHER="o"})(j||(j={}));var U;(function(G){G.DASH="d",G.HLS="h",G.SMOOTH="s",G.OTHER="o"})(U||(U={}));var K;(function(G){G.VOD="v",G.LIVE="l"})(K||(K={}))},"./src/types/level.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"HlsSkip",function(){return U}),P.d(J,"getSkipValue",function(){return K}),P.d(J,"HlsUrlParameters",function(){return G}),P.d(J,"Level",function(){return r});function X(L,v){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:v},G.hexadecimalInteger=function(L){if(this[L]){var v=(this[L]||"0x").slice(2);v=(v.length&1?"0":"")+v;for(var m=new Uint8Array(v.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:v},G.decimalFloatingPoint=function(L){return parseFloat(this[L])},G.optionalFloat=function(L,v){var m=this[L];return m?parseFloat(m):v},G.enumeratedString=function(L){return this[L]},G.bool=function(L){return this[L]==="YES"},G.decimalResolution=function(L){var v=X.exec(this[L]);return v===null?void 0:{width:parseInt(v[1],10),height:parseInt(v[2],10)}},K.parseAttrList=function(L){var v,m={},p='"';for(j.lastIndex=0;(v=j.exec(L))!==null;){var h=v[2];h.indexOf(p)===0&&h.lastIndexOf(p)===h.length-1&&(h=h.slice(1,-1)),m[v[1]]=h}return m},K}()},"./src/utils/binary-search.ts":function(ie,J,P){"use strict";P.r(J);var X={search:function(U,K){for(var G=0,r=U.length-1,L=null,v=null;G<=r;){L=(G+r)/2|0,v=U[L];var m=K(v);if(m>0)G=L+1;else if(m<0)r=L-1;else return v}return null}};J.default=X},"./src/utils/buffer-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"BufferHelper",function(){return U});var X=P("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function K(){}return K.isBuffered=function(r,L){try{if(r){for(var v=K.getBuffered(r),m=0;m=v.start(m)&&L<=v.end(m))return!0}}catch(p){}return!1},K.bufferInfo=function(r,L,v){try{if(r){var m=K.getBuffered(r),p=[],h;for(h=0;hu&&(m[h-1].end=r[p].end):m.push(r[p])}else m.push(r[p])}else m=r;for(var f=0,l,o=L,s=L,a=0;a=O&&L=d&&X.logger.log(this.time+" ["+d+"] "+S)},A}(),f=function(C){for(var T=[],d=0;dG&&(this.logger.log(h.DEBUG,"Too large cursor position "+this.pos),this.pos=G)},C.moveCursor=function(d){var S=this.pos+d;if(d>1)for(var y=this.pos+1;y=144&&this.backSpace();var S=U(d);if(this.pos>=G){this.logger.log(h.ERROR,"Cannot insert "+d.toString(16)+" ("+S+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(S,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(d){var S;for(S=d;S0&&(d?y="["+S.join(" | ")+"]":y=S.join(` -`)),y},C.getTextAndFormat=function(){return this.rows},A}(),O=function(){function A(T,d,S){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=T,this.outputFilter=d,this.mode=null,this.verbose=0,this.displayedMemory=new a(S),this.nonDisplayedMemory=new a(S),this.lastOutputScreen=new a(S),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=S}var C=A.prototype;return C.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},C.getHandler=function(){return this.outputFilter},C.setHandler=function(d){this.outputFilter=d},C.setPAC=function(d){this.writeScreen.setPAC(d)},C.setBkgData=function(d){this.writeScreen.setBkgData(d)},C.setMode=function(d){if(d===this.mode)return;this.mode=d,this.logger.log(h.INFO,"MODE="+d),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=d},C.insertChars=function(d){for(var S=0;S=46,S.italics)S.foreground="white";else{var y=Math.floor(d/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];S.foreground=b[y]}this.logger.log(h.INFO,"MIDROW: "+JSON.stringify(S)),this.writeScreen.setPen(S)},C.outputDataUpdate=function(d){d===void 0&&(d=!1);var S=this.logger.time;if(S===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=S:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,S,this.lastOutputScreen),d&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:S),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(d){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,d,this.displayedMemory),this.cueStartTime=d))},A}(),E=function(){function A(T,d,S){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new O(T,d,y),new O(T+1,S,y)],this.cmdHistory=R(),this.logger=y}var C=A.prototype;return C.getHandler=function(d){return this.channels[d].getHandler()},C.setHandler=function(d,S){this.channels[d].setHandler(S)},C.addData=function(d,S){var y,b,B,F=!1;this.logger.time=d;for(var _=0;_ ("+f([b,B])+")"),y=this.parseCmd(b,B),y||(y=this.parseMidrow(b,B)),y||(y=this.parsePAC(b,B)),y||(y=this.parseBackgroundAttributes(b,B)),!y&&(F=this.parseChars(b,B),F)){var M=this.currentChannel;if(M&&M>0){var I=this.channels[M];I.insertChars(F)}else this.logger.log(h.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!F&&this.logger.log(h.WARNING,"Couldn't parse cleaned data "+f([b,B])+" orig: "+f([S[_],S[_+1]]))}},C.parseCmd=function(d,S){var y=this.cmdHistory,b=(d===20||d===28||d===21||d===29)&&S>=32&&S<=47,B=(d===23||d===31)&&S>=33&&S<=35;if(!(b||B))return!1;if(D(d,S,y))return w(null,null,y),this.logger.log(h.DEBUG,"Repeated command ("+f([d,S])+") is dropped"),!0;var F=d===20||d===21||d===23?1:2,_=this.channels[F];return d===20||d===21||d===28||d===29?S===32?_.ccRCL():S===33?_.ccBS():S===34?_.ccAOF():S===35?_.ccAON():S===36?_.ccDER():S===37?_.ccRU(2):S===38?_.ccRU(3):S===39?_.ccRU(4):S===40?_.ccFON():S===41?_.ccRDC():S===42?_.ccTR():S===43?_.ccRTD():S===44?_.ccEDM():S===45?_.ccCR():S===46?_.ccENM():S===47&&_.ccEOC():_.ccTO(S-32),w(d,S,y),this.currentChannel=F,!0},C.parseMidrow=function(d,S){var y=0;if((d===17||d===25)&&S>=32&&S<=47){if(d===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(h.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[y];return b?(b.ccMIDROW(S),this.logger.log(h.DEBUG,"MIDROW ("+f([d,S])+")"),!0):!1}return!1},C.parsePAC=function(d,S){var y,b=this.cmdHistory,B=(d>=17&&d<=23||d>=25&&d<=31)&&S>=64&&S<=127,F=(d===16||d===24)&&S>=64&&S<=95;if(!(B||F))return!1;if(D(d,S,b))return w(null,null,b),!0;var _=d<=23?1:2;S>=64&&S<=95?y=_===1?r[d]:v[d]:y=_===1?L[d]:m[d];var M=this.channels[_];return M?(M.setPAC(this.interpretPAC(y,S)),w(d,S,b),this.currentChannel=_,!0):!1},C.interpretPAC=function(d,S){var y,b={color:null,italics:!1,indent:null,underline:!1,row:d};return S>95?y=S-96:y=S-64,b.underline=(y&1)===1,y<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((y-16)/2)*4,b},C.parseChars=function(d,S){var y,b=null,B=null;if(d>=25?(y=2,B=d-8):(y=1,B=d),B>=17&&B<=19){var F;B===17?F=S+80:B===18?F=S+112:F=S+144,this.logger.log(h.INFO,"Special char '"+U(F)+"' in channel "+y),b=[F]}else d>=32&&d<=127&&(b=S===0?[d]:[d,S]);if(b){var _=f(b);this.logger.log(h.DEBUG,"Char codes = "+_.join(",")),w(d,S,this.cmdHistory)}return b},C.parseBackgroundAttributes=function(d,S){var y=(d===16||d===24)&&S>=32&&S<=47,b=(d===23||d===31)&&S>=45&&S<=47;if(!(y||b))return!1;var B,F={};d===16||d===24?(B=Math.floor((S-32)/2),F.background=p[B],S%2===1&&(F.background=F.background+"_semi")):S===45?F.background="transparent":(F.foreground="black",S===47&&(F.underline=!0));var _=d<=23?1:2,M=this.channels[_];return M.setBkgData(F),w(d,S,this.cmdHistory),!0},C.reset=function(){for(var d=0;d=16?o--:o++;var w=Object(X.fixLineBreaks)(s.trim()),D=Object(j.generateCueId)(v,m,w);(!L||!L.cues||!L.cues.getCueById(D))&&(f=new a(v,m,w),f.id=D,f.line=O+1,f.align="left",f.position=10+Math.min(80,Math.floor(o*8/32)*10),h.push(f))}return L&&h.length&&(h.sort(function(R,A){return R.line==="auto"||A.line==="auto"?0:R.line>8&&A.line>8?A.line-R.line:R.line-A.line}),h.forEach(function(R){return Object(U.addCueToTrack)(L,R)})),h}};J.default=G},"./src/utils/discontinuities.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFirstFragWithCC",function(){return K}),P.d(J,"shouldAlignOnDiscontinuities",function(){return G}),P.d(J,"findDiscontinuousReferenceFrag",function(){return r}),P.d(J,"adjustSlidingStart",function(){return v}),P.d(J,"alignStream",function(){return m}),P.d(J,"alignPDT",function(){return h}),P.d(J,"alignFragmentByPDTDelta",function(){return u}),P.d(J,"alignMediaPlaylistByPDT",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts"),U=P("./src/controller/level-helper.ts");function K(l,o){for(var s=null,a=0,O=l.length;as.startCC||l&&l.cc=this.minWeight_},K.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},K.destroy=function(){},U}();J.default=j},"./src/utils/ewma.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(K,G,r){G===void 0&&(G=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=K,this.alpha_=K?Math.exp(Math.log(.5)/K):0,this.estimate_=G,this.totalWeight_=r}var U=j.prototype;return U.sample=function(G,r){var L=Math.pow(this.alpha_,G);this.estimate_=r*(1-L)+L*this.estimate_,this.totalWeight_+=G},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var G=1-Math.pow(this.alpha_,this.totalWeight_);if(G)return this.estimate_/G}return this.estimate_},j}();J.default=X},"./src/utils/fetch-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"fetchSupported",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/loader/load-stats.ts"),U=P("./src/demux/chunk-cache.ts");function K(a,O){a.prototype=Object.create(O.prototype),a.prototype.constructor=a,m(a,O)}function G(a){var O=typeof Map=="function"?new Map:void 0;return G=function(w){if(w===null||!v(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O!="undefined"){if(O.has(w))return O.get(w);O.set(w,D)}function D(){return r(w,arguments,p(this).constructor)}return D.prototype=Object.create(w.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m(D,w)},G(a)}function r(a,O,E){return L()?r=Reflect.construct:r=function(D,R,A){var C=[null];C.push.apply(C,R);var T=Function.bind.apply(D,C),d=new T;return A&&m(d,A.prototype),d},r.apply(null,arguments)}function L(){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(a){return!1}}function v(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,O){return m=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},m(a,O)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},p(a)}function h(){return h=Object.assign||function(a){for(var O=1;O=A&&C(D,R,T.flush(),w)):C(D,R,B,w),y()}).catch(function(){return Promise.reject()})};return S()},a}();function l(a,O){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:O,headers:new self.Headers(h({},a.headers))};return a.rangeEnd&&E.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),E}function o(a,O){return new self.Request(a.url,O)}var s=function(a){K(O,a);function O(E,w,D){var R;return R=a.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=w,R.details=D,R}return O}(G(Error));J.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"IMSC1_CODEC",function(){return v}),P.d(J,"parseIMSC1",function(){return u});var X=P("./src/utils/mp4-tools.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/utils/vttcue.ts"),K=P("./src/demux/id3.ts"),G=P("./src/utils/timescale-conversion.ts"),r=P("./src/utils/webvtt-parser.ts");function L(){return L=Object.assign||function(A){for(var C=1;C"):X}function G(v){for(var m=arguments.length,p=new Array(m>1?m-1:0),h=1;h>24,O[E+1]=w>>16&255,O[E+2]=w>>8&255,O[E+3]=w&255}function m(O,E){var w=[];if(!E.length)return w;var D,R,A;"data"in O?(D=O.data,R=O.start,A=O.end):(D=O,R=0,A=D.byteLength);for(var C=R;C1?C+T:A;if(d===E[0])if(E.length===1)w.push({data:D,start:C+8,end:S});else{var y=m({data:D,start:C+8,end:S},E.slice(1));y.length&&K.apply(w,y)}C=S}return w}function p(O){var E=m(O,["moov"]),w=E[0],D=w?w.end:null,R=m(O,["sidx"]);if(!R||!R[0])return null;var A=[],C=R[0],T=C.data[0],d=T===0?8:16,S=L(C,d);d+=4;var y=0,b=0;T===0?d+=8:d+=16,d+=2;var B=C.end+b,F=r(C,d);d+=2;for(var _=0;_>>31;if(H===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var $=L(C,M);M+=4,A.push({referenceSize:g,subsegmentDuration:$,info:{duration:$/S,start:B,end:B+g-1}}),B+=g,M+=4,d=M}return{earliestPresentationTime:y,timescale:S,version:T,referencesCount:F,references:A,moovEndOffset:D}}function h(O){for(var E=[],w=m(O,["moov","trak"]),D=0;DG)&&(this.startTime=G),this.endTime=r,this.screen=L,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"sendAddTrackEvent",function(){return j}),P.d(J,"addCueToTrack",function(){return U}),P.d(J,"clearCurrentCues",function(){return K}),P.d(J,"removeCuesInRange",function(){return G}),P.d(J,"getCuesInRange",function(){return L});var X=P("./src/utils/logger.ts");function j(v,m){var p;try{p=new Event("addtrack")}catch(h){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=v,m.dispatchEvent(p)}function U(v,m){var p=v.mode;if(p==="disabled"&&(v.mode="hidden"),v.cues&&!v.cues.getCueById(m.id))try{if(v.addCue(m),!v.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var h=new self.TextTrackCue(m.startTime,m.endTime,m.text);h.id=m.id,v.addCue(h)}p==="disabled"&&(v.mode=p)}function K(v){var m=v.mode;if(m==="disabled"&&(v.mode="hidden"),v.cues)for(var p=v.cues.length;p--;)v.removeCue(v.cues[p]);m==="disabled"&&(v.mode=m)}function G(v,m,p){var h=v.mode;if(h==="disabled"&&(v.mode="hidden"),v.cues&&v.cues.length>0)for(var u=L(v.cues,m,p),f=0;fv[p].endTime)return-1;for(var h=0,u=p;h<=u;){var f=Math.floor((u+h)/2);if(mv[f].startTime&&h-1)for(var f=u,l=v.length;f=m&&o.endTime<=p)h.push(o);else if(o.startTime>p)return h}return h}},"./src/utils/time-ranges.ts":function(ie,J,P){"use strict";P.r(J);var X={toString:function(U){for(var K="",G=U.length,r=0;r1?m-1:0),h=1;h100)throw new Error("Position must be between 0 and 100.");A=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",r({},u,{get:function(){return C},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");C=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",r({},u,{get:function(){return T},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");T=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",r({},u,{get:function(){return d},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");d=b,this.hasBeenReset=!0}})),h.displayState=void 0}return L.prototype.getCueAsHTML=function(){var v=self.WebVTT;return v.convertCueToDOMTree(self,this.text)},L}()},"./src/utils/vttparser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"parseTimeStamp",function(){return U}),P.d(J,"fixLineBreaks",function(){return m}),P.d(J,"VTTParser",function(){return p});var X=P("./src/utils/vttcue.ts"),j=function(){function h(){}var u=h.prototype;return u.decode=function(l,o){if(!l)return"";if(typeof l!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(l))},h}();function U(h){function u(l,o,s,a){return(l|0)*3600+(o|0)*60+(s|0)+parseFloat(a||0)}var f=h.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var K=function(){function h(){this.values=Object.create(null)}var u=h.prototype;return u.set=function(l,o){!this.get(l)&&o!==""&&(this.values[l]=o)},u.get=function(l,o,s){return s?this.has(l)?this.values[l]:o[s]:this.has(l)?this.values[l]:o},u.has=function(l){return l in this.values},u.alt=function(l,o,s){for(var a=0;a=0&&s<=100)return this.set(l,s),!0}return!1},h}();function G(h,u,f,l){var o=l?h.split(l):[h];for(var s in o){if(typeof o[s]!="string")continue;var a=o[s].split(f);if(a.length!==2)continue;var O=a[0],E=a[1];u(O,E)}}var r=new X.default(0,0,""),L=r.align==="middle"?"middle":"center";function v(h,u,f){var l=h;function o(){var O=U(h);if(O===null)throw new Error("Malformed timestamp: "+l);return h=h.replace(/^[^\sa-zA-Z-]+/,""),O}function s(O,E){var w=new K;G(O,function(A,C){var T;switch(A){case"region":for(var d=f.length-1;d>=0;d--)if(f[d].id===C){w.set(A,f[d].region);break}break;case"vertical":w.alt(A,C,["rl","lr"]);break;case"line":T=C.split(","),w.integer(A,T[0]),w.percent(A,T[0])&&w.set("snapToLines",!1),w.alt(A,T[0],["auto"]),T.length===2&&w.alt("lineAlign",T[1],["start",L,"end"]);break;case"position":T=C.split(","),w.percent(A,T[0]),T.length===2&&w.alt("positionAlign",T[1],["start",L,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,C);break;case"align":w.alt(A,C,["start",L,"end","left","right"]);break}},/:/,/\s/),E.region=w.get("region",null),E.vertical=w.get("vertical","");var D=w.get("line","auto");D==="auto"&&r.line===-1&&(D=-1),E.line=D,E.lineAlign=w.get("lineAlign","start"),E.snapToLines=w.get("snapToLines",!0),E.size=w.get("size",100),E.align=w.get("align",L);var R=w.get("position","auto");R==="auto"&&r.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function a(){h=h.replace(/^\s+/,"")}if(a(),u.startTime=o(),a(),h.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+l);h=h.substr(3),a(),u.endTime=o(),a(),s(h,u)}function m(h){return h.replace(//gi,` + timeOffset: `+y);var ne=new K.TransmuxConfig(a,O,s,D,C);this.configureTransmuxer(ne)}if(this.frag=E,this.part=w,S)S.postMessage({cmd:"demux",data:o,decryptdata:b,chunkMeta:A,state:$},o instanceof ArrayBuffer?[o]:[]);else if(c){var se=c.push(o,b,A,$);Object(K.isPromise)(se)?se.then(function(Oe){T.handleTransmuxComplete(Oe)}):this.handleTransmuxComplete(se)}},f.flush=function(o){var s=this;o.transmuxing.start=self.performance.now();var a=this.transmuxer,O=this.worker;if(O)O.postMessage({cmd:"flush",chunkMeta:o});else if(a){var E=a.flush(o);Object(K.isPromise)(E)?E.then(function(w){s.handleFlushResult(w,o)}):this.handleFlushResult(E,o)}},f.handleFlushResult=function(o,s){var a=this;o.forEach(function(O){a.handleTransmuxComplete(O)}),this.onFlush(s)},f.onWorkerMessage=function(o){var s=o.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(o){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:o}):a&&a.configure(o)},f.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return r});var X=P("./src/demux/transmuxer.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./node_modules/eventemitter3/index.js"),G=P.n(K);function r(h){var u=new K.EventEmitter,f=function(o,s){h.postMessage({event:o,data:s})};u.on(j.Events.FRAG_DECRYPTED,f),u.on(j.Events.ERROR,f),h.addEventListener("message",function(l){var o=l.data;switch(o.cmd){case"init":{var s=JSON.parse(o.config);h.transmuxer=new X.default(u,o.typeSupported,s,o.vendor,o.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{h.transmuxer.configure(o.config);break}case"demux":{var a=h.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(X.isPromise)(a)?a.then(function(w){L(h,w)}):L(h,a);break}case"flush":{var O=o.chunkMeta,E=h.transmuxer.flush(O);Object(X.isPromise)(E)?E.then(function(w){m(h,w,O)}):m(h,E,O);break}default:break}})}function L(h,u){if(p(u.remuxResult))return;var f=[],l=u.remuxResult,o=l.audio,s=l.video;o&&v(f,o),s&&v(f,s),h.postMessage({event:"transmuxComplete",data:u},f)}function v(h,u){u.data1&&h.push(u.data1.buffer),u.data2&&h.push(u.data2.buffer)}function m(h,u,f){u.forEach(function(l){L(h,l)}),h.postMessage({event:"flush",data:f})}function p(h){return!h.audio&&!h.video&&!h.text&&!h.id3&&!h.initSegment}},"./src/demux/transmuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"isPromise",function(){return E}),P.d(J,"TransmuxConfig",function(){return w}),P.d(J,"TransmuxState",function(){return D});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/crypt/decrypter.ts"),K=P("./src/demux/aacdemuxer.ts"),G=P("./src/demux/mp4demuxer.ts"),r=P("./src/demux/tsdemuxer.ts"),L=P("./src/demux/mp3demuxer.ts"),v=P("./src/remux/mp4-remuxer.ts"),m=P("./src/remux/passthrough-remuxer.ts"),p=P("./src/demux/chunk-cache.ts"),h=P("./src/utils/mp4-tools.ts"),u=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var l=[{demux:r.default,remux:v.default},{demux:G.default,remux:m.default},{demux:K.default,remux:v.default},{demux:L.default,remux:v.default}],o=1024;l.forEach(function(R){var A=R.demux;o=Math.max(o,A.minProbeByteLength)});var s=function(){function R(C,T,c,S,y){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 p.default,this.observer=C,this.typeSupported=T,this.config=c,this.vendor=S,this.id=y}var A=R.prototype;return A.configure=function(T){this.transmuxConfig=T,this.decrypter&&this.decrypter.reset()},A.push=function(T,c,S,y){var b=this,B=S.transmuxing;B.executeStart=f();var F=new Uint8Array(T),_=this.cache,M=this.config,I=this.currentTransmuxState,g=this.transmuxConfig;y&&(this.currentTransmuxState=y);var H=a(F,c);if(H&&H.method==="AES-128"){var $=this.getDecrypter();if(M.enableSoftwareAES){var ne=$.softwareDecrypt(F,H.key.buffer,H.iv.buffer);if(!ne)return B.executeEnd=f(),O(S);F=new Uint8Array(ne)}else return this.decryptionPromise=$.webCryptoDecrypt(F,H.key.buffer,H.iv.buffer).then(function(Ne){var Be=b.push(Ne,null,S);return b.decryptionPromise=null,Be}),this.decryptionPromise}var se=y||I,Oe=se.contiguous,ge=se.discontinuity,Te=se.trackSwitch,Re=se.accurateTimeOffset,Le=se.timeOffset,de=g.audioCodec,he=g.videoCodec,re=g.defaultInitPts,fe=g.duration,oe=g.initSegmentData;if((ge||Te)&&this.resetInitSegment(oe,de,he,fe),ge&&this.resetInitialTimestamp(re),Oe||this.resetContiguity(),this.needsProbing(F,ge,Te)){if(_.dataLength){var De=_.flush();F=Object(h.appendUint8Array)(De,F)}this.configureTransmuxer(F,g)}var Fe=this.transmux(F,H,Le,Re,S),Ce=this.currentTransmuxState;return Ce.contiguous=!0,Ce.discontinuity=!1,Ce.trackSwitch=!1,B.executeEnd=f(),Fe},A.flush=function(T){var c=this,S=T.transmuxing;S.executeStart=f();var y=this.decrypter,b=this.cache,B=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return c.flush(T)});var _=[],M=B.timeOffset;if(y){var I=y.flush();I&&_.push(this.push(I,null,T))}var g=b.dataLength;b.reset();var H=this.demuxer,$=this.remuxer;if(!H||!$)return g>=o&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),S.executeEnd=f(),[O(T)];var ne=H.flush(M);return E(ne)?ne.then(function(se){return c.flushRemux(_,se,T),_}):(this.flushRemux(_,ne,T),_)},A.flushRemux=function(T,c,S){var y=c.audioTrack,b=c.avcTrack,B=c.id3Track,F=c.textTrack,_=this.currentTransmuxState,M=_.accurateTimeOffset,I=_.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+S.sn+(S.part>-1?" p: "+S.part:"")+" of level "+S.level);var g=this.remuxer.remux(y,b,B,F,I,M,!0,this.id);T.push({remuxResult:g,chunkMeta:S}),S.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(T){var c=this.demuxer,S=this.remuxer;if(!c||!S)return;c.resetTimeStamp(T),S.resetTimeStamp(T)},A.resetContiguity=function(){var T=this.demuxer,c=this.remuxer;if(!T||!c)return;T.resetContiguity(),c.resetNextTimestamp()},A.resetInitSegment=function(T,c,S,y){var b=this.demuxer,B=this.remuxer;if(!b||!B)return;b.resetInitSegment(c,S,y),B.resetInitSegment(T,c,S)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(T,c,S,y,b){var B;return c&&c.method==="SAMPLE-AES"?B=this.transmuxSampleAes(T,c,S,y,b):B=this.transmuxUnencrypted(T,S,y,b),B},A.transmuxUnencrypted=function(T,c,S,y){var b=this.demuxer.demux(T,c,!1,!this.config.progressive),B=b.audioTrack,F=b.avcTrack,_=b.id3Track,M=b.textTrack,I=this.remuxer.remux(B,F,_,M,c,S,!1,this.id);return{remuxResult:I,chunkMeta:y}},A.transmuxSampleAes=function(T,c,S,y,b){var B=this;return this.demuxer.demuxSampleAes(T,c,S).then(function(F){var _=B.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,S,y,!1,B.id);return{remuxResult:_,chunkMeta:b}})},A.configureTransmuxer=function(T,c){for(var S=this.config,y=this.observer,b=this.typeSupported,B=this.vendor,F=c.audioCodec,_=c.defaultInitPts,M=c.duration,I=c.initSegmentData,g=c.videoCodec,H,$=0,ne=l.length;$0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(C=A),C}var O=function(A){return{remuxResult:{},chunkMeta:A}};function E(R){return"then"in R&&R.then instanceof Function}var w=function(A,C,T,c,S){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=C,this.initSegmentData=T,this.duration=c,this.defaultInitPts=S},D=function(A,C,T,c,S){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=C,this.accurateTimeOffset=T,this.trackSwitch=c,this.timeOffset=S}},"./src/demux/tsdemuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"discardEPB",function(){return O});var X=P("./src/demux/adts.ts"),j=P("./src/demux/mpegaudio.ts"),U=P("./src/demux/exp-golomb.ts"),K=P("./src/demux/id3.ts"),G=P("./src/demux/sample-aes.ts"),r=P("./src/events.ts"),L=P("./src/utils/mp4-tools.ts"),v=P("./src/utils/logger.ts"),m=P("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},h=function(){function E(D,R,A){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=D,this.config=R,this.typeSupported=A}E.probe=function(R){var A=E.syncOffset(R);return A<0?!1:(A&&v.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var A=Math.min(1e3,R.length-3*188),C=0;C>4,de=void 0;if(Le>1){if(de=ge+5+R[ge+4],de===ge+188)continue}else de=ge+4;switch(Re){case B:Te&&(F&&(c=o(F))&&this.parseAVCPES(c,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(de,ge+188)),F.size+=ge+188-de);break;case _:Te&&(I&&(c=o(I))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),I={data:[],size:0}),I&&(I.data.push(R.subarray(de,ge+188)),I.size+=ge+188-de);break;case M:Te&&(g&&(c=o(g))&&this.parseID3PES(c),g={data:[],size:0}),g&&(g.data.push(R.subarray(de,ge+188)),g.size+=ge+188-de);break;case 0:Te&&(de+=R[de]+1),ne=this._pmtId=f(R,de);break;case ne:{Te&&(de+=R[de]+1);var he=l(R,de,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);B=he.avc,B>0&&(S.pid=B),_=he.audio,_>0&&(y.pid=_,y.isAAC=he.isAAC),M=he.id3,M>0&&(b.pid=M),H&&!$&&(v.logger.log("reparse from beginning"),H=!1,ge=Oe-188),$=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});S.pesData=F,y.pesData=I,b.pesData=g;var re={audioTrack:y,avcTrack:S,id3Track:b,textTrack:this._txtTrack};return T&&this.extractRemainingSamples(re),re},w.flush=function(){var R=this.remainderData;this.remainderData=null;var A;return R?A=this.demux(R,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(R){var A=R.audioTrack,C=R.avcTrack,T=R.id3Track,c=C.pesData,S=A.pesData,y=T.pesData,b;c&&(b=o(c))?(this.parseAVCPES(b,!0),C.pesData=null):C.pesData=c,S&&(b=o(S))?(A.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),A.pesData=null):(S!=null&&S.size&&v.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=S),y&&(b=o(y))?(this.parseID3PES(b),T.pesData=null):T.pesData=y},w.demuxSampleAes=function(R,A,C){var T=this.demux(R,C,!0,!this.config.progressive),c=this.sampleAes=new G.default(this.observer,this.config,A);return this.decrypt(T,c)},w.decrypt=function(R,A){return new Promise(function(C){var T=R.audioTrack,c=R.avcTrack;T.samples&&T.isAAC?A.decryptAacSamples(T.samples,0,function(){c.samples?A.decryptAvcSamples(c.samples,0,0,function(){C(R)}):C(R)}):c.samples&&A.decryptAvcSamples(c.samples,0,0,function(){C(R)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(R,A){var C=this,T=this._avcTrack,c=this.parseAVCNALu(R.data),S=!1,y=this.avcSample,b,B=!1;R.data=null,y&&c.length&&!T.audFound&&(s(y,T),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(F){switch(F.type){case 1:{b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="NDR "),y.frame=!0;var _=F.data;if(B&&_.length>4){var M=new U.default(_).readSliceType();(M===2||M===4||M===7||M===9)&&(y.key=!0)}break}case 5:b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{b=!0,S&&y&&(y.debug+="SEI ");var I=new U.default(O(F.data));I.readUByte();for(var g=0,H=0,$=!1,ne=0;!$&&I.bytesAvailable>1;){g=0;do ne=I.readUByte(),g+=ne;while(ne===255);H=0;do ne=I.readUByte(),H+=ne;while(ne===255);if(g===4&&I.bytesAvailable!==0){$=!0;var se=I.readUByte();if(se===181){var Oe=I.readUShort();if(Oe===49){var ge=I.readUInt();if(ge===1195456820){var Te=I.readUByte();if(Te===3){for(var Re=I.readUByte(),Le=I.readUByte(),de=31&Re,he=[Re,Le],re=0;re16){for(var fe=[],oe=0;oe<16;oe++)fe.push(I.readUByte().toString(16)),(oe===3||oe===5||oe===7||oe===9)&&fe.push("-");for(var De=H-16,Fe=new Uint8Array(De),Ce=0;Ce=0){var I={data:R.subarray(_,y-T-1),type:M};S.push(I)}else{var g=this.getLastNalUnit();if(g&&(c&&y<=4-c&&(g.state&&(g.data=g.data.subarray(0,g.data.byteLength-c))),B=y-T-1,B>0)){var H=new Uint8Array(g.data.byteLength+B);H.set(g.data,0),H.set(R.subarray(0,B),g.data.byteLength),g.data=H,g.state=0}}y=0&&T>=0){var $={data:R.subarray(_,A),type:M,state:T};S.push($)}if(S.length===0){var ne=this.getLastNalUnit();if(ne){var se=new Uint8Array(ne.data.byteLength+R.byteLength);se.set(ne.data,0),se.set(R,ne.data.byteLength),ne.data=se}}return C.naluState=T,S},w.parseAACPES=function(R){var A=0,C=this._audioTrack,T=this.aacOverFlow,c=R.data;if(T){this.aacOverFlow=null;var S=T.sample.unit.byteLength,y=Math.min(T.missing,S),b=S-y;T.sample.unit.set(c.subarray(0,y),b),C.samples.push(T.sample),A=T.missing}var B,F;for(B=A,F=c.length;B1;){var S=new Uint8Array(c[0].length+c[1].length);S.set(c[0]),S.set(c[1],c[0].length),c[0]=S,c.splice(1,1)}D=c[0];var y=(D[0]<<16)+(D[1]<<8)+D[2];if(y===1){if(R=(D[4]<<8)+D[5],R&&R>E.size-6)return null;var b=D[7];b&192&&(C=(D[9]&14)*536870912+(D[10]&255)*4194304+(D[11]&254)*16384+(D[12]&255)*128+(D[13]&254)/2,b&64?(T=(D[14]&14)*536870912+(D[15]&255)*4194304+(D[16]&254)*16384+(D[17]&255)*128+(D[18]&254)/2,C-T>60*9e4&&(v.logger.warn(Math.round((C-T)/9e4)+"s delta between PTS and DTS, align them"),C=T)):T=C),A=D[8];var B=A+9;if(E.size<=B)return null;E.size-=B;for(var F=new Uint8Array(E.size),_=0,M=c.length;_I){B-=I;continue}else D=D.subarray(B),I-=B,B=0;F.set(D,w),w+=I}return R&&(R-=A+3),{data:F,pts:C,dts:T,len:R}}return null}function s(E,w){if(E.units.length&&E.frame){if(E.pts===void 0){var D=w.samples,R=D.length;if(R){var A=D[R-1];E.pts=A.pts,E.dts=A.dts}else{w.dropped++;return}}w.samples.push(E)}E.debug.length&&v.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function a(E,w){var D=E.length;if(D>0){if(w.pts>=E[D-1].pts)E.push(w);else for(var R=D-1;R>=0;R--)if(w.ptsC)return c;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,C=this.autoLevelCapping,T;return C===-1&&A&&A.length?T=A.length-1:T=C,T}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var C=this.audioTrackController;C&&(C.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 o.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:u.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isSupported",function(){return U}),P.d(J,"changeTypeSupported",function(){return K});var X=P("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var G=Object(X.getMediaSource)();if(!G)return!1;var r=j(),L=G&&typeof G.isTypeSupported=="function"&&G.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),v=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!L&&!!v}function K(){var G,r=j();return typeof(r==null||((G=r.prototype)===null||G===void 0)?void 0:G.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h}),P.d(J,"LoadError",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/errors.ts");function U(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,v(l,o)}function K(l){var o=typeof Map=="function"?new Map:void 0;return K=function(a){if(a===null||!L(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(a))return o.get(a);o.set(a,O)}function O(){return G(a,arguments,m(this).constructor)}return O.prototype=Object.create(a.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),v(O,a)},K(l)}function G(l,o,s){return r()?G=Reflect.construct:G=function(O,E,w){var D=[null];D.push.apply(D,E);var R=Function.bind.apply(O,D),A=new R;return w&&v(A,w.prototype),A},G.apply(null,arguments)}function r(){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(l){return!1}}function L(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function v(l,o){return v=Object.setPrototypeOf||function(a,O){return a.__proto__=O,a},v(l,o)}function m(l){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(l)}var p=Math.pow(2,17),h=function(){function l(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var o=l.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(a,O){var E=this,w=a.url;if(!w)return Promise.reject(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){E.loader&&E.loader.destroy();var c=E.loader=a.loader=R?new R(D):new A(D),S=u(a),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(S,y,{onSuccess:function(B,F,_,M){E.resetLoader(a,c),C({frag:a,part:null,payload:B.data,networkDetails:M})},onError:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:B,networkDetails:_}))},onAbort:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:_}))},onTimeout:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:_}))},onProgress:function(B,F,_,M){O&&O({frag:a,part:null,payload:_,networkDetails:M})}})})},o.loadPart=function(a,O,E){var w=this;this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){w.loader&&w.loader.destroy();var c=w.loader=a.loader=R?new R(D):new A(D),S=u(a,O),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};O.stats=c.stats,c.load(S,y,{onSuccess:function(B,F,_,M){w.resetLoader(a,c),w.updateStatsFromPart(a,O);var I={frag:a,part:O,payload:B.data,networkDetails:M};E(I),C(I)},onError:function(B,F,_){w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:O,response:B,networkDetails:_}))},onAbort:function(B,F,_){a.stats.aborted=O.stats.aborted,w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:O,networkDetails:_}))},onTimeout:function(B,F,_){w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:O,networkDetails:_}))}})})},o.updateStatsFromPart=function(a,O){var E=a.stats,w=O.stats,D=w.total;if(E.loaded+=w.loaded,D){var R=Math.round(a.duration/O.duration),A=Math.min(Math.round(E.loaded/D),R),C=R-A,T=C*Math.round(E.loaded/A);E.total=E.loaded+T}else E.total=Math.max(E.loaded,E.total);var c=E.loading,S=w.loading;c.start?c.first+=S.first-S.start:(c.start=S.start,c.first=S.first),c.end=S.end},o.resetLoader=function(a,O){a.loader=null,this.loader===O&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),O.destroy()},l}();function u(l,o){o===void 0&&(o=null);var s=o||l,a={frag:l,part:o,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},O=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(O)&&Object(X.isFiniteNumber)(E)&&(a.rangeStart=O,a.rangeEnd=E),a}var f=function(l){U(o,l);function o(s){for(var a,O=arguments.length,E=new Array(O>1?O-1:0),w=1;w>8*(15-D)&255;return w},a.setDecryptDataFromLevelKey=function(E,w){var D=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(D=G.LevelKey.fromURI(E.uri),D.method=E.method,D.iv=this.createInitializationVector(w),D.keyFormat="identity"),D},a.setElementaryStreamInfo=function(E,w,D,R,A,C){C===void 0&&(C=!1);var T=this.elementaryStreams,c=T[E];if(!c){T[E]={startPTS:w,endPTS:D,startDTS:R,endDTS:A,partial:C};return}c.startPTS=Math.min(c.startPTS,w),c.endPTS=Math.max(c.endPTS,D),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,A)},a.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[h.AUDIO]=null,E[h.VIDEO]=null,E[h.AUDIOVIDEO]=null},p(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&&K.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(X.isFiniteNumber)(this.programDateTime))return null;var E=Object(X.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}(u),l=function(o){L(s,o);function s(a,O,E,w,D){var R;R=o.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 r.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=O,R.index=w;var A=a.enumeratedString("BYTERANGE");return A&&R.setByteRange(A,D),D&&(R.fragOffset=D.fragOffset+D.duration),R}return p(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 O=this.elementaryStreams;return!!(O.audio||O.video||O.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return K});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/utils/logger.ts"),K=function(){function G(L){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=L,this._registerListeners()}var r=G.prototype;return r._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var v in this.loaders){var m=this.loaders[v];m&&m.destroy()}this.loaders={}},r.onKeyLoading=function(v,m){var p=m.frag,h=p.type,u=this.loaders[h];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var l=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+h),u.abort()),!f){U.logger.warn("key uri is falsy");return}var o=l.loader,s=p.loader=this.loaders[h]=new o(l);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},O={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,O,E)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},r.loadsuccess=function(v,m,p){var h=p.frag;if(!h.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=h.decryptdata.key=new Uint8Array(v.data),h.loader=null,delete this.loaders[h.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:h})},r.loaderror=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:v})},r.loadtimeout=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},G}()},"./src/loader/level-details.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelDetails",function(){return G});var X=P("./src/polyfills/number.ts");function j(r,L){for(var v=0;vm.endSN||p>0||p===0&&h>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||K}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelKey",function(){return G});var X=P("./node_modules/url-toolkit/src/url-toolkit.js"),j=P.n(X);function U(r,L){for(var v=0;v2){var T=C.shift()+".";return T+=parseInt(C.shift()).toString(16),T+=("000"+parseInt(C.shift()).toString(16)).substr(-4),T}return A},D.resolve=function(A,C){return j.buildAbsoluteURL(C,A,{alwaysNormalize:!0})},D.parseMasterPlaylist=function(A,C){var T=[],c={},S=!1;p.lastIndex=0;for(var y;(y=p.exec(A))!=null;)if(y[1]){var b=new L.AttrList(y[1]),B={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:D.resolve(y[2],C)},F=b.decimalResolution("RESOLUTION");F&&(B.width=F.width,B.height=F.height),a((b.CODECS||"").split(/[ ,]+/).filter(function(M){return M}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=D.convertAVC1ToAVCOTI(B.videoCodec)),T.push(B)}else if(y[3]){var _=new L.AttrList(y[3]);_["DATA-ID"]&&(S=!0,c[_["DATA-ID"]]=_)}return{levels:T,sessionData:S?c:null}},D.parseMasterPlaylistMedia=function(A,C,T,c){c===void 0&&(c=[]);var S,y=[],b=0;for(h.lastIndex=0;(S=h.exec(A))!==null;){var B=new L.AttrList(S[1]);if(B.TYPE===T){var F={attrs:B,bitrate:0,id:b++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:T,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?D.resolve(B.URI,C):""};if(c.length){var _=D.findGroup(c,F.groupId)||c[0];O(F,_,"audioCodec"),O(F,_,"textCodec")}y.push(F)}}return y},D.parseLevelPlaylist=function(A,C,T,c,S){var y=new G.LevelDetails(C),b=y.fragments,B=null,F=0,_=0,M=0,I=0,g=null,H=new K.Fragment(c,C),$,ne,se,Oe=-1,ge=!1;for(u.lastIndex=0,y.m3u8=A;($=u.exec(A))!==null;){ge&&(ge=!1,H=new K.Fragment(c,C),H.start=M,H.sn=F,H.cc=I,H.level=T,B&&(H.initSegment=B,H.rawProgramDateTime=B.rawProgramDateTime));var Te=$[1];if(Te){H.duration=parseFloat(Te);var Re=(" "+$[2]).slice(1);H.title=Re||null,H.tagList.push(Re?["INF",Te,Re]:["INF",Te])}else if($[3])Object(X.isFiniteNumber)(H.duration)&&(H.start=M,se&&(H.levelkey=se),H.sn=F,H.level=T,H.cc=I,H.urlId=S,b.push(H),H.relurl=(" "+$[3]).slice(1),w(H,g),g=H,M+=H.duration,F++,_=0,ge=!0);else if($[4]){var Le=(" "+$[4]).slice(1);g?H.setByteRange(Le,g):H.setByteRange(Le)}else if($[5])H.rawProgramDateTime=(" "+$[5]).slice(1),H.tagList.push(["PROGRAM-DATE-TIME",H.rawProgramDateTime]),Oe===-1&&(Oe=b.length);else{if($=$[0].match(f),!$){v.logger.warn("No matches on slow regex match for level playlist!");continue}for(ne=1;ne<$.length&&!(typeof $[ne]!="undefined");ne++);var de=(" "+$[ne]).slice(1),he=(" "+$[ne+1]).slice(1),re=$[ne+2]?(" "+$[ne+2]).slice(1):"";switch(de){case"PLAYLIST-TYPE":y.type=he.toUpperCase();break;case"MEDIA-SEQUENCE":F=y.startSN=parseInt(he);break;case"SKIP":{var fe=new L.AttrList(he),oe=fe.decimalInteger("SKIPPED-SEGMENTS");if(Object(X.isFiniteNumber)(oe)){y.skippedSegments=oe;for(var De=oe;De--;)b.unshift(null);F+=oe}var Fe=fe.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fe&&(y.recentlyRemovedDateranges=Fe.split(" "));break}case"TARGETDURATION":y.targetduration=parseFloat(he);break;case"VERSION":y.version=parseInt(he);break;case"EXTM3U":break;case"ENDLIST":y.live=!1;break;case"#":(he||re)&&H.tagList.push(re?[he,re]:[he]);break;case"DIS":I++;case"GAP":H.tagList.push([de]);break;case"BITRATE":H.tagList.push([de,he]);break;case"DISCONTINUITY-SEQ":I=parseInt(he);break;case"KEY":{var Ce,Ne=new L.AttrList(he),Be=Ne.enumeratedString("METHOD"),le=Ne.URI,ve=Ne.hexadecimalInteger("IV"),Se=Ne.enumeratedString("KEYFORMATVERSIONS"),Ie=Ne.enumeratedString("KEYID"),We=(Ce=Ne.enumeratedString("KEYFORMAT"))!=null?Ce:"identity",Ve=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ve.indexOf(We)>-1){v.logger.warn("Keyformat "+We+" is not supported from the manifest");continue}else if(We!=="identity")continue;Be&&(se=r.LevelKey.fromURL(C,le),le&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Be)>=0&&(se.method=Be,se.keyFormat=We,Ie&&(se.keyID=Ie),Se&&(se.keyFormatVersions=Se),se.iv=ve));break}case"START":{var Qe=new L.AttrList(he),Je=Qe.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)(Je)&&(y.startTimeOffset=Je);break}case"MAP":{var st=new L.AttrList(he);H.relurl=st.URI,st.BYTERANGE&&H.setByteRange(st.BYTERANGE),H.level=T,H.sn="initSegment",se&&(H.levelkey=se),H.initSegment=null,B=H,ge=!0;break}case"SERVER-CONTROL":{var qe=new L.AttrList(he);y.canBlockReload=qe.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=qe.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&qe.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=qe.optionalFloat("PART-HOLD-BACK",0),y.holdBack=qe.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var at=new L.AttrList(he);y.partTarget=at.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=y.partList;Ue||(Ue=y.partList=[]);var ct=_>0?Ue[Ue.length-1]:void 0,lt=_++,je=new K.Part(new L.AttrList(he),H,C,lt,ct);Ue.push(je),H.duration+=je.duration;break}case"PRELOAD-HINT":{var Ge=new L.AttrList(he);y.preloadHint=Ge;break}case"RENDITION-REPORT":{var Ae=new L.AttrList(he);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ae);break}default:v.logger.warn("line parsed but not handled: "+$);break}}}g&&!g.relurl?(b.pop(),M-=g.duration,y.partList&&(y.fragmentHint=g)):y.partList&&(w(H,g),H.cc=I,y.fragmentHint=H);var _e=b.length,we=b[0],ae=b[_e-1];if(M+=y.skippedSegments*y.targetduration,M>0&&_e&&ae){y.averagetargetduration=M/_e;var ue=ae.sn;y.endSN=ue!=="initSegment"?ue:0,we&&(y.startCC=we.cc,we.initSegment||y.fragments.every(function(ce){return ce.relurl&&o(ce.relurl)})&&(v.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),H=new K.Fragment(c,C),H.relurl=ae.relurl,H.level=T,H.sn="initSegment",we.initSegment=H,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(M+=y.fragmentHint.duration),y.totalduration=M,y.endCC=I,Oe>0&&E(b,Oe),y},D}();function a(D,R){["video","audio","text"].forEach(function(A){var C=D.filter(function(c){return Object(m.isCodecType)(c,A)});if(C.length){var T=C.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[A+"Codec"]=T.length>0?T[0]:C[0],D=D.filter(function(c){return C.indexOf(c)===-1})}}),R.unknownCodecs=D}function O(D,R,A){var C=R[A];C&&(D[A]=C)}function E(D,R){for(var A=D[R],C=R;C--;){var T=D[C];if(!T)return;T.programDateTime=A.programDateTime-T.duration*1e3,A=T}}function w(D,R){D.rawProgramDateTime?D.programDateTime=Date.parse(D.rawProgramDateTime):R!=null&&R.programDateTime&&(D.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(D.programDateTime)||(D.programDateTime=null,D.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/logger.ts"),G=P("./src/utils/mp4-tools.ts"),r=P("./src/loader/m3u8-parser.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case L.PlaylistContextType.AUDIO_TRACK:return L.PlaylistLevelType.AUDIO;case L.PlaylistContextType.SUBTITLE_TRACK:return L.PlaylistLevelType.SUBTITLE;default:return L.PlaylistLevelType.MAIN}}function p(u,f){var l=u.url;return(l===void 0||l.indexOf("data:")===0)&&(l=f.url),l}var h=function(){function u(l){this.hls=void 0,this.loaders=Object.create(null),this.hls=l,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var o=this.hls;o.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(o){var s=this.hls.config,a=s.pLoader,O=s.loader,E=a||O,w=new E(s);return o.loader=w,this.loaders[o.type]=w,w},f.getInternalLoader=function(o){return this.loaders[o.type]},f.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},f.destroyInternalLoaders=function(){for(var o in this.loaders){var s=this.loaders[o];s&&s.destroy(),this.resetInternalLoader(o)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(o,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:L.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(o,s){var a=s.id,O=s.level,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:null,level:O,responseType:"text",type:L.PlaylistContextType.LEVEL,url:E,deliveryDirectives:w})},f.onAudioTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:w})},f.load=function(o){var s,a=this.hls.config,O=this.getInternalLoader(o);if(O){var E=O.context;if(E&&E.url===o.url){K.logger.trace("[playlist-loader]: playlist request ongoing");return}K.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),O.abort()}var w,D,R,A;switch(o.type){case L.PlaylistContextType.MANIFEST:w=a.manifestLoadingMaxRetry,D=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,A=a.manifestLoadingMaxRetryTimeout;break;case L.PlaylistContextType.LEVEL:case L.PlaylistContextType.AUDIO_TRACK:case L.PlaylistContextType.SUBTITLE_TRACK:w=0,D=a.levelLoadingTimeOut;break;default:w=a.levelLoadingMaxRetry,D=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,A=a.levelLoadingMaxRetryTimeout;break}if(O=this.createInternalLoader(o),(s=o.deliveryDirectives)!==null&&s!==void 0&&s.part){var C;if(o.type===L.PlaylistContextType.LEVEL&&o.level!==null?C=this.hls.levels[o.level].details:o.type===L.PlaylistContextType.AUDIO_TRACK&&o.id!==null?C=this.hls.audioTracks[o.id].details:o.type===L.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(C=this.hls.subtitleTracks[o.id].details),C){var T=C.partTarget,c=C.targetduration;T&&c&&(D=Math.min(Math.max(T*3,c*.8)*1e3,D))}}var S={timeout:D,maxRetry:w,retryDelay:R,maxRetryDelay:A,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};O.load(o,S,y)},f.loadsuccess=function(o,s,a,O){if(O===void 0&&(O=null),a.isSidxRequest){this.handleSidxRequest(o,a),this.handlePlaylistLoaded(o,s,a,O);return}this.resetInternalLoader(a.type);var E=o.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,a,"no EXTM3U delimiter",O);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,s,a,O):this.handleMasterPlaylist(o,s,a,O)},f.loaderror=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,o)},f.loadtimeout=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(o,s,a,O){var E=this.hls,w=o.data,D=p(o,a),R=r.default.parseMasterPlaylist(w,D),A=R.levels,C=R.sessionData;if(!A.length){this.handleManifestParsingError(o,a,"no level found in manifest",O);return}var T=A.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),c=A.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),S=r.default.parseMasterPlaylistMedia(w,D,"AUDIO",T),y=r.default.parseMasterPlaylistMedia(w,D,"SUBTITLES",c),b=r.default.parseMasterPlaylistMedia(w,D,"CLOSED-CAPTIONS");if(S.length){var B=S.some(function(F){return!F.url});!B&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(K.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new v.AttrList({}),bitrate:0,url:""}))}E.trigger(j.Events.MANIFEST_LOADED,{levels:A,audioTracks:S,subtitles:y,captions:b,url:D,stats:s,networkDetails:O,sessionData:C})},f.handleTrackOrLevelPlaylist=function(o,s,a,O){var E=this.hls,w=a.id,D=a.level,R=a.type,A=p(o,a),C=Object(X.isFiniteNumber)(w)?w:0,T=Object(X.isFiniteNumber)(D)?D:C,c=m(a),S=r.default.parseLevelPlaylist(o.data,A,T,c,C);if(!S.fragments.length){E.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===L.PlaylistContextType.MANIFEST){var y={attrs:new v.AttrList({}),bitrate:0,details:S,name:"",url:A};E.trigger(j.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:A,stats:s,networkDetails:O,sessionData:null})}if(s.parsing.end=performance.now(),S.needSidxRanges){var b,B=(b=S.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:B,isSidxRequest:!0,type:R,level:D,levelDetails:S,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=S,this.handlePlaylistLoaded(o,s,a,O)},f.handleSidxRequest=function(o,s){var a=Object(G.parseSegmentIndex)(new Uint8Array(o.data));if(!a)return;var O=a.references,E=s.levelDetails;O.forEach(function(w,D){var R=w.info,A=E.fragments[D];A.byteRange.length===0&&A.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),A.initSegment&&A.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(o,s,a,O){this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===L.PlaylistContextType.MANIFEST,url:o.url,reason:a,response:o,context:s,networkDetails:O})},f.handleNetworkError=function(o,s,a,O){a===void 0&&(a=!1),K.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var E=U.ErrorDetails.UNKNOWN,w=!1,D=this.getInternalLoader(o);switch(o.type){case L.PlaylistContextType.MANIFEST:E=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case L.PlaylistContextType.LEVEL:E=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.AUDIO_TRACK:E=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.SUBTITLE_TRACK:E=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}D&&this.resetInternalLoader(o.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:E,fatal:w,url:o.url,loader:D,context:o,networkDetails:s};O&&(R.response=O),this.hls.trigger(j.Events.ERROR,R)},f.handlePlaylistLoaded=function(o,s,a,O){var E=a.type,w=a.level,D=a.id,R=a.groupId,A=a.loader,C=a.levelDetails,T=a.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(o,a,"invalid target duration",O);return}if(!A)return;C.live&&(A.getCacheAge&&(C.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(E){case L.PlaylistContextType.MANIFEST:case L.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:C,level:w||0,id:D||0,stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break}},u}();J.default=h},"./src/polyfills/number.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isFiniteNumber",function(){return X}),P.d(J,"MAX_SAFE_INTEGER",function(){return j});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(){}return j.getSilentFrame=function(K,G){switch(K){case"mp4a.40.2":if(G===1)return new Uint8Array([0,200,0,128,35,128]);if(G===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(G===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(G===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(G===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(G===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(G===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(G===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(G===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},j}();J.default=X},"./src/remux/mp4-generator.ts":function(ie,J,P){"use strict";P.r(J);var X=Math.pow(2,32)-1,j=function(){function U(){}return U.init=function(){U.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var G;for(G in U.types)U.types.hasOwnProperty(G)&&(U.types[G]=[G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2),G.charCodeAt(3)]);var r=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]),L=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]);U.HDLR_TYPES={video:r,audio:L};var v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),h=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,h),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,v))},U.box=function(G){for(var r=8,L=arguments.length,v=new Array(L>1?L-1:0),m=1;m>24&255,u[1]=r>>16&255,u[2]=r>>8&255,u[3]=r&255,u.set(G,4),p=0,r=8;p>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&255,85,196,0,0]))},U.mdia=function(G){return U.box(U.types.mdia,U.mdhd(G.timescale,G.duration),U.hdlr(G.type),U.minf(G))},U.mfhd=function(G){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,G>>24,G>>16&255,G>>8&255,G&255]))},U.minf=function(G){return G.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(G)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(G))},U.moof=function(G,r,L){return U.box(U.types.moof,U.mfhd(G),U.traf(L,r))},U.moov=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trak(G[r]);return U.box.apply(null,[U.types.moov,U.mvhd(G[0].timescale,G[0].duration)].concat(L).concat(U.mvex(G)))},U.mvex=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trex(G[r]);return U.box.apply(null,[U.types.mvex].concat(L))},U.mvhd=function(G,r){r*=G;var L=Math.floor(r/(X+1)),v=Math.floor(r%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,G>>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&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 U.box(U.types.mvhd,m)},U.sdtp=function(G){var r=G.samples||[],L=new Uint8Array(4+r.length),v,m;for(v=0;v>>8&255),r.push(p&255),r=r.concat(Array.prototype.slice.call(m));for(v=0;v>>8&255),L.push(p&255),L=L.concat(Array.prototype.slice.call(m));var h=U.box(U.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|G.sps.length].concat(r).concat([G.pps.length]).concat(L))),u=G.width,f=G.height,l=G.pixelRatio[0],o=G.pixelRatio[1];return U.box(U.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,u>>8&255,u&255,f>>8&255,f&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]),h,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,l&255,o>>24,o>>16&255,o>>8&255,o&255])))},U.esds=function(G){var r=G.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(G.config).concat([6,1,2]))},U.mp4a=function(G){var r=G.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),U.box(U.types.esds,U.esds(G)))},U.mp3=function(G){var r=G.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},U.stsd=function(G){return G.type==="audio"?!G.isAAC&&G.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(G)):U.box(U.types.stsd,U.STSD,U.mp4a(G)):U.box(U.types.stsd,U.STSD,U.avc1(G))},U.tkhd=function(G){var r=G.id,L=G.duration*G.timescale,v=G.width,m=G.height,p=Math.floor(L/(X+1)),h=Math.floor(L%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,h>>24,h>>16&255,h>>8&255,h&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,v>>8&255,v&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(G,r){var L=U.sdtp(G),v=G.id,m=Math.floor(r/(X+1)),p=Math.floor(r%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,v>>24,v>>16&255,v>>8&255,v&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(G,L.length+16+20+8+16+8+8),L)},U.trak=function(G){return G.duration=G.duration||4294967295,U.box(U.types.trak,U.tkhd(G),U.mdia(G))},U.trex=function(G){var r=G.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(G,r){var L=G.samples||[],v=L.length,m=12+16*v,p=new Uint8Array(m),h,u,f,l,o,s;for(r+=8+m,p.set([0,0,15,1,v>>>24&255,v>>>16&255,v>>>8&255,v&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),h=0;h>>24&255,f>>>16&255,f>>>8&255,f&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*h);return U.box(U.types.trun,p)},U.initSegment=function(G){U.types||U.init();var r=U.moov(G),L=new Uint8Array(U.FTYP.byteLength+r.byteLength);return L.set(U.FTYP),L.set(r,U.FTYP.byteLength),L},U}();j.types=void 0,j.HDLR_TYPES=void 0,j.STTS=void 0,j.STSC=void 0,j.STCO=void 0,j.STSZ=void 0,j.VMHD=void 0,j.SMHD=void 0,j.STSD=void 0,j.FTYP=void 0,j.DINF=void 0,J.default=j},"./src/remux/mp4-remuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"normalizePts",function(){return a});var X=P("./src/polyfills/number.ts"),j=P("./src/remux/aac-helper.ts"),U=P("./src/remux/mp4-generator.ts"),K=P("./src/events.ts"),G=P("./src/errors.ts"),r=P("./src/utils/logger.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(D){for(var R=1;R0?S:y.pts},C[0].pts);return T&&r.logger.debug("PTS rollover detected"),c},R.remux=function(C,T,c,S,y,b,B,F){var _,M,I,g,H,$,ne=y,se=y,Oe=C.pid>-1,ge=T.pid>-1,Te=T.samples.length,Re=C.samples.length>0,Le=Te>1,de=(!Oe||Re)&&(!ge||Le)||this.ISGenerated||B;if(de){this.ISGenerated||(I=this.generateIS(C,T,y));var he=this.isVideoContiguous,re=-1;if(Le&&(re=O(T.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if($=!0,re>0){r.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+Te+" video samples due to a missing keyframe");var fe=this.getVideoStartPts(T.samples);T.samples=T.samples.slice(re),T.dropped+=re,se+=(T.samples[0].pts-fe)/(T.timescale||9e4)}else re===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+Te+" video samples"),$=!1);if(this.ISGenerated){if(Re&&Le){var oe=this.getVideoStartPts(T.samples),De=a(C.samples[0].pts,oe)-oe,Fe=De/T.inputTimeScale;ne+=Math.max(0,Fe),se+=Math.max(0,-Fe)}if(Re){if(C.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(C,T,y)),M=this.remuxAudio(C,ne,this.isAudioContiguous,b,ge||Le||F===L.PlaylistLevelType.AUDIO?se:void 0),Le){var Ce=M?M.endPTS-M.startPTS:0;T.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(C,T,y)),_=this.remuxVideo(T,se,he,Ce)}}else Le&&(_=this.remuxVideo(T,se,he,0));_&&(_.firstKeyFrame=re,_.independent=re!==-1)}}return this.ISGenerated&&(c.samples.length&&(H=this.remuxID3(c,y)),S.samples.length&&(g=this.remuxText(S,y))),{audio:M,video:_,initSegment:I,independent:$,text:g,id3:H}},R.generateIS=function(C,T,c){var S=C.samples,y=T.samples,b=this.typeSupported,B={},F=!Object(X.isFiniteNumber)(this._initPTS),_="audio/mp4",M,I,g;if(F&&(M=I=Infinity),C.config&&S.length&&(C.timescale=C.samplerate,C.isAAC||(b.mpeg?(_="audio/mpeg",C.codec=""):b.mp3&&(C.codec="mp3")),B.audio={id:"audio",container:_,codec:C.codec,initSegment:!C.isAAC&&b.mpeg?new Uint8Array(0):U.default.initSegment([C]),metadata:{channelCount:C.channelCount}},F&&(g=C.inputTimeScale,M=I=S[0].pts-Math.round(g*c))),T.sps&&T.pps&&y.length&&(T.timescale=T.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:T.codec,initSegment:U.default.initSegment([T]),metadata:{width:T.width,height:T.height}},F)){g=T.inputTimeScale;var H=this.getVideoStartPts(y),$=Math.round(g*c);I=Math.min(I,a(y[0].dts,H)-$),M=Math.min(M,H-$)}if(Object.keys(B).length)return this.ISGenerated=!0,F&&(this._initPTS=M,this._initDTS=I),{tracks:B,initPTS:M,timescale:g}},R.remuxVideo=function(C,T,c,S){var y=C.inputTimeScale,b=C.samples,B=[],F=b.length,_=this._initPTS,M=this.nextAvcDts,I=8,g,H,$,ne=Number.POSITIVE_INFINITY,se=Number.NEGATIVE_INFINITY,Oe=0,ge=!1;if(!c||M===null){var Te=T*y,Re=b[0].pts-a(b[0].dts,b[0].pts);M=Te-Re}for(var Le=0;Lede.pts){var he=9e4*.2;Oe=Math.max(Math.min(Oe,de.pts-de.dts),-1*he)}de.dts0?Le-1:Le].dts&&(ge=!0)}ge&&b.sort(function(yt,dt){var ft=yt.dts-dt.dts,Ot=yt.pts-dt.pts;return ft||Ot}),H=b[0].dts,$=b[b.length-1].dts;var re=Math.round(($-H)/(F-1));if(Oe<0){if(Oere,Ne=Fe<-1;if(Ce||Ne){Ce?r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms ("+Fe+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(-Fe,!0)+" ms ("+Fe+"dts) overlapping between fragments detected"),H=M;var Be=b[0].pts-Fe;b[0].dts=H,b[0].pts=Be,r.logger.log("Video: First PTS/DTS adjusted: "+Object(v.toMsFromMpegTsClock)(Be,!0)+"/"+Object(v.toMsFromMpegTsClock)(H,!0)+", delta: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms")}}o&&(H=Math.max(0,H));for(var le=0,ve=0,Se=0;Se0?Ue-1:Ue].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var me=Math.floor(ue.maxBufferHole*y),xe=(S?ne+S*y:this.nextAudioPts)-ct.pts;xe>me?(g=xe-ce,g<0&&(g=ce),r.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=ce}else g=ce}var Pe=Math.round(ct.pts-ct.dts);B.push(new E(ct.key,g,je,Pe))}if(B.length&&f&&f<70){var He=B[0].flags;He.dependsOn=2,He.isNonSync=0}console.assert(g!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=M=$+g,this.isVideoContiguous=!0;var ze=U.default.moof(C.sequenceNumber++,H,m({},C,{samples:B})),ht="video",ot={data1:ze,data2:qe,startPTS:ne/y,endPTS:(se+g)/y,startDTS:H/y,endDTS:M/y,type:ht,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(qe.length,"MDAT length must not be zero"),ot},R.remuxAudio=function(C,T,c,S,y){var b=C.inputTimeScale,B=C.samplerate?C.samplerate:b,F=b/B,_=C.isAAC?h:u,M=_*F,I=this._initPTS,g=!C.isAAC&&this.typeSupported.mpeg,H=[],$=C.samples,ne=g?0:8,se=this.nextAudioPts||-1,Oe=T*b;if(this.isAudioContiguous=c=c||$.length&&se>0&&(S&&Math.abs(Oe-se)<9e3||Math.abs(a($[0].pts-I,Oe)-se)<20*M),$.forEach(function(we){we.pts=a(we.pts-I,Oe)}),!c||se<0){if($=$.filter(function(we){return we.pts>=0}),!$.length)return;y===0?se=0:S?se=Math.max(0,Oe):se=$[0].pts}if(C.isAAC)for(var ge=y!==void 0,Te=this.config.maxAudioFramesDrift,Re=0,Le=se;Re<$.length;Re++){var de=$[Re],he=de.pts,re=he-Le,fe=Math.abs(1e3*re/b);if(re<=-Te*M&&ge)Re===0&&(r.logger.warn("Audio frame @ "+(he/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*re/b)+" ms."),this.nextAudioPts=se=Le=he);else if(re>=Te*M&&fe0){ve+=ne;try{le=new Uint8Array(ve)}catch(we){this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:G.ErrorTypes.MUX_ERROR,details:G.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!g){var qe=new DataView(le.buffer);qe.setUint32(0,ve),le.set(U.default.types.mdat,4)}}else return;le.set(Qe,ne);var at=Qe.byteLength;ne+=at,H.push(new E(!0,_,at,0)),Be=Je}var Ue=H.length;if(!Ue)return;var ct=H[H.length-1];this.nextAudioPts=se=Be+F*ct.duration;var lt=g?new Uint8Array(0):U.default.moof(C.sequenceNumber++,Ne/F,m({},C,{samples:H}));C.samples=[];var je=Ne/b,Ge=se/b,Ae="audio",_e={data1:lt,data2:le,startPTS:je,endPTS:Ge,startDTS:je,endDTS:Ge,type:Ae,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(le.length,"MDAT length must not be zero"),_e},R.remuxEmptyAudio=function(C,T,c,S){var y=C.inputTimeScale,b=C.samplerate?C.samplerate:y,B=y/b,F=this.nextAudioPts,_=(F!==null?F:S.startDTS*y)+this._initDTS,M=S.endDTS*y+this._initDTS,I=B*h,g=Math.ceil((M-_)/I),H=j.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!H){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var $=[],ne=0;ne4294967296;)D+=A;return D}function O(D){for(var R=0;R0?this.lastEndDTS=C:(K.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!D.audio,c=!!D.video,S="";T&&(S+="audio"),c&&(S+="video");var y={data1:E,startPTS:A,startDTS:A,endPTS:C,endDTS:C,type:S,hasAudio:T,hasVideo:c,nb:1,dropped:0};return O.audio=y.type==="audio"?y:void 0,O.video=y.type!=="audio"?y:void 0,O.text=l,O.id3=f,O.initSegment=w,O},v}(),r=function(m,p,h){return Object(j.getStartDTS)(m,p)-h};function L(v,m){var p=v==null?void 0:v.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}J.default=G},"./src/task-loop.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return X});var X=function(){function j(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=j.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(G){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,G),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},j}()},"./src/types/cmcd.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"CMCDVersion",function(){return X}),P.d(J,"CMCDObjectType",function(){return j}),P.d(J,"CMCDStreamingFormat",function(){return U}),P.d(J,"CMCDStreamType",function(){return K});var X=1,j;(function(G){G.MANIFEST="m",G.AUDIO="a",G.VIDEO="v",G.MUXED="av",G.INIT="i",G.CAPTION="c",G.TIMED_TEXT="tt",G.KEY="k",G.OTHER="o"})(j||(j={}));var U;(function(G){G.DASH="d",G.HLS="h",G.SMOOTH="s",G.OTHER="o"})(U||(U={}));var K;(function(G){G.VOD="v",G.LIVE="l"})(K||(K={}))},"./src/types/level.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"HlsSkip",function(){return U}),P.d(J,"getSkipValue",function(){return K}),P.d(J,"HlsUrlParameters",function(){return G}),P.d(J,"Level",function(){return r});function X(L,v){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:v},G.hexadecimalInteger=function(L){if(this[L]){var v=(this[L]||"0x").slice(2);v=(v.length&1?"0":"")+v;for(var m=new Uint8Array(v.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:v},G.decimalFloatingPoint=function(L){return parseFloat(this[L])},G.optionalFloat=function(L,v){var m=this[L];return m?parseFloat(m):v},G.enumeratedString=function(L){return this[L]},G.bool=function(L){return this[L]==="YES"},G.decimalResolution=function(L){var v=X.exec(this[L]);return v===null?void 0:{width:parseInt(v[1],10),height:parseInt(v[2],10)}},K.parseAttrList=function(L){var v,m={},p='"';for(j.lastIndex=0;(v=j.exec(L))!==null;){var h=v[2];h.indexOf(p)===0&&h.lastIndexOf(p)===h.length-1&&(h=h.slice(1,-1)),m[v[1]]=h}return m},K}()},"./src/utils/binary-search.ts":function(ie,J,P){"use strict";P.r(J);var X={search:function(U,K){for(var G=0,r=U.length-1,L=null,v=null;G<=r;){L=(G+r)/2|0,v=U[L];var m=K(v);if(m>0)G=L+1;else if(m<0)r=L-1;else return v}return null}};J.default=X},"./src/utils/buffer-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"BufferHelper",function(){return U});var X=P("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function K(){}return K.isBuffered=function(r,L){try{if(r){for(var v=K.getBuffered(r),m=0;m=v.start(m)&&L<=v.end(m))return!0}}catch(p){}return!1},K.bufferInfo=function(r,L,v){try{if(r){var m=K.getBuffered(r),p=[],h;for(h=0;hu&&(m[h-1].end=r[p].end):m.push(r[p])}else m.push(r[p])}else m=r;for(var f=0,l,o=L,s=L,a=0;a=O&&L=c&&X.logger.log(this.time+" ["+c+"] "+S)},A}(),f=function(C){for(var T=[],c=0;cG&&(this.logger.log(h.DEBUG,"Too large cursor position "+this.pos),this.pos=G)},C.moveCursor=function(c){var S=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var S=U(c);if(this.pos>=G){this.logger.log(h.ERROR,"Cannot insert "+c.toString(16)+" ("+S+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(S,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(c){var S;for(S=c;S0&&(c?y="["+S.join(" | ")+"]":y=S.join(` +`)),y},C.getTextAndFormat=function(){return this.rows},A}(),O=function(){function A(T,c,S){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=T,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new a(S),this.nonDisplayedMemory=new a(S),this.lastOutputScreen=new a(S),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=S}var C=A.prototype;return C.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},C.getHandler=function(){return this.outputFilter},C.setHandler=function(c){this.outputFilter=c},C.setPAC=function(c){this.writeScreen.setPAC(c)},C.setBkgData=function(c){this.writeScreen.setBkgData(c)},C.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(h.INFO,"MODE="+c),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=c},C.insertChars=function(c){for(var S=0;S=46,S.italics)S.foreground="white";else{var y=Math.floor(c/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];S.foreground=b[y]}this.logger.log(h.INFO,"MIDROW: "+JSON.stringify(S)),this.writeScreen.setPen(S)},C.outputDataUpdate=function(c){c===void 0&&(c=!1);var S=this.logger.time;if(S===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=S:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,S,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:S),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},A}(),E=function(){function A(T,c,S){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new O(T,c,y),new O(T+1,S,y)],this.cmdHistory=R(),this.logger=y}var C=A.prototype;return C.getHandler=function(c){return this.channels[c].getHandler()},C.setHandler=function(c,S){this.channels[c].setHandler(S)},C.addData=function(c,S){var y,b,B,F=!1;this.logger.time=c;for(var _=0;_ ("+f([b,B])+")"),y=this.parseCmd(b,B),y||(y=this.parseMidrow(b,B)),y||(y=this.parsePAC(b,B)),y||(y=this.parseBackgroundAttributes(b,B)),!y&&(F=this.parseChars(b,B),F)){var M=this.currentChannel;if(M&&M>0){var I=this.channels[M];I.insertChars(F)}else this.logger.log(h.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!F&&this.logger.log(h.WARNING,"Couldn't parse cleaned data "+f([b,B])+" orig: "+f([S[_],S[_+1]]))}},C.parseCmd=function(c,S){var y=this.cmdHistory,b=(c===20||c===28||c===21||c===29)&&S>=32&&S<=47,B=(c===23||c===31)&&S>=33&&S<=35;if(!(b||B))return!1;if(D(c,S,y))return w(null,null,y),this.logger.log(h.DEBUG,"Repeated command ("+f([c,S])+") is dropped"),!0;var F=c===20||c===21||c===23?1:2,_=this.channels[F];return c===20||c===21||c===28||c===29?S===32?_.ccRCL():S===33?_.ccBS():S===34?_.ccAOF():S===35?_.ccAON():S===36?_.ccDER():S===37?_.ccRU(2):S===38?_.ccRU(3):S===39?_.ccRU(4):S===40?_.ccFON():S===41?_.ccRDC():S===42?_.ccTR():S===43?_.ccRTD():S===44?_.ccEDM():S===45?_.ccCR():S===46?_.ccENM():S===47&&_.ccEOC():_.ccTO(S-32),w(c,S,y),this.currentChannel=F,!0},C.parseMidrow=function(c,S){var y=0;if((c===17||c===25)&&S>=32&&S<=47){if(c===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(h.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[y];return b?(b.ccMIDROW(S),this.logger.log(h.DEBUG,"MIDROW ("+f([c,S])+")"),!0):!1}return!1},C.parsePAC=function(c,S){var y,b=this.cmdHistory,B=(c>=17&&c<=23||c>=25&&c<=31)&&S>=64&&S<=127,F=(c===16||c===24)&&S>=64&&S<=95;if(!(B||F))return!1;if(D(c,S,b))return w(null,null,b),!0;var _=c<=23?1:2;S>=64&&S<=95?y=_===1?r[c]:v[c]:y=_===1?L[c]:m[c];var M=this.channels[_];return M?(M.setPAC(this.interpretPAC(y,S)),w(c,S,b),this.currentChannel=_,!0):!1},C.interpretPAC=function(c,S){var y,b={color:null,italics:!1,indent:null,underline:!1,row:c};return S>95?y=S-96:y=S-64,b.underline=(y&1)===1,y<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((y-16)/2)*4,b},C.parseChars=function(c,S){var y,b=null,B=null;if(c>=25?(y=2,B=c-8):(y=1,B=c),B>=17&&B<=19){var F;B===17?F=S+80:B===18?F=S+112:F=S+144,this.logger.log(h.INFO,"Special char '"+U(F)+"' in channel "+y),b=[F]}else c>=32&&c<=127&&(b=S===0?[c]:[c,S]);if(b){var _=f(b);this.logger.log(h.DEBUG,"Char codes = "+_.join(",")),w(c,S,this.cmdHistory)}return b},C.parseBackgroundAttributes=function(c,S){var y=(c===16||c===24)&&S>=32&&S<=47,b=(c===23||c===31)&&S>=45&&S<=47;if(!(y||b))return!1;var B,F={};c===16||c===24?(B=Math.floor((S-32)/2),F.background=p[B],S%2===1&&(F.background=F.background+"_semi")):S===45?F.background="transparent":(F.foreground="black",S===47&&(F.underline=!0));var _=c<=23?1:2,M=this.channels[_];return M.setBkgData(F),w(c,S,this.cmdHistory),!0},C.reset=function(){for(var c=0;c=16?o--:o++;var w=Object(X.fixLineBreaks)(s.trim()),D=Object(j.generateCueId)(v,m,w);(!L||!L.cues||!L.cues.getCueById(D))&&(f=new a(v,m,w),f.id=D,f.line=O+1,f.align="left",f.position=10+Math.min(80,Math.floor(o*8/32)*10),h.push(f))}return L&&h.length&&(h.sort(function(R,A){return R.line==="auto"||A.line==="auto"?0:R.line>8&&A.line>8?A.line-R.line:R.line-A.line}),h.forEach(function(R){return Object(U.addCueToTrack)(L,R)})),h}};J.default=G},"./src/utils/discontinuities.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFirstFragWithCC",function(){return K}),P.d(J,"shouldAlignOnDiscontinuities",function(){return G}),P.d(J,"findDiscontinuousReferenceFrag",function(){return r}),P.d(J,"adjustSlidingStart",function(){return v}),P.d(J,"alignStream",function(){return m}),P.d(J,"alignPDT",function(){return h}),P.d(J,"alignFragmentByPDTDelta",function(){return u}),P.d(J,"alignMediaPlaylistByPDT",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts"),U=P("./src/controller/level-helper.ts");function K(l,o){for(var s=null,a=0,O=l.length;as.startCC||l&&l.cc=this.minWeight_},K.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},K.destroy=function(){},U}();J.default=j},"./src/utils/ewma.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(K,G,r){G===void 0&&(G=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=K,this.alpha_=K?Math.exp(Math.log(.5)/K):0,this.estimate_=G,this.totalWeight_=r}var U=j.prototype;return U.sample=function(G,r){var L=Math.pow(this.alpha_,G);this.estimate_=r*(1-L)+L*this.estimate_,this.totalWeight_+=G},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var G=1-Math.pow(this.alpha_,this.totalWeight_);if(G)return this.estimate_/G}return this.estimate_},j}();J.default=X},"./src/utils/fetch-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"fetchSupported",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/loader/load-stats.ts"),U=P("./src/demux/chunk-cache.ts");function K(a,O){a.prototype=Object.create(O.prototype),a.prototype.constructor=a,m(a,O)}function G(a){var O=typeof Map=="function"?new Map:void 0;return G=function(w){if(w===null||!v(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O!="undefined"){if(O.has(w))return O.get(w);O.set(w,D)}function D(){return r(w,arguments,p(this).constructor)}return D.prototype=Object.create(w.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m(D,w)},G(a)}function r(a,O,E){return L()?r=Reflect.construct:r=function(D,R,A){var C=[null];C.push.apply(C,R);var T=Function.bind.apply(D,C),c=new T;return A&&m(c,A.prototype),c},r.apply(null,arguments)}function L(){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(a){return!1}}function v(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,O){return m=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},m(a,O)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},p(a)}function h(){return h=Object.assign||function(a){for(var O=1;O=A&&C(D,R,T.flush(),w)):C(D,R,B,w),y()}).catch(function(){return Promise.reject()})};return S()},a}();function l(a,O){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:O,headers:new self.Headers(h({},a.headers))};return a.rangeEnd&&E.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),E}function o(a,O){return new self.Request(a.url,O)}var s=function(a){K(O,a);function O(E,w,D){var R;return R=a.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=w,R.details=D,R}return O}(G(Error));J.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"IMSC1_CODEC",function(){return v}),P.d(J,"parseIMSC1",function(){return u});var X=P("./src/utils/mp4-tools.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/utils/vttcue.ts"),K=P("./src/demux/id3.ts"),G=P("./src/utils/timescale-conversion.ts"),r=P("./src/utils/webvtt-parser.ts");function L(){return L=Object.assign||function(A){for(var C=1;C"):X}function G(v){for(var m=arguments.length,p=new Array(m>1?m-1:0),h=1;h>24,O[E+1]=w>>16&255,O[E+2]=w>>8&255,O[E+3]=w&255}function m(O,E){var w=[];if(!E.length)return w;var D,R,A;"data"in O?(D=O.data,R=O.start,A=O.end):(D=O,R=0,A=D.byteLength);for(var C=R;C1?C+T:A;if(c===E[0])if(E.length===1)w.push({data:D,start:C+8,end:S});else{var y=m({data:D,start:C+8,end:S},E.slice(1));y.length&&K.apply(w,y)}C=S}return w}function p(O){var E=m(O,["moov"]),w=E[0],D=w?w.end:null,R=m(O,["sidx"]);if(!R||!R[0])return null;var A=[],C=R[0],T=C.data[0],c=T===0?8:16,S=L(C,c);c+=4;var y=0,b=0;T===0?c+=8:c+=16,c+=2;var B=C.end+b,F=r(C,c);c+=2;for(var _=0;_>>31;if(H===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var $=L(C,M);M+=4,A.push({referenceSize:g,subsegmentDuration:$,info:{duration:$/S,start:B,end:B+g-1}}),B+=g,M+=4,c=M}return{earliestPresentationTime:y,timescale:S,version:T,referencesCount:F,references:A,moovEndOffset:D}}function h(O){for(var E=[],w=m(O,["moov","trak"]),D=0;DG)&&(this.startTime=G),this.endTime=r,this.screen=L,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"sendAddTrackEvent",function(){return j}),P.d(J,"addCueToTrack",function(){return U}),P.d(J,"clearCurrentCues",function(){return K}),P.d(J,"removeCuesInRange",function(){return G}),P.d(J,"getCuesInRange",function(){return L});var X=P("./src/utils/logger.ts");function j(v,m){var p;try{p=new Event("addtrack")}catch(h){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=v,m.dispatchEvent(p)}function U(v,m){var p=v.mode;if(p==="disabled"&&(v.mode="hidden"),v.cues&&!v.cues.getCueById(m.id))try{if(v.addCue(m),!v.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var h=new self.TextTrackCue(m.startTime,m.endTime,m.text);h.id=m.id,v.addCue(h)}p==="disabled"&&(v.mode=p)}function K(v){var m=v.mode;if(m==="disabled"&&(v.mode="hidden"),v.cues)for(var p=v.cues.length;p--;)v.removeCue(v.cues[p]);m==="disabled"&&(v.mode=m)}function G(v,m,p){var h=v.mode;if(h==="disabled"&&(v.mode="hidden"),v.cues&&v.cues.length>0)for(var u=L(v.cues,m,p),f=0;fv[p].endTime)return-1;for(var h=0,u=p;h<=u;){var f=Math.floor((u+h)/2);if(mv[f].startTime&&h-1)for(var f=u,l=v.length;f=m&&o.endTime<=p)h.push(o);else if(o.startTime>p)return h}return h}},"./src/utils/time-ranges.ts":function(ie,J,P){"use strict";P.r(J);var X={toString:function(U){for(var K="",G=U.length,r=0;r1?m-1:0),h=1;h100)throw new Error("Position must be between 0 and 100.");A=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",r({},u,{get:function(){return C},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");C=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",r({},u,{get:function(){return T},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");T=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",r({},u,{get:function(){return c},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");c=b,this.hasBeenReset=!0}})),h.displayState=void 0}return L.prototype.getCueAsHTML=function(){var v=self.WebVTT;return v.convertCueToDOMTree(self,this.text)},L}()},"./src/utils/vttparser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"parseTimeStamp",function(){return U}),P.d(J,"fixLineBreaks",function(){return m}),P.d(J,"VTTParser",function(){return p});var X=P("./src/utils/vttcue.ts"),j=function(){function h(){}var u=h.prototype;return u.decode=function(l,o){if(!l)return"";if(typeof l!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(l))},h}();function U(h){function u(l,o,s,a){return(l|0)*3600+(o|0)*60+(s|0)+parseFloat(a||0)}var f=h.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var K=function(){function h(){this.values=Object.create(null)}var u=h.prototype;return u.set=function(l,o){!this.get(l)&&o!==""&&(this.values[l]=o)},u.get=function(l,o,s){return s?this.has(l)?this.values[l]:o[s]:this.has(l)?this.values[l]:o},u.has=function(l){return l in this.values},u.alt=function(l,o,s){for(var a=0;a=0&&s<=100)return this.set(l,s),!0}return!1},h}();function G(h,u,f,l){var o=l?h.split(l):[h];for(var s in o){if(typeof o[s]!="string")continue;var a=o[s].split(f);if(a.length!==2)continue;var O=a[0],E=a[1];u(O,E)}}var r=new X.default(0,0,""),L=r.align==="middle"?"middle":"center";function v(h,u,f){var l=h;function o(){var O=U(h);if(O===null)throw new Error("Malformed timestamp: "+l);return h=h.replace(/^[^\sa-zA-Z-]+/,""),O}function s(O,E){var w=new K;G(O,function(A,C){var T;switch(A){case"region":for(var c=f.length-1;c>=0;c--)if(f[c].id===C){w.set(A,f[c].region);break}break;case"vertical":w.alt(A,C,["rl","lr"]);break;case"line":T=C.split(","),w.integer(A,T[0]),w.percent(A,T[0])&&w.set("snapToLines",!1),w.alt(A,T[0],["auto"]),T.length===2&&w.alt("lineAlign",T[1],["start",L,"end"]);break;case"position":T=C.split(","),w.percent(A,T[0]),T.length===2&&w.alt("positionAlign",T[1],["start",L,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,C);break;case"align":w.alt(A,C,["start",L,"end","left","right"]);break}},/:/,/\s/),E.region=w.get("region",null),E.vertical=w.get("vertical","");var D=w.get("line","auto");D==="auto"&&r.line===-1&&(D=-1),E.line=D,E.lineAlign=w.get("lineAlign","start"),E.snapToLines=w.get("snapToLines",!0),E.size=w.get("size",100),E.align=w.get("align",L);var R=w.get("position","auto");R==="auto"&&r.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function a(){h=h.replace(/^\s+/,"")}if(a(),u.startTime=o(),a(),h.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+l);h=h.substr(3),a(),u.endTime=o(),a(),s(h,u)}function m(h){return h.replace(//gi,` `)}var p=function(){function h(){this.state="INITIAL",this.buffer="",this.decoder=new j,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var u=h.prototype;return u.parse=function(l){var o=this;l&&(o.buffer+=o.decoder.decode(l,{stream:!0}));function s(){var R=o.buffer,A=0;for(R=m(R);A")===-1){o.cue.id=O;continue}case"CUE":if(!o.cue){o.state="BADCUE";continue}try{v(O,o.cue,o.regionList)}catch(R){o.cue=null,o.state="BADCUE";continue}o.state="CUETEXT";continue;case"CUETEXT":{var D=O.indexOf("-->")!==-1;if(!O||D&&(w=!0)){o.oncue&&o.cue&&o.oncue(o.cue),o.cue=null,o.state="ID";continue}if(o.cue===null)continue;o.cue.text&&(o.cue.text+=` @@ -440,5 +440,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,l.parse()),l.state==="INITIAL"||l.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(o){l.onparsingerror&&l.onparsingerror(o)}return l.onflush&&l.onflush(),this},h}()},"./src/utils/webvtt-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"generateCueId",function(){return p}),P.d(J,"parseWebVTT",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/demux/id3.ts"),K=P("./src/utils/timescale-conversion.ts"),G=P("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,L=function(l,o,s){return s===void 0&&(s=0),l.substr(s,o.length)===o},v=function(l){var o=parseInt(l.substr(-3)),s=parseInt(l.substr(-6,2)),a=parseInt(l.substr(-9,2)),O=l.length>9?parseInt(l.substr(0,l.indexOf(":"))):0;if(!Object(X.isFiniteNumber)(o)||!Object(X.isFiniteNumber)(s)||!Object(X.isFiniteNumber)(a)||!Object(X.isFiniteNumber)(O))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+l);return o+=1e3*s,o+=60*1e3*a,o+=60*60*1e3*O,o},m=function(l){for(var o=5381,s=l.length;s;)o=o*33^l.charCodeAt(--s);return(o>>>0).toString()};function p(f,l,o){return m(f.toString())+m(l.toString())+m(o)}var h=function(l,o,s){var a=l[o],O=l[a.prevCC];if(!O||!O.new&&a.new){l.ccOffset=l.presentationOffset=a.start,a.new=!1;return}for(;(E=O)!==null&&E!==void 0&&E.new;){var E;l.ccOffset+=a.start-O.start,a.new=!1,a=O,O=l[a.prevCC]}l.presentationOffset=s};function u(f,l,o,s,a,O,E,w){var D=new j.VTTParser,R=Object(U.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(r,` `).split(` -`),A=[],C=Object(K.toMpegTsClockFromTimescale)(l,o),T="00:00.000",d=0,S=0,y,b=!0,B=!1;D.oncue=function(F){var _=s[a],M=s.ccOffset,I=(d-C)/9e4;if(_!=null&&_.new&&(S!==void 0?M=s.ccOffset=_.start:h(s,a,I)),I&&(M=I-s.presentationOffset),B){var g=F.endTime-F.startTime,H=Object(G.normalizePts)((F.startTime+M-S)*9e4,O*9e4)/9e4;F.startTime=H,F.endTime=H+g}var $=F.text.trim();F.text=decodeURIComponent(encodeURIComponent($)),F.id||(F.id=p(F.startTime,F.endTime,$)),F.endTime>0&&A.push(F)},D.onparsingerror=function(F){y=F},D.onflush=function(){if(y){w(y);return}E(A)},R.forEach(function(F){if(b)if(L(F,"X-TIMESTAMP-MAP=")){b=!1,B=!0,F.substr(16).split(",").forEach(function(_){L(_,"LOCAL:")?T=_.substr(6):L(_,"MPEGTS:")&&(d=parseInt(_.substr(7)))});try{S=v(T)/1e3}catch(_){B=!1,y=_}return}else F===""&&(b=!1);D.parse(F+` -`)}),D.flush()}},"./src/utils/xhr-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/utils/logger.ts"),j=P("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,K=function(){function G(L){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=L?L.xhrSetup:null,this.stats=new j.LoadStats,this.retryDelay=0}var r=G.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var v=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),v&&(v.onreadystatechange=null,v.onprogress=null,v.readyState!==4&&(this.stats.aborted=!0,v.abort()))},r.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(v,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=v,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},r.loadInternal=function(){var v=this.config,m=this.context;if(!v)return;var p=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(o){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var l in f)p.setRequestHeader(l,f[l])}catch(o){this.callbacks.onError({code:p.status,text:o.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout),p.send()},r.readystatechange=function(){var v=this.context,m=this.loader,p=this.stats;if(!v||!m)return;var h=m.readyState,u=this.config;if(p.aborted)return;if(h>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),h===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var l,o;if(v.responseType==="arraybuffer"?(l=m.response,o=l.byteLength):(l=m.responseText,o=l.length),p.loaded=p.total=o,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,v,l,m),!this.callbacks)return;var a={url:m.responseURL,data:l};this.callbacks.onSuccess(a,p,v,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+v.url),this.callbacks.onError({code:f,text:m.statusText},v,m)):(X.logger.warn(f+" while loading "+v.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},r.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(v){var m=this.stats;m.loaded=v.loaded,v.lengthComputable&&(m.total=v.total)},r.getCacheAge=function(){var v=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");v=m?parseFloat(m):null}return v},G}();J.default=K}}).default})},vHTk:function(rt,be,Z){rt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wzkS:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return U}),Z.d(be,"d",function(){return K}),Z.d(be,"a",function(){return r}),Z.d(be,"e",function(){return L});var ie=Z("9og8"),J=Z("WmNS"),P=Z.n(J),X=Z("ErOA");function j(v){return Object(X.c)("libraries/".concat(v,".json"))}function U(){return Object(X.c)("library_tags.json")}function K(v){return G.apply(this,arguments)}function G(){return G=Object(ie.a)(P.a.mark(function v(m){var p;return P.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(X.b)("attachments/".concat(m,".json"));case 2:return p=u.sent,u.abrupt("return",p.status===0);case 4:case"end":return u.stop()}},v)})),G.apply(this,arguments)}function r(v){return Object(X.f)("libraries.json",v)}function L(v,m){return Object(X.g)("libraries/".concat(v,".json"),m)}},y5JW:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return f}),Z.d(be,"a",function(){return l});var ie=Z("DZo9"),J=Z("8z0m"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("9og8"),U=Z("miYZ"),K=Z("tsqr"),G=Z("k1fw"),r=Z("oBTY"),L=Z("WmNS"),v=Z.n(L),m=Z("q1tI"),p=Z.n(m),h=Z("m3rI"),u=Z("wzkS"),f="\u3000\u3000";function l(o){var s=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var a=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,a)).toFixed(1)+" "+s[a]}be.b=function(o){var s=o.value,a=s===void 0?[]:s,O=o.action,E=o.onChange,w=o.className,D=o.maxSize,R=D===void 0?150:D,A=o.title,C=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,T=o.accept,d=T===void 0?null:T,S={multiple:!1,fileList:a,accept:d,withCredentials:!0,beforeUpload:function(B){var F=B.size/1024/1024;return!0},action:"".concat(h.a.API_SERVER,"/api/attachments.json"),onChange:function(B){var F,_,M=Object(r.a)(B.fileList);if(M=M.map(function(H){return H.name.indexOf(f)===-1&&(H.name="".concat(H.name).concat(f).concat(l(H.size))),Object(G.a)({},H)}),B.file.status==="done"&&((F=B.file)===null||F===void 0||((_=F.response)===null||_===void 0)?void 0:_.status)===-1){var I,g;K.b.error((I=B.file)===null||I===void 0||((g=I.response)===null||g===void 0)?void 0:g.message),E([]);return}E(M)},onRemove:function(){var b=Object(j.a)(v.a.mark(function F(_){var M,I,g;return v.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(M=_.size/1024/1024,!(_.status==="uploading")){$.next=3;break}return $.abrupt("return",!0);case 3:if(M0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:a.length>0,ghost:!0},C),p.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M)"," ")))}},zgC5:function(rt,be,Z){rt.exports={flex_box_center:"flex_box_center___BgH5i",flex_space_between:"flex_space_between___wIrN2",flex_box_vertical_center:"flex_box_vertical_center___3s8_f",flex_box_center_end:"flex_box_center_end___25L_b",flex_box_column:"flex_box_column___3Ya3F",bg:"bg___OpMlc",flexRow:"flexRow___3MRDT",flexJustifyCenter:"flexJustifyCenter___2VqIU",flexAlignEnd:"flexAlignEnd___1zWKJ",flexAlignCenter:"flexAlignCenter___46F8K",flexColumn:"flexColumn___2WIH4",formWrap:"formWrap___1eB5i",titleWrap:"titleWrap___1Db7T",fieldWrap:"fieldWrap___2HdAq",mdWrap:"mdWrap___27bNI",titleWrapper:"titleWrapper___2YeUd",backgroundFa:"backgroundFa___2EWsW",button:"button___1PabV",searchMember:"searchMember___2aVSB"}}}]); +`),A=[],C=Object(K.toMpegTsClockFromTimescale)(l,o),T="00:00.000",c=0,S=0,y,b=!0,B=!1;D.oncue=function(F){var _=s[a],M=s.ccOffset,I=(c-C)/9e4;if(_!=null&&_.new&&(S!==void 0?M=s.ccOffset=_.start:h(s,a,I)),I&&(M=I-s.presentationOffset),B){var g=F.endTime-F.startTime,H=Object(G.normalizePts)((F.startTime+M-S)*9e4,O*9e4)/9e4;F.startTime=H,F.endTime=H+g}var $=F.text.trim();F.text=decodeURIComponent(encodeURIComponent($)),F.id||(F.id=p(F.startTime,F.endTime,$)),F.endTime>0&&A.push(F)},D.onparsingerror=function(F){y=F},D.onflush=function(){if(y){w(y);return}E(A)},R.forEach(function(F){if(b)if(L(F,"X-TIMESTAMP-MAP=")){b=!1,B=!0,F.substr(16).split(",").forEach(function(_){L(_,"LOCAL:")?T=_.substr(6):L(_,"MPEGTS:")&&(c=parseInt(_.substr(7)))});try{S=v(T)/1e3}catch(_){B=!1,y=_}return}else F===""&&(b=!1);D.parse(F+` +`)}),D.flush()}},"./src/utils/xhr-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/utils/logger.ts"),j=P("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,K=function(){function G(L){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=L?L.xhrSetup:null,this.stats=new j.LoadStats,this.retryDelay=0}var r=G.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var v=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),v&&(v.onreadystatechange=null,v.onprogress=null,v.readyState!==4&&(this.stats.aborted=!0,v.abort()))},r.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(v,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=v,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},r.loadInternal=function(){var v=this.config,m=this.context;if(!v)return;var p=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(o){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var l in f)p.setRequestHeader(l,f[l])}catch(o){this.callbacks.onError({code:p.status,text:o.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout),p.send()},r.readystatechange=function(){var v=this.context,m=this.loader,p=this.stats;if(!v||!m)return;var h=m.readyState,u=this.config;if(p.aborted)return;if(h>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),h===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var l,o;if(v.responseType==="arraybuffer"?(l=m.response,o=l.byteLength):(l=m.responseText,o=l.length),p.loaded=p.total=o,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,v,l,m),!this.callbacks)return;var a={url:m.responseURL,data:l};this.callbacks.onSuccess(a,p,v,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+v.url),this.callbacks.onError({code:f,text:m.statusText},v,m)):(X.logger.warn(f+" while loading "+v.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},r.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(v){var m=this.stats;m.loaded=v.loaded,v.lengthComputable&&(m.total=v.total)},r.getCacheAge=function(){var v=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");v=m?parseFloat(m):null}return v},G}();J.default=K}}).default})},vHTk:function(rt,be,Z){rt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wzkS:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return U}),Z.d(be,"d",function(){return K}),Z.d(be,"a",function(){return r}),Z.d(be,"e",function(){return L});var ie=Z("9og8"),J=Z("WmNS"),P=Z.n(J),X=Z("ErOA");function j(v){return Object(X.c)("libraries/".concat(v,".json"))}function U(){return Object(X.c)("library_tags.json")}function K(v){return G.apply(this,arguments)}function G(){return G=Object(ie.a)(P.a.mark(function v(m){var p;return P.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(X.b)("attachments/".concat(m,".json"));case 2:return p=u.sent,u.abrupt("return",p.status===0);case 4:case"end":return u.stop()}},v)})),G.apply(this,arguments)}function r(v){return Object(X.f)("libraries.json",v)}function L(v,m){return Object(X.g)("libraries/".concat(v,".json"),m)}},y5JW:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return f}),Z.d(be,"a",function(){return l});var ie=Z("DZo9"),J=Z("8z0m"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("9og8"),U=Z("miYZ"),K=Z("tsqr"),G=Z("k1fw"),r=Z("oBTY"),L=Z("WmNS"),v=Z.n(L),m=Z("q1tI"),p=Z.n(m),h=Z("m3rI"),u=Z("wzkS"),f="\u3000\u3000";function l(o){var s=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var a=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,a)).toFixed(1)+" "+s[a]}be.b=function(o){var s=o.value,a=s===void 0?[]:s,O=o.action,E=o.onChange,w=o.className,D=o.maxSize,R=D===void 0?150:D,A=o.title,C=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,T=o.accept,c=T===void 0?null:T,S={multiple:!1,fileList:a,accept:c,withCredentials:!0,beforeUpload:function(B){var F=B.size/1024/1024;return!0},action:"".concat(h.a.API_SERVER,"/api/attachments.json"),onChange:function(B){var F,_,M=Object(r.a)(B.fileList);if(M=M.map(function(H){return H.name.indexOf(f)===-1&&(H.name="".concat(H.name).concat(f).concat(l(H.size))),Object(G.a)({},H)}),B.file.status==="done"&&((F=B.file)===null||F===void 0||((_=F.response)===null||_===void 0)?void 0:_.status)===-1){var I,g;K.b.error((I=B.file)===null||I===void 0||((g=I.response)===null||g===void 0)?void 0:g.message),E([]);return}E(M)},onRemove:function(){var b=Object(j.a)(v.a.mark(function F(_){var M,I,g;return v.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(M=_.size/1024/1024,!(_.status==="uploading")){$.next=3;break}return $.abrupt("return",!0);case 3:if(M0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:a.length>0,ghost:!0},C),p.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M)"," ")))}},zgC5:function(rt,be,Z){rt.exports={flex_box_center:"flex_box_center___BgH5i",flex_space_between:"flex_space_between___wIrN2",flex_box_vertical_center:"flex_box_vertical_center___3s8_f",flex_box_center_end:"flex_box_center_end___25L_b",flex_box_column:"flex_box_column___3Ya3F",bg:"bg___OpMlc",flexRow:"flexRow___3MRDT",flexJustifyCenter:"flexJustifyCenter___2VqIU",flexAlignEnd:"flexAlignEnd___1zWKJ",flexAlignCenter:"flexAlignCenter___46F8K",flexColumn:"flexColumn___2WIH4",formWrap:"formWrap___1eB5i",titleWrap:"titleWrap___1Db7T",fieldWrap:"fieldWrap___2HdAq",mdWrap:"mdWrap___27bNI",titleWrapper:"titleWrapper___2YeUd",backgroundFa:"backgroundFa___2EWsW",button:"button___1PabV",searchMember:"searchMember___2aVSB"}}}]); diff --git a/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js b/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js index 8d4eb7d1b6..cd21e59657 100644 --- a/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js +++ b/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js @@ -147,11 +147,11 @@ PERFORMANCE OF THIS SOFTWARE. `),ve.appendChild(Ke),ve},E.prototype.setCurrentColor=function(I,H){var q=this;this.currentColor=I,this.colorBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(I)},E}(oe),we=function(){function V(E,I,H){this._state="new",this._isSelected=!1,this._container=E,this._overlayContainer=I,this.globalSettings=H,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(V.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(E){return!1},Object.defineProperty(V.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),V.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},V.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},V.prototype.pointerDown=function(E,I){},V.prototype.dblClick=function(E,I){},V.prototype.manipulate=function(E){},V.prototype.pointerUp=function(E){this.stateChanged()},V.prototype.dispose=function(){},V.prototype.addMarkerVisualToContainer=function(E){this.container.childNodes.length>0?this.container.insertBefore(E,this.container.childNodes[0]):this.container.appendChild(E)},V.prototype.getState=function(){return{typeName:V.typeName,state:this.state,notes:this.notes}},V.prototype.restoreState=function(E){this._state=E.state,this.notes=E.notes},V.prototype.scale=function(E,I){},V.prototype.colorChanged=function(E){this.onColorChanged&&this.onColorChanged(E),this.stateChanged()},V.prototype.fillColorChanged=function(E){this.onFillColorChanged&&this.onFillColorChanged(E),this.stateChanged()},V.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var E=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),E.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(E)&&this.onStateChanged(this)}},V.typeName="MarkerBase",V}(),Ae=function(){function V(){this.findGripByVisual=this.findGripByVisual.bind(this)}return V.prototype.findGripByVisual=function(E){return this.topLeft.ownsTarget(E)?this.topLeft:this.topCenter.ownsTarget(E)?this.topCenter:this.topRight.ownsTarget(E)?this.topRight:this.centerLeft.ownsTarget(E)?this.centerLeft:this.centerRight.ownsTarget(E)?this.centerRight:this.bottomLeft.ownsTarget(E)?this.bottomLeft:this.bottomCenter.ownsTarget(E)?this.bottomCenter:this.bottomRight.ownsTarget(E)?this.bottomRight:void 0},V}(),Ue=function(){function V(){this.GRIP_SIZE=10,this.visual=ae.createGroup(),this.visual.appendChild(ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return V.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},V}(),Ve=function(){function V(){}return V.toITransformMatrix=function(E){return{a:E.a,b:E.b,c:E.c,d:E.d,e:E.e,f:E.f}},V.toSVGMatrix=function(E,I){return E.a=I.a,E.b=I.b,E.c=I.c,E.d=I.d,E.e=I.e,E.f=I.f,E},V}(),Ze=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.left=0,z.top=0,z.width=0,z.height=0,z.defaultSize={x:50,y:20},z.offsetX=0,z.offsetY=0,z.rotationAngle=0,z.CB_DISTANCE=10,z._suppressMarkerCreateEvent=!1,z.container.transform.baseVal.appendItem(ae.createTransform()),z.setupControlBox(),z}return Ce(E,V),Object.defineProperty(E.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"visual",{get:function(){return this._visual},set:function(I){this._visual=I;var H=ae.createTransform();this._visual.transform.baseVal.appendItem(H)},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!!(this.controlGrips.findGripByVisual(I)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.left=I.x,this.top=I.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var q=this.unrotatePoint(I);if(this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.offsetX=q.x-this.left,this.offsetY=q.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(H),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H)){this.activeGrip=this.rotatorGrip;var z=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=z.x-this.width/2,this.top=z.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},E.prototype.moveVisual=function(I){this.visual.style.transform="translate("+I.x+"px, "+I.y+"px)"},E.prototype.manipulate=function(I){var H=this.unrotatePoint(I);this.state==="creating"?this.resize(I):this.state==="move"?(this.left=this.manipulationStartLeft+(H.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(H.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(H):this.state==="rotate"&&this.rotate(I)},E.prototype.resize=function(I){var H=this.manipulationStartLeft,q=this.manipulationStartWidth,z=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:H=this.manipulationStartLeft+I.x-this.manipulationStartX,q=this.manipulationStartWidth+this.manipulationStartLeft-H;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:q=this.manipulationStartWidth+I.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:z=this.manipulationStartTop+I.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-z;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+I.y-this.manipulationStartY}q>=0?(this.left=H,this.width=q):(this.left=H+q,this.width=-q),ve>=0?(this.top=z,this.height=ve):(this.top=z+ve,this.height=-ve),this.setSize()},E.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},E.prototype.rotate=function(I){if(Math.abs(I.x-this.centerX)>.1){var H=Math.sign(I.x-this.centerX);this.rotationAngle=180*Math.atan((I.y-this.centerY)/(I.x-this.centerX))/Math.PI+90*H,this.applyRotation()}},E.prototype.applyRotation=function(){var I=this.container.transform.baseVal.getItem(0);I.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(I,0)},E.prototype.rotatePoint=function(I){if(this.rotationAngle===0)return I;var H=this.container.getCTM(),q=ae.createPoint(I.x,I.y);return{x:(q=q.matrixTransform(H)).x,y:q.y}},E.prototype.unrotatePoint=function(I){if(this.rotationAngle===0)return I;var H=this.container.getCTM();H=H.inverse();var q=ae.createPoint(I.x,I.y);return{x:(q=q.matrixTransform(H)).x,y:q.y}},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup();var I=ae.createTransform();I.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(I),this.container.appendChild(this.controlBox),this.controlRect=ae.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=ae.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"},E.prototype.adjustControlBox=function(){var I=this.controlBox.transform.baseVal.getItem(0);I.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(I,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()},E.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()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.controlGrips.topLeft.GRIP_SIZE,H=-I/2,q=H,z=(this.width+this.CB_DISTANCE)/2-I/2,ve=(this.height+this.CB_DISTANCE)/2-I/2,Ke=this.height+this.CB_DISTANCE-I/2,it=this.width+this.CB_DISTANCE-I/2;this.positionGrip(this.controlGrips.topLeft.visual,H,q),this.positionGrip(this.controlGrips.topCenter.visual,z,q),this.positionGrip(this.controlGrips.topRight.visual,it,q),this.positionGrip(this.controlGrips.centerLeft.visual,H,ve),this.positionGrip(this.controlGrips.centerRight.visual,it,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,H,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,z,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,it,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,z,q-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.hideControlBox=function(){this.controlBox.style.display="none"},E.prototype.showControlBox=function(){this.controlBox.style.display=""},E.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ve.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ve.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.left=H.left,this.top=H.top,this.width=H.width,this.height=H.height,this.rotationAngle=H.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,H.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,H.containerTransformMatrix))},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H);var q=this.rotatePoint({x:this.left,y:this.top}),z=this.unrotatePoint({x:q.x*I,y:q.y*H});this.left=z.x,this.top=z.y,this.width=this.width*I,this.height=this.height*H,this.adjustControlBox()},E}(we),$e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor="transparent",z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.opacity=1,z.setStrokeColor=z.setStrokeColor.bind(z),z.setFillColor=z.setFillColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.createVisual=z.createVisual.bind(z),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual)},E.prototype.createVisual=function(){this.visual=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.setSize()},E.prototype.setSize=function(){V.prototype.setSize.call(this),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){V.prototype.pointerUp.call(this,I),this.setSize()},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.visual&&ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(I),this.stateChanged()},E.prototype.setFillColor=function(I){this.fillColor=I,this.visual&&ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.visual&&ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.visual&&ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){var H=I;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize()},E.title="Rectangle marker",E}(Ze),tt=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=H,ve.currentWidth=q,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.widths.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.flexGrow="2",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentWidth?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentWidth(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=q.toString(),ve.style.marginRight="5px",z.appendChild(ve);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var it=document.createElement("hr");it.style.minWidth="20px",it.style.border="0px",it.style.borderTop=q+"px solid "+I.uiStyleSettings.toolboxColor,it.style.flexGrow="2",Ke.appendChild(it),z.appendChild(Ke),I.widthBoxes.push(z)}),H},E.prototype.setCurrentWidth=function(I,H){var q=this;this.currentWidth=I,this.widthBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(oe),et=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=H,ve.currentStyle=q,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.styles.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.styles.length-5+"%",z.style.borderColor=q===I.currentStyle?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentStyle(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var Ke=` - `;ve.innerHTML=Ke,z.appendChild(ve),I.styleBoxes.push(z)}),H},E.prototype.setCurrentStyle=function(I,H){var q=this;this.currentStyle=I,this.styleBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(oe),Je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="FrameMarker",E.title="Frame marker",E.icon='',E}($e),Me=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},ut=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.x1=0,z.y1=0,z.x2=0,z.y2=0,z.defaultLength=50,z.manipulationStartX=0,z.manipulationStartY=0,z.manipulationStartX1=0,z.manipulationStartY1=0,z.manipulationStartX2=0,z.manipulationStartY2=0,z.setupControlBox(),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!(!this.grip1.ownsTarget(I)&&!this.grip2.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartX=I.x,this.manipulationStartY=I.y,this.state==="new"&&(this.x1=I.x,this.y1=I.y,this.x2=I.x,this.y2=I.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),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(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(I){this.state==="creating"?this.resize(I):this.state==="move"?(this.x1=this.manipulationStartX1+I.x-this.manipulationStartX,this.y1=this.manipulationStartY1+I.y-this.manipulationStartY,this.x2=this.manipulationStartX2+I.x-this.manipulationStartX,this.y2=this.manipulationStartY2+I.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(I)},E.prototype.resize=function(I){switch(this.activeGrip){case this.grip1:this.x1=I.x,this.y1=I.y;break;case this.grip2:case void 0:this.x2=I.x,this.y2=I.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-I/2,this.y1-I/2),this.positionGrip(this.grip2.visual,this.x2-I/2,this.y2-I/2)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.x1=this.x1*I,this.y1=this.y1*H,this.x2=this.x2*I,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},E}(we),rt=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorLine&&I!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='',E}(ut),Fe=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=H,ve.currentFont=q,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(q){var z=document.createElement("div");z.style.display="inline-block",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.fonts.length-5+"%",z.style.borderColor=q===I.currentFont?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentFont(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=q,ve.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Ke),z.appendChild(ve),I.fontBoxes.push(z)}),H},E.prototype.setCurrentFont=function(I,H){var q=this;this.currentFont=I,this.fontBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(oe),je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.padding=5,z.DEFAULT_TEXT="your text here",z.text=z.DEFAULT_TEXT,z.isMoved=!1,z.color=q.defaultColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setColor=z.setColor.bind(z),z.setFont=z.setFont.bind(z),z.renderText=z.renderText.bind(z),z.sizeText=z.sizeText.bind(z),z.textEditDivClicked=z.textEditDivClicked.bind(z),z.showTextEditor=z.showTextEditor.bind(z),z.setSize=z.setSize.bind(z),z.positionTextEditor=z.positionTextEditor.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z}return Ce(E,V),E.prototype.ownsTarget=function(I){if(V.prototype.ownsTarget.call(this,I)||I===this.visual||I===this.textElement||I===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(q){q===I&&(H=!0)}),H},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.bgRectangle=ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.isMoved=!1,this.pointerDownPoint=I,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.renderText=function(){var I=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(H){I.textElement.appendChild(ae.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var I=this.textElement.getBBox(),H=1;if(I.width>0&&I.height>0){var q=(1*this.width-this.width*this.padding*2/100)/I.width,z=(1*this.height-this.height*this.padding*2/100)/I.height;H=Math.min(q,z)}return H},E.prototype.getTextPosition=function(I){var H=this.textElement.getBBox(),q=0,z=0;return H.width>0&&H.height>0&&(q=(this.width-H.width*I)/2,z=this.height/2-H.height*I/2),{x:q,y:z}},E.prototype.sizeText=function(){var I=this.textElement.getBBox(),H=this.getTextScale(),q=this.getTextPosition(H);q.y-=I.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+q.x+"px, "+q.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(q.x,q.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(I.x-this.pointerDownPoint.x)>5||Math.abs(I.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){V.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(I){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),V.prototype.pointerUp.call(this,I),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var I=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(I.textEditor.style.fontSize);I.textEditor.clientWidth>=Number.parseInt(I.textEditor.style.maxWidth)&&H>.9;)H-=.1,I.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var q=H.clipboardData.getData("text"),z=window.getSelection();if(!z.rangeCount)return!1;z.deleteFromDocument(),z.getRangeAt(0).insertNode(document.createTextNode(q)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){I.textEditDivClicked(I.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var I=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),q=this.textElement.getBBox(),z={x:q.width*I,y:q.height*I};H.x-=z.x/2,H.y-=z.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*I,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(I){this.text=I.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){V.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),V.prototype.deselect.call(this)},E.prototype.dblClick=function(I,H){V.prototype.dblClick.call(this,I,H),this.showTextEditor()},E.prototype.setColor=function(I){this.textElement&&ae.setAttributes(this.textElement,[["fill",I]]),this.color=I,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(I)},E.prototype.setFont=function(I){this.textElement&&ae.setAttributes(this.textElement,[["font-family",I]]),this.fontFamily=I,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){var H=I;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='',E}(Ze),Ee=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.lineWidth=3,z.drawing=!1,z.pixelRatio=1,z.color=q.defaultColor,z.lineWidth=q.defaultStrokeWidth,z.pixelRatio=q.freehandPixelRatio,z.setColor=z.setColor.bind(z),z.addCanvas=z.addCanvas.bind(z),z.finishCreation=z.finishCreation.bind(z),z.setLineWidth=z.setLineWidth.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.lineWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.lineWidthPanel.onWidthChanged=z.setLineWidth,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.drawingImage=ae.createImage(),this.visual.appendChild(this.drawingImage);var I=ae.createTransform();this.visual.transform.baseVal.appendItem(I),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(I,H){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(I.x,I.y),this.drawing=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.manipulate=function(I){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(I.x,I.y),this.canvasContext.stroke()):V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):V.prototype.pointerUp.call(this,I)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),V.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),V.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var I=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],q=H[0],z=H[1],ve=H[2],Ke=H[3],it=!1,pt=0;pt0&&(it=!0,ptKe&&(Ke=pt),Ye>ve&&(ve=Ye));if(it){this.left=q/this.pixelRatio,this.top=z/this.pixelRatio,this.width=(ve-q)/this.pixelRatio,this.height=(Ke-z)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=ve-q,_t.height=Ke-z,_t.getContext("2d").putImageData(this.canvasContext.getImageData(q,z,ve-q,Ke-z),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(I){this.color=I,this.colorChanged(I)},E.prototype.setLineWidth=function(I){this.lineWidth=I},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({drawingImgUrl:this.drawingImgUrl},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){this.createVisual(),V.prototype.restoreState.call(this,I),this.drawingImgUrl=I.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='',E}(Ze),ge=function(V){function E(I,H,q){var z=V.call(this,I,q||'')||this;return z.typeBoxes=[],z.currentType=H,z.setCurrentType=z.setCurrentType.bind(z),z}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var q=function(Ke){var it="both";switch(Ke){case 0:it="both";break;case 1:it="start";break;case 2:it="end";break;case 3:it="none"}var pt=document.createElement("div");if(pt.style.display="flex",pt.style.flexGrow="2",pt.style.alignItems="center",pt.style.justifyContent="space-between",pt.style.padding="5px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderColor=it===z.currentType?z.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){I.setCurrentType(it,pt)}),H.appendChild(pt),it==="both"||it==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=` + `;ve.innerHTML=Ke,z.appendChild(ve),I.styleBoxes.push(z)}),H},E.prototype.setCurrentStyle=function(I,H){var q=this;this.currentStyle=I,this.styleBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(oe),Je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="FrameMarker",E.title="Frame marker",E.icon='',E}($e),Me=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},ut=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.x1=0,z.y1=0,z.x2=0,z.y2=0,z.defaultLength=50,z.manipulationStartX=0,z.manipulationStartY=0,z.manipulationStartX1=0,z.manipulationStartY1=0,z.manipulationStartX2=0,z.manipulationStartY2=0,z.setupControlBox(),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!(!this.grip1.ownsTarget(I)&&!this.grip2.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartX=I.x,this.manipulationStartY=I.y,this.state==="new"&&(this.x1=I.x,this.y1=I.y,this.x2=I.x,this.y2=I.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),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(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(I){this.state==="creating"?this.resize(I):this.state==="move"?(this.x1=this.manipulationStartX1+I.x-this.manipulationStartX,this.y1=this.manipulationStartY1+I.y-this.manipulationStartY,this.x2=this.manipulationStartX2+I.x-this.manipulationStartX,this.y2=this.manipulationStartY2+I.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(I)},E.prototype.resize=function(I){switch(this.activeGrip){case this.grip1:this.x1=I.x,this.y1=I.y;break;case this.grip2:case void 0:this.x2=I.x,this.y2=I.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-I/2,this.y1-I/2),this.positionGrip(this.grip2.visual,this.x2-I/2,this.y2-I/2)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.x1=this.x1*I,this.y1=this.y1*H,this.x2=this.x2*I,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},E}(we),nt=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorLine&&I!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='',E}(ut),Fe=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=H,ve.currentFont=q,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(q){var z=document.createElement("div");z.style.display="inline-block",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.fonts.length-5+"%",z.style.borderColor=q===I.currentFont?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentFont(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=q,ve.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Ke),z.appendChild(ve),I.fontBoxes.push(z)}),H},E.prototype.setCurrentFont=function(I,H){var q=this;this.currentFont=I,this.fontBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(oe),je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.padding=5,z.DEFAULT_TEXT="your text here",z.text=z.DEFAULT_TEXT,z.isMoved=!1,z.color=q.defaultColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setColor=z.setColor.bind(z),z.setFont=z.setFont.bind(z),z.renderText=z.renderText.bind(z),z.sizeText=z.sizeText.bind(z),z.textEditDivClicked=z.textEditDivClicked.bind(z),z.showTextEditor=z.showTextEditor.bind(z),z.setSize=z.setSize.bind(z),z.positionTextEditor=z.positionTextEditor.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z}return Ce(E,V),E.prototype.ownsTarget=function(I){if(V.prototype.ownsTarget.call(this,I)||I===this.visual||I===this.textElement||I===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(q){q===I&&(H=!0)}),H},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.bgRectangle=ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.isMoved=!1,this.pointerDownPoint=I,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.renderText=function(){var I=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(H){I.textElement.appendChild(ae.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var I=this.textElement.getBBox(),H=1;if(I.width>0&&I.height>0){var q=(1*this.width-this.width*this.padding*2/100)/I.width,z=(1*this.height-this.height*this.padding*2/100)/I.height;H=Math.min(q,z)}return H},E.prototype.getTextPosition=function(I){var H=this.textElement.getBBox(),q=0,z=0;return H.width>0&&H.height>0&&(q=(this.width-H.width*I)/2,z=this.height/2-H.height*I/2),{x:q,y:z}},E.prototype.sizeText=function(){var I=this.textElement.getBBox(),H=this.getTextScale(),q=this.getTextPosition(H);q.y-=I.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+q.x+"px, "+q.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(q.x,q.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(I.x-this.pointerDownPoint.x)>5||Math.abs(I.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){V.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(I){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),V.prototype.pointerUp.call(this,I),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var I=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(I.textEditor.style.fontSize);I.textEditor.clientWidth>=Number.parseInt(I.textEditor.style.maxWidth)&&H>.9;)H-=.1,I.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var q=H.clipboardData.getData("text"),z=window.getSelection();if(!z.rangeCount)return!1;z.deleteFromDocument(),z.getRangeAt(0).insertNode(document.createTextNode(q)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){I.textEditDivClicked(I.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var I=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),q=this.textElement.getBBox(),z={x:q.width*I,y:q.height*I};H.x-=z.x/2,H.y-=z.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*I,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(I){this.text=I.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){V.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),V.prototype.deselect.call(this)},E.prototype.dblClick=function(I,H){V.prototype.dblClick.call(this,I,H),this.showTextEditor()},E.prototype.setColor=function(I){this.textElement&&ae.setAttributes(this.textElement,[["fill",I]]),this.color=I,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(I)},E.prototype.setFont=function(I){this.textElement&&ae.setAttributes(this.textElement,[["font-family",I]]),this.fontFamily=I,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){var H=I;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='',E}(Ze),Ee=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.lineWidth=3,z.drawing=!1,z.pixelRatio=1,z.color=q.defaultColor,z.lineWidth=q.defaultStrokeWidth,z.pixelRatio=q.freehandPixelRatio,z.setColor=z.setColor.bind(z),z.addCanvas=z.addCanvas.bind(z),z.finishCreation=z.finishCreation.bind(z),z.setLineWidth=z.setLineWidth.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.lineWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.lineWidthPanel.onWidthChanged=z.setLineWidth,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.drawingImage=ae.createImage(),this.visual.appendChild(this.drawingImage);var I=ae.createTransform();this.visual.transform.baseVal.appendItem(I),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(I,H){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(I.x,I.y),this.drawing=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.manipulate=function(I){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(I.x,I.y),this.canvasContext.stroke()):V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):V.prototype.pointerUp.call(this,I)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),V.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),V.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var I=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],q=H[0],z=H[1],ve=H[2],Ke=H[3],it=!1,pt=0;pt0&&(it=!0,ptKe&&(Ke=pt),Ye>ve&&(ve=Ye));if(it){this.left=q/this.pixelRatio,this.top=z/this.pixelRatio,this.width=(ve-q)/this.pixelRatio,this.height=(Ke-z)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=ve-q,_t.height=Ke-z,_t.getContext("2d").putImageData(this.canvasContext.getImageData(q,z,ve-q,Ke-z),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(I){this.color=I,this.colorChanged(I)},E.prototype.setLineWidth=function(I){this.lineWidth=I},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({drawingImgUrl:this.drawingImgUrl},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){this.createVisual(),V.prototype.restoreState.call(this,I),this.drawingImgUrl=I.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='',E}(Ze),ge=function(V){function E(I,H,q){var z=V.call(this,I,q||'')||this;return z.typeBoxes=[],z.currentType=H,z.setCurrentType=z.setCurrentType.bind(z),z}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var q=function(Ke){var it="both";switch(Ke){case 0:it="both";break;case 1:it="start";break;case 2:it="end";break;case 3:it="none"}var pt=document.createElement("div");if(pt.style.display="flex",pt.style.flexGrow="2",pt.style.alignItems="center",pt.style.justifyContent="space-between",pt.style.padding="5px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderColor=it===z.currentType?z.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){I.setCurrentType(it,pt)}),H.appendChild(pt),it==="both"||it==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=` `,Ye.style.marginLeft="5px",pt.appendChild(Ye)}var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(z.uiStyleSettings!==void 0?z.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",_t.appendChild(jt),pt.appendChild(_t),it==="both"||it==="end"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` - `,$t.style.marginRight="5px",pt.appendChild($t)}z.typeBoxes.push(pt)},z=this,ve=0;ve<4;ve++)q(ve);return H},E.prototype.setCurrentType=function(I,H){var q=this;this.currentType=I,this.typeBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(oe),_e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.arrowType="end",z.arrowBaseHeight=10,z.arrowBaseWidth=10,z.getArrowPoints=z.getArrowPoints.bind(z),z.setArrowType=z.setArrowType.bind(z),z.arrowTypePanel=new ge("Arrow type","end"),z.arrowTypePanel.onArrowTypeChanged=z.setArrowType,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.arrow1&&I!==this.arrow2)},E.prototype.getArrowPoints=function(I,H){var q=this.arrowBaseWidth+2*this.strokeWidth,z=this.arrowBaseHeight+2*this.strokeWidth;return I-q/2+","+(H+z/2)+" "+I+","+(H-z/2)+" "+(I+q/2)+","+(H+z/2)},E.prototype.createTips=function(){this.arrow1=ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(V.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",ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var q=this.arrow2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(q,0)}},E.prototype.setArrowType=function(I){this.arrowType=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({arrowType:this.arrowType},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='',E}(rt),re=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor=q.defaultFillColor,z.strokeWidth=0,z.fillPanel=new ye("Color",q.defaultColorSet,q.defaultFillColor),z.fillPanel.onColorChanged=z.setFillColor,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="CoverMarker",E.title="Cover marker",E.icon='',E}($e),ne=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=H,ve.currentOpacity=q,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="center",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentOpacity?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentOpacity(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=100*q+"%",z.appendChild(ve),I.opacityBoxes.push(z)}),H},E.prototype.setCurrentOpacity=function(I,H){var q=this;this.currentOpacity=I,this.opacityBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(oe),he=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.setOpacity=z.setOpacity.bind(z),z.fillColor=q.defaultHighlightColor,z.strokeWidth=0,z.opacity=q.defaultHighlightOpacity,z.fillPanel=new ye("Color",q.defaultColorSet,z.fillColor),z.fillPanel.onColorChanged=z.setFillColor,z.opacityPanel=new ne("Opacity",q.defaultOpacitySteps,z.opacity),z.opacityPanel.onOpacityChanged=z.setOpacity,z}return Ce(E,V),E.prototype.setOpacity=function(I){this.opacity=I,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='',E}(re),fe='',xe=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.bgColor="transparent",z.tipPosition={x:0,y:0},z.tipBase1Position={x:0,y:0},z.tipBase2Position={x:0,y:0},z.tipMoving=!1,z.color=q.defaultStrokeColor,z.bgColor=q.defaultFillColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setBgColor=z.setBgColor.bind(z),z.getTipPoints=z.getTipPoints.bind(z),z.positionTip=z.positionTip.bind(z),z.setTipPoints=z.setTipPoints.bind(z),z.colorPanel=new ye("Text color",q.defaultColorSet,z.color,''),z.colorPanel.onColorChanged=z.setColor,z.bgColorPanel=new ye("Fill color",q.defaultColorSet,z.bgColor,fe),z.bgColorPanel.onColorChanged=z.setBgColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z.tipGrip=new Ue,z.tipGrip.visual.transform.baseVal.appendItem(ae.createTransform()),z.controlBox.appendChild(z.tipGrip.visual),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return V.prototype.ownsTarget.call(this,I)||this.tipGrip.ownsTarget(I)||this.tip===I},E.prototype.createTip=function(){ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(I,H){this.state==="new"&&V.prototype.pointerDown.call(this,I,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.pointerUp=function(I){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,V.prototype.pointerUp.call(this,I);else{var H=this.state==="creating";V.prototype.pointerUp.call(this,I),this.setTipPoints(H),this.positionTip()}},E.prototype.manipulate=function(I){if(this.tipMoving){var H=this.unrotatePoint(I);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else V.prototype.manipulate.call(this,I)},E.prototype.setBgColor=function(I){this.bgRectangle&&this.tip&&(ae.setAttributes(this.bgRectangle,[["fill",I]]),ae.setAttributes(this.tip,[["fill",I]])),this.bgColor=I,this.fillColorChanged(I)},E.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},E.prototype.setTipPoints=function(I){I===void 0&&(I=!1);var H=Math.min(this.height/2,15),q=this.height/5;I&&(this.tipPosition={x:H+q/2,y:this.height+20});var z=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?z.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var q=this.tip2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(q,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='',E}(rt),ot=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokePanel.colors=q.defaultColorSet,z.fillColor="transparent",z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='',E}(Pe),mt=function(){function V(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),V.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},V.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},V.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},V.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},V.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},V}(),ft=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.curveX=0,z.curveY=0,z.manipulationStartCurveX=0,z.manipulationStartCurveY=0,z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.positionGrips=z.positionGrips.bind(z),z.addControlGrips=z.addControlGrips.bind(z),z.adjustVisual=z.adjustVisual.bind(z),z.setupControlBox=z.setupControlBox.bind(z),z.resize=z.resize.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorCurve&&I!==this.visibleCurve&&!this.curveGrip.ownsTarget(I))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorCurve=ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=I.x,this.curveY=I.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){V.prototype.setupControlBox.call(this),this.curveControlLine1=ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ae.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,V.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){V.prototype.positionGrips.call(this);var I=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-I/2,this.curveY-I/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()))},E.prototype.manipulate=function(I){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+I.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+I.y-this.manipulationStartY),V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){this.activeGrip===this.curveGrip&&(this.curveX=I.x,this.curveY=I.y),V.prototype.resize.call(this,I),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual()},E.prototype.scale=function(I,H){this.curveX=this.curveX*I,this.curveY=this.curveY*H,V.prototype.scale.call(this,I,H)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='',E}(ut),wt=function(){function V(E,I){I===void 0&&(I=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=I}return Object.defineProperty(V.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),V.prototype.preventDefault=function(){this._defaultPrevented=!0},V}(),St=function(V){function E(I,H,q){var z=V.call(this,I,!1)||this;return z.dataUrl=H,z.state=q,z}return Ce(E,V),E}(wt),dt=function(V){function E(I,H,q){q===void 0&&(q=!1);var z=V.call(this,I,q)||this;return z.marker=H,z}return Ce(E,V),E}(wt),Ut=function(){function V(){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 V.prototype.addEventListener=function(E,I){this[E].push(I)},V.prototype.removeEventListener=function(E,I){var H=this[E].indexOf(I);H>-1&&this[E].splice(H,1)},V}(),Lt=function(){function V(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Me,this._isOpen=!1,this.undoRedoManager=new mt,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 Ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=V.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(V.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,ot,Pe,he,xe,ze,re,rt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,Pe,he,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,he]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var I=this;this._availableMarkerTypes.splice(0),E.forEach(function(H){if(typeof H=="string"){var q=I.ALL_MARKER_TYPES.find(function(z){return z.typeName===H});q!==void 0&&I._availableMarkerTypes.push(q)}else I._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(V.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),V.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},V.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(I){return I(new wt(E))})},V.prototype.render=function(){return ce(this,void 0,void 0,function(){var E;return pe(this,function(I){switch(I.label){case 0:return this.setCurrentMarker(),(E=new Te).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return I.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,I.sent()]}})})},V.prototype.close=function(E){var I=this;if(E===void 0&&(E=!1),this.isOpen){var H=!1;E||this.eventListeners.beforeclose.forEach(function(q){var z=new wt(I,!0);q(z),z.defaultPrevented&&(H=!0)}),H||(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(q){return q(new wt(I))}),this.detachEvents(),this._isOpen=!1)}},V.prototype.addMarkersToToolbar=function(){for(var E,I=[],H=0;Hthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,H=I',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},V.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")},V.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"},V.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},V.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 Be(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(E),1),E.dispose()},V.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())},V.prototype.toolbarButtonClicked=function(E,I){if(E==="marker"&&I!==void 0)this.createNewMarker(I);else if(E==="action")switch(I){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()}},V.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var I=!1;if(this.eventListeners.markerbeforedelete.forEach(function(q){var z=new dt(E,E._currentMarker,!0);q(z),z.defaultPrevented&&(I=!0)}),!I){var H=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(q){return q(new dt(E,H))})}}},V.prototype.clear=function(){var E=this,I=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Ke=new dt(E,void 0,!0);ve(Ke),Ke.defaultPrevented&&(I=!0)}),!I)){this.setCurrentMarker();for(var H=function(ve){var Ke=q.markers[ve];q.setCurrentMarker(q.markers[ve]),q._currentMarker.dispose(),q.markerImage.removeChild(q._currentMarker.container),q.markers.splice(q.markers.indexOf(q._currentMarker),1),q.eventListeners.markerdelete.forEach(function(it){return it(new dt(E,Ke))})},q=this,z=this.markers.length-1;z>=0;z--)H(z);this.addUndoStep()}},Object.defineProperty(V.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),V.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},V.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)},V.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},V.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var I=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===I.width&&H.height===I.height){var q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(I),q1&&this.panTo({x:E.clientX,y:E.clientY}))},V.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},V.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},V.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},V.prototype.clientToLocalCoordinates=function(E,I){var H=this.markerImage.getBoundingClientRect();return{x:(E-H.left)/this.zoomLevel,y:(I-H.top)/this.zoomLevel}},V.prototype.onWindowResize=function(){this.positionUI()},V.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},V.prototype.addLicenseKey=function(E){Oe.addKey(E)},V.prototype.addEventListener=function(E,I){this.eventListeners.addEventListener(E,I)},V.prototype.removeEventListener=function(E,I){this.eventListeners.removeEventListener(E,I)},V.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(V.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),V.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(I){return I(new wt(E))}))},V.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(I){return I(new wt(E))}))},V.instanceCounter=0,V}();/* ********************************** + `,$t.style.marginRight="5px",pt.appendChild($t)}z.typeBoxes.push(pt)},z=this,ve=0;ve<4;ve++)q(ve);return H},E.prototype.setCurrentType=function(I,H){var q=this;this.currentType=I,this.typeBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(oe),_e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.arrowType="end",z.arrowBaseHeight=10,z.arrowBaseWidth=10,z.getArrowPoints=z.getArrowPoints.bind(z),z.setArrowType=z.setArrowType.bind(z),z.arrowTypePanel=new ge("Arrow type","end"),z.arrowTypePanel.onArrowTypeChanged=z.setArrowType,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.arrow1&&I!==this.arrow2)},E.prototype.getArrowPoints=function(I,H){var q=this.arrowBaseWidth+2*this.strokeWidth,z=this.arrowBaseHeight+2*this.strokeWidth;return I-q/2+","+(H+z/2)+" "+I+","+(H-z/2)+" "+(I+q/2)+","+(H+z/2)},E.prototype.createTips=function(){this.arrow1=ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(V.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",ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var q=this.arrow2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(q,0)}},E.prototype.setArrowType=function(I){this.arrowType=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({arrowType:this.arrowType},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='',E}(nt),ne=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor=q.defaultFillColor,z.strokeWidth=0,z.fillPanel=new ye("Color",q.defaultColorSet,q.defaultFillColor),z.fillPanel.onColorChanged=z.setFillColor,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="CoverMarker",E.title="Cover marker",E.icon='',E}($e),re=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=H,ve.currentOpacity=q,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="center",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentOpacity?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentOpacity(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=100*q+"%",z.appendChild(ve),I.opacityBoxes.push(z)}),H},E.prototype.setCurrentOpacity=function(I,H){var q=this;this.currentOpacity=I,this.opacityBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(oe),he=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.setOpacity=z.setOpacity.bind(z),z.fillColor=q.defaultHighlightColor,z.strokeWidth=0,z.opacity=q.defaultHighlightOpacity,z.fillPanel=new ye("Color",q.defaultColorSet,z.fillColor),z.fillPanel.onColorChanged=z.setFillColor,z.opacityPanel=new re("Opacity",q.defaultOpacitySteps,z.opacity),z.opacityPanel.onOpacityChanged=z.setOpacity,z}return Ce(E,V),E.prototype.setOpacity=function(I){this.opacity=I,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='',E}(ne),fe='',xe=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.bgColor="transparent",z.tipPosition={x:0,y:0},z.tipBase1Position={x:0,y:0},z.tipBase2Position={x:0,y:0},z.tipMoving=!1,z.color=q.defaultStrokeColor,z.bgColor=q.defaultFillColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setBgColor=z.setBgColor.bind(z),z.getTipPoints=z.getTipPoints.bind(z),z.positionTip=z.positionTip.bind(z),z.setTipPoints=z.setTipPoints.bind(z),z.colorPanel=new ye("Text color",q.defaultColorSet,z.color,''),z.colorPanel.onColorChanged=z.setColor,z.bgColorPanel=new ye("Fill color",q.defaultColorSet,z.bgColor,fe),z.bgColorPanel.onColorChanged=z.setBgColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z.tipGrip=new Ue,z.tipGrip.visual.transform.baseVal.appendItem(ae.createTransform()),z.controlBox.appendChild(z.tipGrip.visual),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return V.prototype.ownsTarget.call(this,I)||this.tipGrip.ownsTarget(I)||this.tip===I},E.prototype.createTip=function(){ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(I,H){this.state==="new"&&V.prototype.pointerDown.call(this,I,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.pointerUp=function(I){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,V.prototype.pointerUp.call(this,I);else{var H=this.state==="creating";V.prototype.pointerUp.call(this,I),this.setTipPoints(H),this.positionTip()}},E.prototype.manipulate=function(I){if(this.tipMoving){var H=this.unrotatePoint(I);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else V.prototype.manipulate.call(this,I)},E.prototype.setBgColor=function(I){this.bgRectangle&&this.tip&&(ae.setAttributes(this.bgRectangle,[["fill",I]]),ae.setAttributes(this.tip,[["fill",I]])),this.bgColor=I,this.fillColorChanged(I)},E.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},E.prototype.setTipPoints=function(I){I===void 0&&(I=!1);var H=Math.min(this.height/2,15),q=this.height/5;I&&(this.tipPosition={x:H+q/2,y:this.height+20});var z=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?z.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var q=this.tip2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(q,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='',E}(nt),ot=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokePanel.colors=q.defaultColorSet,z.fillColor="transparent",z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='',E}(Pe),mt=function(){function V(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),V.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},V.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},V.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},V.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},V.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},V}(),ft=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.curveX=0,z.curveY=0,z.manipulationStartCurveX=0,z.manipulationStartCurveY=0,z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.positionGrips=z.positionGrips.bind(z),z.addControlGrips=z.addControlGrips.bind(z),z.adjustVisual=z.adjustVisual.bind(z),z.setupControlBox=z.setupControlBox.bind(z),z.resize=z.resize.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorCurve&&I!==this.visibleCurve&&!this.curveGrip.ownsTarget(I))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorCurve=ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=I.x,this.curveY=I.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){V.prototype.setupControlBox.call(this),this.curveControlLine1=ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ae.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,V.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){V.prototype.positionGrips.call(this);var I=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-I/2,this.curveY-I/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()))},E.prototype.manipulate=function(I){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+I.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+I.y-this.manipulationStartY),V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){this.activeGrip===this.curveGrip&&(this.curveX=I.x,this.curveY=I.y),V.prototype.resize.call(this,I),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual()},E.prototype.scale=function(I,H){this.curveX=this.curveX*I,this.curveY=this.curveY*H,V.prototype.scale.call(this,I,H)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='',E}(ut),wt=function(){function V(E,I){I===void 0&&(I=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=I}return Object.defineProperty(V.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),V.prototype.preventDefault=function(){this._defaultPrevented=!0},V}(),St=function(V){function E(I,H,q){var z=V.call(this,I,!1)||this;return z.dataUrl=H,z.state=q,z}return Ce(E,V),E}(wt),dt=function(V){function E(I,H,q){q===void 0&&(q=!1);var z=V.call(this,I,q)||this;return z.marker=H,z}return Ce(E,V),E}(wt),Ut=function(){function V(){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 V.prototype.addEventListener=function(E,I){this[E].push(I)},V.prototype.removeEventListener=function(E,I){var H=this[E].indexOf(I);H>-1&&this[E].splice(H,1)},V}(),Lt=function(){function V(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Me,this._isOpen=!1,this.undoRedoManager=new mt,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 Ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=V.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(V.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,ot,Pe,he,xe,ze,ne,nt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,Pe,he,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,he]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var I=this;this._availableMarkerTypes.splice(0),E.forEach(function(H){if(typeof H=="string"){var q=I.ALL_MARKER_TYPES.find(function(z){return z.typeName===H});q!==void 0&&I._availableMarkerTypes.push(q)}else I._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(V.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),V.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},V.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(I){return I(new wt(E))})},V.prototype.render=function(){return ce(this,void 0,void 0,function(){var E;return pe(this,function(I){switch(I.label){case 0:return this.setCurrentMarker(),(E=new Te).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return I.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,I.sent()]}})})},V.prototype.close=function(E){var I=this;if(E===void 0&&(E=!1),this.isOpen){var H=!1;E||this.eventListeners.beforeclose.forEach(function(q){var z=new wt(I,!0);q(z),z.defaultPrevented&&(H=!0)}),H||(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(q){return q(new wt(I))}),this.detachEvents(),this._isOpen=!1)}},V.prototype.addMarkersToToolbar=function(){for(var E,I=[],H=0;Hthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,H=I',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},V.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")},V.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"},V.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},V.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 Be(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(E),1),E.dispose()},V.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())},V.prototype.toolbarButtonClicked=function(E,I){if(E==="marker"&&I!==void 0)this.createNewMarker(I);else if(E==="action")switch(I){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()}},V.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var I=!1;if(this.eventListeners.markerbeforedelete.forEach(function(q){var z=new dt(E,E._currentMarker,!0);q(z),z.defaultPrevented&&(I=!0)}),!I){var H=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(q){return q(new dt(E,H))})}}},V.prototype.clear=function(){var E=this,I=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Ke=new dt(E,void 0,!0);ve(Ke),Ke.defaultPrevented&&(I=!0)}),!I)){this.setCurrentMarker();for(var H=function(ve){var Ke=q.markers[ve];q.setCurrentMarker(q.markers[ve]),q._currentMarker.dispose(),q.markerImage.removeChild(q._currentMarker.container),q.markers.splice(q.markers.indexOf(q._currentMarker),1),q.eventListeners.markerdelete.forEach(function(it){return it(new dt(E,Ke))})},q=this,z=this.markers.length-1;z>=0;z--)H(z);this.addUndoStep()}},Object.defineProperty(V.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),V.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},V.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)},V.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},V.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var I=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===I.width&&H.height===I.height){var q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(I),q1&&this.panTo({x:E.clientX,y:E.clientY}))},V.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},V.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},V.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},V.prototype.clientToLocalCoordinates=function(E,I){var H=this.markerImage.getBoundingClientRect();return{x:(E-H.left)/this.zoomLevel,y:(I-H.top)/this.zoomLevel}},V.prototype.onWindowResize=function(){this.positionUI()},V.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},V.prototype.addLicenseKey=function(E){Oe.addKey(E)},V.prototype.addEventListener=function(E,I){this.eventListeners.addEventListener(E,I)},V.prototype.removeEventListener=function(E,I){this.eventListeners.removeEventListener(E,I)},V.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(V.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),V.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(I){return I(new wt(E))}))},V.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(I){return I(new wt(E))}))},V.instanceCounter=0,V}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -253,62 +253,62 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new xt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},V.instanceCounter=0,V}(),Ct=Q("8hTe"),pr=Q.n(Ct),mr=/]*>/g;function gr(V){var E=document.createElement("div");return E.innerHTML=V,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var vr=be.a=function(V){var E=V.value,I=E===void 0?"":E,H=V.edit,q=H===void 0?!1:H,z=V.className,ve=V.showTextOnly,Ke=V.showLines,it=V.replaces,pt=V.zoomImg,Ye=V.hasMask,_t=V.style,jt=_t===void 0?{}:_t,$t=V.stylesPrev,ji=$t===void 0?{}:$t,Ei=String(I),xi=Object(D.useRef)(),Qi=Object(D.useRef)(),Ir=Object(D.useState)(""),ci=Object(G.a)(Ir,2),zi=ci[0],lr=ci[1],ur=Object(D.useState)("office"),Hi=Object(G.a)(ur,2),Dr=Hi[0],yr=Hi[1],Kr=function(){var Ht=new Qe(Qi.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return xi.current.style.display="none",fi.next=3,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai}});case 3:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show()},zr=function(){var Ht=new Lt(Qi.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(xi.current.style.display="none",!Qi.current){fi.next=6;break}return fi.next=4,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai.dataUrl}});case 4:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Zi=Object(D.useMemo)(function(){xi.current&&(xi.current.style.zIndex=-1);try{var ri=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(ri,"("+ee.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+ee.a.API_SERVER+"/api/attachments/").replace(yi,'"'+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(rr){}var kt=j(Ei),ai=T();if(Ei.match(/\[TOC\]/)&&(kt=kt.replace("

      [TOC]

      ",L()),A()),kt=kt.replace(/(__special_katext_id_\d+__)/g,function(rr,fi){var Ai=ai[fi],Vr=Ai.type,Er=Ai.expression;return Object(le.renderToString)(gr(Er)||"",{displayMode:Vr==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581"),y(),ve){var Kt=document.createElement("div");return Kt.innerHTML=kt,Kt.innerText}return setTimeout(function(){return dn()},500),kt},[Ei]),$i=Object(D.useRef)();_.WebkitLineClamp=Ke,Ke&&(jt=Object(F.a)(Object(F.a)({},jt),_));function br(ri){var Ht=ri.target;if(Ht.tagName.toUpperCase()==="IMG"){if(pt){var yi=Ht.getAttribute("src");lr(yi),yr("image")}}else if(Ht.tagName.toUpperCase()==="A"){var kt=Ht.getAttribute("href");if(kt.indexOf("office")>-1)ri.preventDefault(),lr(kt),yr("office");else if(kt.indexOf("application/pdf")>-1)ri.preventDefault(),lr(kt),yr("pdf");else if(kt.indexOf("text/html")>-1)ri.preventDefault(),lr(kt),yr("html");else if(kt.startsWith("#")){ri.preventDefault();var ai=document.getElementById(kt.replace("#",""));ai&&ai.scrollIntoView(!0)}}}var dn=function(){var Ht,yi=(Ht=$i.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yi==null||yi.forEach(function(kt){if(kt.oncontextmenu=function(){return!1},kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ai=new Y.a;ai.loadSource(kt.src),ai.attachMedia(kt)}}})};Object(D.useEffect)(function(){if($i.current&&Zi&&(Zi.match(mr)&&window.PR.prettyPrint()),$i.current)return $i.current.addEventListener("click",br),function(){$i.current.removeEventListener("click",br),y(),A()}},[Zi,$i.current,br]);var _r=function(Ht){if(!q)return;Ht.target.nodeName==="IMG"?(xi.current.style.zIndex=1,xi.current.style.display="flex",xi.current.style.width=Ht.target.clientWidth+"px",xi.current.style.height=Ht.target.clientHeight+"px",xi.current.style.top=Ht.target.offsetTop+"px",xi.current.style.left=Ht.target.offsetLeft+"px",Qi.current.src=Ht.target.getAttribute("src")):xi.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:$i,style:Object(F.a)({},jt),className:"".concat(z||""," markdown-body ").concat(pr.a.mdBody),onMouseOver:_r,dangerouslySetInnerHTML:{__html:Zi}}),g.a.createElement("div",{ref:xi,className:pr.a.button},g.a.createElement($.a,null,g.a.createElement(X.a,{onClick:function(){return Kr()}},"\u88C1\u526A"),g.a.createElement(X.a,{onClick:function(){return zr()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Qi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(ue.a,{close:!0,data:zi,type:zi!=null&&zi.length?Dr:"",style:Object(F.a)({},ji),onClose:function(){return lr("")}}))}},"9VGf":function(st,be,Q){"use strict";Q.d(be,"a",function(){return M});var ie=Q("q1tI"),$=Q.n(ie);function M(X,F){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function G(){U.current()}if(F!==null){var W=setInterval(G,F);return function(){return clearInterval(W)}}},[F])}},BU3w:function(st,be,Q){"use strict";Q.d(be,"a",function(){return U});var ie=Q("MNnm"),$="rc-util-key";function M(G){if(G.attachTo)return G.attachTo;var W=document.querySelector("head");return W||document.body}function X(G){var W,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var D=document.createElement("style");if((W=i.csp)===null||W===void 0?void 0:W.nonce){var g;D.nonce=(g=i.csp)===null||g===void 0?void 0:g.nonce}D.innerHTML=G;var m=M(i),p=m.firstChild;return i.prepend&&m.prepend?m.prepend(D):i.prepend&&p?m.insertBefore(D,p):m.appendChild(D),D}var F=new Map;function U(G,W){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=M(i);if(!F.has(D)){var g=X("",i),m=g.parentNode;F.set(D,m),m.removeChild(g)}var p=Array.from(F.get(D).children).find(function(h){return h.tagName==="STYLE"&&h[$]===W});if(p){var l,u;if(((l=i.csp)===null||l===void 0?void 0:l.nonce)&&p.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=i.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==G&&(p.innerHTML=G),p}var o=X(G,i);return o[$]=W,o}},Bd2K:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(i,D,g){if(g!=ie.Init&&g&&i.removeKeyMap("autoCloseTags"),!D)return;var m={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof D!="object"||D.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),i.addKeyMap(m)});var $=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],M=["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 X(i){if(i.getOption("disableInput"))return ie.Pass;for(var D=i.listSelections(),g=[],m=i.getOption("autoCloseTags"),p=0;pl.ch&&(s=s.slice(0,s.length-u.end+l.ch));var S=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=l.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&h.close||u.string.indexOf("/")==l.ch-u.start-1||A&&G(A,S)>-1||W(i,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(o)||[],s,l,!0))return ie.Pass;var L=typeof m=="object"&&m.emptyTags;if(L&&G(L,s)>-1){g[p]={text:"/>",newPos:ie.Pos(l.line,l.ch+2)};continue}var R=_&&G(_,S)>-1;g[p]={indent:R,text:">"+(R?` + `))},V.instanceCounter=0,V}(),Ct=Q("8hTe"),mn=Q.n(Ct),gn=/]*>/g;function vn(V){var E=document.createElement("div");return E.innerHTML=V,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var yn=be.a=function(V){var E=V.value,I=E===void 0?"":E,H=V.edit,q=H===void 0?!1:H,z=V.className,ve=V.showTextOnly,Ke=V.showLines,it=V.replaces,pt=V.zoomImg,Ye=V.hasMask,_t=V.style,jt=_t===void 0?{}:_t,$t=V.stylesPrev,ji=$t===void 0?{}:$t,Ei=String(I),xi=Object(D.useRef)(),Qi=Object(D.useRef)(),Dn=Object(D.useState)(""),ci=Object(G.a)(Dn,2),zi=ci[0],un=ci[1],hn=Object(D.useState)("office"),Hi=Object(G.a)(hn,2),kn=Hi[0],bn=Hi[1],zn=function(){var Ht=new Qe(Qi.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return xi.current.style.display="none",fi.next=3,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai}});case 3:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new Lt(Qi.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(xi.current.style.display="none",!Qi.current){fi.next=6;break}return fi.next=4,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai.dataUrl}});case 4:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Zi=Object(D.useMemo)(function(){xi.current&&(xi.current.style.zIndex=-1);try{var ni=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(ni,"("+ee.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+ee.a.API_SERVER+"/api/attachments/").replace(yi,'"'+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(rn){}var kt=j(Ei),ai=T();if(Ei.match(/\[TOC\]/)&&(kt=kt.replace("

      [TOC]

      ",L()),A()),kt=kt.replace(/(__special_katext_id_\d+__)/g,function(rn,fi){var Ai=ai[fi],Yn=Ai.type,xn=Ai.expression;return Object(le.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581"),y(),ve){var Kt=document.createElement("div");return Kt.innerHTML=kt,Kt.innerText}return setTimeout(function(){return dr()},500),kt},[Ei]),$i=Object(D.useRef)();_.WebkitLineClamp=Ke,Ke&&(jt=Object(F.a)(Object(F.a)({},jt),_));function _n(ni){var Ht=ni.target;if(Ht.tagName.toUpperCase()==="IMG"){if(pt){var yi=Ht.getAttribute("src");un(yi),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var kt=Ht.getAttribute("href");if(kt.indexOf("office")>-1)ni.preventDefault(),un(kt),bn("office");else if(kt.indexOf("application/pdf")>-1)ni.preventDefault(),un(kt),bn("pdf");else if(kt.indexOf("text/html")>-1)ni.preventDefault(),un(kt),bn("html");else if(kt.startsWith("#")){ni.preventDefault();var ai=document.getElementById(kt.replace("#",""));ai&&ai.scrollIntoView(!0)}}}var dr=function(){var Ht,yi=(Ht=$i.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yi==null||yi.forEach(function(kt){if(kt.oncontextmenu=function(){return!1},kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ai=new Y.a;ai.loadSource(kt.src),ai.attachMedia(kt)}}})};Object(D.useEffect)(function(){if($i.current&&Zi&&(Zi.match(gn)&&window.PR.prettyPrint()),$i.current)return $i.current.addEventListener("click",_n),function(){$i.current.removeEventListener("click",_n),y(),A()}},[Zi,$i.current,_n]);var En=function(Ht){if(!q)return;Ht.target.nodeName==="IMG"?(xi.current.style.zIndex=1,xi.current.style.display="flex",xi.current.style.width=Ht.target.clientWidth+"px",xi.current.style.height=Ht.target.clientHeight+"px",xi.current.style.top=Ht.target.offsetTop+"px",xi.current.style.left=Ht.target.offsetLeft+"px",Qi.current.src=Ht.target.getAttribute("src")):xi.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:$i,style:Object(F.a)({},jt),className:"".concat(z||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Zi}}),g.a.createElement("div",{ref:xi,className:mn.a.button},g.a.createElement($.a,null,g.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),g.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Qi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(ue.a,{close:!0,data:zi,type:zi!=null&&zi.length?kn:"",style:Object(F.a)({},ji),onClose:function(){return un("")}}))}},"9VGf":function(st,be,Q){"use strict";Q.d(be,"a",function(){return M});var ie=Q("q1tI"),$=Q.n(ie);function M(X,F){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function G(){U.current()}if(F!==null){var W=setInterval(G,F);return function(){return clearInterval(W)}}},[F])}},BU3w:function(st,be,Q){"use strict";Q.d(be,"a",function(){return U});var ie=Q("MNnm"),$="rc-util-key";function M(G){if(G.attachTo)return G.attachTo;var W=document.querySelector("head");return W||document.body}function X(G){var W,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var D=document.createElement("style");if((W=i.csp)===null||W===void 0?void 0:W.nonce){var g;D.nonce=(g=i.csp)===null||g===void 0?void 0:g.nonce}D.innerHTML=G;var m=M(i),p=m.firstChild;return i.prepend&&m.prepend?m.prepend(D):i.prepend&&p?m.insertBefore(D,p):m.appendChild(D),D}var F=new Map;function U(G,W){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=M(i);if(!F.has(D)){var g=X("",i),m=g.parentNode;F.set(D,m),m.removeChild(g)}var p=Array.from(F.get(D).children).find(function(h){return h.tagName==="STYLE"&&h[$]===W});if(p){var l,u;if(((l=i.csp)===null||l===void 0?void 0:l.nonce)&&p.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=i.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==G&&(p.innerHTML=G),p}var o=X(G,i);return o[$]=W,o}},Bd2K:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(i,D,g){if(g!=ie.Init&&g&&i.removeKeyMap("autoCloseTags"),!D)return;var m={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof D!="object"||D.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),i.addKeyMap(m)});var $=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],M=["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 X(i){if(i.getOption("disableInput"))return ie.Pass;for(var D=i.listSelections(),g=[],m=i.getOption("autoCloseTags"),p=0;pl.ch&&(s=s.slice(0,s.length-u.end+l.ch));var S=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=l.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&h.close||u.string.indexOf("/")==l.ch-u.start-1||A&&G(A,S)>-1||W(i,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(o)||[],s,l,!0))return ie.Pass;var L=typeof m=="object"&&m.emptyTags;if(L&&G(L,s)>-1){g[p]={text:"/>",newPos:ie.Pos(l.line,l.ch+2)};continue}var R=_&&G(_,S)>-1;g[p]={indent:R,text:">"+(R?` -`:"")+"",newPos:R?ie.Pos(l.line+1,0):ie.Pos(l.line,l.ch+1)}}for(var C=typeof m=="object"&&m.dontIndentOnAutoClose,p=D.length-1;p>=0;p--){var w=g[p];i.replaceRange(w.text,D[p].head,D[p].anchor,"+insert");var x=i.listSelections().slice(0);x[p]={head:w.newPos,anchor:w.newPos},i.setSelections(x),!C&&w.indent&&(i.indentLine(w.newPos.line,null,!0),i.indentLine(w.newPos.line+1,null,!0))}}function F(i,D){for(var g=i.listSelections(),m=[],p=D?"/":""&&(A+=">"),m[f]=A}if(i.replaceSelections(m),g=i.listSelections(),!u)for(var f=0;f=0&&D[o]==g;o--)++f;m=u.to;for(var o=1;o0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],g=0;gU,ie.serviceIds.set(U,G),G}function F(U){return function(G,W,i){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");M(U,G,i,!0)}}},DlQD:function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";function ie(Ee,ge){for(var _e=0;_eEe.length)&&(ge=Ee.length);for(var _e=0,re=new Array(ge);_e=Ee.length?{done:!0}:{done:!1,value:Ee[re++]}}}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 _e=Ee[Symbol.iterator](),_e.next.bind(_e)}function U(Ee,ge){return ge={exports:{}},Ee(ge,ge.exports),ge.exports}var G=U(function(Ee){function ge(){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 _e(re){Ee.exports.defaults=re}Ee.exports={defaults:ge(),getDefaults:ge,changeDefaults:_e}}),W=G.defaults,i=G.getDefaults,D=G.changeDefaults,g=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(ge){return u[ge]};function o(Ee,ge){if(ge){if(g.test(Ee))return Ee.replace(m,f)}else if(p.test(Ee))return Ee.replace(l,f);return Ee}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ee){return Ee.replace(h,function(ge,_e){return _e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""})}var a=/(^|[^\[])\^/g;function A(Ee,ge){Ee=Ee.source||Ee,ge=ge||"";var _e={replace:function(ne,he){return he=he.source||he,he=he.replace(a,"$1"),Ee=Ee.replace(ne,he),_e},getRegex:function(){return new RegExp(Ee,ge)}};return _e}var _=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Ee,ge,_e){if(Ee){var re;try{re=decodeURIComponent(s(_e)).replace(_,"").toLowerCase()}catch(ne){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}ge&&!S.test(_e)&&(_e=c(ge,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(ne){return null}return _e}var R={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ee,ge){R[" "+Ee]||(C.test(Ee)?R[" "+Ee]=Ee+"/":R[" "+Ee]=N(Ee,"/",!0)),Ee=R[" "+Ee];var _e=Ee.indexOf(":")===-1;return ge.substring(0,2)==="//"?_e?ge:Ee.replace(w,"$1")+ge:ge.charAt(0)==="/"?_e?ge:Ee.replace(x,"$1")+ge:Ee+ge}var T={exec:function(){}};function y(Ee){for(var ge=1,_e,re;ge=0&&xe[ze]==="\\";)Pe=!Pe;return Pe?"|":" |"}),re=_e.split(/ \|/),ne=0;if(re.length>ge)re.splice(ge);else for(;re.length=re.length?ne.slice(re.length):ne}).join(` -`)}var Se=function(){function Ee(_e){this.options=_e||P}var ge=Ee.prototype;return ge.space=function(re){var ne=this.rules.block.newline.exec(re);if(ne)return ne[0].length>1?{type:"space",raw:ne[0]}:{raw:` -`}},ge.code=function(re,ne){var he=this.rules.block.code.exec(re);if(he){var fe=ne[ne.length-1];if(fe&&fe.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var xe=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:b(xe,` -`)}}},ge.fences=function(re){var ne=this.rules.block.fences.exec(re);if(ne){var he=ne[0],fe=ke(he,ne[3]||"");return{type:"code",raw:he,lang:ne[2]?ne[2].trim():ne[2],text:fe}}},ge.heading=function(re){var ne=this.rules.block.heading.exec(re);if(ne)return{type:"heading",raw:ne[0],depth:ne[1].length,text:ne[2]}},ge.nptable=function(re){var ne=this.rules.block.nptable.exec(re);if(ne){var he={type:"table",header:Y(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(` -`):[],raw:ne[0]};if(he.header.length===he.align.length){var fe=he.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ne[0],text:he}}},ge.list=function(re){var ne=this.rules.block.list.exec(re);if(ne){for(var he=ne[0],fe=ne[2],xe=fe.length>1,Pe=fe[fe.length-1]===")",ze={type:"list",raw:he,ordered:xe,start:xe?+fe.slice(0,-1):"",loose:!1,items:[]},ot=ne[0].match(this.rules.block.item),mt=!1,ft,wt,St,dt,Ut,Lt,qt,Qt=ot.length,It=0;It",newPos:R?ie.Pos(l.line+1,0):ie.Pos(l.line,l.ch+1)}}for(var C=typeof m=="object"&&m.dontIndentOnAutoClose,p=D.length-1;p>=0;p--){var w=g[p];i.replaceRange(w.text,D[p].head,D[p].anchor,"+insert");var x=i.listSelections().slice(0);x[p]={head:w.newPos,anchor:w.newPos},i.setSelections(x),!C&&w.indent&&(i.indentLine(w.newPos.line,null,!0),i.indentLine(w.newPos.line+1,null,!0))}}function F(i,D){for(var g=i.listSelections(),m=[],p=D?"/":""&&(A+=">"),m[f]=A}if(i.replaceSelections(m),g=i.listSelections(),!u)for(var f=0;f=0&&D[o]==g;o--)++f;m=u.to;for(var o=1;o0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],g=0;gU,ie.serviceIds.set(U,G),G}function F(U){return function(G,W,i){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");M(U,G,i,!0)}}},DlQD:function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";function ie(Ee,ge){for(var _e=0;_eEe.length)&&(ge=Ee.length);for(var _e=0,ne=new Array(ge);_e=Ee.length?{done:!0}:{done:!1,value:Ee[ne++]}}}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 _e=Ee[Symbol.iterator](),_e.next.bind(_e)}function U(Ee,ge){return ge={exports:{}},Ee(ge,ge.exports),ge.exports}var G=U(function(Ee){function ge(){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 _e(ne){Ee.exports.defaults=ne}Ee.exports={defaults:ge(),getDefaults:ge,changeDefaults:_e}}),W=G.defaults,i=G.getDefaults,D=G.changeDefaults,g=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(ge){return u[ge]};function o(Ee,ge){if(ge){if(g.test(Ee))return Ee.replace(m,f)}else if(p.test(Ee))return Ee.replace(l,f);return Ee}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ee){return Ee.replace(h,function(ge,_e){return _e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""})}var a=/(^|[^\[])\^/g;function A(Ee,ge){Ee=Ee.source||Ee,ge=ge||"";var _e={replace:function(re,he){return he=he.source||he,he=he.replace(a,"$1"),Ee=Ee.replace(re,he),_e},getRegex:function(){return new RegExp(Ee,ge)}};return _e}var _=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Ee,ge,_e){if(Ee){var ne;try{ne=decodeURIComponent(s(_e)).replace(_,"").toLowerCase()}catch(re){return null}if(ne.indexOf("javascript:")===0||ne.indexOf("vbscript:")===0||ne.indexOf("data:")===0)return null}ge&&!S.test(_e)&&(_e=c(ge,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(re){return null}return _e}var R={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ee,ge){R[" "+Ee]||(C.test(Ee)?R[" "+Ee]=Ee+"/":R[" "+Ee]=N(Ee,"/",!0)),Ee=R[" "+Ee];var _e=Ee.indexOf(":")===-1;return ge.substring(0,2)==="//"?_e?ge:Ee.replace(w,"$1")+ge:ge.charAt(0)==="/"?_e?ge:Ee.replace(x,"$1")+ge:Ee+ge}var T={exec:function(){}};function y(Ee){for(var ge=1,_e,ne;ge=0&&xe[ze]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ne=_e.split(/ \|/),re=0;if(ne.length>ge)ne.splice(ge);else for(;ne.length=ne.length?re.slice(ne.length):re}).join(` +`)}var Se=function(){function Ee(_e){this.options=_e||P}var ge=Ee.prototype;return ge.space=function(ne){var re=this.rules.block.newline.exec(ne);if(re)return re[0].length>1?{type:"space",raw:re[0]}:{raw:` +`}},ge.code=function(ne,re){var he=this.rules.block.code.exec(ne);if(he){var fe=re[re.length-1];if(fe&&fe.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var xe=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:b(xe,` +`)}}},ge.fences=function(ne){var re=this.rules.block.fences.exec(ne);if(re){var he=re[0],fe=ke(he,re[3]||"");return{type:"code",raw:he,lang:re[2]?re[2].trim():re[2],text:fe}}},ge.heading=function(ne){var re=this.rules.block.heading.exec(ne);if(re)return{type:"heading",raw:re[0],depth:re[1].length,text:re[2]}},ge.nptable=function(ne){var re=this.rules.block.nptable.exec(ne);if(re){var he={type:"table",header:Y(re[1].replace(/^ *| *\| *$/g,"")),align:re[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:re[3]?re[3].replace(/\n$/,"").split(` +`):[],raw:re[0]};if(he.header.length===he.align.length){var fe=he.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:re[0],text:he}}},ge.list=function(ne){var re=this.rules.block.list.exec(ne);if(re){for(var he=re[0],fe=re[2],xe=fe.length>1,Pe=fe[fe.length-1]===")",ze={type:"list",raw:he,ordered:xe,start:xe?+fe.slice(0,-1):"",loose:!1,items:[]},ot=re[0].match(this.rules.block.item),mt=!1,ft,wt,St,dt,Ut,Lt,qt,Qt=ot.length,It=0;It1||this.options.smartLists&&St!==fe)&&(dt=ot.slice(It+1).join(` `),ze.raw=ze.raw.substring(0,ze.raw.length-dt.length),It=Qt-1)),Ut=mt||/\n\n(?!\s*$)/.test(ft),It!==Qt-1&&(mt=ft.charAt(ft.length-1)===` -`,Ut||(Ut=mt)),Ut&&(ze.loose=!0),Lt=/^\[[ xX]\] /.test(ft),qt=void 0,Lt&&(qt=ft[1]!==" ",ft=ft.replace(/^\[[ xX]\] +/,"")),ze.items.push({type:"list_item",raw:he,task:Lt,checked:qt,loose:Ut,text:ft});return ze}},ge.html=function(re){var ne=this.rules.block.html.exec(re);if(ne)return{type:this.options.sanitize?"paragraph":"html",raw:ne[0],pre:!this.options.sanitizer&&(ne[1]==="pre"||ne[1]==="script"||ne[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ne[0]):ee(ne[0]):ne[0]}},ge.def=function(re){var ne=this.rules.block.def.exec(re);if(ne){ne[3]&&(ne[3]=ne[3].substring(1,ne[3].length-1));var he=ne[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:ne[0],href:ne[2],title:ne[3]}}},ge.table=function(re){var ne=this.rules.block.table.exec(re);if(ne){var he={type:"table",header:Y(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(` -`):[]};if(he.header.length===he.align.length){he.raw=ne[0];var fe=he.align.length,xe;for(xe=0;xe/i.test(fe[0])&&(ne=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:fe[0],inLink:ne,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},ge.link=function(re){var ne=this.rules.inline.link.exec(re);if(ne){var he=le(ne[2],"()");if(he>-1){var fe=ne[0].indexOf("!")===0?5:4,xe=fe+ne[1].length+he;ne[2]=ne[2].substring(0,he),ne[0]=ne[0].substring(0,xe).trim(),ne[3]=""}var Pe=ne[2],ze="";if(this.options.pedantic){var ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ot?(Pe=ot[1],ze=ot[3]):ze=""}else ze=ne[3]?ne[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=ue(ne,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:ze&&ze.replace(this.rules.inline._escapes,"$1")},ne[0]);return mt}},ge.reflink=function(re,ne){var he;if((he=this.rules.inline.reflink.exec(re))||(he=this.rules.inline.nolink.exec(re))){var fe=(he[2]||he[1]).replace(/\s+/g," ");if(fe=ne[fe.toLowerCase()],!fe||!fe.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=ue(he,fe,he[0]);return Pe}},ge.strong=function(re,ne,he){he===void 0&&(he="");var fe=this.rules.inline.strong.start.exec(re);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ne=ne.slice(-1*re.length);var xe=fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(ne))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ne.slice(0,fe.index+3)),Pe)return{type:"strong",raw:re.slice(0,Pe[0].length),text:re.slice(2,Pe[0].length-2)}}},ge.em=function(re,ne,he){he===void 0&&(he="");var fe=this.rules.inline.em.start.exec(re);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ne=ne.slice(-1*re.length);var xe=fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(ne))!=null;)if(Pe=this.rules.inline.em.middle.exec(ne.slice(0,fe.index+2)),Pe)return{type:"em",raw:re.slice(0,Pe[0].length),text:re.slice(1,Pe[0].length-1)}}},ge.codespan=function(re){var ne=this.rules.inline.code.exec(re);if(ne){var he=ne[2].replace(/\n/g," "),fe=/[^ ]/.test(he),xe=he.startsWith(" ")&&he.endsWith(" ");return fe&&xe&&(he=he.substring(1,he.length-1)),he=ee(he,!0),{type:"codespan",raw:ne[0],text:he}}},ge.br=function(re){var ne=this.rules.inline.br.exec(re);if(ne)return{type:"br",raw:ne[0]}},ge.del=function(re){var ne=this.rules.inline.del.exec(re);if(ne)return{type:"del",raw:ne[0],text:ne[1]}},ge.autolink=function(re,ne){var he=this.rules.inline.autolink.exec(re);if(he){var fe,xe;return he[2]==="@"?(fe=ee(this.options.mangle?ne(he[1]):he[1]),xe="mailto:"+fe):(fe=ee(he[1]),xe=fe),{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.url=function(re,ne){var he;if(he=this.rules.inline.url.exec(re)){var fe,xe;if(he[2]==="@")fe=ee(this.options.mangle?ne(he[0]):he[0]),xe="mailto:"+fe;else{var Pe;do Pe=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Pe!==he[0]);fe=ee(he[0]),he[1]==="www."?xe="http://"+fe:xe=fe}return{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.inlineText=function(re,ne,he){var fe=this.rules.inline.text.exec(re);if(fe){var xe;return ne?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]:xe=ee(this.options.smartypants?he(fe[0]):fe[0]),{type:"text",raw:fe[0],text:xe}}},Ee}(),Ce=j.noopTest,ce=j.edit,pe=j.merge,se={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\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]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ce(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ce(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ce(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=//,se.html=ce(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ce(se._paragraph).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.blockquote=ce(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=pe({},se),se.gfm=pe({},se.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*|$)"}),se.gfm.nptable=ce(se.gfm.nptable).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.gfm.table=ce(se.gfm.table).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.pedantic=pe({},se.normal,{html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Ce,paragraph:ce(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ae.punctuation=ce(ae.punctuation).replace(/punctuation/g,ae._punctuation).getRegex(),ae._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ae._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ae.em.start=ce(ae.em.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.middle=ce(ae.em.middle).replace(/punctuation/g,ae._punctuation).replace(/overlapSkip/g,ae._overlapSkip).getRegex(),ae.em.endAst=ce(ae.em.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.endUnd=ce(ae.em.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.start=ce(ae.strong.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.middle=ce(ae.strong.middle).replace(/punctuation/g,ae._punctuation).replace(/blockSkip/g,ae._blockSkip).getRegex(),ae.strong.endAst=ce(ae.strong.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.endUnd=ce(ae.strong.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.blockSkip=ce(ae._blockSkip,"g").getRegex(),ae.overlapSkip=ce(ae._overlapSkip,"g").getRegex(),ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ae._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])?)+(?![-_])/,ae.autolink=ce(ae.autolink).replace("scheme",ae._scheme).replace("email",ae._email).getRegex(),ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ae.tag=ce(ae.tag).replace("comment",se._comment).replace("attribute",ae._attribute).getRegex(),ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ae._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ae.link=ce(ae.link).replace("label",ae._label).replace("href",ae._href).replace("title",ae._title).getRegex(),ae.reflink=ce(ae.reflink).replace("label",ae._label).getRegex(),ae.reflinkSearch=ce(ae.reflinkSearch,"g").replace("reflink",ae.reflink).replace("nolink",ae.nolink).getRegex(),ae.normal=pe({},ae),ae.pedantic=pe({},ae.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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",ae._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae._label).getRegex()}),ae.gfm=pe({},ae.normal,{escape:ce(ae.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(re="x"+re.toString(16)),ge+="&#"+re+";";return ge}var Be=function(){function Ee(_e){this.tokens=[],this.tokens.links=Object.create(null),this.options=_e||Te,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:Ne.normal,inline:De.normal};this.options.pedantic?(re.block=Ne.pedantic,re.inline=De.pedantic):this.options.gfm&&(re.block=Ne.gfm,this.options.breaks?re.inline=De.breaks:re.inline=De.gfm),this.tokenizer.rules=re}Ee.lex=function(re,ne){var he=new Ee(ne);return he.lex(re)};var ge=Ee.prototype;return ge.lex=function(re){return re=re.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(re,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(re,ne,he){ne===void 0&&(ne=[]),he===void 0&&(he=!0),re=re.replace(/^ +$/gm,"");for(var fe,xe,Pe,ze;re;){if(fe=this.tokenizer.space(re)){re=re.substring(fe.raw.length),fe.type&&ne.push(fe);continue}if(fe=this.tokenizer.code(re,ne)){re=re.substring(fe.raw.length),fe.type?ne.push(fe):(ze=ne[ne.length-1],ze.raw+=` +`,Ut||(Ut=mt)),Ut&&(ze.loose=!0),Lt=/^\[[ xX]\] /.test(ft),qt=void 0,Lt&&(qt=ft[1]!==" ",ft=ft.replace(/^\[[ xX]\] +/,"")),ze.items.push({type:"list_item",raw:he,task:Lt,checked:qt,loose:Ut,text:ft});return ze}},ge.html=function(ne){var re=this.rules.block.html.exec(ne);if(re)return{type:this.options.sanitize?"paragraph":"html",raw:re[0],pre:!this.options.sanitizer&&(re[1]==="pre"||re[1]==="script"||re[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(re[0]):ee(re[0]):re[0]}},ge.def=function(ne){var re=this.rules.block.def.exec(ne);if(re){re[3]&&(re[3]=re[3].substring(1,re[3].length-1));var he=re[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:re[0],href:re[2],title:re[3]}}},ge.table=function(ne){var re=this.rules.block.table.exec(ne);if(re){var he={type:"table",header:Y(re[1].replace(/^ *| *\| *$/g,"")),align:re[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:re[3]?re[3].replace(/\n$/,"").split(` +`):[]};if(he.header.length===he.align.length){he.raw=re[0];var fe=he.align.length,xe;for(xe=0;xe/i.test(fe[0])&&(re=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:fe[0],inLink:re,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},ge.link=function(ne){var re=this.rules.inline.link.exec(ne);if(re){var he=le(re[2],"()");if(he>-1){var fe=re[0].indexOf("!")===0?5:4,xe=fe+re[1].length+he;re[2]=re[2].substring(0,he),re[0]=re[0].substring(0,xe).trim(),re[3]=""}var Pe=re[2],ze="";if(this.options.pedantic){var ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ot?(Pe=ot[1],ze=ot[3]):ze=""}else ze=re[3]?re[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=ue(re,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:ze&&ze.replace(this.rules.inline._escapes,"$1")},re[0]);return mt}},ge.reflink=function(ne,re){var he;if((he=this.rules.inline.reflink.exec(ne))||(he=this.rules.inline.nolink.exec(ne))){var fe=(he[2]||he[1]).replace(/\s+/g," ");if(fe=re[fe.toLowerCase()],!fe||!fe.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=ue(he,fe,he[0]);return Pe}},ge.strong=function(ne,re,he){he===void 0&&(he="");var fe=this.rules.inline.strong.start.exec(ne);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){re=re.slice(-1*ne.length);var xe=fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(re))!=null;)if(Pe=this.rules.inline.strong.middle.exec(re.slice(0,fe.index+3)),Pe)return{type:"strong",raw:ne.slice(0,Pe[0].length),text:ne.slice(2,Pe[0].length-2)}}},ge.em=function(ne,re,he){he===void 0&&(he="");var fe=this.rules.inline.em.start.exec(ne);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){re=re.slice(-1*ne.length);var xe=fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(re))!=null;)if(Pe=this.rules.inline.em.middle.exec(re.slice(0,fe.index+2)),Pe)return{type:"em",raw:ne.slice(0,Pe[0].length),text:ne.slice(1,Pe[0].length-1)}}},ge.codespan=function(ne){var re=this.rules.inline.code.exec(ne);if(re){var he=re[2].replace(/\n/g," "),fe=/[^ ]/.test(he),xe=he.startsWith(" ")&&he.endsWith(" ");return fe&&xe&&(he=he.substring(1,he.length-1)),he=ee(he,!0),{type:"codespan",raw:re[0],text:he}}},ge.br=function(ne){var re=this.rules.inline.br.exec(ne);if(re)return{type:"br",raw:re[0]}},ge.del=function(ne){var re=this.rules.inline.del.exec(ne);if(re)return{type:"del",raw:re[0],text:re[1]}},ge.autolink=function(ne,re){var he=this.rules.inline.autolink.exec(ne);if(he){var fe,xe;return he[2]==="@"?(fe=ee(this.options.mangle?re(he[1]):he[1]),xe="mailto:"+fe):(fe=ee(he[1]),xe=fe),{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.url=function(ne,re){var he;if(he=this.rules.inline.url.exec(ne)){var fe,xe;if(he[2]==="@")fe=ee(this.options.mangle?re(he[0]):he[0]),xe="mailto:"+fe;else{var Pe;do Pe=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Pe!==he[0]);fe=ee(he[0]),he[1]==="www."?xe="http://"+fe:xe=fe}return{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.inlineText=function(ne,re,he){var fe=this.rules.inline.text.exec(ne);if(fe){var xe;return re?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]:xe=ee(this.options.smartypants?he(fe[0]):fe[0]),{type:"text",raw:fe[0],text:xe}}},Ee}(),Ce=j.noopTest,ce=j.edit,pe=j.merge,se={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\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]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ce(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ce(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ce(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=//,se.html=ce(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ce(se._paragraph).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.blockquote=ce(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=pe({},se),se.gfm=pe({},se.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*|$)"}),se.gfm.nptable=ce(se.gfm.nptable).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.gfm.table=ce(se.gfm.table).replace("hr",se.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",")|<(?:script|pre|style|!--)").replace("tag",se._tag).getRegex(),se.pedantic=pe({},se.normal,{html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Ce,paragraph:ce(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ae.punctuation=ce(ae.punctuation).replace(/punctuation/g,ae._punctuation).getRegex(),ae._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ae._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ae.em.start=ce(ae.em.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.middle=ce(ae.em.middle).replace(/punctuation/g,ae._punctuation).replace(/overlapSkip/g,ae._overlapSkip).getRegex(),ae.em.endAst=ce(ae.em.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.endUnd=ce(ae.em.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.start=ce(ae.strong.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.middle=ce(ae.strong.middle).replace(/punctuation/g,ae._punctuation).replace(/blockSkip/g,ae._blockSkip).getRegex(),ae.strong.endAst=ce(ae.strong.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.endUnd=ce(ae.strong.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.blockSkip=ce(ae._blockSkip,"g").getRegex(),ae.overlapSkip=ce(ae._overlapSkip,"g").getRegex(),ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ae._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])?)+(?![-_])/,ae.autolink=ce(ae.autolink).replace("scheme",ae._scheme).replace("email",ae._email).getRegex(),ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ae.tag=ce(ae.tag).replace("comment",se._comment).replace("attribute",ae._attribute).getRegex(),ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ae._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ae.link=ce(ae.link).replace("label",ae._label).replace("href",ae._href).replace("title",ae._title).getRegex(),ae.reflink=ce(ae.reflink).replace("label",ae._label).getRegex(),ae.reflinkSearch=ce(ae.reflinkSearch,"g").replace("reflink",ae.reflink).replace("nolink",ae.nolink).getRegex(),ae.normal=pe({},ae),ae.pedantic=pe({},ae.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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",ae._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae._label).getRegex()}),ae.gfm=pe({},ae.normal,{escape:ce(ae.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ne="x"+ne.toString(16)),ge+="&#"+ne+";";return ge}var Be=function(){function Ee(_e){this.tokens=[],this.tokens.links=Object.create(null),this.options=_e||Te,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ne={block:Ne.normal,inline:De.normal};this.options.pedantic?(ne.block=Ne.pedantic,ne.inline=De.pedantic):this.options.gfm&&(ne.block=Ne.gfm,this.options.breaks?ne.inline=De.breaks:ne.inline=De.gfm),this.tokenizer.rules=ne}Ee.lex=function(ne,re){var he=new Ee(re);return he.lex(ne)};var ge=Ee.prototype;return ge.lex=function(ne){return ne=ne.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(ne,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(ne,re,he){re===void 0&&(re=[]),he===void 0&&(he=!0),ne=ne.replace(/^ +$/gm,"");for(var fe,xe,Pe,ze;ne;){if(fe=this.tokenizer.space(ne)){ne=ne.substring(fe.raw.length),fe.type&&re.push(fe);continue}if(fe=this.tokenizer.code(ne,re)){ne=ne.substring(fe.raw.length),fe.type?re.push(fe):(ze=re[re.length-1],ze.raw+=` `+fe.raw,ze.text+=` -`+fe.text);continue}if(fe=this.tokenizer.fences(re)){re=re.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.heading(re)){re=re.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.nptable(re)){re=re.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.hr(re)){re=re.substring(fe.raw.length),ne.push(fe);continue}if(fe=this.tokenizer.blockquote(re)){re=re.substring(fe.raw.length),fe.tokens=this.blockTokens(fe.text,[],he),ne.push(fe);continue}if(fe=this.tokenizer.list(re)){for(re=re.substring(fe.raw.length),Pe=fe.items.length,xe=0;xe0)for(;(ot=this.tokenizer.rules.inline.reflinkSearch.exec(ze))!=null;)mt.includes(ot[0].slice(ot[0].lastIndexOf("[")+1,-1))&&(ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ot=this.tokenizer.rules.inline.blockSkip.exec(ze))!=null;)ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;re;){if(Pe=this.tokenizer.escape(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.tag(re,he,fe)){re=re.substring(Pe.raw.length),he=Pe.inLink,fe=Pe.inRawBlock,ne.push(Pe);continue}if(Pe=this.tokenizer.link(re)){re=re.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),ne.push(Pe);continue}if(Pe=this.tokenizer.reflink(re,this.tokens.links)){re=re.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),ne.push(Pe);continue}if(Pe=this.tokenizer.strong(re,ze,xe)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.em(re,ze,xe)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.codespan(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.br(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.del(re)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.autolink(re,Le)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(!he&&(Pe=this.tokenizer.url(re,Le))){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.inlineText(re,fe,We)){re=re.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ne.push(Pe);continue}if(re){var ft="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(ft);break}else throw new Error(ft)}}return ne},$(Ee,null,[{key:"rules",get:function(){return{block:Ne,inline:De}}}]),Ee}(),Ge=G.defaults,oe=j.cleanUrl,ye=j.escape,we=function(){function Ee(_e){this.options=_e||Ge}var ge=Ee.prototype;return ge.code=function(re,ne,he){var fe=(ne||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(re,fe);xe!=null&&xe!==re&&(he=!0,re=xe)}return fe?'
      '+(he?re:ye(re,!0))+`
      -`:"
      "+(he?re:ye(re,!0))+`
      -`},ge.blockquote=function(re){return`
      -`+re+`
      -`},ge.html=function(re){return re},ge.heading=function(re,ne,he,fe){return this.options.headerIds?"'+re+" -`:""+re+" +`+fe.text);continue}if(ne){var ot="Infinite loop on byte: "+ne.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return re},ge.inline=function(ne){var re,he,fe,xe,Pe,ze,ot=ne.length;for(re=0;re0)for(;(ot=this.tokenizer.rules.inline.reflinkSearch.exec(ze))!=null;)mt.includes(ot[0].slice(ot[0].lastIndexOf("[")+1,-1))&&(ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ot=this.tokenizer.rules.inline.blockSkip.exec(ze))!=null;)ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ne;){if(Pe=this.tokenizer.escape(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.tag(ne,he,fe)){ne=ne.substring(Pe.raw.length),he=Pe.inLink,fe=Pe.inRawBlock,re.push(Pe);continue}if(Pe=this.tokenizer.link(ne)){ne=ne.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),re.push(Pe);continue}if(Pe=this.tokenizer.reflink(ne,this.tokens.links)){ne=ne.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),re.push(Pe);continue}if(Pe=this.tokenizer.strong(ne,ze,xe)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.em(ne,ze,xe)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.codespan(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.br(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.del(ne)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.autolink(ne,Le)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(!he&&(Pe=this.tokenizer.url(ne,Le))){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ne,fe,We)){ne=ne.substring(Pe.raw.length),xe=Pe.raw.slice(-1),re.push(Pe);continue}if(ne){var ft="Infinite loop on byte: "+ne.charCodeAt(0);if(this.options.silent){console.error(ft);break}else throw new Error(ft)}}return re},$(Ee,null,[{key:"rules",get:function(){return{block:Ne,inline:De}}}]),Ee}(),Ge=G.defaults,oe=j.cleanUrl,ye=j.escape,we=function(){function Ee(_e){this.options=_e||Ge}var ge=Ee.prototype;return ge.code=function(ne,re,he){var fe=(re||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ne,fe);xe!=null&&xe!==ne&&(he=!0,ne=xe)}return fe?'
      '+(he?ne:ye(ne,!0))+`
      +`:"
      "+(he?ne:ye(ne,!0))+`
      +`},ge.blockquote=function(ne){return`
      +`+ne+`
      +`},ge.html=function(ne){return ne},ge.heading=function(ne,re,he,fe){return this.options.headerIds?"'+ne+" +`:""+ne+" `},ge.hr=function(){return this.options.xhtml?`
      `:`
      -`},ge.list=function(re,ne,he){var fe=ne?"ol":"ul",xe=ne&&he!==1?' start="'+he+'"':"";return"<"+fe+xe+`> -`+re+" -`},ge.listitem=function(re){return"
    • "+re+`
    • -`},ge.checkbox=function(re){return" "},ge.paragraph=function(re){return"

      "+re+`

      -`},ge.table=function(re,ne){return ne&&(ne=""+ne+""),` +`},ge.list=function(ne,re,he){var fe=re?"ol":"ul",xe=re&&he!==1?' start="'+he+'"':"";return"<"+fe+xe+`> +`+ne+" +`},ge.listitem=function(ne){return"
    • "+ne+`
    • +`},ge.checkbox=function(ne){return" "},ge.paragraph=function(ne){return"

      "+ne+`

      +`},ge.table=function(ne,re){return re&&(re=""+re+""),`
      -`+re+` -`+ne+`
      -`},ge.tablerow=function(re){return` -`+re+` -`},ge.tablecell=function(re,ne){var he=ne.header?"th":"td",fe=ne.align?"<"+he+' align="'+ne.align+'">':"<"+he+">";return fe+re+" -`},ge.strong=function(re){return""+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
      ":"
      "},ge.del=function(re){return""+re+""},ge.link=function(re,ne,he){if(re=oe(this.options.sanitize,this.options.baseUrl,re),re===null)return he;var fe='",fe},ge.image=function(re,ne,he){if(re=oe(this.options.sanitize,this.options.baseUrl,re),re===null)return he;var fe=''+he+'":">",fe},ge.text=function(re){return re},Ee}(),Ae=function(){function Ee(){}var ge=Ee.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ne,he){return""+he},ge.image=function(re,ne,he){return""+he},ge.br=function(){return""},Ee}(),Ue=function(){function Ee(){this.seen={}}var ge=Ee.prototype;return ge.slug=function(re){var ne=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ne)){var he=ne;do this.seen[he]++,ne=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(ne))}return this.seen[ne]=0,ne},Ee}(),Ve=G.defaults,Ze=j.unescape,$e=function(){function Ee(_e){this.options=_e||Ve,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Ue}Ee.parse=function(re,ne){var he=new Ee(ne);return he.parse(re)};var ge=Ee.prototype;return ge.parse=function(re,ne){ne===void 0&&(ne=!0);var he="",fe,xe,Pe,ze,ot,mt,ft,wt,St,dt,Ut,Lt,qt,Qt,It,Ci,Ki,yt,Li=re.length;for(fe=0;fe0&&It.tokens[0].type==="text"?(It.tokens[0].text=yt+" "+It.tokens[0].text,It.tokens[0].tokens&&It.tokens[0].tokens.length>0&&It.tokens[0].tokens[0].type==="text"&&(It.tokens[0].tokens[0].text=yt+" "+It.tokens[0].tokens[0].text)):It.tokens.unshift({type:"text",text:yt}):Qt+=yt),Qt+=this.parse(It.tokens,qt),St+=this.renderer.listitem(Qt,Ki,Ci);he+=this.renderer.list(St,Ut,Lt);continue}case"html":{he+=this.renderer.html(dt.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(dt.tokens));continue}case"text":{for(St=dt.tokens?this.parseInline(dt.tokens):dt.text;fe+1An error occurred:

      "+Je(Pe.message+"",!0)+"
      ";throw Pe}}Fe.options=Fe.setOptions=function(Ee){return tt(Fe.defaults,Ee),ut(Fe.defaults),Fe},Fe.getDefaults=Me,Fe.defaults=rt,Fe.use=function(Ee){var ge=tt({},Ee);if(Ee.renderer&&function(){var re=Fe.defaults.renderer||new we,ne=function(xe){var Pe=re[xe];re[xe]=function(){for(var ze=arguments.length,ot=new Array(ze),mt=0;mt`,triples:"",explode:"[]{}"},M=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,o){o&&o!=ie.Init&&(u.removeKeyMap(F),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(F))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:$[f]}var F={Backspace:i,Enter:D};function U(u){for(var f=0;f=0;s--){var A=h[s].head;u.replaceRange("",M(A.line,A.ch-1),M(A.line,A.ch+1),"+delete")}}function D(u){var f=W(u),o=f&&X(f,"explode");if(!o||u.getOption("disableInput"))return ie.Pass;for(var h=u.listSelections(),s=0;s0;return{anchor:new M(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new M(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var o=W(u);if(!o||u.getOption("disableInput"))return ie.Pass;var h=X(o,"pairs"),s=h.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(o,"closeBefore"),A=X(o,"triples"),_=h.charAt(s+1)==f,S=u.listSelections(),L=s%2==0,R,C=0;C=0&&u.getRange(x,M(x.line,x.ch+3))==f+f+f?c="skipThree":c="skip";else if(_&&x.ch>1&&A.indexOf(f)>=0&&u.getRange(M(x.line,x.ch-2),x)==f+f){if(x.ch>2&&/\bstring/.test(u.getTokenTypeAt(M(x.line,x.ch-2))))return ie.Pass;c="addFour"}else if(_){var y=x.ch==0?" ":u.getRange(M(x.line,x.ch-1),x);if(!ie.isWordChar(T)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(L&&(T.length===0||/\s/.test(T)||a.indexOf(T)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var v=s%2?h.charAt(s-1):f,N=s%2?f:h.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var B=0;B<3;B++)u.execCommand("goCharRight");else if(R=="surround"){for(var O=u.getSelections(),B=0;Ba.length&&(_=a.length);A<_;A++)yield a[A]}$.slice=o;function h(a,A=Number.POSITIVE_INFINITY){const _=[];if(A===0)return[_,a];const S=a[Symbol.iterator]();for(let L=0;LS===L){const S=a[Symbol.iterator](),L=A[Symbol.iterator]();for(;;){const R=S.next(),C=L.next();if(R.done!==C.done)return!1;if(R.done)return!0;if(!_(R.value,C.value))return!1}}$.equals=s})(ie||(ie={}))},LdHM:function(st,be,Q){"use strict";Q.d(be,"b",function(){return a}),Q.d(be,"a",function(){return _});var ie=Q("1OyB"),$=Q("vuIU"),M=Q("Ji7U"),X=Q("LK+K"),F=Q("q1tI"),U=Q("rePB"),G=Q("Ff2n"),W=Q("ODXe"),i=Q("4IlW"),D=Q("bX4T"),g=Q("YrtM"),m=Q("TSYQ"),p=Q.n(m),l=Q("+nKL"),u=Q("8OUc"),f=function(Y,ee){var le=Y.prefixCls,ue=Y.id,ke=Y.flattenOptions,Se=Y.childrenAsData,Ce=Y.values,ce=Y.searchValue,pe=Y.multiple,se=Y.defaultActiveFirstOption,ae=Y.height,Oe=Y.itemHeight,Te=Y.notFoundContent,Ne=Y.open,De=Y.menuItemSelectedIcon,We=Y.virtual,Le=Y.onSelect,Be=Y.onToggleOpen,Ge=Y.onActiveValue,oe=Y.onScroll,ye=Y.onMouseEnter,we="".concat(le,"-item"),Ae=Object(g.a)(function(){return ke},[Ne,ke],function(je,Ee){return Ee[0]&&je[1]!==Ee[1]}),Ue=F.useRef(null),Ve=function(Ee){Ee.preventDefault()},Ze=function(Ee){Ue.current&&Ue.current.scrollTo({index:Ee})},$e=function(Ee){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=Ae.length,re=0;re<_e;re+=1){var ne=(Ee+re*ge+_e)%_e,he=Ae[ne],fe=he.group,xe=he.data;if(!fe&&!xe.disabled)return ne}return-1},tt=F.useState(function(){return $e(0)}),et=Object(W.a)(tt,2),Je=et[0],Me=et[1],ut=function(Ee){Me(Ee);var ge=Ae[Ee];if(!ge){Ge(null,-1);return}Ge(ge.data.value,Ee)};F.useEffect(function(){ut(se!==!1?$e(0):-1)},[Ae.length,ce]),F.useEffect(function(){var je=setTimeout(function(){if(!pe&&Ne&&Ce.size===1){var Ee=Array.from(Ce)[0],ge=Ae.findIndex(function(_e){var re=_e.data;return re.value===Ee});ut(ge),Ze(ge)}});return function(){return clearTimeout(je)}},[Ne]);var rt=function(Ee){Ee!==void 0&&Le(Ee,{selected:!Ce.has(Ee)}),pe||Be(!1)};if(F.useImperativeHandle(ee,function(){return{onKeyDown:function(Ee){var ge=Ee.which;switch(ge){case i.a.UP:case i.a.DOWN:{var _e=0;if(ge===i.a.UP?_e=-1:ge===i.a.DOWN&&(_e=1),_e!==0){var re=$e(Je+_e,_e);Ze(re),ut(re)}break}case i.a.ENTER:{var ne=Ae[Je];ne&&!ne.data.disabled?rt(ne.data.value):rt(void 0),Ne&&Ee.preventDefault();break}case i.a.ESC:Be(!1)}},onKeyUp:function(){},scrollTo:function(Ee){Ze(Ee)}}}),Ae.length===0)return F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(we,"-empty"),onMouseDown:Ve},Te);function Fe(je){var Ee=Ae[je];if(!Ee)return null;var ge=Ee.data||{},_e=ge.value,re=ge.label,ne=ge.children,he=Object(D.a)(ge,!0),fe=Se?ne:re;return Ee?F.createElement("div",Object.assign({"aria-label":typeof fe=="string"?fe:null},he,{key:je,role:"option",id:"".concat(ue,"_list_").concat(je),"aria-selected":Ce.has(_e)}),_e):null}return F.createElement(F.Fragment,null,F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},Fe(Je-1),Fe(Je),Fe(Je+1)),F.createElement(l.a,{itemKey:"key",ref:Ue,data:Ae,height:ae,itemHeight:Oe,fullHeight:!1,onMouseDown:Ve,onScroll:oe,virtual:We,onMouseEnter:ye},function(je,Ee){var ge,_e=je.group,re=je.groupOption,ne=je.data,he=ne.label,fe=ne.key;if(_e)return F.createElement("div",{className:p()(we,"".concat(we,"-group"))},he!==void 0?he:fe);var xe=ne.disabled,Pe=ne.value,ze=ne.title,ot=ne.children,mt=ne.style,ft=ne.className,wt=Object(G.a)(ne,["disabled","value","title","children","style","className"]),St=Ce.has(Pe),dt="".concat(we,"-option"),Ut=p()(we,dt,ft,(ge={},Object(U.a)(ge,"".concat(dt,"-grouped"),re),Object(U.a)(ge,"".concat(dt,"-active"),Je===Ee&&!xe),Object(U.a)(ge,"".concat(dt,"-disabled"),xe),Object(U.a)(ge,"".concat(dt,"-selected"),St),ge)),Lt=Se?ot:he,qt=!De||typeof De=="function"||St;return F.createElement("div",Object.assign({},wt,{"aria-selected":St,className:Ut,title:ze,onMouseMove:function(){if(Je===Ee||xe)return;ut(Ee)},onClick:function(){xe||rt(Pe)},style:mt}),F.createElement("div",{className:"".concat(dt,"-content")},Lt||Pe),F.isValidElement(De)||St,qt&&F.createElement(u.a,{className:"".concat(we,"-option-state"),customizeIcon:De,customizeIconProps:{isSelected:St}},St?"\u2713":null))}))},o=F.forwardRef(f);o.displayName="OptionList";var h=o,s=function(){return null};s.isSelectOption=!0;var a=s,A=function(){return null};A.isSelectOptGroup=!0;var _=A,S=Q("VTBJ"),L=Q("Zm9Q");function R(b){var Y=b.key,ee=b.props,le=ee.children,ue=ee.value,ke=Object(G.a)(ee,["children","value"]);return Object(S.a)({key:Y,value:ue!==void 0?ue:Y,children:le},ke)}function C(b){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(b).map(function(ee,le){if(!F.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,ke=ee.key,Se=ee.props,Ce=Se.children,ce=Object(G.a)(Se,["children"]);return Y||!ue?R(ee):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(ke===null?le:ke,"__"),label:ke},ce),{},{options:C(Ce)})}).filter(function(ee){return ee})}var w=Q("2Qr1"),x=Q("qNPg"),c=Q("U8pU"),T=Q("Kwbf"),y=Q("WKfj");function v(b){var Y=b.mode,ee=b.options,le=b.children,ue=b.backfill,ke=b.allowClear,Se=b.placeholder,Ce=b.getInputElement,ce=b.showSearch,pe=b.onSearch,se=b.defaultOpen,ae=b.autoFocus,Oe=b.labelInValue,Te=b.value,Ne=b.inputValue,De=b.optionLabelProp,We=Y==="multiple"||Y==="tags",Le=ce!==void 0?ce:We||Y==="combobox",Be=ee||C(le);if(Object(T.a)(Y!=="tags"||Be.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Ge=Be.some(function(we){return we.options?we.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(T.a)(!Ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(Y!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(Y==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(T.a)(Y==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(T.b)(Y!=="combobox"||!Ce||!ke||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!Le&&Y!=="combobox"&&Y!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!se||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Te!=null){var oe=Object(y.d)(Te);Object(T.a)(!Oe||oe.every(function(we){return Object(c.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!We||Array.isArray(Te),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var ye=null;Object(L.a)(le).some(function(we){if(!F.isValidElement(we)||!we.type)return!1;var Ae=we.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Ue=Object(L.a)(we.props.children).every(function(Ve){return!F.isValidElement(Ve)||!we.type||Ve.type.isSelectOption?!0:(ye=Ve.type,!1)});return!Ue}return ye=Ae,!0}),ye&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(T.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=v,B=Object(x.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:C,flattenOptions:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:N,fillOptionsWithMissingValue:w.a}),O=function(b){Object(M.a)(ee,b);var Y=Object(X.a)(ee);function ee(){var le;return Object(ie.a)(this,ee),le=Y.apply(this,arguments),le.selectRef=F.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object($.a)(ee,[{key:"render",value:function(){return F.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),ee}(F.Component);O.Option=a,O.OptGroup=_;var j=O,P=be.c=j},M8RZ:function(st,be,Q){"use strict";Q.d(be,"a",function(){return i});var ie=Q("fWQN"),$=Q("mtLc"),M=Q("yKVA"),X=Q("879j"),F=Q("q1tI"),U=Q.n(F),G=Q("i8i4"),W=Q.n(G),i=function(D){Object(M.a)(m,D);var g=Object(X.a)(m);function m(p){var l;Object(ie.a)(this,m),l=g.call(this,p);var u=window.document;return l.node=u.createElement("div"),u.body.appendChild(l.node),l}return Object($.a)(m,[{key:"render",value:function(){var l=this.props.children;return Object(G.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(st,be,Q){"use strict";Q.d(be,"c",function(){return F}),Q.d(be,"b",function(){return i}),Q.d(be,"e",function(){return D}),Q.d(be,"a",function(){return g}),Q.d(be,"d",function(){return m}),Q.d(be,"f",function(){return p});var ie=Q("/cxE"),$=Q("pmY6"),M=Q("24hK"),X=Q("5Y4S"),F;(function(l){l.None=()=>$.a.None;function u(v){return(N,B=null,O)=>{let j=!1,P;return P=v(b=>j?void 0:(P?P.dispose():j=!0,N.call(B,b)),null,O),j&&P.dispose(),P}}l.once=u;function f(v,N){return _((B,O=null,j)=>v(P=>B.call(O,N(P)),null,j))}l.map=f;function o(v,N){return _((B,O=null,j)=>v(P=>{N(P),B.call(O,P)},null,j))}l.forEach=o;function h(v,N){return _((B,O=null,j)=>v(P=>N(P)&&B.call(O,P),null,j))}l.filter=h;function s(v){return v}l.signal=s;function a(...v){return(N,B=null,O)=>Object($.e)(...v.map(j=>j(P=>N.call(B,P),null,O)))}l.any=a;function A(v,N,B){let O=B;return f(v,j=>(O=N(O,j),O))}l.reduce=A;function _(v){let N;const B=new i({onFirstListenerAdd(){N=v(B.fire,B)},onLastListenerRemove(){N.dispose()}});return B.event}function S(v,N,B=100,O=!1,j){let P,b,Y,ee=0;const le=new i({leakWarningThreshold:j,onFirstListenerAdd(){P=v(ue=>{ee++,b=N(b,ue),O&&!Y&&(le.fire(b),b=void 0),clearTimeout(Y),Y=setTimeout(()=>{const ke=b;b=void 0,Y=void 0,(!O||ee>1)&&le.fire(ke),ee=0},B)})},onLastListenerRemove(){P.dispose()}});return le.event}l.debounce=S;function L(v,N=(B,O)=>B===O){let B=!0,O;return h(v,j=>{const P=B||!N(j,O);return B=!1,O=j,P})}l.latch=L;function R(v,N){return[l.filter(v,N),l.filter(v,B=>!N(B))]}l.split=R;function C(v,N=!1,B=[]){let O=B.slice(),j=v(Y=>{O?O.push(Y):b.fire(Y)});const P=()=>{O&&O.forEach(Y=>b.fire(Y)),O=null},b=new i({onFirstListenerAdd(){j||(j=v(Y=>b.fire(Y)))},onFirstListenerDidAdd(){O&&(N?setTimeout(P):P())},onLastListenerRemove(){j&&j.dispose(),j=null}});return b.event}l.buffer=C;class w{constructor(v){this.event=v}map(v){return new w(f(this.event,v))}forEach(v){return new w(o(this.event,v))}filter(v){return new w(h(this.event,v))}reduce(v,N){return new w(A(this.event,v,N))}latch(){return new w(L(this.event))}debounce(v,N=100,B=!1,O){return new w(S(this.event,v,N,B,O))}on(v,N,B){return this.event(v,N,B)}once(v,N,B){return u(this.event)(v,N,B)}}function x(v){return new w(v)}l.chain=x;function c(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.on(N,O),P=()=>v.removeListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromNodeEventEmitter=c;function T(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.addEventListener(N,O),P=()=>v.removeEventListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromDOMEventEmitter=T;function y(v){return new Promise(N=>u(v)(N))}l.toPromise=y})(F||(F={}));class U{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${U._idPool++}`}start(l){this._stopWatch=new X.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let G=-1;class W{constructor(l,u=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let u=G;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||l +`+re+` +`},ge.tablerow=function(ne){return` +`+ne+` +`},ge.tablecell=function(ne,re){var he=re.header?"th":"td",fe=re.align?"<"+he+' align="'+re.align+'">':"<"+he+">";return fe+ne+" +`},ge.strong=function(ne){return""+ne+""},ge.em=function(ne){return""+ne+""},ge.codespan=function(ne){return""+ne+""},ge.br=function(){return this.options.xhtml?"
      ":"
      "},ge.del=function(ne){return""+ne+""},ge.link=function(ne,re,he){if(ne=oe(this.options.sanitize,this.options.baseUrl,ne),ne===null)return he;var fe='
      ",fe},ge.image=function(ne,re,he){if(ne=oe(this.options.sanitize,this.options.baseUrl,ne),ne===null)return he;var fe=''+he+'":">",fe},ge.text=function(ne){return ne},Ee}(),Ae=function(){function Ee(){}var ge=Ee.prototype;return ge.strong=function(ne){return ne},ge.em=function(ne){return ne},ge.codespan=function(ne){return ne},ge.del=function(ne){return ne},ge.html=function(ne){return ne},ge.text=function(ne){return ne},ge.link=function(ne,re,he){return""+he},ge.image=function(ne,re,he){return""+he},ge.br=function(){return""},Ee}(),Ue=function(){function Ee(){this.seen={}}var ge=Ee.prototype;return ge.slug=function(ne){var re=ne.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(re)){var he=re;do this.seen[he]++,re=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(re))}return this.seen[re]=0,re},Ee}(),Ve=G.defaults,Ze=j.unescape,$e=function(){function Ee(_e){this.options=_e||Ve,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Ue}Ee.parse=function(ne,re){var he=new Ee(re);return he.parse(ne)};var ge=Ee.prototype;return ge.parse=function(ne,re){re===void 0&&(re=!0);var he="",fe,xe,Pe,ze,ot,mt,ft,wt,St,dt,Ut,Lt,qt,Qt,It,Ci,Ki,yt,Li=ne.length;for(fe=0;fe0&&It.tokens[0].type==="text"?(It.tokens[0].text=yt+" "+It.tokens[0].text,It.tokens[0].tokens&&It.tokens[0].tokens.length>0&&It.tokens[0].tokens[0].type==="text"&&(It.tokens[0].tokens[0].text=yt+" "+It.tokens[0].tokens[0].text)):It.tokens.unshift({type:"text",text:yt}):Qt+=yt),Qt+=this.parse(It.tokens,qt),St+=this.renderer.listitem(Qt,Ki,Ci);he+=this.renderer.list(St,Ut,Lt);continue}case"html":{he+=this.renderer.html(dt.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(dt.tokens));continue}case"text":{for(St=dt.tokens?this.parseInline(dt.tokens):dt.text;fe+1An error occurred:

      "+Je(Pe.message+"",!0)+"
      ";throw Pe}}Fe.options=Fe.setOptions=function(Ee){return tt(Fe.defaults,Ee),ut(Fe.defaults),Fe},Fe.getDefaults=Me,Fe.defaults=nt,Fe.use=function(Ee){var ge=tt({},Ee);if(Ee.renderer&&function(){var ne=Fe.defaults.renderer||new we,re=function(xe){var Pe=ne[xe];ne[xe]=function(){for(var ze=arguments.length,ot=new Array(ze),mt=0;mt`,triples:"",explode:"[]{}"},M=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,o){o&&o!=ie.Init&&(u.removeKeyMap(F),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(F))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:$[f]}var F={Backspace:i,Enter:D};function U(u){for(var f=0;f=0;s--){var A=h[s].head;u.replaceRange("",M(A.line,A.ch-1),M(A.line,A.ch+1),"+delete")}}function D(u){var f=W(u),o=f&&X(f,"explode");if(!o||u.getOption("disableInput"))return ie.Pass;for(var h=u.listSelections(),s=0;s0;return{anchor:new M(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new M(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var o=W(u);if(!o||u.getOption("disableInput"))return ie.Pass;var h=X(o,"pairs"),s=h.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(o,"closeBefore"),A=X(o,"triples"),_=h.charAt(s+1)==f,S=u.listSelections(),L=s%2==0,R,C=0;C=0&&u.getRange(x,M(x.line,x.ch+3))==f+f+f?c="skipThree":c="skip";else if(_&&x.ch>1&&A.indexOf(f)>=0&&u.getRange(M(x.line,x.ch-2),x)==f+f){if(x.ch>2&&/\bstring/.test(u.getTokenTypeAt(M(x.line,x.ch-2))))return ie.Pass;c="addFour"}else if(_){var y=x.ch==0?" ":u.getRange(M(x.line,x.ch-1),x);if(!ie.isWordChar(T)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(L&&(T.length===0||/\s/.test(T)||a.indexOf(T)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var v=s%2?h.charAt(s-1):f,N=s%2?f:h.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var B=0;B<3;B++)u.execCommand("goCharRight");else if(R=="surround"){for(var O=u.getSelections(),B=0;Ba.length&&(_=a.length);A<_;A++)yield a[A]}$.slice=o;function h(a,A=Number.POSITIVE_INFINITY){const _=[];if(A===0)return[_,a];const S=a[Symbol.iterator]();for(let L=0;LS===L){const S=a[Symbol.iterator](),L=A[Symbol.iterator]();for(;;){const R=S.next(),C=L.next();if(R.done!==C.done)return!1;if(R.done)return!0;if(!_(R.value,C.value))return!1}}$.equals=s})(ie||(ie={}))},LdHM:function(st,be,Q){"use strict";Q.d(be,"b",function(){return a}),Q.d(be,"a",function(){return _});var ie=Q("1OyB"),$=Q("vuIU"),M=Q("Ji7U"),X=Q("LK+K"),F=Q("q1tI"),U=Q("rePB"),G=Q("Ff2n"),W=Q("ODXe"),i=Q("4IlW"),D=Q("bX4T"),g=Q("YrtM"),m=Q("TSYQ"),p=Q.n(m),l=Q("+nKL"),u=Q("8OUc"),f=function(Y,ee){var le=Y.prefixCls,ue=Y.id,ke=Y.flattenOptions,Se=Y.childrenAsData,Ce=Y.values,ce=Y.searchValue,pe=Y.multiple,se=Y.defaultActiveFirstOption,ae=Y.height,Oe=Y.itemHeight,Te=Y.notFoundContent,Ne=Y.open,De=Y.menuItemSelectedIcon,We=Y.virtual,Le=Y.onSelect,Be=Y.onToggleOpen,Ge=Y.onActiveValue,oe=Y.onScroll,ye=Y.onMouseEnter,we="".concat(le,"-item"),Ae=Object(g.a)(function(){return ke},[Ne,ke],function(je,Ee){return Ee[0]&&je[1]!==Ee[1]}),Ue=F.useRef(null),Ve=function(Ee){Ee.preventDefault()},Ze=function(Ee){Ue.current&&Ue.current.scrollTo({index:Ee})},$e=function(Ee){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=Ae.length,ne=0;ne<_e;ne+=1){var re=(Ee+ne*ge+_e)%_e,he=Ae[re],fe=he.group,xe=he.data;if(!fe&&!xe.disabled)return re}return-1},tt=F.useState(function(){return $e(0)}),et=Object(W.a)(tt,2),Je=et[0],Me=et[1],ut=function(Ee){Me(Ee);var ge=Ae[Ee];if(!ge){Ge(null,-1);return}Ge(ge.data.value,Ee)};F.useEffect(function(){ut(se!==!1?$e(0):-1)},[Ae.length,ce]),F.useEffect(function(){var je=setTimeout(function(){if(!pe&&Ne&&Ce.size===1){var Ee=Array.from(Ce)[0],ge=Ae.findIndex(function(_e){var ne=_e.data;return ne.value===Ee});ut(ge),Ze(ge)}});return function(){return clearTimeout(je)}},[Ne]);var nt=function(Ee){Ee!==void 0&&Le(Ee,{selected:!Ce.has(Ee)}),pe||Be(!1)};if(F.useImperativeHandle(ee,function(){return{onKeyDown:function(Ee){var ge=Ee.which;switch(ge){case i.a.UP:case i.a.DOWN:{var _e=0;if(ge===i.a.UP?_e=-1:ge===i.a.DOWN&&(_e=1),_e!==0){var ne=$e(Je+_e,_e);Ze(ne),ut(ne)}break}case i.a.ENTER:{var re=Ae[Je];re&&!re.data.disabled?nt(re.data.value):nt(void 0),Ne&&Ee.preventDefault();break}case i.a.ESC:Be(!1)}},onKeyUp:function(){},scrollTo:function(Ee){Ze(Ee)}}}),Ae.length===0)return F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(we,"-empty"),onMouseDown:Ve},Te);function Fe(je){var Ee=Ae[je];if(!Ee)return null;var ge=Ee.data||{},_e=ge.value,ne=ge.label,re=ge.children,he=Object(D.a)(ge,!0),fe=Se?re:ne;return Ee?F.createElement("div",Object.assign({"aria-label":typeof fe=="string"?fe:null},he,{key:je,role:"option",id:"".concat(ue,"_list_").concat(je),"aria-selected":Ce.has(_e)}),_e):null}return F.createElement(F.Fragment,null,F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},Fe(Je-1),Fe(Je),Fe(Je+1)),F.createElement(l.a,{itemKey:"key",ref:Ue,data:Ae,height:ae,itemHeight:Oe,fullHeight:!1,onMouseDown:Ve,onScroll:oe,virtual:We,onMouseEnter:ye},function(je,Ee){var ge,_e=je.group,ne=je.groupOption,re=je.data,he=re.label,fe=re.key;if(_e)return F.createElement("div",{className:p()(we,"".concat(we,"-group"))},he!==void 0?he:fe);var xe=re.disabled,Pe=re.value,ze=re.title,ot=re.children,mt=re.style,ft=re.className,wt=Object(G.a)(re,["disabled","value","title","children","style","className"]),St=Ce.has(Pe),dt="".concat(we,"-option"),Ut=p()(we,dt,ft,(ge={},Object(U.a)(ge,"".concat(dt,"-grouped"),ne),Object(U.a)(ge,"".concat(dt,"-active"),Je===Ee&&!xe),Object(U.a)(ge,"".concat(dt,"-disabled"),xe),Object(U.a)(ge,"".concat(dt,"-selected"),St),ge)),Lt=Se?ot:he,qt=!De||typeof De=="function"||St;return F.createElement("div",Object.assign({},wt,{"aria-selected":St,className:Ut,title:ze,onMouseMove:function(){if(Je===Ee||xe)return;ut(Ee)},onClick:function(){xe||nt(Pe)},style:mt}),F.createElement("div",{className:"".concat(dt,"-content")},Lt||Pe),F.isValidElement(De)||St,qt&&F.createElement(u.a,{className:"".concat(we,"-option-state"),customizeIcon:De,customizeIconProps:{isSelected:St}},St?"\u2713":null))}))},o=F.forwardRef(f);o.displayName="OptionList";var h=o,s=function(){return null};s.isSelectOption=!0;var a=s,A=function(){return null};A.isSelectOptGroup=!0;var _=A,S=Q("VTBJ"),L=Q("Zm9Q");function R(b){var Y=b.key,ee=b.props,le=ee.children,ue=ee.value,ke=Object(G.a)(ee,["children","value"]);return Object(S.a)({key:Y,value:ue!==void 0?ue:Y,children:le},ke)}function C(b){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(b).map(function(ee,le){if(!F.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,ke=ee.key,Se=ee.props,Ce=Se.children,ce=Object(G.a)(Se,["children"]);return Y||!ue?R(ee):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(ke===null?le:ke,"__"),label:ke},ce),{},{options:C(Ce)})}).filter(function(ee){return ee})}var w=Q("2Qr1"),x=Q("qNPg"),c=Q("U8pU"),T=Q("Kwbf"),y=Q("WKfj");function v(b){var Y=b.mode,ee=b.options,le=b.children,ue=b.backfill,ke=b.allowClear,Se=b.placeholder,Ce=b.getInputElement,ce=b.showSearch,pe=b.onSearch,se=b.defaultOpen,ae=b.autoFocus,Oe=b.labelInValue,Te=b.value,Ne=b.inputValue,De=b.optionLabelProp,We=Y==="multiple"||Y==="tags",Le=ce!==void 0?ce:We||Y==="combobox",Be=ee||C(le);if(Object(T.a)(Y!=="tags"||Be.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Ge=Be.some(function(we){return we.options?we.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(T.a)(!Ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(Y!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(Y==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(T.a)(Y==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(T.b)(Y!=="combobox"||!Ce||!ke||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!Le&&Y!=="combobox"&&Y!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!se||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Te!=null){var oe=Object(y.d)(Te);Object(T.a)(!Oe||oe.every(function(we){return Object(c.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!We||Array.isArray(Te),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var ye=null;Object(L.a)(le).some(function(we){if(!F.isValidElement(we)||!we.type)return!1;var Ae=we.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Ue=Object(L.a)(we.props.children).every(function(Ve){return!F.isValidElement(Ve)||!we.type||Ve.type.isSelectOption?!0:(ye=Ve.type,!1)});return!Ue}return ye=Ae,!0}),ye&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(T.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=v,B=Object(x.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:C,flattenOptions:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:N,fillOptionsWithMissingValue:w.a}),O=function(b){Object(M.a)(ee,b);var Y=Object(X.a)(ee);function ee(){var le;return Object(ie.a)(this,ee),le=Y.apply(this,arguments),le.selectRef=F.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object($.a)(ee,[{key:"render",value:function(){return F.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),ee}(F.Component);O.Option=a,O.OptGroup=_;var j=O,P=be.c=j},M8RZ:function(st,be,Q){"use strict";Q.d(be,"a",function(){return i});var ie=Q("fWQN"),$=Q("mtLc"),M=Q("yKVA"),X=Q("879j"),F=Q("q1tI"),U=Q.n(F),G=Q("i8i4"),W=Q.n(G),i=function(D){Object(M.a)(m,D);var g=Object(X.a)(m);function m(p){var l;Object(ie.a)(this,m),l=g.call(this,p);var u=window.document;return l.node=u.createElement("div"),u.body.appendChild(l.node),l}return Object($.a)(m,[{key:"render",value:function(){var l=this.props.children;return Object(G.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(st,be,Q){"use strict";Q.d(be,"c",function(){return F}),Q.d(be,"b",function(){return i}),Q.d(be,"e",function(){return D}),Q.d(be,"a",function(){return g}),Q.d(be,"d",function(){return m}),Q.d(be,"f",function(){return p});var ie=Q("/cxE"),$=Q("pmY6"),M=Q("24hK"),X=Q("5Y4S"),F;(function(l){l.None=()=>$.a.None;function u(v){return(N,B=null,O)=>{let j=!1,P;return P=v(b=>j?void 0:(P?P.dispose():j=!0,N.call(B,b)),null,O),j&&P.dispose(),P}}l.once=u;function f(v,N){return _((B,O=null,j)=>v(P=>B.call(O,N(P)),null,j))}l.map=f;function o(v,N){return _((B,O=null,j)=>v(P=>{N(P),B.call(O,P)},null,j))}l.forEach=o;function h(v,N){return _((B,O=null,j)=>v(P=>N(P)&&B.call(O,P),null,j))}l.filter=h;function s(v){return v}l.signal=s;function a(...v){return(N,B=null,O)=>Object($.e)(...v.map(j=>j(P=>N.call(B,P),null,O)))}l.any=a;function A(v,N,B){let O=B;return f(v,j=>(O=N(O,j),O))}l.reduce=A;function _(v){let N;const B=new i({onFirstListenerAdd(){N=v(B.fire,B)},onLastListenerRemove(){N.dispose()}});return B.event}function S(v,N,B=100,O=!1,j){let P,b,Y,ee=0;const le=new i({leakWarningThreshold:j,onFirstListenerAdd(){P=v(ue=>{ee++,b=N(b,ue),O&&!Y&&(le.fire(b),b=void 0),clearTimeout(Y),Y=setTimeout(()=>{const ke=b;b=void 0,Y=void 0,(!O||ee>1)&&le.fire(ke),ee=0},B)})},onLastListenerRemove(){P.dispose()}});return le.event}l.debounce=S;function L(v,N=(B,O)=>B===O){let B=!0,O;return h(v,j=>{const P=B||!N(j,O);return B=!1,O=j,P})}l.latch=L;function R(v,N){return[l.filter(v,N),l.filter(v,B=>!N(B))]}l.split=R;function C(v,N=!1,B=[]){let O=B.slice(),j=v(Y=>{O?O.push(Y):b.fire(Y)});const P=()=>{O&&O.forEach(Y=>b.fire(Y)),O=null},b=new i({onFirstListenerAdd(){j||(j=v(Y=>b.fire(Y)))},onFirstListenerDidAdd(){O&&(N?setTimeout(P):P())},onLastListenerRemove(){j&&j.dispose(),j=null}});return b.event}l.buffer=C;class w{constructor(v){this.event=v}map(v){return new w(f(this.event,v))}forEach(v){return new w(o(this.event,v))}filter(v){return new w(h(this.event,v))}reduce(v,N){return new w(A(this.event,v,N))}latch(){return new w(L(this.event))}debounce(v,N=100,B=!1,O){return new w(S(this.event,v,N,B,O))}on(v,N,B){return this.event(v,N,B)}once(v,N,B){return u(this.event)(v,N,B)}}function x(v){return new w(v)}l.chain=x;function c(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.on(N,O),P=()=>v.removeListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromNodeEventEmitter=c;function T(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.addEventListener(N,O),P=()=>v.removeEventListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromDOMEventEmitter=T;function y(v){return new Promise(N=>u(v)(N))}l.toPromise=y})(F||(F={}));class U{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${U._idPool++}`}start(l){this._stopWatch=new X.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let G=-1;class W{constructor(l,u=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let u=G;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||l{const h=this._stacks.get(f)||0;this._stacks.set(f,h-1)}}}class i{constructor(l){var u;this._disposed=!1,this._options=l,this._leakageMon=G>0?new W(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(l,u,f)=>{var o;this._listeners||(this._listeners=new M.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[l,u]:l);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,u);const a=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),A=Object($.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return f instanceof $.b?f.add(A):Array.isArray(f)&&f.push(A),A}),this._event}fire(l){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new M.a);for(let o of this._listeners)this._deliveryQueue.push([o,l]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,h]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,h):o[0].call(o[1],h)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var l,u,f,o,h;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(o=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||o===void 0||o.call(f),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class D extends i{constructor(l){super(l);this._isPaused=0,this._eventQueue=new M.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class g extends D{constructor(l){var u;super(l);this._delay=(u=l.delay)!==null&&u!==void 0?u:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class m{constructor(){this.buffers=[]}wrapEvent(l){return(u,f,o)=>l(h=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,h)):u.call(f,h)},void 0,o)}bufferEvents(l){const u=[];this.buffers.push(u);const f=l();return this.buffers.pop(),u.forEach(o=>o()),f}}class p{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=$.a.None,this.emitter=new i({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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(st,be,Q){"use strict";(function(ie,$){Q.d(be,"b",function(){return f}),Q.d(be,"i",function(){return a}),Q.d(be,"f",function(){return A}),Q.d(be,"d",function(){return _}),Q.d(be,"g",function(){return S}),Q.d(be,"h",function(){return L}),Q.d(be,"c",function(){return R}),Q.d(be,"k",function(){return C}),Q.d(be,"j",function(){return w}),Q.d(be,"a",function(){return x}),Q.d(be,"e",function(){return y});var M;const X="en";let F=!1,U=!1,G=!1,W=!1,i=!1,D=!1,g=!1,m,p=X,l,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let o;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?o=f.vscode.process:typeof $!="undefined"&&(o=$);const h=typeof((M=o==null?void 0:o.versions)===null||M===void 0?void 0:M.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!h)u=navigator.userAgent,F=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,g=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,G=u.indexOf("Linux")>=0,D=!0,m=navigator.language,p=m;else if(typeof o=="object"){F=o.platform==="win32",U=o.platform==="darwin",G=o.platform==="linux",W=G&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,m=X,p=X;const v=o.env.VSCODE_NLS_CONFIG;if(v)try{const N=JSON.parse(v),B=N.availableLanguages["*"];m=N.locale,p=B||X,l=N._translationsConfigFile}catch(N){}i=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:F?s=3:G&&(s=2);const a=F,A=U,_=G,S=i,L=D,R=g,C=u,w=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let B=[];f.addEventListener("message",j=>{if(j.data&&j.data.vscodeSetImmediateId)for(let P=0,b=B.length;P{const P=++O;B.push({id:P,callback:j}),f.postMessage({vscodeSetImmediateId:P},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const N=Promise.resolve();return B=>N.then(B)}(),x=U||g?2:F?1:3;let c=!0,T=!1;function y(){if(!T){T=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2;const N=new Uint16Array(v.buffer);c=N[0]===(2<<8)+1}return c}}).call(this,Q("IyRk"),Q("Q2Ig"))},N0LK:function(st,be,Q){"use strict";Q.d(be,"C",function(){return ie}),Q.d(be,"v",function(){return M}),Q.d(be,"s",function(){return X}),Q.d(be,"t",function(){return F}),Q.d(be,"U",function(){return U}),Q.d(be,"J",function(){return G}),Q.d(be,"O",function(){return W}),Q.d(be,"p",function(){return i}),Q.d(be,"T",function(){return D}),Q.d(be,"q",function(){return g}),Q.d(be,"N",function(){return m}),Q.d(be,"M",function(){return p}),Q.d(be,"Q",function(){return l}),Q.d(be,"u",function(){return u}),Q.d(be,"x",function(){return f}),Q.d(be,"I",function(){return o}),Q.d(be,"f",function(){return h}),Q.d(be,"h",function(){return s}),Q.d(be,"g",function(){return a}),Q.d(be,"i",function(){return A}),Q.d(be,"G",function(){return _}),Q.d(be,"H",function(){return S}),Q.d(be,"r",function(){return L}),Q.d(be,"R",function(){return R}),Q.d(be,"d",function(){return C}),Q.d(be,"e",function(){return w}),Q.d(be,"E",function(){return x}),Q.d(be,"F",function(){return c}),Q.d(be,"j",function(){return T}),Q.d(be,"z",function(){return y}),Q.d(be,"K",function(){return N}),Q.d(be,"L",function(){return B}),Q.d(be,"m",function(){return j}),Q.d(be,"k",function(){return b}),Q.d(be,"A",function(){return ee}),Q.d(be,"a",function(){return le}),Q.d(be,"n",function(){return ue}),Q.d(be,"l",function(){return ke}),Q.d(be,"D",function(){return Se}),Q.d(be,"B",function(){return Ce}),Q.d(be,"b",function(){return ce}),Q.d(be,"S",function(){return pe}),Q.d(be,"o",function(){return se}),Q.d(be,"P",function(){return ae}),Q.d(be,"w",function(){return Oe}),Q.d(be,"c",function(){return Te}),Q.d(be,"y",function(){return We});function ie(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}const $=/{(\d+)}/g;function M(oe,...ye){return ye.length===0?oe:oe.replace($,function(we,Ae){const Ue=parseInt(Ae,10);return isNaN(Ue)||Ue<0||Ue>=ye.length?we:ye[Ue]})}function X(oe){return oe.replace(/[<>&]/g,function(ye){switch(ye){case"<":return"<";case">":return">";case"&":return"&";default:return ye}})}function F(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(oe,ye=" "){const we=G(oe,ye);return W(we,ye)}function G(oe,ye){if(!oe||!ye)return oe;const we=ye.length;if(we===0||oe.length===0)return oe;let Ae=0;for(;oe.indexOf(ye,Ae)===Ae;)Ae=Ae+we;return oe.substring(Ae)}function W(oe,ye){if(!oe||!ye)return oe;const we=ye.length,Ae=oe.length;if(we===0||Ae===0)return oe;let Ue=Ae,Ve=-1;for(;!(Ve=oe.lastIndexOf(ye,Ue-1),Ve===-1||Ve+we!==Ue);){if(Ve===0)return"";Ue=Ve}return oe.substring(0,Ue)}function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function D(oe){return oe.replace(/\*/g,"")}function g(oe,ye,we={}){if(!oe)throw new Error("Cannot create regex from empty string");ye||(oe=F(oe)),we.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let Ae="";return we.global&&(Ae+="g"),we.matchCase||(Ae+="i"),we.multiline&&(Ae+="m"),we.unicode&&(Ae+="u"),new RegExp(oe,Ae)}function m(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;const ye=oe.exec("");return!!(ye&&oe.lastIndex===0)}function p(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function l(oe){return oe.split(/\r\n|\r|\n/)}function u(oe){for(let ye=0,we=oe.length;ye=0;we--){const Ae=oe.charCodeAt(we);if(Ae!==32&&Ae!==9)return we}return-1}function h(oe,ye){return oeye?1:0}function s(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;weet)return 1}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function a(oe,ye){return A(oe,ye,0,oe.length,0,ye.length)}function A(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;we=128||et>=128)return s(oe.toLowerCase(),ye.toLowerCase(),we,Ae,Ue,Ve);_(tt)&&(tt-=32),_(et)&&(et-=32);const Je=tt-et;if(Je===0)continue;return Je}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function _(oe){return oe>=97&&oe<=122}function S(oe){return oe>=65&&oe<=90}function L(oe,ye){return oe.length===ye.length&&A(oe,ye)===0}function R(oe,ye){const we=ye.length;return ye.length>oe.length?!1:A(oe,ye,0,we)===0}function C(oe,ye){let we,Ae=Math.min(oe.length,ye.length);for(we=0;we1){const Ae=oe.charCodeAt(ye-2);if(x(Ae))return T(Ae,we)}return we}function N(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=oe.length,Ve=y(oe,Ue,ye);ye+=Ve>=65536?2:1;let Ze=we.getGraphemeBreakType(Ve);for(;ye=65536?2:1,Ze=tt}return ye-Ae}function B(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=v(oe,ye);ye-=Ue>=65536?2:1;let Ve=we.getGraphemeBreakType(Ue);for(;ye>0;){const Ze=v(oe,ye),$e=we.getGraphemeBreakType(Ze);if(Te($e,Ve))break;ye-=Ze>=65536?2:1,Ve=$e}return Ae-ye}const O=/(?:[\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 j(oe){return O.test(oe)}const P=/(?:[\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 b(oe){return P.test(oe)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ee(oe){return Y.test(oe)}const le=/[\u2028\u2029]/;function ue(oe){return le.test(oe)}function ke(oe){for(let ye=0,we=oe.length;ye=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function Ce(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129750}const ce=String.fromCharCode(65279);function pe(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function se(oe,ye=!1){return oe?(ye&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function ae(oe){const ye=90-65+1;return oe=oe%(2*ye),oeye[3*Ae+1])Ae=2*Ae+1;else return ye[3*Ae+2];return 0}}Ne._INSTANCE=null;function De(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function We(oe,ye){if(oe===0)return 0;const we=Le(oe,ye);if(we!==void 0)return we;const Ae=v(ye,oe);return oe-=Be(Ae),oe}function Le(oe,ye){let we=v(ye,oe);for(oe-=Be(we);Ge(we)||we===65039||we===8419;){if(oe===0)return;we=v(ye,oe),oe-=Be(we)}if(!Ce(we))return;if(oe>=0){const Ae=v(ye,oe);Ae===8205&&(oe-=Be(Ae))}return oe}function Be(oe){return oe>=65536?2:1}function Ge(oe){return 127995<=oe&&oe<=127999}},Ot1p:function(st,be,Q){"use strict";var ie=Q("2qtc"),$=Q("kLXV"),M=Q("rAM+"),X=Q("miYZ"),F=Q("tsqr"),U=Q("9og8"),G=Q("tJVT"),W=Q("jrin"),i=Q("WmNS"),D=Q.n(i),g=Q("q1tI"),m=Q.n(g),p=Q("VrN/"),l=Q.n(p),u=Q("bdgK"),f=Q("p77/"),o=Q("Bd2K"),h=Q("ELLl"),s=Q("19Vz"),a=Q("lZu9"),A=Q("+NIl"),_=Q("kSUc"),S=Q("9Bee"),L=function(xe){var Pe=xe.value,ze=Pe===void 0?"":Pe,ot=xe.className,mt=xe.showTextOnly,ft=xe.showLines,wt=xe.style,St=wt===void 0?{}:wt,dt=Object(g.useMemo)(function(){return""},[ze]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},R=Q("0Owb"),C=Q("dejd"),w=Q("C+DQ"),x=Q("1vsH"),c=Q("m3rI"),T=[{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 y(xe){var Pe=xe.onActionCallback,ze=xe.title,ot=xe.icon,mt=xe.actionName,ft=xe.className,wt=ft===void 0?"":ft,St=xe.children;function dt(){Pe(mt)}return m.a.createElement("a",{title:ze,className:wt,onClick:dt},m.a.createElement("i",{className:"md-iconfont ".concat(ot)}),St)}var v=function(xe){var Pe=xe.watch,ze=xe.showNullButton,ot=xe.onActionCallback,mt=xe.fullScreen,ft=xe.insertTemp,wt=xe.hidetoolBar,St=xe.uuid,dt=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(x.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(x.F)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ut=[].concat(T,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&Ut.map(function(Lt,qt){return m.a.createElement("li",{key:qt},Lt.actionName?m.a.createElement(y,Object(R.a)({},Lt,{onActionCallback:ot})):m.a.createElement("span",{className:"v-line"}))}),ze?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ft&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ft),onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(mt?"icon-shrink":"icon-enlarge"),title:mt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},N=Q("M8RZ"),B=Q("+L6B"),O=Q("2/Rp"),j=Q("y8nQ"),P=Q("Vl3Y"),b=Q("5NDa"),Y=Q("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},le=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ot}),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(Y.a,null)),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(Y.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},ue=Q("7ahc"),ke=Q("HmJG"),Se=Q("BjJ7"),Ce=P.a.useForm,ce={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}},se=function(xe){var Pe=xe.callback,ze=xe.onCancel,ot=Ce(),mt=Object(G.a)(ot,1),ft=mt[0];function wt(Ut){Pe(Ut)}function St(Ut,Lt){if(Ut.status===-1){F.b.error(Ut.message);return}ft.setFieldsValue({src:"/api/attachments/".concat(Ut.id),type:Lt.type})}function dt(Ut){var Lt=Ut.target.files[0];Oe(Lt,St)}return m.a.createElement(P.a,Object(R.a)({form:ft},pe,{className:"upload-image-panel",onFinish:wt}),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(P.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(Y.a,{style:ce})),m.a.createElement(ae,{onFileChange:dt}))),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(Y.a,{style:{width:264}})),m.a.createElement(P.a.Item,{style:{textAlign:"right"}},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))};function ae(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function Oe(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var ze=new FormData;ze.append("editormd-image-file",xe),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(mt){Pe(JSON.parse(mt.target.responseText),xe)},!1),ot.addEventListener("error",function(mt){console.error(mt)},!1),ot.open("POST","".concat(Se.a,"/api/attachments.json")),ot.send(ze)}var Te=Q("giR+"),Ne=Q("fyUT"),De=Q("7Kak"),We=Q("9yH6"),Le=We.a.Group,Be={margin:"0 8px"},Ge=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ot},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Be},"\u884C\u6570"),m.a.createElement(P.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(Ne.a,null)),m.a.createElement("span",{style:Be},"\u5217\u6570"),m.a.createElement(P.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(Ne.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(P.a.Item,{name:"align"},m.a.createElement(Le,null,m.a.createElement(We.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(We.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(We.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(We.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},oe=Q("ErOA"),ye=Q("7Cbv"),we="link",Ae="upload-image",Ue="code-block",Ve="add-table",Ze="------------",$e={default:Ze,left:":".concat(Ze),center:":".concat(Ze,":"),right:"".concat(Ze,":")},tt=Q("9VGf"),et,Je;function Me(){}var ut=0,rt=1e4,Fe="\u2581",je=` +`),o=this._stacks.get(f)||0;if(this._stacks.set(f,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;let h,s=0;for(const[a,A]of this._stacks)(!h||s{const h=this._stacks.get(f)||0;this._stacks.set(f,h-1)}}}class i{constructor(l){var u;this._disposed=!1,this._options=l,this._leakageMon=G>0?new W(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(l,u,f)=>{var o;this._listeners||(this._listeners=new M.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[l,u]:l);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,u);const a=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),A=Object($.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return f instanceof $.b?f.add(A):Array.isArray(f)&&f.push(A),A}),this._event}fire(l){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new M.a);for(let o of this._listeners)this._deliveryQueue.push([o,l]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,h]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,h):o[0].call(o[1],h)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var l,u,f,o,h;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(o=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||o===void 0||o.call(f),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class D extends i{constructor(l){super(l);this._isPaused=0,this._eventQueue=new M.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class g extends D{constructor(l){var u;super(l);this._delay=(u=l.delay)!==null&&u!==void 0?u:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class m{constructor(){this.buffers=[]}wrapEvent(l){return(u,f,o)=>l(h=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,h)):u.call(f,h)},void 0,o)}bufferEvents(l){const u=[];this.buffers.push(u);const f=l();return this.buffers.pop(),u.forEach(o=>o()),f}}class p{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=$.a.None,this.emitter=new i({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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(st,be,Q){"use strict";(function(ie,$){Q.d(be,"b",function(){return f}),Q.d(be,"i",function(){return a}),Q.d(be,"f",function(){return A}),Q.d(be,"d",function(){return _}),Q.d(be,"g",function(){return S}),Q.d(be,"h",function(){return L}),Q.d(be,"c",function(){return R}),Q.d(be,"k",function(){return C}),Q.d(be,"j",function(){return w}),Q.d(be,"a",function(){return x}),Q.d(be,"e",function(){return y});var M;const X="en";let F=!1,U=!1,G=!1,W=!1,i=!1,D=!1,g=!1,m,p=X,l,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let o;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?o=f.vscode.process:typeof $!="undefined"&&(o=$);const h=typeof((M=o==null?void 0:o.versions)===null||M===void 0?void 0:M.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!h)u=navigator.userAgent,F=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,g=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,G=u.indexOf("Linux")>=0,D=!0,m=navigator.language,p=m;else if(typeof o=="object"){F=o.platform==="win32",U=o.platform==="darwin",G=o.platform==="linux",W=G&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,m=X,p=X;const v=o.env.VSCODE_NLS_CONFIG;if(v)try{const N=JSON.parse(v),B=N.availableLanguages["*"];m=N.locale,p=B||X,l=N._translationsConfigFile}catch(N){}i=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:F?s=3:G&&(s=2);const a=F,A=U,_=G,S=i,L=D,R=g,C=u,w=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let B=[];f.addEventListener("message",j=>{if(j.data&&j.data.vscodeSetImmediateId)for(let P=0,b=B.length;P{const P=++O;B.push({id:P,callback:j}),f.postMessage({vscodeSetImmediateId:P},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const N=Promise.resolve();return B=>N.then(B)}(),x=U||g?2:F?1:3;let c=!0,T=!1;function y(){if(!T){T=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2;const N=new Uint16Array(v.buffer);c=N[0]===(2<<8)+1}return c}}).call(this,Q("IyRk"),Q("Q2Ig"))},N0LK:function(st,be,Q){"use strict";Q.d(be,"C",function(){return ie}),Q.d(be,"v",function(){return M}),Q.d(be,"s",function(){return X}),Q.d(be,"t",function(){return F}),Q.d(be,"U",function(){return U}),Q.d(be,"J",function(){return G}),Q.d(be,"O",function(){return W}),Q.d(be,"p",function(){return i}),Q.d(be,"T",function(){return D}),Q.d(be,"q",function(){return g}),Q.d(be,"N",function(){return m}),Q.d(be,"M",function(){return p}),Q.d(be,"Q",function(){return l}),Q.d(be,"u",function(){return u}),Q.d(be,"x",function(){return f}),Q.d(be,"I",function(){return o}),Q.d(be,"f",function(){return h}),Q.d(be,"h",function(){return s}),Q.d(be,"g",function(){return a}),Q.d(be,"i",function(){return A}),Q.d(be,"G",function(){return _}),Q.d(be,"H",function(){return S}),Q.d(be,"r",function(){return L}),Q.d(be,"R",function(){return R}),Q.d(be,"d",function(){return C}),Q.d(be,"e",function(){return w}),Q.d(be,"E",function(){return x}),Q.d(be,"F",function(){return c}),Q.d(be,"j",function(){return T}),Q.d(be,"z",function(){return y}),Q.d(be,"K",function(){return N}),Q.d(be,"L",function(){return B}),Q.d(be,"m",function(){return j}),Q.d(be,"k",function(){return b}),Q.d(be,"A",function(){return ee}),Q.d(be,"a",function(){return le}),Q.d(be,"n",function(){return ue}),Q.d(be,"l",function(){return ke}),Q.d(be,"D",function(){return Se}),Q.d(be,"B",function(){return Ce}),Q.d(be,"b",function(){return ce}),Q.d(be,"S",function(){return pe}),Q.d(be,"o",function(){return se}),Q.d(be,"P",function(){return ae}),Q.d(be,"w",function(){return Oe}),Q.d(be,"c",function(){return Te}),Q.d(be,"y",function(){return We});function ie(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}const $=/{(\d+)}/g;function M(oe,...ye){return ye.length===0?oe:oe.replace($,function(we,Ae){const Ue=parseInt(Ae,10);return isNaN(Ue)||Ue<0||Ue>=ye.length?we:ye[Ue]})}function X(oe){return oe.replace(/[<>&]/g,function(ye){switch(ye){case"<":return"<";case">":return">";case"&":return"&";default:return ye}})}function F(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(oe,ye=" "){const we=G(oe,ye);return W(we,ye)}function G(oe,ye){if(!oe||!ye)return oe;const we=ye.length;if(we===0||oe.length===0)return oe;let Ae=0;for(;oe.indexOf(ye,Ae)===Ae;)Ae=Ae+we;return oe.substring(Ae)}function W(oe,ye){if(!oe||!ye)return oe;const we=ye.length,Ae=oe.length;if(we===0||Ae===0)return oe;let Ue=Ae,Ve=-1;for(;!(Ve=oe.lastIndexOf(ye,Ue-1),Ve===-1||Ve+we!==Ue);){if(Ve===0)return"";Ue=Ve}return oe.substring(0,Ue)}function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function D(oe){return oe.replace(/\*/g,"")}function g(oe,ye,we={}){if(!oe)throw new Error("Cannot create regex from empty string");ye||(oe=F(oe)),we.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let Ae="";return we.global&&(Ae+="g"),we.matchCase||(Ae+="i"),we.multiline&&(Ae+="m"),we.unicode&&(Ae+="u"),new RegExp(oe,Ae)}function m(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;const ye=oe.exec("");return!!(ye&&oe.lastIndex===0)}function p(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function l(oe){return oe.split(/\r\n|\r|\n/)}function u(oe){for(let ye=0,we=oe.length;ye=0;we--){const Ae=oe.charCodeAt(we);if(Ae!==32&&Ae!==9)return we}return-1}function h(oe,ye){return oeye?1:0}function s(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;weet)return 1}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function a(oe,ye){return A(oe,ye,0,oe.length,0,ye.length)}function A(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;we=128||et>=128)return s(oe.toLowerCase(),ye.toLowerCase(),we,Ae,Ue,Ve);_(tt)&&(tt-=32),_(et)&&(et-=32);const Je=tt-et;if(Je===0)continue;return Je}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function _(oe){return oe>=97&&oe<=122}function S(oe){return oe>=65&&oe<=90}function L(oe,ye){return oe.length===ye.length&&A(oe,ye)===0}function R(oe,ye){const we=ye.length;return ye.length>oe.length?!1:A(oe,ye,0,we)===0}function C(oe,ye){let we,Ae=Math.min(oe.length,ye.length);for(we=0;we1){const Ae=oe.charCodeAt(ye-2);if(x(Ae))return T(Ae,we)}return we}function N(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=oe.length,Ve=y(oe,Ue,ye);ye+=Ve>=65536?2:1;let Ze=we.getGraphemeBreakType(Ve);for(;ye=65536?2:1,Ze=tt}return ye-Ae}function B(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=v(oe,ye);ye-=Ue>=65536?2:1;let Ve=we.getGraphemeBreakType(Ue);for(;ye>0;){const Ze=v(oe,ye),$e=we.getGraphemeBreakType(Ze);if(Te($e,Ve))break;ye-=Ze>=65536?2:1,Ve=$e}return Ae-ye}const O=/(?:[\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 j(oe){return O.test(oe)}const P=/(?:[\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 b(oe){return P.test(oe)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ee(oe){return Y.test(oe)}const le=/[\u2028\u2029]/;function ue(oe){return le.test(oe)}function ke(oe){for(let ye=0,we=oe.length;ye=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function Ce(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129750}const ce=String.fromCharCode(65279);function pe(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function se(oe,ye=!1){return oe?(ye&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function ae(oe){const ye=90-65+1;return oe=oe%(2*ye),oeye[3*Ae+1])Ae=2*Ae+1;else return ye[3*Ae+2];return 0}}Ne._INSTANCE=null;function De(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function We(oe,ye){if(oe===0)return 0;const we=Le(oe,ye);if(we!==void 0)return we;const Ae=v(ye,oe);return oe-=Be(Ae),oe}function Le(oe,ye){let we=v(ye,oe);for(oe-=Be(we);Ge(we)||we===65039||we===8419;){if(oe===0)return;we=v(ye,oe),oe-=Be(we)}if(!Ce(we))return;if(oe>=0){const Ae=v(ye,oe);Ae===8205&&(oe-=Be(Ae))}return oe}function Be(oe){return oe>=65536?2:1}function Ge(oe){return 127995<=oe&&oe<=127999}},Ot1p:function(st,be,Q){"use strict";var ie=Q("2qtc"),$=Q("kLXV"),M=Q("rAM+"),X=Q("miYZ"),F=Q("tsqr"),U=Q("9og8"),G=Q("tJVT"),W=Q("jrin"),i=Q("WmNS"),D=Q.n(i),g=Q("q1tI"),m=Q.n(g),p=Q("VrN/"),l=Q.n(p),u=Q("bdgK"),f=Q("p77/"),o=Q("Bd2K"),h=Q("ELLl"),s=Q("19Vz"),a=Q("lZu9"),A=Q("+NIl"),_=Q("kSUc"),S=Q("9Bee"),L=function(xe){var Pe=xe.value,ze=Pe===void 0?"":Pe,ot=xe.className,mt=xe.showTextOnly,ft=xe.showLines,wt=xe.style,St=wt===void 0?{}:wt,dt=Object(g.useMemo)(function(){return""},[ze]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},R=Q("0Owb"),C=Q("dejd"),w=Q("C+DQ"),x=Q("1vsH"),c=Q("m3rI"),T=[{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 y(xe){var Pe=xe.onActionCallback,ze=xe.title,ot=xe.icon,mt=xe.actionName,ft=xe.className,wt=ft===void 0?"":ft,St=xe.children;function dt(){Pe(mt)}return m.a.createElement("a",{title:ze,className:wt,onClick:dt},m.a.createElement("i",{className:"md-iconfont ".concat(ot)}),St)}var v=function(xe){var Pe=xe.watch,ze=xe.showNullButton,ot=xe.onActionCallback,mt=xe.fullScreen,ft=xe.insertTemp,wt=xe.hidetoolBar,St=xe.uuid,dt=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(x.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(x.F)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ut=[].concat(T,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&Ut.map(function(Lt,qt){return m.a.createElement("li",{key:qt},Lt.actionName?m.a.createElement(y,Object(R.a)({},Lt,{onActionCallback:ot})):m.a.createElement("span",{className:"v-line"}))}),ze?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ft&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ft),onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(mt?"icon-shrink":"icon-enlarge"),title:mt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},N=Q("M8RZ"),B=Q("+L6B"),O=Q("2/Rp"),j=Q("y8nQ"),P=Q("Vl3Y"),b=Q("5NDa"),Y=Q("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},le=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ot}),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(Y.a,null)),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(Y.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},ue=Q("7ahc"),ke=Q("HmJG"),Se=Q("BjJ7"),Ce=P.a.useForm,ce={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}},se=function(xe){var Pe=xe.callback,ze=xe.onCancel,ot=Ce(),mt=Object(G.a)(ot,1),ft=mt[0];function wt(Ut){Pe(Ut)}function St(Ut,Lt){if(Ut.status===-1){F.b.error(Ut.message);return}ft.setFieldsValue({src:"/api/attachments/".concat(Ut.id),type:Lt.type})}function dt(Ut){var Lt=Ut.target.files[0];Oe(Lt,St)}return m.a.createElement(P.a,Object(R.a)({form:ft},pe,{className:"upload-image-panel",onFinish:wt}),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(P.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(Y.a,{style:ce})),m.a.createElement(ae,{onFileChange:dt}))),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(Y.a,{style:{width:264}})),m.a.createElement(P.a.Item,{style:{textAlign:"right"}},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))};function ae(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function Oe(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var ze=new FormData;ze.append("editormd-image-file",xe),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(mt){Pe(JSON.parse(mt.target.responseText),xe)},!1),ot.addEventListener("error",function(mt){console.error(mt)},!1),ot.open("POST","".concat(Se.a,"/api/attachments.json")),ot.send(ze)}var Te=Q("giR+"),Ne=Q("fyUT"),De=Q("7Kak"),We=Q("9yH6"),Le=We.a.Group,Be={margin:"0 8px"},Ge=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ot},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Be},"\u884C\u6570"),m.a.createElement(P.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(Ne.a,null)),m.a.createElement("span",{style:Be},"\u5217\u6570"),m.a.createElement(P.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(Ne.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(P.a.Item,{name:"align"},m.a.createElement(Le,null,m.a.createElement(We.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(We.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(We.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(We.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},oe=Q("ErOA"),ye=Q("7Cbv"),we="link",Ae="upload-image",Ue="code-block",Ve="add-table",Ze="------------",$e={default:Ze,left:":".concat(Ze),center:":".concat(Ze,":"),right:"".concat(Ze,":")},tt=Q("9VGf"),et,Je;function Me(){}var ut=0,nt=1e4,Fe="\u2581",je=` **\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 Ee(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,_e=ge?"Cmd":"Ctrl",re=["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"],ne=(et={},Object(W.a)(et,_e+"-B","bold"),Object(W.a)(et,_e+"-I","italic"),et),he=(Je={},Object(W.a)(Je,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(W.a)(Je,Ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(W.a)(Je,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(W.a)(Je,Ve,"\u6DFB\u52A0\u8868\u683C"),Je),fe=be.a=function(xe){var Pe=xe.defaultValue,ze=Pe===void 0?"":Pe,ot=xe.onChange,mt=xe.width,ft=mt===void 0?"100%":mt,wt=xe.height,St=wt===void 0?400:wt,dt=xe.miniToolbar,Ut=dt===void 0?!1:dt,Lt=xe.isFocus,qt=Lt===void 0?!1:Lt,Qt=xe.watch,It=xe.insertTemp,Ci=xe.mode,Ki=Ci===void 0?"markdown":Ci,yt=xe.id,Li=yt===void 0?"markdown-editor-id":yt,bt=xe.showResizeBar,xt=bt===void 0?!1:bt,Ft=xe.noStorage,ti=Ft===void 0?!1:Ft,di=xe.showNullButton,Pt=di===void 0?!1:di,ct=xe.hidetoolBar,Ui=ct===void 0?!1:ct,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Ot=xe.onBlur,li=xe.onCMBeforeChange,Ii=xe.onFullScreen,Xi=xe.className,Qe=Xi===void 0?"":Xi,Ct=xe.disablePaste,pr=Ct===void 0?!1:Ct,mr=xe.placeholder,gr=mr===void 0?"":mr,vr=xe.values,V=vr===void 0?"":vr,E=Object(g.useState)(null),I=Object(G.a)(E,2),H=I[0],q=I[1],z=Object(g.useState)(ze),ve=Object(G.a)(z,2),Ke=ve[0],it=ve[1],pt=Object(g.useState)(Qt),Ye=Object(G.a)(pt,2),_t=Ye[0],jt=Ye[1],$t=Object(g.useState)(Jt),ji=Object(G.a)($t,2),Ei=ji[0],xi=ji[1],Qi=Object(g.useState)(""),Ir=Object(G.a)(Qi,2),ci=Ir[0],zi=Ir[1],lr=Object(g.useState)(0),ur=Object(G.a)(lr,2),Hi=ur[0],Dr=ur[1],yr=Object(g.useState)(St),Kr=Object(G.a)(yr,2),zr=Kr[0],Zi=Kr[1],$i=Object(g.useState)(!1),br=Object(G.a)($i,2),dn=br[0],_r=br[1],ri=Object(g.useRef)(Object(ye.a)()),Ht=Object(g.useRef)(!1),yi=Object(g.useRef)(),kt=Object(g.useRef)(),ai=Object(g.useRef)(),Kt=Object(g.useRef)(),rr=Object(g.useRef)(),fi=function(){var gt=Object(U.a)(D.a.mark(function At(){var Et,Dt;return D.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(oe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ri.current}});case 2:Dt=Yt.sent,Dt!=null&&(Et=Dt.attachments)!==null&&Et!==void 0&&Et.length&&(console.log("cm:",H,kt),Dt.attachments.map(function(Nt){Nt.content_type.indexOf("image")>-1?H.replaceSelection("![,](/api/attachments/".concat(Nt.id,"?type=").concat(Nt.content_type,")")):Nt.content_type.indexOf("video")>-1?H.replaceSelection('')):Nt.content_type.indexOf("pdf")>-1?H.replaceSelection('
      ').concat(Nt.name,"")):H.replaceSelection("[".concat(Nt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Nt.id,"?type=").concat(Nt.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return gt.apply(this,arguments)}}();Object(g.useEffect)(function(){it(V),H==null||H.setValue(V)},[V]),Object(g.useEffect)(function(){Ii==null||Ii(Ei)},[Ei]),Object(g.useEffect)(function(){if(kt.current){var gt=l.a.fromTextArea(kt.current,{mode:Ki,lineNumbers:!Ut,lineWrapping:!0,value:ze,autoCloseTags:!0,autoCloseBrackets:!0});qt&>.focus();function At(Et,Dt){if(pr){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Nt=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),Ki=="stex")return;try{var ui,Di=Nt[1];((ui=Nt[0])===null||ui===void 0?void 0:ui.kind)==="file"&&(Di=Nt[0]);var Mt=Di.getAsFile(),hr=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):re.includes(hr)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){F.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return gt.on("paste",At),gt.on("dragleave",function(Et,Dt){ai.current.classList.remove("mouse-hover-md")}),gt.on("dragover",function(Et,Dt){ai.current.classList.add("mouse-hover-md")}),gt.on("drop",function(Et,Dt){ai.current.classList.add("mouse-hover-md");var Bt;if(Bt=Dt.dataTransfer.files,Bt.length>0){Dt.preventDefault(),Dt.stopPropagation();for(var Yt=function(Di){var Mt=Bt[Di],hr=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):re.includes(hr)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Nt=0;Nt0||Nt.target.offsetWidth>0)&&(Ai(),H.setSize("100%","100%"),H.refresh())}}catch(ui){Bt.e(ui)}finally{Bt.f()}});return Et.observe(kt.current.parentElement),Et}if(H){var At=gt();return function(){At.unobserve(kt.current.parentElement)}}},[H,Ai]),Object(g.useEffect)(function(){if(H){for(var gt=[],At=function(){var Nt=Dt[Et];Bt=Object(G.a)(Nt,2);var ui=Bt[0],Di=Bt[1],Mt=Object(W.a)({},ui,function(){Vr(Di)});gt.push(Mt),H.addKeyMap(Mt)},Et=0,Dt=Object.entries(ne);Et0){var gt=new Date().getTime(),At=window.sessionStorage.getItem(Li);gt>=Hi+rt&&(!At||At!==Ke)&&(window.sessionStorage.setItem(Li,Ke),_r(!0))}},rt),Object(g.useEffect)(function(){jt(Qt)},[H,Qt]),Object(g.useEffect)(function(){H&&(qt&&H.focus())},[H,qt]),Object(g.useEffect)(function(){if(_t&&H){var gt=H.getScrollerElement();function At(Et){var Dt=Et.target;if(rr.current){var Bt=Dt.scrollTop/Dt.scrollHeight;rr.current.scrollTop=rr.current.scrollHeight*Bt}}return gt.addEventListener("scroll",At),function(){gt.removeEventListener("scroll",At)}}},[H,_t]),Object(g.useEffect)(function(){if(H&&li){function gt(At,Et){li(At,Et)}return H.on("beforeChange",gt),function(){H.off("beforeChange",gt)}}},[H,li]),Object(g.useEffect)(function(){if(H&&Ot){function gt(){Ot(H.getValue())}return H.on("blur",gt),function(){H.off("blur",gt)}}},[H,Ot]),Object(g.useEffect)(function(){if(H){function gt(At){var Et=At.getValue();it(Et),Dr(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ot&&ot(Et)}return H.on("change",gt),function(){H.off("change",gt)}}},[H,ot]),Object(g.useEffect)(function(){H&&(ze==null?(H.setValue(""),it("")):ze!==H.getValue()&&(H.setValue(ze),it(ze),H.setCursor(H.lineCount(),0)))},[H,ze]);var Vr=Object(g.useCallback)(function(gt){var At=H.getCursor(),Et=H.getSelection(),Dt=Et.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ee(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,_e=ge?"Cmd":"Ctrl",ne=["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"],re=(et={},Object(W.a)(et,_e+"-B","bold"),Object(W.a)(et,_e+"-I","italic"),et),he=(Je={},Object(W.a)(Je,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(W.a)(Je,Ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(W.a)(Je,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(W.a)(Je,Ve,"\u6DFB\u52A0\u8868\u683C"),Je),fe=be.a=function(xe){var Pe=xe.defaultValue,ze=Pe===void 0?"":Pe,ot=xe.onChange,mt=xe.width,ft=mt===void 0?"100%":mt,wt=xe.height,St=wt===void 0?400:wt,dt=xe.miniToolbar,Ut=dt===void 0?!1:dt,Lt=xe.isFocus,qt=Lt===void 0?!1:Lt,Qt=xe.watch,It=xe.insertTemp,Ci=xe.mode,Ki=Ci===void 0?"markdown":Ci,yt=xe.id,Li=yt===void 0?"markdown-editor-id":yt,bt=xe.showResizeBar,xt=bt===void 0?!1:bt,Ft=xe.noStorage,ti=Ft===void 0?!1:Ft,di=xe.showNullButton,Pt=di===void 0?!1:di,ct=xe.hidetoolBar,Ui=ct===void 0?!1:ct,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Ot=xe.onBlur,li=xe.onCMBeforeChange,Ii=xe.onFullScreen,Xi=xe.className,Qe=Xi===void 0?"":Xi,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,V=yn===void 0?"":yn,E=Object(g.useState)(null),I=Object(G.a)(E,2),H=I[0],q=I[1],z=Object(g.useState)(ze),ve=Object(G.a)(z,2),Ke=ve[0],it=ve[1],pt=Object(g.useState)(Qt),Ye=Object(G.a)(pt,2),_t=Ye[0],jt=Ye[1],$t=Object(g.useState)(Jt),ji=Object(G.a)($t,2),Ei=ji[0],xi=ji[1],Qi=Object(g.useState)(""),Dn=Object(G.a)(Qi,2),ci=Dn[0],zi=Dn[1],un=Object(g.useState)(0),hn=Object(G.a)(un,2),Hi=hn[0],kn=hn[1],bn=Object(g.useState)(St),zn=Object(G.a)(bn,2),Vn=zn[0],Zi=zn[1],$i=Object(g.useState)(!1),_n=Object(G.a)($i,2),dr=_n[0],En=_n[1],ni=Object(g.useRef)(Object(ye.a)()),Ht=Object(g.useRef)(!1),yi=Object(g.useRef)(),kt=Object(g.useRef)(),ai=Object(g.useRef)(),Kt=Object(g.useRef)(),rn=Object(g.useRef)(),fi=function(){var gt=Object(U.a)(D.a.mark(function At(){var Et,Dt;return D.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(oe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ni.current}});case 2:Dt=Yt.sent,Dt!=null&&(Et=Dt.attachments)!==null&&Et!==void 0&&Et.length&&(console.log("cm:",H,kt),Dt.attachments.map(function(Nt){Nt.content_type.indexOf("image")>-1?H.replaceSelection("![,](/api/attachments/".concat(Nt.id,"?type=").concat(Nt.content_type,")")):Nt.content_type.indexOf("video")>-1?H.replaceSelection('')):Nt.content_type.indexOf("pdf")>-1?H.replaceSelection('').concat(Nt.name,"")):H.replaceSelection("[".concat(Nt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Nt.id,"?type=").concat(Nt.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return gt.apply(this,arguments)}}();Object(g.useEffect)(function(){it(V),H==null||H.setValue(V)},[V]),Object(g.useEffect)(function(){Ii==null||Ii(Ei)},[Ei]),Object(g.useEffect)(function(){if(kt.current){var gt=l.a.fromTextArea(kt.current,{mode:Ki,lineNumbers:!Ut,lineWrapping:!0,value:ze,autoCloseTags:!0,autoCloseBrackets:!0});qt&>.focus();function At(Et,Dt){if(mn){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Nt=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),Ki=="stex")return;try{var ui,Di=Nt[1];((ui=Nt[0])===null||ui===void 0?void 0:ui.kind)==="file"&&(Di=Nt[0]);var Mt=Di.getAsFile(),dn=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):ne.includes(dn)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){F.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return gt.on("paste",At),gt.on("dragleave",function(Et,Dt){ai.current.classList.remove("mouse-hover-md")}),gt.on("dragover",function(Et,Dt){ai.current.classList.add("mouse-hover-md")}),gt.on("drop",function(Et,Dt){ai.current.classList.add("mouse-hover-md");var Bt;if(Bt=Dt.dataTransfer.files,Bt.length>0){Dt.preventDefault(),Dt.stopPropagation();for(var Yt=function(Di){var Mt=Bt[Di],dn=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):ne.includes(dn)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Nt=0;Nt0||Nt.target.offsetWidth>0)&&(Ai(),H.setSize("100%","100%"),H.refresh())}}catch(ui){Bt.e(ui)}finally{Bt.f()}});return Et.observe(kt.current.parentElement),Et}if(H){var At=gt();return function(){At.unobserve(kt.current.parentElement)}}},[H,Ai]),Object(g.useEffect)(function(){if(H){for(var gt=[],At=function(){var Nt=Dt[Et];Bt=Object(G.a)(Nt,2);var ui=Bt[0],Di=Bt[1],Mt=Object(W.a)({},ui,function(){Yn(Di)});gt.push(Mt),H.addKeyMap(Mt)},Et=0,Dt=Object.entries(re);Et0){var gt=new Date().getTime(),At=window.sessionStorage.getItem(Li);gt>=Hi+nt&&(!At||At!==Ke)&&(window.sessionStorage.setItem(Li,Ke),En(!0))}},nt),Object(g.useEffect)(function(){jt(Qt)},[H,Qt]),Object(g.useEffect)(function(){H&&(qt&&H.focus())},[H,qt]),Object(g.useEffect)(function(){if(_t&&H){var gt=H.getScrollerElement();function At(Et){var Dt=Et.target;if(rn.current){var Bt=Dt.scrollTop/Dt.scrollHeight;rn.current.scrollTop=rn.current.scrollHeight*Bt}}return gt.addEventListener("scroll",At),function(){gt.removeEventListener("scroll",At)}}},[H,_t]),Object(g.useEffect)(function(){if(H&&li){function gt(At,Et){li(At,Et)}return H.on("beforeChange",gt),function(){H.off("beforeChange",gt)}}},[H,li]),Object(g.useEffect)(function(){if(H&&Ot){function gt(){Ot(H.getValue())}return H.on("blur",gt),function(){H.off("blur",gt)}}},[H,Ot]),Object(g.useEffect)(function(){if(H){function gt(At){var Et=At.getValue();it(Et),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ot&&ot(Et)}return H.on("change",gt),function(){H.off("change",gt)}}},[H,ot]),Object(g.useEffect)(function(){H&&(ze==null?(H.setValue(""),it("")):ze!==H.getValue()&&(H.setValue(ze),it(ze),H.setCursor(H.lineCount(),0)))},[H,ze]);var Yn=Object(g.useCallback)(function(gt){var At=H.getCursor(),Et=H.getSelection(),Dt=Et.split(` `);switch(gt){case"bold":return H.replaceSelection("**"+Et+"**"),Et===""&&H.setCursor(At.line,At.ch+2),H.focus();case"italic":return H.replaceSelection("*"+Et+"*"),Et===""&&H.setCursor(At.line,At.ch+1),H.focus();case"code":return H.replaceSelection("`"+Et+"`"),Et===""&&H.setCursor(At.line,At.ch+1),H.focus();case"inline-latex":return H.replaceSelection("`$$"+Et+"$$`"),Et===""&&H.setCursor(At.line,At.ch+3),H.focus();case"latex":return H.replaceSelection("```latex\n"+Et+"\n```"),H.setCursor(At.line+1,Et.length+1),H.focus();case"line-break":return H.replaceSelection(`
      `),H.focus();case"list-ul":return Et===""?H.replaceSelection("- "+Et):H.replaceSelection(Dt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(` `)),H.focus();case"list-ol":return Et===""?H.replaceSelection("1. "+Et):H.replaceSelection(Dt.map(function(Bt,Yt){return Bt===""?"":"".concat(Yt+1,". ").concat(Bt)}).join(` -`)),H.focus();case"add-null-ch":return Et===""&&H.setCursor(At.line,At.ch+1),H.replaceSelection(Fe),H.focus();case"inster-template-1":return Et===""&&H.setCursor(At.line,At.ch),H.replaceSelection(je),H.focus();case"eraser":return H.setValue(""),H.focus();case"trigger-watch":return jt(!_t),H.focus();case"trigger-full-screen":return xi(!Ei),H.focus();case we:zi(we);return;case Ue:zi(Ue);return;case Ae:zi(Ae);return;case Ve:zi(Ve);return;default:throw new Error}},[H,_t,Ei]),Er=Object(g.useCallback)(function(gt){zi("");switch(ci){case we:var At=gt.title,Et=gt.link;return H.replaceSelection("[".concat(At,"](").concat(Et,")")),H.focus();case Ue:var Dt=gt.language,Bt=gt.content;return H.replaceSelection(["```"+Dt,Bt,"```"].join(` -`)),H.focus();case Ae:var Yt=gt.src,Nt=gt.alt;return Nt?H.replaceSelection("![ ".concat(Nt," ]( ").concat(Yt,' "').concat(Nt,'" )')):H.replaceSelection("![,](".concat(Yt,")")),H.focus();case Ve:for(var ui=gt.row,Di=gt.col,Mt=gt.align,hr=` -`,Wt=0;Wt300&&(ui=300);var Di=St+ui+"px";Zi(Di)}}return gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[H,Kt]),Object(g.useEffect)(function(){Zi(St)},[St]);var nr=Ee(ft),fn=Ee(zr),qi={width:nr,height:fn},pn=Object(g.useMemo)(function(){if(Hi){var gt=new Date(Hi),At=gt.getHours(),Et=gt.getMinutes(),Dt=gt.getSeconds();return At=At<10?"0"+At:At,Et=Et<10?"0"+Et:Et,Dt=Dt<10?"0"+Dt:Dt,"".concat(At,":").concat(Et,":").concat(Dt)}return 0},[Hi]);function jn(){window.sessionStorage.removeItem(Li),_r(!1),Dr(0)}function kr(){_r(!1),Dr(0),H.setValue(window.sessionStorage.getItem(Li))}function ua(gt,At){var Et=H.getValue();Et=Et.replace(gt,At),it(Et),H==null||H.setValue(Et)}return m.a.createElement(g.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ai},m.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(_t?"on-preview":""," ").concat(Ut?"mini":""," ").concat(Ei?"full-screen":""),style:qi},m.a.createElement(v,{insertTemp:It,watch:_t,fullScreen:Ei,showNullButton:Pt,onActionCallback:Vr,hidetoolBar:Ui,uuid:ri.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:kt,placeholder:gr})),_t?m.a.createElement("div",{ref:rr,className:"preview-container"},Ki==="stex"&&m.a.createElement(L,{value:Ke}),Ki!=="stex"&&m.a.createElement(S.a,{edit:!0,value:Ke,replaces:ua})):null))),xt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(N.a,null,he[ci]?m.a.createElement($.a,{centered:!0,title:he[ci],visible:!0,onCancel:xr,footer:null,className:"markdown-popup-form"},cn):null))}},RxwV:function(st,be,Q){"use strict";var ie=Q("q1tI"),$=Q("uciX"),M=Q("2W6z"),X=Q.n(M),F=Q("4IlW"),U=Q("uK0f"),G=Q.n(U);function W(ce,pe){if(ce===pe)return!0;if(!ce||!pe)return!1;var se=ce.length;if(pe.length!==se)return!1;for(var ae=0;ae0;(Ve||Te.isLeaf===!1)&&(Ae+=" ".concat(We,"-menu-item-expand"),Te.loading||(Ue=ie.createElement("span",{className:"".concat(We,"-menu-item-expand-icon")},Be))),Le==="hover"&&(Ve||Te.isLeaf===!1)&&(we={onMouseEnter:this.delayOnSelect.bind(this,oe),onMouseLeave:this.delayOnSelect.bind(this),onClick:oe}),this.isActiveOption(Te,Ne)&&(Ae+=" ".concat(We,"-menu-item-active"),we.ref=this.saveMenuItem(Ne)),Te.disabled&&(Ae+=" ".concat(We,"-menu-item-disabled"));var Ze=null;Te.loading&&(Ae+=" ".concat(We,"-menu-item-loading"),Ze=Ge||null);var $e="";return"title"in Te?$e=Te.title:typeof Te[this.getFieldName("label")]=="string"&&($e=Te[this.getFieldName("label")]),ie.createElement("li",Object.assign({key:Te[this.getFieldName("value")],className:Ae,title:$e},we,{role:"menuitem",onMouseDown:function(et){return et.preventDefault()}}),Te[this.getFieldName("label")],Ue,Ze)}},{key:"getActiveOptions",value:function(Te){var Ne=this,De=this.props.options,We=Te||this.props.activeValue;return G()(De,function(Le,Be){return Le[Ne.getFieldName("value")]===We[Be]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Te=this,Ne=this.props.options,De=this.getActiveOptions().map(function(We){return We[Te.getFieldName("children")]}).filter(function(We){return!!We});return De.unshift(Ne),De}},{key:"delayOnSelect",value:function(Te){for(var Ne=this,De=arguments.length,We=new Array(De>1?De-1:0),Le=1;Le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ce,ae))continue;se[ae]=ce[ae]}}return se}function C(ce,pe){if(ce==null)return{};var se={},ae=Object.keys(ce),Oe,Te;for(Te=0;Te=0)continue;se[Oe]=ce[Oe]}return se}function w(ce){return y(ce)||T(ce)||c(ce)||x()}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`)),H.focus();case"add-null-ch":return Et===""&&H.setCursor(At.line,At.ch+1),H.replaceSelection(Fe),H.focus();case"inster-template-1":return Et===""&&H.setCursor(At.line,At.ch),H.replaceSelection(je),H.focus();case"eraser":return H.setValue(""),H.focus();case"trigger-watch":return jt(!_t),H.focus();case"trigger-full-screen":return xi(!Ei),H.focus();case we:zi(we);return;case Ue:zi(Ue);return;case Ae:zi(Ae);return;case Ve:zi(Ve);return;default:throw new Error}},[H,_t,Ei]),xn=Object(g.useCallback)(function(gt){zi("");switch(ci){case we:var At=gt.title,Et=gt.link;return H.replaceSelection("[".concat(At,"](").concat(Et,")")),H.focus();case Ue:var Dt=gt.language,Bt=gt.content;return H.replaceSelection(["```"+Dt,Bt,"```"].join(` +`)),H.focus();case Ae:var Yt=gt.src,Nt=gt.alt;return Nt?H.replaceSelection("![ ".concat(Nt," ]( ").concat(Yt,' "').concat(Nt,'" )')):H.replaceSelection("![,](".concat(Yt,")")),H.focus();case Ve:for(var ui=gt.row,Di=gt.col,Mt=gt.align,dn=` +`,Wt=0;Wt300&&(ui=300);var Di=St+ui+"px";Zi(Di)}}return gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[H,Kt]),Object(g.useEffect)(function(){Zi(St)},[St]);var an=Ee(ft),fr=Ee(Vn),qi={width:an,height:fr},pr=Object(g.useMemo)(function(){if(Hi){var gt=new Date(Hi),At=gt.getHours(),Et=gt.getMinutes(),Dt=gt.getSeconds();return At=At<10?"0"+At:At,Et=Et<10?"0"+Et:Et,Dt=Dt<10?"0"+Dt:Dt,"".concat(At,":").concat(Et,":").concat(Dt)}return 0},[Hi]);function jr(){window.sessionStorage.removeItem(Li),En(!1),kn(0)}function Mn(){En(!1),kn(0),H.setValue(window.sessionStorage.getItem(Li))}function ua(gt,At){var Et=H.getValue();Et=Et.replace(gt,At),it(Et),H==null||H.setValue(Et)}return m.a.createElement(g.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ai},m.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(_t?"on-preview":""," ").concat(Ut?"mini":""," ").concat(Ei?"full-screen":""),style:qi},m.a.createElement(v,{insertTemp:It,watch:_t,fullScreen:Ei,showNullButton:Pt,onActionCallback:Yn,hidetoolBar:Ui,uuid:ni.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:kt,placeholder:vn})),_t?m.a.createElement("div",{ref:rn,className:"preview-container"},Ki==="stex"&&m.a.createElement(L,{value:Ke}),Ki!=="stex"&&m.a.createElement(S.a,{edit:!0,value:Ke,replaces:ua})):null))),xt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(N.a,null,he[ci]?m.a.createElement($.a,{centered:!0,title:he[ci],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},cr):null))}},RxwV:function(st,be,Q){"use strict";var ie=Q("q1tI"),$=Q("uciX"),M=Q("2W6z"),X=Q.n(M),F=Q("4IlW"),U=Q("uK0f"),G=Q.n(U);function W(ce,pe){if(ce===pe)return!0;if(!ce||!pe)return!1;var se=ce.length;if(pe.length!==se)return!1;for(var ae=0;ae0;(Ve||Te.isLeaf===!1)&&(Ae+=" ".concat(We,"-menu-item-expand"),Te.loading||(Ue=ie.createElement("span",{className:"".concat(We,"-menu-item-expand-icon")},Be))),Le==="hover"&&(Ve||Te.isLeaf===!1)&&(we={onMouseEnter:this.delayOnSelect.bind(this,oe),onMouseLeave:this.delayOnSelect.bind(this),onClick:oe}),this.isActiveOption(Te,Ne)&&(Ae+=" ".concat(We,"-menu-item-active"),we.ref=this.saveMenuItem(Ne)),Te.disabled&&(Ae+=" ".concat(We,"-menu-item-disabled"));var Ze=null;Te.loading&&(Ae+=" ".concat(We,"-menu-item-loading"),Ze=Ge||null);var $e="";return"title"in Te?$e=Te.title:typeof Te[this.getFieldName("label")]=="string"&&($e=Te[this.getFieldName("label")]),ie.createElement("li",Object.assign({key:Te[this.getFieldName("value")],className:Ae,title:$e},we,{role:"menuitem",onMouseDown:function(et){return et.preventDefault()}}),Te[this.getFieldName("label")],Ue,Ze)}},{key:"getActiveOptions",value:function(Te){var Ne=this,De=this.props.options,We=Te||this.props.activeValue;return G()(De,function(Le,Be){return Le[Ne.getFieldName("value")]===We[Be]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Te=this,Ne=this.props.options,De=this.getActiveOptions().map(function(We){return We[Te.getFieldName("children")]}).filter(function(We){return!!We});return De.unshift(Ne),De}},{key:"delayOnSelect",value:function(Te){for(var Ne=this,De=arguments.length,We=new Array(De>1?De-1:0),Le=1;Le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ce,ae))continue;se[ae]=ce[ae]}}return se}function C(ce,pe){if(ce==null)return{};var se={},ae=Object.keys(ce),Oe,Te;for(Te=0;Te=0)continue;se[Oe]=ce[Oe]}return se}function w(ce){return y(ce)||T(ce)||c(ce)||x()}function x(){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 c(ce,pe){if(!ce)return;if(typeof ce=="string")return v(ce,pe);var se=Object.prototype.toString.call(ce).slice(8,-1);if(se==="Object"&&ce.constructor&&(se=ce.constructor.name),se==="Map"||se==="Set")return Array.from(ce);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return v(ce,pe)}function T(ce){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ce))return Array.from(ce)}function y(ce){if(Array.isArray(ce))return v(ce)}function v(ce,pe){(pe==null||pe>ce.length)&&(pe=ce.length);for(var se=0,ae=new Array(pe);se=Ge.length?0:ye):(ye-=1,ye=ye<0?Ge.length-1:ye):ye=0,Le[Be]=Ge[ye][Te.getFieldName("value")]}else if(De.keyCode===F.a.LEFT||De.keyCode===F.a.BACKSPACE)De.preventDefault(),Le.splice(Le.length-1,1);else if(De.keyCode===F.a.RIGHT)De.preventDefault(),Ge[oe]&&Ge[oe][Te.getFieldName("children")]&&Le.push(Ge[oe][Te.getFieldName("children")][0][Te.getFieldName("value")]);else if(De.keyCode===F.a.ESC||De.keyCode===F.a.TAB){Te.setPopupVisible(!1);return}(!Le||Le.length===0)&&Te.setPopupVisible(!1);var we=Te.getActiveOptions(Le),Ae=we[we.length-1];Te.handleMenuSelect(Ae,we.length-1,De),Te.props.onKeyDown&&Te.props.onKeyDown(De)},Te.saveTrigger=function(De){Te.trigger=De};var Ne=[];return"value"in Oe?Ne=Oe.value||[]:"defaultValue"in Oe&&(Ne=Oe.defaultValue||[]),X()(!("filedNames"in Oe),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Te.state={popupVisible:Oe.popupVisible,activeValue:Ne,value:Ne,prevProps:Oe},Te.defaultFieldNames={label:"label",value:"value",children:"children"},Te}return O(ae,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Te){var Ne=this.defaultFieldNames,De=this.props,We=De.fieldNames,Le=De.filedNames;return"filedNames"in this.props?Le[Te]||Ne[Te]:We[Te]||Ne[Te]}},{key:"getFieldNames",value:function(){var Te=this.props,Ne=Te.fieldNames,De=Te.filedNames;return"filedNames"in this.props?De:Ne}},{key:"getCurrentLevelOptions",value:function(){var Te=this,Ne=this.props.options,De=Ne===void 0?[]:Ne,We=this.state.activeValue,Le=We===void 0?[]:We,Be=G()(De,function(Ge,oe){return Ge[Te.getFieldName("value")]===Le[oe]},{childrenKeyName:this.getFieldName("children")});return Be[Be.length-2]?Be[Be.length-2][this.getFieldName("children")]:w(De).filter(function(Ge){return!Ge.disabled})}},{key:"getActiveOptions",value:function(Te){var Ne=this;return G()(this.props.options||[],function(De,We){return De[Ne.getFieldName("value")]===Te[We]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Te=this.props,Ne=Te.prefixCls,De=Te.transitionName,We=Te.popupClassName,Le=Te.options,Be=Le===void 0?[]:Le,Ge=Te.disabled,oe=Te.builtinPlacements,ye=Te.popupPlacement,we=Te.children,Ae=Te.dropdownRender,Ue=R(Te,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Ve=ie.createElement("div",null),Ze="";Be&&Be.length>0?Ve=ie.createElement(A,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ze=" ".concat(Ne,"-menus-empty");var $e=Ve;return Ae&&($e=Ae(Ve)),ie.createElement($.a,Object.assign({ref:this.saveTrigger},Ue,{popupPlacement:ye,builtinPlacements:oe,popupTransitionName:De,action:Ge?[]:["click"],popupVisible:Ge?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(Ne,"-menus"),popupClassName:We+Ze,popup:$e}),ie.cloneElement(we,{onKeyDown:this.handleKeyDown,tabIndex:Ge?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ne){var De=Ne.prevProps,We=De===void 0?{}:De,Le={prevProps:Te};return"value"in Te&&!W(We.value,Te.value)&&(Le.value=Te.value||[],"loadData"in Te||(Le.activeValue=Te.value||[])),"popupVisible"in Te&&(Le.popupVisible=Te.popupVisible),Le}}]),ae}(ie.Component);return ce.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:S,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ce}(),Se=ke,Ce=be.a=Se},SJMd:function(st,be){/** * @license * Copyright (C) 2006 Google Inc. @@ -324,12 +324,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * 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 Q,ie,$,M=!1,X,F;window.PR_SHOULD_USE_CONTINUATION=!0;var U,G;(function(){var W=window,i=["break,continue,do,else,for,if,return,while"],D=[i,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],g=[D,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],m=[g,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],p=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[g,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],u="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",f=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",h=[i,"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=[i,"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"],a=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],A=[m,l,p,f,o,h,s,a],_=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,S="str",L="kwd",R="com",C="typ",w="lit",x="pun",c="pln",T="tag",y="dec",v="src",N="atn",B="atv",O="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P(Le){for(var Be=0,Ge=!1,oe=!1,ye=0,we=Le.length;ye122||(re<65||_e>90||ut.push([Math.max(65,_e)|32,Math.min(re,90)|32]),re<97||_e>122||ut.push([Math.max(97,_e)&~32,Math.min(re,122)&~32]))}}ut.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ne=[],he=[],je=0;jefe[0]&&(fe[1]+1>fe[0]&&Fe.push("-"),Fe.push(Ze(fe[1])))}return Fe.push("]"),Fe.join("")}function tt(Je){for(var Me=Je.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")),ut=Me.length,rt=[],Fe=0,je=0;Fe=2&&_e==="["?Me[Fe]=$e(Ee):_e!=="\\"&&(Me[Fe]=Ee.replace(/[a-zA-Z]/g,function(he){var fe=he.charCodeAt(0);return"["+String.fromCharCode(fe&~32,fe|32)+"]"}))}return Me.join("")}for(var et=[],ye=0,we=Le.length;ye|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P(Le){for(var Be=0,Ge=!1,oe=!1,ye=0,we=Le.length;ye122||(ne<65||_e>90||ut.push([Math.max(65,_e)|32,Math.min(ne,90)|32]),ne<97||_e>122||ut.push([Math.max(97,_e)&~32,Math.min(ne,122)&~32]))}}ut.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var re=[],he=[],je=0;jefe[0]&&(fe[1]+1>fe[0]&&Fe.push("-"),Fe.push(Ze(fe[1])))}return Fe.push("]"),Fe.join("")}function tt(Je){for(var Me=Je.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")),ut=Me.length,nt=[],Fe=0,je=0;Fe=2&&_e==="["?Me[Fe]=$e(Ee):_e!=="\\"&&(Me[Fe]=Ee.replace(/[a-zA-Z]/g,function(he){var fe=he.charCodeAt(0);return"["+String.fromCharCode(fe&~32,fe|32)+"]"}))}return Me.join("")}for(var et=[],ye=0,we=Le.length;ye=0;)Ge[et.charAt(Je)]=tt;var Me=tt[1],ut=""+Me;Ve.hasOwnProperty(ut)||(Ue.push(Me),Ve[ut]=null)}Ue.push(/[\0-\uffff]/),oe=P(Ue)})();var ye=Be.length,we=function(Ae){for(var Ue=Ae.sourceCode,Ve=Ae.basePos,Ze=Ae.sourceNode,$e=[Ve,c],tt=0,et=Ue.match(oe)||[],Je={},Me=0,ut=et.length;Me=5&&Fe.substring(0,5)==="lang-",Ee&&!(je&&typeof je[1]=="string")&&(Ee=!1,Fe=v),Ee||(Je[rt]=Fe)}var re=tt;if(tt+=rt.length,!Ee)$e.push(Ve+re,Fe);else{var ne=je[1],he=rt.indexOf(ne),fe=he+ne.length;je[2]&&(fe=rt.length-je[2].length,he=fe-ne.length);var xe=Fe.substring(5);Y(Ze,Ve+re,rt.substring(0,he),we,$e),Y(Ze,Ve+re+he,ne,ae(xe,ne),$e),Y(Ze,Ve+re+fe,rt.substring(fe),we,$e)}}Ae.decorations=$e};return we}function ke(Le){var Be=[],Ge=[];Le.tripleQuotedStrings?Be.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Le.multiLineStrings?Be.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Be.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Le.verbatimStrings&&Ge.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var oe=Le.hashComments;oe&&(Le.cStyleComments?(oe>1?Be.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Be.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ge.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Be.push([R,/^#[^\r\n]*/,null,"#"])),Le.cStyleComments&&(Ge.push([R,/^\/\/[^\r\n]*/,null]),Ge.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=Le.regexLiterals;if(ye){var we=ye>1?"":` +`):et=et.replace(/[ \t\r\n]+/g," "),oe[Ae]=et,we[Ae<<1]=ye,ye+=et.length,we[Ae++<<1|1]=Ve)}}return Ue(Le),{sourceCode:oe.join("").replace(/\n$/,""),spans:we}}function Y(Le,Be,Ge,oe,ye){if(!Ge)return;var we={sourceNode:Le,pre:1,langExtension:null,numberLines:null,sourceCode:Ge,spans:null,basePos:Be,decorations:null};oe(we),ye.push.apply(ye,we.decorations)}var ee=/\S/;function le(Le){for(var Be=void 0,Ge=Le.firstChild;Ge;Ge=Ge.nextSibling){var oe=Ge.nodeType;Be=oe===1?Be?Le:Ge:oe===3&&ee.test(Ge.nodeValue)?Le:Be}return Be===Le?void 0:Be}function ue(Le,Be){var Ge={},oe;(function(){for(var Ae=Le.concat(Be),Ue=[],Ve={},Ze=0,$e=Ae.length;Ze<$e;++Ze){var tt=Ae[Ze],et=tt[3];if(et)for(var Je=et.length;--Je>=0;)Ge[et.charAt(Je)]=tt;var Me=tt[1],ut=""+Me;Ve.hasOwnProperty(ut)||(Ue.push(Me),Ve[ut]=null)}Ue.push(/[\0-\uffff]/),oe=P(Ue)})();var ye=Be.length,we=function(Ae){for(var Ue=Ae.sourceCode,Ve=Ae.basePos,Ze=Ae.sourceNode,$e=[Ve,c],tt=0,et=Ue.match(oe)||[],Je={},Me=0,ut=et.length;Me=5&&Fe.substring(0,5)==="lang-",Ee&&!(je&&typeof je[1]=="string")&&(Ee=!1,Fe=v),Ee||(Je[nt]=Fe)}var ne=tt;if(tt+=nt.length,!Ee)$e.push(Ve+ne,Fe);else{var re=je[1],he=nt.indexOf(re),fe=he+re.length;je[2]&&(fe=nt.length-je[2].length,he=fe-re.length);var xe=Fe.substring(5);Y(Ze,Ve+ne,nt.substring(0,he),we,$e),Y(Ze,Ve+ne+he,re,ae(xe,re),$e),Y(Ze,Ve+ne+fe,nt.substring(fe),we,$e)}}Ae.decorations=$e};return we}function ke(Le){var Be=[],Ge=[];Le.tripleQuotedStrings?Be.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Le.multiLineStrings?Be.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Be.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Le.verbatimStrings&&Ge.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var oe=Le.hashComments;oe&&(Le.cStyleComments?(oe>1?Be.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Be.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ge.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Be.push([R,/^#[^\r\n]*/,null,"#"])),Le.cStyleComments&&(Ge.push([R,/^\/\/[^\r\n]*/,null]),Ge.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=Le.regexLiterals;if(ye){var we=ye>1?"":` \r`,Ae=we?".":"[\\S\\s]",Ue="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Ge.push(["lang-regex",RegExp("^"+j+"("+Ue+")")])}var Ve=Le.types;Ve&&Ge.push([C,Ve]);var Ze=(""+Le.keywords).replace(/^ | $/g,"");Ze.length&&Ge.push([L,new RegExp("^(?:"+Ze.replace(/[\s,]+/g,"|")+")\\b"),null]),Be.push([c,/^\s+/,null,` \r - \xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Le.regexLiterals&&($e+="(?!s*/)"),Ge.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[x,new RegExp($e),null]),ue(Be,Ge)}var Se=ke({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ce(Le,Be,Ge){for(var oe=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,we=Le.ownerDocument,Ae=we.createElement("li");Le.firstChild;)Ae.appendChild(Le.firstChild);var Ue=[Ae];function Ve(Me){var ut=Me.nodeType;if(ut==1&&!oe.test(Me.className))if(Me.nodeName==="br")Ze(Me),Me.parentNode&&Me.parentNode.removeChild(Me);else for(var rt=Me.firstChild;rt;rt=rt.nextSibling)Ve(rt);else if((ut==3||ut==4)&&Ge){var Fe=Me.nodeValue,je=Fe.match(ye);if(je){var Ee=Fe.substring(0,je.index);Me.nodeValue=Ee;var ge=Fe.substring(je.index+je[0].length);if(ge){var _e=Me.parentNode;_e.insertBefore(we.createTextNode(ge),Me.nextSibling)}Ze(Me),Ee||Me.parentNode.removeChild(Me)}}}function Ze(Me){for(;!Me.nextSibling;)if(Me=Me.parentNode,!Me)return;function ut(je,Ee){var ge=Ee?je.cloneNode(!1):je,_e=je.parentNode;if(_e){var re=ut(_e,1),ne=je.nextSibling;re.appendChild(ge);for(var he=ne;he;he=ne)ne=he.nextSibling,re.appendChild(he)}return ge}for(var rt=ut(Me.nextSibling,0),Fe;(Fe=rt.parentNode)&&Fe.nodeType===1;)rt=Fe;Ue.push(rt)}for(var $e=0;$e=_e&&(Ve+=2),we>=re&&(tt+=2)}}finally{Fe&&(Fe.style.display=je)}}var pe={};function se(Le,Be){for(var Ge=Be.length;--Ge>=0;){var oe=Be[Ge];pe.hasOwnProperty(oe)?W.console&&console.warn("cannot override language handler %s",oe):pe[oe]=Le}}function ae(Le,Be){return Le&&pe.hasOwnProperty(Le)||(Le=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[x,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),se(ue([[c,/^[\s]+/,null,` \r -`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[x,/^[=<>\/]+/],["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"]),se(ue([],[[B,/^[\s\S]+/]]),["uq.val"]),se(ke({keywords:m,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),se(ke({keywords:"null,true,false"}),["json"]),se(ke({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),se(ke({keywords:p,cStyleComments:!0}),["java"]),se(ke({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(ke({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(ke({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(ke({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(ke({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(ke({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(ue([],[[S,/^[\s\S]+/]]),["regex"]);function Oe(Le){var Be=Le.langExtension;try{var Ge=b(Le.sourceNode,Le.pre),oe=Ge.sourceCode;Le.sourceCode=oe,Le.spans=Ge.spans,Le.basePos=0,ae(Be,oe)(Le),ce(Le)}catch(ye){W.console&&console.log(ye&&ye.stack||ye)}}function Te(Le,Be,Ge){var oe=Ge||!1,ye=Be||null,we=document.createElement("div");we.innerHTML="
      "+Le+"
      ",we=we.firstChild,oe&&Ce(we,oe,!0);var Ae={langExtension:ye,numberLines:oe,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Oe(Ae),we.innerHTML}function Ne(Le,Be){var Ge=Be||document.body,oe=Ge.ownerDocument||document;function ye(ge){return Ge.getElementsByTagName(ge)}for(var we=[ye("pre"),ye("code"),ye("xmp")],Ae=[],Ue=0;Ue=0),F.set("isFirefox",X.indexOf("Firefox")>=0),F.set("isChrome",X.indexOf("Chrome")>=0),F.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class G{static has(O){return m.create(O)}static equals(O,j){return p.create(O,j)}static regex(O,j){return S.create(O,j)}static not(O){return o.create(O)}static and(...O){return C.create(O,null)}static or(...O){return w.create(O,null,!0)}static deserialize(O,j=!1){return O?this._deserializeOrExpression(O,j):void 0}static _deserializeOrExpression(O,j){let P=O.split("||");return w.create(P.map(b=>this._deserializeAndExpression(b,j)),null,!0)}static _deserializeAndExpression(O,j){let P=O.split("&&");return C.create(P.map(b=>this._deserializeOne(b,j)),null)}static _deserializeOne(O,j){if(O=O.trim(),O.indexOf("!=")>=0){let P=O.split("!=");return f.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("==")>=0){let P=O.split("==");return p.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("=~")>=0){let P=O.split("=~");return S.create(P[0].trim(),this._deserializeRegexValue(P[1],j))}if(O.indexOf(" in ")>=0){let P=O.split(" in ");return l.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(O)){const P=O.split(">=");return a.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(O)){const P=O.split(">");return s.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(O)){const P=O.split("<=");return _.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(O)){const P=O.split("<");return A.create(P[0].trim(),P[1].trim())}return/^\!\s*/.test(O)?o.create(O.substr(1).trim()):m.create(O)}static _deserializeValue(O,j){if(O=O.trim(),O==="true")return!0;if(O==="false")return!1;let P=/^'([^']*)'$/.exec(O);return P?P[1].trim():O}static _deserializeRegexValue(O,j){if(Object($.C)(O)){if(j)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let P=O.indexOf("/"),b=O.lastIndexOf("/");if(P===b||P<0){if(j)throw new Error(`bad regexp-value '${O}', missing /-enclosure`);return console.warn(`bad regexp-value '${O}', missing /-enclosure`),null}let Y=O.slice(P+1,b),ee=O[b+1]==="i"?"i":"";try{return new RegExp(Y,ee)}catch(le){if(j)throw new Error(`bad regexp-value '${O}', parse error: ${le}`);return console.warn(`bad regexp-value '${O}', parse error: ${le}`),null}}}function W(O,j){const P=O?O.substituteConstants():void 0,b=j?j.substituteConstants():void 0;return!P&&!b?!0:!P||!b?!1:P.equals(b)}function i(O,j){return O.cmp(j)}class D{constructor(){this.type=0}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}D.INSTANCE=new D;class g{constructor(){this.type=1}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}g.INSTANCE=new g;class m{constructor(O,j){this.key=O,this.negated=j,this.type=2}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?g.INSTANCE:D.INSTANCE:new m(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?g.INSTANCE:D.INSTANCE:this}evaluate(O){return!!O.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class p{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=4}static create(O,j,P=null){if(typeof j=="boolean")return j?m.create(O,P):o.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?g.INSTANCE:D.INSTANCE}return new p(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?g.INSTANCE:D.INSTANCE}return this}evaluate(O){return O.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class l{constructor(O,j){this.key=O,this.valueKey=j,this.type=10,this.negated=null}static create(O,j){return new l(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.valueKey,O.key,O.valueKey)}equals(O){return O.type===this.type?this.key===O.key&&this.valueKey===O.valueKey:!1}substituteConstants(){return this}evaluate(O){const j=O.getValue(this.valueKey),P=O.getValue(this.key);return Array.isArray(j)?j.indexOf(P)>=0:typeof P=="string"&&typeof j=="object"&&j!==null?U.call(j,P):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(O){this._actual=O,this.type=11}static create(O){return new u(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=5}static create(O,j,P=null){if(typeof j=="boolean")return j?o.create(O,P):m.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?D.INSTANCE:g.INSTANCE}return new f(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?D.INSTANCE:g.INSTANCE}return this}evaluate(O){return O.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class o{constructor(O,j){this.key=O,this.negated=j,this.type=3}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?D.INSTANCE:g.INSTANCE:new o(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?D.INSTANCE:g.INSTANCE:this}evaluate(O){return!O.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function h(O,j){if(typeof O=="string"){const P=parseFloat(O);isNaN(P)||(O=P)}return typeof O=="string"||typeof O=="number"?j(O):D.INSTANCE}class s{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=12}static create(O,j,P=null){return h(j,b=>new s(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class a{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=13}static create(O,j,P=null){return h(j,b=>new a(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class A{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=14}static create(O,j,P=null){return h(j,b=>new A(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))new _(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 S{constructor(O,j){this.key=O,this.regexp=j,this.type=7,this.negated=null}static create(O,j){return new S(O,j)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.keyO.key)return 1;const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return jP?1:0}equals(O){if(O.type===this.type){const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return this.key===O.key&&j===P}return!1}substituteConstants(){return this}evaluate(O){let j=O.getValue(this.key);return this.regexp?this.regexp.test(j):!1}serialize(){const O=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${O}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(O){this._actual=O,this.type=8}static create(O){return new L(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(O){let j=null;for(let P=0,b=O.length;PO.expr.length)return 1;for(let j=0,P=this.expr.length;j1;){const Y=P[P.length-1];if(Y.type!==9)break;P.pop();const ee=P.pop(),le=P.length===0,ue=w.create(Y.expr.map(ke=>C.create([ke,ee],null)),null,le);ue&&(P.push(ue),P.sort(i))}return P.length===1?P[0]:new C(P,j)}serialize(){return this.expr.map(O=>O.serialize()).join(" && ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){const O=[];for(let j of this.expr)O.push(j.negate());this.negated=w.create(O,this,!0)}return this.negated}}class w{constructor(O,j){this.expr=O,this.negated=j,this.type=9}static create(O,j,P){return w._normalizeArr(O,j,P)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.expr.lengthO.expr.length)return 1;for(let j=0,P=this.expr.length;jO.serialize()).join(" || ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){let O=[];for(let j of this.expr)O.push(j.negate());for(;O.length>1;){const j=O.shift(),P=O.shift(),b=[];for(const ee of B(j))for(const le of B(P))b.push(C.create([ee,le],null));const Y=O.length===0;O.unshift(w.create(b,null,Y))}this.negated=O[0]}return this.negated}}class x extends m{constructor(O,j,P){super(O,null);this._defaultValue=j,typeof P=="object"?x._info.push(Object.assign(Object.assign({},P),{key:O})):P!==!0&&x._info.push({key:O,description:P,type:j!=null?typeof j:void 0})}static all(){return x._info.values()}bindTo(O){return O.createKey(this.key,this._defaultValue)}getValue(O){return O.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(O){return p.create(this.key,O)}}x._info=[];const c=Object(M.c)("contextKeyService"),T="setContext";function y(O,j){return Oj?1:0}function v(O,j,P,b){return OP?1:jb?1:0}function N(O,j){if(j.type===6&&O.type!==9&&O.type!==6){for(const Y of j.expr)if(O.equals(Y))return!0}const P=O.negate(),b=B(P).concat(B(j));b.sort(i);for(let Y=0;Y=0;l--)if(this.__items[l].match(p))return!0;return!1},D.prototype.set_indent=function(p,l){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},D.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)},D.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},D.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},D.prototype.is_empty=function(){return this.__items.length===0},D.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},D.prototype.push=function(p){this.__items.push(p);var l=p.lastIndexOf(` + \xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Le.regexLiterals&&($e+="(?!s*/)"),Ge.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[x,new RegExp($e),null]),ue(Be,Ge)}var Se=ke({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ce(Le,Be,Ge){for(var oe=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,we=Le.ownerDocument,Ae=we.createElement("li");Le.firstChild;)Ae.appendChild(Le.firstChild);var Ue=[Ae];function Ve(Me){var ut=Me.nodeType;if(ut==1&&!oe.test(Me.className))if(Me.nodeName==="br")Ze(Me),Me.parentNode&&Me.parentNode.removeChild(Me);else for(var nt=Me.firstChild;nt;nt=nt.nextSibling)Ve(nt);else if((ut==3||ut==4)&&Ge){var Fe=Me.nodeValue,je=Fe.match(ye);if(je){var Ee=Fe.substring(0,je.index);Me.nodeValue=Ee;var ge=Fe.substring(je.index+je[0].length);if(ge){var _e=Me.parentNode;_e.insertBefore(we.createTextNode(ge),Me.nextSibling)}Ze(Me),Ee||Me.parentNode.removeChild(Me)}}}function Ze(Me){for(;!Me.nextSibling;)if(Me=Me.parentNode,!Me)return;function ut(je,Ee){var ge=Ee?je.cloneNode(!1):je,_e=je.parentNode;if(_e){var ne=ut(_e,1),re=je.nextSibling;ne.appendChild(ge);for(var he=re;he;he=re)re=he.nextSibling,ne.appendChild(he)}return ge}for(var nt=ut(Me.nextSibling,0),Fe;(Fe=nt.parentNode)&&Fe.nodeType===1;)nt=Fe;Ue.push(nt)}for(var $e=0;$e=_e&&(Ve+=2),we>=ne&&(tt+=2)}}finally{Fe&&(Fe.style.display=je)}}var pe={};function se(Le,Be){for(var Ge=Be.length;--Ge>=0;){var oe=Be[Ge];pe.hasOwnProperty(oe)?W.console&&console.warn("cannot override language handler %s",oe):pe[oe]=Le}}function ae(Le,Be){return Le&&pe.hasOwnProperty(Le)||(Le=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[x,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),se(ue([[c,/^[\s]+/,null,` \r +`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[x,/^[=<>\/]+/],["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"]),se(ue([],[[B,/^[\s\S]+/]]),["uq.val"]),se(ke({keywords:m,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),se(ke({keywords:"null,true,false"}),["json"]),se(ke({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),se(ke({keywords:p,cStyleComments:!0}),["java"]),se(ke({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(ke({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(ke({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(ke({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(ke({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(ke({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(ue([],[[S,/^[\s\S]+/]]),["regex"]);function Oe(Le){var Be=Le.langExtension;try{var Ge=b(Le.sourceNode,Le.pre),oe=Ge.sourceCode;Le.sourceCode=oe,Le.spans=Ge.spans,Le.basePos=0,ae(Be,oe)(Le),ce(Le)}catch(ye){W.console&&console.log(ye&&ye.stack||ye)}}function Te(Le,Be,Ge){var oe=Ge||!1,ye=Be||null,we=document.createElement("div");we.innerHTML="
      "+Le+"
      ",we=we.firstChild,oe&&Ce(we,oe,!0);var Ae={langExtension:ye,numberLines:oe,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Oe(Ae),we.innerHTML}function Ne(Le,Be){var Ge=Be||document.body,oe=Ge.ownerDocument||document;function ye(ge){return Ge.getElementsByTagName(ge)}for(var we=[ye("pre"),ye("code"),ye("xmp")],Ae=[],Ue=0;Ue=0),F.set("isFirefox",X.indexOf("Firefox")>=0),F.set("isChrome",X.indexOf("Chrome")>=0),F.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class G{static has(O){return m.create(O)}static equals(O,j){return p.create(O,j)}static regex(O,j){return S.create(O,j)}static not(O){return o.create(O)}static and(...O){return C.create(O,null)}static or(...O){return w.create(O,null,!0)}static deserialize(O,j=!1){return O?this._deserializeOrExpression(O,j):void 0}static _deserializeOrExpression(O,j){let P=O.split("||");return w.create(P.map(b=>this._deserializeAndExpression(b,j)),null,!0)}static _deserializeAndExpression(O,j){let P=O.split("&&");return C.create(P.map(b=>this._deserializeOne(b,j)),null)}static _deserializeOne(O,j){if(O=O.trim(),O.indexOf("!=")>=0){let P=O.split("!=");return f.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("==")>=0){let P=O.split("==");return p.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("=~")>=0){let P=O.split("=~");return S.create(P[0].trim(),this._deserializeRegexValue(P[1],j))}if(O.indexOf(" in ")>=0){let P=O.split(" in ");return l.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(O)){const P=O.split(">=");return a.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(O)){const P=O.split(">");return s.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(O)){const P=O.split("<=");return _.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(O)){const P=O.split("<");return A.create(P[0].trim(),P[1].trim())}return/^\!\s*/.test(O)?o.create(O.substr(1).trim()):m.create(O)}static _deserializeValue(O,j){if(O=O.trim(),O==="true")return!0;if(O==="false")return!1;let P=/^'([^']*)'$/.exec(O);return P?P[1].trim():O}static _deserializeRegexValue(O,j){if(Object($.C)(O)){if(j)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let P=O.indexOf("/"),b=O.lastIndexOf("/");if(P===b||P<0){if(j)throw new Error(`bad regexp-value '${O}', missing /-enclosure`);return console.warn(`bad regexp-value '${O}', missing /-enclosure`),null}let Y=O.slice(P+1,b),ee=O[b+1]==="i"?"i":"";try{return new RegExp(Y,ee)}catch(le){if(j)throw new Error(`bad regexp-value '${O}', parse error: ${le}`);return console.warn(`bad regexp-value '${O}', parse error: ${le}`),null}}}function W(O,j){const P=O?O.substituteConstants():void 0,b=j?j.substituteConstants():void 0;return!P&&!b?!0:!P||!b?!1:P.equals(b)}function i(O,j){return O.cmp(j)}class D{constructor(){this.type=0}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}D.INSTANCE=new D;class g{constructor(){this.type=1}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}g.INSTANCE=new g;class m{constructor(O,j){this.key=O,this.negated=j,this.type=2}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?g.INSTANCE:D.INSTANCE:new m(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?g.INSTANCE:D.INSTANCE:this}evaluate(O){return!!O.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class p{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=4}static create(O,j,P=null){if(typeof j=="boolean")return j?m.create(O,P):o.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?g.INSTANCE:D.INSTANCE}return new p(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?g.INSTANCE:D.INSTANCE}return this}evaluate(O){return O.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class l{constructor(O,j){this.key=O,this.valueKey=j,this.type=10,this.negated=null}static create(O,j){return new l(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.valueKey,O.key,O.valueKey)}equals(O){return O.type===this.type?this.key===O.key&&this.valueKey===O.valueKey:!1}substituteConstants(){return this}evaluate(O){const j=O.getValue(this.valueKey),P=O.getValue(this.key);return Array.isArray(j)?j.indexOf(P)>=0:typeof P=="string"&&typeof j=="object"&&j!==null?U.call(j,P):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(O){this._actual=O,this.type=11}static create(O){return new u(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=5}static create(O,j,P=null){if(typeof j=="boolean")return j?o.create(O,P):m.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?D.INSTANCE:g.INSTANCE}return new f(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?D.INSTANCE:g.INSTANCE}return this}evaluate(O){return O.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class o{constructor(O,j){this.key=O,this.negated=j,this.type=3}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?D.INSTANCE:g.INSTANCE:new o(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?D.INSTANCE:g.INSTANCE:this}evaluate(O){return!O.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function h(O,j){if(typeof O=="string"){const P=parseFloat(O);isNaN(P)||(O=P)}return typeof O=="string"||typeof O=="number"?j(O):D.INSTANCE}class s{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=12}static create(O,j,P=null){return h(j,b=>new s(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class a{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=13}static create(O,j,P=null){return h(j,b=>new a(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class A{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=14}static create(O,j,P=null){return h(j,b=>new A(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))new _(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 S{constructor(O,j){this.key=O,this.regexp=j,this.type=7,this.negated=null}static create(O,j){return new S(O,j)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.keyO.key)return 1;const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return jP?1:0}equals(O){if(O.type===this.type){const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return this.key===O.key&&j===P}return!1}substituteConstants(){return this}evaluate(O){let j=O.getValue(this.key);return this.regexp?this.regexp.test(j):!1}serialize(){const O=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${O}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(O){this._actual=O,this.type=8}static create(O){return new L(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(O){let j=null;for(let P=0,b=O.length;PO.expr.length)return 1;for(let j=0,P=this.expr.length;j1;){const Y=P[P.length-1];if(Y.type!==9)break;P.pop();const ee=P.pop(),le=P.length===0,ue=w.create(Y.expr.map(ke=>C.create([ke,ee],null)),null,le);ue&&(P.push(ue),P.sort(i))}return P.length===1?P[0]:new C(P,j)}serialize(){return this.expr.map(O=>O.serialize()).join(" && ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){const O=[];for(let j of this.expr)O.push(j.negate());this.negated=w.create(O,this,!0)}return this.negated}}class w{constructor(O,j){this.expr=O,this.negated=j,this.type=9}static create(O,j,P){return w._normalizeArr(O,j,P)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.expr.lengthO.expr.length)return 1;for(let j=0,P=this.expr.length;jO.serialize()).join(" || ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){let O=[];for(let j of this.expr)O.push(j.negate());for(;O.length>1;){const j=O.shift(),P=O.shift(),b=[];for(const ee of B(j))for(const le of B(P))b.push(C.create([ee,le],null));const Y=O.length===0;O.unshift(w.create(b,null,Y))}this.negated=O[0]}return this.negated}}class x extends m{constructor(O,j,P){super(O,null);this._defaultValue=j,typeof P=="object"?x._info.push(Object.assign(Object.assign({},P),{key:O})):P!==!0&&x._info.push({key:O,description:P,type:j!=null?typeof j:void 0})}static all(){return x._info.values()}bindTo(O){return O.createKey(this.key,this._defaultValue)}getValue(O){return O.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(O){return p.create(this.key,O)}}x._info=[];const c=Object(M.c)("contextKeyService"),T="setContext";function y(O,j){return Oj?1:0}function v(O,j,P,b){return OP?1:jb?1:0}function N(O,j){if(j.type===6&&O.type!==9&&O.type!==6){for(const Y of j.expr)if(O.equals(Y))return!0}const P=O.negate(),b=B(P).concat(B(j));b.sort(i);for(let Y=0;Y=0;l--)if(this.__items[l].match(p))return!0;return!1},D.prototype.set_indent=function(p,l){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},D.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)},D.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},D.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},D.prototype.is_empty=function(){return this.__items.length===0},D.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},D.prototype.push=function(p){this.__items.push(p);var l=p.lastIndexOf(` `);l!==-1?this.__character_count=p.length-l:this.__character_count+=p.length},D.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},D.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},D.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},D.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},D.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,l){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),l=l||"",p.indent_level>0&&(l=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}g.prototype.get_indent_size=function(p,l){var u=this.__base_string_length;return l=l||0,p<0&&(u=0),u+=p*this.__indent_size,u+=l,u},g.prototype.get_indent_string=function(p,l){var u=this.__base_string;return l=l||0,p<0&&(p=0,u=""),l+=p*this.__indent_size,this.__ensure_cache(l),u+=this.__cache[l],u},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,l=0,u="";this.__indent_size&&p>=this.__indent_size&&(l=Math.floor(p/this.__indent_size),p-=l*this.__indent_size,u=new Array(l+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,l){this.__indent_cache=new g(p,l),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new D(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,l){return this.__indent_cache.get_indent_string(p,l)},m.prototype.get_indent_size=function(p,l){return this.__indent_cache.get_indent_size(p,l)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` `&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(` `);return p!==` @@ -343,30 +343,30 @@ You passed in: '`+this.raw_options[p]+"'");return f},D.prototype._is_valid_selec `&&((C===0||C0&&this._indentLevel--},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L=this._source_text,R=this._options.eol;R==="auto"&&(R=` `,L&&o.test(L||"")&&(R=L.match(o)[0])),L=L.replace(h,` `);var C=L.match(/^[\t ]*/)[0];this._output=new p(this._options,C),this._input=new l(L),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var w=0,x=!1,c=!1,T=!1,y=!1,v=!1,N=!1,B=this._ch,O=!1,j,P,b;j=this._input.read(a),P=j!=="",b=B,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),B=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var Y=this._input.read(A),ee=f.get_directives(Y);ee&&ee.ignore==="start"&&(Y+=f.readIgnored(this._input)),this.print_string(Y),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(_)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(P),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var le=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);le.match(/[ :]$/)&&(le=this.eatString(": ").replace(/\s$/,""),this.print_string(le),this._output.space_before_token=!0),le=le.replace(/\s$/,""),le==="extend"?y=!0:le==="import"&&(v=!0),le in this.NESTED_AT_RULE?(this._nestedLevel+=1,le in this.CONDITIONAL_GROUP_RULE&&(T=!0)):!x&&w===0&&le.indexOf(":")!==-1&&(c=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(P),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")c&&(c=!1,this.outdent()),T?(T=!1,x=this._indentLevel>=this._nestedLevel):x=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&x&&(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)):(b==="("?this._output.space_before_token=!1:b!==","&&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(),b==="{"&&this._output.trim(!0),v=!1,y=!1,c&&(this.outdent(),c=!1),this.print_string(this._ch),x=!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 ue=0;ue"||this._ch==="+"||this._ch==="~")&&!c&&w===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(P),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=b==='"'||b==="'";this.preserveSingleSpace(Ce||P),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&O&&this._output.add_new_line()}var ce=this._output.get_code(R);return ce},i.exports.Beautifier=S},function(i,D,g){var m=g(6).Options;function p(l){m.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o` ${g} `).trim():""}class G{constructor(i,D,g){this.id=i,this.definition=D,this.description=g,M.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var W;(function(i){i.iconNameSegment="[A-Za-z0-9]+",i.iconNameExpression="[A-Za-z0-9\\-]+",i.iconModifierExpression="~[A-Za-z]+";const D=new RegExp(`^(${i.iconNameExpression})(${i.iconModifierExpression})?$`);function g(l){if(l instanceof G)return["codicon","codicon-"+l.id];const u=D.exec(l.id);if(!u)return g(G.error);let[,f,o]=u;const h=["codicon","codicon-"+f];return o&&h.push("codicon-modifier-"+o.substr(1)),h}i.asClassNameArray=g;function m(l){return g(l).join(" ")}i.asClassName=m;function p(l){return"."+g(l).join(".")}i.asCSSSelector=p})(W||(W={})),function(i){i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.debugStackframeDot=new i("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"})}(G||(G={}))},"VrN/":function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";var ie=navigator.userAgent,$=navigator.platform,M=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),F=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),G=X||F||U,W=G&&(X?document.documentMode||6:+(U||F)[1]),i=!U&&/WebKit\//.test(ie),D=i&&/Qt\/\d+\.\d+/.test(ie),g=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),o=/Android/.test(ie),h=f||o||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test($),a=/\bCrOS\b/.test(ie),A=/win/i.test($),_=m&&ie.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(m=!1,i=!0);var S=s&&(D||m&&(_==null||_<12.11)),L=M||G&&W>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var n=e.className,r=R(t).exec(n);if(r){var d=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(d?r[1]+d:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return w(e).appendChild(t)}function c(e,t,n,r){var d=document.createElement(e);if(n&&(d.className=n),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return K+(t-k);K+=J-k,K+=n-K%n,k=J+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(K,t-d);if(d+=k-r,d+=n-d%n,r=k+1,d>=t)return r}}var se=[""];function ae(e){for(;se.length<=e;)se.push(Oe(se)+" ");return se[e]}function Oe(e){return e[e.length-1]}function Te(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Ge(e,t){return t?t.source.indexOf("\\w")>-1&&Be(e)?!0:t.test(e):Be(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ye=/[\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 we(e){return e.charCodeAt(0)>=768&&ye.test(e)}function Ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var d=(t+n)/2,k=r<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:n;e(k)?n=k:t=k+r}}function Ve(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var d=!1,k=0;kt||t==n&&K.to==t)&&(r(Math.max(K.from,t),Math.min(K.to,n),K.level==1?"rtl":"ltr",k),d=!0)}d||r(t,n,"ltr")}var Ze=null;function $e(e,t,n){var r;Ze=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&n=="before"?r=d:Ze=d),k.from==t&&(k.from!=k.to&&n!="before"?r=d:Ze=d)}return r!=null?r:Ze}var tt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,K=/[Lb1n]/,J=/[1n]/;function Z(te,de,me){this.level=te,this.from=de,this.to=me}return function(te,de){var me=de=="ltr"?"L":"R";if(te.length==0||de=="ltr"&&!r.test(te))return!1;for(var Ie=te.length,Re=[],He=0;He-1&&(r[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function Fe(e,t){var n=ut(e,t);if(!n.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function _e(e){e.prototype.on=function(t,n){Me(this,t,n)},e.prototype.off=function(t,n){rt(this,t,n)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ne(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function fe(e){re(e),ne(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var ze=function(){if(G&&W<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ot;function mt(e){if(ot==null){var t=c("span","\u200B");x(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(G&&W<8))}var n=ot?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var ft;function wt(e){if(ft!=null)return ft;var t=x(e,document.createTextNode("A\u062EA")),n=y(t,0,1).getBoundingClientRect(),r=y(t,1,2).getBoundingClientRect();return w(e),!n||n.left==n.right?!1:ft=r.right-n.right<3}var St=` +`&&O&&this._output.add_new_line()}var ce=this._output.get_code(R);return ce},i.exports.Beautifier=S},function(i,D,g){var m=g(6).Options;function p(l){m.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o` ${g} `).trim():""}class G{constructor(i,D,g){this.id=i,this.definition=D,this.description=g,M.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var W;(function(i){i.iconNameSegment="[A-Za-z0-9]+",i.iconNameExpression="[A-Za-z0-9\\-]+",i.iconModifierExpression="~[A-Za-z]+";const D=new RegExp(`^(${i.iconNameExpression})(${i.iconModifierExpression})?$`);function g(l){if(l instanceof G)return["codicon","codicon-"+l.id];const u=D.exec(l.id);if(!u)return g(G.error);let[,f,o]=u;const h=["codicon","codicon-"+f];return o&&h.push("codicon-modifier-"+o.substr(1)),h}i.asClassNameArray=g;function m(l){return g(l).join(" ")}i.asClassName=m;function p(l){return"."+g(l).join(".")}i.asCSSSelector=p})(W||(W={})),function(i){i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.debugStackframeDot=new i("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"})}(G||(G={}))},"VrN/":function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";var ie=navigator.userAgent,$=navigator.platform,M=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),F=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),G=X||F||U,W=G&&(X?document.documentMode||6:+(U||F)[1]),i=!U&&/WebKit\//.test(ie),D=i&&/Qt\/\d+\.\d+/.test(ie),g=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),o=/Android/.test(ie),h=f||o||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test($),a=/\bCrOS\b/.test(ie),A=/win/i.test($),_=m&&ie.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(m=!1,i=!0);var S=s&&(D||m&&(_==null||_<12.11)),L=M||G&&W>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var r=e.className,n=R(t).exec(r);if(n){var d=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(d?n[1]+d:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return w(e).appendChild(t)}function c(e,t,r,n){var d=document.createElement(e);if(r&&(d.className=r),n&&(d.style.cssText=n),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return K+(t-k);K+=J-k,K+=r-K%r,k=J+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(K,t-d);if(d+=k-n,d+=r-d%r,n=k+1,d>=t)return n}}var se=[""];function ae(e){for(;se.length<=e;)se.push(Oe(se)+" ");return se[e]}function Oe(e){return e[e.length-1]}function Te(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Ge(e,t){return t?t.source.indexOf("\\w")>-1&&Be(e)?!0:t.test(e):Be(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ye=/[\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 we(e){return e.charCodeAt(0)>=768&&ye.test(e)}function Ae(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var d=(t+r)/2,k=n<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:r;e(k)?r=k:t=k+n}}function Ve(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var d=!1,k=0;kt||t==r&&K.to==t)&&(n(Math.max(K.from,t),Math.min(K.to,r),K.level==1?"rtl":"ltr",k),d=!0)}d||n(t,r,"ltr")}var Ze=null;function $e(e,t,r){var n;Ze=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&r=="before"?n=d:Ze=d),k.from==t&&(k.from!=k.to&&r!="before"?n=d:Ze=d)}return n!=null?n:Ze}var tt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,K=/[Lb1n]/,J=/[1n]/;function Z(te,de,me){this.level=te,this.from=de,this.to=me}return function(te,de){var me=de=="ltr"?"L":"R";if(te.length==0||de=="ltr"&&!n.test(te))return!1;for(var Ie=te.length,Re=[],He=0;He-1&&(n[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function Fe(e,t){var r=ut(e,t);if(!r.length)return;for(var n=Array.prototype.slice.call(arguments,2),d=0;d0}function _e(e){e.prototype.on=function(t,r){Me(this,t,r)},e.prototype.off=function(t,r){nt(this,t,r)}}function ne(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function fe(e){ne(e),re(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var ze=function(){if(G&&W<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ot;function mt(e){if(ot==null){var t=c("span","\u200B");x(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(G&&W<8))}var r=ot?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var ft;function wt(e){if(ft!=null)return ft;var t=x(e,document.createTextNode("A\u062EA")),r=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return w(e),!r||r.left==r.right?!1:ft=n.right-r.right<3}var St=` -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var d=e.indexOf(` -`,t);d==-1&&(d=e.length);var k=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),K=k.indexOf("\r");K!=-1?(n.push(k.slice(0,K)),t+=K+1):(n.push(k),t=d+1)}return n}:function(e){return e.split(/\r\n?|\n/)},dt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Ut=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Lt=null;function qt(e){if(Lt!=null)return Lt;var t=x(e,c("span","x")),n=t.getBoundingClientRect(),r=y(t,0,1).getBoundingClientRect();return Lt=Math.abs(n.left-r.left)>1}var Qt={},It={};function Ci(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qt[e]=t}function Ki(e,t){It[e]=t}function yt(e){if(typeof e=="string"&&It.hasOwnProperty(e))e=It[e];else if(e&&typeof e.name=="string"&&It.hasOwnProperty(e.name)){var t=It[e.name];typeof t=="string"&&(t={name:t}),e=We(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Li(e,t){t=yt(t);var n=Qt[t.name];if(!n)return Li(e,"text/plain");var r=n(e,t);if(bt.hasOwnProperty(t.name)){var d=bt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;r.hasOwnProperty(k)&&(r["_"+k]=r[k]),r[k]=d[k]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var K in t.modeProps)r[K]=t.modeProps[K];return r}var bt={};function xt(e,t){var n=bt.hasOwnProperty(e)?bt[e]:bt[e]={};b(t,n)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),n[r]=d}return n}function ti(e,t){for(var n;e.innerMode&&!(n=e.innerMode(t),!n||n.mode==e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function di(e,t,n){return e.startState?e.startState(t,n):!0}var Pt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ct(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var d=n.children[r],k=d.chunkSize();if(t=e.first&&tn?Qe(n,ct(e,n).text.length):I(t,ct(e,t.line).text.length)}function I(e,t){var n=e.ch;return n==null||n>t?Qe(e.line,t):n<0?Qe(e.line,0):e}function H(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},z.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},z.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},z.fromSaved=function(e,t,n){return t instanceof q?new z(e,Ft(e.mode,t.state),n,t.lookAhead):new z(e,Ft(e.mode,t),n)},z.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new q(t,this.maxLookAhead):t};function ve(e,t,n,r){var d=[e.state.modeGen],k={};Ei(e,t.text,e.doc.mode,n,function(te,de){return d.push(te,de)},k,r);for(var K=n.state,J=function(te){n.baseTokens=d;var de=e.state.overlays[te],me=1,Ie=0;n.state=!0,Ei(e,t.text,de.mode,n,function(Re,He){for(var Xe=me;IeRe&&d.splice(me,1,Re,d[me+1],qe),me+=2,Ie=Math.min(Re,qe)}if(!He)return;if(de.opaque)d.splice(Xe,me-Xe,Re,"overlay "+He),me=Xe+2;else for(;Xee.options.maxHighlightLength&&Ft(e.doc.mode,r.state),k=ve(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function it(e,t,n){var r=e.doc,d=e.display;if(!r.mode.startState)return new z(r,!0,t);var k=xi(e,t,n),K=k>r.first&&ct(r,k-1).stateAfter,J=K?z.fromSaved(r,K,k):new z(r,di(r.mode),k);return r.iter(k,t,function(Z){pt(e,Z.text,J);var te=J.line;Z.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function $t(e,t,n,r){var d=e.doc,k=d.mode,K;t=E(d,t);var J=ct(d,t.line),Z=it(e,t.line,n),te=new Pt(J.text,e.options.tabSize,Z),de;for(r&&(de=[]);(r||te.pose.options.maxHighlightLength?(J=!1,K&&pt(e,t,r,de.pos),de.pos=t.length,me=null):me=ji(_t(n,de,r.state,Ie),k),Ie){var Re=Ie[0].name;Re&&(me="m-"+(me?Re+" "+me:Re))}if(!J||te!=me){for(;ZK;--J){if(J<=k.first)return k.first;var Z=ct(k,J-1),te=Z.stateAfter;if(te&&(!n||J+(te instanceof q?te.lookAhead:0)<=k.modeFrontier))return J;var de=Y(Z.text,null,e.options.tabSize);(d==null||r>de)&&(d=J-1,r=de)}return d}function Qi(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiern;r--){var d=ct(e,r).stateAfter;if(d&&(!(d instanceof q)||r+d.lookAhead=t:k.to>t);(r||(r=[])).push(new ur(K,k.from,Z?null:k.to))}}return r}function zr(e,t,n){var r;if(e)for(var d=0;d=t:k.to>t);if(J||k.from==t&&K.type=="bookmark"&&(!n||k.marker.insertLeft)){var Z=k.from==null||(K.inclusiveLeft?k.from<=t:k.from0&&J)for(var ht=0;ht0)continue;var de=[Z,1],me=Ct(te.from,J.from),Ie=Ct(te.to,J.to);(me<0||!K.inclusiveLeft&&!me)&&de.push({from:te.from,to:J.from}),(Ie>0||!K.inclusiveRight&&!Ie)&&de.push({from:J.to,to:te.to}),d.splice.apply(d,de),Z+=de.length-3}return d}function dn(e){var t=e.markedSpans;if(!t)return;for(var n=0;nt)&&(!r||yi(r,k.marker)<0)&&(r=k.marker)}return r}function fi(e,t,n,r,d){var k=ct(e,t),K=ci&&k.markedSpans;if(K)for(var J=0;J=0&&me<=0||de<=0&&me>=0)continue;if(de<=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,n)>=0:Ct(te.to,n)>0)||de>=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,r)<=0:Ct(te.from,r)<0))return!0}}function Ai(e){for(var t;t=ai(e);)e=t.find(-1,!0).line;return e}function Vr(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function Er(e){for(var t,n;t=Kt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function cn(e,t){var n=ct(e,t),r=Ai(n);return n==r?t:Ot(r)}function xr(e,t){if(t>e.lastLine())return t;var n=ct(e,t),r;if(!nr(e,n))return t;for(;r=Kt(n);)n=r.find(1,!0).line;return Ot(n)+1}function nr(e,t){var n=ci&&t.markedSpans;if(n)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var kr=function(e,t,n){this.text=e,_r(this,t),this.height=n?n(this):1};kr.prototype.lineNo=function(){return Ot(this)},_e(kr);function ua(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),dn(e),_r(e,n);var d=r?r(e):1;d!=e.height&&Jt(e,d)}function gt(e){e.parent=null,dn(e)}var At={},Et={};function Dt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Et:At;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var n=T("span",null,null,i?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,K=void 0;r.pos=0,r.addToken=Nt,wt(e.display.measure)&&(K=et(k,e.doc.direction))&&(r.addToken=Di(r.addToken,K)),r.map=[];var J=t!=e.display.externalMeasured&&Ot(k);hr(k,r,Ke(e,k,J)),k.styleClasses&&(k.styleClasses.bgClass&&(r.bgClass=O(k.styleClasses.bgClass,r.bgClass||"")),k.styleClasses.textClass&&(r.textClass=O(k.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(mt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(i){var Z=r.content.lastChild;(/\bcm-tab\b/.test(Z.className)||Z.querySelector&&Z.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=O(r.pre.className,r.textClass||"")),r}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Nt(e,t,n,r,d,k,K){if(!t)return;var J=e.splitSpaces?ui(t,e.trailingSpace):t,Z=e.cm.state.specialChars,te=!1,de;if(!Z.test(t))e.col+=t.length,de=document.createTextNode(J),e.map.push(e.pos,e.pos+t.length,de),G&&W<9&&(te=!0),e.pos+=t.length;else{de=document.createDocumentFragment();for(var me=0;;){Z.lastIndex=me;var Ie=Z.exec(t),Re=Ie?Ie.index-me:t.length-me;if(Re){var He=document.createTextNode(J.slice(me,me+Re));G&&W<9?de.appendChild(c("span",[He])):de.appendChild(He),e.map.push(e.pos,e.pos+Re,He),e.col+=Re,e.pos+=Re}if(!Ie)break;me+=Re+1;var Xe=void 0;if(Ie[0]==" "){var qe=e.cm.options.tabSize,nt=qe-e.col%qe;Xe=de.appendChild(c("span",ae(nt),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),e.col+=nt}else Ie[0]=="\r"||Ie[0]==` -`?(Xe=de.appendChild(c("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xe.setAttribute("cm-text",Ie[0]),e.col+=1):(Xe=e.cm.options.specialCharPlaceholder(Ie[0]),Xe.setAttribute("cm-text",Ie[0]),G&&W<9?de.appendChild(c("span",[Xe])):de.appendChild(Xe),e.col+=1);e.map.push(e.pos,e.pos+1,Xe),e.pos++}}if(e.trailingSpace=J.charCodeAt(t.length-1)==32,n||r||d||te||k||K){var lt=n||"";r&&(lt+=r),d&&(lt+=d);var at=c("span",[de],lt,k);if(K)for(var ht in K)K.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&at.setAttribute(ht,K[ht]);return e.content.appendChild(at)}e.content.appendChild(de)}function ui(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",d=0;dte&&me.from<=te);Ie++);if(me.to>=de)return e(n,r,d,k,K,J,Z);e(n,r.slice(0,me.to-te),d,k,null,J,Z),k=null,r=r.slice(me.to-te),te=me.to}}}function Mt(e,t,n,r){var d=!r&&n.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",n.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function hr(e,t,n){var r=e.markedSpans,d=e.text,k=0;if(!r){for(var K=1;KZ||Rt.collapsed&&vt.to==Z&&vt.from==Z)){if(vt.to!=null&&vt.to!=Z&&Re>vt.to&&(Re=vt.to,Xe=""),Rt.className&&(He+=" "+Rt.className),Rt.css&&(Ie=(Ie?Ie+";":"")+Rt.css),Rt.startStyle&&vt.from==Z&&(qe+=" "+Rt.startStyle),Rt.endStyle&&vt.to==Re&&(ht||(ht=[])).push(Rt.endStyle,vt.to),Rt.title&&((lt||(lt={})).title=Rt.title),Rt.attributes)for(var Xt in Rt.attributes)(lt||(lt={}))[Xt]=Rt.attributes[Xt];Rt.collapsed&&(!nt||yi(nt.marker,Rt)<0)&&(nt=vt)}else vt.from>Z&&Re>vt.from&&(Re=vt.from)}if(ht)for(var gi=0;gi=J)break;for(var Gi=Math.min(J,Re);;){if(de){var Ni=Z+de.length;if(!nt){var si=Ni>Gi?de.slice(0,Gi-Z):de;t.addToken(t,si,me?me+He:He,qe,Z+si.length==Re?Xe:"",Ie,lt)}if(Ni>=Gi){de=de.slice(Gi-Z),Z=Gi;break}Z=Ni,qe=""}de=d.slice(k,k=n[te++]),me=Dt(n[te++],t.cm.options)}}}function Wt(e,t,n){this.line=t,this.rest=Er(t),this.size=this.rest?Ot(Oe(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nr(e,t)}function ki(e,t,n){for(var r=[],d,k=t;k2&&k.push((Z.bottom+te.top)/2-n.top)}}k.push(n.bottom-n.top)}}function es(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Uo(e,t){t=Ai(t);var n=Ot(t),r=e.display.externalMeasured=new Wt(e.doc,t,n);r.lineN=n;var d=r.built=Bt(e,r);return r.text=d.pre,x(e.display.lineMeasure,d.pre),r}function ts(e,t,n,r){return sr(e,Yr(e,t),n,r)}function fa(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(k=Z-J,d=k-1,t>=Z&&(K="right")),d!=null){if(r=e[te+2],J==Z&&n==(r.insertLeft?"left":"right")&&(K=n),n=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)r=e[(te-=3)+2],K="left";if(n=="right"&&d==Z-J)for(;te=0&&!((n=e[d]).left!=n.right);d--);return n}function Ho(e,t,n,r){var d=rs(t.map,n,r),k=d.node,K=d.start,J=d.end,Z=d.collapse,te;if(k.nodeType==3){for(var de=0;de<4;de++){for(;K&&we(t.line.text.charAt(d.coverStart+K));)--K;for(;d.coverStart+J0&&(Z=r="right");var me;e.options.lineWrapping&&(me=k.getClientRects()).length>1?te=me[r=="right"?me.length-1:0]:te=k.getBoundingClientRect()}if(G&&W<9&&!K&&(!te||!te.left&&!te.right)){var Ie=k.parentNode.getClientRects()[0];Ie?te={left:Ie.left,right:Ie.left+$r(e.display),top:Ie.top,bottom:Ie.bottom}:te=is}for(var Re=te.top-t.rect.top,He=te.bottom-t.rect.top,Xe=(Re+He)/2,qe=t.view.measure.heights,nt=0;nt=r.text.length?(Z=r.text.length,te="before"):Z<=0&&(Z=0,te="after"),!J)return K(te=="before"?Z-1:Z,te=="before");function de(He,Xe,qe){var nt=J[Xe],lt=nt.level==1;return K(qe?He-1:He,lt!=qe)}var me=$e(J,Z,te),Ie=Ze,Re=de(Z,me,te=="before");return Ie!=null&&(Re.other=de(Z,Ie,te!="before")),Re}function us(e,t){var n=0;t=E(e.doc,t),e.options.lineWrapping||(n=$r(e.display)*t.ch);var r=ct(e.doc,t.line),d=qi(r)+Hn(e.display);return{left:n,right:n,top:d,bottom:d+r.height}}function ga(e,t,n,r,d){var k=Qe(e,t,n);return k.xRel=d,r&&(k.outside=r),k}function va(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return ga(r.first,0,null,-1,-1);var d=li(r,n),k=r.first+r.size-1;if(d>k)return ga(r.first+r.size-1,ct(r,k).text.length,null,1,1);t<0&&(t=0);for(var K=ct(r,d);;){var J=Go(e,K,d,t,n),Z=rr(K,J.ch+(J.xRel>0||J.outside>0?1:0));if(!Z)return J;var te=Z.find(1);if(te.line==d)return te;K=ct(r,d=te.line)}}function hs(e,t,n,r){r-=pa(t);var d=t.text.length,k=Ue(function(K){return sr(e,n,K-1).bottom<=r},d,0);return d=Ue(function(K){return sr(e,n,K).top>r},k,d),{begin:k,end:d}}function ds(e,t,n,r){n||(n=Yr(e,t));var d=Wn(e,t,sr(e,n,r),"line").top;return hs(e,t,n,d)}function ya(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Go(e,t,n,r,d){d-=qi(t);var k=Yr(e,t),K=pa(t),J=0,Z=t.text.length,te=!0,de=et(t,e.doc.direction);if(de){var me=(e.options.lineWrapping?zo:Ko)(e,t,n,k,de,r,d);te=me.level!=1,J=te?me.from:me.to-1,Z=te?me.to:me.from-1}var Ie=null,Re=null,He=Ue(function(Tt){var vt=sr(e,k,Tt);return vt.top+=K,vt.bottom+=K,ya(vt,r,d,!1)?(vt.top<=d&&vt.left<=r&&(Ie=Tt,Re=vt),!0):!1},J,Z),Xe,qe,nt=!1;if(Re){var lt=r-Re.left=ht.bottom?1:0}return He=Ae(t.text,He,1),ga(n,He,qe,nt,r-Xe)}function Ko(e,t,n,r,d,k,K){var J=Ue(function(me){var Ie=d[me],Re=Ie.level!=1;return ya(er(e,Qe(n,Re?Ie.to:Ie.from,Re?"before":"after"),"line",t,r),k,K,!0)},0,d.length-1),Z=d[J];if(J>0){var te=Z.level!=1,de=er(e,Qe(n,te?Z.from:Z.to,te?"after":"before"),"line",t,r);ya(de,k,K,!0)&&de.top>K&&(Z=d[J-1])}return Z}function zo(e,t,n,r,d,k,K){var J=hs(e,t,r,K),Z=J.begin,te=J.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var de=null,me=null,Ie=0;Ie=te||Re.to<=Z)continue;var He=Re.level!=1,Xe=sr(e,r,He?Math.min(te,Re.to)-1:Math.max(Z,Re.from)).right,qe=Xeqe)&&(de=Re,me=qe)}return de||(de=d[d.length-1]),de.fromte&&(de={from:de.from,to:te,level:de.level}),de}var Pr;function Xr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Pr==null){Pr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Pr.appendChild(document.createTextNode("x")),Pr.appendChild(c("br"));Pr.appendChild(document.createTextNode("x"))}x(e.measure,Pr);var n=Pr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function $r(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,n={},r={},d=t.gutters.clientLeft,k=t.gutters.firstChild,K=0;k;k=k.nextSibling,++K){var J=e.display.gutterSpecs[K].className;n[J]=k.offsetLeft+k.clientLeft+d,r[J]=k.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=Xr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/$r(e.display)-3);return function(d){if(nr(e.doc,d))return 0;var k=0;if(d.widgets)for(var K=0;K0&&(te=ct(e.doc,Z.line).text).length==Z.ch){var de=Y(te,te.length,e.options.tabSize)-te.length;Z=Qe(Z.line,Math.max(0,Math.round((k-qa(e.display).left)/$r(e.display))-de))}return Z}function Fr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)ci&&cn(e.doc,t)d.viewFrom?wr(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&n>=d.viewTo)wr(e);else if(t<=d.viewFrom){var k=Gn(e,n,n+r,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=r):wr(e)}else if(n>=d.viewTo){var K=Gn(e,t,t,-1);K?(d.view=d.view.slice(0,K.index),d.viewTo=K.lineN):wr(e)}else{var J=Gn(e,t,t,-1),Z=Gn(e,n,n+r,1);J&&Z?(d.view=d.view.slice(0,J.index).concat(ki(e,J.lineN,Z.lineN)).concat(d.view.slice(Z.index)),d.viewTo+=r):wr(e)}var te=d.externalMeasured;te&&(n=d.lineN&&t=r.viewTo)return;var k=r.view[Fr(e,t)];if(k.node==null)return;var K=k.changes||(k.changes=[]);le(K,n)==-1&&K.push(n)}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gn(e,t,n,r){var d=Fr(e,t),k,K=e.display.view;if(!ci||n==e.doc.first+e.doc.size)return{index:d,lineN:n};for(var J=e.display.viewFrom,Z=0;Z0){if(d==K.length-1)return null;k=J+K[d].size-t,d++}else k=J-t;t+=k,n+=k}for(;cn(e.doc,n)!=n;){if(d==(r<0?0:K.length-1))return null;n+=r*K[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:n}}function Vo(e,t,n){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=ki(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ki(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Fr(e,n)))),r.viewTo=n}function fs(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||J.to().line1}var Qt={},It={};function Ci(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qt[e]=t}function Ki(e,t){It[e]=t}function yt(e){if(typeof e=="string"&&It.hasOwnProperty(e))e=It[e];else if(e&&typeof e.name=="string"&&It.hasOwnProperty(e.name)){var t=It[e.name];typeof t=="string"&&(t={name:t}),e=We(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Li(e,t){t=yt(t);var r=Qt[t.name];if(!r)return Li(e,"text/plain");var n=r(e,t);if(bt.hasOwnProperty(t.name)){var d=bt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;n.hasOwnProperty(k)&&(n["_"+k]=n[k]),n[k]=d[k]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var K in t.modeProps)n[K]=t.modeProps[K];return n}var bt={};function xt(e,t){var r=bt.hasOwnProperty(e)?bt[e]:bt[e]={};b(t,r)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var d=t[n];d instanceof Array&&(d=d.concat([])),r[n]=d}return r}function ti(e,t){for(var r;e.innerMode&&!(r=e.innerMode(t),!r||r.mode==e);)t=r.state,e=r.mode;return r||{mode:e,state:t}}function di(e,t,r){return e.startState?e.startState(t,r):!0}var Pt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ct(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var d=r.children[n],k=d.chunkSize();if(t=e.first&&tr?Qe(r,ct(e,r).text.length):I(t,ct(e,t.line).text.length)}function I(e,t){var r=e.ch;return r==null||r>t?Qe(e.line,t):r<0?Qe(e.line,0):e}function H(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},z.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},z.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},z.fromSaved=function(e,t,r){return t instanceof q?new z(e,Ft(e.mode,t.state),r,t.lookAhead):new z(e,Ft(e.mode,t),r)},z.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new q(t,this.maxLookAhead):t};function ve(e,t,r,n){var d=[e.state.modeGen],k={};Ei(e,t.text,e.doc.mode,r,function(te,de){return d.push(te,de)},k,n);for(var K=r.state,J=function(te){r.baseTokens=d;var de=e.state.overlays[te],me=1,Ie=0;r.state=!0,Ei(e,t.text,de.mode,r,function(Re,He){for(var Xe=me;IeRe&&d.splice(me,1,Re,d[me+1],qe),me+=2,Ie=Math.min(Re,qe)}if(!He)return;if(de.opaque)d.splice(Xe,me-Xe,Re,"overlay "+He),me=Xe+2;else for(;Xee.options.maxHighlightLength&&Ft(e.doc.mode,n.state),k=ve(e,t,n);d&&(n.state=d),t.stateAfter=n.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function it(e,t,r){var n=e.doc,d=e.display;if(!n.mode.startState)return new z(n,!0,t);var k=xi(e,t,r),K=k>n.first&&ct(n,k-1).stateAfter,J=K?z.fromSaved(n,K,k):new z(n,di(n.mode),k);return n.iter(k,t,function(Z){pt(e,Z.text,J);var te=J.line;Z.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function $t(e,t,r,n){var d=e.doc,k=d.mode,K;t=E(d,t);var J=ct(d,t.line),Z=it(e,t.line,r),te=new Pt(J.text,e.options.tabSize,Z),de;for(n&&(de=[]);(n||te.pose.options.maxHighlightLength?(J=!1,K&&pt(e,t,n,de.pos),de.pos=t.length,me=null):me=ji(_t(r,de,n.state,Ie),k),Ie){var Re=Ie[0].name;Re&&(me="m-"+(me?Re+" "+me:Re))}if(!J||te!=me){for(;ZK;--J){if(J<=k.first)return k.first;var Z=ct(k,J-1),te=Z.stateAfter;if(te&&(!r||J+(te instanceof q?te.lookAhead:0)<=k.modeFrontier))return J;var de=Y(Z.text,null,e.options.tabSize);(d==null||n>de)&&(d=J-1,n=de)}return d}function Qi(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontierr;n--){var d=ct(e,n).stateAfter;if(d&&(!(d instanceof q)||n+d.lookAhead=t:k.to>t);(n||(n=[])).push(new hn(K,k.from,Z?null:k.to))}}return n}function Vn(e,t,r){var n;if(e)for(var d=0;d=t:k.to>t);if(J||k.from==t&&K.type=="bookmark"&&(!r||k.marker.insertLeft)){var Z=k.from==null||(K.inclusiveLeft?k.from<=t:k.from0&&J)for(var ht=0;ht0)continue;var de=[Z,1],me=Ct(te.from,J.from),Ie=Ct(te.to,J.to);(me<0||!K.inclusiveLeft&&!me)&&de.push({from:te.from,to:J.from}),(Ie>0||!K.inclusiveRight&&!Ie)&&de.push({from:J.to,to:te.to}),d.splice.apply(d,de),Z+=de.length-3}return d}function dr(e){var t=e.markedSpans;if(!t)return;for(var r=0;rt)&&(!n||yi(n,k.marker)<0)&&(n=k.marker)}return n}function fi(e,t,r,n,d){var k=ct(e,t),K=ci&&k.markedSpans;if(K)for(var J=0;J=0&&me<=0||de<=0&&me>=0)continue;if(de<=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,r)>=0:Ct(te.to,r)>0)||de>=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ai(e){for(var t;t=ai(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,r;t=Kt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function cr(e,t){var r=ct(e,t),n=Ai(r);return r==n?t:Ot(n)}function Tn(e,t){if(t>e.lastLine())return t;var r=ct(e,t),n;if(!an(e,r))return t;for(;n=Kt(r);)r=n.find(1,!0).line;return Ot(r)+1}function an(e,t){var r=ci&&t.markedSpans;if(r)for(var n=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=n)})}var Mn=function(e,t,r){this.text=e,En(this,t),this.height=r?r(this):1};Mn.prototype.lineNo=function(){return Ot(this)},_e(Mn);function ua(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),dr(e),En(e,r);var d=n?n(e):1;d!=e.height&&Jt(e,d)}function gt(e){e.parent=null,dr(e)}var At={},Et={};function Dt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Et:At;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var r=T("span",null,null,i?"padding-right: .1px":null),n={pre:T("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,K=void 0;n.pos=0,n.addToken=Nt,wt(e.display.measure)&&(K=et(k,e.doc.direction))&&(n.addToken=Di(n.addToken,K)),n.map=[];var J=t!=e.display.externalMeasured&&Ot(k);dn(k,n,Ke(e,k,J)),k.styleClasses&&(k.styleClasses.bgClass&&(n.bgClass=O(k.styleClasses.bgClass,n.bgClass||"")),k.styleClasses.textClass&&(n.textClass=O(k.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(mt(e.display.measure))),d==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(i){var Z=n.content.lastChild;(/\bcm-tab\b/.test(Z.className)||Z.querySelector&&Z.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=O(n.pre.className,n.textClass||"")),n}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Nt(e,t,r,n,d,k,K){if(!t)return;var J=e.splitSpaces?ui(t,e.trailingSpace):t,Z=e.cm.state.specialChars,te=!1,de;if(!Z.test(t))e.col+=t.length,de=document.createTextNode(J),e.map.push(e.pos,e.pos+t.length,de),G&&W<9&&(te=!0),e.pos+=t.length;else{de=document.createDocumentFragment();for(var me=0;;){Z.lastIndex=me;var Ie=Z.exec(t),Re=Ie?Ie.index-me:t.length-me;if(Re){var He=document.createTextNode(J.slice(me,me+Re));G&&W<9?de.appendChild(c("span",[He])):de.appendChild(He),e.map.push(e.pos,e.pos+Re,He),e.col+=Re,e.pos+=Re}if(!Ie)break;me+=Re+1;var Xe=void 0;if(Ie[0]==" "){var qe=e.cm.options.tabSize,rt=qe-e.col%qe;Xe=de.appendChild(c("span",ae(rt),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),e.col+=rt}else Ie[0]=="\r"||Ie[0]==` +`?(Xe=de.appendChild(c("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xe.setAttribute("cm-text",Ie[0]),e.col+=1):(Xe=e.cm.options.specialCharPlaceholder(Ie[0]),Xe.setAttribute("cm-text",Ie[0]),G&&W<9?de.appendChild(c("span",[Xe])):de.appendChild(Xe),e.col+=1);e.map.push(e.pos,e.pos+1,Xe),e.pos++}}if(e.trailingSpace=J.charCodeAt(t.length-1)==32,r||n||d||te||k||K){var lt=r||"";n&&(lt+=n),d&&(lt+=d);var at=c("span",[de],lt,k);if(K)for(var ht in K)K.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&at.setAttribute(ht,K[ht]);return e.content.appendChild(at)}e.content.appendChild(de)}function ui(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",d=0;dte&&me.from<=te);Ie++);if(me.to>=de)return e(r,n,d,k,K,J,Z);e(r,n.slice(0,me.to-te),d,k,null,J,Z),k=null,n=n.slice(me.to-te),te=me.to}}}function Mt(e,t,r,n){var d=!n&&r.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!n&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",r.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function dn(e,t,r){var n=e.markedSpans,d=e.text,k=0;if(!n){for(var K=1;KZ||Rt.collapsed&&vt.to==Z&&vt.from==Z)){if(vt.to!=null&&vt.to!=Z&&Re>vt.to&&(Re=vt.to,Xe=""),Rt.className&&(He+=" "+Rt.className),Rt.css&&(Ie=(Ie?Ie+";":"")+Rt.css),Rt.startStyle&&vt.from==Z&&(qe+=" "+Rt.startStyle),Rt.endStyle&&vt.to==Re&&(ht||(ht=[])).push(Rt.endStyle,vt.to),Rt.title&&((lt||(lt={})).title=Rt.title),Rt.attributes)for(var Xt in Rt.attributes)(lt||(lt={}))[Xt]=Rt.attributes[Xt];Rt.collapsed&&(!rt||yi(rt.marker,Rt)<0)&&(rt=vt)}else vt.from>Z&&Re>vt.from&&(Re=vt.from)}if(ht)for(var gi=0;gi=J)break;for(var Gi=Math.min(J,Re);;){if(de){var Ni=Z+de.length;if(!rt){var si=Ni>Gi?de.slice(0,Gi-Z):de;t.addToken(t,si,me?me+He:He,qe,Z+si.length==Re?Xe:"",Ie,lt)}if(Ni>=Gi){de=de.slice(Gi-Z),Z=Gi;break}Z=Ni,qe=""}de=d.slice(k,k=r[te++]),me=Dt(r[te++],t.cm.options)}}}function Wt(e,t,r){this.line=t,this.rest=xn(t),this.size=this.rest?Ot(Oe(this.rest))-r+1:1,this.node=this.text=null,this.hidden=an(e,t)}function ki(e,t,r){for(var n=[],d,k=t;k2&&k.push((Z.bottom+te.top)/2-r.top)}}k.push(r.bottom-r.top)}}function es(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;nr)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Uo(e,t){t=Ai(t);var r=Ot(t),n=e.display.externalMeasured=new Wt(e.doc,t,r);n.lineN=r;var d=n.built=Bt(e,n);return n.text=d.pre,x(e.display.lineMeasure,d.pre),n}function ts(e,t,r,n){return on(e,Xn(e,t),r,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(k=Z-J,d=k-1,t>=Z&&(K="right")),d!=null){if(n=e[te+2],J==Z&&r==(n.insertLeft?"left":"right")&&(K=r),r=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],K="left";if(r=="right"&&d==Z-J)for(;te=0&&!((r=e[d]).left!=r.right);d--);return r}function Ho(e,t,r,n){var d=ns(t.map,r,n),k=d.node,K=d.start,J=d.end,Z=d.collapse,te;if(k.nodeType==3){for(var de=0;de<4;de++){for(;K&&we(t.line.text.charAt(d.coverStart+K));)--K;for(;d.coverStart+J0&&(Z=n="right");var me;e.options.lineWrapping&&(me=k.getClientRects()).length>1?te=me[n=="right"?me.length-1:0]:te=k.getBoundingClientRect()}if(G&&W<9&&!K&&(!te||!te.left&&!te.right)){var Ie=k.parentNode.getClientRects()[0];Ie?te={left:Ie.left,right:Ie.left+Jn(e.display),top:Ie.top,bottom:Ie.bottom}:te=is}for(var Re=te.top-t.rect.top,He=te.bottom-t.rect.top,Xe=(Re+He)/2,qe=t.view.measure.heights,rt=0;rt=n.text.length?(Z=n.text.length,te="before"):Z<=0&&(Z=0,te="after"),!J)return K(te=="before"?Z-1:Z,te=="before");function de(He,Xe,qe){var rt=J[Xe],lt=rt.level==1;return K(qe?He-1:He,lt!=qe)}var me=$e(J,Z,te),Ie=Ze,Re=de(Z,me,te=="before");return Ie!=null&&(Re.other=de(Z,Ie,te!="before")),Re}function us(e,t){var r=0;t=E(e.doc,t),e.options.lineWrapping||(r=Jn(e.display)*t.ch);var n=ct(e.doc,t.line),d=qi(n)+Hr(e.display);return{left:r,right:r,top:d,bottom:d+n.height}}function ga(e,t,r,n,d){var k=Qe(e,t,r);return k.xRel=d,n&&(k.outside=n),k}function va(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return ga(n.first,0,null,-1,-1);var d=li(n,r),k=n.first+n.size-1;if(d>k)return ga(n.first+n.size-1,ct(n,k).text.length,null,1,1);t<0&&(t=0);for(var K=ct(n,d);;){var J=Go(e,K,d,t,r),Z=rn(K,J.ch+(J.xRel>0||J.outside>0?1:0));if(!Z)return J;var te=Z.find(1);if(te.line==d)return te;K=ct(n,d=te.line)}}function hs(e,t,r,n){n-=pa(t);var d=t.text.length,k=Ue(function(K){return on(e,r,K-1).bottom<=n},d,0);return d=Ue(function(K){return on(e,r,K).top>n},k,d),{begin:k,end:d}}function ds(e,t,r,n){r||(r=Xn(e,t));var d=Wr(e,t,on(e,r,n),"line").top;return hs(e,t,r,d)}function ya(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Go(e,t,r,n,d){d-=qi(t);var k=Xn(e,t),K=pa(t),J=0,Z=t.text.length,te=!0,de=et(t,e.doc.direction);if(de){var me=(e.options.lineWrapping?zo:Ko)(e,t,r,k,de,n,d);te=me.level!=1,J=te?me.from:me.to-1,Z=te?me.to:me.from-1}var Ie=null,Re=null,He=Ue(function(Tt){var vt=on(e,k,Tt);return vt.top+=K,vt.bottom+=K,ya(vt,n,d,!1)?(vt.top<=d&&vt.left<=n&&(Ie=Tt,Re=vt),!0):!1},J,Z),Xe,qe,rt=!1;if(Re){var lt=n-Re.left=ht.bottom?1:0}return He=Ae(t.text,He,1),ga(r,He,qe,rt,n-Xe)}function Ko(e,t,r,n,d,k,K){var J=Ue(function(me){var Ie=d[me],Re=Ie.level!=1;return ya(en(e,Qe(r,Re?Ie.to:Ie.from,Re?"before":"after"),"line",t,n),k,K,!0)},0,d.length-1),Z=d[J];if(J>0){var te=Z.level!=1,de=en(e,Qe(r,te?Z.from:Z.to,te?"after":"before"),"line",t,n);ya(de,k,K,!0)&&de.top>K&&(Z=d[J-1])}return Z}function zo(e,t,r,n,d,k,K){var J=hs(e,t,n,K),Z=J.begin,te=J.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var de=null,me=null,Ie=0;Ie=te||Re.to<=Z)continue;var He=Re.level!=1,Xe=on(e,n,He?Math.min(te,Re.to)-1:Math.max(Z,Re.from)).right,qe=Xeqe)&&(de=Re,me=qe)}return de||(de=d[d.length-1]),de.fromte&&(de={from:de.from,to:te,level:de.level}),de}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(c("br"));Nn.appendChild(document.createTextNode("x"))}x(e.measure,Nn);var r=Nn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),w(e.measure),r||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),r=c("pre",[t],"CodeMirror-line-like");x(e.measure,r);var n=t.getBoundingClientRect(),d=(n.right-n.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,r={},n={},d=t.gutters.clientLeft,k=t.gutters.firstChild,K=0;k;k=k.nextSibling,++K){var J=e.display.gutterSpecs[K].className;r[J]=k.offsetLeft+k.clientLeft+d,n[J]=k.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=$n(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(d){if(an(e.doc,d))return 0;var k=0;if(d.widgets)for(var K=0;K0&&(te=ct(e.doc,Z.line).text).length==Z.ch){var de=Y(te,te.length,e.options.tabSize)-te.length;Z=Qe(Z.line,Math.max(0,Math.round((k-qa(e.display).left)/Jn(e.display))-de))}return Z}function Bn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var r=e.display.view,n=0;nt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)ci&&cr(e.doc,t)d.viewFrom?Sn(e):(d.viewFrom+=n,d.viewTo+=n);else if(t<=d.viewFrom&&r>=d.viewTo)Sn(e);else if(t<=d.viewFrom){var k=Gr(e,r,r+n,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=n):Sn(e)}else if(r>=d.viewTo){var K=Gr(e,t,t,-1);K?(d.view=d.view.slice(0,K.index),d.viewTo=K.lineN):Sn(e)}else{var J=Gr(e,t,t,-1),Z=Gr(e,r,r+n,1);J&&Z?(d.view=d.view.slice(0,J.index).concat(ki(e,J.lineN,Z.lineN)).concat(d.view.slice(Z.index)),d.viewTo+=n):Sn(e)}var te=d.externalMeasured;te&&(r=d.lineN&&t=n.viewTo)return;var k=n.view[Bn(e,t)];if(k.node==null)return;var K=k.changes||(k.changes=[]);le(K,r)==-1&&K.push(r)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gr(e,t,r,n){var d=Bn(e,t),k,K=e.display.view;if(!ci||r==e.doc.first+e.doc.size)return{index:d,lineN:r};for(var J=e.display.viewFrom,Z=0;Z0){if(d==K.length-1)return null;k=J+K[d].size-t,d++}else k=J-t;t+=k,r+=k}for(;cr(e.doc,r)!=r;){if(d==(n<0?0:K.length-1))return null;r+=n*K[d-(n<0?1:0)].size,d+=n}return{index:d,lineN:r}}function Vo(e,t,r){var n=e.display,d=n.view;d.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=ki(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=ki(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,Bn(e,r)))),n.viewTo=r}function fs(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||J.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Jr(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),i&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Jr(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||de<-.005)&&(Jt(d.line,K),ys(d.line),d.rest))for(var me=0;mee.display.sizerWidth){var Ie=Math.ceil(J/$r(e.display));Ie>e.display.maxLineLength&&(e.display.maxLineLength=Ie,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=K&&(k=li(t,qi(ct(t,Z))-e.wrapper.clientHeight),K=Z)}return{from:k,to:Math.max(K,k+1)}}function Xo(e,t){if(je(e,"scrollCursorIntoView"))return;var n=e.display,r=n.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var k=c("div","\u200B",null,`position: absolute; - top: `+(t.top-n.viewOffset-Hn(e.display))+`px; - height: `+(t.bottom-t.top+ar(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function $o(e,t,n,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==n&&(t=t.ch?Qe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,n=t.sticky=="before"?Qe(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var K=!1,J=er(e,t),Z=!n||n==t?J:er(e,n);d={left:Math.min(J.left,Z.left),top:Math.min(J.top,Z.top)-r,right:Math.max(J.left,Z.left),bottom:Math.max(J.bottom,Z.bottom)+r};var te=wa(e,d),de=e.doc.scrollTop,me=e.doc.scrollLeft;if(te.scrollTop!=null&&(En(e,te.scrollTop),Math.abs(e.doc.scrollTop-de)>1&&(K=!0)),te.scrollLeft!=null&&(Br(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-me)>1&&(K=!0)),!K)break}return d}function Jo(e,t){var n=wa(e,t);n.scrollTop!=null&&En(e,n.scrollTop),n.scrollLeft!=null&&Br(e,n.scrollLeft)}function wa(e,t){var n=e.display,r=Xr(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,k=ca(e),K={};t.bottom-t.top>k&&(t.bottom=t.top+k);var J=e.doc.height+da(n),Z=t.topJ-r;if(t.topd+k){var de=Math.min(t.top,(te?J:t.bottom)-k);de!=d&&(K.scrollTop=de)}var me=e.options.fixedGutter?0:n.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-me,Re=Mr(e)-n.gutters.offsetWidth,He=t.right-t.left>Re;return He&&(t.right=t.left+Re),t.left<10?K.scrollLeft=0:t.leftRe+Ie-3&&(K.scrollLeft=t.right+(He?0:10)-Re),K}function Sa(e,t){if(t==null)return;Yn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qr(e){Yn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _n(e,t,n){(t!=null||n!=null)&&Yn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Qo(e,t){Yn(e),e.curOp.scrollToPos=t}function Yn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=us(e,t.from),r=us(e,t.to);bs(e,n,r,t.margin)}}function bs(e,t,n,r){var d=wa(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});_n(e,d.scrollLeft,d.scrollTop)}function En(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;M||Aa(e,{top:t}),_s(e,t,!0),M&&Aa(e),wn(e,100)}function _s(e,t,n){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Br(e,t,n,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+ar(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),Me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Me(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&W<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=s&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),k=n=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Tn=function(){};Tn.prototype.update=function(){return{bottom:0,right:0}},Tn.prototype.setScrollLeft=function(){},Tn.prototype.setScrollTop=function(){},Tn.prototype.clear=function(){};function Zr(e,t){t||(t=xn(e));var n=e.display.barWidth,r=e.display.barHeight;Es(e,t);for(var d=0;d<4&&n!=e.display.barWidth||r!=e.display.barHeight;d++)n!=e.display.barWidth&&e.options.lineWrapping&&zn(e),Es(e,xn(e)),n=e.display.barWidth,r=e.display.barHeight}function Es(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var xs={native:Ur,null:Tn};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Br(e,t):En(e,t)},e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Zo=0;function jr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Zo},Ji(e.curOp)}function Hr(e){var t=e.curOp;t&&Io(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function il(e){var t=e.cm,n=t.display;e.updatedDisplay&&zn(t),e.barMeasure=xn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+ar(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Mr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var n=+new Date+e.options.workTime,r=it(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(r.line>=e.display.viewFrom){var K=k.styles,J=k.text.length>e.options.maxHighlightLength?Ft(t.mode,r.state):null,Z=ve(e,k,r,!0);J&&(r.state=J),k.styles=Z.styles;var te=k.styleClasses,de=Z.classes;de?k.styleClasses=de:te&&(k.styleClasses=null);for(var me=!K||K.length!=k.styles.length||te!=de&&(!te||!de||te.bgClass!=de.bgClass||te.textClass!=de.textClass),Ie=0;!me&&Ien)return wn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Wi(e,function(){for(var k=0;k=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&fs(e)==0)return!1;Cs(e)&&(wr(e),t.dims=ba(e));var d=r.first+r.size,k=Math.max(t.visible.from-e.options.viewportMargin,r.first),K=Math.min(d,t.visible.to+e.options.viewportMargin);n.viewFromK&&n.viewTo-K<20&&(K=Math.min(d,n.viewTo)),ci&&(k=cn(e.doc,k),K=xr(e.doc,K));var J=k!=n.viewFrom||K!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Vo(e,k,K),n.viewOffset=qi(ct(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var Z=fs(e);if(!J&&Z==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var te=ol(e);return Z>4&&(n.lineDiv.style.display="none"),ul(e,n.updateLineNumbers,t.dims),Z>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ll(te),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,J&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,wn(e,400)),n.updateLineNumbers=null,!0}function ws(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Mr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+da(e.display)-ca(e),n.top)}),t.visible=Vn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vn(e.display,e.doc,n));if(!Ca(e,t))break;zn(e);var d=xn(e);bn(e),Zr(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var n=new Xn(e,t);if(Ca(e,n)){zn(e),ws(e,n);var r=xn(e);bn(e),Zr(e,r),Ra(e,r),n.finish()}}function ul(e,t,n){var r=e.display,d=e.options.lineNumbers,k=r.lineDiv,K=k.firstChild;function J(He){var Xe=He.nextSibling;return i&&s&&e.display.currentWheelTarget==He?He.style.display="none":He.parentNode.removeChild(He),Xe}for(var Z=r.view,te=r.viewFrom,de=0;de-1&&(Re=!1),Xa(e,me,te,n)),Re&&(w(me.lineNumber),me.lineNumber.appendChild(document.createTextNode(Xi(e.options,te)))),K=me.node.nextSibling}te+=me.size}for(;K;)K=J(K)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+ar(e)+"px"}function Ss(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=r+"px",K=0;KK.clientWidth,Z=K.scrollHeight>K.clientHeight;if(!(r&&J||d&&Z))return;if(d&&s&&i){e:for(var te=t.target,de=k.view;te!=K;te=te.parentNode)for(var me=0;me=0&&Ct(e,r.to())<=0)return n}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return vr(this.anchor,this.head)},Gt.prototype.to=function(){return gr(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tr(e,t,n){var r=e&&e.options.selectionsMayTouch,d=t[n];t.sort(function(Ie,Re){return Ct(Ie.from(),Re.from())}),n=le(t,d);for(var k=1;k0:Z>=0){var te=vr(J.from(),K.from()),de=gr(J.to(),K.to()),me=J.empty()?K.from()==K.head:J.from()==J.head;k<=n&&--n,t.splice(--k,2,new Gt(me?de:te,me?te:de))}}return new Yi(t,n)}function Sr(e,t){return new Yi([new Gt(e,t||e)],0)}function Cr(e){return e.text?Qe(e.from.line+e.text.length-1,Oe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return Cr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Cr(t).ch-t.to.ch),Qe(n,r)}function Ia(e,t){for(var n=[],r=0;r1&&e.remove(J.line+1,He-1),e.insert(J.line+1,nt)}bi(e,"change",e,t)}function Ar(e,t,n){function r(d,k,K){if(d.linked)for(var J=0;J1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Oe(e.done)}function Ns(e,t,n,r){var d=e.history;d.undone.length=0;var k=+new Date,K,J;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(K=pl(d,d.lastOp==r)))J=Oe(K.changes),Ct(t.from,t.to)==0&&Ct(t.from,J.to)==0?J.to=Cr(t):K.changes.push(Ma(e,t));else{var Z=Oe(d.done);for((!Z||!Z.ranges)&&Qn(e.sel,d.done),K={changes:[Ma(e,t)],generation:d.generation},d.done.push(K);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(n),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,J||Fe(e,"historyAdded")}function ml(e,t,n,r){var d=t.charAt(0);return d=="*"||d=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,n,r){var d=e.history,k=r&&r.origin;n==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,Oe(d.done),t))?d.done[d.done.length-1]=t:Qn(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=n,r&&r.clearRedo!==!1&&Ps(d.undone)}function Qn(e,t){var n=Oe(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fs(e,t,n,r){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(K){K.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=K.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,n=0;n-1&&(Oe(J)[me]=te[me],delete te[me]))}}return r}function Pa(e,t,n,r){if(r){var d=e.anchor;if(n){var k=Ct(t,d)<0;k!=Ct(n,d)<0?(d=t,t=n):k!=Ct(t,n)<0&&(t=n)}return new Gt(d,t)}else return new Gt(n||t,t)}function Zn(e,t,n,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Yi([Pa(e.sel.primary(),t,n,d)],0),r)}function Us(e,t,n){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:J.to>t.ch))){if(d&&(Fe(Z,"beforeCursorEnter"),Z.explicitlyCleared))if(k.markedSpans){--K;continue}else break;if(!Z.atomic)continue;if(n){var me=Z.find(r<0?1:-1),Ie=void 0;if((r<0?de:te)&&(me=zs(e,me,-r,me&&me.line==t.line?k:null)),me&&me.line==t.line&&(Ie=Ct(me,n))&&(r<0?Ie<0:Ie>0))return en(e,me,t,r,d)}var Re=Z.find(r<0?-1:1);return(r<0?te:de)&&(Re=zs(e,Re,r,Re.line==t.line?k:null)),Re?en(e,Re,t,r,d):null}}return t}function ea(e,t,n,r,d){var k=r||1,K=en(e,t,n,k,d)||!d&&en(e,t,n,k,!0)||en(e,t,n,-k,d)||!d&&en(e,t,n,-k,!0);return K||(e.cantEdit=!0,Qe(e.first,0))}function zs(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?E(e,Qe(t.line-1)):null:n>0&&t.ch==(r||ct(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var n=Ia(e,t);Ns(e,t,n,e.cm?e.cm.curOp.id:NaN),An(e,t,n,Zi(e,t));var r=[];Ar(e,function(d,k){!k&&le(r,d.history)==-1&&(Zs(d.history,t),r.push(d.history)),An(d,t,null,Zi(d,t))})}function ta(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!n)return;for(var d=e.history,k,K=e.sel,J=t=="undo"?d.done:d.undone,Z=t=="undo"?d.undone:d.done,te=0;te=0;--Re){var He=Ie(Re);if(He)return He.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yi(Te(e.sel.ranges,function(d){return new Gt(Qe(d.anchor.line+t,d.anchor.ch),Qe(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())return;if(t.from.linek&&(t={from:t.from,to:Qe(k,ct(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ui(e,t.from,t.to),n||(n=Ia(e,t)),e.cm?_l(e.cm,t,r):ka(e,t,r),qn(e,n,Se),e.cantEdit&&ea(e,Qe(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,n){var r=e.doc,d=e.display,k=t.from,K=t.to,J=!1,Z=k.line;e.options.lineWrapping||(Z=Ot(Ai(ct(r,k.line))),r.iter(Z,K.line+1,function(Re){if(Re==d.maxLine)return J=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ee(e),ka(r,t,n,cs(e)),e.options.lineWrapping||(r.iter(Z,k.line+t.text.length,function(Re){var He=pn(Re);He>d.maxLineLength&&(d.maxLine=Re,d.maxLineLength=He,d.maxLineChanged=!0,J=!1)}),J&&(e.curOp.updateMaxLine=!0)),Qi(r,k.line),wn(e,400);var te=t.text.length-(K.line-k.line)-1;t.full?Mi(e):k.line==K.line&&t.text.length==1&&!Ds(e.doc,t)?Tr(e,k.line,"text"):Mi(e,k.line,K.line+1,te);var de=ge(e,"changes"),me=ge(e,"change");if(me||de){var Ie={from:k,to:K,text:t.text,removed:t.removed,origin:t.origin};me&&bi(e,"change",e,Ie),de&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function rn(e,t,n,r,d){var k;r||(r=n),Ct(r,n)<0&&(k=[r,n],n=k[0],r=k[1]),typeof t=="string"&&(t=e.splitLines(t)),tn(e,{from:n,to:r,text:t,origin:d})}function Js(e,t,n,r){n1||!(this.children[0]instanceof Rn))){var J=[];this.collapse(J),this.children=[new Rn(J)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var K=d.lines.length%25+25,J=K;J10);e.parent.maybeSpill()},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=de,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Mi(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&bi(e,"markerCleared",e,this,r,d),t&&Hr(e),this.parent&&this.parent.clear()},Or.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,d=0;d0||K==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=T("span",[k.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(fi(e,t.line,t,n,k)||t.line!=n.line&&fi(e,n.line,t,n,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");lr()}k.addToHistory&&Ns(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var J=t.line,Z=e.cm,te;if(e.iter(J,n.line+1,function(me){Z&&k.collapsed&&!Z.options.lineWrapping&&Ai(me)==Z.display.maxLine&&(te=!0),k.collapsed&&J!=t.line&&Jt(me,0),yr(me,new ur(k,J==t.line?t.ch:null,J==n.line?n.ch:null)),++J}),k.collapsed&&e.iter(t.line,n.line+1,function(me){nr(e,me)&&Jt(me,0)}),k.clearOnEnter&&Me(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(zi(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++eo,k.atomic=!0),Z){if(te&&(Z.curOp.updateMaxLine=!0),k.collapsed)Mi(Z,t.line,n.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var de=t.line;de<=n.line;de++)Tr(Z,de,"text");k.atomic&&Gs(Z.doc),bi(Z,"markerAdded",Z,k)}return k}var Dn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;Z--)tn(this,r[Z]);J?Hs(this,J):this.cm&&Qr(this.cm)}),undo:mi(function(){ta(this,"undo")}),redo:mi(function(){ta(this,"redo")}),undoSelection:mi(function(){ta(this,"undo",!0)}),redoSelection:mi(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,n){e=E(this,e),t=E(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var K=k.markedSpans;if(K)for(var J=0;J=Z.to||Z.from==null&&d!=e.line||Z.from!=null&&d==t.line&&Z.from>=t.ch)&&(!n||n(Z.marker))&&r.push(Z.marker.parent||Z.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=k,++n}),E(this,Qe(n,t))},indexFromPos:function(e){e=E(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var de=e.dataTransfer.getData("Text");if(de){var me;if(t.state.draggingText&&!t.state.draggingText.copy&&(me=t.listSelections()),qn(t.doc,Sr(n,n)),me)for(var Ie=0;Ie=0;J--)rn(e.doc,"",r[J].from,r[J].to,"+delete");Qr(e)})}function Fa(e,t,n){var r=Ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ba(e,t,n){var r=Fa(e,t.ch,n);return r==null?null:new Qe(t.line,r,n<0?"after":"before")}function Ua(e,t,n,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=et(n,t.doc.direction);if(k){var K=d<0?Oe(k):k[0],J=d<0==(K.level==1),Z=J?"after":"before",te;if(K.level>0||t.doc.direction=="rtl"){var de=Yr(t,n);te=d<0?n.text.length-1:0;var me=sr(t,de,te).top;te=Ue(function(Ie){return sr(t,de,Ie).top==me},d<0==(K.level==1)?K.from:K.to-1,te),Z=="before"&&(te=Fa(n,te,1))}else te=d<0?K.to:K.from;return new Qe(r,te,Z)}}return new Qe(r,d<0?n.text.length:0,d<0?"before":"after")}function Ml(e,t,n,r){var d=et(t,e.doc.direction);if(!d)return Ba(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var k=$e(d,n.ch,n.sticky),K=d[k];if(e.doc.direction=="ltr"&&K.level%2==0&&(r>0?K.to>n.ch:K.from=K.from&&Ie>=de.begin)){var Re=me?"before":"after";return new Qe(n.line,Ie,Re)}}var He=function(nt,lt,at){for(var ht=function(Xt,gi){return gi?new Qe(n.line,J(Xt,1),"before"):new Qe(n.line,Xt,"after")};nt>=0&&nt0==(Tt.level!=1),Rt=vt?at.begin:J(at.end,-1);if(Tt.from<=Rt&&Rt0?de.end:J(de.begin,-1);return qe!=null&&!(r>0&&qe==t.text.length)&&(Xe=He(r>0?0:d.length-1,r,te(qe)),Xe)?Xe:null}var Pn={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return sn(e,function(t){if(t.empty()){var n=ct(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)d=new Qe(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),Qe(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var K=ct(e.doc,d.line-1).text;K&&(d=new Qe(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+K.charAt(K.length-1),Qe(d.line-1,K.length-1),d,"+transpose"))}}n.push(new Gt(d,d))}e.setSelections(n)})},newlineAndIndent:function(e){return Wi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&Ct(t,this.pos)==0&&n==this.button};var Fn,Bn;function Hl(e,t){var n=+new Date;return Bn&&Bn.compare(n,e,t)?(Fn=Bn=null,"triple"):Fn&&Fn.compare(n,e,t)?(Bn=new Ha(n,e,t),Fn=null,"double"):(Fn=new Ha(n,e,t),Bn=null,"single")}function vo(e){var t=this,n=t.display;if(je(t,e)||n.activeTouch&&n.input.supportsTouch())return;if(n.input.ensurePolled(),n.shift=e.shiftKey,dr(n,e)){i||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(Wa(t,e))return;var r=Nr(t,e),d=Pe(e),k=r?Hl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Wl(t,d,r,k,e))return;d==1?r?Kl(t,r,k,e):xe(e)==n.scroller&&re(e):d==2?(r&&Zn(t.doc,r),setTimeout(function(){return n.input.focus()},20)):d==3&&(L?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,n,r,d){var k="Click";return r=="double"?k="Double"+k:r=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,Nn(e,oo(k,d),d,function(K){if(typeof K=="string"&&(K=Pn[K]),!K)return!1;var J=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),J=K(e,n)!=ke}finally{e.state.suppressEdits=!1}return J})}function Gl(e,t,n){var r=e.getOption("configureMouse"),d=r?r(e,t,n):{};if(d.unit==null){var k=a?n.shiftKey&&n.metaKey:n.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||n.shiftKey),d.addNew==null&&(d.addNew=s?n.metaKey:n.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?n.altKey:n.ctrlKey)),d}function Kl(e,t,n,r){G?setTimeout(P(gs,e),0):e.curOp.focus=N();var d=Gl(e,n,r),k=e.doc.sel,K;e.options.dragDrop&&ze&&!e.isReadOnly()&&n=="single"&&(K=k.contains(t))>-1&&(Ct((K=k.ranges[K]).from(),t)<0||t.xRel>0)&&(Ct(K.to(),t)>0||t.xRel<0)?zl(e,r,t,d):Vl(e,r,t,d)}function zl(e,t,n,r){var d=e.display,k=!1,K=pi(e,function(te){i&&(d.scroller.draggable=!1),e.state.draggingText=!1,rt(d.wrapper.ownerDocument,"mouseup",K),rt(d.wrapper.ownerDocument,"mousemove",J),rt(d.scroller,"dragstart",Z),rt(d.scroller,"drop",K),k||(re(te),r.addNew||Zn(e.doc,n,null,null,r.extend),i&&!p||G&&W==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),J=function(te){k=k||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},Z=function(){return k=!0};i&&(d.scroller.draggable=!0),e.state.draggingText=K,K.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Me(d.wrapper.ownerDocument,"mouseup",K),Me(d.wrapper.ownerDocument,"mousemove",J),Me(d.scroller,"dragstart",Z),Me(d.scroller,"drop",K),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,n){if(n=="char")return new Gt(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Gt(Qe(t.line,0),E(e.doc,Qe(t.line+1,0)));var r=n(e,t);return new Gt(r.from,r.to)}function Vl(e,t,n,r){var d=e.display,k=e.doc;re(t);var K,J,Z=k.sel,te=Z.ranges;if(r.addNew&&!r.extend?(J=k.sel.contains(n),J>-1?K=te[J]:K=new Gt(n,n)):(K=k.sel.primary(),J=k.sel.primIndex),r.unit=="rectangle")r.addNew||(K=new Gt(n,n)),n=Nr(e,t,!0,!0),J=-1;else{var de=yo(e,n,r.unit);r.extend?K=Pa(K,de.anchor,de.head,r.extend):K=de}r.addNew?J==-1?(J=te.length,wi(k,tr(e,te.concat([K]),J),{scroll:!1,origin:"*mouse"})):te.length>1&&te[J].empty()&&r.unit=="char"&&!r.extend?(wi(k,tr(e,te.slice(0,J).concat(te.slice(J+1)),0),{scroll:!1,origin:"*mouse"}),Z=k.sel):Na(k,J,K,Ce):(J=0,wi(k,new Yi([K],0),Ce),Z=k.sel);var me=n;function Ie(at){if(Ct(me,at)==0)return;if(me=at,r.unit=="rectangle"){for(var ht=[],Tt=e.options.tabSize,vt=Y(ct(k,n.line).text,n.ch,Tt),Rt=Y(ct(k,at.line).text,at.ch,Tt),Xt=Math.min(vt,Rt),gi=Math.max(vt,Rt),ei=Math.min(n.line,at.line),Gi=Math.min(e.lastLine(),Math.max(n.line,at.line));ei<=Gi;ei++){var Ni=ct(k,ei).text,si=pe(Ni,Xt,Tt);Xt==gi?ht.push(new Gt(Qe(ei,si),Qe(ei,si))):Ni.length>si&&ht.push(new Gt(Qe(ei,si),Qe(ei,pe(Ni,gi,Tt))))}ht.length||ht.push(new Gt(n,n)),wi(k,tr(e,Z.ranges.slice(0,J).concat(ht),J),{origin:"*mouse",scroll:!1}),e.scrollIntoView(at)}else{var Fi=K,_i=yo(e,at,r.unit),hi=Fi.anchor,oi;Ct(_i.anchor,hi)>0?(oi=_i.head,hi=vr(Fi.from(),_i.anchor)):(oi=_i.anchor,hi=gr(Fi.to(),_i.head));var ii=Z.ranges.slice(0);ii[J]=Yl(e,new Gt(E(k,hi),oi)),wi(k,tr(e,ii,J),Ce)}}var Re=d.wrapper.getBoundingClientRect(),He=0;function Xe(at){var ht=++He,Tt=Nr(e,at,!0,r.unit=="rectangle");if(!Tt)return;if(Ct(Tt,me)!=0){e.curOp.focus=N(),Ie(Tt);var vt=Vn(d,k);(Tt.line>=vt.to||Tt.lineRe.bottom?20:0;Rt&&setTimeout(pi(e,function(){if(He!=ht)return;d.scroller.scrollTop+=Rt,Xe(at)}),50)}}function qe(at){e.state.selectingText=!1,He=Infinity,at&&(re(at),d.input.focus()),rt(d.wrapper.ownerDocument,"mousemove",nt),rt(d.wrapper.ownerDocument,"mouseup",lt),k.history.lastSelOrigin=null}var nt=pi(e,function(at){at.buttons===0||!Pe(at)?qe(at):Xe(at)}),lt=pi(e,qe);e.state.selectingText=lt,Me(d.wrapper.ownerDocument,"mousemove",nt),Me(d.wrapper.ownerDocument,"mouseup",lt)}function Yl(e,t){var n=t.anchor,r=t.head,d=ct(e.doc,n.line);if(Ct(n,r)==0&&n.sticky==r.sticky)return t;var k=et(d);if(!k)return t;var K=$e(k,n.ch,n.sticky),J=k[K];if(J.from!=n.ch&&J.to!=n.ch)return t;var Z=K+(J.from==n.ch==(J.level!=1)?0:1);if(Z==0||Z==k.length)return t;var te;if(r.line!=n.line)te=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var de=$e(k,r.ch,r.sticky),me=de-K||(r.ch-n.ch)*(J.level==1?-1:1);de==Z-1||de==Z?te=me<0:te=me>0}var Ie=k[Z+(te?-1:0)],Re=te==(Ie.level==1),He=Re?Ie.from:Ie.to,Xe=Re?"after":"before";return n.ch==He&&n.sticky==Xe?t:new Gt(new Qe(n.line,He,Xe),r)}function bo(e,t,n,r){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ie){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var K=e.display,J=K.lineDiv.getBoundingClientRect();if(k>J.bottom||!ge(e,n))return he(t);k-=J.top-K.viewOffset;for(var Z=0;Z=d){var de=li(e.doc,k),me=e.display.gutterSpecs[Z];return Fe(e,n,e,de,me.className,t),he(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(dr(e.display,t)||Xl(e,t))return;if(je(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Xl(e,t){return ge(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yn(e)}var on={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function n(r,d,k,K){e.defaults[r]=d,k&&(t[r]=K?function(J,Z,te){te!=on&&k(J,Z,te)}:k)}e.defineOption=n,e.Init=on,n("value","",function(r,d){return r.setValue(d)},!0),n("mode",null,function(r,d){r.doc.modeOption=d,Da(r)},!0),n("indentUnit",2,Da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Cn(r),yn(r),Mi(r)},!0),n("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var k=[],K=r.doc.first;r.doc.iter(function(Z){for(var te=0;;){var de=Z.text.indexOf(d,te);if(de==-1)break;te=de+d.length,k.push(Qe(K,de))}K++});for(var J=k.length-1;J>=0;J--)rn(r.doc,d,k[J],Qe(k[J].line,k[J].ch+d.length))}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,k){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=on&&r.refresh()}),n("specialCharPlaceholder",Yt,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),n("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),n("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),n("rtlMoveVisually",!A),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){Eo(r),Sn(r)},!0),n("keyMap","default",function(r,d,k){var K=ra(d),J=k!=on&&ra(k);J&&J.detach&&J.detach(r,K),K.attach&&K.attach(r,J||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ql,!0),n("gutters",[],function(r,d){r.display.gutterSpecs=La(d,r.options.lineNumbers),Sn(r)},!0),n("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?_a(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Zr(r)},!0),n("scrollbarStyle","native",function(r){Ts(r),Zr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,d){r.display.gutterSpecs=La(r.options.gutters,d),Sn(r)},!0),n("firstLineNumber",1,Sn,!0),n("lineNumberFormatter",function(r){return r},Sn,!0),n("showCursorWhenSelecting",!1,bn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,d){d=="nocursor"&&(Jr(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),n("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),n("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),n("dragDrop",!0,Jl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,bn,!0),n("singleCursorHeightPerLine",!0,bn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Cn,!0),n("addModeClass",!1,Cn,!0),n("pollInterval",100),n("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Cn,!0),n("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),n("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),n("autofocus",null),n("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),n("phrases",null)}function Jl(e,t,n){var r=n&&n!=on;if(!t!=!r){var d=e.display.dragFunctions,k=t?Me:rt;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Ql(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),jn(e)),Ea(e),Mi(e),yn(e),setTimeout(function(){return Zr(e)},100)}function Zt(e,t){var n=this;if(!(this instanceof Zt))return new Zt(e,t);this.options=t=t?b(t):{},b(xo,t,!1);var r=t.value;typeof r=="string"?r=new Pi(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Zt.inputStyles[t.inputStyle](this),k=this.display=new hl(e,r,d,t);k.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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},t.autofocus&&!h&&k.input.focus(),G&&W<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Zl(this),Rl(),jr(this),this.curOp.forceUpdate=!0,ks(this,r),t.autofocus&&!h||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ta(n)},20):Jr(this);for(var K in aa)aa.hasOwnProperty(K)&&aa[K](this,t[K],on);Cs(this),t.finishInit&&t.finishInit(this);for(var J=0;J20*20}Me(t.scroller,"touchstart",function(Z){if(!je(e,Z)&&!k(Z)&&!Wa(e,Z)){t.input.ensurePolled(),clearTimeout(n);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-r.end<=300?r:null},Z.touches.length==1&&(t.activeTouch.left=Z.touches[0].pageX,t.activeTouch.top=Z.touches[0].pageY)}}),Me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Me(t.scroller,"touchend",function(Z){var te=t.activeTouch;if(te&&!dr(t,Z)&&te.left!=null&&!te.moved&&new Date-te.start<300){var de=e.coordsChar(t.activeTouch,"page"),me;!te.prev||K(te,te.prev)?me=new Gt(de,de):!te.prev.prev||K(te,te.prev.prev)?me=e.findWordAt(de):me=new Gt(Qe(de.line,0),E(e.doc,Qe(de.line+1,0))),e.setSelection(me.anchor,me.head),e.focus(),re(Z)}d()}),Me(t.scroller,"touchcancel",d),Me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(En(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),Me(t.scroller,"mousewheel",function(Z){return Rs(e,Z)}),Me(t.scroller,"DOMMouseScroll",function(Z){return Rs(e,Z)}),Me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(Z){je(e,Z)||fe(Z)},over:function(Z){je(e,Z)||(Ol(e,Z),fe(Z))},start:function(Z){return Al(e,Z)},drop:pi(e,Cl),leave:function(Z){je(e,Z)||ro(e)}};var J=t.input.getField();Me(J,"keyup",function(Z){return mo.call(e,Z)}),Me(J,"keydown",pi(e,po)),Me(J,"keypress",pi(e,go)),Me(J,"focus",function(Z){return Ta(e,Z)}),Me(J,"blur",function(Z){return Jr(e,Z)})}var Ga=[];Zt.defineInitHook=function(e){return Ga.push(e)};function Un(e,t,n,r){var d=e.doc,k;n==null&&(n="add"),n=="smart"&&(d.mode.indent?k=it(e,t).state:n="prev");var K=e.options.tabSize,J=ct(d,t),Z=Y(J.text,null,K);J.stateAfter&&(J.stateAfter=null);var te=J.text.match(/^\s*/)[0],de;if(!r&&!/\S/.test(J.text))de=0,n="not";else if(n=="smart"&&(de=d.mode.indent(k,J.text.slice(te.length),J.text),de==ke||de>150)){if(!r)return;n="prev"}n=="prev"?t>d.first?de=Y(ct(d,t-1).text,null,K):de=0:n=="add"?de=Z+e.options.indentUnit:n=="subtract"?de=Z-e.options.indentUnit:typeof n=="number"&&(de=Z+n),de=Math.max(0,de);var me="",Ie=0;if(e.options.indentWithTabs)for(var Re=Math.floor(de/K);Re;--Re)Ie+=K,me+=" ";if(IeK,Z=St(t),te=null;if(J&&r.ranges.length>1)if(ir&&ir.text.join(` -`)==t){if(r.ranges.length%ir.text.length==0){te=[];for(var de=0;de=0;Ie--){var Re=r.ranges[Ie],He=Re.from(),Xe=Re.to();Re.empty()&&(n&&n>0?He=Qe(He.line,He.ch-n):e.state.overwrite&&!J?Xe=Qe(Xe.line,Math.min(ct(k,Xe.line).text.length,Xe.ch+Oe(Z).length)):J&&ir&&ir.lineWise&&ir.text.join(` + height: `+(vt-ht)+"px"))}function me(at,ht,Tt){var vt=ct(d,at),Rt=vt.text.length,Xt,gi;function ei(si,Fi){return ma(e,Qe(at,si),"div",vt,Fi)}function Gi(si,Fi,_i){var hi=ds(e,vt,null,si),oi=Fi=="ltr"==(_i=="after")?"left":"right",ii=_i=="after"?hi.begin:hi.end-(/\s/.test(vt.text.charAt(hi.end-1))?2:1);return ei(ii,oi)[oi]}var Ni=et(vt,d.direction);return Ve(Ni,ht||0,Tt==null?Rt:Tt,function(si,Fi,_i,hi){var oi=_i=="ltr",ii=ei(si,oi?"left":"right"),Bi=ei(Fi-1,oi?"right":"left"),ur=ht==null&&si==0,In=Tt==null&&Fi==Rt,Si=hi==0,ln=!Ni||hi==Ni.length-1;if(Bi.top-ii.top<=3){var vi=(te?ur:In)&&Si,Va=(te?In:ur)&&ln,pn=vi?J:(oi?ii:Bi).left,Gn=Va?Z:(oi?Bi:ii).right;de(pn,ii.top,Gn-pn,ii.bottom)}else{var Kn,Ri,hr,Ya;oi?(Kn=te&&ur&&Si?J:ii.left,Ri=te?Z:Gi(si,_i,"before"),hr=te?J:Gi(Fi,_i,"after"),Ya=te&&In&&ln?Z:Bi.right):(Kn=te?Gi(si,_i,"before"):J,Ri=!te&&ur&&Si?Z:ii.right,hr=!te&&In&&ln?J:Bi.left,Ya=te?Gi(Fi,_i,"after"):Z),de(Kn,ii.top,Ri-Kn,ii.bottom),ii.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Qn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Qn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),i&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Qn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zr(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||de<-.005)&&(Jt(d.line,K),ys(d.line),d.rest))for(var me=0;mee.display.sizerWidth){var Ie=Math.ceil(J/Jn(e.display));Ie>e.display.maxLineLength&&(e.display.maxLineLength=Ie,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=K&&(k=li(t,qi(ct(t,Z))-e.wrapper.clientHeight),K=Z)}return{from:k,to:Math.max(K,k+1)}}function Xo(e,t){if(je(e,"scrollCursorIntoView"))return;var r=e.display,n=r.sizer.getBoundingClientRect(),d=null;if(t.top+n.top<0?d=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var k=c("div","\u200B",null,`position: absolute; + top: `+(t.top-r.viewOffset-Hr(e.display))+`px; + height: `+(t.bottom-t.top+sn(e)+r.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function $o(e,t,r,n){n==null&&(n=0);var d;!e.options.lineWrapping&&t==r&&(t=t.ch?Qe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?Qe(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var K=!1,J=en(e,t),Z=!r||r==t?J:en(e,r);d={left:Math.min(J.left,Z.left),top:Math.min(J.top,Z.top)-n,right:Math.max(J.left,Z.left),bottom:Math.max(J.bottom,Z.bottom)+n};var te=wa(e,d),de=e.doc.scrollTop,me=e.doc.scrollLeft;if(te.scrollTop!=null&&(Er(e,te.scrollTop),Math.abs(e.doc.scrollTop-de)>1&&(K=!0)),te.scrollLeft!=null&&(Un(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-me)>1&&(K=!0)),!K)break}return d}function Jo(e,t){var r=wa(e,t);r.scrollTop!=null&&Er(e,r.scrollTop),r.scrollLeft!=null&&Un(e,r.scrollLeft)}function wa(e,t){var r=e.display,n=$n(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,k=ca(e),K={};t.bottom-t.top>k&&(t.bottom=t.top+k);var J=e.doc.height+da(r),Z=t.topJ-n;if(t.topd+k){var de=Math.min(t.top,(te?J:t.bottom)-k);de!=d&&(K.scrollTop=de)}var me=e.options.fixedGutter?0:r.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-me,Re=Pn(e)-r.gutters.offsetWidth,He=t.right-t.left>Re;return He&&(t.right=t.left+Re),t.left<10?K.scrollLeft=0:t.leftRe+Ie-3&&(K.scrollLeft=t.right+(He?0:10)-Re),K}function Sa(e,t){if(t==null)return;Yr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Zn(e){Yr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _r(e,t,r){(t!=null||r!=null)&&Yr(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Qo(e,t){Yr(e),e.curOp.scrollToPos=t}function Yr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=us(e,t.from),n=us(e,t.to);bs(e,r,n,t.margin)}}function bs(e,t,r,n){var d=wa(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});_r(e,d.scrollLeft,d.scrollTop)}function Er(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;M||Aa(e,{top:t}),_s(e,t,!0),M&&Aa(e),wr(e,100)}function _s(e,t,r){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!r)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Un(e,t,r,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var jn=function(e,t,r){this.cm=r;var n=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=d.tabIndex=-1,e(n),e(d),Me(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Me(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&W<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var d=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},jn.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var d=e.getBoundingClientRect(),k=r=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Tr=function(){};Tr.prototype.update=function(){return{bottom:0,right:0}},Tr.prototype.setScrollLeft=function(){},Tr.prototype.setScrollTop=function(){},Tr.prototype.clear=function(){};function qn(e,t){t||(t=xr(e));var r=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var d=0;d<4&&r!=e.display.barWidth||n!=e.display.barHeight;d++)r!=e.display.barWidth&&e.options.lineWrapping&&zr(e),Es(e,xr(e)),r=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var xs={native:jn,null:Tr};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Un(e,t):Er(e,t)},e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Zo=0;function Hn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Zo},Ji(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(r){for(var n=0;n=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function il(e){var t=e.cm,r=t.display;e.updatedDisplay&&zr(t),e.barMeasure=xr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var r=+new Date+e.options.workTime,n=it(e,t.highlightFrontier),d=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(n.line>=e.display.viewFrom){var K=k.styles,J=k.text.length>e.options.maxHighlightLength?Ft(t.mode,n.state):null,Z=ve(e,k,n,!0);J&&(n.state=J),k.styles=Z.styles;var te=k.styleClasses,de=Z.classes;de?k.styleClasses=de:te&&(k.styleClasses=null);for(var me=!K||K.length!=k.styles.length||te!=de&&(!te||!de||te.bgClass!=de.bgClass||te.textClass!=de.textClass),Ie=0;!me&&Ier)return wr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),d.length&&Wi(e,function(){for(var k=0;k=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var d=n.first+n.size,k=Math.max(t.visible.from-e.options.viewportMargin,n.first),K=Math.min(d,t.visible.to+e.options.viewportMargin);r.viewFromK&&r.viewTo-K<20&&(K=Math.min(d,r.viewTo)),ci&&(k=cr(e.doc,k),K=Tn(e.doc,K));var J=k!=r.viewFrom||K!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Vo(e,k,K),r.viewOffset=qi(ct(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var Z=fs(e);if(!J&&Z==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var te=ol(e);return Z>4&&(r.lineDiv.style.display="none"),ul(e,r.updateLineNumbers,t.dims),Z>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,ll(te),w(r.cursorDiv),w(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,J&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,wr(e,400)),r.updateLineNumbers=null,!0}function ws(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+da(e.display)-ca(e),r.top)}),t.visible=Vr(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vr(e.display,e.doc,r));if(!Ca(e,t))break;zr(e);var d=xr(e);br(e),qn(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var r=new Xr(e,t);if(Ca(e,r)){zr(e),ws(e,r);var n=xr(e);br(e),qn(e,n),Ra(e,n),r.finish()}}function ul(e,t,r){var n=e.display,d=e.options.lineNumbers,k=n.lineDiv,K=k.firstChild;function J(He){var Xe=He.nextSibling;return i&&s&&e.display.currentWheelTarget==He?He.style.display="none":He.parentNode.removeChild(He),Xe}for(var Z=n.view,te=n.viewFrom,de=0;de-1&&(Re=!1),Xa(e,me,te,r)),Re&&(w(me.lineNumber),me.lineNumber.appendChild(document.createTextNode(Xi(e.options,te)))),K=me.node.nextSibling}te+=me.size}for(;K;)K=J(K)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,r=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=n+"px",K=0;KK.clientWidth,Z=K.scrollHeight>K.clientHeight;if(!(n&&J||d&&Z))return;if(d&&s&&i){e:for(var te=t.target,de=k.view;te!=K;te=te.parentNode)for(var me=0;me=0&&Ct(e,n.to())<=0)return r}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,r){var n=e&&e.options.selectionsMayTouch,d=t[r];t.sort(function(Ie,Re){return Ct(Ie.from(),Re.from())}),r=le(t,d);for(var k=1;k0:Z>=0){var te=yn(J.from(),K.from()),de=vn(J.to(),K.to()),me=J.empty()?K.from()==K.head:J.from()==J.head;k<=r&&--r,t.splice(--k,2,new Gt(me?de:te,me?te:de))}}return new Yi(t,r)}function Cn(e,t){return new Yi([new Gt(e,t||e)],0)}function An(e){return e.text?Qe(e.from.line+e.text.length-1,Oe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Qe(r,n)}function Ia(e,t){for(var r=[],n=0;n1&&e.remove(J.line+1,He-1),e.insert(J.line+1,rt)}bi(e,"change",e,t)}function On(e,t,r){function n(d,k,K){if(d.linked)for(var J=0;J1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Oe(e.done)}function Ns(e,t,r,n){var d=e.history;d.undone.length=0;var k=+new Date,K,J;if((d.lastOp==n||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(K=pl(d,d.lastOp==n)))J=Oe(K.changes),Ct(t.from,t.to)==0&&Ct(t.from,J.to)==0?J.to=An(t):K.changes.push(Ma(e,t));else{var Z=Oe(d.done);for((!Z||!Z.ranges)&&Qr(e.sel,d.done),K={changes:[Ma(e,t)],generation:d.generation},d.done.push(K);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(r),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=n,d.lastOrigin=d.lastSelOrigin=t.origin,J||Fe(e,"historyAdded")}function ml(e,t,r,n){var d=t.charAt(0);return d=="*"||d=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,r,n){var d=e.history,k=n&&n.origin;r==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,Oe(d.done),t))?d.done[d.done.length-1]=t:Qr(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=r,n&&n.clearRedo!==!1&&Ps(d.undone)}function Qr(e,t){var r=Oe(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Fs(e,t,r,n){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(K){K.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=K.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,r=0;r-1&&(Oe(J)[me]=te[me],delete te[me]))}}return n}function Pa(e,t,r,n){if(n){var d=e.anchor;if(r){var k=Ct(t,d)<0;k!=Ct(r,d)<0?(d=t,t=r):k!=Ct(t,r)<0&&(t=r)}return new Gt(d,t)}else return new Gt(r||t,t)}function Zr(e,t,r,n,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Yi([Pa(e.sel.primary(),t,r,d)],0),n)}function Us(e,t,r){for(var n=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:J.to>t.ch))){if(d&&(Fe(Z,"beforeCursorEnter"),Z.explicitlyCleared))if(k.markedSpans){--K;continue}else break;if(!Z.atomic)continue;if(r){var me=Z.find(n<0?1:-1),Ie=void 0;if((n<0?de:te)&&(me=zs(e,me,-n,me&&me.line==t.line?k:null)),me&&me.line==t.line&&(Ie=Ct(me,r))&&(n<0?Ie<0:Ie>0))return tr(e,me,t,n,d)}var Re=Z.find(n<0?-1:1);return(n<0?te:de)&&(Re=zs(e,Re,n,Re.line==t.line?k:null)),Re?tr(e,Re,t,n,d):null}}return t}function ea(e,t,r,n,d){var k=n||1,K=tr(e,t,r,k,d)||!d&&tr(e,t,r,k,!0)||tr(e,t,r,-k,d)||!d&&tr(e,t,r,-k,!0);return K||(e.cantEdit=!0,Qe(e.first,0))}function zs(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?E(e,Qe(t.line-1)):null:r>0&&t.ch==(n||ct(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:n[d].from,to:n[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var r=Ia(e,t);Ns(e,t,r,e.cm?e.cm.curOp.id:NaN),Ar(e,t,r,Zi(e,t));var n=[];On(e,function(d,k){!k&&le(n,d.history)==-1&&(Zs(d.history,t),n.push(d.history)),Ar(d,t,null,Zi(d,t))})}function ta(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!r)return;for(var d=e.history,k,K=e.sel,J=t=="undo"?d.done:d.undone,Z=t=="undo"?d.undone:d.done,te=0;te=0;--Re){var He=Ie(Re);if(He)return He.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yi(Te(e.sel.ranges,function(d){return new Gt(Qe(d.anchor.line+t,d.anchor.ch),Qe(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mi(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())return;if(t.from.linek&&(t={from:t.from,to:Qe(k,ct(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ui(e,t.from,t.to),r||(r=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qr(e,r,Se),e.cantEdit&&ea(e,Qe(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,r){var n=e.doc,d=e.display,k=t.from,K=t.to,J=!1,Z=k.line;e.options.lineWrapping||(Z=Ot(Ai(ct(n,k.line))),n.iter(Z,K.line+1,function(Re){if(Re==d.maxLine)return J=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ee(e),ka(n,t,r,cs(e)),e.options.lineWrapping||(n.iter(Z,k.line+t.text.length,function(Re){var He=pr(Re);He>d.maxLineLength&&(d.maxLine=Re,d.maxLineLength=He,d.maxLineChanged=!0,J=!1)}),J&&(e.curOp.updateMaxLine=!0)),Qi(n,k.line),wr(e,400);var te=t.text.length-(K.line-k.line)-1;t.full?Mi(e):k.line==K.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,k.line,"text"):Mi(e,k.line,K.line+1,te);var de=ge(e,"changes"),me=ge(e,"change");if(me||de){var Ie={from:k,to:K,text:t.text,removed:t.removed,origin:t.origin};me&&bi(e,"change",e,Ie),de&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function nr(e,t,r,n,d){var k;n||(n=r),Ct(n,r)<0&&(k=[n,r],r=k[0],n=k[1]),typeof t=="string"&&(t=e.splitLines(t)),ir(e,{from:r,to:n,text:t,origin:d})}function Js(e,t,r,n){r1||!(this.children[0]instanceof Rr))){var J=[];this.collapse(J),this.children=[new Rr(J)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var K=d.lines.length%25+25,J=K;J10);e.parent.maybeSpill()},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=de,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mi(e,n,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&bi(e,"markerCleared",e,this,n,d),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,d=0;d0||K==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=T("span",[k.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(fi(e,t.line,t,r,k)||t.line!=r.line&&fi(e,r.line,t,r,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}k.addToHistory&&Ns(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var J=t.line,Z=e.cm,te;if(e.iter(J,r.line+1,function(me){Z&&k.collapsed&&!Z.options.lineWrapping&&Ai(me)==Z.display.maxLine&&(te=!0),k.collapsed&&J!=t.line&&Jt(me,0),bn(me,new hn(k,J==t.line?t.ch:null,J==r.line?r.ch:null)),++J}),k.collapsed&&e.iter(t.line,r.line+1,function(me){an(e,me)&&Jt(me,0)}),k.clearOnEnter&&Me(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(zi(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++eo,k.atomic=!0),Z){if(te&&(Z.curOp.updateMaxLine=!0),k.collapsed)Mi(Z,t.line,r.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var de=t.line;de<=r.line;de++)wn(Z,de,"text");k.atomic&&Gs(Z.doc),bi(Z,"markerAdded",Z,k)}return k}var Dr=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;Z--)ir(this,n[Z]);J?Hs(this,J):this.cm&&Zn(this.cm)}),undo:mi(function(){ta(this,"undo")}),redo:mi(function(){ta(this,"redo")}),undoSelection:mi(function(){ta(this,"undo",!0)}),redoSelection:mi(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,r){e=E(this,e),t=E(this,t);var n=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var K=k.markedSpans;if(K)for(var J=0;J=Z.to||Z.from==null&&d!=e.line||Z.from!=null&&d==t.line&&Z.from>=t.ch)&&(!r||r(Z.marker))&&n.push(Z.marker.parent||Z.marker)}++d}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=k,++r}),E(this,Qe(r,t))},indexFromPos:function(e){e=E(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var de=e.dataTransfer.getData("Text");if(de){var me;if(t.state.draggingText&&!t.state.draggingText.copy&&(me=t.listSelections()),qr(t.doc,Cn(r,r)),me)for(var Ie=0;Ie=0;J--)nr(e.doc,"",n[J].from,n[J].to,"+delete");Zn(e)})}function Fa(e,t,r){var n=Ae(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Ba(e,t,r){var n=Fa(e,t.ch,r);return n==null?null:new Qe(t.line,n,r<0?"after":"before")}function Ua(e,t,r,n,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=et(r,t.doc.direction);if(k){var K=d<0?Oe(k):k[0],J=d<0==(K.level==1),Z=J?"after":"before",te;if(K.level>0||t.doc.direction=="rtl"){var de=Xn(t,r);te=d<0?r.text.length-1:0;var me=on(t,de,te).top;te=Ue(function(Ie){return on(t,de,Ie).top==me},d<0==(K.level==1)?K.from:K.to-1,te),Z=="before"&&(te=Fa(r,te,1))}else te=d<0?K.to:K.from;return new Qe(n,te,Z)}}return new Qe(n,d<0?r.text.length:0,d<0?"before":"after")}function Ml(e,t,r,n){var d=et(t,e.doc.direction);if(!d)return Ba(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var k=$e(d,r.ch,r.sticky),K=d[k];if(e.doc.direction=="ltr"&&K.level%2==0&&(n>0?K.to>r.ch:K.from=K.from&&Ie>=de.begin)){var Re=me?"before":"after";return new Qe(r.line,Ie,Re)}}var He=function(rt,lt,at){for(var ht=function(Xt,gi){return gi?new Qe(r.line,J(Xt,1),"before"):new Qe(r.line,Xt,"after")};rt>=0&&rt0==(Tt.level!=1),Rt=vt?at.begin:J(at.end,-1);if(Tt.from<=Rt&&Rt0?de.end:J(de.begin,-1);return qe!=null&&!(n>0&&qe==t.text.length)&&(Xe=He(n>0?0:d.length-1,n,te(qe)),Xe)?Xe:null}var Pr={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return sr(e,function(t){if(t.empty()){var r=ct(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)d=new Qe(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),Qe(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var K=ct(e.doc,d.line-1).text;K&&(d=new Qe(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+K.charAt(K.length-1),Qe(d.line-1,K.length-1),d,"+transpose"))}}r.push(new Gt(d,d))}e.setSelections(r)})},newlineAndIndent:function(e){return Wi(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&r==this.button};var Fr,Br;function Hl(e,t){var r=+new Date;return Br&&Br.compare(r,e,t)?(Fr=Br=null,"triple"):Fr&&Fr.compare(r,e,t)?(Br=new Ha(r,e,t),Fr=null,"double"):(Fr=new Ha(r,e,t),Br=null,"single")}function vo(e){var t=this,r=t.display;if(je(t,e)||r.activeTouch&&r.input.supportsTouch())return;if(r.input.ensurePolled(),r.shift=e.shiftKey,cn(r,e)){i||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),d=Pe(e),k=n?Hl(n,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,d,n,k,e))return;d==1?n?Kl(t,n,k,e):xe(e)==r.scroller&&ne(e):d==2?(n&&Zr(t.doc,n),setTimeout(function(){return r.input.focus()},20)):d==3&&(L?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,r,n,d){var k="Click";return n=="double"?k="Double"+k:n=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,Nr(e,oo(k,d),d,function(K){if(typeof K=="string"&&(K=Pr[K]),!K)return!1;var J=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),J=K(e,r)!=ke}finally{e.state.suppressEdits=!1}return J})}function Gl(e,t,r){var n=e.getOption("configureMouse"),d=n?n(e,t,r):{};if(d.unit==null){var k=a?r.shiftKey&&r.metaKey:r.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||r.shiftKey),d.addNew==null&&(d.addNew=s?r.metaKey:r.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?r.altKey:r.ctrlKey)),d}function Kl(e,t,r,n){G?setTimeout(P(gs,e),0):e.curOp.focus=N();var d=Gl(e,r,n),k=e.doc.sel,K;e.options.dragDrop&&ze&&!e.isReadOnly()&&r=="single"&&(K=k.contains(t))>-1&&(Ct((K=k.ranges[K]).from(),t)<0||t.xRel>0)&&(Ct(K.to(),t)>0||t.xRel<0)?zl(e,n,t,d):Vl(e,n,t,d)}function zl(e,t,r,n){var d=e.display,k=!1,K=pi(e,function(te){i&&(d.scroller.draggable=!1),e.state.draggingText=!1,nt(d.wrapper.ownerDocument,"mouseup",K),nt(d.wrapper.ownerDocument,"mousemove",J),nt(d.scroller,"dragstart",Z),nt(d.scroller,"drop",K),k||(ne(te),n.addNew||Zr(e.doc,r,null,null,n.extend),i&&!p||G&&W==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),J=function(te){k=k||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},Z=function(){return k=!0};i&&(d.scroller.draggable=!0),e.state.draggingText=K,K.copy=!n.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Me(d.wrapper.ownerDocument,"mouseup",K),Me(d.wrapper.ownerDocument,"mousemove",J),Me(d.scroller,"dragstart",Z),Me(d.scroller,"drop",K),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,r){if(r=="char")return new Gt(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Gt(Qe(t.line,0),E(e.doc,Qe(t.line+1,0)));var n=r(e,t);return new Gt(n.from,n.to)}function Vl(e,t,r,n){var d=e.display,k=e.doc;ne(t);var K,J,Z=k.sel,te=Z.ranges;if(n.addNew&&!n.extend?(J=k.sel.contains(r),J>-1?K=te[J]:K=new Gt(r,r)):(K=k.sel.primary(),J=k.sel.primIndex),n.unit=="rectangle")n.addNew||(K=new Gt(r,r)),r=Fn(e,t,!0,!0),J=-1;else{var de=yo(e,r,n.unit);n.extend?K=Pa(K,de.anchor,de.head,n.extend):K=de}n.addNew?J==-1?(J=te.length,wi(k,tn(e,te.concat([K]),J),{scroll:!1,origin:"*mouse"})):te.length>1&&te[J].empty()&&n.unit=="char"&&!n.extend?(wi(k,tn(e,te.slice(0,J).concat(te.slice(J+1)),0),{scroll:!1,origin:"*mouse"}),Z=k.sel):Na(k,J,K,Ce):(J=0,wi(k,new Yi([K],0),Ce),Z=k.sel);var me=r;function Ie(at){if(Ct(me,at)==0)return;if(me=at,n.unit=="rectangle"){for(var ht=[],Tt=e.options.tabSize,vt=Y(ct(k,r.line).text,r.ch,Tt),Rt=Y(ct(k,at.line).text,at.ch,Tt),Xt=Math.min(vt,Rt),gi=Math.max(vt,Rt),ei=Math.min(r.line,at.line),Gi=Math.min(e.lastLine(),Math.max(r.line,at.line));ei<=Gi;ei++){var Ni=ct(k,ei).text,si=pe(Ni,Xt,Tt);Xt==gi?ht.push(new Gt(Qe(ei,si),Qe(ei,si))):Ni.length>si&&ht.push(new Gt(Qe(ei,si),Qe(ei,pe(Ni,gi,Tt))))}ht.length||ht.push(new Gt(r,r)),wi(k,tn(e,Z.ranges.slice(0,J).concat(ht),J),{origin:"*mouse",scroll:!1}),e.scrollIntoView(at)}else{var Fi=K,_i=yo(e,at,n.unit),hi=Fi.anchor,oi;Ct(_i.anchor,hi)>0?(oi=_i.head,hi=yn(Fi.from(),_i.anchor)):(oi=_i.anchor,hi=vn(Fi.to(),_i.head));var ii=Z.ranges.slice(0);ii[J]=Yl(e,new Gt(E(k,hi),oi)),wi(k,tn(e,ii,J),Ce)}}var Re=d.wrapper.getBoundingClientRect(),He=0;function Xe(at){var ht=++He,Tt=Fn(e,at,!0,n.unit=="rectangle");if(!Tt)return;if(Ct(Tt,me)!=0){e.curOp.focus=N(),Ie(Tt);var vt=Vr(d,k);(Tt.line>=vt.to||Tt.lineRe.bottom?20:0;Rt&&setTimeout(pi(e,function(){if(He!=ht)return;d.scroller.scrollTop+=Rt,Xe(at)}),50)}}function qe(at){e.state.selectingText=!1,He=Infinity,at&&(ne(at),d.input.focus()),nt(d.wrapper.ownerDocument,"mousemove",rt),nt(d.wrapper.ownerDocument,"mouseup",lt),k.history.lastSelOrigin=null}var rt=pi(e,function(at){at.buttons===0||!Pe(at)?qe(at):Xe(at)}),lt=pi(e,qe);e.state.selectingText=lt,Me(d.wrapper.ownerDocument,"mousemove",rt),Me(d.wrapper.ownerDocument,"mouseup",lt)}function Yl(e,t){var r=t.anchor,n=t.head,d=ct(e.doc,r.line);if(Ct(r,n)==0&&r.sticky==n.sticky)return t;var k=et(d);if(!k)return t;var K=$e(k,r.ch,r.sticky),J=k[K];if(J.from!=r.ch&&J.to!=r.ch)return t;var Z=K+(J.from==r.ch==(J.level!=1)?0:1);if(Z==0||Z==k.length)return t;var te;if(n.line!=r.line)te=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var de=$e(k,n.ch,n.sticky),me=de-K||(n.ch-r.ch)*(J.level==1?-1:1);de==Z-1||de==Z?te=me<0:te=me>0}var Ie=k[Z+(te?-1:0)],Re=te==(Ie.level==1),He=Re?Ie.from:Ie.to,Xe=Re?"after":"before";return r.ch==He&&r.sticky==Xe?t:new Gt(new Qe(r.line,He,Xe),n)}function bo(e,t,r,n){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ie){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ne(t);var K=e.display,J=K.lineDiv.getBoundingClientRect();if(k>J.bottom||!ge(e,r))return he(t);k-=J.top-K.viewOffset;for(var Z=0;Z=d){var de=li(e.doc,k),me=e.display.gutterSpecs[Z];return Fe(e,r,e,de,me.className,t),he(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(cn(e.display,t)||Xl(e,t))return;if(je(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Xl(e,t){return ge(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yr(e)}var or={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function r(n,d,k,K){e.defaults[n]=d,k&&(t[n]=K?function(J,Z,te){te!=or&&k(J,Z,te)}:k)}e.defineOption=r,e.Init=or,r("value","",function(n,d){return n.setValue(d)},!0),r("mode",null,function(n,d){n.doc.modeOption=d,Da(n)},!0),r("indentUnit",2,Da,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){Cr(n),yr(n),Mi(n)},!0),r("lineSeparator",null,function(n,d){if(n.doc.lineSep=d,!d)return;var k=[],K=n.doc.first;n.doc.iter(function(Z){for(var te=0;;){var de=Z.text.indexOf(d,te);if(de==-1)break;te=de+d.length,k.push(Qe(K,de))}K++});for(var J=k.length-1;J>=0;J--)nr(n.doc,d,k[J],Qe(k[J].line,k[J].ch+d.length))}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,d,k){n.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=or&&n.refresh()}),r("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,d){return n.getInputField().spellcheck=d},!0),r("autocorrect",!1,function(n,d){return n.getInputField().autocorrect=d},!0),r("autocapitalize",!1,function(n,d){return n.getInputField().autocapitalize=d},!0),r("rtlMoveVisually",!A),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Eo(n),Sr(n)},!0),r("keyMap","default",function(n,d,k){var K=na(d),J=k!=or&&na(k);J&&J.detach&&J.detach(n,K),K.attach&&K.attach(n,J||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ql,!0),r("gutters",[],function(n,d){n.display.gutterSpecs=La(d,n.options.lineNumbers),Sr(n)},!0),r("fixedGutter",!0,function(n,d){n.display.gutters.style.left=d?_a(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),r("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,d){n.display.gutterSpecs=La(n.options.gutters,d),Sr(n)},!0),r("firstLineNumber",1,Sr,!0),r("lineNumberFormatter",function(n){return n},Sr,!0),r("showCursorWhenSelecting",!1,br,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,d){d=="nocursor"&&(Qn(n),n.display.input.blur()),n.display.input.readOnlyChanged(d)}),r("screenReaderLabel",null,function(n,d){d=d===""?null:d,n.display.input.screenReaderLabelChanged(d)}),r("disableInput",!1,function(n,d){d||n.display.input.reset()},!0),r("dragDrop",!0,Jl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,br,!0),r("singleCursorHeightPerLine",!0,br,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Cr,!0),r("addModeClass",!1,Cr,!0),r("pollInterval",100),r("undoDepth",200,function(n,d){return n.doc.history.undoDepth=d}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,Cr,!0),r("moveInputWithCursor",!0,function(n,d){d||n.display.input.resetPosition()}),r("tabindex",null,function(n,d){return n.display.input.getField().tabIndex=d||""}),r("autofocus",null),r("direction","ltr",function(n,d){return n.doc.setDirection(d)},!0),r("phrases",null)}function Jl(e,t,r){var n=r&&r!=or;if(!t!=!n){var d=e.display.dragFunctions,k=t?Me:nt;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Ql(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),jr(e)),Ea(e),Mi(e),yr(e),setTimeout(function(){return qn(e)},100)}function Zt(e,t){var r=this;if(!(this instanceof Zt))return new Zt(e,t);this.options=t=t?b(t):{},b(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pi(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var d=new Zt.inputStyles[t.inputStyle](this),k=this.display=new hl(e,n,d,t);k.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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},t.autofocus&&!h&&k.input.focus(),G&&W<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Zl(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!h||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Ta(r)},20):Qn(this);for(var K in aa)aa.hasOwnProperty(K)&&aa[K](this,t[K],or);Cs(this),t.finishInit&&t.finishInit(this);for(var J=0;J20*20}Me(t.scroller,"touchstart",function(Z){if(!je(e,Z)&&!k(Z)&&!Wa(e,Z)){t.input.ensurePolled(),clearTimeout(r);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},Z.touches.length==1&&(t.activeTouch.left=Z.touches[0].pageX,t.activeTouch.top=Z.touches[0].pageY)}}),Me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Me(t.scroller,"touchend",function(Z){var te=t.activeTouch;if(te&&!cn(t,Z)&&te.left!=null&&!te.moved&&new Date-te.start<300){var de=e.coordsChar(t.activeTouch,"page"),me;!te.prev||K(te,te.prev)?me=new Gt(de,de):!te.prev.prev||K(te,te.prev.prev)?me=e.findWordAt(de):me=new Gt(Qe(de.line,0),E(e.doc,Qe(de.line+1,0))),e.setSelection(me.anchor,me.head),e.focus(),ne(Z)}d()}),Me(t.scroller,"touchcancel",d),Me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Er(e,t.scroller.scrollTop),Un(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),Me(t.scroller,"mousewheel",function(Z){return Rs(e,Z)}),Me(t.scroller,"DOMMouseScroll",function(Z){return Rs(e,Z)}),Me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(Z){je(e,Z)||fe(Z)},over:function(Z){je(e,Z)||(Ol(e,Z),fe(Z))},start:function(Z){return Al(e,Z)},drop:pi(e,Cl),leave:function(Z){je(e,Z)||no(e)}};var J=t.input.getField();Me(J,"keyup",function(Z){return mo.call(e,Z)}),Me(J,"keydown",pi(e,po)),Me(J,"keypress",pi(e,go)),Me(J,"focus",function(Z){return Ta(e,Z)}),Me(J,"blur",function(Z){return Qn(e,Z)})}var Ga=[];Zt.defineInitHook=function(e){return Ga.push(e)};function Ur(e,t,r,n){var d=e.doc,k;r==null&&(r="add"),r=="smart"&&(d.mode.indent?k=it(e,t).state:r="prev");var K=e.options.tabSize,J=ct(d,t),Z=Y(J.text,null,K);J.stateAfter&&(J.stateAfter=null);var te=J.text.match(/^\s*/)[0],de;if(!n&&!/\S/.test(J.text))de=0,r="not";else if(r=="smart"&&(de=d.mode.indent(k,J.text.slice(te.length),J.text),de==ke||de>150)){if(!n)return;r="prev"}r=="prev"?t>d.first?de=Y(ct(d,t-1).text,null,K):de=0:r=="add"?de=Z+e.options.indentUnit:r=="subtract"?de=Z-e.options.indentUnit:typeof r=="number"&&(de=Z+r),de=Math.max(0,de);var me="",Ie=0;if(e.options.indentWithTabs)for(var Re=Math.floor(de/K);Re;--Re)Ie+=K,me+=" ";if(IeK,Z=St(t),te=null;if(J&&n.ranges.length>1)if(nn&&nn.text.join(` +`)==t){if(n.ranges.length%nn.text.length==0){te=[];for(var de=0;de=0;Ie--){var Re=n.ranges[Ie],He=Re.from(),Xe=Re.to();Re.empty()&&(r&&r>0?He=Qe(He.line,He.ch-r):e.state.overwrite&&!J?Xe=Qe(Xe.line,Math.min(ct(k,Xe.line).text.length,Xe.ch+Oe(Z).length)):J&&nn&&nn.lineWise&&nn.text.join(` `)==Z.join(` -`)&&(He=Xe=Qe(He.line,0)));var qe={from:He,to:Xe,text:te?te[Ie%te.length]:Z,origin:d||(J?"paste":e.state.cutIncoming>K?"cut":"+input")};tn(e.doc,qe),bi(e,"inputRead",e,qe)}t&&!J&&wo(e,t),Qr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=me),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wi(t,function(){return Ka(t,n,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var d=n.ranges[r];if(d.head.ch>100||r&&n.ranges[r-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),K=!1;if(k.electricChars){for(var J=0;J-1){K=Un(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(ct(e.doc,d.head.line).text.slice(0,d.head.ch))&&(K=Un(e,d.head.line,"smart")));K&&bi(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],n=[],r=0;rk&&(Un(this,J.head.line,r,!0),k=J.head.line,K==this.doc.sel.primIndex&&Qr(this));else{var Z=J.from(),te=J.to(),de=Math.max(k,Z.line);k=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var me=de;me0&&Na(this.doc,K,new Gt(Z,Ie[K].to()),Se)}}}),getTokenAt:function(r,d){return $t(this,r,d)},getLineTokens:function(r,d){return $t(this,Qe(r),d,!0)},getTokenTypeAt:function(r){r=E(this.doc,r);var d=Ke(this,ct(this.doc,r.line)),k=0,K=(d.length-1)/2,J=r.ch,Z;if(J==0)Z=d[2];else for(;;){var te=k+K>>1;if((te?d[te*2-1]:0)>=J)K=te;else if(d[te*2+1]Z&&(r=Z,K=!0),J=ct(this.doc,r)}else J=r;return Wn(this,J,{top:0,left:0},d||"page",k||K).top+(K?this.doc.height-qi(J):0)},defaultTextHeight:function(){return Xr(this.display)},defaultCharWidth:function(){return $r(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,k,K,J){var Z=this.display;r=er(this,E(this.doc,r));var te=r.bottom,de=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),Z.sizer.appendChild(d),K=="over")te=r.top;else if(K=="above"||K=="near"){var me=Math.max(Z.wrapper.clientHeight,this.doc.height),Ie=Math.max(Z.sizer.clientWidth,Z.lineSpace.clientWidth);(K=="above"||r.bottom+d.offsetHeight>me)&&r.top>d.offsetHeight?te=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=me&&(te=r.bottom),de+d.offsetWidth>Ie&&(de=Ie-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",J=="right"?(de=Z.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(J=="left"?de=0:J=="middle"&&(de=(Z.sizer.clientWidth-d.offsetWidth)/2),d.style.left=de+"px"),k&&Jo(this,{left:de,top:te,right:de+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Oi(po),triggerOnKeyPress:Oi(go),triggerOnKeyUp:mo,triggerOnMouseDown:Oi(vo),execCommand:function(r){if(Pn.hasOwnProperty(r))return Pn[r].call(null,this)},triggerElectric:Oi(function(r){wo(this,r)}),findPosH:function(r,d,k,K){var J=1;d<0&&(J=-1,d=-d);for(var Z=E(this.doc,r),te=0;te0&&de(k.charAt(K-1));)--K;for(;J.5||this.options.lineWrapping)&&Ea(this),Fe(this,"refresh",this)}),swapDoc:Oi(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,r),yn(this),this.display.input.reset(),_n(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,bi(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},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}},_e(e),e.registerHelper=function(r,d,k){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][d]=k},e.registerGlobalHelper=function(r,d,k,K){e.registerHelper(r,d,K),n[r]._global.push({pred:k,val:K})}}function za(e,t,n,r,d){var k=t,K=n,J=ct(e,t.line),Z=d&&e.direction=="rtl"?-n:n;function te(){var lt=t.line+Z;return lt=e.first+e.size?!1:(t=new Qe(lt,t.ch,t.sticky),J=ct(e,lt))}function de(lt){var at;if(r=="codepoint"){var ht=J.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(ht)?at=null:at=new Qe(t.line,Math.max(0,Math.min(J.text.length,t.ch+n*(ht>=55296&&ht<56320?2:1))),-n)}else d?at=Ml(e.cm,J,t,n):at=Ba(J,t,n);if(at==null)if(!lt&&te())t=Ua(d,e.cm,J,t.line,Z);else return!1;else t=at;return!0}if(r=="char"||r=="codepoint")de();else if(r=="column")de(!0);else if(r=="word"||r=="group")for(var me=null,Ie=r=="group",Re=e.cm&&e.cm.getHelper(t,"wordChars"),He=!0;!(n<0&&!de(!He));He=!1){var Xe=J.text.charAt(t.ch)||` +`)&&(He=Xe=Qe(He.line,0)));var qe={from:He,to:Xe,text:te?te[Ie%te.length]:Z,origin:d||(J?"paste":e.state.cutIncoming>K?"cut":"+input")};ir(e.doc,qe),bi(e,"inputRead",e,qe)}t&&!J&&wo(e,t),Zn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=me),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wi(t,function(){return Ka(t,r,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var d=r.ranges[n];if(d.head.ch>100||n&&r.ranges[n-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),K=!1;if(k.electricChars){for(var J=0;J-1){K=Ur(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(ct(e.doc,d.head.line).text.slice(0,d.head.ch))&&(K=Ur(e,d.head.line,"smart")));K&&bi(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],r=[],n=0;nk&&(Ur(this,J.head.line,n,!0),k=J.head.line,K==this.doc.sel.primIndex&&Zn(this));else{var Z=J.from(),te=J.to(),de=Math.max(k,Z.line);k=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var me=de;me0&&Na(this.doc,K,new Gt(Z,Ie[K].to()),Se)}}}),getTokenAt:function(n,d){return $t(this,n,d)},getLineTokens:function(n,d){return $t(this,Qe(n),d,!0)},getTokenTypeAt:function(n){n=E(this.doc,n);var d=Ke(this,ct(this.doc,n.line)),k=0,K=(d.length-1)/2,J=n.ch,Z;if(J==0)Z=d[2];else for(;;){var te=k+K>>1;if((te?d[te*2-1]:0)>=J)K=te;else if(d[te*2+1]Z&&(n=Z,K=!0),J=ct(this.doc,n)}else J=n;return Wr(this,J,{top:0,left:0},d||"page",k||K).top+(K?this.doc.height-qi(J):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,d,k,K,J){var Z=this.display;n=en(this,E(this.doc,n));var te=n.bottom,de=n.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),Z.sizer.appendChild(d),K=="over")te=n.top;else if(K=="above"||K=="near"){var me=Math.max(Z.wrapper.clientHeight,this.doc.height),Ie=Math.max(Z.sizer.clientWidth,Z.lineSpace.clientWidth);(K=="above"||n.bottom+d.offsetHeight>me)&&n.top>d.offsetHeight?te=n.top-d.offsetHeight:n.bottom+d.offsetHeight<=me&&(te=n.bottom),de+d.offsetWidth>Ie&&(de=Ie-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",J=="right"?(de=Z.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(J=="left"?de=0:J=="middle"&&(de=(Z.sizer.clientWidth-d.offsetWidth)/2),d.style.left=de+"px"),k&&Jo(this,{left:de,top:te,right:de+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Oi(po),triggerOnKeyPress:Oi(go),triggerOnKeyUp:mo,triggerOnMouseDown:Oi(vo),execCommand:function(n){if(Pr.hasOwnProperty(n))return Pr[n].call(null,this)},triggerElectric:Oi(function(n){wo(this,n)}),findPosH:function(n,d,k,K){var J=1;d<0&&(J=-1,d=-d);for(var Z=E(this.doc,n),te=0;te0&&de(k.charAt(K-1));)--K;for(;J.5||this.options.lineWrapping)&&Ea(this),Fe(this,"refresh",this)}),swapDoc:Oi(function(n){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yr(this),this.display.input.reset(),_r(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,bi(this,"swapDoc",this,d),d}),phrase:function(n){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,n)?d[n]:n},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}},_e(e),e.registerHelper=function(n,d,k){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][d]=k},e.registerGlobalHelper=function(n,d,k,K){e.registerHelper(n,d,K),r[n]._global.push({pred:k,val:K})}}function za(e,t,r,n,d){var k=t,K=r,J=ct(e,t.line),Z=d&&e.direction=="rtl"?-r:r;function te(){var lt=t.line+Z;return lt=e.first+e.size?!1:(t=new Qe(lt,t.ch,t.sticky),J=ct(e,lt))}function de(lt){var at;if(n=="codepoint"){var ht=J.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(ht)?at=null:at=new Qe(t.line,Math.max(0,Math.min(J.text.length,t.ch+r*(ht>=55296&&ht<56320?2:1))),-r)}else d?at=Ml(e.cm,J,t,r):at=Ba(J,t,r);if(at==null)if(!lt&&te())t=Ua(d,e.cm,J,t.line,Z);else return!1;else t=at;return!0}if(n=="char"||n=="codepoint")de();else if(n=="column")de(!0);else if(n=="word"||n=="group")for(var me=null,Ie=n=="group",Re=e.cm&&e.cm.getHelper(t,"wordChars"),He=!0;!(r<0&&!de(!He));He=!1){var Xe=J.text.charAt(t.ch)||` `,qe=Ge(Xe,Re)?"w":Ie&&Xe==` -`?"n":!Ie||/\s/.test(Xe)?null:"p";if(Ie&&!He&&!qe&&(qe="s"),me&&me!=qe){n<0&&(n=1,de(),t.sticky="after");break}if(qe&&(me=qe),n>0&&!de(!He))break}var nt=ea(e,t,k,K,!0);return pr(k,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,n,r){var d=e.doc,k=t.left,K;if(r=="page"){var J=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Z=Math.max(J-.5*Xr(e.display),3);K=(n>0?t.bottom:t.top)+n*Z}else r=="line"&&(K=n>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,k,K),!te.outside);){if(n<0?K<=0:K>=d.height){te.hitSide=!0;break}K+=n*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,n=this,r=n.cm,d=n.div=e.lineDiv;Co(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function k(J){for(var Z=J.target;Z;Z=Z.parentNode){if(Z==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Z.className))break}return!1}Me(d,"paste",function(J){if(!k(J)||je(r,J)||To(J,r))return;W<=11&&setTimeout(pi(r,function(){return t.updateFromDOM()}),20)}),Me(d,"compositionstart",function(J){t.composing={data:J.data,done:!1}}),Me(d,"compositionupdate",function(J){t.composing||(t.composing={data:J.data,done:!1})}),Me(d,"compositionend",function(J){t.composing&&(J.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Me(d,"touchstart",function(){return n.forceCompositionEnd()}),Me(d,"input",function(){t.composing||t.readFromDOMSoon()});function K(J){if(!k(J)||je(r,J))return;if(r.somethingSelected())sa({lineWise:!1,text:r.getSelections()}),J.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var Z=So(r);sa({lineWise:!0,text:Z.text}),J.type=="cut"&&r.operation(function(){r.setSelections(Z.ranges,0,Se),r.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var te=ir.text.join(` -`);if(J.clipboardData.setData("Text",te),J.clipboardData.getData("Text")==te){J.preventDefault();return}}var de=Ao(),me=de.firstChild;r.display.lineSpace.insertBefore(de,r.display.lineSpace.firstChild),me.value=ir.text.join(` -`);var Ie=document.activeElement;j(me),setTimeout(function(){r.display.lineSpace.removeChild(de),Ie.focus(),Ie==d&&n.showPrimarySelection()},50)}Me(d,"copy",K),Me(d,"cut",K)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),d=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,r)||{node:J[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(r=Qe(r.line-1,ct(e.doc,r.line-1).length)),d.ch==ct(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,K,J;r.line==t.viewFrom||(k=Fr(e,r.line))==0?(K=Ot(t.view[0].line),J=t.view[0].node):(K=Ot(t.view[k].line),J=t.view[k-1].node.nextSibling);var Z=Fr(e,d.line),te,de;if(Z==t.view.length-1?(te=t.viewTo-1,de=t.lineDiv.lastChild):(te=Ot(t.view[Z+1].line)-1,de=t.view[Z+1].node.previousSibling),!J)return!1;for(var me=e.doc.splitLines(tu(e,J,de,K,te)),Ie=Ui(e.doc,Qe(K,0),Qe(te,ct(e.doc,te).text.length));me.length>1&&Ie.length>1;)if(Oe(me)==Oe(Ie))me.pop(),Ie.pop(),te--;else if(me[0]==Ie[0])me.shift(),Ie.shift(),K++;else break;for(var Re=0,He=0,Xe=me[0],qe=Ie[0],nt=Math.min(Xe.length,qe.length);Rer.ch&<.charCodeAt(lt.length-He-1)==at.charCodeAt(at.length-He-1);)Re--,He++;me[me.length-1]=lt.slice(0,lt.length-He).replace(/^\u200b+/,""),me[0]=me[0].slice(Re).replace(/\u200b+$/,"");var Tt=Qe(K,Re),vt=Qe(te,Ie.length?Oe(Ie).length-He:0);if(me.length>1||me[0]||Ct(Tt,vt))return rn(e.doc,me,Tt,vt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return Mi(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var n=fa(e,t.line);if(!n||n.hidden)return null;var r=ct(e.doc,t.line),d=es(n,r,t.line),k=et(r,e.doc.direction),K="left";if(k){var J=$e(k,t.ch);K=J%2?"right":"left"}var Z=rs(d.map,t.ch,K);return Z.offset=Z.collapse=="right"?Z.end:Z.start,Z}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ln(e,t){return t&&(e.bad=!0),e}function tu(e,t,n,r,d){var k="",K=!1,J=e.doc.lineSeparator(),Z=!1;function te(Re){return function(He){return He.id==Re}}function de(){K&&(k+=J,Z&&(k+=J),K=Z=!1)}function me(Re){Re&&(de(),k+=Re)}function Ie(Re){if(Re.nodeType==1){var He=Re.getAttribute("cm-text");if(He){me(He);return}var Xe=Re.getAttribute("cm-marker"),qe;if(Xe){var nt=e.findMarks(Qe(r,0),Qe(d+1,0),te(+Xe));nt.length&&(qe=nt[0].find(0))&&me(Ui(e.doc,qe.from,qe.to).join(J));return}if(Re.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;lt&&de();for(var at=0;at=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Me(d,"paste",function(K){if(je(r,K)||To(K,r))return;r.state.pasteIncoming=+new Date,n.fastPoll()});function k(K){if(je(r,K))return;if(r.somethingSelected())sa({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var J=So(r);sa({lineWise:!0,text:J.text}),K.type=="cut"?r.setSelections(J.ranges,null,Se):(n.prevInput="",d.value=J.text.join(` -`),j(d))}else return;K.type=="cut"&&(r.state.cutIncoming=+new Date)}Me(d,"cut",k),Me(d,"copy",k),Me(e.scroller,"paste",function(K){if(dr(e,K)||je(r,K))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var J=new Event("paste");J.clipboardData=K.clipboardData,d.dispatchEvent(J)}),Me(e.lineSpace,"selectstart",function(K){dr(e,K)||re(K)}),Me(d,"compositionstart",function(){var K=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:K,range:r.markText(K,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(d,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ni.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ni.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ni.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ps(e);if(e.options.moveInputWithCursor){var d=er(e,n.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),K=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+K.top-k.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+K.left-k.left))}return r},ni.prototype.showSelection=function(e){var t=this.cm,n=t.display;x(n.cursorDiv,e.cursors),x(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ni.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),G&&W>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",G&&W>=9&&(this.hasSelection=null))},ni.prototype.getField=function(){return this.textarea},ni.prototype.supportsTouch=function(){return!1},ni.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},ni.prototype.blur=function(){this.textarea.blur()},ni.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ni.prototype.receivedFocus=function(){this.slowPoll()},ni.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ni.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},ni.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||dt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=n.value;if(d==r&&!t.somethingSelected())return!1;if(G&&W>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!r&&(r="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var K=0,J=Math.min(r.length,d.length);K1e3||d.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ni.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ni.prototype.onKeyPress=function(){G&&W>=9&&(this.hasSelection=null),this.fastPoll()},ni.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=Nr(n,e),K=r.scroller.scrollTop;if(!k||m)return;var J=n.options.resetSelectionOnContextMenu;J&&n.doc.sel.contains(k)==-1&&pi(n,wi)(n.doc,Sr(k),Se);var Z=d.style.cssText,te=t.wrapper.style.cssText,de=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; +`?"n":!Ie||/\s/.test(Xe)?null:"p";if(Ie&&!He&&!qe&&(qe="s"),me&&me!=qe){r<0&&(r=1,de(),t.sticky="after");break}if(qe&&(me=qe),r>0&&!de(!He))break}var rt=ea(e,t,k,K,!0);return mn(k,rt)&&(rt.hitSide=!0),rt}function Oo(e,t,r,n){var d=e.doc,k=t.left,K;if(n=="page"){var J=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Z=Math.max(J-.5*$n(e.display),3);K=(r>0?t.bottom:t.top)+r*Z}else n=="line"&&(K=r>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,k,K),!te.outside);){if(r<0?K<=0:K>=d.height){te.hitSide=!0;break}K+=r*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,r=this,n=r.cm,d=r.div=e.lineDiv;Co(d,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function k(J){for(var Z=J.target;Z;Z=Z.parentNode){if(Z==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Z.className))break}return!1}Me(d,"paste",function(J){if(!k(J)||je(n,J)||To(J,n))return;W<=11&&setTimeout(pi(n,function(){return t.updateFromDOM()}),20)}),Me(d,"compositionstart",function(J){t.composing={data:J.data,done:!1}}),Me(d,"compositionupdate",function(J){t.composing||(t.composing={data:J.data,done:!1})}),Me(d,"compositionend",function(J){t.composing&&(J.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Me(d,"touchstart",function(){return r.forceCompositionEnd()}),Me(d,"input",function(){t.composing||t.readFromDOMSoon()});function K(J){if(!k(J)||je(n,J))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),J.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var Z=So(n);sa({lineWise:!0,text:Z.text}),J.type=="cut"&&n.operation(function(){n.setSelections(Z.ranges,0,Se),n.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var te=nn.text.join(` +`);if(J.clipboardData.setData("Text",te),J.clipboardData.getData("Text")==te){J.preventDefault();return}}var de=Ao(),me=de.firstChild;n.display.lineSpace.insertBefore(de,n.display.lineSpace.firstChild),me.value=nn.text.join(` +`);var Ie=document.activeElement;j(me),setTimeout(function(){n.display.lineSpace.removeChild(de),Ie.focus(),Ie==d&&r.showPrimarySelection()},50)}Me(d,"copy",K),Me(d,"cut",K)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),d=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,n)||{node:J[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(n=Qe(n.line-1,ct(e.doc,n.line-1).length)),d.ch==ct(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,K,J;n.line==t.viewFrom||(k=Bn(e,n.line))==0?(K=Ot(t.view[0].line),J=t.view[0].node):(K=Ot(t.view[k].line),J=t.view[k-1].node.nextSibling);var Z=Bn(e,d.line),te,de;if(Z==t.view.length-1?(te=t.viewTo-1,de=t.lineDiv.lastChild):(te=Ot(t.view[Z+1].line)-1,de=t.view[Z+1].node.previousSibling),!J)return!1;for(var me=e.doc.splitLines(tu(e,J,de,K,te)),Ie=Ui(e.doc,Qe(K,0),Qe(te,ct(e.doc,te).text.length));me.length>1&&Ie.length>1;)if(Oe(me)==Oe(Ie))me.pop(),Ie.pop(),te--;else if(me[0]==Ie[0])me.shift(),Ie.shift(),K++;else break;for(var Re=0,He=0,Xe=me[0],qe=Ie[0],rt=Math.min(Xe.length,qe.length);Ren.ch&<.charCodeAt(lt.length-He-1)==at.charCodeAt(at.length-He-1);)Re--,He++;me[me.length-1]=lt.slice(0,lt.length-He).replace(/^\u200b+/,""),me[0]=me[0].slice(Re).replace(/\u200b+$/,"");var Tt=Qe(K,Re),vt=Qe(te,Ie.length?Oe(Ie).length-He:0);if(me.length>1||me[0]||Ct(Tt,vt))return nr(e.doc,me,Tt,vt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return Mi(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var r=fa(e,t.line);if(!r||r.hidden)return null;var n=ct(e.doc,t.line),d=es(r,n,t.line),k=et(n,e.doc.direction),K="left";if(k){var J=$e(k,t.ch);K=J%2?"right":"left"}var Z=ns(d.map,t.ch,K);return Z.offset=Z.collapse=="right"?Z.end:Z.start,Z}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function lr(e,t){return t&&(e.bad=!0),e}function tu(e,t,r,n,d){var k="",K=!1,J=e.doc.lineSeparator(),Z=!1;function te(Re){return function(He){return He.id==Re}}function de(){K&&(k+=J,Z&&(k+=J),K=Z=!1)}function me(Re){Re&&(de(),k+=Re)}function Ie(Re){if(Re.nodeType==1){var He=Re.getAttribute("cm-text");if(He){me(He);return}var Xe=Re.getAttribute("cm-marker"),qe;if(Xe){var rt=e.findMarks(Qe(n,0),Qe(d+1,0),te(+Xe));rt.length&&(qe=rt[0].find(0))&&me(Ui(e.doc,qe.from,qe.to).join(J));return}if(Re.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;lt&&de();for(var at=0;at=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),Me(d,"paste",function(K){if(je(n,K)||To(K,n))return;n.state.pasteIncoming=+new Date,r.fastPoll()});function k(K){if(je(n,K))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var J=So(n);sa({lineWise:!0,text:J.text}),K.type=="cut"?n.setSelections(J.ranges,null,Se):(r.prevInput="",d.value=J.text.join(` +`),j(d))}else return;K.type=="cut"&&(n.state.cutIncoming=+new Date)}Me(d,"cut",k),Me(d,"copy",k),Me(e.scroller,"paste",function(K){if(cn(e,K)||je(n,K))return;if(!d.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var J=new Event("paste");J.clipboardData=K.clipboardData,d.dispatchEvent(J)}),Me(e.lineSpace,"selectstart",function(K){cn(e,K)||ne(K)}),Me(d,"compositionstart",function(){var K=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:K,range:n.markText(K,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(d,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},ri.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ri.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ri.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var d=en(e,r.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),K=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+K.top-k.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+K.left-k.left))}return n},ri.prototype.showSelection=function(e){var t=this.cm,r=t.display;x(r.cursorDiv,e.cursors),x(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ri.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&j(this.textarea),G&&W>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",G&&W>=9&&(this.hasSelection=null))},ri.prototype.getField=function(){return this.textarea},ri.prototype.supportsTouch=function(){return!1},ri.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},ri.prototype.blur=function(){this.textarea.blur()},ri.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ri.prototype.receivedFocus=function(){this.slowPoll()},ri.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ri.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},ri.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||dt(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=r.value;if(d==n&&!t.somethingSelected())return!1;if(G&&W>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!n&&(n="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var K=0,J=Math.min(n.length,d.length);K1e3||d.indexOf(` +`)>-1?r.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ri.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ri.prototype.onKeyPress=function(){G&&W>=9&&(this.hasSelection=null),this.fastPoll()},ri.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=Fn(r,e),K=n.scroller.scrollTop;if(!k||m)return;var J=r.options.resetSelectionOnContextMenu;J&&r.doc.sel.contains(k)==-1&&pi(r,wi)(r.doc,Cn(k),Se);var Z=d.style.cssText,te=t.wrapper.style.cssText,de=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-de.top-5)+"px; left: "+(e.clientX-de.left-5)+`px; z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var me;i&&(me=window.scrollY),r.input.focus(),i&&window.scrollTo(null,me),r.input.reset(),n.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=Re,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function Ie(){if(d.selectionStart!=null){var Xe=n.somethingSelected(),qe="\u200B"+(Xe?d.value:"");d.value="\u21DA",d.value=qe,t.prevInput=Xe?"":"\u200B",d.selectionStart=1,d.selectionEnd=qe.length,r.selForContextMenu=n.doc.sel}}function Re(){if(t.contextMenuPending!=Re)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=Z,G&&W<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=K),d.selectionStart!=null){(!G||G&&W<9)&&Ie();var Xe=0,qe=function(){r.selForContextMenu==n.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pi(n,Vs)(n):Xe++<10?r.detectingSelectAll=setTimeout(qe,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(qe,200)}}if(G&&W>=9&&Ie(),L){fe(e);var He=function(){rt(window,"mouseup",He),setTimeout(Re,20)};Me(window,"mouseup",He)}else setTimeout(Re,50)},ni.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ni.prototype.setUneditable=function(){},ni.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?b(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=N();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=J.getValue()}var d;if(e.form&&(Me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var K=k.submit=function(){r(),k.submit=d,k.submit(),k.submit=K}}catch(Z){}}t.finishInit=function(Z){Z.save=r,Z.getTextArea=function(){return e},Z.toTextArea=function(){Z.toTextArea=isNaN,r(),e.parentNode.removeChild(Z.getWrapperElement()),e.style.display="",e.form&&(rt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var J=Zt(function(Z){return e.parentNode.insertBefore(Z,e.nextSibling)},t);return J}function nu(e){e.off=rt,e.on=Me,e.wheelEventPixels=dl,e.Doc=Pi,e.splitLines=St,e.countColumn=Y,e.findColumn=pe,e.isWordChar=Be,e.Pass=ke,e.signal=Fe,e.Line=kr,e.changeEnd=Cr,e.scrollbarModel=xs,e.Pos=Qe,e.cmpPos=Ct,e.modes=Qt,e.mimeModes=It,e.resolveMode=yt,e.getMode=Li,e.modeExtensions=bt,e.extendMode=xt,e.copyState=Ft,e.startState=di,e.innerMode=ti,e.commands=Pn,e.keyMap=cr,e.keyName=lo,e.isModifierKey=so,e.lookupKey=an,e.normalizeKeyMap=kl,e.StringStream=Pt,e.SharedTextMarker=Dn,e.TextMarker=Or,e.LineWidget=In,e.e_preventDefault=re,e.e_stopPropagation=ne,e.e_stop=fe,e.addClass=B,e.contains=v,e.rmClass=C,e.keyNames=Rr}$l(Zt),ql(Zt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pi.prototype)Pi.prototype.hasOwnProperty(la)&&le(au,la)<0&&(Zt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pi.prototype[la]));return _e(Pi),Zt.inputStyles={textarea:ni,contenteditable:zt},Zt.defineMode=function(e){!Zt.defaults.mode&&e!="null"&&(Zt.defaults.mode=e),Ci.apply(this,arguments)},Zt.defineMIME=Ki,Zt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zt.defineMIME("text/plain","null"),Zt.defineExtension=function(e,t){Zt.prototype[e]=t},Zt.defineDocExtension=function(e,t){Pi.prototype[e]=t},Zt.fromTextArea=ru,nu(Zt),Zt.version="5.58.2",Zt})},Y1PL:function(st,be,Q){"use strict";Q.r(be),Q.d(be,"ResizableTextArea",function(){return le});var ie=Q("wx14"),$=Q("1OyB"),M=Q("vuIU"),X=Q("Ji7U"),F=Q("LK+K"),U=Q("q1tI"),G=Q("VTBJ"),W=Q("rePB"),i=Q("Zm9Q"),D=Q("Kwbf"),g=Q("c+Xe"),m=Q("m+aA"),p=Q("bdgK"),l=new Map;function u(Se){Se.forEach(function(Ce){var ce,pe=Ce.target;(ce=l.get(pe))===null||ce===void 0||ce.forEach(function(se){return se(pe)})})}var f=new p.default(u),o=null,h=null;function s(Se,Ce){l.has(Se)||(l.set(Se,new Set),f.observe(Se)),l.get(Se).add(Ce)}function a(Se,Ce){l.has(Se)&&(l.get(Se).delete(Ce),l.get(Se).size||(f.unobserve(Se),l.delete(Se)))}var A=function(Se){Object(X.a)(ce,Se);var Ce=Object(F.a)(ce);function ce(){return Object($.a)(this,ce),Ce.apply(this,arguments)}return Object(M.a)(ce,[{key:"render",value:function(){return this.props.children}}]),ce}(U.Component),_=U.createContext(null);function S(Se){var Ce=Se.children,ce=Se.onBatchResize,pe=U.useRef(0),se=U.useRef([]),ae=U.useContext(_),Oe=U.useCallback(function(Te,Ne,De){pe.current+=1;var We=pe.current;se.current.push({size:Te,element:Ne,data:De}),Promise.resolve().then(function(){We===pe.current&&(ce==null||ce(se.current),se.current=[])}),ae==null||ae(Te,Ne,De)},[ce,ae]);return U.createElement(_.Provider,{value:Oe},Ce)}function L(Se){var Ce=Se.children,ce=Se.disabled,pe=U.useRef(null),se=U.useRef(null),ae=U.useContext(_),Oe=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Te=U.isValidElement(Ce)&&Object(g.c)(Ce),Ne=Te?Ce.ref:null,De=U.useMemo(function(){return Object(g.a)(Ne,pe)},[Ne,pe]),We=U.useRef(Se);We.current=Se;var Le=U.useCallback(function(Be){var Ge=We.current,oe=Ge.onResize,ye=Ge.data,we=Be.getBoundingClientRect(),Ae=we.width,Ue=we.height,Ve=Be.offsetWidth,Ze=Be.offsetHeight,$e=Math.floor(Ae),tt=Math.floor(Ue);if(Oe.current.width!==$e||Oe.current.height!==tt||Oe.current.offsetWidth!==Ve||Oe.current.offsetHeight!==Ze){var et={width:$e,height:tt,offsetWidth:Ve,offsetHeight:Ze};Oe.current=et;var Je=Ve===Math.round(Ae)?Ae:Ve,Me=Ze===Math.round(Ue)?Ue:Ze,ut=Object(G.a)(Object(G.a)({},et),{},{offsetWidth:Je,offsetHeight:Me});ae==null||ae(ut,Be,ye),oe&&Promise.resolve().then(function(){oe(ut,Be)})}},[]);return U.useEffect(function(){var Be=Object(m.a)(pe.current)||Object(m.a)(se.current);return Be&&!ce&&s(Be,Le),function(){return a(Be,Le)}},[pe.current,ce]),U.createElement(A,{ref:se},Te?U.cloneElement(Ce,{ref:De}):Ce)}var R="rc-observer-key";function C(Se){var Ce=Se.children,ce=Object(i.a)(Ce);return ce.map(function(pe,se){var ae=(pe==null?void 0:pe.key)||"".concat(R,"-").concat(se);return U.createElement(L,Object(ie.a)({},Se,{key:ae}),pe)})}C.Collection=S;var w=C,x=Q("bT9E"),c=Q("TSYQ"),T=Q.n(c),y=` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var me;i&&(me=window.scrollY),n.input.focus(),i&&window.scrollTo(null,me),n.input.reset(),r.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=Re,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function Ie(){if(d.selectionStart!=null){var Xe=r.somethingSelected(),qe="\u200B"+(Xe?d.value:"");d.value="\u21DA",d.value=qe,t.prevInput=Xe?"":"\u200B",d.selectionStart=1,d.selectionEnd=qe.length,n.selForContextMenu=r.doc.sel}}function Re(){if(t.contextMenuPending!=Re)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=Z,G&&W<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=K),d.selectionStart!=null){(!G||G&&W<9)&&Ie();var Xe=0,qe=function(){n.selForContextMenu==r.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pi(r,Vs)(r):Xe++<10?n.detectingSelectAll=setTimeout(qe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(qe,200)}}if(G&&W>=9&&Ie(),L){fe(e);var He=function(){nt(window,"mouseup",He),setTimeout(Re,20)};Me(window,"mouseup",He)}else setTimeout(Re,50)},ri.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ri.prototype.setUneditable=function(){},ri.prototype.needsContentAttribute=!1;function nu(e,t){if(t=t?b(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=N();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=J.getValue()}var d;if(e.form&&(Me(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var K=k.submit=function(){n(),k.submit=d,k.submit(),k.submit=K}}catch(Z){}}t.finishInit=function(Z){Z.save=n,Z.getTextArea=function(){return e},Z.toTextArea=function(){Z.toTextArea=isNaN,n(),e.parentNode.removeChild(Z.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var J=Zt(function(Z){return e.parentNode.insertBefore(Z,e.nextSibling)},t);return J}function ru(e){e.off=nt,e.on=Me,e.wheelEventPixels=dl,e.Doc=Pi,e.splitLines=St,e.countColumn=Y,e.findColumn=pe,e.isWordChar=Be,e.Pass=ke,e.signal=Fe,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Qe,e.cmpPos=Ct,e.modes=Qt,e.mimeModes=It,e.resolveMode=yt,e.getMode=Li,e.modeExtensions=bt,e.extendMode=xt,e.copyState=Ft,e.startState=di,e.innerMode=ti,e.commands=Pr,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ar,e.normalizeKeyMap=kl,e.StringStream=Pt,e.SharedTextMarker=Dr,e.TextMarker=Rn,e.LineWidget=Ir,e.e_preventDefault=ne,e.e_stopPropagation=re,e.e_stop=fe,e.addClass=B,e.contains=v,e.rmClass=C,e.keyNames=Ln}$l(Zt),ql(Zt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pi.prototype)Pi.prototype.hasOwnProperty(la)&&le(au,la)<0&&(Zt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pi.prototype[la]));return _e(Pi),Zt.inputStyles={textarea:ri,contenteditable:zt},Zt.defineMode=function(e){!Zt.defaults.mode&&e!="null"&&(Zt.defaults.mode=e),Ci.apply(this,arguments)},Zt.defineMIME=Ki,Zt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zt.defineMIME("text/plain","null"),Zt.defineExtension=function(e,t){Zt.prototype[e]=t},Zt.defineDocExtension=function(e,t){Pi.prototype[e]=t},Zt.fromTextArea=nu,ru(Zt),Zt.version="5.58.2",Zt})},Y1PL:function(st,be,Q){"use strict";Q.r(be),Q.d(be,"ResizableTextArea",function(){return le});var ie=Q("wx14"),$=Q("1OyB"),M=Q("vuIU"),X=Q("Ji7U"),F=Q("LK+K"),U=Q("q1tI"),G=Q("VTBJ"),W=Q("rePB"),i=Q("Zm9Q"),D=Q("Kwbf"),g=Q("c+Xe"),m=Q("m+aA"),p=Q("bdgK"),l=new Map;function u(Se){Se.forEach(function(Ce){var ce,pe=Ce.target;(ce=l.get(pe))===null||ce===void 0||ce.forEach(function(se){return se(pe)})})}var f=new p.default(u),o=null,h=null;function s(Se,Ce){l.has(Se)||(l.set(Se,new Set),f.observe(Se)),l.get(Se).add(Ce)}function a(Se,Ce){l.has(Se)&&(l.get(Se).delete(Ce),l.get(Se).size||(f.unobserve(Se),l.delete(Se)))}var A=function(Se){Object(X.a)(ce,Se);var Ce=Object(F.a)(ce);function ce(){return Object($.a)(this,ce),Ce.apply(this,arguments)}return Object(M.a)(ce,[{key:"render",value:function(){return this.props.children}}]),ce}(U.Component),_=U.createContext(null);function S(Se){var Ce=Se.children,ce=Se.onBatchResize,pe=U.useRef(0),se=U.useRef([]),ae=U.useContext(_),Oe=U.useCallback(function(Te,Ne,De){pe.current+=1;var We=pe.current;se.current.push({size:Te,element:Ne,data:De}),Promise.resolve().then(function(){We===pe.current&&(ce==null||ce(se.current),se.current=[])}),ae==null||ae(Te,Ne,De)},[ce,ae]);return U.createElement(_.Provider,{value:Oe},Ce)}function L(Se){var Ce=Se.children,ce=Se.disabled,pe=U.useRef(null),se=U.useRef(null),ae=U.useContext(_),Oe=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Te=U.isValidElement(Ce)&&Object(g.c)(Ce),Ne=Te?Ce.ref:null,De=U.useMemo(function(){return Object(g.a)(Ne,pe)},[Ne,pe]),We=U.useRef(Se);We.current=Se;var Le=U.useCallback(function(Be){var Ge=We.current,oe=Ge.onResize,ye=Ge.data,we=Be.getBoundingClientRect(),Ae=we.width,Ue=we.height,Ve=Be.offsetWidth,Ze=Be.offsetHeight,$e=Math.floor(Ae),tt=Math.floor(Ue);if(Oe.current.width!==$e||Oe.current.height!==tt||Oe.current.offsetWidth!==Ve||Oe.current.offsetHeight!==Ze){var et={width:$e,height:tt,offsetWidth:Ve,offsetHeight:Ze};Oe.current=et;var Je=Ve===Math.round(Ae)?Ae:Ve,Me=Ze===Math.round(Ue)?Ue:Ze,ut=Object(G.a)(Object(G.a)({},et),{},{offsetWidth:Je,offsetHeight:Me});ae==null||ae(ut,Be,ye),oe&&Promise.resolve().then(function(){oe(ut,Be)})}},[]);return U.useEffect(function(){var Be=Object(m.a)(pe.current)||Object(m.a)(se.current);return Be&&!ce&&s(Be,Le),function(){return a(Be,Le)}},[pe.current,ce]),U.createElement(A,{ref:se},Te?U.cloneElement(Ce,{ref:De}):Ce)}var R="rc-observer-key";function C(Se){var Ce=Se.children,ce=Object(i.a)(Ce);return ce.map(function(pe,se){var ae=(pe==null?void 0:pe.key)||"".concat(R,"-").concat(se);return U.createElement(L,Object(ie.a)({},Se,{key:ae}),pe)})}C.Collection=S;var w=C,x=Q("bT9E"),c=Q("TSYQ"),T=Q.n(c),y=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -395,7 +395,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var d=e. `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},o={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(` -`)}]},h=Q("5VLF"),s=Q.n(h),a={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"]}},A=function(Y,ee){return ee.map(function(le){return{label:le,kind:Y.languages.CompletionItemKind.Keyword,insertText:le}})},_=function(Y){return Object.keys(a.tables).map(function(ee){return{label:ee,kind:Y.languages.CompletionItemKind.Variable,insertText:ee}})},S=function(Y,ee){var le=a.tables[Y];return le?le.map(function(ue){return{label:ue,kind:ee.languages.CompletionItemKind.Field,insertText:ue}}):[]};function L(b,Y,ee,le,ue){var ke=Y.getWordUntilPosition(ee),Se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Ce=le.map(function(ce){return{label:ce,kind:b.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ue.map(function(ce){Ce.push(Object(ie.a)(Object(ie.a)({},ce),{},{range:Se}))}),Ce}var R=function(b){a.languages.map(function(ue){return b.languages.registerDocumentFormattingEditProvider(ue,{provideDocumentFormattingEdits:function(Se,Ce,ce){return Object(g.a)(p.a.mark(function pe(){var se;return p.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se=s()(Se.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}),Oe.abrupt("return",[{range:Se.getFullModelRange(),text:se}]);case 2:case"end":return Oe.stop()}},pe)}))()}}),ue});var Y=f.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=o.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),le=u.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}});b.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(f.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(f.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn};return{suggestions:Object($.a)(l.keywords.map(function(pe){return{label:pe,kind:b.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}}))}}}),b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(u.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(u.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(o.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(o.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",w=Q("fjLI"),x=Q("LvDl"),c=Q("+ua5");function T(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function y(){}var v=!1,N={"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 B(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=b;if(Array.isArray(b)){for(var ee=0;ee0||di.target.offsetWidth>0)&&je.current.instance.layout()}}catch(Pt){Ft.e(Pt)}finally{Ft.f()}}),bt.observe(Fe.current)),bt}function ze(){X.b.warn(decodeURIComponent(C))}var ot=function(){var xt=je.current.instance;if(ke!=null&&xt&&fe){var Ft=xt.getModel();Ft&&ke!==Ft.getValue()&&(v=!0,Ft.setValue(ke),xt.layout(),v=!1)}};Object(W.useEffect)(function(){ge.current&&clearTimeout(ge.current),ge.current=setTimeout(function(){ot()},500)},[ke,fe,je.current]),Object(W.useEffect)(function(){if(Je&&je.current&&je.current.instance){var bt=je.current.instance;bt.changeViewZones(function(Ft){var ti=document.createElement("div");ti.style.padding="10px 20px",ti.style.width="calc(100% - 20px)",ti.className="my-error-line-wrp",ti.innerHTML=ut,Ft.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:ti})});var xt={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}};bt.addOverlayWidget(xt),bt.revealPositionInCenter({lineNumber:20,column:1})}},[Je,je.current,fe]);function mt(){var bt=je.current.instance;if(bt){var xt=bt.getSelection(),Ft=je.current.pastePos||{},ti=new O.Range(Ft.startLineNumber||xt.endLineNumber,Ft.startColumn||xt.endColumn,Ft.endLineNumber||xt.endLineNumber,Ft.endColumn||xt.endColumn);setTimeout(function(){bt.executeEdits("",[{range:ti,text:""}])},300)}}function ft(bt){(window.navigator.platform.match("Mac")?bt.metaKey:bt.ctrlKey)&&bt.keyCode==83&&(bt.preventDefault(),Le())}var wt=function(){if(Ge&&je.current.instance){var xt=je.current.instance.getContentHeight();yt(xt0||Ue.target.offsetWidth>0)&&Ge.layout()}}catch(Ve){we.e(Ve)}finally{we.f()}}),oe.observe(se.current)),oe}Object(W.useEffect)(function(){se.current&&Promise.all([Q.e(16),Q.e(28)]).then(Q.t.bind(null,"M/lh",7)).then(function(Ge){O=Ge;var oe=O.editor.createDiffEditor(se.current,Object(ie.a)(Object(ie.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},pe),{},{wordWrap:!0}));Ne(oe);var ye=De(oe);return function(){oe.dispose();var we=oe.getModel();we&&we.dispose(),ye.unobserve(se.current)}})},[]),Object(W.useEffect)(function(){Te&&Te.setModel({original:O.editor.createModel(ke,Ce),modified:O.editor.createModel(Se,Ce)})},[ke,Se,Ce,Te]);var We=T(ee),Le=T(ue),Be={width:We,height:Le};return i.a.createElement("div",{className:"my-diff-editor",ref:se,style:Be})}},ZpRC:function(st,be,Q){"use strict";function ie(g){return typeof g=="object"&&g!=null&&g.nodeType===1}function $(g,m){return(!m||g!=="hidden")&&g!=="visible"&&g!=="clip"}function M(g,m){if(g.clientHeightm||f>g&&o=m&&h>=p?f-g-l:o>m&&hp?o-m+u:0}var F=function(g,m){var p=window,l=m.scrollMode,u=m.block,f=m.inline,o=m.boundary,h=m.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Ge){return Ge!==o};if(!ie(g))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,A=[],_=g;ie(_)&&s(_);){if((_=_.parentElement)===a){A.push(_);break}_!=null&&_===document.body&&M(_)&&!M(document.documentElement)||_!=null&&M(_,h)&&A.push(_)}for(var S=p.visualViewport?p.visualViewport.width:innerWidth,L=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,w=g.getBoundingClientRect(),x=w.height,c=w.width,T=w.top,y=w.right,v=w.bottom,N=w.left,B=u==="start"||u==="nearest"?T:u==="end"?v:T+x/2,O=f==="center"?N+c/2:f==="end"?y:N,j=[],P=0;P=0&&N>=0&&v<=L&&y<=S&&T>=ue&&v<=Se&&N>=Ce&&y<=ke)return j;var ce=getComputedStyle(b),pe=parseInt(ce.borderLeftWidth,10),se=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.borderRightWidth,10),Oe=parseInt(ce.borderBottomWidth,10),Te=0,Ne=0,De="offsetWidth"in b?b.offsetWidth-b.clientWidth-pe-ae:0,We="offsetHeight"in b?b.offsetHeight-b.clientHeight-se-Oe:0;if(a===b)Te=u==="start"?B:u==="end"?B-L:u==="nearest"?X(C,C+L,L,se,Oe,C+B,C+B+x,x):B-L/2,Ne=f==="start"?O:f==="center"?O-S/2:f==="end"?O-S:X(R,R+S,S,pe,ae,R+O,R+O+c,c),Te=Math.max(0,Te+C),Ne=Math.max(0,Ne+R);else{Te=u==="start"?B-ue-se:u==="end"?B-Se+Oe+We:u==="nearest"?X(ue,Se,ee,se,Oe+We,B,B+x,x):B-(ue+ee/2)+We/2,Ne=f==="start"?O-Ce-pe:f==="center"?O-(Ce+le/2)+De/2:f==="end"?O-ke+ae+De:X(Ce,ke,le,pe,ae+De,O,O+c,c);var Le=b.scrollLeft,Be=b.scrollTop;B+=Be-(Te=Math.max(0,Math.min(Be+Te,b.scrollHeight-ee+We))),O+=Le-(Ne=Math.max(0,Math.min(Le+Ne,b.scrollWidth-le+De)))}j.push({el:b,top:Te,left:Ne})}return j};function U(g){return g===Object(g)&&Object.keys(g).length!==0}function G(g,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;g.forEach(function(l){var u=l.el,f=l.top,o=l.left;u.scroll&&p?u.scroll({top:f,left:o,behavior:m}):(u.scrollTop=f,u.scrollLeft=o)})}function W(g){return g===!1?{block:"end",inline:"nearest"}:U(g)?g:{block:"start",inline:"nearest"}}function i(g,m){var p=!g.ownerDocument.documentElement.contains(g);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:F(g,m));if(p)return;var l=W(m);return G(F(g,l),l.behavior)}var D=be.a=i},bT9E:function(st,be,Q){"use strict";Q.d(be,"a",function(){return $});var ie=Q("VTBJ");function $(M,X){var F=Object(ie.a)({},M);return Array.isArray(X)&&X.forEach(function(U){delete F[U]}),F}},c5Ni:function(st,be,Q){},dejd:function(st,be,Q){},dmUQ:function(st,be,Q){"use strict";var ie=Q("Ff2n"),$=Q("rePB"),M=Q("1OyB"),X=Q("vuIU"),F=Q("Ji7U"),U=Q("md7G"),G=Q("foSv"),W=Q("q1tI"),i=Q.n(W),D=Q("TSYQ"),g=Q.n(D),m=Q("4IlW");function p(x,c){var T=Object.keys(x);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(x);c&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(x,v).enumerable})),T.push.apply(T,y)}return T}function l(x){for(var c=1;c1?le-1:0),ke=1;ke1?P-1:0),Y=1;Y=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var P=0;return j.indexOf(".")>=0&&(P=j.length-j.indexOf(".")-1),P},v.getInputDisplayValue=function(O){var j=O||v.state,P=j.focused,b=j.inputValue,Y=j.value,ee;P?ee=b:ee=v.toPrecisionAsStep(Y),ee==null&&(ee="");var le=v.formatWrapper(ee);return S(v.props.decimalSeparator)&&(le=le.toString().replace(".",v.props.decimalSeparator)),le},v.recordCursorPosition=function(){try{v.cursorStart=v.input.selectionStart,v.cursorEnd=v.input.selectionEnd,v.currentValue=v.input.value,v.cursorBefore=v.input.value.substring(0,v.cursorStart),v.cursorAfter=v.input.value.substring(v.cursorEnd)}catch(O){}},v.restoreByAfter=function(O){if(O===void 0)return!1;var j=v.input.value,P=j.lastIndexOf(O);if(P===-1)return!1;var b=v.cursorBefore.length;return v.lastKeyCode===m.a.DELETE&&v.cursorBefore.charAt(b-1)===O[0]?(v.fixCaret(b,b),!0):P+O.length===j.length?(v.fixCaret(P,P),!0):!1},v.partRestoreByAfter=function(O){return O===void 0?!1:Array.prototype.some.call(O,function(j,P){var b=O.substring(P);return v.restoreByAfter(b)})},v.isNotCompleteNumber=function(O){return isNaN(O)||O===""||O===null||O&&O.toString().indexOf(".")===O.toString().length-1},v.stop=function(){v.autoStepTimer&&clearTimeout(v.autoStepTimer)},v.down=function(O,j,P){v.pressingUpOrDown=!0,v.step("down",O,j,P)},v.up=function(O,j,P){v.pressingUpOrDown=!0,v.step("up",O,j,P)},v.saveInput=function(O){v.input=O};var N=y.value;N===void 0&&(N=y.defaultValue),v.state={focused:y.autoFocus};var B=v.getValidValue(v.toNumber(N));return v.state=l(l({},v.state),{},{inputValue:v.toPrecisionAsStep(B),value:B}),v}return Object(X.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(v){var N=this.props,B=N.value,O=N.onChange,j=N.max,P=N.min,b=this.state.focused;if(v){if(!L(v.value,B)||!L(v.max,j)||!L(v.min,P)){var Y=b?B:this.getValidValue(B),ee;this.pressingUpOrDown?ee=Y:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ee})}var le="value"in this.props?B:this.state.value;"max"in this.props&&v.max!==j&&typeof le=="number"&&le>j&&O&&O(j),"min"in this.props&&v.min!==P&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,O=parseFloat(v);return isNaN(O)?v:(OB&&(O=B),O)}},{key:"setValue",value:function(v,N){var B=this.props.precision,O=this.isNotCompleteNumber(parseFloat(v))?null:parseFloat(v),j=this.state.value,P=j===void 0?null:j,b=this.state.inputValue,Y=b===void 0?null:b,ee=typeof O=="number"?O.toFixed(B):"".concat(O),le=O!==P||ee!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},N)):this.setState({value:O,inputValue:this.toPrecisionAsStep(v)},N),le&&this.props.onChange(O),O}},{key:"getMaxPrecision",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.props,O=B.precision,j=B.step;if(S(O))return O;var P=this.getPrecision(N),b=this.getPrecision(j),Y=this.getPrecision(v);return v?Math.max(Y,P+b):P+b}},{key:"getPrecisionFactor",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.getMaxPrecision(v,N);return Math.pow(10,B)}},{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(v){return this.props.formatter?this.props.formatter(v):v}},{key:"toPrecisionAsStep",value:function(v){if(this.isNotCompleteNumber(v)||v==="")return v;var N=Math.abs(this.getMaxPrecision(v));return isNaN(N)?v.toString():Number(v).toFixed(N)}},{key:"toNumber",value:function(v){var N=this.props.precision,B=this.state.focused,O=v&&v.length>16&&B;return this.isNotCompleteNumber(v)||O?v:S(N)?Math.round(v*Math.pow(10,N))/Math.pow(10,N):Number(v)}},{key:"upStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v+O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"downStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v-O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"step",value:function(v,N){var B=this,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var P=this.props;if(P.disabled)return;var b=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(b))return;var Y=this["".concat(v,"Step")](b,O),ee=Y>P.max||YP.max?Y=P.max:Y=ue),je=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=ke),Ee=Fe||O||j,ge=je||O||j,_e=g()("".concat(B,"-handler"),"".concat(B,"-handler-up"),Object($.a)({},"".concat(B,"-handler-up-disabled"),Ee)),re=g()("".concat(B,"-handler"),"".concat(B,"-handler-down"),Object($.a)({},"".concat(B,"-handler-down-disabled"),ge)),ne=P?{onTouchStart:Ee?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Ee?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=P?{onTouchStart:ge?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:Je,style:Se,title:Ce,onMouseEnter:ce,onMouseLeave:pe,onMouseOver:se,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(B,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},ne,{role:"button","aria-label":"Increase Value","aria-disabled":Ee,className:_e}),Y||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-up-inner"),onClick:h})),i.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),ee||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-down-inner"),onClick:h}))),i.a.createElement("div",{className:"".concat(B,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ke,"aria-valuemax":ue,"aria-valuenow":tt,required:Oe,type:De,placeholder:We,onPaste:Ue,onClick:Te,onMouseUp:this.onMouseUp,className:"".concat(B,"-input"),tabIndex:Ne,autoComplete:b,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:o,onKeyUp:ut?this.onKeyUp:o,autoFocus:we,maxLength:ye,readOnly:j,disabled:O,max:ue,min:ke,step:oe,name:Ae,title:Ce,id:Le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(rt),pattern:Ge,inputMode:Be,onInput:Ve},Me))))}}]),T}(i.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var C=R,w=be.a=C},eYnf:function(st,be,Q){st.exports={flex_box_center:"flex_box_center___1XyGp",flex_space_between:"flex_space_between___3jaTm",flex_box_vertical_center:"flex_box_vertical_center___2_EoO",flex_box_center_end:"flex_box_center_end___aCF48",flex_box_column:"flex_box_column___10vW2",bg:"bg___1Uj9H",title:"title___2xwyX",titleLeft:"titleLeft___1ASl5",titleRight:"titleRight___1FHl9",btns:"btns___3kkgI"}},fjLI:function(st,be,Q){"use strict";Q.d(be,"f",function(){return p}),Q.d(be,"b",function(){return l}),Q.d(be,"a",function(){return u}),Q.d(be,"d",function(){return f}),Q.d(be,"e",function(){return o}),Q.d(be,"c",function(){return h});var ie=Q("8HAY"),$=Q("Vhoy"),M=Q("MI8n"),X=Q("JYp7"),F=Q("pmY6"),U=Q("24hK"),G=Q("nnTU"),W=Q("T8No"),i=Q("Cg/j"),D=Q("t9D7"),g=function(s,a,A,_){var S=arguments.length,L=S<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,A):_,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,a,A,_);else for(var C=s.length-1;C>=0;C--)(R=s[C])&&(L=(S<3?R(L):S>3?R(a,A,L):R(a,A))||L);return S>3&&L&&Object.defineProperty(a,A,L),L},m=function(s,a){return function(A,_){a(A,_,s)}};function p(s){return s.command!==void 0}class l{constructor(s){this.id=l._idPool++,this._debugName=s}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const u=Object(i.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===l.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let a=!1;for(const A of s)a=this._commands.delete(A.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,A)=>s.set(A,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,A=new U.a;for(const{id:_,item:S}of s){let L=this._menuItems.get(_);L||(L=new U.a,this._menuItems.set(_,L)),A.push(L.push(S)),a.add(_)}return this._onDidChangeMenu.fire(a),Object(F.i)(()=>{if(A.size>0){for(let _ of A)_();this._onDidChangeMenu.fire(a),A.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===l.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const A of s)p(A)&&(a.add(A.command.id),A.alt&&a.add(A.alt.id));this._commands.forEach((A,_)=>{a.has(_)||s.push({command:A})})}};class o extends ie.e{constructor(s,a,A,_){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=A,this._options=_}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=a.getActions(this._options);a.dispose();for(const[,_]of A)_.length>0&&(s.push(..._),s.push(new ie.d));return s.length&&s.pop(),s}}let h=class s{constructor(a,A,_,S,L){var R,C;if(this._commandService=L,this.id=a.id,this.label=(_==null?void 0:_.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(C=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&C!==void 0?C:"",this.enabled=!a.precondition||S.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const w=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=S.contextMatchesRules(w.condition),this.checked&&w.tooltip&&(this.tooltip=typeof w.tooltip=="string"?w.tooltip:w.tooltip.value),w.title&&(this.label=typeof w.title=="string"?w.title:w.title.value)}this.item=a,this.alt=A?new s(A,void 0,_,S,L):void 0,this._options=_,D.d.isThemeIcon(a.icon)&&(this.class=$.a.asClassName(a.icon))}dispose(){}run(...a){var A,_;let S=[];return((A=this._options)===null||A===void 0?void 0:A.arg)&&(S=[...S,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(S=[...S,...a]),this._commandService.executeCommand(this.id,...S)}};h=g([m(3,W.b),m(4,G.b)],h)},gJ3r:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},ic2d:function(st,be,Q){"use strict";Q.d(be,"a",function(){return X});var ie=Q("FWmy"),$=Q("746U");class M{constructor(){this.data=new Map}add(F,U){ie.a($.l(F)),ie.a($.k(U)),ie.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,U)}as(F){return this.data.get(F)||null}}const X=new M},kSUc:function(st,be,Q){},lZu9:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("1eCo"),Q("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function($,M){var X=ie.getMode($,"text/html"),F=X.name=="null";function U(P){if(ie.findModeByName){var b=ie.findModeByName(P);b&&(P=b.mime||b.mimes[0])}var Y=ie.getMode($,P);return Y.name=="null"?null:Y}M.highlightFormatting===void 0&&(M.highlightFormatting=!1),M.maxBlockquoteDepth===void 0&&(M.maxBlockquoteDepth=0),M.taskLists===void 0&&(M.taskLists=!1),M.strikethrough===void 0&&(M.strikethrough=!1),M.emoji===void 0&&(M.emoji=!1),M.fencedCodeBlockHighlighting===void 0&&(M.fencedCodeBlockHighlighting=!0),M.fencedCodeBlockDefaultMode===void 0&&(M.fencedCodeBlockDefaultMode="text/plain"),M.xml===void 0&&(M.xml=!0),M.tokenTypeOverrides===void 0&&(M.tokenTypeOverrides={});var G={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 W in G)G.hasOwnProperty(W)&&M.tokenTypeOverrides[W]&&(G[W]=M.tokenTypeOverrides[W]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,g=/^\[(x| )\](?=\s)/i,m=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function s(P,b,Y){return b.f=b.inline=Y,Y(P,b)}function a(P,b,Y){return b.f=b.block=Y,Y(P,b)}function A(P){return!P||!/\S/.test(P.string)}function _(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==L){var b=F;if(!b){var Y=ie.innerMode(X,P.htmlState);b=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}b&&(P.f=x,P.block=S,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function S(P,b){var Y=P.column()===b.indentation,ee=A(b.prevLine.stream),le=b.indentedCode,ue=b.prevLine.hr,ke=b.list!==!1,Se=(b.listStack[b.listStack.length-1]||0)+3;b.indentedCode=!1;var Ce=b.indentation;if(b.indentationDiff===null&&(b.indentationDiff=b.indentation,ke)){for(b.list=null;Ce=4&&(le||b.prevLine.fencedCodeEnd||b.prevLine.header||ee))return P.skipToEnd(),b.indentedCode=!0,G.code;if(P.eatSpace())return null;if(Y&&b.indentation<=Se&&(se=P.match(m))&&se[1].length<=6)return b.quote=0,b.header=se[1].length,b.thisLine.header=!0,M.highlightFormatting&&(b.formatting="header"),b.f=b.inline,C(b);if(b.indentation<=Se&&P.eat(">"))return b.quote=Y?1:b.quote+1,M.highlightFormatting&&(b.formatting="quote"),P.eatSpace(),C(b);if(!pe&&!b.setext&&Y&&b.indentation<=Se&&(se=P.match(D))){var ae=se[1]?"ol":"ul";return b.indentation=Ce+P.current().length,b.list=!0,b.quote=0,b.listStack.push(b.indentation),b.em=!1,b.strong=!1,b.code=!1,b.strikethrough=!1,M.taskLists&&P.match(g,!1)&&(b.taskList=!0),b.f=b.inline,M.highlightFormatting&&(b.formatting=["list","list-"+ae]),C(b)}else{if(Y&&b.indentation<=Se&&(se=P.match(u,!0)))return b.quote=0,b.fencedEndRE=new RegExp(se[1]+"+ *$"),b.localMode=M.fencedCodeBlockHighlighting&&U(se[2]||M.fencedCodeBlockDefaultMode),b.localMode&&(b.localState=ie.startState(b.localMode)),b.f=b.block=R,M.highlightFormatting&&(b.formatting="code-block"),b.code=-1,C(b);if(b.setext||(!ce||!ke)&&!b.quote&&b.list===!1&&!b.code&&!pe&&!f.test(P.string)&&(se=P.lookAhead(1))&&(se=se.match(p)))return b.setext?(b.header=b.setext,b.setext=0,P.skipToEnd(),M.highlightFormatting&&(b.formatting="header")):(b.header=se[0].charAt(0)=="="?1:2,b.setext=b.header),b.thisLine.header=!0,b.f=b.inline,C(b);if(pe)return P.skipToEnd(),b.hr=!0,b.thisLine.hr=!0,G.hr;if(P.peek()==="[")return s(P,b,N)}return s(P,b,b.inline)}function L(P,b){var Y=X.token(P,b.htmlState);if(!F){var ee=ie.innerMode(X,b.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||b.md_inside&&P.current().indexOf(">")>-1)&&(b.f=x,b.block=S,b.htmlState=null)}return Y}function R(P,b){var Y=b.listStack[b.listStack.length-1]||0,ee=b.indentation=P.quote?b.push(G.formatting+"-"+P.formatting[Y]+"-"+P.quote):b.push("error"))}if(P.taskOpen)return b.push("meta"),b.length?b.join(" "):null;if(P.taskClosed)return b.push("property"),b.length?b.join(" "):null;if(P.linkHref?b.push(G.linkHref,"url"):(P.strong&&b.push(G.strong),P.em&&b.push(G.em),P.strikethrough&&b.push(G.strikethrough),P.emoji&&b.push(G.emoji),P.linkText&&b.push(G.linkText),P.code&&b.push(G.code),P.image&&b.push(G.image),P.imageAltText&&b.push(G.imageAltText,"link"),P.imageMarker&&b.push(G.imageMarker)),P.header&&b.push(G.header,G.header+"-"+P.header),P.quote&&(b.push(G.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=P.quote?b.push(G.quote+"-"+P.quote):b.push(G.quote+"-"+M.maxBlockquoteDepth)),P.list!==!1){var ee=(P.listStack.length-1)%3;ee?ee===1?b.push(G.list2):b.push(G.list3):b.push(G.list1)}return P.trailingSpaceNewLine?b.push("trailing-space-new-line"):P.trailingSpace&&b.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),b.length?b.join(" "):null}function w(P,b){return P.match(l,!0)?C(b):void 0}function x(P,b){var Y=b.text(P,b);if(typeof Y!="undefined")return Y;if(b.list)return b.list=null,C(b);if(b.taskList){var ee=P.match(g,!0)[1]===" ";return ee?b.taskOpen=!0:b.taskClosed=!0,M.highlightFormatting&&(b.formatting="task"),b.taskList=!1,C(b)}if(b.taskOpen=!1,b.taskClosed=!1,b.header&&P.match(/^#+$/,!0))return M.highlightFormatting&&(b.formatting="header"),C(b);var le=P.next();if(b.linkTitle){b.linkTitle=!1;var ue=le;le==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ke="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(P.match(new RegExp(ke),!0))return G.linkHref}if(le==="`"){var Se=b.formatting;M.highlightFormatting&&(b.formatting="code"),P.eatWhile("`");var Ce=P.current().length;if(b.code==0&&(!b.quote||Ce==1))return b.code=Ce,C(b);if(Ce==b.code){var ce=C(b);return b.code=0,ce}else return b.formatting=Se,C(b)}else if(b.code)return C(b);if(le==="\\"&&(P.next(),M.highlightFormatting)){var pe=C(b),se=G.formatting+"-escape";return pe?pe+" "+se:se}if(le==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return b.imageMarker=!0,b.image=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="["&&b.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return b.imageMarker=!1,b.imageAltText=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="]"&&b.imageAltText){M.highlightFormatting&&(b.formatting="image");var pe=C(b);return b.imageAltText=!1,b.image=!1,b.inline=b.f=T,pe}if(le==="["&&!b.image)return b.linkText&&P.match(/^.*?\]/)||(b.linkText=!0,M.highlightFormatting&&(b.formatting="link")),C(b);if(le==="]"&&b.linkText){M.highlightFormatting&&(b.formatting="link");var pe=C(b);return b.linkText=!1,b.inline=b.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?T:x,pe}if(le==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkInline}if(le==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkEmail}if(M.xml&&le==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ae=P.string.indexOf(">",P.pos);if(ae!=-1){var Oe=P.string.substring(P.start,ae);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(b.md_inside=!0)}return P.backUp(1),b.htmlState=ie.startState(X),a(P,b,L)}if(M.xml&&le==="<"&&P.match(/^\/\w*?>/))return b.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Te=1,Ne=P.pos==1?" ":P.string.charAt(P.pos-2);Te<3&&P.eat(le);)Te++;var De=P.peek()||" ",We=!/\s/.test(De)&&(!o.test(De)||/\s/.test(Ne)||o.test(Ne)),Le=!/\s/.test(Ne)&&(!o.test(Ne)||/\s/.test(De)||o.test(De)),Be=null,Ge=null;if(Te%2&&(!b.em&&We&&(le==="*"||!Le||o.test(Ne))?Be=!0:b.em==le&&Le&&(le==="*"||!We||o.test(De))&&(Be=!1)),Te>1&&(!b.strong&&We&&(le==="*"||!Le||o.test(Ne))?Ge=!0:b.strong==le&&Le&&(le==="*"||!We||o.test(De))&&(Ge=!1)),Ge!=null||Be!=null){M.highlightFormatting&&(b.formatting=Be==null?"strong":Ge==null?"em":"strong em"),Be===!0&&(b.em=le),Ge===!0&&(b.strong=le);var ce=C(b);return Be===!1&&(b.em=!1),Ge===!1&&(b.strong=!1),ce}}else if(le===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return C(b);P.backUp(1)}if(M.strikethrough){if(le==="~"&&P.eatWhile(le)){if(b.strikethrough){M.highlightFormatting&&(b.formatting="strikethrough");var ce=C(b);return b.strikethrough=!1,ce}else if(P.match(/^[^\s]/,!1))return b.strikethrough=!0,M.highlightFormatting&&(b.formatting="strikethrough"),C(b)}else if(le===" "&&P.match(/^~~/,!0)){if(P.peek()===" ")return C(b);P.backUp(2)}}if(M.emoji&&le===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){b.emoji=!0,M.highlightFormatting&&(b.formatting="emoji");var oe=C(b);return b.emoji=!1,oe}return le===" "&&(P.match(/^ +$/,!1)?b.trailingSpace++:b.trailingSpace&&(b.trailingSpaceNewLine=!0)),C(b)}function c(P,b){var Y=P.next();if(Y===">"){b.f=b.inline=x,M.highlightFormatting&&(b.formatting="link");var ee=C(b);return ee?ee+=" ":ee="",ee+G.linkInline}return P.match(/^[^>]+/,!0),G.linkInline}function T(P,b){if(P.eatSpace())return null;var Y=P.next();return Y==="("||Y==="["?(b.f=b.inline=v(Y==="("?")":"]"),M.highlightFormatting&&(b.formatting="link-string"),b.linkHref=!0,C(b)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function v(P){return function(b,Y){var ee=b.next();if(ee===P){Y.f=Y.inline=x,M.highlightFormatting&&(Y.formatting="link-string");var le=C(Y);return Y.linkHref=!1,le}return b.match(y[P]),Y.linkHref=!0,C(Y)}}function N(P,b){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(b.f=B,P.next(),M.highlightFormatting&&(b.formatting="link"),b.linkText=!0,C(b)):s(P,b,x)}function B(P,b){if(P.match(/^\]:/,!0)){b.f=b.inline=O,M.highlightFormatting&&(b.formatting="link");var Y=C(b);return b.linkText=!1,Y}return P.match(/^([^\]\\]|\\.)+/,!0),G.linkText}function O(P,b){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?b.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),b.f=b.inline=x,G.linkHref+" url")}var j={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:x,text:w,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(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&ie.copyState(X,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?ie.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,b){if(b.formatting=!1,P!=b.thisLine.stream){if(b.header=0,b.hr=!1,P.match(/^\s*$/,!0))return _(b),null;if(b.prevLine=b.thisLine,b.thisLine={stream:P},b.taskList=!1,b.trailingSpace=0,b.trailingSpaceNewLine=!1,!b.localState&&(b.f=b.block,b.f!=L)){var Y=P.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(b.indentation=Y,b.indentationDiff=null,Y>0)return null}}return b.f(P,b)},innerMode:function(P){return P.block==L?{state:P.htmlState,mode:X}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:j}},indent:function(P,b,Y){return P.block==L&&X.indent?X.indent(P.htmlState,b,Y):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,b,Y):ie.Pass},blankLine:_,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie;(function($){$.DARK="dark",$.LIGHT="light",$.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(st,be,Q){"use strict";Q.d(be,"b",function(){return G}),Q.d(be,"a",function(){return W});var ie=Q("MI8n"),$=Q("JYp7"),M=Q("pmY6"),X=Q("24hK"),F=Q("746U"),U=Q("Cg/j");const G=Object(U.c)("commandService"),W=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(i,D){if(!i)throw new Error("invalid command");if(typeof i=="string"){if(!D)throw new Error("invalid command");return this.registerCommand({id:i,handler:D})}if(i.description){const u=[];for(let o of i.description.args)u.push(o.constraint);const f=i.handler;i.handler=function(o,...h){return Object(F.o)(h,u),f(o,...h)}}const{id:g}=i;let m=this._commands.get(g);m||(m=new X.a,this._commands.set(g,m));let p=m.unshift(i),l=Object(M.i)(()=>{p();const u=this._commands.get(g);(u==null?void 0:u.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),l}registerCommandAlias(i,D){return W.registerCommand(i,(g,...m)=>g.get(G).executeCommand(D,...m))}getCommand(i){const D=this._commands.get(i);return!D||D.isEmpty()?void 0:$.a.first(D)}getCommands(){const i=new Map;for(const D of this._commands.keys()){const g=this.getCommand(D);g&&i.set(D,g)}return i}};W.registerCommand("noop",()=>{})},osHv:function(st,be,Q){(function(ie){ie(Q("VrN/"))})(function(ie){"use strict";var $=ie.Pos;function M(o,h){return o.line-h.line||o.ch-h.ch}var X="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",F=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+F+"]*)","g");function G(o,h,s,a){this.line=h,this.ch=s,this.cm=o,this.text=o.getLine(h),this.min=a?Math.max(a.from,o.firstLine()):o.firstLine(),this.max=a?Math.min(a.to-1,o.lastLine()):o.lastLine()}function W(o,h){var s=o.cm.getTokenTypeAt($(o.line,h));return s&&/\btag\b/.test(s)}function i(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function D(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function g(o){for(;;){var h=o.text.indexOf(">",o.ch);if(h==-1){if(i(o))continue;return}if(!W(o,h+1)){o.ch=h+1;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function m(o){for(;;){var h=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}U.lastIndex=h,o.ch=h;var s=U.exec(o.text);if(s&&s.index==h)return s}}function p(o){for(;;){U.lastIndex=o.ch;var h=U.exec(o.text);if(!h){if(i(o))continue;return}if(!W(o,h.index+1)){o.ch=h.index+1;continue}return o.ch=h.index+h[0].length,h}}function l(o){for(;;){var h=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function u(o,h){for(var s=[];;){var a=p(o),A,_=o.line,S=o.ch-(a?a[0].length:0);if(!a||!(A=g(o)))return;if(A=="selfClose")continue;if(a[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==a[2]){s.length=L;break}if(L<0&&(!h||h==a[2]))return{tag:a[2],from:$(_,S),to:$(o.line,o.ch)}}else s.push(a[2])}}function f(o,h){for(var s=[];;){var a=l(o);if(!a)return;if(a=="selfClose"){m(o);continue}var A=o.line,_=o.ch,S=m(o);if(!S)return;if(S[1])s.push(S[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==S[2]){s.length=L;break}if(L<0&&(!h||h==S[2]))return{tag:S[2],from:$(o.line,o.ch),to:$(A,_)}}}}ie.registerHelper("fold","xml",function(o,h){for(var s=new G(o,h.line,0);;){var a=p(s);if(!a||s.line!=h.line)return;var A=g(s);if(!A)return;if(!a[1]&&A!="selfClose"){var _=$(s.line,s.ch),S=u(s,a[2]);return S&&M(S.from,_)>0?{from:_,to:S.from}:null}}}),ie.findMatchingTag=function(o,h,s){var a=new G(o,h.line,h.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var A=g(a),_=A&&$(a.line,a.ch),S=A&&m(a);if(!A||!S||M(a,h)>0)return;var L={from:$(a.line,a.ch),to:_,tag:S[2]};return A=="selfClose"?{open:L,close:null,at:"open"}:S[1]?{open:f(a,S[2]),close:L,at:"close"}:(a=new G(o,_.line,_.ch,s),{open:L,close:u(a,S[2]),at:"open"})},ie.findEnclosingTag=function(o,h,s,a){for(var A=new G(o,h.line,h.ch,s);;){var _=f(A,a);if(!_)break;var S=new G(o,h.line,h.ch,s),L=u(S,_.tag);if(L)return{open:_,close:L}}},ie.scanForClosingTag=function(o,h,s,a){var A=new G(o,h.line,h.ch,a?{from:0,to:a}:null);return u(A,s)}})},p5ED:function(st,be,Q){"use strict";var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("5Dmo"),X=Q("3S7+"),F=Q("k1fw"),U=Q("9og8"),G=Q("tJVT"),W=Q("WmNS"),i=Q.n(W),D=Q("q1tI"),g=Q.n(D),m=Q("vHTk"),p=Q.n(m),l=Q("yEEn"),u=Q("ZW9T"),f=Q("1vsH"),o=Q("V0Rq"),h=Q("m3rI");be.a=function(s){var a,A,_,S,L,R,C,w=s.editOffice,x=w===void 0?"view":w,c=s.data,T=s.theme,y=s.type,v=s.filename,N=s.monacoEditor,B=s.className,O=s.style,j=s.close,P=s.onClose,b=s.hasMask,Y=s.disabledDownload,ee=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),le=Object(G.a)(ee,2),ue=le[0],ke=le[1],Se=Object(D.useState)(""),Ce=Object(G.a)(Se,2),ce=Ce[0],pe=Ce[1],se=Object(D.useState)(),ae=Object(G.a)(se,2),Oe=ae[0],Te=ae[1],Ne=window.ENV==="build"?"/react/build":"",De=h.a.PROXY_SERVER||location.origin,We,Le=1024*1024,Be=10*Le,Ge=Object(D.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=h.a.API_SERVER+c),y==="office"&&(We=Object(f.T)(c).filesize,We>Be&&(y="other")),v&&N&&(N.filename=v),Object(D.useEffect)(function(){var Ae,Ue,Ve=(Ae=document.cookie)===null||Ae===void 0||((Ue=Ae.replace(/\s/g,""))===null||Ue===void 0)?void 0:Ue.split(";");Ve==null||Ve.map(function(Ze){var $e=Ze.split("=");$e[0]==="_educoder_session"&&pe($e[1])})},[]),Object(D.useEffect)(function(){y==="office"&&oe()},[y,c]);var oe=function(){var Ae=Object(U.a)(i.a.mark(function Ue(){var Ve,Ze,$e;return i.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Ze=new URL(Ve).pathname.split("/").pop(),et.next=6,Object(o.V)({attachment_id:Ze});case 6:$e=et.sent,Te($e);case 8:case"end":return et.stop()}},Ue)}));return function(){return Ae.apply(this,arguments)}}(),ye=function(){if(c.startsWith("http")||c.startsWith("blob:")){we();return}Object(f.z)(v||"educoder",c,v)},we=function(){Object(f.x)(v||"educoder",decodeURIComponent(c))};return g.a.createElement("div",{style:Object(F.a)({},O||{}),className:"".concat(b&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},j&&g.a.createElement("div",{className:p.a.close,ref:Ge},!Y&&g.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{onClick:we},g.a.createElement("i",{className:"icon-quxiaozhiding"}))),g.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{className:"",onClick:P},g.a.createElement("i",{className:"icon-guanbi1"})))),g.a.createElement("div",{className:"".concat(p.a[B]," ").concat(B," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&g.a.createElement(u.b,N)),y==="audio"&&g.a.createElement("audio",{src:"".concat(((A=c)===null||A===void 0?void 0:A.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&g.a.createElement(g.a.Fragment,null,((S=c)===null||S===void 0?void 0:S.indexOf("http"))>-1?g.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):g.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&Oe&&g.a.createElement("iframe",{src:"".concat(Ne,"/office.html?key=").concat(Oe.key,"&url=").concat(De+Oe.url,"&callbackUrl=").concat(De+Oe.callbackUrl,"&fileType=").concat(Oe.fileType,"&title=").concat(Oe.title,"&model=").concat(x,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),y==="html"&&g.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&g.a.createElement("iframe",{src:"".concat(Ne,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),y==="image"&&g.a.createElement("img",{src:"".concat(((L=c)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(C=c)!==null&&C!==void 0&&C.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&g.a.createElement("div",null,g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(st,be,Q){},pmY6:function(st,be,Q){"use strict";Q.d(be,"h",function(){return D}),Q.d(be,"g",function(){return m}),Q.d(be,"f",function(){return p}),Q.d(be,"e",function(){return l}),Q.d(be,"i",function(){return u}),Q.d(be,"b",function(){return f}),Q.d(be,"a",function(){return o}),Q.d(be,"d",function(){return h}),Q.d(be,"c",function(){return s});var ie=Q("C/vA"),$=Q("JYp7");const M=!1;let X=null;function F(a){X=a}if(M){const a="__is_disposable_tracked__";F(new class{trackDisposable(A){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{A[a]||console.log(_)},3e3)}setParent(A,_){if(A&&A!==o.None)try{A[a]=!0}catch(S){}}markAsDisposed(A){if(A&&A!==o.None)try{A[a]=!0}catch(_){}}markAsSingleton(A){}})}function U(a){return X==null||X.trackDisposable(a),a}function G(a){X==null||X.markAsDisposed(a)}function W(a,A){X==null||X.setParent(a,A)}function i(a,A){if(!X)return;for(const _ of a)X.setParent(_,A)}function D(a){return X==null||X.markAsSingleton(a),a}class g extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if($.a.is(a)){let A=[];for(const _ of a)if(_)try{_.dispose()}catch(S){A.push(S)}if(A.length===1)throw A[0];if(A.length>1)throw new g(A);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function l(...a){const A=u(()=>p(a));return i(a,A),A}function u(a){const A=U({dispose:Object(ie.a)(()=>{G(A),a()})});return A}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;G(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return W(a,this),this._isDisposed?f.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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new f,U(this),W(this._store,this)}dispose(){G(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}o.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var A;if(this._isDisposed||a===this._value)return;(A=this._value)===null||A===void 0||A.dispose(),a&&W(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,G(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&W(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(st,be,Q){var ie,$;(function(){var M;(function(){"use strict";var G=[,,function(g){function m(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` +`)}]},h=Q("5VLF"),s=Q.n(h),a={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"]}},A=function(Y,ee){return ee.map(function(le){return{label:le,kind:Y.languages.CompletionItemKind.Keyword,insertText:le}})},_=function(Y){return Object.keys(a.tables).map(function(ee){return{label:ee,kind:Y.languages.CompletionItemKind.Variable,insertText:ee}})},S=function(Y,ee){var le=a.tables[Y];return le?le.map(function(ue){return{label:ue,kind:ee.languages.CompletionItemKind.Field,insertText:ue}}):[]};function L(b,Y,ee,le,ue){var ke=Y.getWordUntilPosition(ee),Se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Ce=le.map(function(ce){return{label:ce,kind:b.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ue.map(function(ce){Ce.push(Object(ie.a)(Object(ie.a)({},ce),{},{range:Se}))}),Ce}var R=function(b){a.languages.map(function(ue){return b.languages.registerDocumentFormattingEditProvider(ue,{provideDocumentFormattingEdits:function(Se,Ce,ce){return Object(g.a)(p.a.mark(function pe(){var se;return p.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se=s()(Se.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}),Oe.abrupt("return",[{range:Se.getFullModelRange(),text:se}]);case 2:case"end":return Oe.stop()}},pe)}))()}}),ue});var Y=f.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=o.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),le=u.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}});b.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(f.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(f.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn};return{suggestions:Object($.a)(l.keywords.map(function(pe){return{label:pe,kind:b.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}}))}}}),b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(u.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(u.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(o.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(o.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",w=Q("fjLI"),x=Q("LvDl"),c=Q("+ua5");function T(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function y(){}var v=!1,N={"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 B(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=b;if(Array.isArray(b)){for(var ee=0;ee0||di.target.offsetWidth>0)&&je.current.instance.layout()}}catch(Pt){Ft.e(Pt)}finally{Ft.f()}}),bt.observe(Fe.current)),bt}function ze(){X.b.warn(decodeURIComponent(C))}var ot=function(){var xt=je.current.instance;if(ke!=null&&xt&&fe){var Ft=xt.getModel();Ft&&ke!==Ft.getValue()&&(v=!0,Ft.setValue(ke),xt.layout(),v=!1)}};Object(W.useEffect)(function(){ge.current&&clearTimeout(ge.current),ge.current=setTimeout(function(){ot()},500)},[ke,fe,je.current]),Object(W.useEffect)(function(){if(Je&&je.current&&je.current.instance){var bt=je.current.instance;bt.changeViewZones(function(Ft){var ti=document.createElement("div");ti.style.padding="10px 20px",ti.style.width="calc(100% - 20px)",ti.className="my-error-line-wrp",ti.innerHTML=ut,Ft.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:ti})});var xt={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}};bt.addOverlayWidget(xt),bt.revealPositionInCenter({lineNumber:20,column:1})}},[Je,je.current,fe]);function mt(){var bt=je.current.instance;if(bt){var xt=bt.getSelection(),Ft=je.current.pastePos||{},ti=new O.Range(Ft.startLineNumber||xt.endLineNumber,Ft.startColumn||xt.endColumn,Ft.endLineNumber||xt.endLineNumber,Ft.endColumn||xt.endColumn);setTimeout(function(){bt.executeEdits("",[{range:ti,text:""}])},300)}}function ft(bt){(window.navigator.platform.match("Mac")?bt.metaKey:bt.ctrlKey)&&bt.keyCode==83&&(bt.preventDefault(),Le())}var wt=function(){if(Ge&&je.current.instance){var xt=je.current.instance.getContentHeight();yt(xt0||Ue.target.offsetWidth>0)&&Ge.layout()}}catch(Ve){we.e(Ve)}finally{we.f()}}),oe.observe(se.current)),oe}Object(W.useEffect)(function(){se.current&&Promise.all([Q.e(16),Q.e(28)]).then(Q.t.bind(null,"M/lh",7)).then(function(Ge){O=Ge;var oe=O.editor.createDiffEditor(se.current,Object(ie.a)(Object(ie.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},pe),{},{wordWrap:!0}));Ne(oe);var ye=De(oe);return function(){oe.dispose();var we=oe.getModel();we&&we.dispose(),ye.unobserve(se.current)}})},[]),Object(W.useEffect)(function(){Te&&Te.setModel({original:O.editor.createModel(ke,Ce),modified:O.editor.createModel(Se,Ce)})},[ke,Se,Ce,Te]);var We=T(ee),Le=T(ue),Be={width:We,height:Le};return i.a.createElement("div",{className:"my-diff-editor",ref:se,style:Be})}},ZpRC:function(st,be,Q){"use strict";function ie(g){return typeof g=="object"&&g!=null&&g.nodeType===1}function $(g,m){return(!m||g!=="hidden")&&g!=="visible"&&g!=="clip"}function M(g,m){if(g.clientHeightm||f>g&&o=m&&h>=p?f-g-l:o>m&&hp?o-m+u:0}var F=function(g,m){var p=window,l=m.scrollMode,u=m.block,f=m.inline,o=m.boundary,h=m.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Ge){return Ge!==o};if(!ie(g))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,A=[],_=g;ie(_)&&s(_);){if((_=_.parentElement)===a){A.push(_);break}_!=null&&_===document.body&&M(_)&&!M(document.documentElement)||_!=null&&M(_,h)&&A.push(_)}for(var S=p.visualViewport?p.visualViewport.width:innerWidth,L=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,w=g.getBoundingClientRect(),x=w.height,c=w.width,T=w.top,y=w.right,v=w.bottom,N=w.left,B=u==="start"||u==="nearest"?T:u==="end"?v:T+x/2,O=f==="center"?N+c/2:f==="end"?y:N,j=[],P=0;P=0&&N>=0&&v<=L&&y<=S&&T>=ue&&v<=Se&&N>=Ce&&y<=ke)return j;var ce=getComputedStyle(b),pe=parseInt(ce.borderLeftWidth,10),se=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.borderRightWidth,10),Oe=parseInt(ce.borderBottomWidth,10),Te=0,Ne=0,De="offsetWidth"in b?b.offsetWidth-b.clientWidth-pe-ae:0,We="offsetHeight"in b?b.offsetHeight-b.clientHeight-se-Oe:0;if(a===b)Te=u==="start"?B:u==="end"?B-L:u==="nearest"?X(C,C+L,L,se,Oe,C+B,C+B+x,x):B-L/2,Ne=f==="start"?O:f==="center"?O-S/2:f==="end"?O-S:X(R,R+S,S,pe,ae,R+O,R+O+c,c),Te=Math.max(0,Te+C),Ne=Math.max(0,Ne+R);else{Te=u==="start"?B-ue-se:u==="end"?B-Se+Oe+We:u==="nearest"?X(ue,Se,ee,se,Oe+We,B,B+x,x):B-(ue+ee/2)+We/2,Ne=f==="start"?O-Ce-pe:f==="center"?O-(Ce+le/2)+De/2:f==="end"?O-ke+ae+De:X(Ce,ke,le,pe,ae+De,O,O+c,c);var Le=b.scrollLeft,Be=b.scrollTop;B+=Be-(Te=Math.max(0,Math.min(Be+Te,b.scrollHeight-ee+We))),O+=Le-(Ne=Math.max(0,Math.min(Le+Ne,b.scrollWidth-le+De)))}j.push({el:b,top:Te,left:Ne})}return j};function U(g){return g===Object(g)&&Object.keys(g).length!==0}function G(g,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;g.forEach(function(l){var u=l.el,f=l.top,o=l.left;u.scroll&&p?u.scroll({top:f,left:o,behavior:m}):(u.scrollTop=f,u.scrollLeft=o)})}function W(g){return g===!1?{block:"end",inline:"nearest"}:U(g)?g:{block:"start",inline:"nearest"}}function i(g,m){var p=!g.ownerDocument.documentElement.contains(g);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:F(g,m));if(p)return;var l=W(m);return G(F(g,l),l.behavior)}var D=be.a=i},bT9E:function(st,be,Q){"use strict";Q.d(be,"a",function(){return $});var ie=Q("VTBJ");function $(M,X){var F=Object(ie.a)({},M);return Array.isArray(X)&&X.forEach(function(U){delete F[U]}),F}},c5Ni:function(st,be,Q){},dejd:function(st,be,Q){},dmUQ:function(st,be,Q){"use strict";var ie=Q("Ff2n"),$=Q("rePB"),M=Q("1OyB"),X=Q("vuIU"),F=Q("Ji7U"),U=Q("md7G"),G=Q("foSv"),W=Q("q1tI"),i=Q.n(W),D=Q("TSYQ"),g=Q.n(D),m=Q("4IlW");function p(x,c){var T=Object.keys(x);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(x);c&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(x,v).enumerable})),T.push.apply(T,y)}return T}function l(x){for(var c=1;c1?le-1:0),ke=1;ke1?P-1:0),Y=1;Y=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var P=0;return j.indexOf(".")>=0&&(P=j.length-j.indexOf(".")-1),P},v.getInputDisplayValue=function(O){var j=O||v.state,P=j.focused,b=j.inputValue,Y=j.value,ee;P?ee=b:ee=v.toPrecisionAsStep(Y),ee==null&&(ee="");var le=v.formatWrapper(ee);return S(v.props.decimalSeparator)&&(le=le.toString().replace(".",v.props.decimalSeparator)),le},v.recordCursorPosition=function(){try{v.cursorStart=v.input.selectionStart,v.cursorEnd=v.input.selectionEnd,v.currentValue=v.input.value,v.cursorBefore=v.input.value.substring(0,v.cursorStart),v.cursorAfter=v.input.value.substring(v.cursorEnd)}catch(O){}},v.restoreByAfter=function(O){if(O===void 0)return!1;var j=v.input.value,P=j.lastIndexOf(O);if(P===-1)return!1;var b=v.cursorBefore.length;return v.lastKeyCode===m.a.DELETE&&v.cursorBefore.charAt(b-1)===O[0]?(v.fixCaret(b,b),!0):P+O.length===j.length?(v.fixCaret(P,P),!0):!1},v.partRestoreByAfter=function(O){return O===void 0?!1:Array.prototype.some.call(O,function(j,P){var b=O.substring(P);return v.restoreByAfter(b)})},v.isNotCompleteNumber=function(O){return isNaN(O)||O===""||O===null||O&&O.toString().indexOf(".")===O.toString().length-1},v.stop=function(){v.autoStepTimer&&clearTimeout(v.autoStepTimer)},v.down=function(O,j,P){v.pressingUpOrDown=!0,v.step("down",O,j,P)},v.up=function(O,j,P){v.pressingUpOrDown=!0,v.step("up",O,j,P)},v.saveInput=function(O){v.input=O};var N=y.value;N===void 0&&(N=y.defaultValue),v.state={focused:y.autoFocus};var B=v.getValidValue(v.toNumber(N));return v.state=l(l({},v.state),{},{inputValue:v.toPrecisionAsStep(B),value:B}),v}return Object(X.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(v){var N=this.props,B=N.value,O=N.onChange,j=N.max,P=N.min,b=this.state.focused;if(v){if(!L(v.value,B)||!L(v.max,j)||!L(v.min,P)){var Y=b?B:this.getValidValue(B),ee;this.pressingUpOrDown?ee=Y:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ee})}var le="value"in this.props?B:this.state.value;"max"in this.props&&v.max!==j&&typeof le=="number"&&le>j&&O&&O(j),"min"in this.props&&v.min!==P&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,O=parseFloat(v);return isNaN(O)?v:(OB&&(O=B),O)}},{key:"setValue",value:function(v,N){var B=this.props.precision,O=this.isNotCompleteNumber(parseFloat(v))?null:parseFloat(v),j=this.state.value,P=j===void 0?null:j,b=this.state.inputValue,Y=b===void 0?null:b,ee=typeof O=="number"?O.toFixed(B):"".concat(O),le=O!==P||ee!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},N)):this.setState({value:O,inputValue:this.toPrecisionAsStep(v)},N),le&&this.props.onChange(O),O}},{key:"getMaxPrecision",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.props,O=B.precision,j=B.step;if(S(O))return O;var P=this.getPrecision(N),b=this.getPrecision(j),Y=this.getPrecision(v);return v?Math.max(Y,P+b):P+b}},{key:"getPrecisionFactor",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.getMaxPrecision(v,N);return Math.pow(10,B)}},{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(v){return this.props.formatter?this.props.formatter(v):v}},{key:"toPrecisionAsStep",value:function(v){if(this.isNotCompleteNumber(v)||v==="")return v;var N=Math.abs(this.getMaxPrecision(v));return isNaN(N)?v.toString():Number(v).toFixed(N)}},{key:"toNumber",value:function(v){var N=this.props.precision,B=this.state.focused,O=v&&v.length>16&&B;return this.isNotCompleteNumber(v)||O?v:S(N)?Math.round(v*Math.pow(10,N))/Math.pow(10,N):Number(v)}},{key:"upStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v+O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"downStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v-O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"step",value:function(v,N){var B=this,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var P=this.props;if(P.disabled)return;var b=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(b))return;var Y=this["".concat(v,"Step")](b,O),ee=Y>P.max||YP.max?Y=P.max:Y=ue),je=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=ke),Ee=Fe||O||j,ge=je||O||j,_e=g()("".concat(B,"-handler"),"".concat(B,"-handler-up"),Object($.a)({},"".concat(B,"-handler-up-disabled"),Ee)),ne=g()("".concat(B,"-handler"),"".concat(B,"-handler-down"),Object($.a)({},"".concat(B,"-handler-down-disabled"),ge)),re=P?{onTouchStart:Ee?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Ee?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=P?{onTouchStart:ge?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:Je,style:Se,title:Ce,onMouseEnter:ce,onMouseLeave:pe,onMouseOver:se,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(B,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},re,{role:"button","aria-label":"Increase Value","aria-disabled":Ee,className:_e}),Y||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-up-inner"),onClick:h})),i.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:ne}),ee||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-down-inner"),onClick:h}))),i.a.createElement("div",{className:"".concat(B,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ke,"aria-valuemax":ue,"aria-valuenow":tt,required:Oe,type:De,placeholder:We,onPaste:Ue,onClick:Te,onMouseUp:this.onMouseUp,className:"".concat(B,"-input"),tabIndex:Ne,autoComplete:b,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:o,onKeyUp:ut?this.onKeyUp:o,autoFocus:we,maxLength:ye,readOnly:j,disabled:O,max:ue,min:ke,step:oe,name:Ae,title:Ce,id:Le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(nt),pattern:Ge,inputMode:Be,onInput:Ve},Me))))}}]),T}(i.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var C=R,w=be.a=C},eYnf:function(st,be,Q){st.exports={flex_box_center:"flex_box_center___1XyGp",flex_space_between:"flex_space_between___3jaTm",flex_box_vertical_center:"flex_box_vertical_center___2_EoO",flex_box_center_end:"flex_box_center_end___aCF48",flex_box_column:"flex_box_column___10vW2",bg:"bg___1Uj9H",title:"title___2xwyX",titleLeft:"titleLeft___1ASl5",titleRight:"titleRight___1FHl9",btns:"btns___3kkgI"}},fjLI:function(st,be,Q){"use strict";Q.d(be,"f",function(){return p}),Q.d(be,"b",function(){return l}),Q.d(be,"a",function(){return u}),Q.d(be,"d",function(){return f}),Q.d(be,"e",function(){return o}),Q.d(be,"c",function(){return h});var ie=Q("8HAY"),$=Q("Vhoy"),M=Q("MI8n"),X=Q("JYp7"),F=Q("pmY6"),U=Q("24hK"),G=Q("nnTU"),W=Q("T8No"),i=Q("Cg/j"),D=Q("t9D7"),g=function(s,a,A,_){var S=arguments.length,L=S<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,A):_,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,a,A,_);else for(var C=s.length-1;C>=0;C--)(R=s[C])&&(L=(S<3?R(L):S>3?R(a,A,L):R(a,A))||L);return S>3&&L&&Object.defineProperty(a,A,L),L},m=function(s,a){return function(A,_){a(A,_,s)}};function p(s){return s.command!==void 0}class l{constructor(s){this.id=l._idPool++,this._debugName=s}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const u=Object(i.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===l.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let a=!1;for(const A of s)a=this._commands.delete(A.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,A)=>s.set(A,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,A=new U.a;for(const{id:_,item:S}of s){let L=this._menuItems.get(_);L||(L=new U.a,this._menuItems.set(_,L)),A.push(L.push(S)),a.add(_)}return this._onDidChangeMenu.fire(a),Object(F.i)(()=>{if(A.size>0){for(let _ of A)_();this._onDidChangeMenu.fire(a),A.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===l.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const A of s)p(A)&&(a.add(A.command.id),A.alt&&a.add(A.alt.id));this._commands.forEach((A,_)=>{a.has(_)||s.push({command:A})})}};class o extends ie.e{constructor(s,a,A,_){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=A,this._options=_}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=a.getActions(this._options);a.dispose();for(const[,_]of A)_.length>0&&(s.push(..._),s.push(new ie.d));return s.length&&s.pop(),s}}let h=class s{constructor(a,A,_,S,L){var R,C;if(this._commandService=L,this.id=a.id,this.label=(_==null?void 0:_.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(C=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&C!==void 0?C:"",this.enabled=!a.precondition||S.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const w=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=S.contextMatchesRules(w.condition),this.checked&&w.tooltip&&(this.tooltip=typeof w.tooltip=="string"?w.tooltip:w.tooltip.value),w.title&&(this.label=typeof w.title=="string"?w.title:w.title.value)}this.item=a,this.alt=A?new s(A,void 0,_,S,L):void 0,this._options=_,D.d.isThemeIcon(a.icon)&&(this.class=$.a.asClassName(a.icon))}dispose(){}run(...a){var A,_;let S=[];return((A=this._options)===null||A===void 0?void 0:A.arg)&&(S=[...S,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(S=[...S,...a]),this._commandService.executeCommand(this.id,...S)}};h=g([m(3,W.b),m(4,G.b)],h)},gJ3r:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},ic2d:function(st,be,Q){"use strict";Q.d(be,"a",function(){return X});var ie=Q("FWmy"),$=Q("746U");class M{constructor(){this.data=new Map}add(F,U){ie.a($.l(F)),ie.a($.k(U)),ie.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,U)}as(F){return this.data.get(F)||null}}const X=new M},kSUc:function(st,be,Q){},lZu9:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("1eCo"),Q("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function($,M){var X=ie.getMode($,"text/html"),F=X.name=="null";function U(P){if(ie.findModeByName){var b=ie.findModeByName(P);b&&(P=b.mime||b.mimes[0])}var Y=ie.getMode($,P);return Y.name=="null"?null:Y}M.highlightFormatting===void 0&&(M.highlightFormatting=!1),M.maxBlockquoteDepth===void 0&&(M.maxBlockquoteDepth=0),M.taskLists===void 0&&(M.taskLists=!1),M.strikethrough===void 0&&(M.strikethrough=!1),M.emoji===void 0&&(M.emoji=!1),M.fencedCodeBlockHighlighting===void 0&&(M.fencedCodeBlockHighlighting=!0),M.fencedCodeBlockDefaultMode===void 0&&(M.fencedCodeBlockDefaultMode="text/plain"),M.xml===void 0&&(M.xml=!0),M.tokenTypeOverrides===void 0&&(M.tokenTypeOverrides={});var G={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 W in G)G.hasOwnProperty(W)&&M.tokenTypeOverrides[W]&&(G[W]=M.tokenTypeOverrides[W]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,g=/^\[(x| )\](?=\s)/i,m=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function s(P,b,Y){return b.f=b.inline=Y,Y(P,b)}function a(P,b,Y){return b.f=b.block=Y,Y(P,b)}function A(P){return!P||!/\S/.test(P.string)}function _(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==L){var b=F;if(!b){var Y=ie.innerMode(X,P.htmlState);b=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}b&&(P.f=x,P.block=S,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function S(P,b){var Y=P.column()===b.indentation,ee=A(b.prevLine.stream),le=b.indentedCode,ue=b.prevLine.hr,ke=b.list!==!1,Se=(b.listStack[b.listStack.length-1]||0)+3;b.indentedCode=!1;var Ce=b.indentation;if(b.indentationDiff===null&&(b.indentationDiff=b.indentation,ke)){for(b.list=null;Ce=4&&(le||b.prevLine.fencedCodeEnd||b.prevLine.header||ee))return P.skipToEnd(),b.indentedCode=!0,G.code;if(P.eatSpace())return null;if(Y&&b.indentation<=Se&&(se=P.match(m))&&se[1].length<=6)return b.quote=0,b.header=se[1].length,b.thisLine.header=!0,M.highlightFormatting&&(b.formatting="header"),b.f=b.inline,C(b);if(b.indentation<=Se&&P.eat(">"))return b.quote=Y?1:b.quote+1,M.highlightFormatting&&(b.formatting="quote"),P.eatSpace(),C(b);if(!pe&&!b.setext&&Y&&b.indentation<=Se&&(se=P.match(D))){var ae=se[1]?"ol":"ul";return b.indentation=Ce+P.current().length,b.list=!0,b.quote=0,b.listStack.push(b.indentation),b.em=!1,b.strong=!1,b.code=!1,b.strikethrough=!1,M.taskLists&&P.match(g,!1)&&(b.taskList=!0),b.f=b.inline,M.highlightFormatting&&(b.formatting=["list","list-"+ae]),C(b)}else{if(Y&&b.indentation<=Se&&(se=P.match(u,!0)))return b.quote=0,b.fencedEndRE=new RegExp(se[1]+"+ *$"),b.localMode=M.fencedCodeBlockHighlighting&&U(se[2]||M.fencedCodeBlockDefaultMode),b.localMode&&(b.localState=ie.startState(b.localMode)),b.f=b.block=R,M.highlightFormatting&&(b.formatting="code-block"),b.code=-1,C(b);if(b.setext||(!ce||!ke)&&!b.quote&&b.list===!1&&!b.code&&!pe&&!f.test(P.string)&&(se=P.lookAhead(1))&&(se=se.match(p)))return b.setext?(b.header=b.setext,b.setext=0,P.skipToEnd(),M.highlightFormatting&&(b.formatting="header")):(b.header=se[0].charAt(0)=="="?1:2,b.setext=b.header),b.thisLine.header=!0,b.f=b.inline,C(b);if(pe)return P.skipToEnd(),b.hr=!0,b.thisLine.hr=!0,G.hr;if(P.peek()==="[")return s(P,b,N)}return s(P,b,b.inline)}function L(P,b){var Y=X.token(P,b.htmlState);if(!F){var ee=ie.innerMode(X,b.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||b.md_inside&&P.current().indexOf(">")>-1)&&(b.f=x,b.block=S,b.htmlState=null)}return Y}function R(P,b){var Y=b.listStack[b.listStack.length-1]||0,ee=b.indentation=P.quote?b.push(G.formatting+"-"+P.formatting[Y]+"-"+P.quote):b.push("error"))}if(P.taskOpen)return b.push("meta"),b.length?b.join(" "):null;if(P.taskClosed)return b.push("property"),b.length?b.join(" "):null;if(P.linkHref?b.push(G.linkHref,"url"):(P.strong&&b.push(G.strong),P.em&&b.push(G.em),P.strikethrough&&b.push(G.strikethrough),P.emoji&&b.push(G.emoji),P.linkText&&b.push(G.linkText),P.code&&b.push(G.code),P.image&&b.push(G.image),P.imageAltText&&b.push(G.imageAltText,"link"),P.imageMarker&&b.push(G.imageMarker)),P.header&&b.push(G.header,G.header+"-"+P.header),P.quote&&(b.push(G.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=P.quote?b.push(G.quote+"-"+P.quote):b.push(G.quote+"-"+M.maxBlockquoteDepth)),P.list!==!1){var ee=(P.listStack.length-1)%3;ee?ee===1?b.push(G.list2):b.push(G.list3):b.push(G.list1)}return P.trailingSpaceNewLine?b.push("trailing-space-new-line"):P.trailingSpace&&b.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),b.length?b.join(" "):null}function w(P,b){return P.match(l,!0)?C(b):void 0}function x(P,b){var Y=b.text(P,b);if(typeof Y!="undefined")return Y;if(b.list)return b.list=null,C(b);if(b.taskList){var ee=P.match(g,!0)[1]===" ";return ee?b.taskOpen=!0:b.taskClosed=!0,M.highlightFormatting&&(b.formatting="task"),b.taskList=!1,C(b)}if(b.taskOpen=!1,b.taskClosed=!1,b.header&&P.match(/^#+$/,!0))return M.highlightFormatting&&(b.formatting="header"),C(b);var le=P.next();if(b.linkTitle){b.linkTitle=!1;var ue=le;le==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ke="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(P.match(new RegExp(ke),!0))return G.linkHref}if(le==="`"){var Se=b.formatting;M.highlightFormatting&&(b.formatting="code"),P.eatWhile("`");var Ce=P.current().length;if(b.code==0&&(!b.quote||Ce==1))return b.code=Ce,C(b);if(Ce==b.code){var ce=C(b);return b.code=0,ce}else return b.formatting=Se,C(b)}else if(b.code)return C(b);if(le==="\\"&&(P.next(),M.highlightFormatting)){var pe=C(b),se=G.formatting+"-escape";return pe?pe+" "+se:se}if(le==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return b.imageMarker=!0,b.image=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="["&&b.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return b.imageMarker=!1,b.imageAltText=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="]"&&b.imageAltText){M.highlightFormatting&&(b.formatting="image");var pe=C(b);return b.imageAltText=!1,b.image=!1,b.inline=b.f=T,pe}if(le==="["&&!b.image)return b.linkText&&P.match(/^.*?\]/)||(b.linkText=!0,M.highlightFormatting&&(b.formatting="link")),C(b);if(le==="]"&&b.linkText){M.highlightFormatting&&(b.formatting="link");var pe=C(b);return b.linkText=!1,b.inline=b.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?T:x,pe}if(le==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkInline}if(le==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkEmail}if(M.xml&&le==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ae=P.string.indexOf(">",P.pos);if(ae!=-1){var Oe=P.string.substring(P.start,ae);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(b.md_inside=!0)}return P.backUp(1),b.htmlState=ie.startState(X),a(P,b,L)}if(M.xml&&le==="<"&&P.match(/^\/\w*?>/))return b.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Te=1,Ne=P.pos==1?" ":P.string.charAt(P.pos-2);Te<3&&P.eat(le);)Te++;var De=P.peek()||" ",We=!/\s/.test(De)&&(!o.test(De)||/\s/.test(Ne)||o.test(Ne)),Le=!/\s/.test(Ne)&&(!o.test(Ne)||/\s/.test(De)||o.test(De)),Be=null,Ge=null;if(Te%2&&(!b.em&&We&&(le==="*"||!Le||o.test(Ne))?Be=!0:b.em==le&&Le&&(le==="*"||!We||o.test(De))&&(Be=!1)),Te>1&&(!b.strong&&We&&(le==="*"||!Le||o.test(Ne))?Ge=!0:b.strong==le&&Le&&(le==="*"||!We||o.test(De))&&(Ge=!1)),Ge!=null||Be!=null){M.highlightFormatting&&(b.formatting=Be==null?"strong":Ge==null?"em":"strong em"),Be===!0&&(b.em=le),Ge===!0&&(b.strong=le);var ce=C(b);return Be===!1&&(b.em=!1),Ge===!1&&(b.strong=!1),ce}}else if(le===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return C(b);P.backUp(1)}if(M.strikethrough){if(le==="~"&&P.eatWhile(le)){if(b.strikethrough){M.highlightFormatting&&(b.formatting="strikethrough");var ce=C(b);return b.strikethrough=!1,ce}else if(P.match(/^[^\s]/,!1))return b.strikethrough=!0,M.highlightFormatting&&(b.formatting="strikethrough"),C(b)}else if(le===" "&&P.match(/^~~/,!0)){if(P.peek()===" ")return C(b);P.backUp(2)}}if(M.emoji&&le===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){b.emoji=!0,M.highlightFormatting&&(b.formatting="emoji");var oe=C(b);return b.emoji=!1,oe}return le===" "&&(P.match(/^ +$/,!1)?b.trailingSpace++:b.trailingSpace&&(b.trailingSpaceNewLine=!0)),C(b)}function c(P,b){var Y=P.next();if(Y===">"){b.f=b.inline=x,M.highlightFormatting&&(b.formatting="link");var ee=C(b);return ee?ee+=" ":ee="",ee+G.linkInline}return P.match(/^[^>]+/,!0),G.linkInline}function T(P,b){if(P.eatSpace())return null;var Y=P.next();return Y==="("||Y==="["?(b.f=b.inline=v(Y==="("?")":"]"),M.highlightFormatting&&(b.formatting="link-string"),b.linkHref=!0,C(b)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function v(P){return function(b,Y){var ee=b.next();if(ee===P){Y.f=Y.inline=x,M.highlightFormatting&&(Y.formatting="link-string");var le=C(Y);return Y.linkHref=!1,le}return b.match(y[P]),Y.linkHref=!0,C(Y)}}function N(P,b){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(b.f=B,P.next(),M.highlightFormatting&&(b.formatting="link"),b.linkText=!0,C(b)):s(P,b,x)}function B(P,b){if(P.match(/^\]:/,!0)){b.f=b.inline=O,M.highlightFormatting&&(b.formatting="link");var Y=C(b);return b.linkText=!1,Y}return P.match(/^([^\]\\]|\\.)+/,!0),G.linkText}function O(P,b){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?b.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),b.f=b.inline=x,G.linkHref+" url")}var j={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:x,text:w,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(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&ie.copyState(X,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?ie.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,b){if(b.formatting=!1,P!=b.thisLine.stream){if(b.header=0,b.hr=!1,P.match(/^\s*$/,!0))return _(b),null;if(b.prevLine=b.thisLine,b.thisLine={stream:P},b.taskList=!1,b.trailingSpace=0,b.trailingSpaceNewLine=!1,!b.localState&&(b.f=b.block,b.f!=L)){var Y=P.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(b.indentation=Y,b.indentationDiff=null,Y>0)return null}}return b.f(P,b)},innerMode:function(P){return P.block==L?{state:P.htmlState,mode:X}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:j}},indent:function(P,b,Y){return P.block==L&&X.indent?X.indent(P.htmlState,b,Y):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,b,Y):ie.Pass},blankLine:_,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie;(function($){$.DARK="dark",$.LIGHT="light",$.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(st,be,Q){"use strict";Q.d(be,"b",function(){return G}),Q.d(be,"a",function(){return W});var ie=Q("MI8n"),$=Q("JYp7"),M=Q("pmY6"),X=Q("24hK"),F=Q("746U"),U=Q("Cg/j");const G=Object(U.c)("commandService"),W=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(i,D){if(!i)throw new Error("invalid command");if(typeof i=="string"){if(!D)throw new Error("invalid command");return this.registerCommand({id:i,handler:D})}if(i.description){const u=[];for(let o of i.description.args)u.push(o.constraint);const f=i.handler;i.handler=function(o,...h){return Object(F.o)(h,u),f(o,...h)}}const{id:g}=i;let m=this._commands.get(g);m||(m=new X.a,this._commands.set(g,m));let p=m.unshift(i),l=Object(M.i)(()=>{p();const u=this._commands.get(g);(u==null?void 0:u.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),l}registerCommandAlias(i,D){return W.registerCommand(i,(g,...m)=>g.get(G).executeCommand(D,...m))}getCommand(i){const D=this._commands.get(i);return!D||D.isEmpty()?void 0:$.a.first(D)}getCommands(){const i=new Map;for(const D of this._commands.keys()){const g=this.getCommand(D);g&&i.set(D,g)}return i}};W.registerCommand("noop",()=>{})},osHv:function(st,be,Q){(function(ie){ie(Q("VrN/"))})(function(ie){"use strict";var $=ie.Pos;function M(o,h){return o.line-h.line||o.ch-h.ch}var X="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",F=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+F+"]*)","g");function G(o,h,s,a){this.line=h,this.ch=s,this.cm=o,this.text=o.getLine(h),this.min=a?Math.max(a.from,o.firstLine()):o.firstLine(),this.max=a?Math.min(a.to-1,o.lastLine()):o.lastLine()}function W(o,h){var s=o.cm.getTokenTypeAt($(o.line,h));return s&&/\btag\b/.test(s)}function i(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function D(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function g(o){for(;;){var h=o.text.indexOf(">",o.ch);if(h==-1){if(i(o))continue;return}if(!W(o,h+1)){o.ch=h+1;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function m(o){for(;;){var h=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}U.lastIndex=h,o.ch=h;var s=U.exec(o.text);if(s&&s.index==h)return s}}function p(o){for(;;){U.lastIndex=o.ch;var h=U.exec(o.text);if(!h){if(i(o))continue;return}if(!W(o,h.index+1)){o.ch=h.index+1;continue}return o.ch=h.index+h[0].length,h}}function l(o){for(;;){var h=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function u(o,h){for(var s=[];;){var a=p(o),A,_=o.line,S=o.ch-(a?a[0].length:0);if(!a||!(A=g(o)))return;if(A=="selfClose")continue;if(a[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==a[2]){s.length=L;break}if(L<0&&(!h||h==a[2]))return{tag:a[2],from:$(_,S),to:$(o.line,o.ch)}}else s.push(a[2])}}function f(o,h){for(var s=[];;){var a=l(o);if(!a)return;if(a=="selfClose"){m(o);continue}var A=o.line,_=o.ch,S=m(o);if(!S)return;if(S[1])s.push(S[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==S[2]){s.length=L;break}if(L<0&&(!h||h==S[2]))return{tag:S[2],from:$(o.line,o.ch),to:$(A,_)}}}}ie.registerHelper("fold","xml",function(o,h){for(var s=new G(o,h.line,0);;){var a=p(s);if(!a||s.line!=h.line)return;var A=g(s);if(!A)return;if(!a[1]&&A!="selfClose"){var _=$(s.line,s.ch),S=u(s,a[2]);return S&&M(S.from,_)>0?{from:_,to:S.from}:null}}}),ie.findMatchingTag=function(o,h,s){var a=new G(o,h.line,h.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var A=g(a),_=A&&$(a.line,a.ch),S=A&&m(a);if(!A||!S||M(a,h)>0)return;var L={from:$(a.line,a.ch),to:_,tag:S[2]};return A=="selfClose"?{open:L,close:null,at:"open"}:S[1]?{open:f(a,S[2]),close:L,at:"close"}:(a=new G(o,_.line,_.ch,s),{open:L,close:u(a,S[2]),at:"open"})},ie.findEnclosingTag=function(o,h,s,a){for(var A=new G(o,h.line,h.ch,s);;){var _=f(A,a);if(!_)break;var S=new G(o,h.line,h.ch,s),L=u(S,_.tag);if(L)return{open:_,close:L}}},ie.scanForClosingTag=function(o,h,s,a){var A=new G(o,h.line,h.ch,a?{from:0,to:a}:null);return u(A,s)}})},p5ED:function(st,be,Q){"use strict";var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("5Dmo"),X=Q("3S7+"),F=Q("k1fw"),U=Q("9og8"),G=Q("tJVT"),W=Q("WmNS"),i=Q.n(W),D=Q("q1tI"),g=Q.n(D),m=Q("vHTk"),p=Q.n(m),l=Q("yEEn"),u=Q("ZW9T"),f=Q("1vsH"),o=Q("V0Rq"),h=Q("m3rI");be.a=function(s){var a,A,_,S,L,R,C,w=s.editOffice,x=w===void 0?"view":w,c=s.data,T=s.theme,y=s.type,v=s.filename,N=s.monacoEditor,B=s.className,O=s.style,j=s.close,P=s.onClose,b=s.hasMask,Y=s.disabledDownload,ee=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),le=Object(G.a)(ee,2),ue=le[0],ke=le[1],Se=Object(D.useState)(""),Ce=Object(G.a)(Se,2),ce=Ce[0],pe=Ce[1],se=Object(D.useState)(),ae=Object(G.a)(se,2),Oe=ae[0],Te=ae[1],Ne=window.ENV==="build"?"/react/build":"",De=h.a.PROXY_SERVER||location.origin,We,Le=1024*1024,Be=10*Le,Ge=Object(D.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=h.a.API_SERVER+c),y==="office"&&(We=Object(f.T)(c).filesize,We>Be&&(y="other")),v&&N&&(N.filename=v),Object(D.useEffect)(function(){var Ae,Ue,Ve=(Ae=document.cookie)===null||Ae===void 0||((Ue=Ae.replace(/\s/g,""))===null||Ue===void 0)?void 0:Ue.split(";");Ve==null||Ve.map(function(Ze){var $e=Ze.split("=");$e[0]==="_educoder_session"&&pe($e[1])})},[]),Object(D.useEffect)(function(){y==="office"&&oe()},[y,c]);var oe=function(){var Ae=Object(U.a)(i.a.mark(function Ue(){var Ve,Ze,$e;return i.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Ze=new URL(Ve).pathname.split("/").pop(),et.next=6,Object(o.V)({attachment_id:Ze});case 6:$e=et.sent,Te($e);case 8:case"end":return et.stop()}},Ue)}));return function(){return Ae.apply(this,arguments)}}(),ye=function(){if(c.startsWith("http")||c.startsWith("blob:")){we();return}Object(f.z)(v||"educoder",c,v)},we=function(){Object(f.x)(v||"educoder",decodeURIComponent(c))};return g.a.createElement("div",{style:Object(F.a)({},O||{}),className:"".concat(b&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},j&&g.a.createElement("div",{className:p.a.close,ref:Ge},!Y&&g.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{onClick:we},g.a.createElement("i",{className:"icon-quxiaozhiding"}))),g.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{className:"",onClick:P},g.a.createElement("i",{className:"icon-guanbi1"})))),g.a.createElement("div",{className:"".concat(p.a[B]," ").concat(B," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&g.a.createElement(u.b,N)),y==="audio"&&g.a.createElement("audio",{src:"".concat(((A=c)===null||A===void 0?void 0:A.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&g.a.createElement(g.a.Fragment,null,((S=c)===null||S===void 0?void 0:S.indexOf("http"))>-1?g.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):g.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&Oe&&g.a.createElement("iframe",{src:"".concat(Ne,"/office.html?key=").concat(Oe.key,"&url=").concat(De+Oe.url,"&callbackUrl=").concat(De+Oe.callbackUrl,"&fileType=").concat(Oe.fileType,"&title=").concat(Oe.title,"&model=").concat(x,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),y==="html"&&g.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&g.a.createElement("iframe",{src:"".concat(Ne,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),y==="image"&&g.a.createElement("img",{src:"".concat(((L=c)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(C=c)!==null&&C!==void 0&&C.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&g.a.createElement("div",null,g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(st,be,Q){},pmY6:function(st,be,Q){"use strict";Q.d(be,"h",function(){return D}),Q.d(be,"g",function(){return m}),Q.d(be,"f",function(){return p}),Q.d(be,"e",function(){return l}),Q.d(be,"i",function(){return u}),Q.d(be,"b",function(){return f}),Q.d(be,"a",function(){return o}),Q.d(be,"d",function(){return h}),Q.d(be,"c",function(){return s});var ie=Q("C/vA"),$=Q("JYp7");const M=!1;let X=null;function F(a){X=a}if(M){const a="__is_disposable_tracked__";F(new class{trackDisposable(A){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{A[a]||console.log(_)},3e3)}setParent(A,_){if(A&&A!==o.None)try{A[a]=!0}catch(S){}}markAsDisposed(A){if(A&&A!==o.None)try{A[a]=!0}catch(_){}}markAsSingleton(A){}})}function U(a){return X==null||X.trackDisposable(a),a}function G(a){X==null||X.markAsDisposed(a)}function W(a,A){X==null||X.setParent(a,A)}function i(a,A){if(!X)return;for(const _ of a)X.setParent(_,A)}function D(a){return X==null||X.markAsSingleton(a),a}class g extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if($.a.is(a)){let A=[];for(const _ of a)if(_)try{_.dispose()}catch(S){A.push(S)}if(A.length===1)throw A[0];if(A.length>1)throw new g(A);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function l(...a){const A=u(()=>p(a));return i(a,A),A}function u(a){const A=U({dispose:Object(ie.a)(()=>{G(A),a()})});return A}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;G(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return W(a,this),this._isDisposed?f.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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new f,U(this),W(this._store,this)}dispose(){G(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}o.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var A;if(this._isDisposed||a===this._value)return;(A=this._value)===null||A===void 0||A.dispose(),a&&W(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,G(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&W(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(st,be,Q){var ie,$;(function(){var M;(function(){"use strict";var G=[,,function(g){function m(u){this.__parent=u,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` `);f!==-1?this.__character_count=u.length-f:this.__character_count+=u.length},m.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function p(u,f){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),f=f||"",u.indent_level>0&&(f=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=f,this.__base_string_length=f.length}p.prototype.get_indent_size=function(u,f){var o=this.__base_string_length;return f=f||0,u<0&&(o=0),o+=u*this.__indent_size,o+=f,o},p.prototype.get_indent_string=function(u,f){var o=this.__base_string;return f=f||0,u<0&&(u=0,o=""),f+=u*this.__indent_size,this.__ensure_cache(f),o+=this.__cache[f],o},p.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var u=this.__cache.length,f=0,o="";this.__indent_size&&u>=this.__indent_size&&(f=Math.floor(u/this.__indent_size),u-=f*this.__indent_size,o=new Array(f+1).join(this.__indent_string)),u&&(o+=new Array(u+1).join(" ")),this.__cache.push(o)};function l(u,f){this.__indent_cache=new p(u,f),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(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(u,f){return this.__indent_cache.get_indent_string(u,f)},l.prototype.get_indent_size=function(u,f){return this.__indent_cache.get_indent_size(u,f)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(u){this.trim(!0);var f=this.current_line.pop();f&&(f[f.length-1]===` `&&(f=f.replace(/\n+$/g,"")),this.current_line.push(f)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(` `);return u!==` @@ -426,7 +426,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+O+` contiguous: `+b+` accurateTimeOffset: `+R+` - timeOffset: `+y);var le=new G.TransmuxConfig(a,A,s,L,w);this.configureTransmuxer(le)}if(this.frag=_,this.part=S,T)T.postMessage({cmd:"demux",data:h,decryptdata:v,chunkMeta:C,state:ee},h instanceof ArrayBuffer?[h]:[]);else if(c){var ue=c.push(h,v,C,ee);Object(G.isPromise)(ue)?ue.then(function(ke){x.handleTransmuxComplete(ke)}):this.handleTransmuxComplete(ue)}},f.flush=function(h){var s=this;h.transmuxing.start=self.performance.now();var a=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:h});else if(a){var _=a.flush(h);Object(G.isPromise)(_)?_.then(function(S){s.handleFlushResult(S,h)}):this.handleFlushResult(_,h)}},f.handleFlushResult=function(h,s){var a=this;h.forEach(function(A){a.handleTransmuxComplete(A)}),this.onFlush(s)},f.onWorkerMessage=function(h){var s=h.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(h){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:h}):a&&a.configure(h)},f.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return i});var X=M("./src/demux/transmuxer.ts"),F=M("./src/events.ts"),U=M("./src/utils/logger.ts"),G=M("./node_modules/eventemitter3/index.js"),W=M.n(G);function i(l){var u=new G.EventEmitter,f=function(h,s){l.postMessage({event:h,data:s})};u.on(F.Events.FRAG_DECRYPTED,f),u.on(F.Events.ERROR,f),l.addEventListener("message",function(o){var h=o.data;switch(h.cmd){case"init":{var s=JSON.parse(h.config);l.transmuxer=new X.default(u,h.typeSupported,s,h.vendor,h.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{l.transmuxer.configure(h.config);break}case"demux":{var a=l.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(X.isPromise)(a)?a.then(function(S){D(l,S)}):D(l,a);break}case"flush":{var A=h.chunkMeta,_=l.transmuxer.flush(A);Object(X.isPromise)(_)?_.then(function(S){m(l,S,A)}):m(l,_,A);break}default:break}})}function D(l,u){if(p(u.remuxResult))return;var f=[],o=u.remuxResult,h=o.audio,s=o.video;h&&g(f,h),s&&g(f,s),l.postMessage({event:"transmuxComplete",data:u},f)}function g(l,u){u.data1&&l.push(u.data1.buffer),u.data2&&l.push(u.data2.buffer)}function m(l,u,f){u.forEach(function(o){D(l,o)}),l.postMessage({event:"flush",data:f})}function p(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"isPromise",function(){return _}),M.d($,"TransmuxConfig",function(){return S}),M.d($,"TransmuxState",function(){return L});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/crypt/decrypter.ts"),G=M("./src/demux/aacdemuxer.ts"),W=M("./src/demux/mp4demuxer.ts"),i=M("./src/demux/tsdemuxer.ts"),D=M("./src/demux/mp3demuxer.ts"),g=M("./src/remux/mp4-remuxer.ts"),m=M("./src/remux/passthrough-remuxer.ts"),p=M("./src/demux/chunk-cache.ts"),l=M("./src/utils/mp4-tools.ts"),u=M("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var o=[{demux:i.default,remux:g.default},{demux:W.default,remux:m.default},{demux:G.default,remux:g.default},{demux:D.default,remux:g.default}],h=1024;o.forEach(function(R){var C=R.demux;h=Math.max(h,C.minProbeByteLength)});var s=function(){function R(w,x,c,T,y){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 p.default,this.observer=w,this.typeSupported=x,this.config=c,this.vendor=T,this.id=y}var C=R.prototype;return C.configure=function(x){this.transmuxConfig=x,this.decrypter&&this.decrypter.reset()},C.push=function(x,c,T,y){var v=this,N=T.transmuxing;N.executeStart=f();var B=new Uint8Array(x),O=this.cache,j=this.config,P=this.currentTransmuxState,b=this.transmuxConfig;y&&(this.currentTransmuxState=y);var Y=a(B,c);if(Y&&Y.method==="AES-128"){var ee=this.getDecrypter();if(j.enableSoftwareAES){var le=ee.softwareDecrypt(B,Y.key.buffer,Y.iv.buffer);if(!le)return N.executeEnd=f(),A(T);B=new Uint8Array(le)}else return this.decryptionPromise=ee.webCryptoDecrypt(B,Y.key.buffer,Y.iv.buffer).then(function(Be){var Ge=v.push(Be,null,T);return v.decryptionPromise=null,Ge}),this.decryptionPromise}var ue=y||P,ke=ue.contiguous,Se=ue.discontinuity,Ce=ue.trackSwitch,ce=ue.accurateTimeOffset,pe=ue.timeOffset,se=b.audioCodec,ae=b.videoCodec,Oe=b.defaultInitPts,Te=b.duration,Ne=b.initSegmentData;if((Se||Ce)&&this.resetInitSegment(Ne,se,ae,Te),Se&&this.resetInitialTimestamp(Oe),ke||this.resetContiguity(),this.needsProbing(B,Se,Ce)){if(O.dataLength){var De=O.flush();B=Object(l.appendUint8Array)(De,B)}this.configureTransmuxer(B,b)}var We=this.transmux(B,Y,pe,ce,T),Le=this.currentTransmuxState;return Le.contiguous=!0,Le.discontinuity=!1,Le.trackSwitch=!1,N.executeEnd=f(),We},C.flush=function(x){var c=this,T=x.transmuxing;T.executeStart=f();var y=this.decrypter,v=this.cache,N=this.currentTransmuxState,B=this.decryptionPromise;if(B)return B.then(function(){return c.flush(x)});var O=[],j=N.timeOffset;if(y){var P=y.flush();P&&O.push(this.push(P,null,x))}var b=v.dataLength;v.reset();var Y=this.demuxer,ee=this.remuxer;if(!Y||!ee)return b>=h&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:F.ErrorTypes.MEDIA_ERROR,details:F.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[A(x)];var le=Y.flush(j);return _(le)?le.then(function(ue){return c.flushRemux(O,ue,x),O}):(this.flushRemux(O,le,x),O)},C.flushRemux=function(x,c,T){var y=c.audioTrack,v=c.avcTrack,N=c.id3Track,B=c.textTrack,O=this.currentTransmuxState,j=O.accurateTimeOffset,P=O.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var b=this.remuxer.remux(y,v,N,B,P,j,!0,this.id);x.push({remuxResult:b,chunkMeta:T}),T.transmuxing.executeEnd=f()},C.resetInitialTimestamp=function(x){var c=this.demuxer,T=this.remuxer;if(!c||!T)return;c.resetTimeStamp(x),T.resetTimeStamp(x)},C.resetContiguity=function(){var x=this.demuxer,c=this.remuxer;if(!x||!c)return;x.resetContiguity(),c.resetNextTimestamp()},C.resetInitSegment=function(x,c,T,y){var v=this.demuxer,N=this.remuxer;if(!v||!N)return;v.resetInitSegment(c,T,y),N.resetInitSegment(x,c,T)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(x,c,T,y,v){var N;return c&&c.method==="SAMPLE-AES"?N=this.transmuxSampleAes(x,c,T,y,v):N=this.transmuxUnencrypted(x,T,y,v),N},C.transmuxUnencrypted=function(x,c,T,y){var v=this.demuxer.demux(x,c,!1,!this.config.progressive),N=v.audioTrack,B=v.avcTrack,O=v.id3Track,j=v.textTrack,P=this.remuxer.remux(N,B,O,j,c,T,!1,this.id);return{remuxResult:P,chunkMeta:y}},C.transmuxSampleAes=function(x,c,T,y,v){var N=this;return this.demuxer.demuxSampleAes(x,c,T).then(function(B){var O=N.remuxer.remux(B.audioTrack,B.avcTrack,B.id3Track,B.textTrack,T,y,!1,N.id);return{remuxResult:O,chunkMeta:v}})},C.configureTransmuxer=function(x,c){for(var T=this.config,y=this.observer,v=this.typeSupported,N=this.vendor,B=c.audioCodec,O=c.defaultInitPts,j=c.duration,P=c.initSegmentData,b=c.videoCodec,Y,ee=0,le=o.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(w=C),w}var A=function(C){return{remuxResult:{},chunkMeta:C}};function _(R){return"then"in R&&R.then instanceof Function}var S=function(C,w,x,c,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=w,this.initSegmentData=x,this.duration=c,this.defaultInitPts=T},L=function(C,w,x,c,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=w,this.accurateTimeOffset=x,this.trackSwitch=c,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"discardEPB",function(){return A});var X=M("./src/demux/adts.ts"),F=M("./src/demux/mpegaudio.ts"),U=M("./src/demux/exp-golomb.ts"),G=M("./src/demux/id3.ts"),W=M("./src/demux/sample-aes.ts"),i=M("./src/events.ts"),D=M("./src/utils/mp4-tools.ts"),g=M("./src/utils/logger.ts"),m=M("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},l=function(){function _(L,R,C){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=L,this.config=R,this.typeSupported=C}_.probe=function(R){var C=_.syncOffset(R);return C<0?!1:(C&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},_.syncOffset=function(R){for(var C=Math.min(1e3,R.length-3*188),w=0;w>4,se=void 0;if(pe>1){if(se=Se+5+R[Se+4],se===Se+188)continue}else se=Se+4;switch(ce){case N:Ce&&(B&&(c=h(B))&&this.parseAVCPES(c,!1),B={data:[],size:0}),B&&(B.data.push(R.subarray(se,Se+188)),B.size+=Se+188-se);break;case O:Ce&&(P&&(c=h(P))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),P={data:[],size:0}),P&&(P.data.push(R.subarray(se,Se+188)),P.size+=Se+188-se);break;case j:Ce&&(b&&(c=h(b))&&this.parseID3PES(c),b={data:[],size:0}),b&&(b.data.push(R.subarray(se,Se+188)),b.size+=Se+188-se);break;case 0:Ce&&(se+=R[se]+1),le=this._pmtId=f(R,se);break;case le:{Ce&&(se+=R[se]+1);var ae=o(R,se,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,w);N=ae.avc,N>0&&(T.pid=N),O=ae.audio,O>0&&(y.pid=O,y.isAAC=ae.isAAC),j=ae.id3,j>0&&(v.pid=j),Y&&!ee&&(g.logger.log("reparse from beginning"),Y=!1,Se=ke-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=B,y.pesData=P,v.pesData=b;var Oe={audioTrack:y,avcTrack:T,id3Track:v,textTrack:this._txtTrack};return x&&this.extractRemainingSamples(Oe),Oe},S.flush=function(){var R=this.remainderData;this.remainderData=null;var C;return R?C=this.demux(R,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},S.extractRemainingSamples=function(R){var C=R.audioTrack,w=R.avcTrack,x=R.id3Track,c=w.pesData,T=C.pesData,y=x.pesData,v;c&&(v=h(c))?(this.parseAVCPES(v,!0),w.pesData=null):w.pesData=c,T&&(v=h(T))?(C.isAAC?this.parseAACPES(v):this.parseMPEGPES(v),C.pesData=null):(T!=null&&T.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=T),y&&(v=h(y))?(this.parseID3PES(v),x.pesData=null):x.pesData=y},S.demuxSampleAes=function(R,C,w){var x=this.demux(R,w,!0,!this.config.progressive),c=this.sampleAes=new W.default(this.observer,this.config,C);return this.decrypt(x,c)},S.decrypt=function(R,C){return new Promise(function(w){var x=R.audioTrack,c=R.avcTrack;x.samples&&x.isAAC?C.decryptAacSamples(x.samples,0,function(){c.samples?C.decryptAvcSamples(c.samples,0,0,function(){w(R)}):w(R)}):c.samples&&C.decryptAvcSamples(c.samples,0,0,function(){w(R)})})},S.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},S.parseAVCPES=function(R,C){var w=this,x=this._avcTrack,c=this.parseAVCNALu(R.data),T=!1,y=this.avcSample,v,N=!1;R.data=null,y&&c.length&&!x.audFound&&(s(y,x),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(B){switch(B.type){case 1:{v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="NDR "),y.frame=!0;var O=B.data;if(N&&O.length>4){var j=new U.default(O).readSliceType();(j===2||j===4||j===7||j===9)&&(y.key=!0)}break}case 5:v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{v=!0,T&&y&&(y.debug+="SEI ");var P=new U.default(A(B.data));P.readUByte();for(var b=0,Y=0,ee=!1,le=0;!ee&&P.bytesAvailable>1;){b=0;do le=P.readUByte(),b+=le;while(le===255);Y=0;do le=P.readUByte(),Y+=le;while(le===255);if(b===4&&P.bytesAvailable!==0){ee=!0;var ue=P.readUByte();if(ue===181){var ke=P.readUShort();if(ke===49){var Se=P.readUInt();if(Se===1195456820){var Ce=P.readUByte();if(Ce===3){for(var ce=P.readUByte(),pe=P.readUByte(),se=31&ce,ae=[ce,pe],Oe=0;Oe16){for(var Te=[],Ne=0;Ne<16;Ne++)Te.push(P.readUByte().toString(16)),(Ne===3||Ne===5||Ne===7||Ne===9)&&Te.push("-");for(var De=Y-16,We=new Uint8Array(De),Le=0;Le=0){var P={data:R.subarray(O,y-x-1),type:j};T.push(P)}else{var b=this.getLastNalUnit();if(b&&(c&&y<=4-c&&(b.state&&(b.data=b.data.subarray(0,b.data.byteLength-c))),N=y-x-1,N>0)){var Y=new Uint8Array(b.data.byteLength+N);Y.set(b.data,0),Y.set(R.subarray(0,N),b.data.byteLength),b.data=Y,b.state=0}}y=0&&x>=0){var ee={data:R.subarray(O,C),type:j,state:x};T.push(ee)}if(T.length===0){var le=this.getLastNalUnit();if(le){var ue=new Uint8Array(le.data.byteLength+R.byteLength);ue.set(le.data,0),ue.set(R,le.data.byteLength),le.data=ue}}return w.naluState=x,T},S.parseAACPES=function(R){var C=0,w=this._audioTrack,x=this.aacOverFlow,c=R.data;if(x){this.aacOverFlow=null;var T=x.sample.unit.byteLength,y=Math.min(x.missing,T),v=T-y;x.sample.unit.set(c.subarray(0,y),v),w.samples.push(x.sample),C=x.missing}var N,B;for(N=C,B=c.length;N1;){var T=new Uint8Array(c[0].length+c[1].length);T.set(c[0]),T.set(c[1],c[0].length),c[0]=T,c.splice(1,1)}L=c[0];var y=(L[0]<<16)+(L[1]<<8)+L[2];if(y===1){if(R=(L[4]<<8)+L[5],R&&R>_.size-6)return null;var v=L[7];v&192&&(w=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,v&64?(x=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,w-x>60*9e4&&(g.logger.warn(Math.round((w-x)/9e4)+"s delta between PTS and DTS, align them"),w=x)):x=w),C=L[8];var N=C+9;if(_.size<=N)return null;_.size-=N;for(var B=new Uint8Array(_.size),O=0,j=c.length;OP){N-=P;continue}else L=L.subarray(N),P-=N,N=0;B.set(L,S),S+=P}return R&&(R-=C+3),{data:B,pts:w,dts:x,len:R}}return null}function s(_,S){if(_.units.length&&_.frame){if(_.pts===void 0){var L=S.samples,R=L.length;if(R){var C=L[R-1];_.pts=C.pts,_.dts=C.dts}else{S.dropped++;return}}S.samples.push(_)}_.debug.length&&g.logger.log(_.pts+"/"+_.dts+":"+_.debug)}function a(_,S){var L=_.length;if(L>0){if(S.pts>=_[L-1].pts)_.push(S);else for(var R=L-1;R>=0;R--)if(S.pts<_[R].pts){_.splice(R,0,S);break}}else _.push(S)}function A(_){for(var S=_.byteLength,L=[],R=1;Rw)return c;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,w=this.autoLevelCapping,x;return w===-1&&C&&C.length?x=C.length-1:x=w,x}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var w=this.audioTrackController;w&&(w.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var w=this.subtitleTrackController;w&&(w.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var w=this.subtitleTrackController;w&&(w.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{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 h.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return S.defaultConfig?S.defaultConfig:u.hlsDefaultConfig},set:function(C){S.defaultConfig=C}}]),S}();_.defaultConfig=void 0},"./src/is-supported.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isSupported",function(){return U}),M.d($,"changeTypeSupported",function(){return G});var X=M("./src/utils/mediasource-helper.ts");function F(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var W=Object(X.getMediaSource)();if(!W)return!1;var i=F(),D=W&&typeof W.isTypeSupported=="function"&&W.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),g=!i||i.prototype&&typeof i.prototype.appendBuffer=="function"&&typeof i.prototype.remove=="function";return!!D&&!!g}function G(){var W,i=F();return typeof(i==null||((W=i.prototype)===null||W===void 0)?void 0:W.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return l}),M.d($,"LoadError",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/errors.ts");function U(o,h){o.prototype=Object.create(h.prototype),o.prototype.constructor=o,g(o,h)}function G(o){var h=typeof Map=="function"?new Map:void 0;return G=function(a){if(a===null||!D(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(a))return h.get(a);h.set(a,A)}function A(){return W(a,arguments,m(this).constructor)}return A.prototype=Object.create(a.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g(A,a)},G(o)}function W(o,h,s){return i()?W=Reflect.construct:W=function(A,_,S){var L=[null];L.push.apply(L,_);var R=Function.bind.apply(A,L),C=new R;return S&&g(C,S.prototype),C},W.apply(null,arguments)}function i(){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(o){return!1}}function D(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function g(o,h){return g=Object.setPrototypeOf||function(a,A){return a.__proto__=A,a},g(o,h)}function m(o){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(o)}var p=Math.pow(2,17),l=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var h=o.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(a,A){var _=this,S=a.url;if(!S)return Promise.reject(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(S?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){_.loader&&_.loader.destroy();var c=_.loader=a.loader=R?new R(L):new C(L),T=u(a),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){_.resetLoader(a,c),w({frag:a,part:null,payload:N.data,networkDetails:j})},onError:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:N,networkDetails:O}))},onAbort:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:O}))},onTimeout:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:O}))},onProgress:function(N,B,O,j){A&&A({frag:a,part:null,payload:O,networkDetails:j})}})})},h.loadPart=function(a,A,_){var S=this;this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){S.loader&&S.loader.destroy();var c=S.loader=a.loader=R?new R(L):new C(L),T=u(a,A),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};A.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){S.resetLoader(a,c),S.updateStatsFromPart(a,A);var P={frag:a,part:A,payload:N.data,networkDetails:j};_(P),w(P)},onError:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:A,response:N,networkDetails:O}))},onAbort:function(N,B,O){a.stats.aborted=A.stats.aborted,S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:A,networkDetails:O}))},onTimeout:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:A,networkDetails:O}))}})})},h.updateStatsFromPart=function(a,A){var _=a.stats,S=A.stats,L=S.total;if(_.loaded+=S.loaded,L){var R=Math.round(a.duration/A.duration),C=Math.min(Math.round(_.loaded/L),R),w=R-C,x=w*Math.round(_.loaded/C);_.total=_.loaded+x}else _.total=Math.max(_.loaded,_.total);var c=_.loading,T=S.loading;c.start?c.first+=T.first-T.start:(c.start=T.start,c.first=T.first),c.end=T.end},h.resetLoader=function(a,A){a.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},o}();function u(o,h){h===void 0&&(h=null);var s=h||o,a={frag:o,part:h,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},A=s.byteRangeStartOffset,_=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(A)&&Object(X.isFiniteNumber)(_)&&(a.rangeStart=A,a.rangeEnd=_),a}var f=function(o){U(h,o);function h(s){for(var a,A=arguments.length,_=new Array(A>1?A-1:0),S=1;S>8*(15-L)&255;return S},a.setDecryptDataFromLevelKey=function(_,S){var L=_;return(_==null?void 0:_.method)==="AES-128"&&_.uri&&!_.iv&&(L=W.LevelKey.fromURI(_.uri),L.method=_.method,L.iv=this.createInitializationVector(S),L.keyFormat="identity"),L},a.setElementaryStreamInfo=function(_,S,L,R,C,w){w===void 0&&(w=!1);var x=this.elementaryStreams,c=x[_];if(!c){x[_]={startPTS:S,endPTS:L,startDTS:R,endDTS:C,partial:w};return}c.startPTS=Math.min(c.startPTS,S),c.endPTS=Math.max(c.endPTS,L),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,C)},a.clearElementaryStreamInfo=function(){var _=this.elementaryStreams;_[l.AUDIO]=null,_[l.VIDEO]=null,_[l.AUDIOVIDEO]=null},p(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var _=this.sn;typeof _!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&G.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),_=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,_)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(X.isFiniteNumber)(this.programDateTime))return null;var _=Object(X.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+_*1e3}},{key:"encrypted",get:function(){var _;return!!((_=this.decryptdata)!==null&&_!==void 0&&_.keyFormat&&this.decryptdata.uri)}}]),s}(u),o=function(h){D(s,h);function s(a,A,_,S,L){var R;R=h.call(this,_)||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 i.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=A,R.index=S;var C=a.enumeratedString("BYTERANGE");return C&&R.setByteRange(C,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return p(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 A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return G});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/utils/logger.ts"),G=function(){function W(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var i=W.prototype;return i._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},i._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},i.destroy=function(){this._unregisterListeners();for(var g in this.loaders){var m=this.loaders[g];m&&m.destroy()}this.loaders={}},i.onKeyLoading=function(g,m){var p=m.frag,l=p.type,u=this.loaders[l];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+l),u.abort()),!f){U.logger.warn("key uri is falsy");return}var h=o.loader,s=p.loader=this.loaders[l]=new h(o);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},A={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,A,_)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},i.loadsuccess=function(g,m,p){var l=p.frag;if(!l.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(g.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:l})},i.loaderror=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:g})},i.loadtimeout=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},W}()},"./src/loader/level-details.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelDetails",function(){return W});var X=M("./src/polyfills/number.ts");function F(i,D){for(var g=0;gm.endSN||p>0||p===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(i,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||G}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),i}()},"./src/loader/level-key.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelKey",function(){return W});var X=M("./node_modules/url-toolkit/src/url-toolkit.js"),F=M.n(X);function U(i,D){for(var g=0;g2){var x=w.shift()+".";return x+=parseInt(w.shift()).toString(16),x+=("000"+parseInt(w.shift()).toString(16)).substr(-4),x}return C},L.resolve=function(C,w){return F.buildAbsoluteURL(w,C,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(C,w){var x=[],c={},T=!1;p.lastIndex=0;for(var y;(y=p.exec(C))!=null;)if(y[1]){var v=new D.AttrList(y[1]),N={attrs:v,bitrate:v.decimalInteger("AVERAGE-BANDWIDTH")||v.decimalInteger("BANDWIDTH"),name:v.NAME,url:L.resolve(y[2],w)},B=v.decimalResolution("RESOLUTION");B&&(N.width=B.width,N.height=B.height),a((v.CODECS||"").split(/[ ,]+/).filter(function(j){return j}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=L.convertAVC1ToAVCOTI(N.videoCodec)),x.push(N)}else if(y[3]){var O=new D.AttrList(y[3]);O["DATA-ID"]&&(T=!0,c[O["DATA-ID"]]=O)}return{levels:x,sessionData:T?c:null}},L.parseMasterPlaylistMedia=function(C,w,x,c){c===void 0&&(c=[]);var T,y=[],v=0;for(l.lastIndex=0;(T=l.exec(C))!==null;){var N=new D.AttrList(T[1]);if(N.TYPE===x){var B={attrs:N,bitrate:0,id:v++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:x,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?L.resolve(N.URI,w):""};if(c.length){var O=L.findGroup(c,B.groupId)||c[0];A(B,O,"audioCodec"),A(B,O,"textCodec")}y.push(B)}}return y},L.parseLevelPlaylist=function(C,w,x,c,T){var y=new W.LevelDetails(w),v=y.fragments,N=null,B=0,O=0,j=0,P=0,b=null,Y=new G.Fragment(c,w),ee,le,ue,ke=-1,Se=!1;for(u.lastIndex=0,y.m3u8=C;(ee=u.exec(C))!==null;){Se&&(Se=!1,Y=new G.Fragment(c,w),Y.start=j,Y.sn=B,Y.cc=P,Y.level=x,N&&(Y.initSegment=N,Y.rawProgramDateTime=N.rawProgramDateTime));var Ce=ee[1];if(Ce){Y.duration=parseFloat(Ce);var ce=(" "+ee[2]).slice(1);Y.title=ce||null,Y.tagList.push(ce?["INF",Ce,ce]:["INF",Ce])}else if(ee[3])Object(X.isFiniteNumber)(Y.duration)&&(Y.start=j,ue&&(Y.levelkey=ue),Y.sn=B,Y.level=x,Y.cc=P,Y.urlId=T,v.push(Y),Y.relurl=(" "+ee[3]).slice(1),S(Y,b),b=Y,j+=Y.duration,B++,O=0,Se=!0);else if(ee[4]){var pe=(" "+ee[4]).slice(1);b?Y.setByteRange(pe,b):Y.setByteRange(pe)}else if(ee[5])Y.rawProgramDateTime=(" "+ee[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ke===-1&&(ke=v.length);else{if(ee=ee[0].match(f),!ee){g.logger.warn("No matches on slow regex match for level playlist!");continue}for(le=1;le-1){g.logger.warn("Keyformat "+Ue+" is not supported from the manifest");continue}else if(Ue!=="identity")continue;Ge&&(ue=i.LevelKey.fromURL(w,oe),oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Ge)>=0&&(ue.method=Ge,ue.keyFormat=Ue,Ae&&(ue.keyID=Ae),we&&(ue.keyFormatVersions=we),ue.iv=ye));break}case"START":{var Ze=new D.AttrList(ae),$e=Ze.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)($e)&&(y.startTimeOffset=$e);break}case"MAP":{var tt=new D.AttrList(ae);Y.relurl=tt.URI,tt.BYTERANGE&&Y.setByteRange(tt.BYTERANGE),Y.level=x,Y.sn="initSegment",ue&&(Y.levelkey=ue),Y.initSegment=null,N=Y,Se=!0;break}case"SERVER-CONTROL":{var et=new D.AttrList(ae);y.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),y.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Je=new D.AttrList(ae);y.partTarget=Je.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Me=y.partList;Me||(Me=y.partList=[]);var ut=O>0?Me[Me.length-1]:void 0,rt=O++,Fe=new G.Part(new D.AttrList(ae),Y,w,rt,ut);Me.push(Fe),Y.duration+=Fe.duration;break}case"PRELOAD-HINT":{var je=new D.AttrList(ae);y.preloadHint=je;break}case"RENDITION-REPORT":{var Ee=new D.AttrList(ae);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ee);break}default:g.logger.warn("line parsed but not handled: "+ee);break}}}b&&!b.relurl?(v.pop(),j-=b.duration,y.partList&&(y.fragmentHint=b)):y.partList&&(S(Y,b),Y.cc=P,y.fragmentHint=Y);var ge=v.length,_e=v[0],re=v[ge-1];if(j+=y.skippedSegments*y.targetduration,j>0&&ge&&re){y.averagetargetduration=j/ge;var ne=re.sn;y.endSN=ne!=="initSegment"?ne:0,_e&&(y.startCC=_e.cc,_e.initSegment||y.fragments.every(function(he){return he.relurl&&h(he.relurl)})&&(g.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new G.Fragment(c,w),Y.relurl=re.relurl,Y.level=x,Y.sn="initSegment",_e.initSegment=Y,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(j+=y.fragmentHint.duration),y.totalduration=j,y.endCC=P,ke>0&&_(v,ke),y},L}();function a(L,R){["video","audio","text"].forEach(function(C){var w=L.filter(function(c){return Object(m.isCodecType)(c,C)});if(w.length){var x=w.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[C+"Codec"]=x.length>0?x[0]:w[0],L=L.filter(function(c){return w.indexOf(c)===-1})}}),R.unknownCodecs=L}function A(L,R,C){var w=R[C];w&&(L[C]=w)}function _(L,R){for(var C=L[R],w=R;w--;){var x=L[w];if(!x)return;x.programDateTime=C.programDateTime-x.duration*1e3,C=x}}function S(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/polyfills/number.ts"),F=M("./src/events.ts"),U=M("./src/errors.ts"),G=M("./src/utils/logger.ts"),W=M("./src/utils/mp4-tools.ts"),i=M("./src/loader/m3u8-parser.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function p(u,f){var o=u.url;return(o===void 0||o.indexOf("data:")===0)&&(o=f.url),o}var l=function(){function u(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var h=this.hls;h.on(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var h=this.hls;h.off(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(h){var s=this.hls.config,a=s.pLoader,A=s.loader,_=a||A,S=new _(s);return h.loader=S,this.loaders[h.type]=S,S},f.getInternalLoader=function(h){return this.loaders[h.type]},f.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},f.destroyInternalLoaders=function(){for(var h in this.loaders){var s=this.loaders[h];s&&s.destroy(),this.resetInternalLoader(h)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(h,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(h,s){var a=s.id,A=s.level,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:null,level:A,responseType:"text",type:D.PlaylistContextType.LEVEL,url:_,deliveryDirectives:S})},f.onAudioTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:_,deliveryDirectives:S})},f.onSubtitleTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:_,deliveryDirectives:S})},f.load=function(h){var s,a=this.hls.config,A=this.getInternalLoader(h);if(A){var _=A.context;if(_&&_.url===h.url){G.logger.trace("[playlist-loader]: playlist request ongoing");return}G.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),A.abort()}var S,L,R,C;switch(h.type){case D.PlaylistContextType.MANIFEST:S=a.manifestLoadingMaxRetry,L=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,C=a.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:S=0,L=a.levelLoadingTimeOut;break;default:S=a.levelLoadingMaxRetry,L=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,C=a.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(h),(s=h.deliveryDirectives)!==null&&s!==void 0&&s.part){var w;if(h.type===D.PlaylistContextType.LEVEL&&h.level!==null?w=this.hls.levels[h.level].details:h.type===D.PlaylistContextType.AUDIO_TRACK&&h.id!==null?w=this.hls.audioTracks[h.id].details:h.type===D.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(w=this.hls.subtitleTracks[h.id].details),w){var x=w.partTarget,c=w.targetduration;x&&c&&(L=Math.min(Math.max(x*3,c*.8)*1e3,L))}}var T={timeout:L,maxRetry:S,retryDelay:R,maxRetryDelay:C,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(h,T,y)},f.loadsuccess=function(h,s,a,A){if(A===void 0&&(A=null),a.isSidxRequest){this.handleSidxRequest(h,a),this.handlePlaylistLoaded(h,s,a,A);return}this.resetInternalLoader(a.type);var _=h.data;if(_.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,a,"no EXTM3U delimiter",A);return}s.parsing.start=performance.now(),_.indexOf("#EXTINF:")>0||_.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,s,a,A):this.handleMasterPlaylist(h,s,a,A)},f.loaderror=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,h)},f.loadtimeout=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(h,s,a,A){var _=this.hls,S=h.data,L=p(h,a),R=i.default.parseMasterPlaylist(S,L),C=R.levels,w=R.sessionData;if(!C.length){this.handleManifestParsingError(h,a,"no level found in manifest",A);return}var x=C.map(function(B){return{id:B.attrs.AUDIO,audioCodec:B.audioCodec}}),c=C.map(function(B){return{id:B.attrs.SUBTITLES,textCodec:B.textCodec}}),T=i.default.parseMasterPlaylistMedia(S,L,"AUDIO",x),y=i.default.parseMasterPlaylistMedia(S,L,"SUBTITLES",c),v=i.default.parseMasterPlaylistMedia(S,L,"CLOSED-CAPTIONS");if(T.length){var N=T.some(function(B){return!B.url});!N&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(G.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new g.AttrList({}),bitrate:0,url:""}))}_.trigger(F.Events.MANIFEST_LOADED,{levels:C,audioTracks:T,subtitles:y,captions:v,url:L,stats:s,networkDetails:A,sessionData:w})},f.handleTrackOrLevelPlaylist=function(h,s,a,A){var _=this.hls,S=a.id,L=a.level,R=a.type,C=p(h,a),w=Object(X.isFiniteNumber)(S)?S:0,x=Object(X.isFiniteNumber)(L)?L:w,c=m(a),T=i.default.parseLevelPlaylist(h.data,C,x,c,w);if(!T.fragments.length){_.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===D.PlaylistContextType.MANIFEST){var y={attrs:new g.AttrList({}),bitrate:0,details:T,name:"",url:C};_.trigger(F.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:C,stats:s,networkDetails:A,sessionData:null})}if(s.parsing.end=performance.now(),T.needSidxRanges){var v,N=(v=T.fragments[0].initSegment)===null||v===void 0?void 0:v.url;this.load({url:N,isSidxRequest:!0,type:R,level:L,levelDetails:T,id:S,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=T,this.handlePlaylistLoaded(h,s,a,A)},f.handleSidxRequest=function(h,s){var a=Object(W.parseSegmentIndex)(new Uint8Array(h.data));if(!a)return;var A=a.references,_=s.levelDetails;A.forEach(function(S,L){var R=S.info,C=_.fragments[L];C.byteRange.length===0&&C.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),C.initSegment&&C.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(h,s,a,A){this.hls.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===D.PlaylistContextType.MANIFEST,url:h.url,reason:a,response:h,context:s,networkDetails:A})},f.handleNetworkError=function(h,s,a,A){a===void 0&&(a=!1),G.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var _=U.ErrorDetails.UNKNOWN,S=!1,L=this.getInternalLoader(h);switch(h.type){case D.PlaylistContextType.MANIFEST:_=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,S=!0;break;case D.PlaylistContextType.LEVEL:_=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.AUDIO_TRACK:_=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:_=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,S=!1;break}L&&this.resetInternalLoader(h.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:_,fatal:S,url:h.url,loader:L,context:h,networkDetails:s};A&&(R.response=A),this.hls.trigger(F.Events.ERROR,R)},f.handlePlaylistLoaded=function(h,s,a,A){var _=a.type,S=a.level,L=a.id,R=a.groupId,C=a.loader,w=a.levelDetails,x=a.deliveryDirectives;if(!(w!=null&&w.targetduration)){this.handleManifestParsingError(h,a,"invalid target duration",A);return}if(!C)return;w.live&&(C.getCacheAge&&(w.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(w.ageHeader))&&(w.ageHeader=0));switch(_){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(F.Events.LEVEL_LOADED,{details:w,level:S||0,id:L||0,stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(F.Events.AUDIO_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(F.Events.SUBTITLE_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break}},u}();$.default=l},"./src/polyfills/number.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isFiniteNumber",function(){return X}),M.d($,"MAX_SAFE_INTEGER",function(){return F});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},F=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(){}return F.getSilentFrame=function(G,W){switch(G){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===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(W===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(W===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(W===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(W===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},F}();$.default=X},"./src/remux/mp4-generator.ts":function(ie,$,M){"use strict";M.r($);var X=Math.pow(2,32)-1,F=function(){function U(){}return U.init=function(){U.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 W;for(W in U.types)U.types.hasOwnProperty(W)&&(U.types[W]=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)]);var i=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]),D=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]);U.HDLR_TYPES={video:i,audio:D};var g=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,l),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,g))},U.box=function(W){for(var i=8,D=arguments.length,g=new Array(D>1?D-1:0),m=1;m>24&255,u[1]=i>>16&255,u[2]=i>>8&255,u[3]=i&255,u.set(W,4),p=0,i=8;p>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&255,85,196,0,0]))},U.mdia=function(W){return U.box(U.types.mdia,U.mdhd(W.timescale,W.duration),U.hdlr(W.type),U.minf(W))},U.mfhd=function(W){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255]))},U.minf=function(W){return W.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(W)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(W))},U.moof=function(W,i,D){return U.box(U.types.moof,U.mfhd(W),U.traf(D,i))},U.moov=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trak(W[i]);return U.box.apply(null,[U.types.moov,U.mvhd(W[0].timescale,W[0].duration)].concat(D).concat(U.mvex(W)))},U.mvex=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trex(W[i]);return U.box.apply(null,[U.types.mvex].concat(D))},U.mvhd=function(W,i){i*=W;var D=Math.floor(i/(X+1)),g=Math.floor(i%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&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 U.box(U.types.mvhd,m)},U.sdtp=function(W){var i=W.samples||[],D=new Uint8Array(4+i.length),g,m;for(g=0;g>>8&255),i.push(p&255),i=i.concat(Array.prototype.slice.call(m));for(g=0;g>>8&255),D.push(p&255),D=D.concat(Array.prototype.slice.call(m));var l=U.box(U.types.avcC,new Uint8Array([1,i[3],i[4],i[5],252|3,224|W.sps.length].concat(i).concat([W.pps.length]).concat(D))),u=W.width,f=W.height,o=W.pixelRatio[0],h=W.pixelRatio[1];return U.box(U.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,u>>8&255,u&255,f>>8&255,f&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]),l,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,h>>24,h>>16&255,h>>8&255,h&255])))},U.esds=function(W){var i=W.config.length;return new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(W.config).concat([6,1,2]))},U.mp4a=function(W){var i=W.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]),U.box(U.types.esds,U.esds(W)))},U.mp3=function(W){var i=W.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]))},U.stsd=function(W){return W.type==="audio"?!W.isAAC&&W.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(W)):U.box(U.types.stsd,U.STSD,U.mp4a(W)):U.box(U.types.stsd,U.STSD,U.avc1(W))},U.tkhd=function(W){var i=W.id,D=W.duration*W.timescale,g=W.width,m=W.height,p=Math.floor(D/(X+1)),l=Math.floor(D%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,l>>24,l>>16&255,l>>8&255,l&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,g>>8&255,g&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(W,i){var D=U.sdtp(W),g=W.id,m=Math.floor(i/(X+1)),p=Math.floor(i%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(W,D.length+16+20+8+16+8+8),D)},U.trak=function(W){return W.duration=W.duration||4294967295,U.box(U.types.trak,U.tkhd(W),U.mdia(W))},U.trex=function(W){var i=W.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(W,i){var D=W.samples||[],g=D.length,m=12+16*g,p=new Uint8Array(m),l,u,f,o,h,s;for(i+=8+m,p.set([0,0,15,1,g>>>24&255,g>>>16&255,g>>>8&255,g&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255],0),l=0;l>>24&255,f>>>16&255,f>>>8&255,f&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*l);return U.box(U.types.trun,p)},U.initSegment=function(W){U.types||U.init();var i=U.moov(W),D=new Uint8Array(U.FTYP.byteLength+i.byteLength);return D.set(U.FTYP),D.set(i,U.FTYP.byteLength),D},U}();F.types=void 0,F.HDLR_TYPES=void 0,F.STTS=void 0,F.STSC=void 0,F.STCO=void 0,F.STSZ=void 0,F.VMHD=void 0,F.SMHD=void 0,F.STSD=void 0,F.FTYP=void 0,F.DINF=void 0,$.default=F},"./src/remux/mp4-remuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"normalizePts",function(){return a});var X=M("./src/polyfills/number.ts"),F=M("./src/remux/aac-helper.ts"),U=M("./src/remux/mp4-generator.ts"),G=M("./src/events.ts"),W=M("./src/errors.ts"),i=M("./src/utils/logger.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(L){for(var R=1;R0?T:y.pts},w[0].pts);return x&&i.logger.debug("PTS rollover detected"),c},R.remux=function(w,x,c,T,y,v,N,B){var O,j,P,b,Y,ee,le=y,ue=y,ke=w.pid>-1,Se=x.pid>-1,Ce=x.samples.length,ce=w.samples.length>0,pe=Ce>1,se=(!ke||ce)&&(!Se||pe)||this.ISGenerated||N;if(se){this.ISGenerated||(P=this.generateIS(w,x,y));var ae=this.isVideoContiguous,Oe=-1;if(pe&&(Oe=A(x.samples),!ae&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,Oe>0){i.logger.warn("[mp4-remuxer]: Dropped "+Oe+" out of "+Ce+" video samples due to a missing keyframe");var Te=this.getVideoStartPts(x.samples);x.samples=x.samples.slice(Oe),x.dropped+=Oe,ue+=(x.samples[0].pts-Te)/(x.timescale||9e4)}else Oe===-1&&(i.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ce+" video samples"),ee=!1);if(this.ISGenerated){if(ce&&pe){var Ne=this.getVideoStartPts(x.samples),De=a(w.samples[0].pts,Ne)-Ne,We=De/x.inputTimeScale;le+=Math.max(0,We),ue+=Math.max(0,-We)}if(ce){if(w.samplerate||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),P=this.generateIS(w,x,y)),j=this.remuxAudio(w,le,this.isAudioContiguous,v,Se||pe||B===D.PlaylistLevelType.AUDIO?ue:void 0),pe){var Le=j?j.endPTS-j.startPTS:0;x.inputTimeScale||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),P=this.generateIS(w,x,y)),O=this.remuxVideo(x,ue,ae,Le)}}else pe&&(O=this.remuxVideo(x,ue,ae,0));O&&(O.firstKeyFrame=Oe,O.independent=Oe!==-1)}}return this.ISGenerated&&(c.samples.length&&(Y=this.remuxID3(c,y)),T.samples.length&&(b=this.remuxText(T,y))),{audio:j,video:O,initSegment:P,independent:ee,text:b,id3:Y}},R.generateIS=function(w,x,c){var T=w.samples,y=x.samples,v=this.typeSupported,N={},B=!Object(X.isFiniteNumber)(this._initPTS),O="audio/mp4",j,P,b;if(B&&(j=P=Infinity),w.config&&T.length&&(w.timescale=w.samplerate,w.isAAC||(v.mpeg?(O="audio/mpeg",w.codec=""):v.mp3&&(w.codec="mp3")),N.audio={id:"audio",container:O,codec:w.codec,initSegment:!w.isAAC&&v.mpeg?new Uint8Array(0):U.default.initSegment([w]),metadata:{channelCount:w.channelCount}},B&&(b=w.inputTimeScale,j=P=T[0].pts-Math.round(b*c))),x.sps&&x.pps&&y.length&&(x.timescale=x.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:x.codec,initSegment:U.default.initSegment([x]),metadata:{width:x.width,height:x.height}},B)){b=x.inputTimeScale;var Y=this.getVideoStartPts(y),ee=Math.round(b*c);P=Math.min(P,a(y[0].dts,Y)-ee),j=Math.min(j,Y-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,B&&(this._initPTS=j,this._initDTS=P),{tracks:N,initPTS:j,timescale:b}},R.remuxVideo=function(w,x,c,T){var y=w.inputTimeScale,v=w.samples,N=[],B=v.length,O=this._initPTS,j=this.nextAvcDts,P=8,b,Y,ee,le=Number.POSITIVE_INFINITY,ue=Number.NEGATIVE_INFINITY,ke=0,Se=!1;if(!c||j===null){var Ce=x*y,ce=v[0].pts-a(v[0].dts,v[0].pts);j=Ce-ce}for(var pe=0;pese.pts){var ae=9e4*.2;ke=Math.max(Math.min(ke,se.pts-se.dts),-1*ae)}se.dts0?pe-1:pe].dts&&(Se=!0)}Se&&v.sort(function(wt,St){var dt=wt.dts-St.dts,Ut=wt.pts-St.pts;return dt||Ut}),Y=v[0].dts,ee=v[v.length-1].dts;var Oe=Math.round((ee-Y)/(B-1));if(ke<0){if(keOe,Be=We<-1;if(Le||Be){Le?i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms ("+We+"dts) hole between fragments detected, filling it"):i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(-We,!0)+" ms ("+We+"dts) overlapping between fragments detected"),Y=j;var Ge=v[0].pts-We;v[0].dts=Y,v[0].pts=Ge,i.logger.log("Video: First PTS/DTS adjusted: "+Object(g.toMsFromMpegTsClock)(Ge,!0)+"/"+Object(g.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms")}}h&&(Y=Math.max(0,Y));for(var oe=0,ye=0,we=0;we0?Me-1:Me].dts;if(ne.stretchShortVideoTrack&&this.nextAudioPts!==null){var fe=Math.floor(ne.maxBufferHole*y),xe=(T?le+T*y:this.nextAudioPts)-ut.pts;xe>fe?(b=xe-he,b<0&&(b=he),i.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+b/90+" ms for the last video frame.")):b=he}else b=he}var Pe=Math.round(ut.pts-ut.dts);N.push(new _(ut.key,b,Fe,Pe))}if(N.length&&f&&f<70){var ze=N[0].flags;ze.dependsOn=2,ze.isNonSync=0}console.assert(b!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=j=ee+b,this.isVideoContiguous=!0;var ot=U.default.moof(w.sequenceNumber++,Y,m({},w,{samples:N})),mt="video",ft={data1:ot,data2:et,startPTS:le/y,endPTS:(ue+b)/y,startDTS:Y/y,endDTS:j/y,type:mt,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:w.dropped};return w.samples=[],w.dropped=0,console.assert(et.length,"MDAT length must not be zero"),ft},R.remuxAudio=function(w,x,c,T,y){var v=w.inputTimeScale,N=w.samplerate?w.samplerate:v,B=v/N,O=w.isAAC?l:u,j=O*B,P=this._initPTS,b=!w.isAAC&&this.typeSupported.mpeg,Y=[],ee=w.samples,le=b?0:8,ue=this.nextAudioPts||-1,ke=x*v;if(this.isAudioContiguous=c=c||ee.length&&ue>0&&(T&&Math.abs(ke-ue)<9e3||Math.abs(a(ee[0].pts-P,ke)-ue)<20*j),ee.forEach(function(_e){_e.pts=a(_e.pts-P,ke)}),!c||ue<0){if(ee=ee.filter(function(_e){return _e.pts>=0}),!ee.length)return;y===0?ue=0:T?ue=Math.max(0,ke):ue=ee[0].pts}if(w.isAAC)for(var Se=y!==void 0,Ce=this.config.maxAudioFramesDrift,ce=0,pe=ue;ce=Ce*j&&Te0){ye+=le;try{oe=new Uint8Array(ye)}catch(_e){this.observer.emit(G.Events.ERROR,G.Events.ERROR,{type:W.ErrorTypes.MUX_ERROR,details:W.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ye,reason:"fail allocating audio mdat "+ye});return}if(!b){var et=new DataView(oe.buffer);et.setUint32(0,ye),oe.set(U.default.types.mdat,4)}}else return;oe.set(Ze,le);var Je=Ze.byteLength;le+=Je,Y.push(new _(!0,O,Je,0)),Ge=$e}var Me=Y.length;if(!Me)return;var ut=Y[Y.length-1];this.nextAudioPts=ue=Ge+B*ut.duration;var rt=b?new Uint8Array(0):U.default.moof(w.sequenceNumber++,Be/B,m({},w,{samples:Y}));w.samples=[];var Fe=Be/v,je=ue/v,Ee="audio",ge={data1:rt,data2:oe,startPTS:Fe,endPTS:je,startDTS:Fe,endDTS:je,type:Ee,hasAudio:!0,hasVideo:!1,nb:Me};return this.isAudioContiguous=!0,console.assert(oe.length,"MDAT length must not be zero"),ge},R.remuxEmptyAudio=function(w,x,c,T){var y=w.inputTimeScale,v=w.samplerate?w.samplerate:y,N=y/v,B=this.nextAudioPts,O=(B!==null?B:T.startDTS*y)+this._initDTS,j=T.endDTS*y+this._initDTS,P=N*l,b=Math.ceil((j-O)/P),Y=F.default.getSilentFrame(w.manifestCodec||w.codec,w.channelCount);if(i.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){i.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],le=0;le4294967296;)L+=C;return L}function A(L){for(var R=0;R0?this.lastEndDTS=w:(G.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var x=!!L.audio,c=!!L.video,T="";x&&(T+="audio"),c&&(T+="video");var y={data1:_,startPTS:C,startDTS:C,endPTS:w,endDTS:w,type:T,hasAudio:x,hasVideo:c,nb:1,dropped:0};return A.audio=y.type==="audio"?y:void 0,A.video=y.type!=="audio"?y:void 0,A.text=o,A.id3=f,A.initSegment=S,A},g}(),i=function(m,p,l){return Object(F.getStartDTS)(m,p)-l};function D(g,m){var p=g==null?void 0:g.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}$.default=W},"./src/task-loop.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return X});var X=function(){function F(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=F.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(W){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,W),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},F}()},"./src/types/cmcd.ts":function(ie,$,M){"use strict";M.r($),M.d($,"CMCDVersion",function(){return X}),M.d($,"CMCDObjectType",function(){return F}),M.d($,"CMCDStreamingFormat",function(){return U}),M.d($,"CMCDStreamType",function(){return G});var X=1,F;(function(W){W.MANIFEST="m",W.AUDIO="a",W.VIDEO="v",W.MUXED="av",W.INIT="i",W.CAPTION="c",W.TIMED_TEXT="tt",W.KEY="k",W.OTHER="o"})(F||(F={}));var U;(function(W){W.DASH="d",W.HLS="h",W.SMOOTH="s",W.OTHER="o"})(U||(U={}));var G;(function(W){W.VOD="v",W.LIVE="l"})(G||(G={}))},"./src/types/level.ts":function(ie,$,M){"use strict";M.r($),M.d($,"HlsSkip",function(){return U}),M.d($,"getSkipValue",function(){return G}),M.d($,"HlsUrlParameters",function(){return W}),M.d($,"Level",function(){return i});function X(D,g){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:g},W.hexadecimalInteger=function(D){if(this[D]){var g=(this[D]||"0x").slice(2);g=(g.length&1?"0":"")+g;for(var m=new Uint8Array(g.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:g},W.decimalFloatingPoint=function(D){return parseFloat(this[D])},W.optionalFloat=function(D,g){var m=this[D];return m?parseFloat(m):g},W.enumeratedString=function(D){return this[D]},W.bool=function(D){return this[D]==="YES"},W.decimalResolution=function(D){var g=X.exec(this[D]);return g===null?void 0:{width:parseInt(g[1],10),height:parseInt(g[2],10)}},G.parseAttrList=function(D){var g,m={},p='"';for(F.lastIndex=0;(g=F.exec(D))!==null;){var l=g[2];l.indexOf(p)===0&&l.lastIndexOf(p)===l.length-1&&(l=l.slice(1,-1)),m[g[1]]=l}return m},G}()},"./src/utils/binary-search.ts":function(ie,$,M){"use strict";M.r($);var X={search:function(U,G){for(var W=0,i=U.length-1,D=null,g=null;W<=i;){D=(W+i)/2|0,g=U[D];var m=G(g);if(m>0)W=D+1;else if(m<0)i=D-1;else return g}return null}};$.default=X},"./src/utils/buffer-helper.ts":function(ie,$,M){"use strict";M.r($),M.d($,"BufferHelper",function(){return U});var X=M("./src/utils/logger.ts"),F={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function G(){}return G.isBuffered=function(i,D){try{if(i){for(var g=G.getBuffered(i),m=0;m=g.start(m)&&D<=g.end(m))return!0}}catch(p){}return!1},G.bufferInfo=function(i,D,g){try{if(i){var m=G.getBuffered(i),p=[],l;for(l=0;lu&&(m[l-1].end=i[p].end):m.push(i[p])}else m.push(i[p])}else m=i;for(var f=0,o,h=D,s=D,a=0;a=A&&D<_)h=A,s=_,f=s-D;else if(D+g=c&&X.logger.log(this.time+" ["+c+"] "+T)},C}(),f=function(w){for(var x=[],c=0;cW&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=W)},w.moveCursor=function(c){var T=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var T=U(c);if(this.pos>=W){this.logger.log(l.ERROR,"Cannot insert "+c.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},w.clearFromPos=function(c){var T;for(T=c;T0&&(c?y="["+T.join(" | ")+"]":y=T.join(` + timeOffset: `+y);var le=new G.TransmuxConfig(a,A,s,L,w);this.configureTransmuxer(le)}if(this.frag=_,this.part=S,T)T.postMessage({cmd:"demux",data:h,decryptdata:v,chunkMeta:C,state:ee},h instanceof ArrayBuffer?[h]:[]);else if(c){var ue=c.push(h,v,C,ee);Object(G.isPromise)(ue)?ue.then(function(ke){x.handleTransmuxComplete(ke)}):this.handleTransmuxComplete(ue)}},f.flush=function(h){var s=this;h.transmuxing.start=self.performance.now();var a=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:h});else if(a){var _=a.flush(h);Object(G.isPromise)(_)?_.then(function(S){s.handleFlushResult(S,h)}):this.handleFlushResult(_,h)}},f.handleFlushResult=function(h,s){var a=this;h.forEach(function(A){a.handleTransmuxComplete(A)}),this.onFlush(s)},f.onWorkerMessage=function(h){var s=h.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(h){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:h}):a&&a.configure(h)},f.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return i});var X=M("./src/demux/transmuxer.ts"),F=M("./src/events.ts"),U=M("./src/utils/logger.ts"),G=M("./node_modules/eventemitter3/index.js"),W=M.n(G);function i(l){var u=new G.EventEmitter,f=function(h,s){l.postMessage({event:h,data:s})};u.on(F.Events.FRAG_DECRYPTED,f),u.on(F.Events.ERROR,f),l.addEventListener("message",function(o){var h=o.data;switch(h.cmd){case"init":{var s=JSON.parse(h.config);l.transmuxer=new X.default(u,h.typeSupported,s,h.vendor,h.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{l.transmuxer.configure(h.config);break}case"demux":{var a=l.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(X.isPromise)(a)?a.then(function(S){D(l,S)}):D(l,a);break}case"flush":{var A=h.chunkMeta,_=l.transmuxer.flush(A);Object(X.isPromise)(_)?_.then(function(S){m(l,S,A)}):m(l,_,A);break}default:break}})}function D(l,u){if(p(u.remuxResult))return;var f=[],o=u.remuxResult,h=o.audio,s=o.video;h&&g(f,h),s&&g(f,s),l.postMessage({event:"transmuxComplete",data:u},f)}function g(l,u){u.data1&&l.push(u.data1.buffer),u.data2&&l.push(u.data2.buffer)}function m(l,u,f){u.forEach(function(o){D(l,o)}),l.postMessage({event:"flush",data:f})}function p(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"isPromise",function(){return _}),M.d($,"TransmuxConfig",function(){return S}),M.d($,"TransmuxState",function(){return L});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/crypt/decrypter.ts"),G=M("./src/demux/aacdemuxer.ts"),W=M("./src/demux/mp4demuxer.ts"),i=M("./src/demux/tsdemuxer.ts"),D=M("./src/demux/mp3demuxer.ts"),g=M("./src/remux/mp4-remuxer.ts"),m=M("./src/remux/passthrough-remuxer.ts"),p=M("./src/demux/chunk-cache.ts"),l=M("./src/utils/mp4-tools.ts"),u=M("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var o=[{demux:i.default,remux:g.default},{demux:W.default,remux:m.default},{demux:G.default,remux:g.default},{demux:D.default,remux:g.default}],h=1024;o.forEach(function(R){var C=R.demux;h=Math.max(h,C.minProbeByteLength)});var s=function(){function R(w,x,c,T,y){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 p.default,this.observer=w,this.typeSupported=x,this.config=c,this.vendor=T,this.id=y}var C=R.prototype;return C.configure=function(x){this.transmuxConfig=x,this.decrypter&&this.decrypter.reset()},C.push=function(x,c,T,y){var v=this,N=T.transmuxing;N.executeStart=f();var B=new Uint8Array(x),O=this.cache,j=this.config,P=this.currentTransmuxState,b=this.transmuxConfig;y&&(this.currentTransmuxState=y);var Y=a(B,c);if(Y&&Y.method==="AES-128"){var ee=this.getDecrypter();if(j.enableSoftwareAES){var le=ee.softwareDecrypt(B,Y.key.buffer,Y.iv.buffer);if(!le)return N.executeEnd=f(),A(T);B=new Uint8Array(le)}else return this.decryptionPromise=ee.webCryptoDecrypt(B,Y.key.buffer,Y.iv.buffer).then(function(Be){var Ge=v.push(Be,null,T);return v.decryptionPromise=null,Ge}),this.decryptionPromise}var ue=y||P,ke=ue.contiguous,Se=ue.discontinuity,Ce=ue.trackSwitch,ce=ue.accurateTimeOffset,pe=ue.timeOffset,se=b.audioCodec,ae=b.videoCodec,Oe=b.defaultInitPts,Te=b.duration,Ne=b.initSegmentData;if((Se||Ce)&&this.resetInitSegment(Ne,se,ae,Te),Se&&this.resetInitialTimestamp(Oe),ke||this.resetContiguity(),this.needsProbing(B,Se,Ce)){if(O.dataLength){var De=O.flush();B=Object(l.appendUint8Array)(De,B)}this.configureTransmuxer(B,b)}var We=this.transmux(B,Y,pe,ce,T),Le=this.currentTransmuxState;return Le.contiguous=!0,Le.discontinuity=!1,Le.trackSwitch=!1,N.executeEnd=f(),We},C.flush=function(x){var c=this,T=x.transmuxing;T.executeStart=f();var y=this.decrypter,v=this.cache,N=this.currentTransmuxState,B=this.decryptionPromise;if(B)return B.then(function(){return c.flush(x)});var O=[],j=N.timeOffset;if(y){var P=y.flush();P&&O.push(this.push(P,null,x))}var b=v.dataLength;v.reset();var Y=this.demuxer,ee=this.remuxer;if(!Y||!ee)return b>=h&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:F.ErrorTypes.MEDIA_ERROR,details:F.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[A(x)];var le=Y.flush(j);return _(le)?le.then(function(ue){return c.flushRemux(O,ue,x),O}):(this.flushRemux(O,le,x),O)},C.flushRemux=function(x,c,T){var y=c.audioTrack,v=c.avcTrack,N=c.id3Track,B=c.textTrack,O=this.currentTransmuxState,j=O.accurateTimeOffset,P=O.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var b=this.remuxer.remux(y,v,N,B,P,j,!0,this.id);x.push({remuxResult:b,chunkMeta:T}),T.transmuxing.executeEnd=f()},C.resetInitialTimestamp=function(x){var c=this.demuxer,T=this.remuxer;if(!c||!T)return;c.resetTimeStamp(x),T.resetTimeStamp(x)},C.resetContiguity=function(){var x=this.demuxer,c=this.remuxer;if(!x||!c)return;x.resetContiguity(),c.resetNextTimestamp()},C.resetInitSegment=function(x,c,T,y){var v=this.demuxer,N=this.remuxer;if(!v||!N)return;v.resetInitSegment(c,T,y),N.resetInitSegment(x,c,T)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(x,c,T,y,v){var N;return c&&c.method==="SAMPLE-AES"?N=this.transmuxSampleAes(x,c,T,y,v):N=this.transmuxUnencrypted(x,T,y,v),N},C.transmuxUnencrypted=function(x,c,T,y){var v=this.demuxer.demux(x,c,!1,!this.config.progressive),N=v.audioTrack,B=v.avcTrack,O=v.id3Track,j=v.textTrack,P=this.remuxer.remux(N,B,O,j,c,T,!1,this.id);return{remuxResult:P,chunkMeta:y}},C.transmuxSampleAes=function(x,c,T,y,v){var N=this;return this.demuxer.demuxSampleAes(x,c,T).then(function(B){var O=N.remuxer.remux(B.audioTrack,B.avcTrack,B.id3Track,B.textTrack,T,y,!1,N.id);return{remuxResult:O,chunkMeta:v}})},C.configureTransmuxer=function(x,c){for(var T=this.config,y=this.observer,v=this.typeSupported,N=this.vendor,B=c.audioCodec,O=c.defaultInitPts,j=c.duration,P=c.initSegmentData,b=c.videoCodec,Y,ee=0,le=o.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(w=C),w}var A=function(C){return{remuxResult:{},chunkMeta:C}};function _(R){return"then"in R&&R.then instanceof Function}var S=function(C,w,x,c,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=w,this.initSegmentData=x,this.duration=c,this.defaultInitPts=T},L=function(C,w,x,c,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=w,this.accurateTimeOffset=x,this.trackSwitch=c,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"discardEPB",function(){return A});var X=M("./src/demux/adts.ts"),F=M("./src/demux/mpegaudio.ts"),U=M("./src/demux/exp-golomb.ts"),G=M("./src/demux/id3.ts"),W=M("./src/demux/sample-aes.ts"),i=M("./src/events.ts"),D=M("./src/utils/mp4-tools.ts"),g=M("./src/utils/logger.ts"),m=M("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},l=function(){function _(L,R,C){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=L,this.config=R,this.typeSupported=C}_.probe=function(R){var C=_.syncOffset(R);return C<0?!1:(C&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},_.syncOffset=function(R){for(var C=Math.min(1e3,R.length-3*188),w=0;w>4,se=void 0;if(pe>1){if(se=Se+5+R[Se+4],se===Se+188)continue}else se=Se+4;switch(ce){case N:Ce&&(B&&(c=h(B))&&this.parseAVCPES(c,!1),B={data:[],size:0}),B&&(B.data.push(R.subarray(se,Se+188)),B.size+=Se+188-se);break;case O:Ce&&(P&&(c=h(P))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),P={data:[],size:0}),P&&(P.data.push(R.subarray(se,Se+188)),P.size+=Se+188-se);break;case j:Ce&&(b&&(c=h(b))&&this.parseID3PES(c),b={data:[],size:0}),b&&(b.data.push(R.subarray(se,Se+188)),b.size+=Se+188-se);break;case 0:Ce&&(se+=R[se]+1),le=this._pmtId=f(R,se);break;case le:{Ce&&(se+=R[se]+1);var ae=o(R,se,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,w);N=ae.avc,N>0&&(T.pid=N),O=ae.audio,O>0&&(y.pid=O,y.isAAC=ae.isAAC),j=ae.id3,j>0&&(v.pid=j),Y&&!ee&&(g.logger.log("reparse from beginning"),Y=!1,Se=ke-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=B,y.pesData=P,v.pesData=b;var Oe={audioTrack:y,avcTrack:T,id3Track:v,textTrack:this._txtTrack};return x&&this.extractRemainingSamples(Oe),Oe},S.flush=function(){var R=this.remainderData;this.remainderData=null;var C;return R?C=this.demux(R,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},S.extractRemainingSamples=function(R){var C=R.audioTrack,w=R.avcTrack,x=R.id3Track,c=w.pesData,T=C.pesData,y=x.pesData,v;c&&(v=h(c))?(this.parseAVCPES(v,!0),w.pesData=null):w.pesData=c,T&&(v=h(T))?(C.isAAC?this.parseAACPES(v):this.parseMPEGPES(v),C.pesData=null):(T!=null&&T.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=T),y&&(v=h(y))?(this.parseID3PES(v),x.pesData=null):x.pesData=y},S.demuxSampleAes=function(R,C,w){var x=this.demux(R,w,!0,!this.config.progressive),c=this.sampleAes=new W.default(this.observer,this.config,C);return this.decrypt(x,c)},S.decrypt=function(R,C){return new Promise(function(w){var x=R.audioTrack,c=R.avcTrack;x.samples&&x.isAAC?C.decryptAacSamples(x.samples,0,function(){c.samples?C.decryptAvcSamples(c.samples,0,0,function(){w(R)}):w(R)}):c.samples&&C.decryptAvcSamples(c.samples,0,0,function(){w(R)})})},S.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},S.parseAVCPES=function(R,C){var w=this,x=this._avcTrack,c=this.parseAVCNALu(R.data),T=!1,y=this.avcSample,v,N=!1;R.data=null,y&&c.length&&!x.audFound&&(s(y,x),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(B){switch(B.type){case 1:{v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="NDR "),y.frame=!0;var O=B.data;if(N&&O.length>4){var j=new U.default(O).readSliceType();(j===2||j===4||j===7||j===9)&&(y.key=!0)}break}case 5:v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{v=!0,T&&y&&(y.debug+="SEI ");var P=new U.default(A(B.data));P.readUByte();for(var b=0,Y=0,ee=!1,le=0;!ee&&P.bytesAvailable>1;){b=0;do le=P.readUByte(),b+=le;while(le===255);Y=0;do le=P.readUByte(),Y+=le;while(le===255);if(b===4&&P.bytesAvailable!==0){ee=!0;var ue=P.readUByte();if(ue===181){var ke=P.readUShort();if(ke===49){var Se=P.readUInt();if(Se===1195456820){var Ce=P.readUByte();if(Ce===3){for(var ce=P.readUByte(),pe=P.readUByte(),se=31&ce,ae=[ce,pe],Oe=0;Oe16){for(var Te=[],Ne=0;Ne<16;Ne++)Te.push(P.readUByte().toString(16)),(Ne===3||Ne===5||Ne===7||Ne===9)&&Te.push("-");for(var De=Y-16,We=new Uint8Array(De),Le=0;Le=0){var P={data:R.subarray(O,y-x-1),type:j};T.push(P)}else{var b=this.getLastNalUnit();if(b&&(c&&y<=4-c&&(b.state&&(b.data=b.data.subarray(0,b.data.byteLength-c))),N=y-x-1,N>0)){var Y=new Uint8Array(b.data.byteLength+N);Y.set(b.data,0),Y.set(R.subarray(0,N),b.data.byteLength),b.data=Y,b.state=0}}y=0&&x>=0){var ee={data:R.subarray(O,C),type:j,state:x};T.push(ee)}if(T.length===0){var le=this.getLastNalUnit();if(le){var ue=new Uint8Array(le.data.byteLength+R.byteLength);ue.set(le.data,0),ue.set(R,le.data.byteLength),le.data=ue}}return w.naluState=x,T},S.parseAACPES=function(R){var C=0,w=this._audioTrack,x=this.aacOverFlow,c=R.data;if(x){this.aacOverFlow=null;var T=x.sample.unit.byteLength,y=Math.min(x.missing,T),v=T-y;x.sample.unit.set(c.subarray(0,y),v),w.samples.push(x.sample),C=x.missing}var N,B;for(N=C,B=c.length;N1;){var T=new Uint8Array(c[0].length+c[1].length);T.set(c[0]),T.set(c[1],c[0].length),c[0]=T,c.splice(1,1)}L=c[0];var y=(L[0]<<16)+(L[1]<<8)+L[2];if(y===1){if(R=(L[4]<<8)+L[5],R&&R>_.size-6)return null;var v=L[7];v&192&&(w=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,v&64?(x=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,w-x>60*9e4&&(g.logger.warn(Math.round((w-x)/9e4)+"s delta between PTS and DTS, align them"),w=x)):x=w),C=L[8];var N=C+9;if(_.size<=N)return null;_.size-=N;for(var B=new Uint8Array(_.size),O=0,j=c.length;OP){N-=P;continue}else L=L.subarray(N),P-=N,N=0;B.set(L,S),S+=P}return R&&(R-=C+3),{data:B,pts:w,dts:x,len:R}}return null}function s(_,S){if(_.units.length&&_.frame){if(_.pts===void 0){var L=S.samples,R=L.length;if(R){var C=L[R-1];_.pts=C.pts,_.dts=C.dts}else{S.dropped++;return}}S.samples.push(_)}_.debug.length&&g.logger.log(_.pts+"/"+_.dts+":"+_.debug)}function a(_,S){var L=_.length;if(L>0){if(S.pts>=_[L-1].pts)_.push(S);else for(var R=L-1;R>=0;R--)if(S.pts<_[R].pts){_.splice(R,0,S);break}}else _.push(S)}function A(_){for(var S=_.byteLength,L=[],R=1;Rw)return c;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,w=this.autoLevelCapping,x;return w===-1&&C&&C.length?x=C.length-1:x=w,x}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var w=this.audioTrackController;w&&(w.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var w=this.subtitleTrackController;w&&(w.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var w=this.subtitleTrackController;w&&(w.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{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 h.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return S.defaultConfig?S.defaultConfig:u.hlsDefaultConfig},set:function(C){S.defaultConfig=C}}]),S}();_.defaultConfig=void 0},"./src/is-supported.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isSupported",function(){return U}),M.d($,"changeTypeSupported",function(){return G});var X=M("./src/utils/mediasource-helper.ts");function F(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var W=Object(X.getMediaSource)();if(!W)return!1;var i=F(),D=W&&typeof W.isTypeSupported=="function"&&W.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),g=!i||i.prototype&&typeof i.prototype.appendBuffer=="function"&&typeof i.prototype.remove=="function";return!!D&&!!g}function G(){var W,i=F();return typeof(i==null||((W=i.prototype)===null||W===void 0)?void 0:W.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return l}),M.d($,"LoadError",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/errors.ts");function U(o,h){o.prototype=Object.create(h.prototype),o.prototype.constructor=o,g(o,h)}function G(o){var h=typeof Map=="function"?new Map:void 0;return G=function(a){if(a===null||!D(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(a))return h.get(a);h.set(a,A)}function A(){return W(a,arguments,m(this).constructor)}return A.prototype=Object.create(a.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g(A,a)},G(o)}function W(o,h,s){return i()?W=Reflect.construct:W=function(A,_,S){var L=[null];L.push.apply(L,_);var R=Function.bind.apply(A,L),C=new R;return S&&g(C,S.prototype),C},W.apply(null,arguments)}function i(){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(o){return!1}}function D(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function g(o,h){return g=Object.setPrototypeOf||function(a,A){return a.__proto__=A,a},g(o,h)}function m(o){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(o)}var p=Math.pow(2,17),l=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var h=o.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(a,A){var _=this,S=a.url;if(!S)return Promise.reject(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(S?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){_.loader&&_.loader.destroy();var c=_.loader=a.loader=R?new R(L):new C(L),T=u(a),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){_.resetLoader(a,c),w({frag:a,part:null,payload:N.data,networkDetails:j})},onError:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:N,networkDetails:O}))},onAbort:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:O}))},onTimeout:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:O}))},onProgress:function(N,B,O,j){A&&A({frag:a,part:null,payload:O,networkDetails:j})}})})},h.loadPart=function(a,A,_){var S=this;this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){S.loader&&S.loader.destroy();var c=S.loader=a.loader=R?new R(L):new C(L),T=u(a,A),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};A.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){S.resetLoader(a,c),S.updateStatsFromPart(a,A);var P={frag:a,part:A,payload:N.data,networkDetails:j};_(P),w(P)},onError:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:A,response:N,networkDetails:O}))},onAbort:function(N,B,O){a.stats.aborted=A.stats.aborted,S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:A,networkDetails:O}))},onTimeout:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:A,networkDetails:O}))}})})},h.updateStatsFromPart=function(a,A){var _=a.stats,S=A.stats,L=S.total;if(_.loaded+=S.loaded,L){var R=Math.round(a.duration/A.duration),C=Math.min(Math.round(_.loaded/L),R),w=R-C,x=w*Math.round(_.loaded/C);_.total=_.loaded+x}else _.total=Math.max(_.loaded,_.total);var c=_.loading,T=S.loading;c.start?c.first+=T.first-T.start:(c.start=T.start,c.first=T.first),c.end=T.end},h.resetLoader=function(a,A){a.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},o}();function u(o,h){h===void 0&&(h=null);var s=h||o,a={frag:o,part:h,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},A=s.byteRangeStartOffset,_=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(A)&&Object(X.isFiniteNumber)(_)&&(a.rangeStart=A,a.rangeEnd=_),a}var f=function(o){U(h,o);function h(s){for(var a,A=arguments.length,_=new Array(A>1?A-1:0),S=1;S>8*(15-L)&255;return S},a.setDecryptDataFromLevelKey=function(_,S){var L=_;return(_==null?void 0:_.method)==="AES-128"&&_.uri&&!_.iv&&(L=W.LevelKey.fromURI(_.uri),L.method=_.method,L.iv=this.createInitializationVector(S),L.keyFormat="identity"),L},a.setElementaryStreamInfo=function(_,S,L,R,C,w){w===void 0&&(w=!1);var x=this.elementaryStreams,c=x[_];if(!c){x[_]={startPTS:S,endPTS:L,startDTS:R,endDTS:C,partial:w};return}c.startPTS=Math.min(c.startPTS,S),c.endPTS=Math.max(c.endPTS,L),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,C)},a.clearElementaryStreamInfo=function(){var _=this.elementaryStreams;_[l.AUDIO]=null,_[l.VIDEO]=null,_[l.AUDIOVIDEO]=null},p(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var _=this.sn;typeof _!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&G.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),_=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,_)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(X.isFiniteNumber)(this.programDateTime))return null;var _=Object(X.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+_*1e3}},{key:"encrypted",get:function(){var _;return!!((_=this.decryptdata)!==null&&_!==void 0&&_.keyFormat&&this.decryptdata.uri)}}]),s}(u),o=function(h){D(s,h);function s(a,A,_,S,L){var R;R=h.call(this,_)||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 i.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=A,R.index=S;var C=a.enumeratedString("BYTERANGE");return C&&R.setByteRange(C,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return p(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 A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return G});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/utils/logger.ts"),G=function(){function W(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var i=W.prototype;return i._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},i._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},i.destroy=function(){this._unregisterListeners();for(var g in this.loaders){var m=this.loaders[g];m&&m.destroy()}this.loaders={}},i.onKeyLoading=function(g,m){var p=m.frag,l=p.type,u=this.loaders[l];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+l),u.abort()),!f){U.logger.warn("key uri is falsy");return}var h=o.loader,s=p.loader=this.loaders[l]=new h(o);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},A={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,A,_)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},i.loadsuccess=function(g,m,p){var l=p.frag;if(!l.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(g.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:l})},i.loaderror=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:g})},i.loadtimeout=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},W}()},"./src/loader/level-details.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelDetails",function(){return W});var X=M("./src/polyfills/number.ts");function F(i,D){for(var g=0;gm.endSN||p>0||p===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(i,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||G}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),i}()},"./src/loader/level-key.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelKey",function(){return W});var X=M("./node_modules/url-toolkit/src/url-toolkit.js"),F=M.n(X);function U(i,D){for(var g=0;g2){var x=w.shift()+".";return x+=parseInt(w.shift()).toString(16),x+=("000"+parseInt(w.shift()).toString(16)).substr(-4),x}return C},L.resolve=function(C,w){return F.buildAbsoluteURL(w,C,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(C,w){var x=[],c={},T=!1;p.lastIndex=0;for(var y;(y=p.exec(C))!=null;)if(y[1]){var v=new D.AttrList(y[1]),N={attrs:v,bitrate:v.decimalInteger("AVERAGE-BANDWIDTH")||v.decimalInteger("BANDWIDTH"),name:v.NAME,url:L.resolve(y[2],w)},B=v.decimalResolution("RESOLUTION");B&&(N.width=B.width,N.height=B.height),a((v.CODECS||"").split(/[ ,]+/).filter(function(j){return j}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=L.convertAVC1ToAVCOTI(N.videoCodec)),x.push(N)}else if(y[3]){var O=new D.AttrList(y[3]);O["DATA-ID"]&&(T=!0,c[O["DATA-ID"]]=O)}return{levels:x,sessionData:T?c:null}},L.parseMasterPlaylistMedia=function(C,w,x,c){c===void 0&&(c=[]);var T,y=[],v=0;for(l.lastIndex=0;(T=l.exec(C))!==null;){var N=new D.AttrList(T[1]);if(N.TYPE===x){var B={attrs:N,bitrate:0,id:v++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:x,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?L.resolve(N.URI,w):""};if(c.length){var O=L.findGroup(c,B.groupId)||c[0];A(B,O,"audioCodec"),A(B,O,"textCodec")}y.push(B)}}return y},L.parseLevelPlaylist=function(C,w,x,c,T){var y=new W.LevelDetails(w),v=y.fragments,N=null,B=0,O=0,j=0,P=0,b=null,Y=new G.Fragment(c,w),ee,le,ue,ke=-1,Se=!1;for(u.lastIndex=0,y.m3u8=C;(ee=u.exec(C))!==null;){Se&&(Se=!1,Y=new G.Fragment(c,w),Y.start=j,Y.sn=B,Y.cc=P,Y.level=x,N&&(Y.initSegment=N,Y.rawProgramDateTime=N.rawProgramDateTime));var Ce=ee[1];if(Ce){Y.duration=parseFloat(Ce);var ce=(" "+ee[2]).slice(1);Y.title=ce||null,Y.tagList.push(ce?["INF",Ce,ce]:["INF",Ce])}else if(ee[3])Object(X.isFiniteNumber)(Y.duration)&&(Y.start=j,ue&&(Y.levelkey=ue),Y.sn=B,Y.level=x,Y.cc=P,Y.urlId=T,v.push(Y),Y.relurl=(" "+ee[3]).slice(1),S(Y,b),b=Y,j+=Y.duration,B++,O=0,Se=!0);else if(ee[4]){var pe=(" "+ee[4]).slice(1);b?Y.setByteRange(pe,b):Y.setByteRange(pe)}else if(ee[5])Y.rawProgramDateTime=(" "+ee[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ke===-1&&(ke=v.length);else{if(ee=ee[0].match(f),!ee){g.logger.warn("No matches on slow regex match for level playlist!");continue}for(le=1;le-1){g.logger.warn("Keyformat "+Ue+" is not supported from the manifest");continue}else if(Ue!=="identity")continue;Ge&&(ue=i.LevelKey.fromURL(w,oe),oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Ge)>=0&&(ue.method=Ge,ue.keyFormat=Ue,Ae&&(ue.keyID=Ae),we&&(ue.keyFormatVersions=we),ue.iv=ye));break}case"START":{var Ze=new D.AttrList(ae),$e=Ze.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)($e)&&(y.startTimeOffset=$e);break}case"MAP":{var tt=new D.AttrList(ae);Y.relurl=tt.URI,tt.BYTERANGE&&Y.setByteRange(tt.BYTERANGE),Y.level=x,Y.sn="initSegment",ue&&(Y.levelkey=ue),Y.initSegment=null,N=Y,Se=!0;break}case"SERVER-CONTROL":{var et=new D.AttrList(ae);y.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),y.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Je=new D.AttrList(ae);y.partTarget=Je.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Me=y.partList;Me||(Me=y.partList=[]);var ut=O>0?Me[Me.length-1]:void 0,nt=O++,Fe=new G.Part(new D.AttrList(ae),Y,w,nt,ut);Me.push(Fe),Y.duration+=Fe.duration;break}case"PRELOAD-HINT":{var je=new D.AttrList(ae);y.preloadHint=je;break}case"RENDITION-REPORT":{var Ee=new D.AttrList(ae);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ee);break}default:g.logger.warn("line parsed but not handled: "+ee);break}}}b&&!b.relurl?(v.pop(),j-=b.duration,y.partList&&(y.fragmentHint=b)):y.partList&&(S(Y,b),Y.cc=P,y.fragmentHint=Y);var ge=v.length,_e=v[0],ne=v[ge-1];if(j+=y.skippedSegments*y.targetduration,j>0&&ge&&ne){y.averagetargetduration=j/ge;var re=ne.sn;y.endSN=re!=="initSegment"?re:0,_e&&(y.startCC=_e.cc,_e.initSegment||y.fragments.every(function(he){return he.relurl&&h(he.relurl)})&&(g.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new G.Fragment(c,w),Y.relurl=ne.relurl,Y.level=x,Y.sn="initSegment",_e.initSegment=Y,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(j+=y.fragmentHint.duration),y.totalduration=j,y.endCC=P,ke>0&&_(v,ke),y},L}();function a(L,R){["video","audio","text"].forEach(function(C){var w=L.filter(function(c){return Object(m.isCodecType)(c,C)});if(w.length){var x=w.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[C+"Codec"]=x.length>0?x[0]:w[0],L=L.filter(function(c){return w.indexOf(c)===-1})}}),R.unknownCodecs=L}function A(L,R,C){var w=R[C];w&&(L[C]=w)}function _(L,R){for(var C=L[R],w=R;w--;){var x=L[w];if(!x)return;x.programDateTime=C.programDateTime-x.duration*1e3,C=x}}function S(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/polyfills/number.ts"),F=M("./src/events.ts"),U=M("./src/errors.ts"),G=M("./src/utils/logger.ts"),W=M("./src/utils/mp4-tools.ts"),i=M("./src/loader/m3u8-parser.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function p(u,f){var o=u.url;return(o===void 0||o.indexOf("data:")===0)&&(o=f.url),o}var l=function(){function u(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var h=this.hls;h.on(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var h=this.hls;h.off(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(h){var s=this.hls.config,a=s.pLoader,A=s.loader,_=a||A,S=new _(s);return h.loader=S,this.loaders[h.type]=S,S},f.getInternalLoader=function(h){return this.loaders[h.type]},f.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},f.destroyInternalLoaders=function(){for(var h in this.loaders){var s=this.loaders[h];s&&s.destroy(),this.resetInternalLoader(h)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(h,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(h,s){var a=s.id,A=s.level,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:null,level:A,responseType:"text",type:D.PlaylistContextType.LEVEL,url:_,deliveryDirectives:S})},f.onAudioTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:_,deliveryDirectives:S})},f.onSubtitleTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:_,deliveryDirectives:S})},f.load=function(h){var s,a=this.hls.config,A=this.getInternalLoader(h);if(A){var _=A.context;if(_&&_.url===h.url){G.logger.trace("[playlist-loader]: playlist request ongoing");return}G.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),A.abort()}var S,L,R,C;switch(h.type){case D.PlaylistContextType.MANIFEST:S=a.manifestLoadingMaxRetry,L=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,C=a.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:S=0,L=a.levelLoadingTimeOut;break;default:S=a.levelLoadingMaxRetry,L=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,C=a.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(h),(s=h.deliveryDirectives)!==null&&s!==void 0&&s.part){var w;if(h.type===D.PlaylistContextType.LEVEL&&h.level!==null?w=this.hls.levels[h.level].details:h.type===D.PlaylistContextType.AUDIO_TRACK&&h.id!==null?w=this.hls.audioTracks[h.id].details:h.type===D.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(w=this.hls.subtitleTracks[h.id].details),w){var x=w.partTarget,c=w.targetduration;x&&c&&(L=Math.min(Math.max(x*3,c*.8)*1e3,L))}}var T={timeout:L,maxRetry:S,retryDelay:R,maxRetryDelay:C,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(h,T,y)},f.loadsuccess=function(h,s,a,A){if(A===void 0&&(A=null),a.isSidxRequest){this.handleSidxRequest(h,a),this.handlePlaylistLoaded(h,s,a,A);return}this.resetInternalLoader(a.type);var _=h.data;if(_.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,a,"no EXTM3U delimiter",A);return}s.parsing.start=performance.now(),_.indexOf("#EXTINF:")>0||_.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,s,a,A):this.handleMasterPlaylist(h,s,a,A)},f.loaderror=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,h)},f.loadtimeout=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(h,s,a,A){var _=this.hls,S=h.data,L=p(h,a),R=i.default.parseMasterPlaylist(S,L),C=R.levels,w=R.sessionData;if(!C.length){this.handleManifestParsingError(h,a,"no level found in manifest",A);return}var x=C.map(function(B){return{id:B.attrs.AUDIO,audioCodec:B.audioCodec}}),c=C.map(function(B){return{id:B.attrs.SUBTITLES,textCodec:B.textCodec}}),T=i.default.parseMasterPlaylistMedia(S,L,"AUDIO",x),y=i.default.parseMasterPlaylistMedia(S,L,"SUBTITLES",c),v=i.default.parseMasterPlaylistMedia(S,L,"CLOSED-CAPTIONS");if(T.length){var N=T.some(function(B){return!B.url});!N&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(G.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new g.AttrList({}),bitrate:0,url:""}))}_.trigger(F.Events.MANIFEST_LOADED,{levels:C,audioTracks:T,subtitles:y,captions:v,url:L,stats:s,networkDetails:A,sessionData:w})},f.handleTrackOrLevelPlaylist=function(h,s,a,A){var _=this.hls,S=a.id,L=a.level,R=a.type,C=p(h,a),w=Object(X.isFiniteNumber)(S)?S:0,x=Object(X.isFiniteNumber)(L)?L:w,c=m(a),T=i.default.parseLevelPlaylist(h.data,C,x,c,w);if(!T.fragments.length){_.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===D.PlaylistContextType.MANIFEST){var y={attrs:new g.AttrList({}),bitrate:0,details:T,name:"",url:C};_.trigger(F.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:C,stats:s,networkDetails:A,sessionData:null})}if(s.parsing.end=performance.now(),T.needSidxRanges){var v,N=(v=T.fragments[0].initSegment)===null||v===void 0?void 0:v.url;this.load({url:N,isSidxRequest:!0,type:R,level:L,levelDetails:T,id:S,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=T,this.handlePlaylistLoaded(h,s,a,A)},f.handleSidxRequest=function(h,s){var a=Object(W.parseSegmentIndex)(new Uint8Array(h.data));if(!a)return;var A=a.references,_=s.levelDetails;A.forEach(function(S,L){var R=S.info,C=_.fragments[L];C.byteRange.length===0&&C.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),C.initSegment&&C.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(h,s,a,A){this.hls.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===D.PlaylistContextType.MANIFEST,url:h.url,reason:a,response:h,context:s,networkDetails:A})},f.handleNetworkError=function(h,s,a,A){a===void 0&&(a=!1),G.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var _=U.ErrorDetails.UNKNOWN,S=!1,L=this.getInternalLoader(h);switch(h.type){case D.PlaylistContextType.MANIFEST:_=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,S=!0;break;case D.PlaylistContextType.LEVEL:_=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.AUDIO_TRACK:_=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:_=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,S=!1;break}L&&this.resetInternalLoader(h.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:_,fatal:S,url:h.url,loader:L,context:h,networkDetails:s};A&&(R.response=A),this.hls.trigger(F.Events.ERROR,R)},f.handlePlaylistLoaded=function(h,s,a,A){var _=a.type,S=a.level,L=a.id,R=a.groupId,C=a.loader,w=a.levelDetails,x=a.deliveryDirectives;if(!(w!=null&&w.targetduration)){this.handleManifestParsingError(h,a,"invalid target duration",A);return}if(!C)return;w.live&&(C.getCacheAge&&(w.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(w.ageHeader))&&(w.ageHeader=0));switch(_){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(F.Events.LEVEL_LOADED,{details:w,level:S||0,id:L||0,stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(F.Events.AUDIO_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(F.Events.SUBTITLE_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break}},u}();$.default=l},"./src/polyfills/number.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isFiniteNumber",function(){return X}),M.d($,"MAX_SAFE_INTEGER",function(){return F});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},F=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(){}return F.getSilentFrame=function(G,W){switch(G){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===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(W===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(W===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(W===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(W===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},F}();$.default=X},"./src/remux/mp4-generator.ts":function(ie,$,M){"use strict";M.r($);var X=Math.pow(2,32)-1,F=function(){function U(){}return U.init=function(){U.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 W;for(W in U.types)U.types.hasOwnProperty(W)&&(U.types[W]=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)]);var i=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]),D=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]);U.HDLR_TYPES={video:i,audio:D};var g=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,l),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,g))},U.box=function(W){for(var i=8,D=arguments.length,g=new Array(D>1?D-1:0),m=1;m>24&255,u[1]=i>>16&255,u[2]=i>>8&255,u[3]=i&255,u.set(W,4),p=0,i=8;p>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&255,85,196,0,0]))},U.mdia=function(W){return U.box(U.types.mdia,U.mdhd(W.timescale,W.duration),U.hdlr(W.type),U.minf(W))},U.mfhd=function(W){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255]))},U.minf=function(W){return W.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(W)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(W))},U.moof=function(W,i,D){return U.box(U.types.moof,U.mfhd(W),U.traf(D,i))},U.moov=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trak(W[i]);return U.box.apply(null,[U.types.moov,U.mvhd(W[0].timescale,W[0].duration)].concat(D).concat(U.mvex(W)))},U.mvex=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trex(W[i]);return U.box.apply(null,[U.types.mvex].concat(D))},U.mvhd=function(W,i){i*=W;var D=Math.floor(i/(X+1)),g=Math.floor(i%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&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 U.box(U.types.mvhd,m)},U.sdtp=function(W){var i=W.samples||[],D=new Uint8Array(4+i.length),g,m;for(g=0;g>>8&255),i.push(p&255),i=i.concat(Array.prototype.slice.call(m));for(g=0;g>>8&255),D.push(p&255),D=D.concat(Array.prototype.slice.call(m));var l=U.box(U.types.avcC,new Uint8Array([1,i[3],i[4],i[5],252|3,224|W.sps.length].concat(i).concat([W.pps.length]).concat(D))),u=W.width,f=W.height,o=W.pixelRatio[0],h=W.pixelRatio[1];return U.box(U.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,u>>8&255,u&255,f>>8&255,f&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]),l,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,h>>24,h>>16&255,h>>8&255,h&255])))},U.esds=function(W){var i=W.config.length;return new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(W.config).concat([6,1,2]))},U.mp4a=function(W){var i=W.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]),U.box(U.types.esds,U.esds(W)))},U.mp3=function(W){var i=W.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]))},U.stsd=function(W){return W.type==="audio"?!W.isAAC&&W.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(W)):U.box(U.types.stsd,U.STSD,U.mp4a(W)):U.box(U.types.stsd,U.STSD,U.avc1(W))},U.tkhd=function(W){var i=W.id,D=W.duration*W.timescale,g=W.width,m=W.height,p=Math.floor(D/(X+1)),l=Math.floor(D%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,l>>24,l>>16&255,l>>8&255,l&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,g>>8&255,g&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(W,i){var D=U.sdtp(W),g=W.id,m=Math.floor(i/(X+1)),p=Math.floor(i%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(W,D.length+16+20+8+16+8+8),D)},U.trak=function(W){return W.duration=W.duration||4294967295,U.box(U.types.trak,U.tkhd(W),U.mdia(W))},U.trex=function(W){var i=W.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(W,i){var D=W.samples||[],g=D.length,m=12+16*g,p=new Uint8Array(m),l,u,f,o,h,s;for(i+=8+m,p.set([0,0,15,1,g>>>24&255,g>>>16&255,g>>>8&255,g&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255],0),l=0;l>>24&255,f>>>16&255,f>>>8&255,f&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*l);return U.box(U.types.trun,p)},U.initSegment=function(W){U.types||U.init();var i=U.moov(W),D=new Uint8Array(U.FTYP.byteLength+i.byteLength);return D.set(U.FTYP),D.set(i,U.FTYP.byteLength),D},U}();F.types=void 0,F.HDLR_TYPES=void 0,F.STTS=void 0,F.STSC=void 0,F.STCO=void 0,F.STSZ=void 0,F.VMHD=void 0,F.SMHD=void 0,F.STSD=void 0,F.FTYP=void 0,F.DINF=void 0,$.default=F},"./src/remux/mp4-remuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"normalizePts",function(){return a});var X=M("./src/polyfills/number.ts"),F=M("./src/remux/aac-helper.ts"),U=M("./src/remux/mp4-generator.ts"),G=M("./src/events.ts"),W=M("./src/errors.ts"),i=M("./src/utils/logger.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(L){for(var R=1;R0?T:y.pts},w[0].pts);return x&&i.logger.debug("PTS rollover detected"),c},R.remux=function(w,x,c,T,y,v,N,B){var O,j,P,b,Y,ee,le=y,ue=y,ke=w.pid>-1,Se=x.pid>-1,Ce=x.samples.length,ce=w.samples.length>0,pe=Ce>1,se=(!ke||ce)&&(!Se||pe)||this.ISGenerated||N;if(se){this.ISGenerated||(P=this.generateIS(w,x,y));var ae=this.isVideoContiguous,Oe=-1;if(pe&&(Oe=A(x.samples),!ae&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,Oe>0){i.logger.warn("[mp4-remuxer]: Dropped "+Oe+" out of "+Ce+" video samples due to a missing keyframe");var Te=this.getVideoStartPts(x.samples);x.samples=x.samples.slice(Oe),x.dropped+=Oe,ue+=(x.samples[0].pts-Te)/(x.timescale||9e4)}else Oe===-1&&(i.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ce+" video samples"),ee=!1);if(this.ISGenerated){if(ce&&pe){var Ne=this.getVideoStartPts(x.samples),De=a(w.samples[0].pts,Ne)-Ne,We=De/x.inputTimeScale;le+=Math.max(0,We),ue+=Math.max(0,-We)}if(ce){if(w.samplerate||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),P=this.generateIS(w,x,y)),j=this.remuxAudio(w,le,this.isAudioContiguous,v,Se||pe||B===D.PlaylistLevelType.AUDIO?ue:void 0),pe){var Le=j?j.endPTS-j.startPTS:0;x.inputTimeScale||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),P=this.generateIS(w,x,y)),O=this.remuxVideo(x,ue,ae,Le)}}else pe&&(O=this.remuxVideo(x,ue,ae,0));O&&(O.firstKeyFrame=Oe,O.independent=Oe!==-1)}}return this.ISGenerated&&(c.samples.length&&(Y=this.remuxID3(c,y)),T.samples.length&&(b=this.remuxText(T,y))),{audio:j,video:O,initSegment:P,independent:ee,text:b,id3:Y}},R.generateIS=function(w,x,c){var T=w.samples,y=x.samples,v=this.typeSupported,N={},B=!Object(X.isFiniteNumber)(this._initPTS),O="audio/mp4",j,P,b;if(B&&(j=P=Infinity),w.config&&T.length&&(w.timescale=w.samplerate,w.isAAC||(v.mpeg?(O="audio/mpeg",w.codec=""):v.mp3&&(w.codec="mp3")),N.audio={id:"audio",container:O,codec:w.codec,initSegment:!w.isAAC&&v.mpeg?new Uint8Array(0):U.default.initSegment([w]),metadata:{channelCount:w.channelCount}},B&&(b=w.inputTimeScale,j=P=T[0].pts-Math.round(b*c))),x.sps&&x.pps&&y.length&&(x.timescale=x.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:x.codec,initSegment:U.default.initSegment([x]),metadata:{width:x.width,height:x.height}},B)){b=x.inputTimeScale;var Y=this.getVideoStartPts(y),ee=Math.round(b*c);P=Math.min(P,a(y[0].dts,Y)-ee),j=Math.min(j,Y-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,B&&(this._initPTS=j,this._initDTS=P),{tracks:N,initPTS:j,timescale:b}},R.remuxVideo=function(w,x,c,T){var y=w.inputTimeScale,v=w.samples,N=[],B=v.length,O=this._initPTS,j=this.nextAvcDts,P=8,b,Y,ee,le=Number.POSITIVE_INFINITY,ue=Number.NEGATIVE_INFINITY,ke=0,Se=!1;if(!c||j===null){var Ce=x*y,ce=v[0].pts-a(v[0].dts,v[0].pts);j=Ce-ce}for(var pe=0;pese.pts){var ae=9e4*.2;ke=Math.max(Math.min(ke,se.pts-se.dts),-1*ae)}se.dts0?pe-1:pe].dts&&(Se=!0)}Se&&v.sort(function(wt,St){var dt=wt.dts-St.dts,Ut=wt.pts-St.pts;return dt||Ut}),Y=v[0].dts,ee=v[v.length-1].dts;var Oe=Math.round((ee-Y)/(B-1));if(ke<0){if(keOe,Be=We<-1;if(Le||Be){Le?i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms ("+We+"dts) hole between fragments detected, filling it"):i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(-We,!0)+" ms ("+We+"dts) overlapping between fragments detected"),Y=j;var Ge=v[0].pts-We;v[0].dts=Y,v[0].pts=Ge,i.logger.log("Video: First PTS/DTS adjusted: "+Object(g.toMsFromMpegTsClock)(Ge,!0)+"/"+Object(g.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms")}}h&&(Y=Math.max(0,Y));for(var oe=0,ye=0,we=0;we0?Me-1:Me].dts;if(re.stretchShortVideoTrack&&this.nextAudioPts!==null){var fe=Math.floor(re.maxBufferHole*y),xe=(T?le+T*y:this.nextAudioPts)-ut.pts;xe>fe?(b=xe-he,b<0&&(b=he),i.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+b/90+" ms for the last video frame.")):b=he}else b=he}var Pe=Math.round(ut.pts-ut.dts);N.push(new _(ut.key,b,Fe,Pe))}if(N.length&&f&&f<70){var ze=N[0].flags;ze.dependsOn=2,ze.isNonSync=0}console.assert(b!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=j=ee+b,this.isVideoContiguous=!0;var ot=U.default.moof(w.sequenceNumber++,Y,m({},w,{samples:N})),mt="video",ft={data1:ot,data2:et,startPTS:le/y,endPTS:(ue+b)/y,startDTS:Y/y,endDTS:j/y,type:mt,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:w.dropped};return w.samples=[],w.dropped=0,console.assert(et.length,"MDAT length must not be zero"),ft},R.remuxAudio=function(w,x,c,T,y){var v=w.inputTimeScale,N=w.samplerate?w.samplerate:v,B=v/N,O=w.isAAC?l:u,j=O*B,P=this._initPTS,b=!w.isAAC&&this.typeSupported.mpeg,Y=[],ee=w.samples,le=b?0:8,ue=this.nextAudioPts||-1,ke=x*v;if(this.isAudioContiguous=c=c||ee.length&&ue>0&&(T&&Math.abs(ke-ue)<9e3||Math.abs(a(ee[0].pts-P,ke)-ue)<20*j),ee.forEach(function(_e){_e.pts=a(_e.pts-P,ke)}),!c||ue<0){if(ee=ee.filter(function(_e){return _e.pts>=0}),!ee.length)return;y===0?ue=0:T?ue=Math.max(0,ke):ue=ee[0].pts}if(w.isAAC)for(var Se=y!==void 0,Ce=this.config.maxAudioFramesDrift,ce=0,pe=ue;ce=Ce*j&&Te0){ye+=le;try{oe=new Uint8Array(ye)}catch(_e){this.observer.emit(G.Events.ERROR,G.Events.ERROR,{type:W.ErrorTypes.MUX_ERROR,details:W.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ye,reason:"fail allocating audio mdat "+ye});return}if(!b){var et=new DataView(oe.buffer);et.setUint32(0,ye),oe.set(U.default.types.mdat,4)}}else return;oe.set(Ze,le);var Je=Ze.byteLength;le+=Je,Y.push(new _(!0,O,Je,0)),Ge=$e}var Me=Y.length;if(!Me)return;var ut=Y[Y.length-1];this.nextAudioPts=ue=Ge+B*ut.duration;var nt=b?new Uint8Array(0):U.default.moof(w.sequenceNumber++,Be/B,m({},w,{samples:Y}));w.samples=[];var Fe=Be/v,je=ue/v,Ee="audio",ge={data1:nt,data2:oe,startPTS:Fe,endPTS:je,startDTS:Fe,endDTS:je,type:Ee,hasAudio:!0,hasVideo:!1,nb:Me};return this.isAudioContiguous=!0,console.assert(oe.length,"MDAT length must not be zero"),ge},R.remuxEmptyAudio=function(w,x,c,T){var y=w.inputTimeScale,v=w.samplerate?w.samplerate:y,N=y/v,B=this.nextAudioPts,O=(B!==null?B:T.startDTS*y)+this._initDTS,j=T.endDTS*y+this._initDTS,P=N*l,b=Math.ceil((j-O)/P),Y=F.default.getSilentFrame(w.manifestCodec||w.codec,w.channelCount);if(i.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){i.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],le=0;le4294967296;)L+=C;return L}function A(L){for(var R=0;R0?this.lastEndDTS=w:(G.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var x=!!L.audio,c=!!L.video,T="";x&&(T+="audio"),c&&(T+="video");var y={data1:_,startPTS:C,startDTS:C,endPTS:w,endDTS:w,type:T,hasAudio:x,hasVideo:c,nb:1,dropped:0};return A.audio=y.type==="audio"?y:void 0,A.video=y.type!=="audio"?y:void 0,A.text=o,A.id3=f,A.initSegment=S,A},g}(),i=function(m,p,l){return Object(F.getStartDTS)(m,p)-l};function D(g,m){var p=g==null?void 0:g.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}$.default=W},"./src/task-loop.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return X});var X=function(){function F(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=F.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(W){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,W),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},F}()},"./src/types/cmcd.ts":function(ie,$,M){"use strict";M.r($),M.d($,"CMCDVersion",function(){return X}),M.d($,"CMCDObjectType",function(){return F}),M.d($,"CMCDStreamingFormat",function(){return U}),M.d($,"CMCDStreamType",function(){return G});var X=1,F;(function(W){W.MANIFEST="m",W.AUDIO="a",W.VIDEO="v",W.MUXED="av",W.INIT="i",W.CAPTION="c",W.TIMED_TEXT="tt",W.KEY="k",W.OTHER="o"})(F||(F={}));var U;(function(W){W.DASH="d",W.HLS="h",W.SMOOTH="s",W.OTHER="o"})(U||(U={}));var G;(function(W){W.VOD="v",W.LIVE="l"})(G||(G={}))},"./src/types/level.ts":function(ie,$,M){"use strict";M.r($),M.d($,"HlsSkip",function(){return U}),M.d($,"getSkipValue",function(){return G}),M.d($,"HlsUrlParameters",function(){return W}),M.d($,"Level",function(){return i});function X(D,g){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:g},W.hexadecimalInteger=function(D){if(this[D]){var g=(this[D]||"0x").slice(2);g=(g.length&1?"0":"")+g;for(var m=new Uint8Array(g.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:g},W.decimalFloatingPoint=function(D){return parseFloat(this[D])},W.optionalFloat=function(D,g){var m=this[D];return m?parseFloat(m):g},W.enumeratedString=function(D){return this[D]},W.bool=function(D){return this[D]==="YES"},W.decimalResolution=function(D){var g=X.exec(this[D]);return g===null?void 0:{width:parseInt(g[1],10),height:parseInt(g[2],10)}},G.parseAttrList=function(D){var g,m={},p='"';for(F.lastIndex=0;(g=F.exec(D))!==null;){var l=g[2];l.indexOf(p)===0&&l.lastIndexOf(p)===l.length-1&&(l=l.slice(1,-1)),m[g[1]]=l}return m},G}()},"./src/utils/binary-search.ts":function(ie,$,M){"use strict";M.r($);var X={search:function(U,G){for(var W=0,i=U.length-1,D=null,g=null;W<=i;){D=(W+i)/2|0,g=U[D];var m=G(g);if(m>0)W=D+1;else if(m<0)i=D-1;else return g}return null}};$.default=X},"./src/utils/buffer-helper.ts":function(ie,$,M){"use strict";M.r($),M.d($,"BufferHelper",function(){return U});var X=M("./src/utils/logger.ts"),F={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function G(){}return G.isBuffered=function(i,D){try{if(i){for(var g=G.getBuffered(i),m=0;m=g.start(m)&&D<=g.end(m))return!0}}catch(p){}return!1},G.bufferInfo=function(i,D,g){try{if(i){var m=G.getBuffered(i),p=[],l;for(l=0;lu&&(m[l-1].end=i[p].end):m.push(i[p])}else m.push(i[p])}else m=i;for(var f=0,o,h=D,s=D,a=0;a=A&&D<_)h=A,s=_,f=s-D;else if(D+g=c&&X.logger.log(this.time+" ["+c+"] "+T)},C}(),f=function(w){for(var x=[],c=0;cW&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=W)},w.moveCursor=function(c){var T=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var T=U(c);if(this.pos>=W){this.logger.log(l.ERROR,"Cannot insert "+c.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},w.clearFromPos=function(c){var T;for(T=c;T0&&(c?y="["+T.join(" | ")+"]":y=T.join(` `)),y},w.getTextAndFormat=function(){return this.rows},C}(),A=function(){function C(x,c,T){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=x,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new a(T),this.nonDisplayedMemory=new a(T),this.lastOutputScreen=new a(T),this.currRollUpRow=this.displayedMemory.rows[G-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=T}var w=C.prototype;return w.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[G-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},w.getHandler=function(){return this.outputFilter},w.setHandler=function(c){this.outputFilter=c},w.setPAC=function(c){this.writeScreen.setPAC(c)},w.setBkgData=function(c){this.writeScreen.setBkgData(c)},w.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(l.INFO,"MODE="+c),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=c},w.insertChars=function(c){for(var T=0;T=46,T.italics)T.foreground="white";else{var y=Math.floor(c/2)-16,v=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=v[y]}this.logger.log(l.INFO,"MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},w.outputDataUpdate=function(c){c===void 0&&(c=!1);var T=this.logger.time;if(T===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=T:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,T,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:T),this.lastOutputScreen.copy(this.displayedMemory))},w.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},C}(),_=function(){function C(x,c,T){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new A(x,c,y),new A(x+1,T,y)],this.cmdHistory=R(),this.logger=y}var w=C.prototype;return w.getHandler=function(c){return this.channels[c].getHandler()},w.setHandler=function(c,T){this.channels[c].setHandler(T)},w.addData=function(c,T){var y,v,N,B=!1;this.logger.time=c;for(var O=0;O ("+f([v,N])+")"),y=this.parseCmd(v,N),y||(y=this.parseMidrow(v,N)),y||(y=this.parsePAC(v,N)),y||(y=this.parseBackgroundAttributes(v,N)),!y&&(B=this.parseChars(v,N),B)){var j=this.currentChannel;if(j&&j>0){var P=this.channels[j];P.insertChars(B)}else this.logger.log(l.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!B&&this.logger.log(l.WARNING,"Couldn't parse cleaned data "+f([v,N])+" orig: "+f([T[O],T[O+1]]))}},w.parseCmd=function(c,T){var y=this.cmdHistory,v=(c===20||c===28||c===21||c===29)&&T>=32&&T<=47,N=(c===23||c===31)&&T>=33&&T<=35;if(!(v||N))return!1;if(L(c,T,y))return S(null,null,y),this.logger.log(l.DEBUG,"Repeated command ("+f([c,T])+") is dropped"),!0;var B=c===20||c===21||c===23?1:2,O=this.channels[B];return c===20||c===21||c===28||c===29?T===32?O.ccRCL():T===33?O.ccBS():T===34?O.ccAOF():T===35?O.ccAON():T===36?O.ccDER():T===37?O.ccRU(2):T===38?O.ccRU(3):T===39?O.ccRU(4):T===40?O.ccFON():T===41?O.ccRDC():T===42?O.ccTR():T===43?O.ccRTD():T===44?O.ccEDM():T===45?O.ccCR():T===46?O.ccENM():T===47&&O.ccEOC():O.ccTO(T-32),S(c,T,y),this.currentChannel=B,!0},w.parseMidrow=function(c,T){var y=0;if((c===17||c===25)&&T>=32&&T<=47){if(c===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(l.ERROR,"Mismatch channel in midrow parsing"),!1;var v=this.channels[y];return v?(v.ccMIDROW(T),this.logger.log(l.DEBUG,"MIDROW ("+f([c,T])+")"),!0):!1}return!1},w.parsePAC=function(c,T){var y,v=this.cmdHistory,N=(c>=17&&c<=23||c>=25&&c<=31)&&T>=64&&T<=127,B=(c===16||c===24)&&T>=64&&T<=95;if(!(N||B))return!1;if(L(c,T,v))return S(null,null,v),!0;var O=c<=23?1:2;T>=64&&T<=95?y=O===1?i[c]:g[c]:y=O===1?D[c]:m[c];var j=this.channels[O];return j?(j.setPAC(this.interpretPAC(y,T)),S(c,T,v),this.currentChannel=O,!0):!1},w.interpretPAC=function(c,T){var y,v={color:null,italics:!1,indent:null,underline:!1,row:c};return T>95?y=T-96:y=T-64,v.underline=(y&1)===1,y<=13?v.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(v.italics=!0,v.color="white"):v.indent=Math.floor((y-16)/2)*4,v},w.parseChars=function(c,T){var y,v=null,N=null;if(c>=25?(y=2,N=c-8):(y=1,N=c),N>=17&&N<=19){var B;N===17?B=T+80:N===18?B=T+112:B=T+144,this.logger.log(l.INFO,"Special char '"+U(B)+"' in channel "+y),v=[B]}else c>=32&&c<=127&&(v=T===0?[c]:[c,T]);if(v){var O=f(v);this.logger.log(l.DEBUG,"Char codes = "+O.join(",")),S(c,T,this.cmdHistory)}return v},w.parseBackgroundAttributes=function(c,T){var y=(c===16||c===24)&&T>=32&&T<=47,v=(c===23||c===31)&&T>=45&&T<=47;if(!(y||v))return!1;var N,B={};c===16||c===24?(N=Math.floor((T-32)/2),B.background=p[N],T%2===1&&(B.background=B.background+"_semi")):T===45?B.background="transparent":(B.foreground="black",T===47&&(B.underline=!0));var O=c<=23?1:2,j=this.channels[O];return j.setBkgData(B),S(c,T,this.cmdHistory),!0},w.reset=function(){for(var c=0;c=16?h--:h++;var S=Object(X.fixLineBreaks)(s.trim()),L=Object(F.generateCueId)(g,m,S);(!D||!D.cues||!D.cues.getCueById(L))&&(f=new a(g,m,S),f.id=L,f.line=A+1,f.align="left",f.position=10+Math.min(80,Math.floor(h*8/32)*10),l.push(f))}return D&&l.length&&(l.sort(function(R,C){return R.line==="auto"||C.line==="auto"?0:R.line>8&&C.line>8?C.line-R.line:R.line-C.line}),l.forEach(function(R){return Object(U.addCueToTrack)(D,R)})),l}};$.default=W},"./src/utils/discontinuities.ts":function(ie,$,M){"use strict";M.r($),M.d($,"findFirstFragWithCC",function(){return G}),M.d($,"shouldAlignOnDiscontinuities",function(){return W}),M.d($,"findDiscontinuousReferenceFrag",function(){return i}),M.d($,"adjustSlidingStart",function(){return g}),M.d($,"alignStream",function(){return m}),M.d($,"alignPDT",function(){return l}),M.d($,"alignFragmentByPDTDelta",function(){return u}),M.d($,"alignMediaPlaylistByPDT",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/utils/logger.ts"),U=M("./src/controller/level-helper.ts");function G(o,h){for(var s=null,a=0,A=o.length;as.startCC||o&&o.cc=this.minWeight_},G.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},G.destroy=function(){},U}();$.default=F},"./src/utils/ewma.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(G,W,i){W===void 0&&(W=0),i===void 0&&(i=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=G,this.alpha_=G?Math.exp(Math.log(.5)/G):0,this.estimate_=W,this.totalWeight_=i}var U=F.prototype;return U.sample=function(W,i){var D=Math.pow(this.alpha_,W);this.estimate_=i*(1-D)+D*this.estimate_,this.totalWeight_+=W},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var W=1-Math.pow(this.alpha_,this.totalWeight_);if(W)return this.estimate_/W}return this.estimate_},F}();$.default=X},"./src/utils/fetch-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"fetchSupported",function(){return u});var X=M("./src/polyfills/number.ts"),F=M("./src/loader/load-stats.ts"),U=M("./src/demux/chunk-cache.ts");function G(a,A){a.prototype=Object.create(A.prototype),a.prototype.constructor=a,m(a,A)}function W(a){var A=typeof Map=="function"?new Map:void 0;return W=function(S){if(S===null||!g(S))return S;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(typeof A!="undefined"){if(A.has(S))return A.get(S);A.set(S,L)}function L(){return i(S,arguments,p(this).constructor)}return L.prototype=Object.create(S.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),m(L,S)},W(a)}function i(a,A,_){return D()?i=Reflect.construct:i=function(L,R,C){var w=[null];w.push.apply(w,R);var x=Function.bind.apply(L,w),c=new x;return C&&m(c,C.prototype),c},i.apply(null,arguments)}function D(){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(a){return!1}}function g(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,A){return m=Object.setPrototypeOf||function(S,L){return S.__proto__=L,S},m(a,A)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},p(a)}function l(){return l=Object.assign||function(a){for(var A=1;A=C&&w(L,R,x.flush(),S)):w(L,R,N,S),y()}).catch(function(){return Promise.reject()})};return T()},a}();function o(a,A){var _={method:"GET",mode:"cors",credentials:"same-origin",signal:A,headers:new self.Headers(l({},a.headers))};return a.rangeEnd&&_.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),_}function h(a,A){return new self.Request(a.url,A)}var s=function(a){G(A,a);function A(_,S,L){var R;return R=a.call(this,_)||this,R.code=void 0,R.details=void 0,R.code=S,R.details=L,R}return A}(W(Error));$.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,$,M){"use strict";M.r($),M.d($,"IMSC1_CODEC",function(){return g}),M.d($,"parseIMSC1",function(){return u});var X=M("./src/utils/mp4-tools.ts"),F=M("./src/utils/vttparser.ts"),U=M("./src/utils/vttcue.ts"),G=M("./src/demux/id3.ts"),W=M("./src/utils/timescale-conversion.ts"),i=M("./src/utils/webvtt-parser.ts");function D(){return D=Object.assign||function(C){for(var w=1;w"):X}function W(g){for(var m=arguments.length,p=new Array(m>1?m-1:0),l=1;l>24,A[_+1]=S>>16&255,A[_+2]=S>>8&255,A[_+3]=S&255}function m(A,_){var S=[];if(!_.length)return S;var L,R,C;"data"in A?(L=A.data,R=A.start,C=A.end):(L=A,R=0,C=L.byteLength);for(var w=R;w1?w+x:C;if(c===_[0])if(_.length===1)S.push({data:L,start:w+8,end:T});else{var y=m({data:L,start:w+8,end:T},_.slice(1));y.length&&G.apply(S,y)}w=T}return S}function p(A){var _=m(A,["moov"]),S=_[0],L=S?S.end:null,R=m(A,["sidx"]);if(!R||!R[0])return null;var C=[],w=R[0],x=w.data[0],c=x===0?8:16,T=D(w,c);c+=4;var y=0,v=0;x===0?c+=8:c+=16,c+=2;var N=w.end+v,B=i(w,c);c+=2;for(var O=0;O>>31;if(Y===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=D(w,j);j+=4,C.push({referenceSize:b,subsegmentDuration:ee,info:{duration:ee/T,start:N,end:N+b-1}}),N+=b,j+=4,c=j}return{earliestPresentationTime:y,timescale:T,version:x,referencesCount:B,references:C,moovEndOffset:L}}function l(A){for(var _=[],S=m(A,["moov","trak"]),L=0;LW)&&(this.startTime=W),this.endTime=i,this.screen=D,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},F}()},"./src/utils/texttrack-utils.ts":function(ie,$,M){"use strict";M.r($),M.d($,"sendAddTrackEvent",function(){return F}),M.d($,"addCueToTrack",function(){return U}),M.d($,"clearCurrentCues",function(){return G}),M.d($,"removeCuesInRange",function(){return W}),M.d($,"getCuesInRange",function(){return D});var X=M("./src/utils/logger.ts");function F(g,m){var p;try{p=new Event("addtrack")}catch(l){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=g,m.dispatchEvent(p)}function U(g,m){var p=g.mode;if(p==="disabled"&&(g.mode="hidden"),g.cues&&!g.cues.getCueById(m.id))try{if(g.addCue(m),!g.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var l=new self.TextTrackCue(m.startTime,m.endTime,m.text);l.id=m.id,g.addCue(l)}p==="disabled"&&(g.mode=p)}function G(g){var m=g.mode;if(m==="disabled"&&(g.mode="hidden"),g.cues)for(var p=g.cues.length;p--;)g.removeCue(g.cues[p]);m==="disabled"&&(g.mode=m)}function W(g,m,p){var l=g.mode;if(l==="disabled"&&(g.mode="hidden"),g.cues&&g.cues.length>0)for(var u=D(g.cues,m,p),f=0;fg[p].endTime)return-1;for(var l=0,u=p;l<=u;){var f=Math.floor((u+l)/2);if(mg[f].startTime&&l-1)for(var f=u,o=g.length;f=m&&h.endTime<=p)l.push(h);else if(h.startTime>p)return l}return l}},"./src/utils/time-ranges.ts":function(ie,$,M){"use strict";M.r($);var X={toString:function(U){for(var G="",W=U.length,i=0;i1?m-1:0),l=1;l100)throw new Error("Position must be between 0 and 100.");C=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",i({},u,{get:function(){return w},set:function(y){var v=W(y);if(!v)throw new SyntaxError("An invalid or illegal string was specified.");w=v,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",i({},u,{get:function(){return x},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");x=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",i({},u,{get:function(){return c},set:function(y){var v=W(y);if(!v)throw new SyntaxError("An invalid or illegal string was specified.");c=v,this.hasBeenReset=!0}})),l.displayState=void 0}return D.prototype.getCueAsHTML=function(){var g=self.WebVTT;return g.convertCueToDOMTree(self,this.text)},D}()},"./src/utils/vttparser.ts":function(ie,$,M){"use strict";M.r($),M.d($,"parseTimeStamp",function(){return U}),M.d($,"fixLineBreaks",function(){return m}),M.d($,"VTTParser",function(){return p});var X=M("./src/utils/vttcue.ts"),F=function(){function l(){}var u=l.prototype;return u.decode=function(o,h){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},l}();function U(l){function u(o,h,s,a){return(o|0)*3600+(h|0)*60+(s|0)+parseFloat(a||0)}var f=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var G=function(){function l(){this.values=Object.create(null)}var u=l.prototype;return u.set=function(o,h){!this.get(o)&&h!==""&&(this.values[o]=h)},u.get=function(o,h,s){return s?this.has(o)?this.values[o]:h[s]:this.has(o)?this.values[o]:h},u.has=function(o){return o in this.values},u.alt=function(o,h,s){for(var a=0;a=0&&s<=100)return this.set(o,s),!0}return!1},l}();function W(l,u,f,o){var h=o?l.split(o):[l];for(var s in h){if(typeof h[s]!="string")continue;var a=h[s].split(f);if(a.length!==2)continue;var A=a[0],_=a[1];u(A,_)}}var i=new X.default(0,0,""),D=i.align==="middle"?"middle":"center";function g(l,u,f){var o=l;function h(){var A=U(l);if(A===null)throw new Error("Malformed timestamp: "+o);return l=l.replace(/^[^\sa-zA-Z-]+/,""),A}function s(A,_){var S=new G;W(A,function(C,w){var x;switch(C){case"region":for(var c=f.length-1;c>=0;c--)if(f[c].id===w){S.set(C,f[c].region);break}break;case"vertical":S.alt(C,w,["rl","lr"]);break;case"line":x=w.split(","),S.integer(C,x[0]),S.percent(C,x[0])&&S.set("snapToLines",!1),S.alt(C,x[0],["auto"]),x.length===2&&S.alt("lineAlign",x[1],["start",D,"end"]);break;case"position":x=w.split(","),S.percent(C,x[0]),x.length===2&&S.alt("positionAlign",x[1],["start",D,"end","line-left","line-right","auto"]);break;case"size":S.percent(C,w);break;case"align":S.alt(C,w,["start",D,"end","left","right"]);break}},/:/,/\s/),_.region=S.get("region",null),_.vertical=S.get("vertical","");var L=S.get("line","auto");L==="auto"&&i.line===-1&&(L=-1),_.line=L,_.lineAlign=S.get("lineAlign","start"),_.snapToLines=S.get("snapToLines",!0),_.size=S.get("size",100),_.align=S.get("align",D);var R=S.get("position","auto");R==="auto"&&i.position===50&&(R=_.align==="start"||_.align==="left"?0:_.align==="end"||_.align==="right"?100:50),_.position=R}function a(){l=l.replace(/^\s+/,"")}if(a(),u.startTime=h(),a(),l.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);l=l.substr(3),a(),u.endTime=h(),a(),s(l,u)}function m(l){return l.replace(//gi,` `)}var p=function(){function l(){this.state="INITIAL",this.buffer="",this.decoder=new F,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var u=l.prototype;return u.parse=function(o){var h=this;o&&(h.buffer+=h.decoder.decode(o,{stream:!0}));function s(){var R=h.buffer,C=0;for(R=m(R);C9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(X.isFiniteNumber)(h)||!Object(X.isFiniteNumber)(s)||!Object(X.isFiniteNumber)(a)||!Object(X.isFiniteNumber)(A))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return h+=1e3*s,h+=60*1e3*a,h+=60*60*1e3*A,h},m=function(o){for(var h=5381,s=o.length;s;)h=h*33^o.charCodeAt(--s);return(h>>>0).toString()};function p(f,o,h){return m(f.toString())+m(o.toString())+m(h)}var l=function(o,h,s){var a=o[h],A=o[a.prevCC];if(!A||!A.new&&a.new){o.ccOffset=o.presentationOffset=a.start,a.new=!1;return}for(;(_=A)!==null&&_!==void 0&&_.new;){var _;o.ccOffset+=a.start-A.start,a.new=!1,a=A,A=o[a.prevCC]}o.presentationOffset=s};function u(f,o,h,s,a,A,_,S){var L=new F.VTTParser,R=Object(U.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(i,` `).split(` `),C=[],w=Object(G.toMpegTsClockFromTimescale)(o,h),x="00:00.000",c=0,T=0,y,v=!0,N=!1;L.oncue=function(B){var O=s[a],j=s.ccOffset,P=(c-w)/9e4;if(O!=null&&O.new&&(T!==void 0?j=s.ccOffset=O.start:l(s,a,P)),P&&(j=P-s.presentationOffset),N){var b=B.endTime-B.startTime,Y=Object(W.normalizePts)((B.startTime+j-T)*9e4,A*9e4)/9e4;B.startTime=Y,B.endTime=Y+b}var ee=B.text.trim();B.text=decodeURIComponent(encodeURIComponent(ee)),B.id||(B.id=p(B.startTime,B.endTime,ee)),B.endTime>0&&C.push(B)},L.onparsingerror=function(B){y=B},L.onflush=function(){if(y){S(y);return}_(C)},R.forEach(function(B){if(v)if(D(B,"X-TIMESTAMP-MAP=")){v=!1,N=!0,B.substr(16).split(",").forEach(function(O){D(O,"LOCAL:")?x=O.substr(6):D(O,"MPEGTS:")&&(c=parseInt(O.substr(7)))});try{T=g(x)/1e3}catch(O){N=!1,y=O}return}else B===""&&(v=!1);L.parse(B+` -`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/utils/logger.ts"),F=M("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,G=function(){function W(D){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=D?D.xhrSetup:null,this.stats=new F.LoadStats,this.retryDelay=0}var i=W.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var g=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),g&&(g.onreadystatechange=null,g.onprogress=null,g.readyState!==4&&(this.stats.aborted=!0,g.abort()))},i.abort=function(){var g;this.abortInternal(),(g=this.callbacks)!==null&&g!==void 0&&g.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(g,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=g,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},i.loadInternal=function(){var g=this.config,m=this.context;if(!g)return;var p=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(h){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var o in f)p.setRequestHeader(o,f[o])}catch(h){this.callbacks.onError({code:p.status,text:h.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),g.timeout),p.send()},i.readystatechange=function(){var g=this.context,m=this.loader,p=this.stats;if(!g||!m)return;var l=m.readyState,u=this.config;if(p.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),l===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var o,h;if(g.responseType==="arraybuffer"?(o=m.response,h=o.byteLength):(o=m.responseText,h=o.length),p.loaded=p.total=h,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,g,o,m),!this.callbacks)return;var a={url:m.responseURL,data:o};this.callbacks.onSuccess(a,p,g,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+g.url),this.callbacks.onError({code:f,text:m.statusText},g,m)):(X.logger.warn(f+" while loading "+g.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},i.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var g=this.callbacks;g&&(this.abortInternal(),g.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(g){var m=this.stats;m.loaded=g.loaded,g.lengthComputable&&(m.total=g.total)},i.getCacheAge=function(){var g=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");g=m?parseFloat(m):null}return g},W}();$.default=G}}).default})},vHTk:function(st,be,Q){st.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKdk:function(st,be,Q){"use strict";Q.r(be);var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("6UJt"),X=Q("DFOY"),F=Q("/zsF"),U=Q("PArb"),G=Q("5NDa"),W=Q("5rEg"),i=Q("OaEy"),D=Q("2fM7"),g=Q("14J3"),m=Q("BMrR"),p=Q("jCWc"),l=Q("kPKH"),u=Q("sPJy"),f=Q("bE4q"),o=Q("miYZ"),h=Q("tsqr"),s=Q("k1fw"),a=Q("9og8"),A=Q("y8nQ"),_=Q("Vl3Y"),S=Q("tJVT"),L=Q("PpiC"),R=Q("B9cy"),C=Q("Ol7k"),w=Q("lUTK"),x=Q("BvKs"),c=Q("WmNS"),T=Q.n(c),y=Q("q1tI"),v=Q.n(y),N=Q("Ot1p"),B=Q("Ty5D"),O=Q("9kvl"),j=Q("55Ip"),P=Q("gJ3r"),b=Q("eYnf"),Y=Q.n(b),ee=x.a.SubMenu,le=C.a.Content,ue=C.a.Sider,ke=function(Ce){var ce,pe,se,ae,Oe,Te,Ne,De,We=Ce.graduation,Le=Ce.globalSetting,Be=Ce.loading,Ge=Ce.user,oe=Ce.dispatch,ye=Object(L.a)(Ce,["graduation","globalSetting","loading","user","dispatch"]),we=Object(B.i)(),Ae=Object(B.h)(),Ue=Ge.userInfo,Ve=_.a.useForm(),Ze=Object(S.a)(Ve,1),$e=Ze[0],tt=We.editTopicData,et=function(){var Je=Object(a.a)(T.a.mark(function Me(){var ut,rt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ut=$e.getFieldsValue(),rt=Object(s.a)({},ut),rt.city&&(rt.province=rt.city[0],rt.city=rt.city[1]),Ee.next=5,oe({type:"graduation/editTopic",payload:{categoryId:we.categoryId,coursesId:we.coursesId,attachment_ids:[],graduation_topic:rt}});case 5:Fe=Ee.sent,Fe.status?h.b.error(Fe.message):O.d.push("/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id));case 7:case"end":return Ee.stop()}},Me)}));return function(){return Je.apply(this,arguments)}}();return Object(y.useEffect)(function(){function Je(){return Me.apply(this,arguments)}function Me(){return Me=Object(a.a)(T.a.mark(function ut(){var rt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,oe({type:"graduation/editTopicDefaultData",payload:Object(s.a)({},we)});case 2:rt=Ee.sent,Fe=Object(s.a)({},rt.selected_data),Fe.city=[Fe.province,Fe.city],$e.setFieldsValue(Fe);case 6:case"end":return Ee.stop()}},ut)})),Me.apply(this,arguments)}Je()},[we.coursesId]),v.a.createElement("section",{className:"edu-container"},v.a.createElement("section",{className:"animated fadeIn"},v.a.createElement("aside",{className:"mt10"},Ue&&v.a.createElement(f.a,{separator:">"},v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"".concat(Ue.first_category_url)},Ue==null||((ce=Ue.course)===null||ce===void 0)?void 0:ce.course_name)),v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(f.a.Item,null,"\u7F16\u8F91"))),v.a.createElement("aside",{className:[Y.a.title,"mt20"].join(" ")},v.a.createElement(m.a,{style:{width:"100%"}},v.a.createElement(l.a,{flex:"1"},v.a.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(l.a,null,v.a.createElement(j.a,{className:"font16 c-light-black",to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u8FD4\u56DE"))))),v.a.createElement("section",{className:[Y.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},v.a.createElement(_.a,{layout:"vertical",form:$e,scrollToFirstError:!0,initialValues:tt==null?void 0:tt.selected_data,onFinish:function(){var Je=Object(a.a)(T.a.mark(function Me(ut){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:et();case 1:case"end":return Fe.stop()}},Me)}));return function(Me){return Je.apply(this,arguments)}}()},v.a.createElement(_.a.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(pe=tt.teacher_list)===null||pe===void 0?void 0:pe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},v.a.createElement(W.a,{maxLength:60,size:"large",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},v.a.createElement(N.a,{watch:!0,defaultValue:(se=tt.selected_data)===null||se===void 0?void 0:se.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),v.a.createElement(m.a,{gutter:[20,0]},v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_type"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(ae=tt.topic_type)===null||ae===void 0?void 0:ae.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_source"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Oe=tt.topic_source)===null||Oe===void 0?void 0:Oe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_first"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Te=tt.topic_property_first)===null||Te===void 0?void 0:Te.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_second"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ne=tt.topic_property_second)===null||Ne===void 0?void 0:Ne.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"150px"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},v.a.createElement(W.a,{width:"200",size:"large",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),v.a.createElement(_.a.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(De=tt.topic_repeat)===null||De===void 0?void 0:De.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},v.a.createElement(X.a,{size:"large",style:{width:200},options:P.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),v.a.createElement("aside",{className:Y.a.btns},v.a.createElement($.a,{type:"primary",onClick:function(){$e.submit()}},"\u4FDD\u5B58"),v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(we.categoryId)},"\u53D6\u6D88")))};be.default=Object(O.a)(function(Se){var Ce=Se.graduation,ce=Se.loading,pe=Se.user,se=Se.globalSetting;return{graduation:Ce,globalSetting:se,user:pe,loading:ce.effects}})(ke)}}]); +`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/utils/logger.ts"),F=M("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,G=function(){function W(D){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=D?D.xhrSetup:null,this.stats=new F.LoadStats,this.retryDelay=0}var i=W.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var g=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),g&&(g.onreadystatechange=null,g.onprogress=null,g.readyState!==4&&(this.stats.aborted=!0,g.abort()))},i.abort=function(){var g;this.abortInternal(),(g=this.callbacks)!==null&&g!==void 0&&g.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(g,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=g,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},i.loadInternal=function(){var g=this.config,m=this.context;if(!g)return;var p=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(h){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var o in f)p.setRequestHeader(o,f[o])}catch(h){this.callbacks.onError({code:p.status,text:h.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),g.timeout),p.send()},i.readystatechange=function(){var g=this.context,m=this.loader,p=this.stats;if(!g||!m)return;var l=m.readyState,u=this.config;if(p.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),l===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var o,h;if(g.responseType==="arraybuffer"?(o=m.response,h=o.byteLength):(o=m.responseText,h=o.length),p.loaded=p.total=h,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,g,o,m),!this.callbacks)return;var a={url:m.responseURL,data:o};this.callbacks.onSuccess(a,p,g,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+g.url),this.callbacks.onError({code:f,text:m.statusText},g,m)):(X.logger.warn(f+" while loading "+g.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},i.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var g=this.callbacks;g&&(this.abortInternal(),g.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(g){var m=this.stats;m.loaded=g.loaded,g.lengthComputable&&(m.total=g.total)},i.getCacheAge=function(){var g=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");g=m?parseFloat(m):null}return g},W}();$.default=G}}).default})},vHTk:function(st,be,Q){st.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKdk:function(st,be,Q){"use strict";Q.r(be);var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("6UJt"),X=Q("DFOY"),F=Q("/zsF"),U=Q("PArb"),G=Q("5NDa"),W=Q("5rEg"),i=Q("OaEy"),D=Q("2fM7"),g=Q("14J3"),m=Q("BMrR"),p=Q("jCWc"),l=Q("kPKH"),u=Q("sPJy"),f=Q("bE4q"),o=Q("miYZ"),h=Q("tsqr"),s=Q("k1fw"),a=Q("9og8"),A=Q("y8nQ"),_=Q("Vl3Y"),S=Q("tJVT"),L=Q("PpiC"),R=Q("B9cy"),C=Q("Ol7k"),w=Q("lUTK"),x=Q("BvKs"),c=Q("WmNS"),T=Q.n(c),y=Q("q1tI"),v=Q.n(y),N=Q("Ot1p"),B=Q("Ty5D"),O=Q("9kvl"),j=Q("55Ip"),P=Q("gJ3r"),b=Q("eYnf"),Y=Q.n(b),ee=x.a.SubMenu,le=C.a.Content,ue=C.a.Sider,ke=function(Ce){var ce,pe,se,ae,Oe,Te,Ne,De,We=Ce.graduation,Le=Ce.globalSetting,Be=Ce.loading,Ge=Ce.user,oe=Ce.dispatch,ye=Object(L.a)(Ce,["graduation","globalSetting","loading","user","dispatch"]),we=Object(B.i)(),Ae=Object(B.h)(),Ue=Ge.userInfo,Ve=_.a.useForm(),Ze=Object(S.a)(Ve,1),$e=Ze[0],tt=We.editTopicData,et=function(){var Je=Object(a.a)(T.a.mark(function Me(){var ut,nt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ut=$e.getFieldsValue(),nt=Object(s.a)({},ut),nt.city&&(nt.province=nt.city[0],nt.city=nt.city[1]),Ee.next=5,oe({type:"graduation/editTopic",payload:{categoryId:we.categoryId,coursesId:we.coursesId,attachment_ids:[],graduation_topic:nt}});case 5:Fe=Ee.sent,Fe.status?h.b.error(Fe.message):O.d.push("/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id));case 7:case"end":return Ee.stop()}},Me)}));return function(){return Je.apply(this,arguments)}}();return Object(y.useEffect)(function(){function Je(){return Me.apply(this,arguments)}function Me(){return Me=Object(a.a)(T.a.mark(function ut(){var nt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,oe({type:"graduation/editTopicDefaultData",payload:Object(s.a)({},we)});case 2:nt=Ee.sent,Fe=Object(s.a)({},nt.selected_data),Fe.city=[Fe.province,Fe.city],$e.setFieldsValue(Fe);case 6:case"end":return Ee.stop()}},ut)})),Me.apply(this,arguments)}Je()},[we.coursesId]),v.a.createElement("section",{className:"edu-container"},v.a.createElement("section",{className:"animated fadeIn"},v.a.createElement("aside",{className:"mt10"},Ue&&v.a.createElement(f.a,{separator:">"},v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"".concat(Ue.first_category_url)},Ue==null||((ce=Ue.course)===null||ce===void 0)?void 0:ce.course_name)),v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(f.a.Item,null,"\u7F16\u8F91"))),v.a.createElement("aside",{className:[Y.a.title,"mt20"].join(" ")},v.a.createElement(m.a,{style:{width:"100%"}},v.a.createElement(l.a,{flex:"1"},v.a.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(l.a,null,v.a.createElement(j.a,{className:"font16 c-light-black",to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u8FD4\u56DE"))))),v.a.createElement("section",{className:[Y.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},v.a.createElement(_.a,{layout:"vertical",form:$e,scrollToFirstError:!0,initialValues:tt==null?void 0:tt.selected_data,onFinish:function(){var Je=Object(a.a)(T.a.mark(function Me(ut){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:et();case 1:case"end":return Fe.stop()}},Me)}));return function(Me){return Je.apply(this,arguments)}}()},v.a.createElement(_.a.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(pe=tt.teacher_list)===null||pe===void 0?void 0:pe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},v.a.createElement(W.a,{maxLength:60,size:"large",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},v.a.createElement(N.a,{watch:!0,defaultValue:(se=tt.selected_data)===null||se===void 0?void 0:se.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),v.a.createElement(m.a,{gutter:[20,0]},v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_type"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(ae=tt.topic_type)===null||ae===void 0?void 0:ae.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_source"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Oe=tt.topic_source)===null||Oe===void 0?void 0:Oe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_first"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Te=tt.topic_property_first)===null||Te===void 0?void 0:Te.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_second"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ne=tt.topic_property_second)===null||Ne===void 0?void 0:Ne.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"150px"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},v.a.createElement(W.a,{width:"200",size:"large",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),v.a.createElement(_.a.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(De=tt.topic_repeat)===null||De===void 0?void 0:De.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},v.a.createElement(X.a,{size:"large",style:{width:200},options:P.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),v.a.createElement("aside",{className:Y.a.btns},v.a.createElement($.a,{type:"primary",onClick:function(){$e.submit()}},"\u4FDD\u5B58"),v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(we.categoryId)},"\u53D6\u6D88")))};be.default=Object(O.a)(function(Se){var Ce=Se.graduation,ce=Se.loading,pe=Se.user,se=Se.globalSetting;return{graduation:Ce,globalSetting:se,user:pe,loading:ce.effects}})(ke)}}]); diff --git a/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js b/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js index 352936ac78..030563b94e 100644 --- a/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js +++ b/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[137,8],{"55Ip":function(je,U,n){"use strict";n.d(U,"a",function(){return g});var b=n("Ty5D"),y=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(y.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===D.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,C=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(C=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:_,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,C)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,E,a){return a}function h(v,E,a){var t=typeof v=="undefined"?E.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var E=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=E.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===D.ARROW_UP||f.keyCode===D.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===D.ENTER?e.handleChange(K):f.keyCode===D.ARROW_UP?e.handleChange(K-1):f.keyCode===D.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,C=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,De=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=De)return null;var de=h(void 0,this.state,this.props),Ce=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(Ce[0]=Object(L.cloneElement)(Ce[0],{className:"".concat(c,"-item-after-jump-prev")}),Ce.unshift(Be)),de-se>=be*2&&se!==de-2&&(Ce[Ce.length-1]=Object(L.cloneElement)(Ce[Ce.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ce.push(Ue)),P!==1&&Ce.unshift(ke),I!==de&&Ce.push(Ye)}var S=null;ee&&(S=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*De+1,se*De>k?k:se*De])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(b.a)({className:A()(c,d,Object(y.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),S,u.a.createElement("li",{title:_?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),Ce,u.a.createElement("li",{title:_?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:De,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,U,n){"use strict";var b=n("wCXF"),y=n("n6Qo");n.d(U,"b",function(){return y.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(U,"a",function(){return j.a}),U.c=b.b},"6eGT":function(je,U,n){"use strict";function b(y){return null}U.a=b},"815F":function(je,U,n){"use strict";n.d(U,"e",function(){return ne}),n.d(U,"c",function(){return u}),n.d(U,"d",function(){return V}),n.d(U,"a",function(){return Y}),n.d(U,"f",function(){return H}),n.d(U,"b",function(){return D});var b=n("KQm4"),y=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(y.a)({key:O},m),E=s(B);return E.length&&(v.children=E),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),E=ne(B.key,v),a=Object(y.a)(Object(y.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(b.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(b.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(E)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var E=p(O,v),a={node:O,index:h,pos:v,key:E,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var E=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:E,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,E=s.keyEntities,a=E[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function D(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,E=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(y.a)(Object(y.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:E,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,U,n){"use strict";function b(y){return null}U.a=b},LdHM:function(je,U,n){"use strict";n.d(U,"b",function(){return O}),n.d(U,"a",function(){return B});var b=n("1OyB"),y=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),D=n("+nKL"),r=n("8OUc"),s=function(_,ee){var ae=_.prefixCls,le=_.id,oe=_.flattenOptions,te=_.childrenAsData,C=_.values,X=_.searchValue,ve=_.multiple,pe=_.defaultActiveFirstOption,he=_.height,se=_.itemHeight,De=_.notFoundContent,Le=_.open,de=_.menuItemSelectedIcon,Ce=_.virtual,Be=_.onSelect,Ue=_.onToggleOpen,ke=_.onActiveValue,Ye=_.onScroll,Ae=_.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(w,S){return S[0]&&w[1]!==S[1]}),Qe=j.useRef(null),et=function(S){S.preventDefault()},tt=function(S){Qe.current&&Qe.current.scrollTo({index:S})},st=function(S){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,C=te.children,X=Object(ne.a)(te,["children"]);return _||!le?E(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(C)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var _=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,C=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,De=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,Ce=_==="multiple"||_==="tags",Be=X!==void 0?X:Ce||_==="combobox",Ue=ee||a(ae);if(Object(c.a)(_!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(_!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(_==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(_==="combobox"||!C,"`getInputElement` only work with `combobox` mode."),Object(c.b)(_!=="combobox"||!C||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&_!=="combobox"&&_!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var Ye=Object(d.d)(De);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ce||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var _=Object(J.a)(ee);function ee(){var ae;return Object(b.a)(this,ee),ae=_.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(y.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=U.c=F},NvD2:function(je,U,n){"use strict";n.d(U,"a",function(){return o});var b=n("Kwbf");function y(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var D=L.get(H)||new Set;D.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,E=A.has(v);h&&!E&&(h=!1),!B&&(E||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(y(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),D=0;D<=V;D+=1){var r=u.get(D)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var E=v.key,a=Y.has(E);B&&!a&&(B=!1),!m&&(a||H.has(E))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(y(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),D=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=D.get(g);O||(O=new Set,D.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(b.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,D,r,Y):s=j(H,L.halfCheckedKeys,D,r,Y),s}},OZM5:function(je,U,n){"use strict";n.d(U,"b",function(){return V}),n.d(U,"a",function(){return A}),n.d(U,"k",function(){return Y}),n.d(U,"h",function(){return H}),n.d(U,"i",function(){return D}),n.d(U,"g",function(){return r}),n.d(U,"c",function(){return s}),n.d(U,"d",function(){return x}),n.d(U,"j",function(){return O}),n.d(U,"e",function(){return h}),n.d(U,"f",function(){return B});var b=n("KQm4"),y=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var E=m.slice(),a=E.indexOf(v);return a>=0&&E.splice(a,1),E}function A(m,v){var E=m.slice();return E.indexOf(v)===-1&&E.push(v),E}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function D(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var E=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;E.push(c),t(d)})}return t(a.children),E}function s(m,v){var E=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return E<=t+c?-1:E>=e-c?1:0}function x(m,v){if(!m)return;var E=v.multiple;return E?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var E=v||{},a=E.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(y.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var E=new Set;function a(t){if(E.has(t))return;var e=v[t];if(!e)return;E.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(b.a)(E)}function B(m){var v={};return Object.keys(m).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(v[E]=m[E])}),v}},"SA+Z":function(je,U,n){var b=n("wTVA"),y=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return b(o)||y(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,U,n){"use strict";var b=n("rePB"),y=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),D=function(v){var E=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(E,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(y.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(y.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};U.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,U,n){"use strict";n.d(U,"a",function(){return L});var b=n("q1tI"),y=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,D=u.rowSpan,r=b.useContext(y.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return b.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:D}}}},p))}function j(u){return b.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=b.useContext(y.a),Y=A.prefixCls;return b.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=U.b=o,L={Cell:J,Row:j}},sR1s:function(je,U,n){"use strict";n.d(U,"b",function(){return J}),n.d(U,"a",function(){return j}),n.d(U,"c",function(){return o}),n.d(U,"d",function(){return ne});var b=n("U8pU"),y="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);D.displayName="ResizeObserver",U.a=D},wCXF:function(je,U,n){"use strict";n.d(U,"a",function(){return tt});var b=n("rePB"),y=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),D=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var w=P[l]||{},S=P[R]||{},T,M;w.fixed==="left"?T=I.left[l]:S.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var ye=q&&q.fixed==="right";$=!ye}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,w=l.cellComponent,S=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;S&&($=S(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,ye=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:w,prefixCls:G,key:re[ue]},ye,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=S.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,ye){return Re+ye},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},w=0;w=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||S)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),S=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),S({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(w.current).top,we=fe+w.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(fe){xe(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){ye.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(y.a)(Object(y.a)({},Pe),{},{scrollLeft:w.current.scrollLeft/((fe=w.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=w.current)===null||we===void 0?void 0:we.clientWidth)})})},[ye.isHiddenScrollBar]),W<=$||!re||ye.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(b.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(ye.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,w=l.style,S=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,ye=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,_e=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=S||Qe,Ge=!!Oe.length,We=o.useState(0),Se=Object(j.a)(We,2),Pe=Se[0],fe=Se[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(ye,{})},[ye]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",Dt=o.useMemo(function(){return it?"row":l.expandable&&_e===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),_t=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(_t,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),St=Object(j.a)(dt,2),yt=St[0],Mt=St[1],vn=Object(C.b)(Object(y.a)(Object(y.a)(Object(y.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),_e===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],yn=en[1],Cn=pe(new Map),nn=Object(j.a)(Cn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=De(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),Ct=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),Dn=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Dn(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),yn(xt0?[].concat(Object(y.a)(s),Object(y.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(y.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function D(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,E=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(b.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(b.a)(f,"title",""),Object(b.a)(f,"fixed",k?k.fixed:null),Object(b.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(b.a)(f,"render",function(_,ee,ae){var le=B(ee,ae),oe=h.has(le),te=E?E(ee):!0,C=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},C):C}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}U.b=D},"y0+3":function(je,U,n){"use strict";n.d(U,"a",function(){return A}),n.d(U,"b",function(){return H});var b=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function j(D,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return D.offsetHeight;if(r==="width")return D.offsetWidth}return r in y||(y[r]=b.test(r)),y[r]?parseFloat(s)||0:s}function o(D,r){var s=arguments.length,x=J(D);return r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,s===1?x:j(D,r,x[r]||D.style[r])}function ne(D,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&b.test(r)&&(s="".concat(s,"px")),D.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(D,p,r[p]);return J(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function u(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function V(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:r}}function A(){var D=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var r=D.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[137,8],{"55Ip":function(je,U,n){"use strict";n.d(U,"a",function(){return g});var b=n("Ty5D"),C=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(C.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===_.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,D=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,y=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:D,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(y=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:D,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:D,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,y)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,E,a){return a}function h(v,E,a){var t=typeof v=="undefined"?E.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var E=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=E.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===_.ARROW_UP||f.keyCode===_.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===_.ENTER?e.handleChange(K):f.keyCode===_.ARROW_UP?e.handleChange(K-1):f.keyCode===_.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,D=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,y=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,_e=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=_e)return null;var de=h(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(ye[0]=Object(L.cloneElement)(ye[0],{className:"".concat(c,"-item-after-jump-prev")}),ye.unshift(Be)),de-se>=be*2&&se!==de-2&&(ye[ye.length-1]=Object(L.cloneElement)(ye[ye.length-1],{className:"".concat(c,"-item-before-jump-next")}),ye.push(Ue)),P!==1&&ye.unshift(ke),I!==de&&ye.push(Ye)}var S=null;ee&&(S=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*_e+1,se*_e>k?k:se*_e])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(b.a)({className:A()(c,d,Object(C.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),S,u.a.createElement("li",{title:D?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ye,u.a.createElement("li",{title:D?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:_e,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,U,n){"use strict";var b=n("wCXF"),C=n("n6Qo");n.d(U,"b",function(){return C.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(U,"a",function(){return j.a}),U.c=b.b},"6eGT":function(je,U,n){"use strict";function b(C){return null}U.a=b},"815F":function(je,U,n){"use strict";n.d(U,"e",function(){return ne}),n.d(U,"c",function(){return u}),n.d(U,"d",function(){return V}),n.d(U,"a",function(){return Y}),n.d(U,"f",function(){return H}),n.d(U,"b",function(){return _});var b=n("KQm4"),C=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(C.a)({key:O},m),E=s(B);return E.length&&(v.children=E),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),E=ne(B.key,v),a=Object(C.a)(Object(C.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(b.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(b.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(E)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var E=p(O,v),a={node:O,index:h,pos:v,key:E,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var E=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:E,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,E=s.keyEntities,a=E[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function _(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,E=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:E,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,U,n){"use strict";function b(C){return null}U.a=b},LdHM:function(je,U,n){"use strict";n.d(U,"b",function(){return O}),n.d(U,"a",function(){return B});var b=n("1OyB"),C=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),_=n("+nKL"),r=n("8OUc"),s=function(D,ee){var ae=D.prefixCls,le=D.id,oe=D.flattenOptions,te=D.childrenAsData,y=D.values,X=D.searchValue,ve=D.multiple,pe=D.defaultActiveFirstOption,he=D.height,se=D.itemHeight,_e=D.notFoundContent,Le=D.open,de=D.menuItemSelectedIcon,ye=D.virtual,Be=D.onSelect,Ue=D.onToggleOpen,ke=D.onActiveValue,Ye=D.onScroll,Ae=D.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(w,S){return S[0]&&w[1]!==S[1]}),Qe=j.useRef(null),et=function(S){S.preventDefault()},tt=function(S){Qe.current&&Qe.current.scrollTo({index:S})},st=function(S){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,y=te.children,X=Object(ne.a)(te,["children"]);return D||!le?E(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(y)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var D=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,y=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,_e=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,ye=D==="multiple"||D==="tags",Be=X!==void 0?X:ye||D==="combobox",Ue=ee||a(ae);if(Object(c.a)(D!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),D==="tags"||D==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(D!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(D==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(D==="combobox"||!y,"`getInputElement` only work with `combobox` mode."),Object(c.b)(D!=="combobox"||!y||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&D!=="combobox"&&D!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(d.d)(_e);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ye||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var D=Object(J.a)(ee);function ee(){var ae;return Object(b.a)(this,ee),ae=D.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=U.c=F},NvD2:function(je,U,n){"use strict";n.d(U,"a",function(){return o});var b=n("Kwbf");function C(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var _=L.get(H)||new Set;_.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,E=A.has(v);h&&!E&&(h=!1),!B&&(E||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(C(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),_=0;_<=V;_+=1){var r=u.get(_)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var E=v.key,a=Y.has(E);B&&!a&&(B=!1),!m&&(a||H.has(E))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(C(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),_=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=_.get(g);O||(O=new Set,_.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(b.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,_,r,Y):s=j(H,L.halfCheckedKeys,_,r,Y),s}},OZM5:function(je,U,n){"use strict";n.d(U,"b",function(){return V}),n.d(U,"a",function(){return A}),n.d(U,"k",function(){return Y}),n.d(U,"h",function(){return H}),n.d(U,"i",function(){return _}),n.d(U,"g",function(){return r}),n.d(U,"c",function(){return s}),n.d(U,"d",function(){return x}),n.d(U,"j",function(){return O}),n.d(U,"e",function(){return h}),n.d(U,"f",function(){return B});var b=n("KQm4"),C=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var E=m.slice(),a=E.indexOf(v);return a>=0&&E.splice(a,1),E}function A(m,v){var E=m.slice();return E.indexOf(v)===-1&&E.push(v),E}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function _(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var E=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;E.push(c),t(d)})}return t(a.children),E}function s(m,v){var E=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return E<=t+c?-1:E>=e-c?1:0}function x(m,v){if(!m)return;var E=v.multiple;return E?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var E=v||{},a=E.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var E=new Set;function a(t){if(E.has(t))return;var e=v[t];if(!e)return;E.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(b.a)(E)}function B(m){var v={};return Object.keys(m).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(v[E]=m[E])}),v}},"SA+Z":function(je,U,n){var b=n("wTVA"),C=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return b(o)||C(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,U,n){"use strict";var b=n("rePB"),C=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),_=function(v){var E=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(E,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};U.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,U,n){"use strict";n.d(U,"a",function(){return L});var b=n("q1tI"),C=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,_=u.rowSpan,r=b.useContext(C.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return b.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:_}}}},p))}function j(u){return b.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=b.useContext(C.a),Y=A.prefixCls;return b.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=U.b=o,L={Cell:J,Row:j}},sR1s:function(je,U,n){"use strict";n.d(U,"b",function(){return J}),n.d(U,"a",function(){return j}),n.d(U,"c",function(){return o}),n.d(U,"d",function(){return ne});var b=n("U8pU"),C="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);_.displayName="ResizeObserver",U.a=_},wCXF:function(je,U,n){"use strict";n.d(U,"a",function(){return tt});var b=n("rePB"),C=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),_=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var w=P[l]||{},S=P[R]||{},T,M;w.fixed==="left"?T=I.left[l]:S.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var Ce=q&&q.fixed==="right";$=!Ce}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,w=l.cellComponent,S=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;S&&($=S(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,Ce=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:w,prefixCls:G,key:re[ue]},Ce,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=S.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,Ce){return Re+Ce},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},w=0;w=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||S)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),S=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),S({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(w.current).top,we=fe+w.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(fe){xe(function(we){return Object(C.a)(Object(C.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(C.a)(Object(C.a)({},Pe),{},{scrollLeft:w.current.scrollLeft/((fe=w.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=w.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ce.isHiddenScrollBar]),W<=$||!re||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(b.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,w=l.style,S=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,Ce=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,De=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=S||Qe,Ge=!!Oe.length,We=o.useState(0),Se=Object(j.a)(We,2),Pe=Se[0],fe=Se[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(Ce,{})},[Ce]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",_t=o.useMemo(function(){return it?"row":l.expandable&&De===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),Dt=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),St=Object(j.a)(dt,2),Ct=St[0],Mt=St[1],vn=Object(y.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),De===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),_n=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;_n(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(C.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function _(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,E=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(b.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(b.a)(f,"title",""),Object(b.a)(f,"fixed",k?k.fixed:null),Object(b.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(b.a)(f,"render",function(D,ee,ae){var le=B(ee,ae),oe=h.has(le),te=E?E(ee):!0,y=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},y):y}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}U.b=_},"y0+3":function(je,U,n){"use strict";n.d(U,"a",function(){return A}),n.d(U,"b",function(){return H});var b=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(_){return _.nodeType===1?_.ownerDocument.defaultView.getComputedStyle(_,null):{}}function j(_,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return _.offsetHeight;if(r==="width")return _.offsetWidth}return r in C||(C[r]=b.test(r)),C[r]?parseFloat(s)||0:s}function o(_,r){var s=arguments.length,x=J(_);return r=Q[r]?"cssFloat"in _.style?"cssFloat":"styleFloat":r,s===1?x:j(_,r,x[r]||_.style[r])}function ne(_,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in _.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&b.test(r)&&(s="".concat(s,"px")),_.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(_,p,r[p]);return J(_)}function L(_){return _===document.body?document.documentElement.clientWidth:_.offsetWidth}function u(_){return _===document.body?window.innerHeight||document.documentElement.clientHeight:_.offsetHeight}function V(){var _=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:_,height:r}}function A(){var _=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:_,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(_){var r=_.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Innovation__PublicDataSet.de2dd1e5.async.js b/p__Innovation__PublicDataSet.de2dd1e5.async.js index cc0c693bd8..9cd9da6d47 100644 --- a/p__Innovation__PublicDataSet.de2dd1e5.async.js +++ b/p__Innovation__PublicDataSet.de2dd1e5.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[180,6,8,14],{"+QRC":function($e,Oe,n){"use strict";var L=n("E9nw"),R={"text/plain":"Text","text/html":"Url",default:"Text"},Ae="Copy to clipboard: #{key}, Enter";function K(p){var q=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,q)}function i(p,q){var le,W,B,ae,xe,he,ce=!1;q||(q={}),le=q.debug||!1;try{B=L(),ae=document.createRange(),xe=document.getSelection(),he=document.createElement("span"),he.textContent=p,he.style.all="unset",he.style.position="fixed",he.style.top=0,he.style.clip="rect(0, 0, 0, 0)",he.style.whiteSpace="pre",he.style.webkitUserSelect="text",he.style.MozUserSelect="text",he.style.msUserSelect="text",he.style.userSelect="text",he.addEventListener("copy",function(D){if(D.stopPropagation(),q.format)if(D.preventDefault(),typeof D.clipboardData=="undefined"){le&&console.warn("unable to use e.clipboardData"),le&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=R[q.format]||R.default;window.clipboardData.setData(Y,p)}else D.clipboardData.clearData(),D.clipboardData.setData(q.format,p);q.onCopy&&(D.preventDefault(),q.onCopy(D.clipboardData))}),document.body.appendChild(he),ae.selectNodeContents(he),xe.addRange(ae);var U=document.execCommand("copy");if(!U)throw new Error("copy command was unsuccessful");ce=!0}catch(D){le&&console.error("unable to copy using execCommand: ",D),le&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(q.format||"text",p),q.onCopy&&q.onCopy(window.clipboardData),ce=!0}catch(Y){le&&console.error("unable to copy using clipboardData: ",Y),le&&console.error("falling back to prompt"),W=K("message"in q?q.message:Ae),window.prompt(W,p)}}finally{xe&&(typeof xe.removeRange=="function"?xe.removeRange(ae):xe.removeAllRanges()),he&&document.body.removeChild(he),B()}return ce}$e.exports=i},"/W/m":function($e,Oe,n){$e.exports={wrap:"wrap___2hbGX",colorBlue:"colorBlue___3-yNu",repeatedName:"repeatedName___TKF1j",header:"header___RnkHw",title:"title___2ZWhM"}},"/jad":function($e,Oe,n){$e.exports={colorBlue:"colorBlue___FpSkV",repeatedName:"repeatedName___2XphI"}},"6+eU":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return s});var L=n("wx14"),R=n("rePB"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("Ji7U"),q=n("LK+K"),le=n("q1tI"),W=n.n(le),B=n("TSYQ"),ae=n.n(B),xe=function(H){var x,S="".concat(H.rootPrefixCls,"-item"),h=ae()(S,"".concat(S,"-").concat(H.page),(x={},Object(R.a)(x,"".concat(S,"-active"),H.active),Object(R.a)(x,H.className,!!H.className),Object(R.a)(x,"".concat(S,"-disabled"),!H.page),x)),V=function(){H.onClick(H.page)},G=function(ge){H.onKeyPress(ge,H.onClick,H.page)};return W.a.createElement("li",{title:H.showTitle?H.page:null,className:h,onClick:V,onKeyPress:G,tabIndex:"0"},H.itemRender(H.page,"page",W.a.createElement("a",{rel:"nofollow"},H.page)))},he=xe,ce={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},U=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(){var S;Object(K.a)(this,x);for(var h=arguments.length,V=new Array(h),G=0;G=0||ee.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;S.setState({goInputText:""}),k(S.getValidValue())},S.go=function(ee){var ge=S.state.goInputText;if(ge==="")return;(ee.keyCode===ce.ENTER||ee.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,G=h.current;return!V||isNaN(V)?G:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,G=h.pageSizeOptions;return G.some(function(ee){return ee.toString()===V.toString()})?G:G.concat([V.toString()]).sort(function(ee,ge){var ie=isNaN(Number(ee))?0:Number(ee),k=isNaN(Number(ge))?0:Number(ge);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,G=V.pageSize,ee=V.locale,ge=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,j=V.disabled,A=this.state.goInputText,J="".concat(ge,"-options"),se=C,ye=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var te=ue.map(function($,ne){return W.a.createElement(se.Option,{key:ne,value:$.toString()},(b||h.buildOptionText)($))});ye=W.a.createElement(se,{disabled:j,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(G||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},te)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(J,"-quick-jumper-button")},ee.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},ee.jump_to,W.a.createElement("input",{disabled:j,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),ee.page,oe)),W.a.createElement("li",{className:"".concat(J)},ye,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var D=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var S=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/S)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(S){var h;Object(K.a)(this,x),h=H.call(this,S),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?F-2:0),b=2;b=G?ge=G:ge=Number(V),ge}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,G=h.total,ee=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:G>ee}},{key:"renderPrev",value:function(h){var V=this.props,G=V.prevIcon,ee=V.itemRender,ge=ee(h,"prev",this.getItemIcon(G,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"renderNext",value:function(h){var V=this.props,G=V.nextIcon,ee=V.itemRender,ge=ee(h,"next",this.getItemIcon(G,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"render",value:function(){var h=this,V=this.props,G=V.prefixCls,ee=V.className,ge=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,j=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ye=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,te=V.selectPrefixCls,$=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,Me=null,fe=null,_e=null,je=null,me=b&&b.goButton,Ee=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=Ee*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat(G,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=Ee*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat(G,"-item-before-jump-next")}),Q.push(Me)),Ce!==1&&Q.unshift(fe),we!==N&&Q.push(_e)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat(G,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,De=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()(G,ee,Object(R.a)({},"".concat(G,"-disabled"),ie)),style:ge,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:j?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(G,"-prev"),Object(R.a)({},"".concat(G,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:j?C.next_page:null,onClick:this.next,tabIndex:De?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat(G,"-next"),Object(R.a)({},"".concat(G,"-disabled"),De)),"aria-disabled":De},this.renderNext(Ue)),W.a.createElement(D,{disabled:ie,locale:C,rootPrefixCls:G,selectComponentClass:ue,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var G={};if("current"in h&&(G.current=h.current,h.current!==V.current&&(G.currentInputValue=G.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var ee=V.current,ge=a(h.pageSize,V,h);ee=ee>ge?ge:ee,"current"in h||(G.current=ee,G.currentInputValue=ee),G.pageSize=h.pageSize}return G}}]),x}(W.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Oe,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Oe,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Oe,"a",function(){return i.a}),Oe.c=L.b},"6eGT":function($e,Oe,n){"use strict";function L(R){return null}Oe.a=L},"815F":function($e,Oe,n){"use strict";n.d(Oe,"e",function(){return q}),n.d(Oe,"c",function(){return W}),n.d(Oe,"d",function(){return B}),n.d(Oe,"a",function(){return xe}),n.d(Oe,"f",function(){return he}),n.d(Oe,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,D){return U!=null?U:D}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!D.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),D.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function D(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=D(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return D(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(D===!0?[]:D),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),D===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,D,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};D(x)}s&&s.forEach(function(S,h){y(S,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function xe(U){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=D.initWrapper,O=D.processEntity,y=D.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,S=z.pos,h=z.key,V=z.parentPos,G=z.level,ee={node:H,index:x,key:h,pos:S,level:G},ge=q(h,S);a[S]=ee,v[ge]=ee,ee.parent=a[V],ee.parent&&(ee.parent.children=ee.parent.children||[],ee.parent.children.push(ee)),O&&O(ee,s)},l),y&&y(s),s}function he(U,D){var Y=D.expandedKeys,O=D.selectedKeys,y=D.loadedKeys,l=D.loadingKeys,a=D.checkedKeys,v=D.halfCheckedKeys,s=D.dragOverNodeKey,z=D.dropPosition,H=D.keyEntities,x=H[U],S={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return S}function ce(U){var D=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,S=U.active,h=Object(R.a)(Object(R.a)({},D),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,active:S});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),h}},BU3w:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var xe=Ae(W),he=xe.firstChild;return W.prepend&&xe.prepend?xe.prepend(B):W.prepend&&he?xe.insertBefore(B,he):xe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),xe=ae.parentNode;i.set(B,xe),xe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var D;he.nonce=(D=W.csp)===null||D===void 0?void 0:D.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Oe){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var j=C.headers||{};return j["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(A){j[A]!==null&&b.setRequestHeader(A,j[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var xe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),j=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ye=se.trim();return ye.charAt(0)==="."?ae(j.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?J===ye.replace(/\/.*$/,""):A===ye})}return!0};function he(C,b){var I=C.createReader(),j=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);j=j.concat(se);var ye=!se.length;ye?b(j):A()})}A()}var ce=function(b,I,j){var A=function J(se,ye){ye=ye||"",se.isFile?se.file(function(Z){j(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ye+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,D=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,j))continue;I[j]=C[j]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(I[j]=b[j]),I},{})},H=function(C){s(b,C);function b(){var I,j,A,J;a(this,b);for(var se=arguments.length,ye=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,De=Ee.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ye=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return j||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ye===null?J:ye,"__"),label:ye},ue),{},{options:x(oe)})}).filter(function(A){return A})}var S=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),G=n("Kwbf"),ee=n("WKfj");function ge(I){var j=I.mode,A=I.options,J=I.children,se=I.backfill,ye=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,te=I.onSearch,$=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=j==="multiple"||j==="tags",re=ue!==void 0?ue:Q||j==="combobox",Me=A||x(J);if(Object(G.a)(j!=="tags"||Me.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var fe=Me.some(function(me){return me.options?me.options.some(function(Ee){return typeof("value"in Ee?Ee.value:Ee.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(G.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(G.a)(j!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(G.a)(j==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(G.a)(j==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object(G.b)(j!=="combobox"||!oe||!ye||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!re&&j!=="combobox"&&j!=="tags"&&Object(G.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(G.b)(!$||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var _e=Object(ee.d)(g);Object(G.a)(!o||_e.every(function(me){return Object(V.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(G.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var je=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var Ee=me.type;if(Ee.isSelectOption)return!1;if(Ee.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(je=Ue.type,!1)});return!Be}return je=Ee,!0}),je&&Object(G.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(je.displayName||je.name||je,"`.")),Object(G.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=ge,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:ie,fillOptionsWithMissingValue:S.a}),F=function(I){Object(Ae.a)(A,I);var j=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=j.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Oe.c=C},NvD2:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),xe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,D=W;D>=0;D-=1){var Y=le.get(D)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||xe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&xe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(xe,ae))}}function i(q,le,W,B,ae){for(var xe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!xe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){xe.delete(z.key)})})}he=new Set;for(var D=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||D.has(y.parent.key))return;if(ae(y.parent.node)){D.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=xe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||xe.delete(l.key),s&&he.add(l.key),D.add(l.key)})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(R(he,xe))}}function p(q,le,W,B){var ae=[],xe;B?xe=B:xe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var D;return le===!0?D=K(he,ce,U,xe):D=i(he,le.halfCheckedKeys,ce,U,xe),D}},OZM5:function($e,Oe,n){"use strict";n.d(Oe,"b",function(){return B}),n.d(Oe,"a",function(){return ae}),n.d(Oe,"k",function(){return xe}),n.d(Oe,"h",function(){return he}),n.d(Oe,"i",function(){return ce}),n.d(Oe,"g",function(){return U}),n.d(Oe,"c",function(){return D}),n.d(Oe,"d",function(){return Y}),n.d(Oe,"j",function(){return l}),n.d(Oe,"e",function(){return a}),n.d(Oe,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function xe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function S(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var G=V.key,ee=V.children;H.push(G),S(ee)})}return S(x.children),H}function D(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),S=x.top,h=x.bottom,V=x.height,G=Math.max(V*le,W);return H<=S+G?-1:H>=h-G?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,S=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var G=V.children,ee=Object(Ae.a)(V,["children"]),ge=y(G,z);return i.a.createElement(q.a,Object.assign({},S(ee)),ge)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function a(s,z){var H=new Set;function x(S){if(H.has(S))return;var h=z[S];if(!h)return;H.add(S);var V=h.parent,G=h.node;if(G.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(S){x(S)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Oe,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Oe,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),xe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,S=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),G=[],ee=0;ee=0||ee.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;S.setState({goInputText:""}),k(S.getValidValue())},S.go=function(ee){var ge=S.state.goInputText;if(ge==="")return;(ee.keyCode===ce.ENTER||ee.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,G=h.current;return!V||isNaN(V)?G:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,G=h.pageSizeOptions;return G.some(function(ee){return ee.toString()===V.toString()})?G:G.concat([V.toString()]).sort(function(ee,ge){var ie=isNaN(Number(ee))?0:Number(ee),k=isNaN(Number(ge))?0:Number(ge);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,G=V.pageSize,ee=V.locale,ge=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,j=V.disabled,A=this.state.goInputText,J="".concat(ge,"-options"),se=C,ye=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var te=ue.map(function($,ne){return W.a.createElement(se.Option,{key:ne,value:$.toString()},(b||h.buildOptionText)($))});ye=W.a.createElement(se,{disabled:j,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(G||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},te)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(J,"-quick-jumper-button")},ee.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},ee.jump_to,W.a.createElement("input",{disabled:j,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),ee.page,oe)),W.a.createElement("li",{className:"".concat(J)},ye,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var S=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/S)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(S){var h;Object(K.a)(this,x),h=H.call(this,S),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?F-2:0),b=2;b=G?ge=G:ge=Number(V),ge}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,G=h.total,ee=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:G>ee}},{key:"renderPrev",value:function(h){var V=this.props,G=V.prevIcon,ee=V.itemRender,ge=ee(h,"prev",this.getItemIcon(G,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"renderNext",value:function(h){var V=this.props,G=V.nextIcon,ee=V.itemRender,ge=ee(h,"next",this.getItemIcon(G,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"render",value:function(){var h=this,V=this.props,G=V.prefixCls,ee=V.className,ge=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,j=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ye=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,te=V.selectPrefixCls,$=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,Me=null,fe=null,_e=null,je=null,me=b&&b.goButton,Ee=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=Ee*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat(G,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=Ee*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat(G,"-item-before-jump-next")}),Q.push(Me)),Ce!==1&&Q.unshift(fe),De!==N&&Q.push(_e)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat(G,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,we=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()(G,ee,Object(R.a)({},"".concat(G,"-disabled"),ie)),style:ge,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:j?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(G,"-prev"),Object(R.a)({},"".concat(G,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:j?C.next_page:null,onClick:this.next,tabIndex:we?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat(G,"-next"),Object(R.a)({},"".concat(G,"-disabled"),we)),"aria-disabled":we},this.renderNext(Ue)),W.a.createElement(w,{disabled:ie,locale:C,rootPrefixCls:G,selectComponentClass:ue,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var G={};if("current"in h&&(G.current=h.current,h.current!==V.current&&(G.currentInputValue=G.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var ee=V.current,ge=a(h.pageSize,V,h);ee=ee>ge?ge:ee,"current"in h||(G.current=ee,G.currentInputValue=ee),G.pageSize=h.pageSize}return G}}]),x}(W.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Oe,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Oe,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Oe,"a",function(){return i.a}),Oe.c=L.b},"6eGT":function($e,Oe,n){"use strict";function L(R){return null}Oe.a=L},"815F":function($e,Oe,n){"use strict";n.d(Oe,"e",function(){return q}),n.d(Oe,"c",function(){return W}),n.d(Oe,"d",function(){return B}),n.d(Oe,"a",function(){return xe}),n.d(Oe,"f",function(){return he}),n.d(Oe,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,w){return U!=null?U:w}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!w.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),w.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function w(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=w(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return w(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(w===!0?[]:w),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),w===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,w,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};w(x)}s&&s.forEach(function(S,h){y(S,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function xe(U){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=w.initWrapper,O=w.processEntity,y=w.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,S=z.pos,h=z.key,V=z.parentPos,G=z.level,ee={node:H,index:x,key:h,pos:S,level:G},ge=q(h,S);a[S]=ee,v[ge]=ee,ee.parent=a[V],ee.parent&&(ee.parent.children=ee.parent.children||[],ee.parent.children.push(ee)),O&&O(ee,s)},l),y&&y(s),s}function he(U,w){var Y=w.expandedKeys,O=w.selectedKeys,y=w.loadedKeys,l=w.loadingKeys,a=w.checkedKeys,v=w.halfCheckedKeys,s=w.dragOverNodeKey,z=w.dropPosition,H=w.keyEntities,x=H[U],S={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return S}function ce(U){var w=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,S=U.active,h=Object(R.a)(Object(R.a)({},w),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,active:S});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),h}},BU3w:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var xe=Ae(W),he=xe.firstChild;return W.prepend&&xe.prepend?xe.prepend(B):W.prepend&&he?xe.insertBefore(B,he):xe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),xe=ae.parentNode;i.set(B,xe),xe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var w;he.nonce=(w=W.csp)===null||w===void 0?void 0:w.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Oe){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var j=C.headers||{};return j["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(A){j[A]!==null&&b.setRequestHeader(A,j[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var xe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),j=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ye=se.trim();return ye.charAt(0)==="."?ae(j.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?J===ye.replace(/\/.*$/,""):A===ye})}return!0};function he(C,b){var I=C.createReader(),j=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);j=j.concat(se);var ye=!se.length;ye?b(j):A()})}A()}var ce=function(b,I,j){var A=function J(se,ye){ye=ye||"",se.isFile?se.file(function(Z){j(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ye+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,w=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,j))continue;I[j]=C[j]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(I[j]=b[j]),I},{})},H=function(C){s(b,C);function b(){var I,j,A,J;a(this,b);for(var se=arguments.length,ye=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,we=Ee.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ye=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return j||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ye===null?J:ye,"__"),label:ye},ue),{},{options:x(oe)})}).filter(function(A){return A})}var S=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),G=n("Kwbf"),ee=n("WKfj");function ge(I){var j=I.mode,A=I.options,J=I.children,se=I.backfill,ye=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,te=I.onSearch,$=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=j==="multiple"||j==="tags",re=ue!==void 0?ue:Q||j==="combobox",Me=A||x(J);if(Object(G.a)(j!=="tags"||Me.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var fe=Me.some(function(me){return me.options?me.options.some(function(Ee){return typeof("value"in Ee?Ee.value:Ee.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(G.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(G.a)(j!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(G.a)(j==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(G.a)(j==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object(G.b)(j!=="combobox"||!oe||!ye||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!re&&j!=="combobox"&&j!=="tags"&&Object(G.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(G.b)(!$||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var _e=Object(ee.d)(g);Object(G.a)(!o||_e.every(function(me){return Object(V.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(G.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var je=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var Ee=me.type;if(Ee.isSelectOption)return!1;if(Ee.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(je=Ue.type,!1)});return!Be}return je=Ee,!0}),je&&Object(G.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(je.displayName||je.name||je,"`.")),Object(G.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=ge,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:ie,fillOptionsWithMissingValue:S.a}),F=function(I){Object(Ae.a)(A,I);var j=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=j.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Oe.c=C},NvD2:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),xe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,w=W;w>=0;w-=1){var Y=le.get(w)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||xe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&xe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(xe,ae))}}function i(q,le,W,B,ae){for(var xe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!xe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){xe.delete(z.key)})})}he=new Set;for(var w=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||w.has(y.parent.key))return;if(ae(y.parent.node)){w.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=xe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||xe.delete(l.key),s&&he.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(R(he,xe))}}function p(q,le,W,B){var ae=[],xe;B?xe=B:xe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var w;return le===!0?w=K(he,ce,U,xe):w=i(he,le.halfCheckedKeys,ce,U,xe),w}},OZM5:function($e,Oe,n){"use strict";n.d(Oe,"b",function(){return B}),n.d(Oe,"a",function(){return ae}),n.d(Oe,"k",function(){return xe}),n.d(Oe,"h",function(){return he}),n.d(Oe,"i",function(){return ce}),n.d(Oe,"g",function(){return U}),n.d(Oe,"c",function(){return w}),n.d(Oe,"d",function(){return Y}),n.d(Oe,"j",function(){return l}),n.d(Oe,"e",function(){return a}),n.d(Oe,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function xe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function S(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var G=V.key,ee=V.children;H.push(G),S(ee)})}return S(x.children),H}function w(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),S=x.top,h=x.bottom,V=x.height,G=Math.max(V*le,W);return H<=S+G?-1:H>=h-G?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,S=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var G=V.children,ee=Object(Ae.a)(V,["children"]),ge=y(G,z);return i.a.createElement(q.a,Object.assign({},S(ee)),ge)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function a(s,z){var H=new Set;function x(S){if(H.has(S))return;var h=z[S];if(!h)return;H.add(S);var V=h.parent,G=h.node;if(G.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(S){x(S)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Oe,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Oe,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),xe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,S=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),G=[],ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var te=window.getComputedStyle(Z),$=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),o=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),g=ge.map(function(N){return"".concat(N,":").concat(te.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:$};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var $=F(Z,oe),ne=$.paddingSize,o=$.borderSize,g=$.boxSizing,c=$.sizingStyle;k.setAttribute("style","".concat(c,";").concat(ee)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,Me;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||te!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),te!==null&&(Q=fe*te,g==="border-box"&&(Q=Q+ne+o),Me=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:Me,resize:"none"}}var b=n("Gytx"),I=n.n(b),j;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(j||(j={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;return Object(R.a)(this,ue),$=oe.call(this,te),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ne){$.textArea=ne},$.handleResize=function(ne){var o=$.state.resizeStatus,g=$.props,c=g.autoSize,N=g.onResize;if(o!==j.NONE)return;typeof N=="function"&&N(ne),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ne=$.props.autoSize;if(!ne||!$.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C($.textArea,!1,o,g);$.setState({textareaStyles:c,resizeStatus:j.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ne=$.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,Me=$.state,fe=Me.textareaStyles,_e=Me.resizeStatus,je=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=G()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in je&&(je.value=je.value||"");var Ee=Object(q.a)(Object(q.a)(Object(q.a)({},$.props.style),fe),_e===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(S,{onResize:$.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},je,{className:me,style:Ee,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:j.NONE},$}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!I()($.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 $=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;Object(R.a)(this,ue),$=oe.call(this,te),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var g=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),g&&g(o)},$.handleKeyDown=function(o){var g=$.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return $.state={value:ne},$}return Object(Ae.a)(ue,[{key:"setValue",value:function($,ne){"value"in this.props||this.setState({value:$},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ue}(p.Component),ye=Oe.default=se},Zss7:function($e,Oe,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=g.format||c.format,this._gradientType=g.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}B.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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),g,c,N,Q,re,Me;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?Me=N/12.92:Me=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*Me},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(ge,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ye(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,Me=!1,fe=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(te(o.r)&&te(o.g)&&te(o.b)?(g=xe(o.r,o.g,o.b),Me=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):te(o.h)&&te(o.s)&&te(o.v)?(N=ye(o.s),Q=ye(o.v),g=D(o.h,N,Q),Me=!0,fe="hsv"):te(o.h)&&te(o.s)&&te(o.l)&&(N=ye(o.s),re=ye(o.l),g=ce(o.h,N,re),Me=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:Me,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function xe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=(N+Q)/2;if(N==Q)re=Me=0;else{var _e=N-Q;Me=fe>.5?_e/(2-N-Q):_e/(N+Q);switch(N){case o:re=(g-c)/_e+(g1&&(Ee-=1),Ee<1/6?je+(me-je)*6*Ee:Ee<1/2?me:Ee<2/3?je+(me-je)*(2/3-Ee)*6:je}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,_e=2*c-fe;N=Me(_e,fe,o+1/3),Q=Me(_e,fe,o),re=Me(_e,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=N,_e=N-Q;if(Me=N===0?0:_e/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/_e+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function ge(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,Me=[],fe=1/g;g--;)Me.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return Me}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,Me={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(Me)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,Me,fe,_e;c=c||{},Me=c.includeFallbackColors,fe=c.level,_e=c.size;for(var je=0;jeQ&&(Q=re,N=B(g[je]));return B.isReadable(o,N,{level:fe,size:_e})||!Me?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=B.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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function j(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ye(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return j(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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 te(o){return!!ue.CSS_UNIT.exec(o)}function $(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Oe,n,Oe,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Oe,n){"use strict";n.r(Oe);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),xe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),D=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),S=n("9kvl"),h=n("ErOA"),V=n("wd/R"),G=n.n(V),ee=n("/W/m"),ge=n.n(ee),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(j){var A=j.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ye=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),te=ue[0],$=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],Me=Q[1],fe=Object(z.useState)(""),_e=Object(U.a)(fe,2),je=_e[0],me=_e[1];Object(z.useEffect)(function(){Ee()},[]);function Ee(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ye});case 2:Ne=P.sent,$(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ce,we,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ce=Ne[0])===null||Ce===void 0||((we=Ce.item)===null||we===void 0))?void 0:we.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:je}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),Ee(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:ge.a.header},H.a.createElement("span",{className:ge.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:te==null?void 0:te.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return G()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ye.page,total:te==null?void 0:te.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ye.page=Ne,Z(Object(q.a)({},ye)),Ee()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Me(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){Me(0)}},H.a.createElement("div",{className:ge.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:Me,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:je,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Oe.default=Object(S.a)(function(I){var j=I.innovation;return{innovation:j}})(b)},aaBP:function($e,Oe,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,S;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),S=new Uint8Array(this,v,z),x.set(S),H)}}();function xe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(xe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?D(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?D(a):a},Y})},bT9E:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Oe,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Oe.a=Ae},ffu0:function($e,Oe,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),xe=n("q1tI"),he=n.n(xe),ce=n("ErOA"),U=n("9kvl"),D=n("/jad"),Y=n.n(D),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,S=z.setloading,h=z.uploading,V=z.setmd5List,G=z.content,ee=z.shixunHomeworks,ge=z.globalSetting,ie=Object(q.a)(z,["dispatch","user","setloading","uploading","setmd5List","content","shixunHomeworks","globalSetting"]);Object(xe.useEffect)(function(){ee.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(ae.a.mark(function je(){var me,Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:ee.actionTabs.params},!0,!0);case 2:Ee=Ue.sent,Ee.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),S(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ee==null?void 0:Ee.data));case 4:case"end":return Ue.stop()}},je)})),_e.apply(this,arguments)}},[ee.actionTabs.key]);var k=Object(xe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(xe.useState)(0),j=Object(R.a)(I,2),A=j[0],J=j[1],se=Object(xe.useState)(!1),ye=Object(R.a)(se,2),Z=ye[0],oe=ye[1],ue={onRemove:function(_e){b(Object(i.a)(C.filter(function(je){return je.name!==_e.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function je(me){var Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Ee=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>Ee)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},je)}));function _e(je){return fe.apply(this,arguments)}return _e}()};Object(xe.useEffect)(function(){if(h===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),S(101);return}te(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[h]);function te(fe,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(ae.a.mark(function fe(_e,je){var me,Ee,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(_e),P.next=3,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:_e.size,dirName:je}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((Ee=Ne.data)===null||Ee===void 0)?void 0:Ee.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return S(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,_e,je),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,_e,je);case 15:case"end":return P.stop()}},fe)})),$.apply(this,arguments)}function ne(fe,_e,je){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(_e,je,me){var Ee,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((ge==null||((Ee=ge.setting)===null||Ee===void 0)?void 0:Ee.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:je.name,md5:_e,size:1,oldName:je.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,je,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var _e=new y.a;if(!fe.size)return _e.appendBinary(fe),_e.end();if(fe.size<2048)for(var je=Math.ceil(fe.size/2),me=0;me2048)for(var je=Math.ceil(fe.size/2e3),me=0;mek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var D=function(F){var C=F.className,b=F.percent,I=F.prefixCls,j=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ye=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var te=Array.isArray(b)?b:[b],$=Array.isArray(j)?j:[j],ne=p(te),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` - L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),Me=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ye,strokeWidth:Z||J,fillOpacity:"0"}),te.map(function(fe,_e){var je={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(Me,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=$[_e]||$[$.length-1];return Me+=fe,R.a.createElement("path",{key:_e,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[_e],style:je})}))};D.defaultProps=i;var Y=D;function O(){return O=Object.assign||function(k){for(var F=1;F1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var te=window.getComputedStyle(Z),$=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),o=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),g=ge.map(function(N){return"".concat(N,":").concat(te.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:$};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var $=F(Z,oe),ne=$.paddingSize,o=$.borderSize,g=$.boxSizing,c=$.sizingStyle;k.setAttribute("style","".concat(c,";").concat(ee)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,Me;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||te!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),te!==null&&(Q=fe*te,g==="border-box"&&(Q=Q+ne+o),Me=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:Me,resize:"none"}}var b=n("Gytx"),I=n.n(b),j;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(j||(j={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;return Object(R.a)(this,ue),$=oe.call(this,te),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ne){$.textArea=ne},$.handleResize=function(ne){var o=$.state.resizeStatus,g=$.props,c=g.autoSize,N=g.onResize;if(o!==j.NONE)return;typeof N=="function"&&N(ne),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ne=$.props.autoSize;if(!ne||!$.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C($.textArea,!1,o,g);$.setState({textareaStyles:c,resizeStatus:j.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ne=$.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,Me=$.state,fe=Me.textareaStyles,_e=Me.resizeStatus,je=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=G()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in je&&(je.value=je.value||"");var Ee=Object(q.a)(Object(q.a)(Object(q.a)({},$.props.style),fe),_e===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(S,{onResize:$.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},je,{className:me,style:Ee,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:j.NONE},$}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!I()($.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 $=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;Object(R.a)(this,ue),$=oe.call(this,te),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var g=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),g&&g(o)},$.handleKeyDown=function(o){var g=$.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return $.state={value:ne},$}return Object(Ae.a)(ue,[{key:"setValue",value:function($,ne){"value"in this.props||this.setState({value:$},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ue}(p.Component),ye=Oe.default=se},Zss7:function($e,Oe,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=g.format||c.format,this._gradientType=g.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}B.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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),g,c,N,Q,re,Me;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?Me=N/12.92:Me=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*Me},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(ge,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ye(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,Me=!1,fe=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(te(o.r)&&te(o.g)&&te(o.b)?(g=xe(o.r,o.g,o.b),Me=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):te(o.h)&&te(o.s)&&te(o.v)?(N=ye(o.s),Q=ye(o.v),g=w(o.h,N,Q),Me=!0,fe="hsv"):te(o.h)&&te(o.s)&&te(o.l)&&(N=ye(o.s),re=ye(o.l),g=ce(o.h,N,re),Me=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:Me,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function xe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=(N+Q)/2;if(N==Q)re=Me=0;else{var _e=N-Q;Me=fe>.5?_e/(2-N-Q):_e/(N+Q);switch(N){case o:re=(g-c)/_e+(g1&&(Ee-=1),Ee<1/6?je+(me-je)*6*Ee:Ee<1/2?me:Ee<2/3?je+(me-je)*(2/3-Ee)*6:je}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,_e=2*c-fe;N=Me(_e,fe,o+1/3),Q=Me(_e,fe,o),re=Me(_e,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=N,_e=N-Q;if(Me=N===0?0:_e/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/_e+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function ge(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,Me=[],fe=1/g;g--;)Me.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return Me}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,Me={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(Me)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,Me,fe,_e;c=c||{},Me=c.includeFallbackColors,fe=c.level,_e=c.size;for(var je=0;jeQ&&(Q=re,N=B(g[je]));return B.isReadable(o,N,{level:fe,size:_e})||!Me?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=B.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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function j(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ye(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return j(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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 te(o){return!!ue.CSS_UNIT.exec(o)}function $(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Oe,n,Oe,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Oe,n){"use strict";n.r(Oe);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),xe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),w=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),S=n("9kvl"),h=n("ErOA"),V=n("wd/R"),G=n.n(V),ee=n("/W/m"),ge=n.n(ee),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(j){var A=j.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ye=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),te=ue[0],$=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],Me=Q[1],fe=Object(z.useState)(""),_e=Object(U.a)(fe,2),je=_e[0],me=_e[1];Object(z.useEffect)(function(){Ee()},[]);function Ee(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ye});case 2:Ne=P.sent,$(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ce,De,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ce=Ne[0])===null||Ce===void 0||((De=Ce.item)===null||De===void 0))?void 0:De.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:je}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),Ee(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:ge.a.header},H.a.createElement("span",{className:ge.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:te==null?void 0:te.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return G()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ye.page,total:te==null?void 0:te.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ye.page=Ne,Z(Object(q.a)({},ye)),Ee()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Me(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){Me(0)}},H.a.createElement("div",{className:ge.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:Me,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:je,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Oe.default=Object(S.a)(function(I){var j=I.innovation;return{innovation:j}})(b)},aaBP:function($e,Oe,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,S;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),S=new Uint8Array(this,v,z),x.set(S),H)}}();function xe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(xe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?w(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?w(a):a},Y})},bT9E:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Oe,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Oe.a=Ae},ffu0:function($e,Oe,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),xe=n("q1tI"),he=n.n(xe),ce=n("ErOA"),U=n("9kvl"),w=n("/jad"),Y=n.n(w),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,S=z.setloading,h=z.uploading,V=z.setmd5List,G=z.content,ee=z.shixunHomeworks,ge=z.globalSetting,ie=Object(q.a)(z,["dispatch","user","setloading","uploading","setmd5List","content","shixunHomeworks","globalSetting"]);Object(xe.useEffect)(function(){ee.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(ae.a.mark(function je(){var me,Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:ee.actionTabs.params},!0,!0);case 2:Ee=Ue.sent,Ee.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),S(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ee==null?void 0:Ee.data));case 4:case"end":return Ue.stop()}},je)})),_e.apply(this,arguments)}},[ee.actionTabs.key]);var k=Object(xe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(xe.useState)(0),j=Object(R.a)(I,2),A=j[0],J=j[1],se=Object(xe.useState)(!1),ye=Object(R.a)(se,2),Z=ye[0],oe=ye[1],ue={onRemove:function(_e){b(Object(i.a)(C.filter(function(je){return je.name!==_e.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function je(me){var Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Ee=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>Ee)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},je)}));function _e(je){return fe.apply(this,arguments)}return _e}()};Object(xe.useEffect)(function(){if(h===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),S(101);return}te(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[h]);function te(fe,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(ae.a.mark(function fe(_e,je){var me,Ee,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(_e),P.next=3,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:_e.size,dirName:je}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((Ee=Ne.data)===null||Ee===void 0)?void 0:Ee.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return S(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,_e,je),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,_e,je);case 15:case"end":return P.stop()}},fe)})),$.apply(this,arguments)}function ne(fe,_e,je){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(_e,je,me){var Ee,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((ge==null||((Ee=ge.setting)===null||Ee===void 0)?void 0:Ee.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:je.name,md5:_e,size:1,oldName:je.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,je,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var _e=new y.a;if(!fe.size)return _e.appendBinary(fe),_e.end();if(fe.size<2048)for(var je=Math.ceil(fe.size/2),me=0;me2048)for(var je=Math.ceil(fe.size/2e3),me=0;mek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var w=function(F){var C=F.className,b=F.percent,I=F.prefixCls,j=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ye=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var te=Array.isArray(b)?b:[b],$=Array.isArray(j)?j:[j],ne=p(te),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` + L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),Me=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ye,strokeWidth:Z||J,fillOpacity:"0"}),te.map(function(fe,_e){var je={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(Me,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=$[_e]||$[$.length-1];return Me+=fe,R.a.createElement("path",{key:_e,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[_e],style:je})}))};w.defaultProps=i;var Y=w;function O(){return O=Object.assign||function(k){for(var F=1;Fk.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function x(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var S=0;function h(k){return+k.replace("%","")}function V(k){return Array.isArray(k)?k:[k]}function G(k,F,C,b){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,j=arguments.length>5?arguments[5]:void 0,A=50-b/2,J=0,se=-A,ye=0,Z=-2*A;switch(j){case"left":J=-A,se=0,ye=2*A,Z=0;break;case"right":J=A,se=0,ye=-2*A,Z=0;break;case"bottom":se=A,Z=2*A;break;default:}var oe="M 50,50 m ".concat(J,",").concat(se,` a `).concat(A,",").concat(A," 0 1 1 ").concat(ye,",").concat(-Z,` - a `).concat(A,",").concat(A," 0 1 1 ").concat(-ye,",").concat(Z),ue=Math.PI*2*A,te={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:te}}var ee=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,j=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ye=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,te=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(L.useMemo)(function(){return S+=1,S},[]),ne=G(0,100,J,b,j,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(je){return Object.prototype.toString.call(je)==="[object Object]"}),re=p(c),Me=y(re,1),fe=Me[0],_e=function(){var me=0;return c.map(function(Ee,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat($,")"):"",Xe=G(me,Ee,Ue,b,j,A);return me+=Ee,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:Ee===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ye},te),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(je,me){return h(je)-h(me)}).map(function(je,me){return R.a.createElement("stop",{key:me,offset:je,stopColor:Q[je]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),_e().reverse())};ee.defaultProps=i;var ge=ee,ie={Line:Y,Circle:ge}},hW8S:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return K}),n.d(Oe,"c",function(){return i}),n.d(Oe,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),xe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),M=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tw&&(de=w-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),S=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),G=n("bT9E"),ee=n("2GS6"),ge=n("Gytx"),ie=n.n(ge),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ye=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,te=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),M=(E||"").split("[FBAN");if(typeof M[1]!="undefined"){var f=M,e=Object(R.a)(f,1);E=e[0]}if(M=E.split("Twitter"),typeof M[1]!="undefined"){var r=M,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(j,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(j,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ye,E),device:ne(se,E)||ne(ye,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne($,E),chrome:ne(te,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne($,E)||ne(te,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,M){var f=E||"";return u.key||"".concat(f,"item_").concat(M)}function re(u){return"".concat(u,"-menu-")}function Me(u,E){var M=-1;i.Children.forEach(u,function(f){M+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){M+=1,E(e,M)}):E(f,M)})}function fe(u,E,M){if(!u||M.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?M.find=!0:f.props.children&&fe(f.props.children,E,M)}})}var _e=["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"],je=function(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(M){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,M,f){E&&Object(k.a)(E.style)==="object"&&(E.style[M]=f)},Ee=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ce=n("QC+M");function we(u,E,M){return M?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,M){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),M)}function Te(u,E,M,f){for(var e=M.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):M(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[M,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){var M=i.useState(Ht),f=Object(R.a)(M,2),e=f[0],r=f[1],t=St(),d=Object(R.a)(t,2),m=d[0],T=d[1];function _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var w=Pn.indexOf(e),X=Pn[w+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=Object(i.useRef)(),M=Object(i.useRef)(u);M.current=u;var f=i.useCallback(function(t){M.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,M,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,T=m===void 0?!0:m,_=f.motionDeadline,w=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=Dt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=Dt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Dt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=M();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),wt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;wt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),Dn=Object(R.a)(An,2),Wn=Dn[0],Mt=Dn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&w&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(H.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(i.Component),en=Hn;function Ln(u){var E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function M(e){return!!(e.motionName&&E)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,T=m===void 0?!0:m,_=e.forceRender,w=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=M(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!w)ze=null;else if(Qe===Ot||!M(e))ot?ze=w(Object(K.a)({},rt),We):!T&&Lt.current?ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=w(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,w=f;w1});return m.forEach(function(T){M=M.filter(function(_){var w=_.key,X=_.status;return w!==T||X!==vn}),M.forEach(function(_){_.key===T&&(_.status=_n)})}),M}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,M=function(f){Object(S.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(z.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var T=m.keyEntities;return{keyEntities:T.map(function(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,w=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),w)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,w=Mn(T),X=zt(_,w);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return M.defaultProps={component:"div"},M}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,M=u.motion,f=u.animation,e=u.transitionName;return M||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=u.prefixCls,M=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:M,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){var M=Object(i.useState)(null),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(w){d.current||r(w)}function T(){Xe.a.cancel(t.current)}function _(w){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),w==null||w()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function w(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},w)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),M=Object(R.a)(E,2),f=M[0],e=M[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,T=f.height;u.indexOf("height")!==-1&&T?d.height=T:u.indexOf("minHeight")!==-1&&T&&(d.minHeight=T),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,E){var M=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,T=u.destroyPopupOnHide,_=u.forceRender,w=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(M,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function wt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!M?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(w==null?void 0:w.points)&&(Tt==="align"||Tt==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:M,ref:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:wt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:w,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){var M=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,T=t.popupMotion,_=T===void 0?{}:T,w=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(M,"-content")},r)),w&&(de=w(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(M,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var M=u.visible,f=u.mobile,e=Object(Ae.a)(u,Ra),r=Object(i.useState)(M),t=Object(R.a)(r,2),d=t[0],m=t[1],T=Object(i.useState)(!1),_=Object(R.a)(T,2),w=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(M),M&&f&&X(Re())},[M,f]);var de=w?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(M){Object(S.a)(e,M);var f=Object(h.a)(e);function e(r){var t;Object(z.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var T=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,T,T?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var T;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object(Ne.a)((T=t.popupRef.current)===null||T===void 0?void 0:T.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var T;if(t.preClickTime&&t.preTouchTime?T=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?T=t.preClickTime:t.preTouchTime&&(T=t.preTouchTime),Math.abs(T-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var T=m.target,_=t.getRootDomNode(),w=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(w,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,w=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return w&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,w=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:w,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,w=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=w(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,T=m(t.getRootDomNode()).createElement("div");return T.style.position="absolute",T.style.top="0",T.style.left="0",T.style.width="100%",t.attachParent(T),T},t.setPoint=function(m){var T=t.props.alignPoint;if(!T||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(T){t.fireEvents(m,T)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,T=t.builtinPlacements;return d&&T?Pe(T,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,T=this.state.popupVisible;this.clearDelayTimer(),T!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:T}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var T=this,_=d*1e3;if(this.clearDelayTimer(),_){var w=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,w),T.clearDelayTimer()},_)}else this.setPopupVisible(t,m)}},{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(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var T=this.props[t];T&&T(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,T=d.forceRender,_=d.alignPoint,w=d.className,X=d.autoDestroy,pe=i.Children.only(m),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,_&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Se=q()(pe&&pe.props&&pe.props.className,w);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,T={};return m!==void 0&&d.popupVisible!==m&&(T.popupVisible=m,T.prevPopupVisible=d.popupVisible),T}}]),e}(i.Component);return E.contextType=ra,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Ja=Ya(Ce.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Da={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(E,M,f){var e=re(M),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var w=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(w===D.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(w===D.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(w===D.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(w===D.a.UP||w===D.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onMouseEnter,de=w.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onItemHover,de=w.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onItemHover,Se=w.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var w=Object(x.a)(e),X=w.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,w){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:w,open:_})};w==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),w=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:w.level+1,inlineIndent:w.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:w.selectedKeys,eventKey:"".concat(w.eventKey,"-menu-"),openKeys:w.openKeys,motion:w.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:w.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:w.subMenuCloseDelay,forceSubMenuRender:w.forceSubMenuRender,triggerSubMenuAction:w.triggerSubMenuAction,builtinPlacements:w.builtinPlacements,defaultActiveFirst:w.store.getState().defaultActiveFirst[re(w.eventKey)],multiple:w.multiple,prefixCls:w.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:w.itemIcon,expandIcon:w.expandIcon,direction:w.direction}},e.getMotion=function(_,w){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!w||_!=="inline"});return tt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var T=!1;return m&&(T=m[t]),mn(r,t,T),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,T=r.isOpen,_=function(){e.setState({mode:t,isOpen:T})},w=T!==this.state.isOpen,X=t!==this.state.mode;if((X||w)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!T)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,T=r.direction,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var w=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(w,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(w)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),w=this.getMode(),X=q()(T,"".concat(T,"-").concat(w),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;w!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(wt){return wt.parentNode},ot=pn[w],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;_e.forEach(function(wt){return delete d[wt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},Da),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),M}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var M=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:M.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,wa="menuitem-overflowed",Qa=.5,Pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,T=d.level,_=d.mode,w=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(w,"-").concat(X):"",dt={};return _e.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(w,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(wa)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return je(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=je(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=je(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new Be.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{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(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,T){var _=m;if(r.props.mode==="horizontal"){var w=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(wa)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),w=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[w,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,w=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(w))}}]),M}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,M){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,M))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var M=E,f=u.children,e=u.eventKey;if(M){var r;if(Me(f,function(t,d){t&&t.props&&!t.props.disabled&&M===Q(t,e,d)&&(r=!0)}),r)return M}return M=null,u.defaultActiveFirst&&Me(f,function(t,d){!M&&t&&!t.props.disabled&&(M=Q(t,e,d))}),M}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;return Object(z.a)(this,M),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.onKeyDown(r))}),m)return 1;var T=null;return(d===D.a.UP||d===D.a.DOWN)&&(T=e.step(d===D.a.UP?-1:1)),T?(r.preventDefault(),Sn(e.props.store,En(e.props),T.props.eventKey),typeof t=="function"&&t(T),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Sn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var T=-1;if(t.every(function(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,w=_;do{var X=t[w];if(!X||X.props.disabled)w=(w+1)%m;else return X}while(w!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,w=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=w===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(ee.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:w,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||Ee())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:w||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),T={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,T)},f.store.setState({activeKey:Object(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!ie()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Sn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Sn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=q()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,T=r.eventKey,_=r.visible,w=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return _e.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:w,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,Ve,T||"0-menu-")}))}}]),M}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,M){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.a)(d)==="object"&&d)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var _=t[M];return _||(T?null:t.other)}var Ua=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),w=_.selectedKeys,X=d.key;T.multiple?w=w.concat([X]):w=[X],"selectedKeys"in T||e.store.setState({selectedKeys:w}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:w}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,w=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),w([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),w=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}w=w||Se};Array.isArray(d)?d.forEach(X):X(d),w&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),w=d.key,X=_.indexOf(w);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,T=d.target.className,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,w=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||w)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(V.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(K.a)({},Object(G.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(K.a)(Object(K.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(V.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),T={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),M}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===D.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,T=r.onSelect,_=r.onDeselect,w=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?w?_(X):T(X):w||T(X)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,r=Object(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(K.a)(Object(K.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},T=Object(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(w){return delete r[w]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(G.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),M}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var M=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.subMenuKey;return{active:M[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(M,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),T="".concat(d,"-item-group-list"),_=e.title,w=e.children;return _e.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(w,this.renderInnerMenuItem)))}}]),M}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var M=E.className,f=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(M," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=n("eDIo");function eo(u,E){var M=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,E){var M=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,T=u.moreTransitionName,_=u.style,w=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(M,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var wt=Ct.key,$t=Ct.domEvent;Se(wt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),wt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){wt=(wt+pt+$t)%$t;var Ut=Ct[wt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[D.a.DOWN,D.a.SPACE,D.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case D.a.UP:rt(-1),pt.preventDefault();break;case D.a.DOWN:rt(1),pt.preventDefault();break;case D.a.ESC:at(!1);break;case D.a.SPACE:case D.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(M,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(M,"-nav-operations"),w),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:M,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=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(u)||/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(u.substr(0,4)))}function za(u,E){var M=Object(i.useState)(),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),w=Object(R.a)(_,2),X=w[0],pe=w[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function M(f){u.current.delete(f)}return[E,M]}function Wa(u,E){var M=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(M.current):d;m!==M.current&&E(m,M.current),M.current=m,r({})}return[M.current,t]}var Ba=function(E){var M=E.position,f=E.prefixCls,e=E.extra;if(!e)return null;var r,t=e;return M==="right"&&(r=t.right||!t.left&&t||null),M==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,E){var M,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,w=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],Dn=Object(i.useState)(0),Wn=Object(R.a)(Dn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?w?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(wt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;w?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),wt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),wt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:w,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),w||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=gt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),So=[].concat(Object(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],wn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){xe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return wn&&(ze?(w?yt.right=wn.right:yt.left=wn.left,yt.width=wn.width):(yt.top=wn.top,yt.height=wn.height)),Ao(),Ro.current=xe()(function(){fr(yt)}),Ao},[wn,ze,w]),Object(i.useEffect)(function(){jo()},[_,wn,Fa,ze]),Object(i.useEffect)(function(){so()},[w,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var Do=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,wo,Po;return ze?w?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Oe.a=ce},wCXF:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),xe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),D=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ce,we,Pe){var Te=Ce[P]||{},Re=Ce[ve]||{},be,De;Te.fixed==="left"?be=we.left[P]:Re.fixed==="right"&&(De=we.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ce[ve+1],qe=Ce[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(De!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(De!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:De,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:we.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ce=P.stickyOffsets,we=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,De=p.useContext(y.a),Ke=De.prefixCls,Le=De.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,we,Ce,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ce(Re,be){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[De]=ve[De]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ce(qe,Ke,De+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[De].push(Ge),Ke+=He,He});return Le}Ce(P,0);for(var we=ve.length,Pe=function(be){ve[be].forEach(function(De){!("rowSpan"in De)&&!De.hasSubColumns&&(De.rowSpan=we-be)})},Te=0;Te=0;be-=1){var De=ve[be],Ke=Ce&&Ce[be],Le=Ke&&Ke[S.a];(De||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:De,minWidth:De}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function G(P,ve){return Object(p.useMemo)(function(){for(var Ce=[],we=0;we1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(_e.b)(Te.current).top,Dt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;Dt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(Dt){return Object(R.a)(Object(R.a)({},Dt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ce,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,Dt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=Te.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(je);function Ee(P,ve){return p.useMemo(function(){var Ce=!!P;return{isSticky:Ce,stickyClassName:Ce?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ce=P.prefixCls,we=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,De=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var Dt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(Dt,lt)||ut},[Dt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(S.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?Me(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),Jn=p.useRef(),Ta=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),Da=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(Da,Pt.length,Le),nn=De&&Object(a.d)(De.y),pn=De&&Object(a.d)(De.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=Ee(Kt,Ce),Kn=In.isSticky,wa=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:De.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:De.x===!0?"auto":De.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;if(!ka()||ka()===za){var ba;La(za),ea(zn,Ta.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(D),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(D),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function xe(U){for(var D=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(D){var Y=D.fixed,O=Object(K.a)(D,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,D){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,S=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),G=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(j,A,J){var se=v(A,J),ye=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ye,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(te){return te.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,S]),ee=i.useMemo(function(){var ie=G;return D&&(ie=D(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[D,G,S]),ge=i.useMemo(function(){return S==="rtl"?he(ae(ee)):ae(ee)},[ee,S]);return[ee,ge]}Oe.b=ce},"y0+3":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return ae}),n.d(Oe,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,D){if(U=U.toLowerCase(),D==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(D)||0:D}function p(ce,U){var D=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,D===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,D){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof D=="number"&&L.test(U)&&(D="".concat(D,"px")),ce.style[U]=D,D;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),D=document.documentElement;return{left:U.left+(window.pageXOffset||D.scrollLeft)-(D.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||D.scrollTop)-(D.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(A,",").concat(A," 0 1 1 ").concat(-ye,",").concat(Z),ue=Math.PI*2*A,te={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:te}}var ee=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,j=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ye=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,te=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(L.useMemo)(function(){return S+=1,S},[]),ne=G(0,100,J,b,j,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(je){return Object.prototype.toString.call(je)==="[object Object]"}),re=p(c),Me=y(re,1),fe=Me[0],_e=function(){var me=0;return c.map(function(Ee,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat($,")"):"",Xe=G(me,Ee,Ue,b,j,A);return me+=Ee,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:Ee===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ye},te),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(je,me){return h(je)-h(me)}).map(function(je,me){return R.a.createElement("stop",{key:me,offset:je,stopColor:Q[je]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),_e().reverse())};ee.defaultProps=i;var ge=ee,ie={Line:Y,Circle:ge}},hW8S:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return K}),n.d(Oe,"c",function(){return i}),n.d(Oe,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),xe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),M=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tD&&(de=D-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),S=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),G=n("bT9E"),ee=n("2GS6"),ge=n("Gytx"),ie=n.n(ge),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ye=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,te=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),M=(E||"").split("[FBAN");if(typeof M[1]!="undefined"){var f=M,e=Object(R.a)(f,1);E=e[0]}if(M=E.split("Twitter"),typeof M[1]!="undefined"){var r=M,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(j,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(j,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ye,E),device:ne(se,E)||ne(ye,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne($,E),chrome:ne(te,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne($,E)||ne(te,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,M){var f=E||"";return u.key||"".concat(f,"item_").concat(M)}function re(u){return"".concat(u,"-menu-")}function Me(u,E){var M=-1;i.Children.forEach(u,function(f){M+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){M+=1,E(e,M)}):E(f,M)})}function fe(u,E,M){if(!u||M.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?M.find=!0:f.props.children&&fe(f.props.children,E,M)}})}var _e=["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"],je=function(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(M){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,M,f){E&&Object(k.a)(E.style)==="object"&&(E.style[M]=f)},Ee=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ce=n("QC+M");function De(u,E,M){return M?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,M){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),M)}function Te(u,E,M,f){for(var e=M.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):M(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[M,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){var M=i.useState(Ht),f=Object(R.a)(M,2),e=f[0],r=f[1],t=St(),d=Object(R.a)(t,2),m=d[0],T=d[1];function _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var D=Pn.indexOf(e),X=Pn[D+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=Object(i.useRef)(),M=Object(i.useRef)(u);M.current=u;var f=i.useCallback(function(t){M.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,M,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,T=m===void 0?!0:m,_=f.motionDeadline,D=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=wt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=wt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=wt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=M();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),Dt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;Dt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),wn=Object(R.a)(An,2),Wn=wn[0],Mt=wn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&D&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(H.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(i.Component),en=Hn;function Ln(u){var E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function M(e){return!!(e.motionName&&E)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,T=m===void 0?!0:m,_=e.forceRender,D=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=M(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!D)ze=null;else if(Qe===Ot||!M(e))ot?ze=D(Object(K.a)({},rt),We):!T&&Lt.current?ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=D(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,D=f;D1});return m.forEach(function(T){M=M.filter(function(_){var D=_.key,X=_.status;return D!==T||X!==vn}),M.forEach(function(_){_.key===T&&(_.status=_n)})}),M}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,M=function(f){Object(S.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(z.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var T=m.keyEntities;return{keyEntities:T.map(function(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,D=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),D)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,D=Mn(T),X=zt(_,D);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return M.defaultProps={component:"div"},M}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,M=u.motion,f=u.animation,e=u.transitionName;return M||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=u.prefixCls,M=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:M,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){var M=Object(i.useState)(null),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(D){d.current||r(D)}function T(){Xe.a.cancel(t.current)}function _(D){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),D==null||D()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function D(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},D)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),M=Object(R.a)(E,2),f=M[0],e=M[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,T=f.height;u.indexOf("height")!==-1&&T?d.height=T:u.indexOf("minHeight")!==-1&&T&&(d.minHeight=T),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,E){var M=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,T=u.destroyPopupOnHide,_=u.forceRender,D=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(M,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function Dt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!M?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(D==null?void 0:D.points)&&(Tt==="align"||Tt==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:M,ref:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:Dt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:D,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){var M=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,T=t.popupMotion,_=T===void 0?{}:T,D=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(M,"-content")},r)),D&&(de=D(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(M,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var M=u.visible,f=u.mobile,e=Object(Ae.a)(u,Ra),r=Object(i.useState)(M),t=Object(R.a)(r,2),d=t[0],m=t[1],T=Object(i.useState)(!1),_=Object(R.a)(T,2),D=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(M),M&&f&&X(Re())},[M,f]);var de=D?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(M){Object(S.a)(e,M);var f=Object(h.a)(e);function e(r){var t;Object(z.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var T=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,T,T?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var T;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object(Ne.a)((T=t.popupRef.current)===null||T===void 0?void 0:T.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var T;if(t.preClickTime&&t.preTouchTime?T=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?T=t.preClickTime:t.preTouchTime&&(T=t.preTouchTime),Math.abs(T-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var T=m.target,_=t.getRootDomNode(),D=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(D,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,D=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return D&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,D=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:D,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,D=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=D(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,T=m(t.getRootDomNode()).createElement("div");return T.style.position="absolute",T.style.top="0",T.style.left="0",T.style.width="100%",t.attachParent(T),T},t.setPoint=function(m){var T=t.props.alignPoint;if(!T||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(T){t.fireEvents(m,T)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,T=t.builtinPlacements;return d&&T?Pe(T,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,T=this.state.popupVisible;this.clearDelayTimer(),T!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:T}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var T=this,_=d*1e3;if(this.clearDelayTimer(),_){var D=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,D),T.clearDelayTimer()},_)}else this.setPopupVisible(t,m)}},{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(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var T=this.props[t];T&&T(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,T=d.forceRender,_=d.alignPoint,D=d.className,X=d.autoDestroy,pe=i.Children.only(m),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,_&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Se=q()(pe&&pe.props&&pe.props.className,D);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,T={};return m!==void 0&&d.popupVisible!==m&&(T.popupVisible=m,T.prevPopupVisible=d.popupVisible),T}}]),e}(i.Component);return E.contextType=ra,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Ja=Ya(Ce.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(E,M,f){var e=re(M),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var D=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(D===w.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(D===w.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(D===w.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(D===w.a.UP||D===w.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onMouseEnter,de=D.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onItemHover,de=D.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onItemHover,Se=D.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var D=Object(x.a)(e),X=D.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,D){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:D,open:_})};D==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),D=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:D.level+1,inlineIndent:D.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:D.selectedKeys,eventKey:"".concat(D.eventKey,"-menu-"),openKeys:D.openKeys,motion:D.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:D.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:D.subMenuCloseDelay,forceSubMenuRender:D.forceSubMenuRender,triggerSubMenuAction:D.triggerSubMenuAction,builtinPlacements:D.builtinPlacements,defaultActiveFirst:D.store.getState().defaultActiveFirst[re(D.eventKey)],multiple:D.multiple,prefixCls:D.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:D.itemIcon,expandIcon:D.expandIcon,direction:D.direction}},e.getMotion=function(_,D){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!D||_!=="inline"});return tt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var T=!1;return m&&(T=m[t]),mn(r,t,T),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,T=r.isOpen,_=function(){e.setState({mode:t,isOpen:T})},D=T!==this.state.isOpen,X=t!==this.state.mode;if((X||D)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!T)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,T=r.direction,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var D=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(D,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(D)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),D=this.getMode(),X=q()(T,"".concat(T,"-").concat(D),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;D!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Dt){return Dt.parentNode},ot=pn[D],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;_e.forEach(function(Dt){return delete d[Dt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},wa),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),M}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var M=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:M.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,Da="menuitem-overflowed",Qa=.5,Pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,T=d.level,_=d.mode,D=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(D,"-").concat(X):"",dt={};return _e.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(D,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(Da)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return je(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=je(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=je(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new Be.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{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(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,T){var _=m;if(r.props.mode==="horizontal"){var D=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(Da)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),D=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[D,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,D=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(D))}}]),M}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,M){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,M))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var M=E,f=u.children,e=u.eventKey;if(M){var r;if(Me(f,function(t,d){t&&t.props&&!t.props.disabled&&M===Q(t,e,d)&&(r=!0)}),r)return M}return M=null,u.defaultActiveFirst&&Me(f,function(t,d){!M&&t&&!t.props.disabled&&(M=Q(t,e,d))}),M}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;return Object(z.a)(this,M),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.onKeyDown(r))}),m)return 1;var T=null;return(d===w.a.UP||d===w.a.DOWN)&&(T=e.step(d===w.a.UP?-1:1)),T?(r.preventDefault(),Sn(e.props.store,En(e.props),T.props.eventKey),typeof t=="function"&&t(T),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Sn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var T=-1;if(t.every(function(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,D=_;do{var X=t[D];if(!X||X.props.disabled)D=(D+1)%m;else return X}while(D!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,D=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=D===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(ee.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:D,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||Ee())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:D||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),T={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,T)},f.store.setState({activeKey:Object(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!ie()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Sn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Sn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=q()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,T=r.eventKey,_=r.visible,D=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return _e.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:D,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,Ve,T||"0-menu-")}))}}]),M}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,M){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.a)(d)==="object"&&d)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var _=t[M];return _||(T?null:t.other)}var Ua=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),D=_.selectedKeys,X=d.key;T.multiple?D=D.concat([X]):D=[X],"selectedKeys"in T||e.store.setState({selectedKeys:D}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:D}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,D=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),D([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),D=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}D=D||Se};Array.isArray(d)?d.forEach(X):X(d),D&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),D=d.key,X=_.indexOf(D);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,T=d.target.className,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,D=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||D)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(V.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(K.a)({},Object(G.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(K.a)(Object(K.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(V.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),T={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),M}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===w.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,T=r.onSelect,_=r.onDeselect,D=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?D?_(X):T(X):D||T(X)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,r=Object(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(K.a)(Object(K.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},T=Object(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(D){return delete r[D]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(G.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),M}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var M=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.subMenuKey;return{active:M[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(M,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),T="".concat(d,"-item-group-list"),_=e.title,D=e.children;return _e.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(D,this.renderInnerMenuItem)))}}]),M}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var M=E.className,f=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(M," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=n("eDIo");function eo(u,E){var M=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,E){var M=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,T=u.moreTransitionName,_=u.style,D=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(M,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var Dt=Ct.key,$t=Ct.domEvent;Se(Dt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),Dt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){Dt=(Dt+pt+$t)%$t;var Ut=Ct[Dt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[w.a.DOWN,w.a.SPACE,w.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case w.a.UP:rt(-1),pt.preventDefault();break;case w.a.DOWN:rt(1),pt.preventDefault();break;case w.a.ESC:at(!1);break;case w.a.SPACE:case w.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(M,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(M,"-nav-operations"),D),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:M,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=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(u)||/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(u.substr(0,4)))}function za(u,E){var M=Object(i.useState)(),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),D=Object(R.a)(_,2),X=D[0],pe=D[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function M(f){u.current.delete(f)}return[E,M]}function Wa(u,E){var M=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(M.current):d;m!==M.current&&E(m,M.current),M.current=m,r({})}return[M.current,t]}var Ba=function(E){var M=E.position,f=E.prefixCls,e=E.extra;if(!e)return null;var r,t=e;return M==="right"&&(r=t.right||!t.left&&t||null),M==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,E){var M,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,D=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],wn=Object(i.useState)(0),Wn=Object(R.a)(wn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?D?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(Dt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;D?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),Dt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),Dt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:D,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),D||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=gt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),So=[].concat(Object(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],Dn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){xe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return Dn&&(ze?(D?yt.right=Dn.right:yt.left=Dn.left,yt.width=Dn.width):(yt.top=Dn.top,yt.height=Dn.height)),Ao(),Ro.current=xe()(function(){fr(yt)}),Ao},[Dn,ze,D]),Object(i.useEffect)(function(){jo()},[_,Dn,Fa,ze]),Object(i.useEffect)(function(){so()},[D,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var wo=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,Do,Po;return ze?D?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Oe.a=ce},wCXF:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),xe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),w=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ce,De,Pe){var Te=Ce[P]||{},Re=Ce[ve]||{},be,we;Te.fixed==="left"?be=De.left[P]:Re.fixed==="right"&&(we=De.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ce[ve+1],qe=Ce[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(we!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(we!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:we,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:De.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ce=P.stickyOffsets,De=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,we=p.useContext(y.a),Ke=we.prefixCls,Le=we.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,De,Ce,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ce(Re,be){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[we]=ve[we]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ce(qe,Ke,we+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[we].push(Ge),Ke+=He,He});return Le}Ce(P,0);for(var De=ve.length,Pe=function(be){ve[be].forEach(function(we){!("rowSpan"in we)&&!we.hasSubColumns&&(we.rowSpan=De-be)})},Te=0;Te=0;be-=1){var we=ve[be],Ke=Ce&&Ce[be],Le=Ke&&Ke[S.a];(we||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:we,minWidth:we}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function G(P,ve){return Object(p.useMemo)(function(){for(var Ce=[],De=0;De1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(_e.b)(Te.current).top,wt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;wt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(wt){return Object(R.a)(Object(R.a)({},wt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ce,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,wt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((wt=Te.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(je);function Ee(P,ve){return p.useMemo(function(){var Ce=!!P;return{isSticky:Ce,stickyClassName:Ce?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ce=P.prefixCls,De=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,we=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var wt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(wt,lt)||ut},[wt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(S.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?Me(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),Jn=p.useRef(),Ta=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),wa=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(wa,Pt.length,Le),nn=we&&Object(a.d)(we.y),pn=we&&Object(a.d)(we.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=Ee(Kt,Ce),Kn=In.isSticky,Da=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:we.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:we.x===!0?"auto":we.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;if(!ka()||ka()===za){var ba;La(za),ea(zn,Ta.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(w),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(w),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function xe(U){for(var w=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(w){var Y=w.fixed,O=Object(K.a)(w,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,w){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,S=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),G=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(j,A,J){var se=v(A,J),ye=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ye,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(te){return te.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,S]),ee=i.useMemo(function(){var ie=G;return w&&(ie=w(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[w,G,S]),ge=i.useMemo(function(){return S==="rtl"?he(ae(ee)):ae(ee)},[ee,S]);return[ee,ge]}Oe.b=ce},"y0+3":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return ae}),n.d(Oe,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,w){if(U=U.toLowerCase(),w==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(w)||0:w}function p(ce,U){var w=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,w===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,w){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof w=="number"&&L.test(U)&&(w="".concat(w,"px")),ce.style[U]=w,w;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),w=document.documentElement;return{left:U.left+(window.pageXOffset||w.scrollLeft)-(w.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||w.scrollTop)-(w.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__User__Detail__Classrooms__index.ec1b0bcd.async.js b/p__User__Detail__Classrooms__index.ec1b0bcd.async.js index 6b6d4e5aaa..ad1b43d2f1 100644 --- a/p__User__Detail__Classrooms__index.ec1b0bcd.async.js +++ b/p__User__Detail__Classrooms__index.ec1b0bcd.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[259,8,10],{"+GGh":function(J,E){J.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7VXQm4VVXZfvc+5yKzMqiAgpggqGihoBI4Zz+iQA7VX2Fa+GeFmjnmjAZmDlnmDGaDY5KzJmmWAiKIoCihmAN/ySTDvRcF4e691v+s4VvrW2vvcwFB8r/lcy/n7LP32nu9+/3e7/2+tU+CLfwjpaw0NmJfIcRBSYK+Uoq+QNIdEu0AtJMSLaSUABJzZPWn+iUlEiRQb6l37MvsfbOdfs+9qf5htnav6ffsvoP9+mPSsej4+iM0Jr5vPR4aIF0o9po6ziccPx1GnbWQZvzqNfef/rd9j7+uXhPmIqn36XN6H+rf+n/+dTV+2o/6kNq/39YfT72m3le7Vj/Cnq76tx4TGx9tS2Olz5RByc/EZgBNSlm3enU+TAiMkhJHSshtHULchKkrok5WnUY8SQxwNNf2hAmMRWD5ARMG9H4tWAxQ/XHoPQ5kt4cAVBZrHgF2Mw/kePwBYC2ozUDo+OoTFosMr24y7eTpCbY3SzzBZvLN9TMAor/55DMAWYAawHkwanAkBkgejAROvy8POPOe+r/+DL8R2N+14LNZAJNStmpoEGcikWdLKTvpiTbjt0zkJ5z4J5hgDjhiEY01zwyOXAL2spNtZ8GAx5wtAdgxEk14xJh6v3qGOdvFLGlhwW4SN/4YyHRw4lkGWn8DEPsyINkhqG2ILYhBPBNZkEjzOQNcYiILngCYFoAJ387MhQZm8Lq5ERzg1DW078cMZdjPMxyBrTlu+kQAU2GwYXV+shS4HJA7xUwQhjB+J9vwVRIiOZB8fCSgxmGxVriii2+ugmeamD1jINn9EbtE4GiWcdm5hGHa7LOMMQtA4myjgMNkgLmHolDpmMO8Xgh9jOk8Y9kwrMFTZCweBl1YJEC60OrBpc8tlislSNtkgDU0ZEcJyGshsSftj3RTyDY8DHqQ0WT5z/gwYmck0Gc018EkW6qOgU0hyQQkAiVjKQ6gCBh0IYJwG9wpZpyffPwsvBCI7CxpQLEJKw2DFmQObIEmsmAmIKoIYNkmABPTUoEOY4Ar01c0Bxx4zekujrONBpiUMmlYnY2TAhcWgUoXn7NVOCFmxi2DWZo3UcVPWnPC338+DIMUEnniwIFg1bANoYkN3z6hKN4kHvDhfuz4Kf5bgV82fv45SlzcHR8JZhNmiInY30onCQpnkoXPKEzaa8kBw/WT0Vs8iSiGT7eNvTEJSGXsSMB101nCWpsMMCll2/rG/C5IObJ0fyWhhYtcg2LOVDrQM3CVZYf2rmThylxLC1wmjHkmZ47EjhUzldWHPAz7z7OzY+cUjJ8BrBD+SliRk6AGkxXLjmFi9rLb+OyQ2I2HNgMYCp8UqoIkwF7dECTm/Hxm6PUY6asCW0Xj4aF0A9iys76BrVatlT2xLnsUwN5lmxb1lmUp+0aYzTGms0K+jHn03UFnGv12IcwCLdZrBl5G+xj28rosAB7p9xjAdFk2afz+BgrDM7G2DY8MXJQJhnrHgsnpJBLVnuGcfrPMRKHKC/DYiiDbwtsVOiu0VgQPobXA6DJIpsk2BlwUr2puq8CVrM9nSCl3qLmRmyDLGnzCYpvATToPjc2xBhf3BJaIDaOEgbJJCrfcQii7GYpa0CcWnnUjVqwh3mNPjN8onCE4CxBTkYfFAVfbmvDivuBpSRNODdN7z8sDisS5YS8OUGLF5kAXTO9GoKymBtNhsSF7oRZz6X2T2CaTx56YeZ1pKworLMTpKbPbkS2hJ5v8VzKC7ElocOj3ufnJw6yJmep9PTRrQXiNZGmxhgXiVLb+eKI/7w1fm4UGx4+Z0t805vj+6rsQZl8KssiCkekZiMJZoKMYu3EDlYdH87nQYCV/zYGWrAhrW5BN4TPSyGB1IXkjUMU2KQWYEvT1jflDNTVXs5NOe+ci36KxTBgrUcKse5/FhWGSxDyZtT5jbJ7ROIvEZm1pxhgxctGi2FBiYs6fH4tsB+e0Ry49N1hdNunMVHMdvV0RG6TceCU7g7JIprGYliL7j0BIQA6YtcTzcopjEzBWCrD6xqbx5dmiDR8MEH4CS7LGguC2zGbvHjdOJ6iL2R0HErGYByTZEVEm6mKhf59nk5p7GNebzb0+5KG0zEujffnxxzovZK8yc5JPJoU0o4GYCLcOPL3uhT1tw4BEmShljZqwrQPvslFrtFpfi8Acu/Y+bJvLxLXZJmDL3WjBZ7TPJeWTNXfEtHPsTbl7l4Q1p48S9gpSeDvhzbEM2RpcvLvXLEj0GALw2AHTCTkwc13FP8MSg3j8gfYKb4aAee0YYkbwQtyK94KFELIRTa4BAnPimScWbxOzkQuNTpOZC0EVgbJaowdeWBraVHARk7MbUVbqG7O53EQNdhqAi9XsotQ9ZCYSVZy9aEf+tTKroCDACSuMccxJGEFrwBXXO0krkX/WXHUgMocj0BY8L+bjheMPC85xCOSMRTmKYTnmWZVlnAQ0MkZZ6ORsZBiIFb6t/OSuvjkWD7dec3HwEdkHCdImIC0IkfWN2Wgp5MTm2ctncz5k+QzS1QV5GHJWga9TEtOQsHf74gdnnRLhfhlAuVHLAeHxFjAakVLIlLwo7uuFjg0dI0ch3NU+mS3C2Ysm1o4lAFHg3PtSkGEXA7ZiVhdZDsyOCQvhvjLw8cdAUxPQqq1zbJgPxrsmmi8fbQKmgk0dwFThur4hfyuoLbJNiU3M1Na2JEJR7N1773f5SVKvzZ4JTLxVYP9BCU4+JQ3EcZ4DaWozx6A2wZnGhzTuef36VwJ990hw8CEpttnGZHUkHeMwzNlHZ6n8WPqE7Ws1XXwm6tVwBCv92EvAOyeK7jrP2JjnRX6gdfXfe0eiW/cElbpY+JtZ8cxjwDJ3Zo6/PJCj5+4pRo6uOFarxV5e/IcZ5CcFVxAi6+vzCyTElbV25sNV5E3RHattCSILJqKd5lHuc4L6lUCHjl4XvThN4pZfCQwakuDU01J3+OeelXj8YYHvn57ic7txUe6TCdrYsJ/f57zXJa67Ose22wJXX1tFtc68ffcfBJYuZQItYMvimQ/6YooD91dn1Uy9lJ2/895cOch3TVAI4zqMd0sEhmuUQartXpmV4+F7BXbomuCEkyrYrpPVZA7AFmT29BQLrl8H3D6uSf/+zgVVtN2WWyD+8/rYrMuCj/WThka6mprBVD9XQ2O+WLXc1Ear94LcNoFg9njVbEU6yTfQ4De3CsyaIXHWT1Ls1tuEgBkveIB9/zR1l5nP3jlBQIGsWgW+/s0UXxqaGn1FfV52O8dLOpyanxt+meOV2RLHfzXFUUcrTjXvXTE2x8L3agCs5MSPO66CoUOpUGR1novpTMtZkCmCM5PlGcx7XrU6Ivj2UT+XJWc14iWLgT/+tgkrlgHbtEpw/EkV9FTXEAnynIU3GzYpHD/3eIY5UwUOPLKK/Q5PSzspFBgTe2/rsLwRfV4by2r66jU2ZiNzIR/eMHsxK8Ig00x4oWzDpJ29O/5wh8QzT0m0aw9cNLaCrjubC/viCxK3EoONSakMrn9PnyLxuzsE1q0DBgxM8N3vVdCylTRmKpm0etD+3x8sBy44J8c2LYFrf1FFq1YeCMuWAuvXS+QiwRVjM7RsBfzkJ5WwAVICkyYJvD5PYsyYKr7w+Zi9yOTyuotCriNS3hHq2IwVsq0Ad2Ak8zSoL/pEgfwqdR0euz/DvFcEKpUEI0dV0LlLgtt/3rSx811zu+9c3gKpZnrfkLjZO6W+mPr6bJKEPL5sh1x7ufTfkYANipY9uM4iBssyibvvlPjrZIk2bYELxqbYuTtxCjCdA0yFSCI/e4w3/iFxzZUCQgA77Zzg7PMr2K6DVYLRtmr8990t8JfJAkcNS3HC19QdyxILu08len9waobWrYEbfl01p22L7+r3pZc2YfFi4Oc/r0OH7QygQ1amYFg0g4m9uJ5Ruy+tOQadqWUMZ/UYszOUfpv8cIaZzwv0H1TBoMMr+NPvsmDqPl4j0LASqNsmQYfO5gY0p+5lBP2LPjji1CqS6pbTXrTfRDUP1jfkK6DanEsR5jYNCshuqK6rwTKJupK2XLN8KXDjLwTe+adEq9bA+Zek2NXqKTITlAa79QavwQjQWZbg6acEHnlQ4OO1QMuWgMqIOnUCzjqviq7dCOWeYVYuBy48P0OaAFddW0X79uaaNjYA7ZX+sILiww+BM8/I9Pu/uL7KevwTrFsnccbpBnzX/6LOnXPRn2OTxa6BBxJ1P1C4jOqHzfZzmWvp22xIL3lWe/N1gV57mRAZ1w4fnJjjvQUCXzqhij0HmthH2k/9XrUMaL+9Gb953bZFsxthS7CXPouGBrm/kNmMmuxVs72lhotuNcCcl4DbbxRY8xHQc9cEY85KsMOO9BnPANMJYIONyFeJwMsvCTxwr8DSJUDrNsCxx6cYcmiCCTcJzH5Zok0b4MxzKtitV9gtcdstEjNfFFp7DTvasNf6JuCi8zNUqsAll1XRpjXwwVLgggsydOoIXHV1NWjvefddiSuvzLDXXgl+dEbFsleYRIRt0+bKFboanI9lgKKth6Bdx/hUResiBOIG+7ksKxFI5r4o8PSfMnTdJcVXf1gpFL2nPJLjtek5Dv9aFb36m2ukW4i0EPMMtsUAtqoxPwtCXFdrhy57DPqvLOE6wW0/zcT93FckrhsvcMR/JfjGSSmqFX8El5lIYHUjsHiR2d+CN4Hn/irwwTJDgocenuLYryZo184AM88kJtwq8cocgXPOUwCzrAngnXckxo3N0a0bMPanVVTs8R55SODRRwQOOTTFid9Wd3OChQsFfnp5js6dgauuqvPGv5T4+98E7r5HYMTICoZrkIZMpXFC5ElJTuBphWGmEBpLWnH04gvbb28uoTdJqUwzf67Ex+sE9hlQYauCQkO3foXE767PkGXAN8+oolOXotm6cIHEk3dm+vqM+EEVnbqR4eqTjS0FLj079fXZBAl5SmGnPENkHQzerih6YZThmUmQWPR+gm7Use/2Z/UTEqxfJ6E01rTnJWbNlPrCpBXgC/0TjDw+QY8elCz45EJ1eS5ZBHTdyQv7rCnB1VflePufEudfWMHuuydYtRJYvFjixl/l2qYY/7Mq2lqzccEbEtdck+tTvu46G0otcCZOFJg5U+DHP65gj74KkBZgZLba307Ys1BHbEBi3/+u3c8VZ5yG6EI9tmwJcPt1TRA5cOBhKQ4ZVkGSWmDYysXatQkeuK0Jy96XOPiYKvofZBKm4vIziVnPSMz6a4b2HROMHFOHOpsIkWzZogBb1dD0PCQO4jstgEi/WezHCgrBtAPWqkNAcwFRAh98AMydLfHqHAMulRmpn+23Bw4+PMVBhyTav3KekvXXyNl243QTDvzxXoHJTwnU1UGz0vLlxr2mnxNPSnHIIRVHPXPmADfdaITxySenGDzY0+u55zahvj68xHv3S3D6aUYBE58Ri2kQsUzxk/ZzqSOargvWz6VeU4VqAHNmSvz5gUyHsr5fqGD4N1IkFWOdrFkDPHB7hmXvC+y8W4pDh6f46KMEa1ZLfPSRxNrV0FJlzYf27w8lPqw3d3zvfSs46ARlD3F/c8tBTDHYuxKyZ7jLks4Cd3Fru+jETQSstR8n+N93BN57N8G7b0u8+0+p/Rz+Q8Dacy8TFn1HKIlQ3ymxQ5cEbVoz595OyLSpEr+ZIDRTbd8Z2H6HRIdepacUm533EwUuAkeCaVNz3Hmnubf33TfBD36gwCOx+kPglpsNs6mjf7haYslS4KAhKUZ9S4Gw2O1RKzvknRHBmsLSfi6+ZC0U3q7TARIL35KY9Nsc6z6W2OMLFQz7ptKIEk/cIzB/jhn3hn6q1QSt2gOt2yVYuViiab3El0+qQ7fdSxtrNrS7Db6f1DdkywODlfRFjGj9epmwt6+zkKrM04fuFxpMTq9scCgb3mDMGRXsNzAU9mpM69cbLdexoxmhuqMvvTjTgBl7eRVduviSlQLJI48IPPaoAZjKTn/5yzpUnNHoNdefHswxebLA/5xSwYD9Urfec9EiiVWruGaxWicyKJ0k5fVFtwo9XOhB4Ym6H7brkKLjjlxjmb///a7E/ROatGYbdUYVHXdM8MYrArOnCrRsDbRsnWCbVkDLVgnq1L9bAa3aJWjd1gCrrqUddwLMmy4w/dEMHbumGKEY+lP4UQBbJ6VsYVjH1+tI+SpGUXcR4TsUuEXAKc/og6US554utNnZ83MJeu4KvDpbaTLg4MMSdIzqBaTdvAbg3keC2S9J/OtfEgpg+w6wtVAFdwZqHcFVF2qSYMJtAi9OFzj+hBTDhhlRzMd/469zvPqqxF79Eqiy0tlnVdB3j9R9njyvSy/P9E1y3TVVtGvrFxHfdY/AlKlRy+0WnpyBB6UY+pWKaWtmq4vUtVr4tmHY7ruFpR/fPm2SBgrfngVtScjaE7kAZjyeY++DK2hdblJt9lkFADMCI2IIx2glYHJL9dUJm3yXPq7u8A7beQa7ZrzAvLkSF12eoncfqi0aozYAbVxQllIDZvpUidMswKg2aAxQVwDVF2P2LImbbszRp0+iM01P/H78552baQa6bGwVP78qw/4DU4w60WSYJN6VVrzo4iZ03znBxRcpK8P8qOM986zAa6+bvN7cFPY9/Yv3k7FwEJmdwWIXtg/ypvrunWK/wanzwniPPVkXpsBtxrRymcQDt2bYvluCEaOreo8v/DnHgjkC+x1RQd+BRvS/+GSOt+cKDD62ip13N9ePj3KzERXtoBAigwkLwMXqgC5196+5i8ysCr7g4moLsG+PTtG9h5kIqjsWWnHouDYsP/awwGuvSYw5PcV+6kIpRnLg8iFNsdxV43Mt9pXn1bGDme81axIsWSSw6+cSrF4NnPXjTJeQbrihirvuEpgyReCSS6rYeSefGT/9jMQDk3J8+cgUJxxfCYDsskVbtyONpc6KazLvjfHuB7ZSyN5csS3BM0u3Asgu4FDgWrNGQmXOrduZG5tC56RbmtCjT4rh31F6McHfHszwj5kCXzymin6Djef1/IM53pyV44hRdeixBzn8WxpWfn9O5BOLhI71hjPHwiJXfZuzAds7hBhsc07ltNMr2Hcgay5kx1qxAvjZuAwNjcD3Tq3oNp8Fb0osWCDxr/+V6N4jwSWXVDDvdaW5MsNw51S1JzZuXI7evROce46ZGNV9cMllTZrlzj27il7K0GXHKvO2KNvTIHOMFrvxcT8XsXf0YJPoCTnxQtrpzwpMeyrHoSMr2GeQ6fZ463WBJ36foU//Cr70dZMV/v2hHP+YkeOLR1fRb4hiQ2AKA1j3PT4dYc/nONE2hTA2hdZCwaod2pRljiT2g85Rq93MDhzAOGiJwYaNSLBjl7AnngDpLIAw5mDKc1J7XApg/ZUGi9hrxXJg7KWZFvfKR1N+Ef0ooO3SM8HAAQmO/HKKhx8SeOIJgWOOSTFihOo/S3DDrzPNkKNHpzhg/woefSTH408K7LVngjNON+GRziXomeIemLMqavRz0fMiyEh13ai+wTDsjQ+7LHg2+ZtrMh0S/3tMFV12Mcw07yWBZyZl2GdwBUOGW4A9mGH+TIFBCmCDTVlJMdiCWTkO/1Ydeuy5FQBGRqtuyHOEZYvYpCeoEMy6Fny5mrSJhUcU0GliuAbr1dtoNfNsL/KRjAXgmgapaUHCajChAaYZjOqd9lgKUKp+uHYN0KED0LVbgu7dE/Tpk2L33iaj0vU6qbonMqxcAVx6WVXrKwVu1YEx9rImXS8980dV/OxnGbIcuOTiKrp19ezlRbMntNIFtAxspk5IPfjq9Cxb6UN7DRSwFFuU4XvmDfstWihx941N2LZTgu+eb6oQ6rxmPJPjxadzHKDaco4weksx2PwZuQbYXipEwjDYVgWYKhXJ3JSKaLUNFYWJ1eg9/7p10Ws8VyKwJiwIVEeEEvnDj03QRZUwainLEoD+/VnDYGMUwAaQkPYspfa1eBGw3XYJWrfyz2HgzKPObd48geuvz7Wpe+V4I4TJLH7iSWVf5FqbrV3LvC+nN2t1RNTo5yqUj4pdqAawvijuRTurUbo0wjj3f5mUYe4MgUFHVnHAkYa9VEh+7LcZ3psvcNSoOvTsZ/b53EMC82dagA0x2075U44FL29FBmtokAOFyGbWzOSsmekqoa50Qv1QNEmeySiEEQ+qjxDANleD9R/AFnFYMAa6MYizvoapQufttwm89JLA0KEpjj9OCXdCc4KsCTj/giadBLRoAYy/ok5XFPQWcTko6ufiRqrXX56hqF/eACju8zI3DPlfHnSG4DWALMjVGG++okkbrd85vwXadzTsqEA68YomrP1I4qQL69C6vQHj84rBZuY4kDHY1BKAvfOqQPe+Keq22ZzZKf+sadepV+062NZdcNuVSXos6MGnh4840zUU9Jz1uDDWIfI1iVEnp9jJPVGMheIAyH7i1ZiefFxqv0plkfsOMD1j7of9zW+SNWuhi+Ivz5JQvf2jR1dw7rmZnrBxP62ic2ff2aFC7B/uzjFtmve2hg1VGs3bHJ+sn6u4PM0/ycYCK3hWlwFfuIDDP2Fn/hyBJ+7J0XWXBF8fY8KjGteSf0k8cGMT2nVIMEqFTctqCmBvWIDt+UUTIqc+mOOtiMHuGdeENtsmGHn6ljdb9VVetSqbJKVqOCxmjWYiPWsQaMIuA28VeGHPS0qewS66vIJevcNMs/iZUPdMVD7YNGFDJBW5aWTmLv9oDfDO2yaUqv/eessUz9VP//4JWrVO8MI0gSFDUpz0bWKvRPeY3XJrhvnzDVIP2D/FrJeFBuU++yQYfXJVG8Y8lHldZLDOWYtbEw4oUYcE1RvjEBn0dkXspbZV9caFbwkcflwV/Q4w2aN6/cHbm/D+2xL9D67ggKMUkMz1e84C7ABiMFkOsN9f1oQOOyYY/sNPCWCNjXJk1pQ9bNIlW4e0K2nK2qFDH8p6izZJ0AxGCYP2Is2V0iHyNYljv5qiqyrdEHlRbhCHO3uB1WZ/fUZqy2HMaUqDGf1mkgQDrl9en+P110LxppoJBwxUWWGKxkaJm27KdYY5flwdOnU0PtqcVyT+eH+G5Sug21e+fWIFgw5MMWeOxO0TMw2yLl2BH55ah07bWwnger8+nX4udRTnyLOFGI31EhOubEKaJjjl4ipatjFh8I3ZAk/fn+ny0LfOa4EWrXxv2vMPZXhjpoACGDHYNMtgh32rDrvsmWDdGuDe8evRZdcUQ0/5lACmFn3U14vFUghbxGG990zkugyP5rKGLcFDo94ElsEiEGxqxCeAOVvDAu3663LdD6ay0969EuzeJ0HPngkqqTJWJS4bm+mu1mOOTjFyZEUXsO+7L8O8eeZEVPfq90+tog8r+KpS0sQ7Mt2wqN4fPbqqvTPz/FKWGZKYL31aNO9qZY2Etv+LTFIyVkOtZq4OgW3GswJT/5yhV78UR59oEpS35wk8eXcOmUsMGV5FPxsGKbOc8rAJkRxgL0/O8drzObr1StFn/wreXyB0VtmrfwVDTmBNe5s6OTW2d0bIypX5BVKIK023M1voYAEWG6qOgOxTdIwQprwsbspLcM2VuWawI45M0Hn7Ev8lzh6ZTTFjusTChYbB+u9HIdtXApQwb6d6vVw53ofnV+ZI3Hxzjt12U0ZqVXcfzJgpcMcdJrANHpziuK9U7OfD8f/7fYkJd2RYsgQ44MAUJ46qmNKMlQ2+pdmGSnsOcT8XD33uORO1njzI2phJ/Kvfj92VYcGrQoNrt35GT02+J8eCV3N8fnAFg44xK7K4868A9ubMHPtbBlPDXrlI4tGb4kUiCQ77ZhW77LXlfTG3R7XwdtVK8ZaUwkpwq7vIWWSt0y5rc2miha8NWR7M5FkB9/3eaKOTvptg5x683GP9LzIzLVBd246QmPyUxD/mSQwfkWqWotDofTsDOvO6TxDMOCXmzJbo0TM1pSMdw4F778tx4IEpdt2FXdRo/GpPaz8G/vxUjqFDK6hrYT07FiZj1vH9XEa3mUK1GV9BvEf99CTa4x570lrvL5TYYafEmMkSaFoPvPqCQP9DDeA8E5rTbFgBfNgo0bZjgjZqfYL9Wb0K+PebAmtXS70EbsddEnTuvuXBZWfFH7h+RTZaSOhHBzgRTwxmc/W4yZBCIKXzZm8+WXBR1Chat0ranA5fEkYNWxwoJMRKQOXCtMOM3n+4pM1/njokfKXCH8fUQml8Roe6fi57ecqzSPZYb9ZSboDCDVZfMuJZZCDqo+dMBDqMWqhtskC2hTuOe9aXtTZKwOZneev+FcBWWRYrV9qHn9jnQjhmYCHLWWGW3RyTxGGO2n/c62xVAVuiX9YVYUDuGcddFm6hUMrGqMwbuKwxkbGift+inh5SFzBhwfOyXhTdEDUWajhd5sbNPS/vVxkLwYTigP3ouPEjxtli3rBx0fpjKimzp+oYMDJ5ty6kwqMVeLFhpTwqyzP7+CbrFdk+Kzc5rAmGgMDNTj/J1oTVpR2f9fnISvaHueClhXOdlfLFtvHlKvkcH4Dabzz+kqcc8vHHK5u5LcF73A3pUenHHMc8ltI38fgwGQr+sjComSnQZlG/l40spvvCh2ueJBjg+vf+k+AqhEgazMrl+XgppX5cOQ8tpH0cqAg0FF6C8GjeNKAku4Jub2aF8IyUmbcOhO7zHqD+ooWh2JxQWIaqOX5b5iKX3mWmLLxwRgjARNvYjLK8D58/z4u5+oy9eGnIEGsZG1Hpi/YXeW/sixsC0PEI8B9EWamyU4/QXLU8f0hIOdL3yDNwBOEy7KDgIKTzIt1m9JrJ/uLqALceyA7heWFxvwZc5qYPWYyySTqeC7cUGtkXbzlTzQK9Occ+YK/gKc/hMjNiFJrwWODHXRMOaPaGdmslLRiL4p+Vm2gby1qfJfaqyWCWudqu+kC8ICH3DrQQN0i9nAkeemuA5QviBjyR4LbvF/SQswH8Hy6RKGkncgAjPeYcXN42ZCHnkGelm2E6AAAD+0lEQVRGSOzKH1qiXo+deQ0Yp3N4qAsfM24AxdYiukm3mivQXoZpm9VjkZYKWoVKmJYCCQH8P0hc7tDN5qarVsme+fp8RgLsEJSG2OTwk3AMRYhk4t7oK+Ik3zlqxBlNeLhqh3bD9ZEHL3XTel/KG8H2wPYXz3w5u3mmtJqFgGSf7+U9L/7lBfRlUdTxsBH9XLavPmh1LnxzWvH5XqTTNOi5+Heds+HCW34jfBbA1SyD0QAVyMR68aiU0n0RA4GNWw3crqAJDSaWDFnSdTxRcP5V6EkZmmFs44BIsLTbB59nbBVkogQtb8HQ0TST1GgeNKuuoy5V620V+7lIXId9XoEdET1Ul8KotyWYeGcsFQAsAhuNn7du/78BmJ7jZbLtCqm+SgYjOZBo8t1vJ9L9SgLanr4CxoVLF6O8KOfCnodFfSfU/GYPHlNt1utiBLMqXBZrWTICLw9vG6vDnKhmHliweJYW01rJ4Jz/Gs+6D8AWe16u+G2g4x+NXgTkZwVcG8VgLHwlqz4Q4/JcXrjhDI9NrGUsvqCWjM3Q/CSghAzkcGgnKQhrBCT2RQ/m074gHlsr8Q2i3yevKXqIietWdRgmC8LqJ7Ijyso+Ud8XufFkRRjWKfpjhrCN1UD3QHENAPWJ+c4l2uazBK5NAhgNfOUyeZTIxbVSyj1rtvcUtBdv3YnB51UYTyYCrRSFRseKhUdbUjilAYQt2AqcBRuDhyEunEmg22PzCfR/M8DZG0n7Xny1kOuI8N/XGDrxJUCyxjB5bKGdUe6BGZvjswYvrrA3YWza8V+anyzz5HIJuZMX4xGQ7IUOrA57W9I6SnObcn1kB1X21ES7HW/pdnVJe+c7fchqp56Frd/L2CHUV/wxTNED4aLnpjbbgOj67X3rs7YaeFYYfWmoL1KzgnWUKRJhUxh2hqtXJJswi1tn082qcKoC+YrF4kzI5GwhTatPmbCn9Y/mlLxnRdiKs8TAlmB1OKJcl60ycFIVwLxEYbYo7F3csZPtPKc4q3PPzOJLz7jeKa6q5mHQCfvIjCVPzGSUZqy+Bah8nzGg4vAZ9IluHdxs9FE2C2CeGWTdikUYJmR+YiKTL0lg29AyiA7jMsNIcFO9O8j+yNWNDFq2AolAEyxKYUzpFrMwg1gzCmeyWo+5dNmlLYAHX9VCvhfvnbflo9jzYiHUM5H1x+w4wkyRHHuzDWfaoKOWNyFv9LRvvQ23CMD4cFX4XLEE+8lcDIHEHlLKPkDaXUrZDkjaSSlaGJ4jozNkmbJw6r6ElAGPVweIGXmo5fZGWTHbuevMniAjM+jnonbnuMmwpExEwAn6vwrmKhP2hcdXhv1cpKvCLzEtbrP14LLpR/o/JBqhquSiLD0AAAAASUVORK5CYII="},"1XHU":function(J,E,e){"use strict";var _=e("2qtc"),a=e("kLXV"),ce=e("q1tI"),re=e.n(ce),D=e("9kvl"),n=e("3wET"),se=e.n(n),M=e("bUJZ"),u=e.n(M),Z=e("Ct/S"),y=e.n(Z),Q=function(p){var f=p.visible,d=p.occupationValue,N=p.onCancel,h=N===void 0?function(){}:N,R=function(){return re.a.createElement("div",{className:y.a.flexColumn},re.a.createElement("img",{className:y.a.img,src:u.a}),re.a.createElement("span",{className:y.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},T=function(){return re.a.createElement("div",{className:y.a.flexColumn},re.a.createElement("img",{className:y.a.img,src:se.a}),re.a.createElement("span",{className:y.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},O=function(){return d===3?re.a.createElement(re.a.Fragment,null,T(),R()):d===2?R():T()};return re.a.createElement(a.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,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(){h(),D.d.push("/account/certification")},onCancel:function(){h()}},re.a.createElement("div",{className:y.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),re.a.createElement("div",{className:y.a.flexRow},O()))};E.a=Object(D.a)(function(S){var p=S.paperlibrary,f=S.loading,d=S.globalSetting;return{paperlibrary:p,globalSetting:d,loading:f.effects}})(Q)},"2m4C":function(J,E,e){J.exports={flex_box_center:"flex_box_center___2-qfd",flex_space_between:"flex_space_between___1JkUL",flex_box_vertical_center:"flex_box_vertical_center___w2qHq",flex_box_center_end:"flex_box_center_end___136Zl",flex_box_column:"flex_box_column___xKtkl",wrap:"wrap___2Yh5x",lockWrap:"lockWrap___2FPPb",lockIcon:"lockIcon___ZCi-B",topWrap:"topWrap___1gxfi",bottomWrap:"bottomWrap___3nFhU",bottom:"bottom___2SqE5",bottomIconSpan:"bottomIconSpan___2FUtd",public:"public___24PL-",borderFF6800:"borderFF6800___3YaLf",publicIcon:"publicIcon___2bq4b",publicText:"publicText___km2SR",lockText:"lockText___38jUU",createIconWrap:"createIconWrap___JtOa4",createIcon:"createIcon___ica6o",leftIcon:"leftIcon___Z6cyz",rightIcon:"rightIcon___1I9mc",createTextWrap:"createTextWrap___28JMG",createText:"createText___OaGdk",title:"title___anL3V",img:"img___Hxslc",teacherName:"teacherName___1Mspy",school:"school___2_zag",color989898:"color989898___KooPn",teacherUsers:"teacherUsers___7Hs0f",text:"text___2dGJj"}},"3wET":function(J,E){J.exports="data:image/png;base64,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"},"6+eU":function(J,E,e){"use strict";e.d(E,"a",function(){return C});var _=e("wx14"),a=e("rePB"),ce=e("VTBJ"),re=e("1OyB"),D=e("vuIU"),n=e("Ji7U"),se=e("LK+K"),M=e("q1tI"),u=e.n(M),Z=e("TSYQ"),y=e.n(Z),Q=function(b){var r,o="".concat(b.rootPrefixCls,"-item"),t=y()(o,"".concat(o,"-").concat(b.page),(r={},Object(a.a)(r,"".concat(o,"-active"),b.active),Object(a.a)(r,b.className,!!b.className),Object(a.a)(r,"".concat(o,"-disabled"),!b.page),r)),i=function(){b.onClick(b.page)},l=function(A){b.onKeyPress(A,b.onClick,b.page)};return u.a.createElement("li",{title:b.showTitle?b.page:null,className:t,onClick:i,onKeyPress:l,tabIndex:"0"},b.itemRender(b.page,"page",u.a.createElement("a",{rel:"nofollow"},b.page)))},S=Q,p={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},f=function(g){Object(n.a)(r,g);var b=Object(se.a)(r);function r(){var o;Object(re.a)(this,r);for(var t=arguments.length,i=new Array(t),l=0;l=0||s.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),P(o.getValidValue())},o.go=function(s){var A=o.state.goInputText;if(A==="")return;(s.keyCode===p.ENTER||s.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(D.a)(r,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,l=t.current;return!i||isNaN(i)?l:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,l=t.pageSizeOptions;return l.some(function(s){return s.toString()===i.toString()})?l:l.concat([i.toString()]).sort(function(s,A){var m=isNaN(Number(s))?0:Number(s),P=isNaN(Number(A))?0:Number(A);return m-P})}},{key:"render",value:function(){var t=this,i=this.props,l=i.pageSize,s=i.locale,A=i.rootPrefixCls,m=i.changeSize,P=i.quickGo,B=i.goButton,q=i.selectComponentClass,V=i.buildOptionText,W=i.selectPrefixCls,L=i.disabled,ee=this.state.goInputText,de="".concat(A,"-options"),Ae=q,Ce=null,I=null,j=null;if(!m&&!P)return null;var te=this.getPageSizeOptions();if(m&&Ae){var G=te.map(function(x,w){return u.a.createElement(Ae.Option,{key:w,value:x.toString()},(V||t.buildOptionText)(x))});Ce=u.a.createElement(Ae,{disabled:L,prefixCls:W,showSearch:!1,className:"".concat(de,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(l||te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(w){return w.parentNode}},G)}return P&&(B&&(j=typeof B=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(de,"-quick-jumper-button")},s.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),I=u.a.createElement("div",{className:"".concat(de,"-quick-jumper")},s.jump_to,u.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),s.page,j)),u.a.createElement("li",{className:"".concat(de)},Ce,I)}}]),r}(u.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=f,N=e("N2Kk");function h(){}function R(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function T(g,b,r){return r}function O(g,b,r){var o=typeof g=="undefined"?b.pageSize:g;return Math.floor((r.total-1)/o)+1}var z=function(g){Object(n.a)(r,g);var b=Object(se.a)(r);function r(o){var t;Object(re.a)(this,r),t=b.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(O(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(m,P){var B=t.props.prefixCls,q=m||u.a.createElement("button",{type:"button","aria-label":P,className:"".concat(B,"-item-link")});return typeof m=="function"&&(q=u.a.createElement(m,Object(ce.a)({},t.props))),q},t.savePaginationNode=function(m){t.paginationNode=m},t.isValid=function(m){return R(m)&&m!==t.state.current},t.shouldDisplayQuickJumper=function(){var m=t.props,P=m.showQuickJumper,B=m.pageSize,q=m.total;return q<=B?!1:P},t.handleKeyDown=function(m){(m.keyCode===p.ARROW_UP||m.keyCode===p.ARROW_DOWN)&&m.preventDefault()},t.handleKeyUp=function(m){var P=t.getValidValue(m),B=t.state.currentInputValue;P!==B&&t.setState({currentInputValue:P}),m.keyCode===p.ENTER?t.handleChange(P):m.keyCode===p.ARROW_UP?t.handleChange(P-1):m.keyCode===p.ARROW_DOWN&&t.handleChange(P+1)},t.changePageSize=function(m){var P=t.state.current,B=O(m,t.state,t.props);P=P>B?B:P,B===0&&(P=t.state.current),typeof m=="number"&&("pageSize"in t.props||t.setState({pageSize:m}),"current"in t.props||t.setState({current:P,currentInputValue:P})),t.props.onShowSizeChange(P,m),"onChange"in t.props&&t.props.onChange&&t.props.onChange(P,m)},t.handleChange=function(m){var P=t.props.disabled,B=m;if(t.isValid(B)&&!P){var q=O(void 0,t.state,t.props);B>q?B=q:B<1&&(B=1),"current"in t.props||t.setState({current:B,currentInputValue:B});var V=t.state.pageSize;return t.props.onChange(B,V),B}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?B-2:0),V=2;V=l?A=l:A=Number(i),A}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,l=t.total,s=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:l>s}},{key:"renderPrev",value:function(t){var i=this.props,l=i.prevIcon,s=i.itemRender,A=s(t,"prev",this.getItemIcon(l,"prev page")),m=!this.hasPrev();return Object(M.isValidElement)(A)?Object(M.cloneElement)(A,{disabled:m}):A}},{key:"renderNext",value:function(t){var i=this.props,l=i.nextIcon,s=i.itemRender,A=s(t,"next",this.getItemIcon(l,"next page")),m=!this.hasNext();return Object(M.isValidElement)(A)?Object(M.cloneElement)(A,{disabled:m}):A}},{key:"render",value:function(){var t=this,i=this.props,l=i.prefixCls,s=i.className,A=i.style,m=i.disabled,P=i.hideOnSinglePage,B=i.total,q=i.locale,V=i.showQuickJumper,W=i.showLessItems,L=i.showTitle,ee=i.showTotal,de=i.simple,Ae=i.itemRender,Ce=i.showPrevNextJumpers,I=i.jumpPrevIcon,j=i.jumpNextIcon,te=i.selectComponentClass,G=i.selectPrefixCls,x=i.pageSizeOptions,w=this.state,Y=w.current,ae=w.pageSize,xe=w.currentInputValue;if(P===!0&&B<=ae)return null;var pe=O(void 0,this.state,this.props),Ee=[],Te=null,Pe=null,ze=null,ke=null,Ie=null,Re=V&&V.goButton,De=W?1:2,Ge=Y-1>0?Y-1:0,Qe=Y+1=De*2&&Y!==1+2&&(Ee[0]=Object(M.cloneElement)(Ee[0],{className:"".concat(l,"-item-after-jump-prev")}),Ee.unshift(Te)),pe-Y>=De*2&&Y!==pe-2&&(Ee[Ee.length-1]=Object(M.cloneElement)(Ee[Ee.length-1],{className:"".concat(l,"-item-before-jump-next")}),Ee.push(Pe)),k!==1&&Ee.unshift(ze),ie!==pe&&Ee.push(ke)}var oe=null;ee&&(oe=u.a.createElement("li",{className:"".concat(l,"-total-text")},ee(B,[B===0?0:(Y-1)*ae+1,Y*ae>B?B:Y*ae])));var $=!this.hasPrev()||!pe,X=!this.hasNext()||!pe;return u.a.createElement("ul",Object(_.a)({className:y()(l,s,Object(a.a)({},"".concat(l,"-disabled"),m)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Ve),oe,u.a.createElement("li",{title:L?q.prev_page:null,onClick:this.prev,tabIndex:$?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(l,"-prev"),Object(a.a)({},"".concat(l,"-disabled"),$)),"aria-disabled":$},this.renderPrev(Ge)),Ee,u.a.createElement("li",{title:L?q.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(l,"-next"),Object(a.a)({},"".concat(l,"-disabled"),X)),"aria-disabled":X},this.renderNext(Qe)),u.a.createElement(d,{disabled:m,locale:q,rootPrefixCls:l,selectComponentClass:te,selectPrefixCls:G,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Y,pageSize:ae,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Re}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l={};if("current"in t&&(l.current=t.current,t.current!==i.current&&(l.currentInputValue=l.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var s=i.current,A=O(t.pageSize,i,t);s=s>A?A:s,"current"in t||(l.current=s,l.currentInputValue=s),l.pageSize=t.pageSize}return l}}]),r}(u.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:N.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var C=z},"6RRn":function(J,E,e){"use strict";var _=e("wCXF"),a=e("n6Qo");e.d(E,"b",function(){return a.a});var ce=e("IBYe"),re=e("6eGT"),D=e("hW8S");e.d(E,"a",function(){return D.a}),E.c=_.b},"6eGT":function(J,E,e){"use strict";function _(a){return null}E.a=_},"6nfa":function(J,E,e){J.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"815F":function(J,E,e){"use strict";e.d(E,"e",function(){return se}),e.d(E,"c",function(){return u}),e.d(E,"d",function(){return Z}),e.d(E,"a",function(){return Q}),e.d(E,"f",function(){return S}),e.d(E,"b",function(){return p});var _=e("KQm4"),a=e("VTBJ"),ce=e("Ff2n"),re=e("Zm9Q"),D=e("Kwbf"),n=e("OZM5");function se(f,d){return f!=null?f:d}function M(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function N(h){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(T){var O=T.key,z=T.children;Object(D.a)(O!=null,"Tree node must have a certain key: [".concat(R).concat(O,"]"));var C=String(O);Object(D.a)(!d.has(C)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(C)),d.set(C,!0),N(z,"".concat(R).concat(C," > "))})}N(f)}function u(f){function d(N){var h=Object(re.a)(N);return h.map(function(R){if(!Object(n.i)(R))return Object(D.a)(!R,"Tree/TreeNode can only accept TreeNode as children."),null;var T=R.key,O=R.props,z=O.children,C=Object(ce.a)(O,["children"]),g=Object(a.a)({key:T},C),b=d(z);return b.length&&(g.children=b),g}).filter(function(R){return R})}return d(f)}function Z(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=new Set(d===!0?[]:d),h=[];function R(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(z,C){var g=Object(n.h)(O?O.pos:"0",C),b=se(z.key,g),r=Object(a.a)(Object(a.a)({},z),{},{parent:O,pos:g,children:null,data:z,isStart:[].concat(Object(_.a)(O?O.isStart:[]),[C===0]),isEnd:[].concat(Object(_.a)(O?O.isEnd:[]),[C===T.length-1])});return h.push(r),d===!0||N.has(b)?r.children=R(z.children||[],r):r.children=[],r})}return R(f),h}function y(f,d,N){var h;N?typeof N=="string"?h=function(O){return O[N]}:typeof N=="function"&&(h=function(O){return N(O)}):h=function(O,z){return se(O.key,z)};function R(T,O,z){var C=T?T.children:f,g=T?Object(n.h)(z.pos,O):"0";if(T){var b=h(T,g),r={node:T,index:O,pos:g,key:b,parentPos:z.node?z.pos:null,level:z.level+1};d(r)}C&&C.forEach(function(o,t){R(o,t,{node:T,pos:g,level:z?z.level+1:-1})})}R(null)}function Q(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=d.initWrapper,h=d.processEntity,R=d.onProcessFinished,T=arguments.length>2?arguments[2]:void 0,O={},z={},C={posEntities:O,keyEntities:z};return N&&(C=N(C)||C),y(f,function(g){var b=g.node,r=g.index,o=g.pos,t=g.key,i=g.parentPos,l=g.level,s={node:b,index:r,key:t,pos:o,level:l},A=se(t,o);O[o]=s,z[A]=s,s.parent=O[i],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),h&&h(s,C)},T),R&&R(C),C}function S(f,d){var N=d.expandedKeys,h=d.selectedKeys,R=d.loadedKeys,T=d.loadingKeys,O=d.checkedKeys,z=d.halfCheckedKeys,C=d.dragOverNodeKey,g=d.dropPosition,b=d.keyEntities,r=b[f],o={eventKey:f,expanded:N.indexOf(f)!==-1,selected:h.indexOf(f)!==-1,loaded:R.indexOf(f)!==-1,loading:T.indexOf(f)!==-1,checked:O.indexOf(f)!==-1,halfChecked:z.indexOf(f)!==-1,pos:String(r?r.pos:""),dragOver:C===f&&g===0,dragOverGapTop:C===f&&g===-1,dragOverGapBottom:C===f&&g===1};return o}function p(f){var d=f.data,N=f.expanded,h=f.selected,R=f.checked,T=f.loaded,O=f.loading,z=f.halfChecked,C=f.dragOver,g=f.dragOverGapTop,b=f.dragOverGapBottom,r=f.pos,o=f.active,t=Object(a.a)(Object(a.a)({},d),{},{expanded:N,selected:h,checked:R,loaded:T,loading:O,halfChecked:z,dragOver:C,dragOverGapTop:g,dragOverGapBottom:b,pos:r,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(D.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),t}},"8WcF":function(J,E,e){J.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"}},"8mKB":function(J,E,e){"use strict";var _=e("rePB"),a=e("1OyB"),ce=e("vuIU"),re=e("Ji7U"),D=e("md7G"),n=e("foSv"),se=e("q1tI"),M=e.n(se),u=e("m+aA"),Z=e("TSYQ"),y=e.n(Z),Q=e("4IlW");function S(o){var t=o.pageXOffset,i="scrollLeft";if(typeof t!="number"){var l=o.document;t=l.documentElement[i],typeof t!="number"&&(t=l.body[i])}return t}function p(o){var t,i,l=o.ownerDocument,s=l.body,A=l&&l.documentElement,m=o.getBoundingClientRect();return t=m.left,i=m.top,t-=A.clientLeft||s.clientLeft||0,i-=A.clientTop||s.clientTop||0,{left:t,top:i}}function f(o){var t=p(o),i=o.ownerDocument,l=i.defaultView||i.parentWindow;return t.left+=S(l),t.left}function d(o){var t=N();return function(){var l=Object(n.a)(o),s;if(t){var A=Object(n.a)(this).constructor;s=Reflect.construct(l,arguments,A)}else s=l.apply(this,arguments);return Object(D.a)(this,s)}}function N(){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(o){return!1}}var h=function(o){Object(re.a)(i,o);var t=d(i);function i(){var l;return Object(a.a)(this,i),l=t.apply(this,arguments),l.onHover=function(s){var A=l.props,m=A.onHover,P=A.index;m(s,P)},l.onClick=function(s){var A=l.props,m=A.onClick,P=A.index;m(s,P)},l.onKeyDown=function(s){var A=l.props,m=A.onClick,P=A.index;s.keyCode===13&&m(s,P)},l}return Object(ce.a)(i,[{key:"getClassName",value:function(){var s=this.props,A=s.prefixCls,m=s.index,P=s.value,B=s.allowHalf,q=s.focused,V=m+1,W=A;return P===0&&m===0&&q?W+=" ".concat(A,"-focused"):B&&P+.5>=V&&PL?"true":"false","aria-posinset":L+1,"aria-setsize":ee,tabIndex:B?-1:0},M.a.createElement("div",{className:"".concat(q,"-first")},Ae),M.a.createElement("div",{className:"".concat(q,"-second")},Ae)));return W&&(Ce=W(Ce,this.props)),Ce}}]),i}(M.a.Component);function R(o,t){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function T(o){for(var t=1;t0&&!ee||P===Q.a.RIGHT&&de>0&&ee?(V?de-=.5:de-=1,s.changeValue(de),m.preventDefault()):P===Q.a.LEFT&&deee/2||!q&&A-L1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(_.a)())return null;var Z=document.createElement("style");if((M=u.csp)===null||M===void 0?void 0:M.nonce){var y;Z.nonce=(y=u.csp)===null||y===void 0?void 0:y.nonce}Z.innerHTML=se;var Q=ce(u),S=Q.firstChild;return u.prepend&&Q.prepend?Q.prepend(Z):u.prepend&&S?Q.insertBefore(Z,S):Q.appendChild(Z),Z}var D=new Map;function n(se,M){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=ce(u);if(!D.has(Z)){var y=re("",u),Q=y.parentNode;D.set(Z,Q),Q.removeChild(y)}var S=Array.from(D.get(Z).children).find(function(h){return h.tagName==="STYLE"&&h[a]===M});if(S){var p,f;if(((p=u.csp)===null||p===void 0?void 0:p.nonce)&&S.nonce!==((f=u.csp)===null||f===void 0?void 0:f.nonce)){var d;S.nonce=(d=u.csp)===null||d===void 0?void 0:d.nonce}return S.innerHTML!==se&&(S.innerHTML=se),S}var N=re(se,u);return N[a]=M,N}},BdwD:function(J,E,e){"use strict";var _=e("+L6B"),a=e("2/Rp"),ce=e("0Owb"),re=e("k1fw"),D=e("q1tI"),n=e.n(D),se=e("FOrL"),M=e.n(se),u=function(y){var Q=y.buttonProps,S=Q===void 0?{}:Q,p=y.styles,f=p===void 0?{}:p,d=y.customText,N=y.ButtonText,h=y.ButtonClick,R=y.Buttonclass,T=y.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(re.a)(Object(re.a)({},{color:"#999",margin:"200px auto"}),f)},n.a.createElement("img",{src:M.a}),n.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),N&&n.a.createElement(a.a,Object(ce.a)({className:R,onClick:h},S),N),T&&T)};E.a=u},Bq7L:function(J,E){J.exports="data:image/png;base64,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"},"Ct/S":function(J,E,e){J.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(J,E,e){J.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(J,E,e){"use strict";function _(a){return null}E.a=_},JAbv:function(J,E){J.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},Jky8:function(J,E,e){"use strict";var _=e("sRBo"),a=e("kaz8"),ce=e("5NDa"),re=e("5rEg"),D=e("miYZ"),n=e("tsqr"),se=e("9og8"),M=e("2qtc"),u=e("kLXV"),Z=e("tJVT"),y=e("WmNS"),Q=e.n(y),S=e("q1tI"),p=e.n(S),f=e("9kvl"),d=e("6CvP"),N=e("1XHU"),h=e("1vsH"),R;(function(O){O[O.Professor=1]="Professor",O[O.AssistantProfessor=2]="AssistantProfessor",O[O.Student=3]="Student"})(R||(R={}));var T=function(z){var C=z.visible,g=z.user,b=z.onCancel,r=b===void 0?function(){}:b,o=Object(S.useState)(),t=Object(Z.a)(o,2),i=t[0],l=t[1],s=Object(S.useState)([]),A=Object(Z.a)(s,2),m=A[0],P=A[1],B=Object(S.useState)(!1),q=Object(Z.a)(B,2),V=q[0],W=q[1],L=Object(S.useState)(!1),ee=Object(Z.a)(L,2),de=ee[0],Ae=ee[1],Ce=Object(S.useState)(),I=Object(Z.a)(Ce,2),j=I[0],te=I[1];Object(S.useEffect)(function(){var Y;if(g!=null&&(Y=g.userInfo)!==null&&Y!==void 0&&Y.identity){var ae;P([(g==null||((ae=g.userInfo)===null||ae===void 0)?void 0:ae.identity)==="student"?3:1])}},[g]);var G=function(ae,xe){if(m.includes(R.Professor)){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc"},xe||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){f.d.push("/classrooms/".concat(ae,"/students"))}});return}f.d.push("/classrooms/".concat(ae,"/students"))},x=function(){var Y=Object(se.a)(Q.a.mark(function ae(){var xe;return Q.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(i){Ee.next=3;break}return n.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Ee.abrupt("return");case 3:return W(!0),Ee.next=6,Object(d.c)({invite_code:i,professor:m.includes(R.Professor)?1:null,assistant_professor:m.includes(R.AssistantProfessor)?1:null,student:m.includes(R.Student)?1:null});case 6:if(xe=Ee.sent,W(!1),!((xe==null?void 0:xe.status)===-2)){Ee.next=22;break}if(w(),!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Ee.next=14;break}return Ae(!0),te(1),Ee.abrupt("return");case 14:if(!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Ee.next=18;break}return Ae(!0),te(2),Ee.abrupt("return");case 18:if(!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Ee.next=22;break}return Ae(!0),te(3),Ee.abrupt("return");case 22:if(!((xe==null?void 0:xe.status)===0)){Ee.next=27;break}return Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),w(),(xe==null?void 0:xe.course_id)&&G(xe.course_id,xe.message),Ee.abrupt("return");case 27:case"end":return Ee.stop()}},ae)}));return function(){return Y.apply(this,arguments)}}(),w=function(){var Y=Object(se.a)(Q.a.mark(function ae(){return Q.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:r();case 1:case"end":return pe.stop()}},ae)}));return function(){return Y.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(u.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:C,confirmLoading:V,onOk:x,onCancel:w},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),p.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:i,onChange:function(ae){if(ae.target.value.length>=7){n.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}l(ae.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),p.a.createElement(a.a.Group,{value:m,onChange:function(ae){return P(ae)}},p.a.createElement(a.a,{value:R.Professor,disabled:m.includes(2)||m.includes(3)},"\u6559\u5E08"),p.a.createElement(a.a,{value:R.AssistantProfessor,disabled:m.includes(1)},"\u52A9\u6559"),p.a.createElement(a.a,{value:R.Student,disabled:m.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),p.a.createElement(N.a,{visible:de,onCancel:function(){return Ae(!1)},occupationValue:j}))};E.a=Object(f.a)(function(O){var z=O.user;return{user:z}})(T)},KOXS:function(J,E,e){J.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"}},LdHM:function(J,E,e){"use strict";e.d(E,"b",function(){return T}),e.d(E,"a",function(){return z});var _=e("1OyB"),a=e("vuIU"),ce=e("Ji7U"),re=e("LK+K"),D=e("q1tI"),n=e("rePB"),se=e("Ff2n"),M=e("ODXe"),u=e("4IlW"),Z=e("bX4T"),y=e("YrtM"),Q=e("TSYQ"),S=e.n(Q),p=e("+nKL"),f=e("8OUc"),d=function(L,ee){var de=L.prefixCls,Ae=L.id,Ce=L.flattenOptions,I=L.childrenAsData,j=L.values,te=L.searchValue,G=L.multiple,x=L.defaultActiveFirstOption,w=L.height,Y=L.itemHeight,ae=L.notFoundContent,xe=L.open,pe=L.menuItemSelectedIcon,Ee=L.virtual,Te=L.onSelect,Pe=L.onToggleOpen,ze=L.onActiveValue,ke=L.onScroll,Ie=L.onMouseEnter,Re="".concat(de,"-item"),De=Object(y.a)(function(){return Ce},[xe,Ce],function(le,oe){return oe[0]&&le[1]!==oe[1]}),Ge=D.useRef(null),Qe=function(oe){oe.preventDefault()},Ve=function(oe){Ge.current&&Ge.current.scrollTo({index:oe})},qe=function(oe){for(var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=De.length,v=0;v1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(W).map(function(ee,de){if(!D.isValidElement(ee)||!ee.type)return null;var Ae=ee.type.isSelectOptGroup,Ce=ee.key,I=ee.props,j=I.children,te=Object(se.a)(I,["children"]);return L||!Ae?b(ee):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?de:Ce,"__"),label:Ce},te),{},{options:r(j)})}).filter(function(ee){return ee})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),l=e("Kwbf"),s=e("WKfj");function A(W){var L=W.mode,ee=W.options,de=W.children,Ae=W.backfill,Ce=W.allowClear,I=W.placeholder,j=W.getInputElement,te=W.showSearch,G=W.onSearch,x=W.defaultOpen,w=W.autoFocus,Y=W.labelInValue,ae=W.value,xe=W.inputValue,pe=W.optionLabelProp,Ee=L==="multiple"||L==="tags",Te=te!==void 0?te:Ee||L==="combobox",Pe=ee||r(de);if(Object(l.a)(L!=="tags"||Pe.every(function(Re){return!Re.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var ze=Pe.some(function(Re){return Re.options?Re.options.some(function(De){return typeof("value"in De?De.value:De.key)=="number"}):typeof("value"in Re?Re.value:Re.key)=="number"});Object(l.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(l.a)(L!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(l.a)(L==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(l.a)(L==="combobox"||!j,"`getInputElement` only work with `combobox` mode."),Object(l.b)(L!=="combobox"||!j||!Ce||!I,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),G&&!Te&&L!=="combobox"&&L!=="tags"&&Object(l.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(l.b)(!x||w,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ae!=null){var ke=Object(s.d)(ae);Object(l.a)(!Y||ke.every(function(Re){return Object(i.a)(Re)==="object"&&("key"in Re||"value"in Re)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(l.a)(!Ee||Array.isArray(ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(de){var Ie=null;Object(g.a)(de).some(function(Re){if(!D.isValidElement(Re)||!Re.type)return!1;var De=Re.type;if(De.isSelectOption)return!1;if(De.isSelectOptGroup){var Ge=Object(g.a)(Re.props.children).every(function(Qe){return!D.isValidElement(Qe)||!Re.type||Qe.type.isSelectOption?!0:(Ie=Qe.type,!1)});return!Ge}return Ie=De,!0}),Ie&&Object(l.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(l.a)(xe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=A,P=Object(t.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:r,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:m,fillOptionsWithMissingValue:o.a}),B=function(W){Object(ce.a)(ee,W);var L=Object(re.a)(ee);function ee(){var de;return Object(_.a)(this,ee),de=L.apply(this,arguments),de.selectRef=D.createRef(),de.focus=function(){de.selectRef.current.focus()},de.blur=function(){de.selectRef.current.blur()},de}return Object(a.a)(ee,[{key:"render",value:function(){return D.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),ee}(D.Component);B.Option=T,B.OptGroup=z;var q=B,V=E.c=q},LicW:function(J,E,e){"use strict";var _=e("T2oS"),a=e("W9HT"),ce=e("5Dmo"),re=e("3S7+"),D=e("q1tI"),n=e.n(D),se=e("ZJlW"),M=e.n(se),u=e("m3rI"),Z=e("TSYQ"),y=e.n(Z),Q=e("1vsH"),S=e("z4EP"),p=e.n(S),f=e("+GGh"),d=e.n(f),N=e("cFMs"),h=e.n(N),R=e("BdwD"),T=function(z){var C=z.className,g=z.dataSource,b=g===void 0?[]:g,r=z.col,o=r===void 0?4:r,t=z.right,i=z.bottom,l=i===void 0?23:i,s=z.precision,A=s===void 0?0:s,m=z.wrapWidth,P=m===void 0?1200:m,B=z.trackEventItems,q=z.loading,V=Math.floor((P-(o-1)*t)/o);return n.a.createElement(a.a,{spinning:q},n.a.createElement("div",{className:y()(M.a.list,C)},!!b.length&&b.map(function(W,L){var ee=W.name,de=W.id,Ae=W.identifier,Ce=W.featured,I=W.school_name,j=W.image_url,te=W.excellent;return n.a.createElement("div",{key:de,className:M.a.wrap,style:{width:V,marginRight:(1+L)%o===0?0:t+A,marginBottom:l}},n.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ae),className:M.a.li,onClick:function(x){x.preventDefault(),B&&Object(Q.cb)([B]),Object(Q.S)("/paths/".concat(Ae))}},n.a.createElement("div",{className:M.a.img},n.a.createElement("img",{className:M.a.cover,src:"".concat(u.a.IMG_SERVER,"/").concat(j)}),Ce===1&&n.a.createElement("img",{className:M.a.sign,src:p.a}),Ce===2&&n.a.createElement("img",{className:M.a.sign,src:""}),Ce===3&&n.a.createElement("img",{className:M.a.sign,src:d.a}),Ce===4&&n.a.createElement("img",{className:M.a.sign,src:""}),Ce===5&&n.a.createElement("img",{className:M.a.sign,src:h.a})),n.a.createElement("div",{className:M.a.name},n.a.createElement(re.a,{title:ee},n.a.createElement("span",{className:M.a.e},ee))),n.a.createElement(re.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(I)},n.a.createElement("div",{className:M.a.unit},n.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),I)),n.a.createElement("div",{className:M.a.tags},n.a.createElement(re.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),n.a.createElement("span",null,W.stages_count))),n.a.createElement(re.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),n.a.createElement("span",null,W.members_count))),te&&n.a.createElement("div",{className:M.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!b.length&&n.a.createElement(R.a,null)))};E.a=T},MEgm:function(J,E){J.exports="data:image/png;base64,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"},NLgs:function(J,E,e){"use strict";e.d(E,"e",function(){return N}),e.d(E,"f",function(){return h}),e.d(E,"d",function(){return T}),e.d(E,"c",function(){return O}),e.d(E,"a",function(){return z}),e.d(E,"b",function(){return C});var _=e("miYZ"),a=e("tsqr"),ce=e("9og8"),re=e("2qtc"),D=e("kLXV"),n=e("WmNS"),se=e.n(n),M=e("q1tI"),u=e.n(M),Z=e("9kvl"),y=e("xKgJ"),Q=e("1vsH"),S=e("RCxd"),p=e("yTi+"),f=e.n(p),d=e("m3rI"),N=function(b){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(h(b)&&R(r))},h=function(b){return Object(y.p)()?!0:(b({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},R=function(){var b,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=Object(Z.c)()._store.getState(),t=o.user;return(b=t.userInfo)!==null&&b!==void 0&&b.profile_completed?!0:(D.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r?"\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(){Z.d.push("/account/profile/edit")}}),!1)},T=function(){var b,r=Object(Z.c)()._store.getState(),o=r.user;return(b=o.userInfo)!==null&&b!==void 0&&b.professional_certification?!0:(D.a.confirm({title:"\u63D0\u793A",centered:!0,content:u.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(Q.S)("/account/certification")}}),!1)},O=function(){var b;if(Object(y.a)())return!0;var r=Object(Z.c)()._store.getState(),o=r.user,t=r.globalSetting;return D.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),u.a.createElement("img",{src:d.a.IMG_SERVER+(t==null||((b=t.setting)===null||b===void 0)?void 0:b.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},z=function(b,r){var o;if(b)return!0;var t=Object(Z.c)()._store.getState(),i=t.user,l=t.globalSetting;return D.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("p",null,r||"\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"),u.a.createElement("div",{style:{marginLeft:"110px"}},u.a.createElement("img",{src:d.a.IMG_SERVER+(l==null||((o=l.setting)===null||o===void 0)?void 0:o.authority_qrcode_url),width:200}),u.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(Q.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},C=function(b){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=Object(Z.c)()._store.getState(),t=o.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(D.a.info({centered:!0,icon:u.a.createElement(S.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",r,"\u3002"),u.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),u.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(D.a.confirm({centered:!0,icon:u.a.createElement(S.a,null),title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",r,"\u3002"),u.a.createElement("br",null),u.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(){D.a.confirm({width:440,centered:!0,icon:u.a.createElement(S.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 l=Object(ce.a)(se.a.mark(function A(){var m;return se.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,b({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:m=B.sent,m.status!==401&&(a.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),b({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),b({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return B.stop()}},A)}));function s(){return l.apply(this,arguments)}return s}()})}}),!0):!1}},NQ7k:function(J,E,e){"use strict";e.r(E);var _=e("cWXX"),a=e("/ezw"),ce=e("DjyN"),re=e("NUBc"),D=e("k1fw"),n=e("miYZ"),se=e("tsqr"),M=e("9og8"),u=e("tJVT"),Z=e("PpiC"),y=e("WmNS"),Q=e.n(y),S=e("q1tI"),p=e.n(S),f=e("Ty5D"),d=e("9kvl"),N=e("lhx+"),h=e.n(N),R=e("g9YV"),T=e("wCAj"),O=e("5Dmo"),z=e("3S7+"),C=e("2m4C"),g=e.n(C),b=e("xKgJ"),r=e("wd/R"),o=e.n(r),t=e("1vsH"),i=e("Nf5h"),l=function(V){var W=V.data,L=V.number,ee=V.params,de=V.setParams,Ae=V.getCourses,Ce=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:80,className:"pl20",render:function(j,te,G){return p.a.createElement("span",null,L+G+1)}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:140,ellipsis:!0,sorter:!0,sortOrder:ee.sort_by==="name"?ee.sort_direction==="desc"?"descend":"ascend":null,key:"name",render:function(j){return p.a.createElement(z.a,{title:j,placement:"bottomLeft"},p.a.createElement("span",{className:g.a.text},j))}},{title:"\u7BA1\u7406\u5458",dataIndex:"teacher",key:"teacher",width:64,ellipsis:!0,render:function(j){return p.a.createElement(z.a,{title:(j==null?void 0:j.real_name)||"--",placement:"bottomLeft"},p.a.createElement("span",null,(j==null?void 0:j.real_name)||"--"))}},{title:"\u534F\u4F5C\u8001\u5E08",dataIndex:"teacher_users",key:"teacher_users",width:138,ellipsis:!0,render:function(j){return p.a.createElement(z.a,{title:j.join("\u3001"),placement:"bottomLeft"},p.a.createElement("span",null,j.join("\u3001")))}},{title:"\u8BBF\u95EE\u6B21\u6570",dataIndex:"visits",width:75,key:"visits",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u8BFE\u5802\u6210\u5458",dataIndex:"members_count",width:75,key:"members_count",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u4F5C\u4E1A\u6570\u91CF",dataIndex:"homework_commons_count",width:75,key:"homework_commons_count",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:110,sorter:!0,sortOrder:ee.sort_by==="created_at"?ee.sort_direction==="desc"?"descend":"ascend":null,render:function(j){return p.a.createElement("span",{className:"c-grey-666"},o()(j).format("YYYY-MM-DD"))}},{title:"\u72B6\u6001",dataIndex:"is_end",key:"is_end",width:80,render:function(j){return j?"\u5DF2\u7ED3\u675F":"\u6B63\u5728\u8FDB\u884C"}},{title:"\u64CD\u4F5C",dataIndex:"name",key:"name",width:62,align:"right",render:function(j,te){return te.can_visited?p.a.createElement("span",{className:"current-primary",onClick:function(x){x.stopPropagation(),Object(t.S)(te.first_category_url)}},"\u8BE6\u60C5"):p.a.createElement(z.a,{title:Object(b.p)()?"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE":"\u79C1\u6709\u8BFE\u5802\uFF0C\u8BF7\u767B\u5F55\u518D\u64CD\u4F5C"},p.a.createElement("span",{className:"c-grey-999"},"\u8BE6\u60C5"))}}];return p.a.createElement(p.a.Fragment,null,p.a.createElement(i.f,null,p.a.createElement(T.a,{style:{cursor:"pointer"},onRow:function(j){return{onClick:function(G){j.can_visited&&window.open("".concat(j==null?void 0:j.first_category_url),"_blank")}}},onChange:function(j,te,G){G.field&&(ee.sort_by=G.field),G.order||(ee.sort_direction="asc"),G.order==="ascend"&&(ee.sort_direction="asc"),G.order==="descend"&&(ee.sort_direction="desc"),G.order||(ee.sort_direction="asc"),de(ee),Ae(ee)},className:"bg-white",pagination:!1,dataSource:W,columns:Ce})))},s=l,A=e("Jky8"),m=e("NLgs"),P=function(V){var W,L,ee=V.user,de=V.userDetail,Ae=V.globalSetting,Ce=V.loading,I=V.dispatch,j=Object(Z.a)(V,["user","userDetail","globalSetting","loading","dispatch"]),te=Object(f.h)(),G=Object(S.useState)({}),x=Object(u.a)(G,2),w=x[0],Y=x[1],ae=Object(S.useRef)(),xe=Object(S.useState)(0),pe=Object(u.a)(xe,2),Ee=pe[0],Te=pe[1],Pe=Object(S.useState)([]),ze=Object(u.a)(Pe,2),ke=ze[0],Ie=ze[1],Re=Object(S.useState)(),De=Object(u.a)(Re,2),Ge=De[0],Qe=De[1],Ve=Object(S.useState)(!1),qe=Object(u.a)(Ve,2),Ye=qe[0],ot=qe[1],c=Object(S.useState)(!1),K=Object(u.a)(c,2),k=K[0],ie=K[1],he=Object(S.useState)([{label:p.a.createElement("span",{className:"icon-juxingfenbu font14"}),value:1},{label:p.a.createElement("span",{className:"icon-liebiaofenbu font14"}),value:2}]),le=Object(u.a)(he,2),oe=le[0],$=le[1],X=Object(S.useState)(parseInt(localStorage.getItem("ClassShowType"))||1),v=Object(u.a)(X,2),U=v[0],F=v[1],ue=Object(S.useState)(!0),ne=Object(u.a)(ue,2),be=ne[0],ye=ne[1];Object(S.useEffect)(function(){var H;ae.current=(H=te.pathname.split("/"))===null||H===void 0?void 0:H[2];var fe={category:"",status:"",page:1,per_page:15,sort_by:"updated_at",sort_direction:"desc",username:ae.current};Y(fe),ge(fe)},[te.pathname]),Object(S.useEffect)(function(){var H;Qe(((H=ee.userInfo)===null||H===void 0?void 0:H.login)===ae.current)},[(W=ee.userInfo)===null||W===void 0?void 0:W.login,ae.current]);var ge=function(){var H=Object(M.a)(Q.a.mark(function fe(_e){var Ke;return Q.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,I({type:"userDetail/getCourses",payload:_e});case 2:Ke=tt.sent,Ke&&(Te(Ke.count||0),Ie(Ke.courses||[]));case 4:case"end":return tt.stop()}},fe)}));return function(_e){return H.apply(this,arguments)}}(),Oe=function(fe){console.log(fe,"category"),w.category=fe,w.page=1,Y(w),ge(w)},me=function(fe){w.status=fe,w.page=1,Y(w),ge(w)},we=function(fe){w.search=fe,w.page=1,Y(w),ge(w)},je=function(fe){console.log(fe,"sort_direction"),w.sort_direction=fe,Y(w),ge(w)},Le=function(fe){w.sort_by=fe,w.sort_direction="desc",Y(w),ge(w)},We=function(fe,_e){w.page=fe,w.per_page=_e,Y(w),ge(w)},Xe=function(){return w.category?w.category==="manage"?"\u53D1\u5E03":"\u5B66\u4E60":"\u8BFE\u5802"},Me=function(){return w.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":w.sort_by==="created_at"?"\u6700\u65B0\u521B\u5EFA":w.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""},ve;(function(H){H.Projects="projects",H.Shixuns="shixuns",H.Classrooms="classrooms"})(ve||(ve={}));var Fe=function(fe){var _e;if(!Object(m.e)(I))return;if(fe===ve.Projects&&!((_e=ee.userInfo)!==null&&_e!==void 0&&_e.email)){se.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}fe===ve.Classrooms&&ie(!0)},Se=[{id:"",name:"\u5168\u90E8"},{id:"manage",name:"".concat(Ge?"\u6211":"TA","\u7BA1\u7406\u7684")},{id:"study",name:"".concat(Ge?"\u6211":"TA","\u5B66\u4E60\u7684")}],Ne=[{id:"",name:"\u5168\u90E8"},{id:"processing",name:"\u6B63\u5728\u8FDB\u884C"},{id:"end",name:"\u5DF2\u7ED3\u675F"}];return console.log(Object(b.t)(),2222),p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:h.a.wrap},p.a.createElement(i.g,{value:w.category,onChange:Oe,tabBarExtraContent:p.a.createElement(i.e,{style:{width:303},placeholder:"\u8BF7\u641C\u7D22\u8BFE\u5802\u540D\u79F0",value:w.search,onChange:we}),dataSource:Se}),Ge&&p.a.createElement(i.h,{title:"\u72B6\u6001",className:"mt25",value:w.status,onChange:me,dataSource:Ne,titleWidth:28}),p.a.createElement("div",{className:h.a.midWrap},p.a.createElement(i.k,{sortValue:w.sort_direction,dropValue:w.sort_by,onSort:je,onDrop:Le}),p.a.createElement("div",{className:h.a.type},p.a.createElement("i",{className:U===1?"iconfont icon-fenbu ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9):"iconfont icon-fenbu ".concat(h.a.cursorPointer),onClick:function(){F(1),localStorage.setItem("ClassShowType","1")}}),p.a.createElement("span",{className:h.a.orderDesc},p.a.createElement("i",{className:U===2?"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9," "):"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer),onClick:function(){F(2),localStorage.setItem("ClassShowType","2")}}))),((L=ee.userInfo)===null||L===void 0?void 0:L.identity)==="student"&&!Object(b.v)()?p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return Fe(ve.Classrooms)}},"\u52A0\u5165\u6559\u5B66\u8BFE\u5802"):!(Ae!=null&&Ae.setting.hide_course)&&p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return d.d.push("/classrooms/new?username=".concat(ae.current))}},"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802")),p.a.createElement(a.a,{loading:Ce["userDetail/getCourses"],active:!0,paragraph:{rows:5}},U==1&&p.a.createElement(i.b,{dataSource:ke==null?void 0:ke.map(function(H){var fe,_e;return Object(D.a)(Object(D.a)({},H),{},{is_accessible:H.can_visited,course_members_count:H.members_count,tasks_count:H.homework_commons_count,avatar_url:(fe=H.teacher)===null||fe===void 0?void 0:fe.avatar_url,creator:(_e=H.teacher)===null||_e===void 0?void 0:_e.real_name})}),right:23,col:3,wrapWidth:887,loading:!1}),U!=1&&p.a.createElement("div",{className:"mt10",style:{minHeight:400}},p.a.createElement(s,{number:(w.page-1)*w.per_page,data:ke,params:w,setParams:Y,getCourses:ge})),Ee>0&&p.a.createElement("div",{className:h.a.countWrap},p.a.createElement(re.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:Ee,onChange:function(fe,_e){We(fe,_e)},pageSize:w.per_page,current:w.page})))),p.a.createElement(A.a,{visible:k,onCancel:function(){return ie(!1)}}))},B=E.default=Object(d.a)(function(q){var V=q.user,W=q.userDetail,L=q.loading,ee=q.globalSetting;return{user:V,userDetail:W,globalSetting:ee,loading:L.effects}})(P)},NQs2:function(J,E,e){J.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(J,E,e){"use strict";e.d(E,"a",function(){return M}),e.d(E,"h",function(){return f}),e.d(E,"l",function(){return R}),e.d(E,"e",function(){return b}),e.d(E,"i",function(){return i}),e.d(E,"j",function(){return x}),e.d(E,"c",function(){return w.a}),e.d(E,"b",function(){return Ee}),e.d(E,"g",function(){return ke}),e.d(E,"f",function(){return Ge}),e.d(E,"k",function(){return ie}),e.d(E,"d",function(){return $});var _=e("q1tI"),a=e.n(_),ce=e("NQs2"),re=e.n(ce),D=e("ygoZ"),n=e.n(D),se=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.img,ne=v.imgWidth,be=ne===void 0?346:ne,ye=v.title,ge=v.sunTitle,Oe=v.bannerExtraContent;return a.a.createElement("div",{className:re.a.banner},a.a.createElement("div",{className:re.a.content},a.a.createElement("aside",null,a.a.createElement("p",null,a.a.createElement("b",null,ye),a.a.createElement("span",null,ge)),F.length>0&&a.a.createElement("div",{className:re.a.btns},F.map(function(me,we){return a.a.createElement("div",{key:we,onClick:me.click},me.name,me.sign?a.a.createElement("img",{src:n.a,width:39}):null)})),Oe),a.a.createElement("img",{style:{marginTop:33,marginRight:38},src:ue,width:be})))},M=se,u=e("tJVT"),Z=e("6nfa"),y=e.n(Z),Q=e("TSYQ"),S=e.n(Q),p=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className,ye=v.title,ge=v.titleWidth,Oe=ge===void 0?41:ge,me=v.style,we=me===void 0?{}:me,je=v.fontColor,Le=je===void 0?"#6A7283":je,We=Object(_.useState)(0),Xe=Object(u.a)(We,2),Me=Xe[0],ve=Xe[1],Fe=Object(_.useState)(!1),Se=Object(u.a)(Fe,2),Ne=Se[0],H=Se[1],fe=Object(_.useRef)(null);return Object(_.useEffect)(function(){if(F.length!==0){var _e;(fe==null||((_e=fe.current)===null||_e===void 0)?void 0:_e.clientHeight)>92?ve(1):ve(0)}F.length===0&&ve(0)},[F]),a.a.createElement("div",{className:S()(y.a.row,be),style:we},a.a.createElement("div",{style:{width:Oe,marginTop:Ne?12:4},className:y.a.title},ye),a.a.createElement("div",{className:Ne?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},a.a.createElement("div",{className:y.a.bar,style:Me>0?{height:Me===1?92:"auto",overflow:Me===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.a.createElement("div",{className:y.a.name,ref:fe},F==null?void 0:F.map(function(_e){return a.a.createElement("span",{onClick:function(){return ne(_e.id)},key:_e.id,title:_e.name,style:{color:Le},className:ue===_e.id?y.a.active:""},_e.name)}))),!!Me&&a.a.createElement(_.Fragment,null,Me===1?a.a.createElement("div",{onClick:function(){var Ke;ve(2),(fe==null||((Ke=fe.current)===null||Ke===void 0)?void 0:Ke.clientHeight)>205?H(!0):H(!1)},className:y.a.action},"\u5C55\u5F00",a.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.a.createElement("div",{onClick:function(){ve(1),H(!1)},className:y.a.action},"\u6536\u8D77",a.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},f=p,d=e("cz0n"),N=e.n(d),h=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className;return a.a.createElement("div",{className:S()(N.a.tabs,be)},F.map(function(ye){return a.a.createElement("span",{onClick:function(){return ne(ye.id)},className:ue===ye.id?N.a.active:"",key:ye.id},ye.name)}))},R=h,T=e("5NDa"),O=e("5rEg"),z=e("KOXS"),C=e.n(z),g=function(v){var U,F=v.dataSource,ue=F===void 0?[]:F,ne=v.value,be=v.onChange,ye=v.className,ge=v.style,Oe=ge===void 0?{}:ge,me=v.placeholder,we=Object(_.useState)(""),je=Object(u.a)(we,2),Le=je[0],We=je[1],Xe=Object(_.useState)(""),Me=Object(u.a)(Xe,2),ve=Me[0],Fe=Me[1];Object(_.useEffect)(function(){var H;(H=JSON.stringify(ne))!==null&&H!==void 0&&H.includes("{")?(We(ne.id),Fe(ne.value)):Fe(ne)},[ne]);var Se=function(){be(ve||null,Le||"")},Ne=function(fe){if(fe===Le)return;We(fe),be(ve,fe)};return a.a.createElement("div",{className:S()(C.a.input,ye),style:Oe},!!ue.length&&a.a.createElement("div",{className:C.a.dropdown},a.a.createElement("div",{className:C.a.text},(U=ue.find(function(H){return H.id===Le}))===null||U===void 0?void 0:U.name,a.a.createElement("i",{className:"iconfont icon-zhankai4"}),a.a.createElement("b",{className:C.a.b1}),a.a.createElement("b",{className:C.a.b2})),a.a.createElement("div",{className:C.a.menu},ue.map(function(H,fe){return a.a.createElement("div",{key:fe,onClick:function(){return Ne(H.id)}},H.name)}))),a.a.createElement(O.a,{onPressEnter:Se,value:ve,onChange:function(fe){return Fe(fe.target.value||"")},bordered:!1,placeholder:me}),a.a.createElement("i",{onClick:Se,className:"iconfont icon-sousuo9 font14 pl10 current"}))},b=g,r=e("f9pc"),o=e.n(r),t=function(v){var U=v.value,F=v.onChange,ue=v.className,ne=v.total,be=v.pageSize,ye=v.style,ge=ye===void 0?{}:ye,Oe=U<2,me=U>=Math.ceil(ne/be);return ne<=be?a.a.createElement(a.a.Fragment,null):a.a.createElement("div",{className:S()(o.a.quickPager,ue),style:ge},a.a.createElement("div",{onClick:function(){Oe||F(U-1,"prev")},className:Oe?o.a.disabled:""},"\u4E0A\u4E00\u9875"),a.a.createElement("div",{onClick:function(){me||F(U+1,"next")},className:me?o.a.disabled:""},"\u4E0B\u4E00\u9875"))},i=t,l=e("T2oS"),s=e("W9HT"),A=e("pC0b"),m=e("GzdX"),P=e("5Dmo"),B=e("3S7+"),q=e("Oe0F"),V=e.n(q),W=e("m3rI"),L=e("1vsH"),ee=e("JAbv"),de=e.n(ee),Ae=e("Bq7L"),Ce=e.n(Ae),I=e("MEgm"),j=e.n(I),te=e("BdwD"),G=function(v){var U=v.className,F=v.dataSource,ue=F===void 0?[]:F,ne=v.col,be=ne===void 0?4:ne,ye=v.right,ge=v.bottom,Oe=ge===void 0?23:ge,me=v.precision,we=me===void 0?0:me,je=v.wrapWidth,Le=je===void 0?1200:je,We=v.trackEventItems,Xe=v.loading,Me=Math.floor((Le-(be-1)*ye)/be);return a.a.createElement(s.a,{spinning:Xe},a.a.createElement("div",{className:S()(V.a.list,U)},!!ue.length&&ue.map(function(ve,Fe){var Se=ve.name,Ne=ve.id,H=ve.identifier,fe=ve.power,_e=ve.cover_image_id,Ke=ve.pic;return a.a.createElement("div",{className:V.a.wrap,key:Ne,style:{width:Me,marginRight:(1+Fe)%be===0?0:ye+we,marginBottom:Oe}},a.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(H,"/challenges"),className:V.a.li,onClick:function(tt){tt.preventDefault(),We&&Object(L.cb)([We]),fe&&Object(L.S)("/shixuns/".concat(H,"/challenges"))}},a.a.createElement("div",{className:V.a.img},a.a.createElement("img",{className:V.a.cover,src:_e?"".concat(W.a.API_SERVER,"/api/attachments/").concat(_e):"".concat(W.a.IMG_SERVER,"/").concat(Ke)}),ve.is_jupyter&&a.a.createElement("img",{className:V.a.sign,src:de.a}),ve.is_jupyter_lab&&a.a.createElement("img",{className:V.a.sign,src:Ce.a}),ve.is_unity_3d&&a.a.createElement("img",{className:V.a.sign,src:j.a})),a.a.createElement("div",{className:V.a.name},a.a.createElement(B.a,{title:Se||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.a.createElement("span",{className:V.a.e},Se||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.a.createElement("div",{className:V.a.tags},a.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),a.a.createElement("span",null,ve.challenges_count))),!!ve.myshixuns_count&&a.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),a.a.createElement("span",null,ve.myshixuns_count))),a.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.a.createElement("span",null,a.a.createElement("span",null,ve.level))),a.a.createElement("div",{className:V.a.rate},a.a.createElement(m.a,{allowHalf:!0,disabled:!0,defaultValue:ve.score_info}),a.a.createElement("span",null,"\xA0",ve.score_info?"".concat(ve.score_info,"\u5206"):"5\u5206")))),!fe&&a.a.createElement("div",{className:V.a.lockWrap},a.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ue.length&&a.a.createElement(te.a,null)))},x=G,w=e("LicW"),Y=e("iL++"),ae=e.n(Y),xe=e("xiVL"),pe=function(v){var U=v.className,F=v.dataSource,ue=F===void 0?[]:F,ne=v.col,be=ne===void 0?4:ne,ye=v.right,ge=v.bottom,Oe=ge===void 0?23:ge,me=v.precision,we=me===void 0?0:me,je=v.wrapWidth,Le=je===void 0?1200:je,We=v.trackEventItems,Xe=v.loading,Me=Math.floor((Le-(be-1)*ye)/be);return a.a.createElement(s.a,{spinning:Xe},a.a.createElement("div",{className:S()(ae.a.list,U)},!!ue.length&&ue.map(function(ve,Fe){var Se=ve.subject_identifier,Ne=ve.id,H=ve.identifier,fe=ve.power,_e=ve.is_public!=0&&ve.is_public;return a.a.createElement("div",{className:ae.a.wrap,key:Ne,style:{width:Me,marginRight:(1+Fe)%be===0?0:ye+we,marginBottom:Oe}},a.a.createElement("a",{className:ae.a.li,onClick:function(He){He.preventDefault()}},a.a.createElement("div",{className:ae.a.top},a.a.createElement(B.a,{title:ve.name},a.a.createElement("div",{className:ae.a.name},ve.name)),a.a.createElement("img",{className:ae.a.img,src:W.a.IMG_SERVER+"/images/"+ve.avatar_url}),a.a.createElement("div",{className:ae.a.text},ve.creator),Se&&a.a.createElement("div",{className:ae.a.btns},a.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_e&&a.a.createElement("div",{className:ae.a.sign},"\u516C\u5F00")),a.a.createElement("div",{className:ae.a.bottom},ve.visits>0&&a.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-liulanyan"}),a.a.createElement("span",null,ve.visits))),ve.course_members_count>0&&a.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan"}),ve.course_members_count)),ve.tasks_count>0&&a.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-zuoye"}),ve.tasks_count)),ve.is_end?a.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),a.a.createElement("div",{className:ae.a.lockWrap},ve.is_accessible?a.a.createElement(a.a.Fragment,null,Se&&a.a.createElement("div",{onClick:function(){return Object(L.S)("/paths/".concat(Se))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),a.a.createElement("div",{onClick:function(He){We&&Object(L.cb)([We]),Object(L.S)(ve.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):a.a.createElement(a.a.Fragment,null,a.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ue.length&&a.a.createElement(te.a,null)))},Ee=pe,Te=e("f0W+"),Pe=e.n(Te),ze=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className,ye=v.style,ge=ye===void 0?{}:ye,Oe=v.tabBarExtraContent;return a.a.createElement("div",{className:S()(Pe.a.tabs,be),style:ge},a.a.createElement("div",{className:Pe.a.tabsWrap},F.map(function(me,we){return a.a.createElement("div",{onClick:function(){return ne(me.id)},className:ue===me.id?Pe.a.active:"",key:we},me.name)})),a.a.createElement("div",{className:Pe.a.tabBar},Oe))},ke=ze,Ie=e("9JIy"),Re=e.n(Ie),De=function(v){var U=v.className,F=v.style,ue=F===void 0?{}:F,ne=v.children;return a.a.createElement("div",{className:S()(Re.a.table,U),style:ue},ne)},Ge=De,Qe=e("qVdP"),Ve=e("jsC+"),qe=e("lUTK"),Ye=e("BvKs"),ot=e("8WcF"),c=e.n(ot),K=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],k=function(v){var U,F=v.sortValue,ue=v.dropValue,ne=v.className,be=v.onSort,ye=v.onDrop,ge=v.dataSource,Oe=ge===void 0?K:ge;return a.a.createElement("div",{className:S()(c.a.orderWrap,ne)},a.a.createElement(Ve.a,{overlay:a.a.createElement(Ye.a,null,Oe.map(function(me,we){return a.a.createElement(Ye.a.Item,{key:we,onClick:function(){return ye(me.id)}},me.name)}))},a.a.createElement("span",{className:c.a.orderTextWrap},(U=Oe.find(function(me){return ue===me.id}))===null||U===void 0?void 0:U.name)),a.a.createElement("span",{className:c.a.orderIconWrap},a.a.createElement("span",{className:c.a.orderAsc},a.a.createElement("i",{className:F==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer),onClick:function(){return be(F==="asc"?"desc":"asc")}})),a.a.createElement("span",{className:c.a.orderDesc},a.a.createElement("i",{className:F==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer),onClick:function(){return be(F==="asc"?"desc":"asc")}}))))},ie=k,he=e("siWv"),le=e.n(he),oe=function(v){var U=v.className,F=v.style,ue=v.children,ne=v.onClick;return a.a.createElement("div",{onClick:ne,className:S()(le.a.btn,U),style:F},ue)},$=oe},NvD2:function(J,E,e){"use strict";e.d(E,"a",function(){return n});var _=e("Kwbf");function a(se,M){var u=new Set;return se.forEach(function(Z){M.has(Z)||u.add(Z)}),u}function ce(se){var M=se||{},u=M.disabled,Z=M.disableCheckbox,y=M.checkable;return!!(u||Z)||y===!1}function re(se,M,u,Z){for(var y=new Set(se),Q=new Set,S=0;S<=u;S+=1){var p=M.get(S)||new Set;p.forEach(function(h){var R=h.key,T=h.node,O=h.children,z=O===void 0?[]:O;y.has(R)&&!Z(T)&&z.filter(function(C){return!Z(C.node)}).forEach(function(C){y.add(C.key)})})}for(var f=new Set,d=u;d>=0;d-=1){var N=M.get(d)||new Set;N.forEach(function(h){var R=h.parent,T=h.node;if(Z(T)||!h.parent||f.has(h.parent.key))return;if(Z(h.parent.node)){f.add(R.key);return}var O=!0,z=!1;(R.children||[]).filter(function(C){return!Z(C.node)}).forEach(function(C){var g=C.key,b=y.has(g);O&&!b&&(O=!1),!z&&(b||Q.has(g))&&(z=!0)}),O&&y.add(R.key),z&&Q.add(R.key),f.add(R.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(a(Q,y))}}function D(se,M,u,Z,y){for(var Q=new Set(se),S=new Set(M),p=0;p<=Z;p+=1){var f=u.get(p)||new Set;f.forEach(function(R){var T=R.key,O=R.node,z=R.children,C=z===void 0?[]:z;!Q.has(T)&&!S.has(T)&&!y(O)&&C.filter(function(g){return!y(g.node)}).forEach(function(g){Q.delete(g.key)})})}S=new Set;for(var d=new Set,N=Z;N>=0;N-=1){var h=u.get(N)||new Set;h.forEach(function(R){var T=R.parent,O=R.node;if(y(O)||!R.parent||d.has(R.parent.key))return;if(y(R.parent.node)){d.add(T.key);return}var z=!0,C=!1;(T.children||[]).filter(function(g){return!y(g.node)}).forEach(function(g){var b=g.key,r=Q.has(b);z&&!r&&(z=!1),!C&&(r||S.has(b))&&(C=!0)}),z||Q.delete(T.key),C&&S.add(T.key),d.add(T.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(a(S,Q))}}function n(se,M,u,Z){var y=[],Q;Z?Q=Z:Q=ce;var S=new Set(se.filter(function(N){var h=!!u[N];return h||y.push(N),h})),p=new Map,f=0;Object.keys(u).forEach(function(N){var h=u[N],R=h.level,T=p.get(R);T||(T=new Set,p.set(R,T)),T.add(h),f=Math.max(f,R)}),Object(_.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(N){return"'".concat(N,"'")}).join(", ")));var d;return M===!0?d=re(S,p,f,Q):d=D(S,M.halfCheckedKeys,p,f,Q),d}},OZM5:function(J,E,e){"use strict";e.d(E,"b",function(){return Z}),e.d(E,"a",function(){return y}),e.d(E,"k",function(){return Q}),e.d(E,"h",function(){return S}),e.d(E,"i",function(){return p}),e.d(E,"g",function(){return f}),e.d(E,"c",function(){return d}),e.d(E,"d",function(){return N}),e.d(E,"j",function(){return T}),e.d(E,"e",function(){return O}),e.d(E,"f",function(){return z});var _=e("KQm4"),a=e("U8pU"),ce=e("Ff2n"),re=e("q1tI"),D=e.n(re),n=e("Kwbf"),se=e("WaYH"),M=.25,u=2;function Z(C,g){var b=C.slice(),r=b.indexOf(g);return r>=0&&b.splice(r,1),b}function y(C,g){var b=C.slice();return b.indexOf(g)===-1&&b.push(g),b}function Q(C){return C.split("-")}function S(C,g){return"".concat(C,"-").concat(g)}function p(C){return C&&C.type&&C.type.isTreeNode}function f(C,g){var b=[C],r=g[C];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var l=i.key,s=i.children;b.push(l),o(s)})}return o(r.children),b}function d(C,g){var b=C.clientY,r=g.selectHandle.getBoundingClientRect(),o=r.top,t=r.bottom,i=r.height,l=Math.max(i*M,u);return b<=o+l?-1:b>=t-l?1:0}function N(C,g){if(!C)return;var b=g.multiple;return b?C.slice():C.length?[C[0]]:C}var h=function(g){return g};function R(C,g){if(!C)return[];var b=g||{},r=b.processProps,o=r===void 0?h:r,t=Array.isArray(C)?C:[C];return t.map(function(i){var l=i.children,s=Object(ce.a)(i,["children"]),A=R(l,g);return D.a.createElement(se.a,Object.assign({},o(s)),A)})}function T(C){if(!C)return null;var g;if(Array.isArray(C))g={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(a.a)(C)==="object")g={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function O(C,g){var b=new Set;function r(o){if(b.has(o))return;var t=g[o];if(!t)return;b.add(o);var i=t.parent,l=t.node;if(l.disabled)return;i&&r(i.key)}return(C||[]).forEach(function(o){r(o)}),Object(_.a)(b)}function z(C){var g={};return Object.keys(C).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(g[b]=C[b])}),g}},Oe0F:function(J,E,e){J.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(J,E,e){var _=e("wTVA"),a=e("EbDI"),ce=e("ZhPi"),re=e("wkBT");function D(n){return _(n)||a(n)||ce(n)||re()}J.exports=D,J.exports.__esModule=!0,J.exports.default=J.exports},WaYH:function(J,E,e){"use strict";var _=e("rePB"),a=e("Ff2n"),ce=e("VTBJ"),re=e("1OyB"),D=e("vuIU"),n=e("JX7q"),se=e("Ji7U"),M=e("LK+K"),u=e("q1tI"),Z=e("TSYQ"),y=e.n(Z),Q=e("sboe"),S=e("OZM5"),p=function(g){var b=g.prefixCls,r=g.level,o=g.isStart,t=g.isEnd;if(!r)return null;for(var i="".concat(b,"-indent-unit"),l=[],s=0;s=0||s.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),P(o.getValidValue())},o.go=function(s){var A=o.state.goInputText;if(A==="")return;(s.keyCode===p.ENTER||s.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(M.a)(r,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,l=t.current;return!i||isNaN(i)?l:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,l=t.pageSizeOptions;return l.some(function(s){return s.toString()===i.toString()})?l:l.concat([i.toString()]).sort(function(s,A){var m=isNaN(Number(s))?0:Number(s),P=isNaN(Number(A))?0:Number(A);return m-P})}},{key:"render",value:function(){var t=this,i=this.props,l=i.pageSize,s=i.locale,A=i.rootPrefixCls,m=i.changeSize,P=i.quickGo,B=i.goButton,q=i.selectComponentClass,V=i.buildOptionText,W=i.selectPrefixCls,L=i.disabled,ee=this.state.goInputText,de="".concat(A,"-options"),Ae=q,Ce=null,I=null,j=null;if(!m&&!P)return null;var te=this.getPageSizeOptions();if(m&&Ae){var G=te.map(function(x,w){return u.a.createElement(Ae.Option,{key:w,value:x.toString()},(V||t.buildOptionText)(x))});Ce=u.a.createElement(Ae,{disabled:L,prefixCls:W,showSearch:!1,className:"".concat(de,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(l||te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(w){return w.parentNode}},G)}return P&&(B&&(j=typeof B=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:L,className:"".concat(de,"-quick-jumper-button")},s.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),I=u.a.createElement("div",{className:"".concat(de,"-quick-jumper")},s.jump_to,u.a.createElement("input",{disabled:L,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),s.page,j)),u.a.createElement("li",{className:"".concat(de)},Ce,I)}}]),r}(u.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=f,N=e("N2Kk");function h(){}function R(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function T(g,b,r){return r}function O(g,b,r){var o=typeof g=="undefined"?b.pageSize:g;return Math.floor((r.total-1)/o)+1}var z=function(g){Object(n.a)(r,g);var b=Object(se.a)(r);function r(o){var t;Object(re.a)(this,r),t=b.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(O(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(m,P){var B=t.props.prefixCls,q=m||u.a.createElement("button",{type:"button","aria-label":P,className:"".concat(B,"-item-link")});return typeof m=="function"&&(q=u.a.createElement(m,Object(ce.a)({},t.props))),q},t.savePaginationNode=function(m){t.paginationNode=m},t.isValid=function(m){return R(m)&&m!==t.state.current},t.shouldDisplayQuickJumper=function(){var m=t.props,P=m.showQuickJumper,B=m.pageSize,q=m.total;return q<=B?!1:P},t.handleKeyDown=function(m){(m.keyCode===p.ARROW_UP||m.keyCode===p.ARROW_DOWN)&&m.preventDefault()},t.handleKeyUp=function(m){var P=t.getValidValue(m),B=t.state.currentInputValue;P!==B&&t.setState({currentInputValue:P}),m.keyCode===p.ENTER?t.handleChange(P):m.keyCode===p.ARROW_UP?t.handleChange(P-1):m.keyCode===p.ARROW_DOWN&&t.handleChange(P+1)},t.changePageSize=function(m){var P=t.state.current,B=O(m,t.state,t.props);P=P>B?B:P,B===0&&(P=t.state.current),typeof m=="number"&&("pageSize"in t.props||t.setState({pageSize:m}),"current"in t.props||t.setState({current:P,currentInputValue:P})),t.props.onShowSizeChange(P,m),"onChange"in t.props&&t.props.onChange&&t.props.onChange(P,m)},t.handleChange=function(m){var P=t.props.disabled,B=m;if(t.isValid(B)&&!P){var q=O(void 0,t.state,t.props);B>q?B=q:B<1&&(B=1),"current"in t.props||t.setState({current:B,currentInputValue:B});var V=t.state.pageSize;return t.props.onChange(B,V),B}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?B-2:0),V=2;V=l?A=l:A=Number(i),A}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,l=t.total,s=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:l>s}},{key:"renderPrev",value:function(t){var i=this.props,l=i.prevIcon,s=i.itemRender,A=s(t,"prev",this.getItemIcon(l,"prev page")),m=!this.hasPrev();return Object(D.isValidElement)(A)?Object(D.cloneElement)(A,{disabled:m}):A}},{key:"renderNext",value:function(t){var i=this.props,l=i.nextIcon,s=i.itemRender,A=s(t,"next",this.getItemIcon(l,"next page")),m=!this.hasNext();return Object(D.isValidElement)(A)?Object(D.cloneElement)(A,{disabled:m}):A}},{key:"render",value:function(){var t=this,i=this.props,l=i.prefixCls,s=i.className,A=i.style,m=i.disabled,P=i.hideOnSinglePage,B=i.total,q=i.locale,V=i.showQuickJumper,W=i.showLessItems,L=i.showTitle,ee=i.showTotal,de=i.simple,Ae=i.itemRender,Ce=i.showPrevNextJumpers,I=i.jumpPrevIcon,j=i.jumpNextIcon,te=i.selectComponentClass,G=i.selectPrefixCls,x=i.pageSizeOptions,w=this.state,Y=w.current,ae=w.pageSize,xe=w.currentInputValue;if(P===!0&&B<=ae)return null;var pe=O(void 0,this.state,this.props),Ee=[],Te=null,Pe=null,ze=null,ke=null,Ie=null,Re=V&&V.goButton,Me=W?1:2,Ge=Y-1>0?Y-1:0,Qe=Y+1=Me*2&&Y!==1+2&&(Ee[0]=Object(D.cloneElement)(Ee[0],{className:"".concat(l,"-item-after-jump-prev")}),Ee.unshift(Te)),pe-Y>=Me*2&&Y!==pe-2&&(Ee[Ee.length-1]=Object(D.cloneElement)(Ee[Ee.length-1],{className:"".concat(l,"-item-before-jump-next")}),Ee.push(Pe)),k!==1&&Ee.unshift(ze),ie!==pe&&Ee.push(ke)}var oe=null;ee&&(oe=u.a.createElement("li",{className:"".concat(l,"-total-text")},ee(B,[B===0?0:(Y-1)*ae+1,Y*ae>B?B:Y*ae])));var $=!this.hasPrev()||!pe,X=!this.hasNext()||!pe;return u.a.createElement("ul",Object(_.a)({className:y()(l,s,Object(a.a)({},"".concat(l,"-disabled"),m)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Ve),oe,u.a.createElement("li",{title:L?q.prev_page:null,onClick:this.prev,tabIndex:$?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(l,"-prev"),Object(a.a)({},"".concat(l,"-disabled"),$)),"aria-disabled":$},this.renderPrev(Ge)),Ee,u.a.createElement("li",{title:L?q.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(l,"-next"),Object(a.a)({},"".concat(l,"-disabled"),X)),"aria-disabled":X},this.renderNext(Qe)),u.a.createElement(d,{disabled:m,locale:q,rootPrefixCls:l,selectComponentClass:te,selectPrefixCls:G,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Y,pageSize:ae,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Re}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l={};if("current"in t&&(l.current=t.current,t.current!==i.current&&(l.currentInputValue=l.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var s=i.current,A=O(t.pageSize,i,t);s=s>A?A:s,"current"in t||(l.current=s,l.currentInputValue=s),l.pageSize=t.pageSize}return l}}]),r}(u.a.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:N.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var C=z},"6RRn":function(J,E,e){"use strict";var _=e("wCXF"),a=e("n6Qo");e.d(E,"b",function(){return a.a});var ce=e("IBYe"),re=e("6eGT"),M=e("hW8S");e.d(E,"a",function(){return M.a}),E.c=_.b},"6eGT":function(J,E,e){"use strict";function _(a){return null}E.a=_},"6nfa":function(J,E,e){J.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"815F":function(J,E,e){"use strict";e.d(E,"e",function(){return se}),e.d(E,"c",function(){return u}),e.d(E,"d",function(){return Z}),e.d(E,"a",function(){return Q}),e.d(E,"f",function(){return S}),e.d(E,"b",function(){return p});var _=e("KQm4"),a=e("VTBJ"),ce=e("Ff2n"),re=e("Zm9Q"),M=e("Kwbf"),n=e("OZM5");function se(f,d){return f!=null?f:d}function D(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function N(h){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(T){var O=T.key,z=T.children;Object(M.a)(O!=null,"Tree node must have a certain key: [".concat(R).concat(O,"]"));var C=String(O);Object(M.a)(!d.has(C)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(C)),d.set(C,!0),N(z,"".concat(R).concat(C," > "))})}N(f)}function u(f){function d(N){var h=Object(re.a)(N);return h.map(function(R){if(!Object(n.i)(R))return Object(M.a)(!R,"Tree/TreeNode can only accept TreeNode as children."),null;var T=R.key,O=R.props,z=O.children,C=Object(ce.a)(O,["children"]),g=Object(a.a)({key:T},C),b=d(z);return b.length&&(g.children=b),g}).filter(function(R){return R})}return d(f)}function Z(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=new Set(d===!0?[]:d),h=[];function R(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(z,C){var g=Object(n.h)(O?O.pos:"0",C),b=se(z.key,g),r=Object(a.a)(Object(a.a)({},z),{},{parent:O,pos:g,children:null,data:z,isStart:[].concat(Object(_.a)(O?O.isStart:[]),[C===0]),isEnd:[].concat(Object(_.a)(O?O.isEnd:[]),[C===T.length-1])});return h.push(r),d===!0||N.has(b)?r.children=R(z.children||[],r):r.children=[],r})}return R(f),h}function y(f,d,N){var h;N?typeof N=="string"?h=function(O){return O[N]}:typeof N=="function"&&(h=function(O){return N(O)}):h=function(O,z){return se(O.key,z)};function R(T,O,z){var C=T?T.children:f,g=T?Object(n.h)(z.pos,O):"0";if(T){var b=h(T,g),r={node:T,index:O,pos:g,key:b,parentPos:z.node?z.pos:null,level:z.level+1};d(r)}C&&C.forEach(function(o,t){R(o,t,{node:T,pos:g,level:z?z.level+1:-1})})}R(null)}function Q(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=d.initWrapper,h=d.processEntity,R=d.onProcessFinished,T=arguments.length>2?arguments[2]:void 0,O={},z={},C={posEntities:O,keyEntities:z};return N&&(C=N(C)||C),y(f,function(g){var b=g.node,r=g.index,o=g.pos,t=g.key,i=g.parentPos,l=g.level,s={node:b,index:r,key:t,pos:o,level:l},A=se(t,o);O[o]=s,z[A]=s,s.parent=O[i],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),h&&h(s,C)},T),R&&R(C),C}function S(f,d){var N=d.expandedKeys,h=d.selectedKeys,R=d.loadedKeys,T=d.loadingKeys,O=d.checkedKeys,z=d.halfCheckedKeys,C=d.dragOverNodeKey,g=d.dropPosition,b=d.keyEntities,r=b[f],o={eventKey:f,expanded:N.indexOf(f)!==-1,selected:h.indexOf(f)!==-1,loaded:R.indexOf(f)!==-1,loading:T.indexOf(f)!==-1,checked:O.indexOf(f)!==-1,halfChecked:z.indexOf(f)!==-1,pos:String(r?r.pos:""),dragOver:C===f&&g===0,dragOverGapTop:C===f&&g===-1,dragOverGapBottom:C===f&&g===1};return o}function p(f){var d=f.data,N=f.expanded,h=f.selected,R=f.checked,T=f.loaded,O=f.loading,z=f.halfChecked,C=f.dragOver,g=f.dragOverGapTop,b=f.dragOverGapBottom,r=f.pos,o=f.active,t=Object(a.a)(Object(a.a)({},d),{},{expanded:N,selected:h,checked:R,loaded:T,loading:O,halfChecked:z,dragOver:C,dragOverGapTop:g,dragOverGapBottom:b,pos:r,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(M.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),t}},"8WcF":function(J,E,e){J.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"}},"8mKB":function(J,E,e){"use strict";var _=e("rePB"),a=e("1OyB"),ce=e("vuIU"),re=e("Ji7U"),M=e("md7G"),n=e("foSv"),se=e("q1tI"),D=e.n(se),u=e("m+aA"),Z=e("TSYQ"),y=e.n(Z),Q=e("4IlW");function S(o){var t=o.pageXOffset,i="scrollLeft";if(typeof t!="number"){var l=o.document;t=l.documentElement[i],typeof t!="number"&&(t=l.body[i])}return t}function p(o){var t,i,l=o.ownerDocument,s=l.body,A=l&&l.documentElement,m=o.getBoundingClientRect();return t=m.left,i=m.top,t-=A.clientLeft||s.clientLeft||0,i-=A.clientTop||s.clientTop||0,{left:t,top:i}}function f(o){var t=p(o),i=o.ownerDocument,l=i.defaultView||i.parentWindow;return t.left+=S(l),t.left}function d(o){var t=N();return function(){var l=Object(n.a)(o),s;if(t){var A=Object(n.a)(this).constructor;s=Reflect.construct(l,arguments,A)}else s=l.apply(this,arguments);return Object(M.a)(this,s)}}function N(){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(o){return!1}}var h=function(o){Object(re.a)(i,o);var t=d(i);function i(){var l;return Object(a.a)(this,i),l=t.apply(this,arguments),l.onHover=function(s){var A=l.props,m=A.onHover,P=A.index;m(s,P)},l.onClick=function(s){var A=l.props,m=A.onClick,P=A.index;m(s,P)},l.onKeyDown=function(s){var A=l.props,m=A.onClick,P=A.index;s.keyCode===13&&m(s,P)},l}return Object(ce.a)(i,[{key:"getClassName",value:function(){var s=this.props,A=s.prefixCls,m=s.index,P=s.value,B=s.allowHalf,q=s.focused,V=m+1,W=A;return P===0&&m===0&&q?W+=" ".concat(A,"-focused"):B&&P+.5>=V&&PL?"true":"false","aria-posinset":L+1,"aria-setsize":ee,tabIndex:B?-1:0},D.a.createElement("div",{className:"".concat(q,"-first")},Ae),D.a.createElement("div",{className:"".concat(q,"-second")},Ae)));return W&&(Ce=W(Ce,this.props)),Ce}}]),i}(D.a.Component);function R(o,t){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function T(o){for(var t=1;t0&&!ee||P===Q.a.RIGHT&&de>0&&ee?(V?de-=.5:de-=1,s.changeValue(de),m.preventDefault()):P===Q.a.LEFT&&deee/2||!q&&A-L1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(_.a)())return null;var Z=document.createElement("style");if((D=u.csp)===null||D===void 0?void 0:D.nonce){var y;Z.nonce=(y=u.csp)===null||y===void 0?void 0:y.nonce}Z.innerHTML=se;var Q=ce(u),S=Q.firstChild;return u.prepend&&Q.prepend?Q.prepend(Z):u.prepend&&S?Q.insertBefore(Z,S):Q.appendChild(Z),Z}var M=new Map;function n(se,D){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=ce(u);if(!M.has(Z)){var y=re("",u),Q=y.parentNode;M.set(Z,Q),Q.removeChild(y)}var S=Array.from(M.get(Z).children).find(function(h){return h.tagName==="STYLE"&&h[a]===D});if(S){var p,f;if(((p=u.csp)===null||p===void 0?void 0:p.nonce)&&S.nonce!==((f=u.csp)===null||f===void 0?void 0:f.nonce)){var d;S.nonce=(d=u.csp)===null||d===void 0?void 0:d.nonce}return S.innerHTML!==se&&(S.innerHTML=se),S}var N=re(se,u);return N[a]=D,N}},BdwD:function(J,E,e){"use strict";var _=e("+L6B"),a=e("2/Rp"),ce=e("0Owb"),re=e("k1fw"),M=e("q1tI"),n=e.n(M),se=e("FOrL"),D=e.n(se),u=function(y){var Q=y.buttonProps,S=Q===void 0?{}:Q,p=y.styles,f=p===void 0?{}:p,d=y.customText,N=y.ButtonText,h=y.ButtonClick,R=y.Buttonclass,T=y.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(re.a)(Object(re.a)({},{color:"#999",margin:"200px auto"}),f)},n.a.createElement("img",{src:D.a}),n.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),N&&n.a.createElement(a.a,Object(ce.a)({className:R,onClick:h},S),N),T&&T)};E.a=u},Bq7L:function(J,E){J.exports="data:image/png;base64,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"},"Ct/S":function(J,E,e){J.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(J,E,e){J.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(J,E,e){"use strict";function _(a){return null}E.a=_},JAbv:function(J,E){J.exports="data:image/png;base64,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"},Jky8:function(J,E,e){"use strict";var _=e("sRBo"),a=e("kaz8"),ce=e("5NDa"),re=e("5rEg"),M=e("miYZ"),n=e("tsqr"),se=e("9og8"),D=e("2qtc"),u=e("kLXV"),Z=e("tJVT"),y=e("WmNS"),Q=e.n(y),S=e("q1tI"),p=e.n(S),f=e("9kvl"),d=e("6CvP"),N=e("1XHU"),h=e("1vsH"),R;(function(O){O[O.Professor=1]="Professor",O[O.AssistantProfessor=2]="AssistantProfessor",O[O.Student=3]="Student"})(R||(R={}));var T=function(z){var C=z.visible,g=z.user,b=z.onCancel,r=b===void 0?function(){}:b,o=Object(S.useState)(),t=Object(Z.a)(o,2),i=t[0],l=t[1],s=Object(S.useState)([]),A=Object(Z.a)(s,2),m=A[0],P=A[1],B=Object(S.useState)(!1),q=Object(Z.a)(B,2),V=q[0],W=q[1],L=Object(S.useState)(!1),ee=Object(Z.a)(L,2),de=ee[0],Ae=ee[1],Ce=Object(S.useState)(),I=Object(Z.a)(Ce,2),j=I[0],te=I[1];Object(S.useEffect)(function(){var Y;if(g!=null&&(Y=g.userInfo)!==null&&Y!==void 0&&Y.identity){var ae;P([(g==null||((ae=g.userInfo)===null||ae===void 0)?void 0:ae.identity)==="student"?3:1])}},[g]);var G=function(ae,xe){if(m.includes(R.Professor)){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc"},xe||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){f.d.push("/classrooms/".concat(ae,"/students"))}});return}f.d.push("/classrooms/".concat(ae,"/students"))},x=function(){var Y=Object(se.a)(Q.a.mark(function ae(){var xe;return Q.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(i){Ee.next=3;break}return n.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Ee.abrupt("return");case 3:return W(!0),Ee.next=6,Object(d.c)({invite_code:i,professor:m.includes(R.Professor)?1:null,assistant_professor:m.includes(R.AssistantProfessor)?1:null,student:m.includes(R.Student)?1:null});case 6:if(xe=Ee.sent,W(!1),!((xe==null?void 0:xe.status)===-2)){Ee.next=22;break}if(w(),!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Ee.next=14;break}return Ae(!0),te(1),Ee.abrupt("return");case 14:if(!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Ee.next=18;break}return Ae(!0),te(2),Ee.abrupt("return");case 18:if(!(xe.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Ee.next=22;break}return Ae(!0),te(3),Ee.abrupt("return");case 22:if(!((xe==null?void 0:xe.status)===0)){Ee.next=27;break}return Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),w(),(xe==null?void 0:xe.course_id)&&G(xe.course_id,xe.message),Ee.abrupt("return");case 27:case"end":return Ee.stop()}},ae)}));return function(){return Y.apply(this,arguments)}}(),w=function(){var Y=Object(se.a)(Q.a.mark(function ae(){return Q.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:r();case 1:case"end":return pe.stop()}},ae)}));return function(){return Y.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(u.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:C,confirmLoading:V,onOk:x,onCancel:w},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),p.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:i,onChange:function(ae){if(ae.target.value.length>=7){n.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}l(ae.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),p.a.createElement(a.a.Group,{value:m,onChange:function(ae){return P(ae)}},p.a.createElement(a.a,{value:R.Professor,disabled:m.includes(2)||m.includes(3)},"\u6559\u5E08"),p.a.createElement(a.a,{value:R.AssistantProfessor,disabled:m.includes(1)},"\u52A9\u6559"),p.a.createElement(a.a,{value:R.Student,disabled:m.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),p.a.createElement(N.a,{visible:de,onCancel:function(){return Ae(!1)},occupationValue:j}))};E.a=Object(f.a)(function(O){var z=O.user;return{user:z}})(T)},KOXS:function(J,E,e){J.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"}},LdHM:function(J,E,e){"use strict";e.d(E,"b",function(){return T}),e.d(E,"a",function(){return z});var _=e("1OyB"),a=e("vuIU"),ce=e("Ji7U"),re=e("LK+K"),M=e("q1tI"),n=e("rePB"),se=e("Ff2n"),D=e("ODXe"),u=e("4IlW"),Z=e("bX4T"),y=e("YrtM"),Q=e("TSYQ"),S=e.n(Q),p=e("+nKL"),f=e("8OUc"),d=function(L,ee){var de=L.prefixCls,Ae=L.id,Ce=L.flattenOptions,I=L.childrenAsData,j=L.values,te=L.searchValue,G=L.multiple,x=L.defaultActiveFirstOption,w=L.height,Y=L.itemHeight,ae=L.notFoundContent,xe=L.open,pe=L.menuItemSelectedIcon,Ee=L.virtual,Te=L.onSelect,Pe=L.onToggleOpen,ze=L.onActiveValue,ke=L.onScroll,Ie=L.onMouseEnter,Re="".concat(de,"-item"),Me=Object(y.a)(function(){return Ce},[xe,Ce],function(le,oe){return oe[0]&&le[1]!==oe[1]}),Ge=M.useRef(null),Qe=function(oe){oe.preventDefault()},Ve=function(oe){Ge.current&&Ge.current.scrollTo({index:oe})},qe=function(oe){for(var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=Me.length,v=0;v1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(W).map(function(ee,de){if(!M.isValidElement(ee)||!ee.type)return null;var Ae=ee.type.isSelectOptGroup,Ce=ee.key,I=ee.props,j=I.children,te=Object(se.a)(I,["children"]);return L||!Ae?b(ee):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(Ce===null?de:Ce,"__"),label:Ce},te),{},{options:r(j)})}).filter(function(ee){return ee})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),l=e("Kwbf"),s=e("WKfj");function A(W){var L=W.mode,ee=W.options,de=W.children,Ae=W.backfill,Ce=W.allowClear,I=W.placeholder,j=W.getInputElement,te=W.showSearch,G=W.onSearch,x=W.defaultOpen,w=W.autoFocus,Y=W.labelInValue,ae=W.value,xe=W.inputValue,pe=W.optionLabelProp,Ee=L==="multiple"||L==="tags",Te=te!==void 0?te:Ee||L==="combobox",Pe=ee||r(de);if(Object(l.a)(L!=="tags"||Pe.every(function(Re){return!Re.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),L==="tags"||L==="combobox"){var ze=Pe.some(function(Re){return Re.options?Re.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in Re?Re.value:Re.key)=="number"});Object(l.a)(!ze,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(l.a)(L!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(l.a)(L==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(l.a)(L==="combobox"||!j,"`getInputElement` only work with `combobox` mode."),Object(l.b)(L!=="combobox"||!j||!Ce||!I,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),G&&!Te&&L!=="combobox"&&L!=="tags"&&Object(l.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(l.b)(!x||w,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ae!=null){var ke=Object(s.d)(ae);Object(l.a)(!Y||ke.every(function(Re){return Object(i.a)(Re)==="object"&&("key"in Re||"value"in Re)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(l.a)(!Ee||Array.isArray(ae),"`value` should be array when `mode` is `multiple` or `tags`")}if(de){var Ie=null;Object(g.a)(de).some(function(Re){if(!M.isValidElement(Re)||!Re.type)return!1;var Me=Re.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var Ge=Object(g.a)(Re.props.children).every(function(Qe){return!M.isValidElement(Qe)||!Re.type||Qe.type.isSelectOption?!0:(Ie=Qe.type,!1)});return!Ge}return Ie=Me,!0}),Ie&&Object(l.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(l.a)(xe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=A,P=Object(t.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:r,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:m,fillOptionsWithMissingValue:o.a}),B=function(W){Object(ce.a)(ee,W);var L=Object(re.a)(ee);function ee(){var de;return Object(_.a)(this,ee),de=L.apply(this,arguments),de.selectRef=M.createRef(),de.focus=function(){de.selectRef.current.focus()},de.blur=function(){de.selectRef.current.blur()},de}return Object(a.a)(ee,[{key:"render",value:function(){return M.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),ee}(M.Component);B.Option=T,B.OptGroup=z;var q=B,V=E.c=q},LicW:function(J,E,e){"use strict";var _=e("T2oS"),a=e("W9HT"),ce=e("5Dmo"),re=e("3S7+"),M=e("q1tI"),n=e.n(M),se=e("ZJlW"),D=e.n(se),u=e("m3rI"),Z=e("TSYQ"),y=e.n(Z),Q=e("1vsH"),S=e("z4EP"),p=e.n(S),f=e("+GGh"),d=e.n(f),N=e("cFMs"),h=e.n(N),R=e("BdwD"),T=function(z){var C=z.className,g=z.dataSource,b=g===void 0?[]:g,r=z.col,o=r===void 0?4:r,t=z.right,i=z.bottom,l=i===void 0?23:i,s=z.precision,A=s===void 0?0:s,m=z.wrapWidth,P=m===void 0?1200:m,B=z.trackEventItems,q=z.loading,V=Math.floor((P-(o-1)*t)/o);return n.a.createElement(a.a,{spinning:q},n.a.createElement("div",{className:y()(D.a.list,C)},!!b.length&&b.map(function(W,L){var ee=W.name,de=W.id,Ae=W.identifier,Ce=W.featured,I=W.school_name,j=W.image_url,te=W.excellent;return n.a.createElement("div",{key:de,className:D.a.wrap,style:{width:V,marginRight:(1+L)%o===0?0:t+A,marginBottom:l}},n.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ae),className:D.a.li,onClick:function(x){x.preventDefault(),B&&Object(Q.cb)([B]),Object(Q.S)("/paths/".concat(Ae))}},n.a.createElement("div",{className:D.a.img},n.a.createElement("img",{className:D.a.cover,src:"".concat(u.a.IMG_SERVER,"/").concat(j)}),Ce===1&&n.a.createElement("img",{className:D.a.sign,src:p.a}),Ce===2&&n.a.createElement("img",{className:D.a.sign,src:""}),Ce===3&&n.a.createElement("img",{className:D.a.sign,src:d.a}),Ce===4&&n.a.createElement("img",{className:D.a.sign,src:""}),Ce===5&&n.a.createElement("img",{className:D.a.sign,src:h.a})),n.a.createElement("div",{className:D.a.name},n.a.createElement(re.a,{title:ee},n.a.createElement("span",{className:D.a.e},ee))),n.a.createElement(re.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(I)},n.a.createElement("div",{className:D.a.unit},n.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),I)),n.a.createElement("div",{className:D.a.tags},n.a.createElement(re.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),n.a.createElement("span",null,W.stages_count))),n.a.createElement(re.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),n.a.createElement("span",null,W.members_count))),te&&n.a.createElement("div",{className:D.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!b.length&&n.a.createElement(R.a,null)))};E.a=T},MEgm:function(J,E){J.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},NLgs:function(J,E,e){"use strict";e.d(E,"e",function(){return N}),e.d(E,"f",function(){return h}),e.d(E,"d",function(){return T}),e.d(E,"c",function(){return O}),e.d(E,"a",function(){return z}),e.d(E,"b",function(){return C});var _=e("miYZ"),a=e("tsqr"),ce=e("9og8"),re=e("2qtc"),M=e("kLXV"),n=e("WmNS"),se=e.n(n),D=e("q1tI"),u=e.n(D),Z=e("9kvl"),y=e("xKgJ"),Q=e("1vsH"),S=e("RCxd"),p=e("yTi+"),f=e.n(p),d=e("m3rI"),N=function(b){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(h(b)&&R(r))},h=function(b){return Object(y.p)()?!0:(b({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},R=function(){var b,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=Object(Z.c)()._store.getState(),t=o.user;return(b=t.userInfo)!==null&&b!==void 0&&b.profile_completed?!0:(M.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r?"\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(){Z.d.push("/account/profile/edit")}}),!1)},T=function(){var b,r=Object(Z.c)()._store.getState(),o=r.user;return(b=o.userInfo)!==null&&b!==void 0&&b.professional_certification?!0:(M.a.confirm({title:"\u63D0\u793A",centered:!0,content:u.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(Q.S)("/account/certification")}}),!1)},O=function(){var b;if(Object(y.a)())return!0;var r=Object(Z.c)()._store.getState(),o=r.user,t=r.globalSetting;return M.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),u.a.createElement("img",{src:d.a.IMG_SERVER+(t==null||((b=t.setting)===null||b===void 0)?void 0:b.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},z=function(b,r){var o;if(b)return!0;var t=Object(Z.c)()._store.getState(),i=t.user,l=t.globalSetting;return M.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("p",null,r||"\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"),u.a.createElement("div",{style:{marginLeft:"110px"}},u.a.createElement("img",{src:d.a.IMG_SERVER+(l==null||((o=l.setting)===null||o===void 0)?void 0:o.authority_qrcode_url),width:200}),u.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(Q.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},C=function(b){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=Object(Z.c)()._store.getState(),t=o.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(M.a.info({centered:!0,icon:u.a.createElement(S.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",r,"\u3002"),u.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),u.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(M.a.confirm({centered:!0,icon:u.a.createElement(S.a,null),title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",r,"\u3002"),u.a.createElement("br",null),u.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(){M.a.confirm({width:440,centered:!0,icon:u.a.createElement(S.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 l=Object(ce.a)(se.a.mark(function A(){var m;return se.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,b({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:m=B.sent,m.status!==401&&(a.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),b({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),b({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return B.stop()}},A)}));function s(){return l.apply(this,arguments)}return s}()})}}),!0):!1}},NQ7k:function(J,E,e){"use strict";e.r(E);var _=e("cWXX"),a=e("/ezw"),ce=e("DjyN"),re=e("NUBc"),M=e("k1fw"),n=e("miYZ"),se=e("tsqr"),D=e("9og8"),u=e("tJVT"),Z=e("PpiC"),y=e("WmNS"),Q=e.n(y),S=e("q1tI"),p=e.n(S),f=e("Ty5D"),d=e("9kvl"),N=e("lhx+"),h=e.n(N),R=e("g9YV"),T=e("wCAj"),O=e("5Dmo"),z=e("3S7+"),C=e("2m4C"),g=e.n(C),b=e("xKgJ"),r=e("wd/R"),o=e.n(r),t=e("1vsH"),i=e("Nf5h"),l=function(V){var W=V.data,L=V.number,ee=V.params,de=V.setParams,Ae=V.getCourses,Ce=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:80,className:"pl20",render:function(j,te,G){return p.a.createElement("span",null,L+G+1)}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:140,ellipsis:!0,sorter:!0,sortOrder:ee.sort_by==="name"?ee.sort_direction==="desc"?"descend":"ascend":null,key:"name",render:function(j){return p.a.createElement(z.a,{title:j,placement:"bottomLeft"},p.a.createElement("span",{className:g.a.text},j))}},{title:"\u7BA1\u7406\u5458",dataIndex:"teacher",key:"teacher",width:64,ellipsis:!0,render:function(j){return p.a.createElement(z.a,{title:(j==null?void 0:j.real_name)||"--",placement:"bottomLeft"},p.a.createElement("span",null,(j==null?void 0:j.real_name)||"--"))}},{title:"\u534F\u4F5C\u8001\u5E08",dataIndex:"teacher_users",key:"teacher_users",width:138,ellipsis:!0,render:function(j){return p.a.createElement(z.a,{title:j.join("\u3001"),placement:"bottomLeft"},p.a.createElement("span",null,j.join("\u3001")))}},{title:"\u8BBF\u95EE\u6B21\u6570",dataIndex:"visits",width:75,key:"visits",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u8BFE\u5802\u6210\u5458",dataIndex:"members_count",width:75,key:"members_count",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u4F5C\u4E1A\u6570\u91CF",dataIndex:"homework_commons_count",width:75,key:"homework_commons_count",render:function(j){return p.a.createElement("span",{className:"c-grey-666"},j)}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:110,sorter:!0,sortOrder:ee.sort_by==="created_at"?ee.sort_direction==="desc"?"descend":"ascend":null,render:function(j){return p.a.createElement("span",{className:"c-grey-666"},o()(j).format("YYYY-MM-DD"))}},{title:"\u72B6\u6001",dataIndex:"is_end",key:"is_end",width:80,render:function(j){return j?"\u5DF2\u7ED3\u675F":"\u6B63\u5728\u8FDB\u884C"}},{title:"\u64CD\u4F5C",dataIndex:"name",key:"name",width:62,align:"right",render:function(j,te){return te.can_visited?p.a.createElement("span",{className:"current-primary",onClick:function(x){x.stopPropagation(),Object(t.S)(te.first_category_url)}},"\u8BE6\u60C5"):p.a.createElement(z.a,{title:Object(b.p)()?"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE":"\u79C1\u6709\u8BFE\u5802\uFF0C\u8BF7\u767B\u5F55\u518D\u64CD\u4F5C"},p.a.createElement("span",{className:"c-grey-999"},"\u8BE6\u60C5"))}}];return p.a.createElement(p.a.Fragment,null,p.a.createElement(i.f,null,p.a.createElement(T.a,{style:{cursor:"pointer"},onRow:function(j){return{onClick:function(G){j.can_visited&&window.open("".concat(j==null?void 0:j.first_category_url),"_blank")}}},onChange:function(j,te,G){G.field&&(ee.sort_by=G.field),G.order||(ee.sort_direction="asc"),G.order==="ascend"&&(ee.sort_direction="asc"),G.order==="descend"&&(ee.sort_direction="desc"),G.order||(ee.sort_direction="asc"),de(ee),Ae(ee)},className:"bg-white",pagination:!1,dataSource:W,columns:Ce})))},s=l,A=e("Jky8"),m=e("NLgs"),P=function(V){var W,L,ee=V.user,de=V.userDetail,Ae=V.globalSetting,Ce=V.loading,I=V.dispatch,j=Object(Z.a)(V,["user","userDetail","globalSetting","loading","dispatch"]),te=Object(f.h)(),G=Object(S.useState)({}),x=Object(u.a)(G,2),w=x[0],Y=x[1],ae=Object(S.useRef)(),xe=Object(S.useState)(0),pe=Object(u.a)(xe,2),Ee=pe[0],Te=pe[1],Pe=Object(S.useState)([]),ze=Object(u.a)(Pe,2),ke=ze[0],Ie=ze[1],Re=Object(S.useState)(),Me=Object(u.a)(Re,2),Ge=Me[0],Qe=Me[1],Ve=Object(S.useState)(!1),qe=Object(u.a)(Ve,2),Ye=qe[0],ot=qe[1],c=Object(S.useState)(!1),K=Object(u.a)(c,2),k=K[0],ie=K[1],he=Object(S.useState)([{label:p.a.createElement("span",{className:"icon-juxingfenbu font14"}),value:1},{label:p.a.createElement("span",{className:"icon-liebiaofenbu font14"}),value:2}]),le=Object(u.a)(he,2),oe=le[0],$=le[1],X=Object(S.useState)(parseInt(localStorage.getItem("ClassShowType"))||1),v=Object(u.a)(X,2),U=v[0],F=v[1],ue=Object(S.useState)(!0),ne=Object(u.a)(ue,2),be=ne[0],ye=ne[1];Object(S.useEffect)(function(){var H;ae.current=(H=te.pathname.split("/"))===null||H===void 0?void 0:H[2];var fe={category:"",status:"",page:1,per_page:15,sort_by:"updated_at",sort_direction:"desc",username:ae.current};Y(fe),ge(fe)},[te.pathname]),Object(S.useEffect)(function(){var H;Qe(((H=ee.userInfo)===null||H===void 0?void 0:H.login)===ae.current)},[(W=ee.userInfo)===null||W===void 0?void 0:W.login,ae.current]);var ge=function(){var H=Object(D.a)(Q.a.mark(function fe(_e){var Ke;return Q.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,I({type:"userDetail/getCourses",payload:_e});case 2:Ke=tt.sent,Ke&&(Te(Ke.count||0),Ie(Ke.courses||[]));case 4:case"end":return tt.stop()}},fe)}));return function(_e){return H.apply(this,arguments)}}(),Oe=function(fe){console.log(fe,"category"),w.category=fe,w.page=1,Y(w),ge(w)},me=function(fe){w.status=fe,w.page=1,Y(w),ge(w)},we=function(fe){w.search=fe,w.page=1,Y(w),ge(w)},je=function(fe){console.log(fe,"sort_direction"),w.sort_direction=fe,Y(w),ge(w)},Le=function(fe){w.sort_by=fe,w.sort_direction="desc",Y(w),ge(w)},We=function(fe,_e){w.page=fe,w.per_page=_e,Y(w),ge(w)},Xe=function(){return w.category?w.category==="manage"?"\u53D1\u5E03":"\u5B66\u4E60":"\u8BFE\u5802"},De=function(){return w.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":w.sort_by==="created_at"?"\u6700\u65B0\u521B\u5EFA":w.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""},ve;(function(H){H.Projects="projects",H.Shixuns="shixuns",H.Classrooms="classrooms"})(ve||(ve={}));var Fe=function(fe){var _e;if(!Object(m.e)(I))return;if(fe===ve.Projects&&!((_e=ee.userInfo)!==null&&_e!==void 0&&_e.email)){se.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}fe===ve.Classrooms&&ie(!0)},Se=[{id:"",name:"\u5168\u90E8"},{id:"manage",name:"".concat(Ge?"\u6211":"TA","\u7BA1\u7406\u7684")},{id:"study",name:"".concat(Ge?"\u6211":"TA","\u5B66\u4E60\u7684")}],Ne=[{id:"",name:"\u5168\u90E8"},{id:"processing",name:"\u6B63\u5728\u8FDB\u884C"},{id:"end",name:"\u5DF2\u7ED3\u675F"}];return console.log(Object(b.t)(),2222),p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:h.a.wrap},p.a.createElement(i.g,{value:w.category,onChange:Oe,tabBarExtraContent:p.a.createElement(i.e,{style:{width:303},placeholder:"\u8BF7\u641C\u7D22\u8BFE\u5802\u540D\u79F0",value:w.search,onChange:we}),dataSource:Se}),Ge&&p.a.createElement(i.h,{title:"\u72B6\u6001",className:"mt25",value:w.status,onChange:me,dataSource:Ne,titleWidth:28}),p.a.createElement("div",{className:h.a.midWrap},p.a.createElement(i.k,{sortValue:w.sort_direction,dropValue:w.sort_by,onSort:je,onDrop:Le}),p.a.createElement("div",{className:h.a.type},p.a.createElement("i",{className:U===1?"iconfont icon-fenbu ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9):"iconfont icon-fenbu ".concat(h.a.cursorPointer),onClick:function(){F(1),localStorage.setItem("ClassShowType","1")}}),p.a.createElement("span",{className:h.a.orderDesc},p.a.createElement("i",{className:U===2?"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9," "):"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer),onClick:function(){F(2),localStorage.setItem("ClassShowType","2")}}))),((L=ee.userInfo)===null||L===void 0?void 0:L.identity)==="student"&&!Object(b.v)()?p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return Fe(ve.Classrooms)}},"\u52A0\u5165\u6559\u5B66\u8BFE\u5802"):!(Ae!=null&&Ae.setting.hide_course)&&p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return d.d.push("/classrooms/new?username=".concat(ae.current))}},"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802")),p.a.createElement(a.a,{loading:Ce["userDetail/getCourses"],active:!0,paragraph:{rows:5}},U==1&&p.a.createElement(i.b,{dataSource:ke==null?void 0:ke.map(function(H){var fe,_e;return Object(M.a)(Object(M.a)({},H),{},{is_accessible:H.can_visited,course_members_count:H.members_count,tasks_count:H.homework_commons_count,avatar_url:(fe=H.teacher)===null||fe===void 0?void 0:fe.avatar_url,creator:(_e=H.teacher)===null||_e===void 0?void 0:_e.real_name})}),right:23,col:3,wrapWidth:887,loading:!1}),U!=1&&p.a.createElement("div",{className:"mt10",style:{minHeight:400}},p.a.createElement(s,{number:(w.page-1)*w.per_page,data:ke,params:w,setParams:Y,getCourses:ge})),Ee>0&&p.a.createElement("div",{className:h.a.countWrap},p.a.createElement(re.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:Ee,onChange:function(fe,_e){We(fe,_e)},pageSize:w.per_page,current:w.page})))),p.a.createElement(A.a,{visible:k,onCancel:function(){return ie(!1)}}))},B=E.default=Object(d.a)(function(q){var V=q.user,W=q.userDetail,L=q.loading,ee=q.globalSetting;return{user:V,userDetail:W,globalSetting:ee,loading:L.effects}})(P)},NQs2:function(J,E,e){J.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(J,E,e){"use strict";e.d(E,"a",function(){return D}),e.d(E,"h",function(){return f}),e.d(E,"l",function(){return R}),e.d(E,"e",function(){return b}),e.d(E,"i",function(){return i}),e.d(E,"j",function(){return x}),e.d(E,"c",function(){return w.a}),e.d(E,"b",function(){return Ee}),e.d(E,"g",function(){return ke}),e.d(E,"f",function(){return Ge}),e.d(E,"k",function(){return ie}),e.d(E,"d",function(){return $});var _=e("q1tI"),a=e.n(_),ce=e("NQs2"),re=e.n(ce),M=e("ygoZ"),n=e.n(M),se=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.img,ne=v.imgWidth,be=ne===void 0?346:ne,ye=v.title,ge=v.sunTitle,Oe=v.bannerExtraContent;return a.a.createElement("div",{className:re.a.banner},a.a.createElement("div",{className:re.a.content},a.a.createElement("aside",null,a.a.createElement("p",null,a.a.createElement("b",null,ye),a.a.createElement("span",null,ge)),F.length>0&&a.a.createElement("div",{className:re.a.btns},F.map(function(me,we){return a.a.createElement("div",{key:we,onClick:me.click},me.name,me.sign?a.a.createElement("img",{src:n.a,width:39}):null)})),Oe),a.a.createElement("img",{style:{marginTop:33,marginRight:38},src:ue,width:be})))},D=se,u=e("tJVT"),Z=e("6nfa"),y=e.n(Z),Q=e("TSYQ"),S=e.n(Q),p=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className,ye=v.title,ge=v.titleWidth,Oe=ge===void 0?41:ge,me=v.style,we=me===void 0?{}:me,je=v.fontColor,Le=je===void 0?"#6A7283":je,We=Object(_.useState)(0),Xe=Object(u.a)(We,2),De=Xe[0],ve=Xe[1],Fe=Object(_.useState)(!1),Se=Object(u.a)(Fe,2),Ne=Se[0],H=Se[1],fe=Object(_.useRef)(null);return Object(_.useEffect)(function(){if(F.length!==0){var _e;(fe==null||((_e=fe.current)===null||_e===void 0)?void 0:_e.clientHeight)>92?ve(1):ve(0)}F.length===0&&ve(0)},[F]),a.a.createElement("div",{className:S()(y.a.row,be),style:we},a.a.createElement("div",{style:{width:Oe,marginTop:Ne?12:4},className:y.a.title},ye),a.a.createElement("div",{className:Ne?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},a.a.createElement("div",{className:y.a.bar,style:De>0?{height:De===1?92:"auto",overflow:De===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.a.createElement("div",{className:y.a.name,ref:fe},F==null?void 0:F.map(function(_e){return a.a.createElement("span",{onClick:function(){return ne(_e.id)},key:_e.id,title:_e.name,style:{color:Le},className:ue===_e.id?y.a.active:""},_e.name)}))),!!De&&a.a.createElement(_.Fragment,null,De===1?a.a.createElement("div",{onClick:function(){var Ke;ve(2),(fe==null||((Ke=fe.current)===null||Ke===void 0)?void 0:Ke.clientHeight)>205?H(!0):H(!1)},className:y.a.action},"\u5C55\u5F00",a.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.a.createElement("div",{onClick:function(){ve(1),H(!1)},className:y.a.action},"\u6536\u8D77",a.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},f=p,d=e("cz0n"),N=e.n(d),h=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className;return a.a.createElement("div",{className:S()(N.a.tabs,be)},F.map(function(ye){return a.a.createElement("span",{onClick:function(){return ne(ye.id)},className:ue===ye.id?N.a.active:"",key:ye.id},ye.name)}))},R=h,T=e("5NDa"),O=e("5rEg"),z=e("KOXS"),C=e.n(z),g=function(v){var U,F=v.dataSource,ue=F===void 0?[]:F,ne=v.value,be=v.onChange,ye=v.className,ge=v.style,Oe=ge===void 0?{}:ge,me=v.placeholder,we=Object(_.useState)(""),je=Object(u.a)(we,2),Le=je[0],We=je[1],Xe=Object(_.useState)(""),De=Object(u.a)(Xe,2),ve=De[0],Fe=De[1];Object(_.useEffect)(function(){var H;(H=JSON.stringify(ne))!==null&&H!==void 0&&H.includes("{")?(We(ne.id),Fe(ne.value)):Fe(ne)},[ne]);var Se=function(){be(ve||null,Le||"")},Ne=function(fe){if(fe===Le)return;We(fe),be(ve,fe)};return a.a.createElement("div",{className:S()(C.a.input,ye),style:Oe},!!ue.length&&a.a.createElement("div",{className:C.a.dropdown},a.a.createElement("div",{className:C.a.text},(U=ue.find(function(H){return H.id===Le}))===null||U===void 0?void 0:U.name,a.a.createElement("i",{className:"iconfont icon-zhankai4"}),a.a.createElement("b",{className:C.a.b1}),a.a.createElement("b",{className:C.a.b2})),a.a.createElement("div",{className:C.a.menu},ue.map(function(H,fe){return a.a.createElement("div",{key:fe,onClick:function(){return Ne(H.id)}},H.name)}))),a.a.createElement(O.a,{onPressEnter:Se,value:ve,onChange:function(fe){return Fe(fe.target.value||"")},bordered:!1,placeholder:me}),a.a.createElement("i",{onClick:Se,className:"iconfont icon-sousuo9 font14 pl10 current"}))},b=g,r=e("f9pc"),o=e.n(r),t=function(v){var U=v.value,F=v.onChange,ue=v.className,ne=v.total,be=v.pageSize,ye=v.style,ge=ye===void 0?{}:ye,Oe=U<2,me=U>=Math.ceil(ne/be);return ne<=be?a.a.createElement(a.a.Fragment,null):a.a.createElement("div",{className:S()(o.a.quickPager,ue),style:ge},a.a.createElement("div",{onClick:function(){Oe||F(U-1,"prev")},className:Oe?o.a.disabled:""},"\u4E0A\u4E00\u9875"),a.a.createElement("div",{onClick:function(){me||F(U+1,"next")},className:me?o.a.disabled:""},"\u4E0B\u4E00\u9875"))},i=t,l=e("T2oS"),s=e("W9HT"),A=e("pC0b"),m=e("GzdX"),P=e("5Dmo"),B=e("3S7+"),q=e("Oe0F"),V=e.n(q),W=e("m3rI"),L=e("1vsH"),ee=e("JAbv"),de=e.n(ee),Ae=e("Bq7L"),Ce=e.n(Ae),I=e("MEgm"),j=e.n(I),te=e("BdwD"),G=function(v){var U=v.className,F=v.dataSource,ue=F===void 0?[]:F,ne=v.col,be=ne===void 0?4:ne,ye=v.right,ge=v.bottom,Oe=ge===void 0?23:ge,me=v.precision,we=me===void 0?0:me,je=v.wrapWidth,Le=je===void 0?1200:je,We=v.trackEventItems,Xe=v.loading,De=Math.floor((Le-(be-1)*ye)/be);return a.a.createElement(s.a,{spinning:Xe},a.a.createElement("div",{className:S()(V.a.list,U)},!!ue.length&&ue.map(function(ve,Fe){var Se=ve.name,Ne=ve.id,H=ve.identifier,fe=ve.power,_e=ve.cover_image_id,Ke=ve.pic;return a.a.createElement("div",{className:V.a.wrap,key:Ne,style:{width:De,marginRight:(1+Fe)%be===0?0:ye+we,marginBottom:Oe}},a.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(H,"/challenges"),className:V.a.li,onClick:function(tt){tt.preventDefault(),We&&Object(L.cb)([We]),fe&&Object(L.S)("/shixuns/".concat(H,"/challenges"))}},a.a.createElement("div",{className:V.a.img},a.a.createElement("img",{className:V.a.cover,src:_e?"".concat(W.a.API_SERVER,"/api/attachments/").concat(_e):"".concat(W.a.IMG_SERVER,"/").concat(Ke)}),ve.is_jupyter&&a.a.createElement("img",{className:V.a.sign,src:de.a}),ve.is_jupyter_lab&&a.a.createElement("img",{className:V.a.sign,src:Ce.a}),ve.is_unity_3d&&a.a.createElement("img",{className:V.a.sign,src:j.a})),a.a.createElement("div",{className:V.a.name},a.a.createElement(B.a,{title:Se||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.a.createElement("span",{className:V.a.e},Se||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.a.createElement("div",{className:V.a.tags},a.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),a.a.createElement("span",null,ve.challenges_count))),!!ve.myshixuns_count&&a.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),a.a.createElement("span",null,ve.myshixuns_count))),a.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.a.createElement("span",null,a.a.createElement("span",null,ve.level))),a.a.createElement("div",{className:V.a.rate},a.a.createElement(m.a,{allowHalf:!0,disabled:!0,defaultValue:ve.score_info}),a.a.createElement("span",null,"\xA0",ve.score_info?"".concat(ve.score_info,"\u5206"):"5\u5206")))),!fe&&a.a.createElement("div",{className:V.a.lockWrap},a.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ue.length&&a.a.createElement(te.a,null)))},x=G,w=e("LicW"),Y=e("iL++"),ae=e.n(Y),xe=e("xiVL"),pe=function(v){var U=v.className,F=v.dataSource,ue=F===void 0?[]:F,ne=v.col,be=ne===void 0?4:ne,ye=v.right,ge=v.bottom,Oe=ge===void 0?23:ge,me=v.precision,we=me===void 0?0:me,je=v.wrapWidth,Le=je===void 0?1200:je,We=v.trackEventItems,Xe=v.loading,De=Math.floor((Le-(be-1)*ye)/be);return a.a.createElement(s.a,{spinning:Xe},a.a.createElement("div",{className:S()(ae.a.list,U)},!!ue.length&&ue.map(function(ve,Fe){var Se=ve.subject_identifier,Ne=ve.id,H=ve.identifier,fe=ve.power,_e=ve.is_public!=0&&ve.is_public;return a.a.createElement("div",{className:ae.a.wrap,key:Ne,style:{width:De,marginRight:(1+Fe)%be===0?0:ye+we,marginBottom:Oe}},a.a.createElement("a",{className:ae.a.li,onClick:function(He){He.preventDefault()}},a.a.createElement("div",{className:ae.a.top},a.a.createElement(B.a,{title:ve.name},a.a.createElement("div",{className:ae.a.name},ve.name)),a.a.createElement("img",{className:ae.a.img,src:W.a.IMG_SERVER+"/images/"+ve.avatar_url}),a.a.createElement("div",{className:ae.a.text},ve.creator),Se&&a.a.createElement("div",{className:ae.a.btns},a.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_e&&a.a.createElement("div",{className:ae.a.sign},"\u516C\u5F00")),a.a.createElement("div",{className:ae.a.bottom},ve.visits>0&&a.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-liulanyan"}),a.a.createElement("span",null,ve.visits))),ve.course_members_count>0&&a.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan"}),ve.course_members_count)),ve.tasks_count>0&&a.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-zuoye"}),ve.tasks_count)),ve.is_end?a.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),a.a.createElement("div",{className:ae.a.lockWrap},ve.is_accessible?a.a.createElement(a.a.Fragment,null,Se&&a.a.createElement("div",{onClick:function(){return Object(L.S)("/paths/".concat(Se))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),a.a.createElement("div",{onClick:function(He){We&&Object(L.cb)([We]),Object(L.S)(ve.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):a.a.createElement(a.a.Fragment,null,a.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ue.length&&a.a.createElement(te.a,null)))},Ee=pe,Te=e("f0W+"),Pe=e.n(Te),ze=function(v){var U=v.dataSource,F=U===void 0?[]:U,ue=v.value,ne=v.onChange,be=v.className,ye=v.style,ge=ye===void 0?{}:ye,Oe=v.tabBarExtraContent;return a.a.createElement("div",{className:S()(Pe.a.tabs,be),style:ge},a.a.createElement("div",{className:Pe.a.tabsWrap},F.map(function(me,we){return a.a.createElement("div",{onClick:function(){return ne(me.id)},className:ue===me.id?Pe.a.active:"",key:we},me.name)})),a.a.createElement("div",{className:Pe.a.tabBar},Oe))},ke=ze,Ie=e("9JIy"),Re=e.n(Ie),Me=function(v){var U=v.className,F=v.style,ue=F===void 0?{}:F,ne=v.children;return a.a.createElement("div",{className:S()(Re.a.table,U),style:ue},ne)},Ge=Me,Qe=e("qVdP"),Ve=e("jsC+"),qe=e("lUTK"),Ye=e("BvKs"),ot=e("8WcF"),c=e.n(ot),K=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],k=function(v){var U,F=v.sortValue,ue=v.dropValue,ne=v.className,be=v.onSort,ye=v.onDrop,ge=v.dataSource,Oe=ge===void 0?K:ge;return a.a.createElement("div",{className:S()(c.a.orderWrap,ne)},a.a.createElement(Ve.a,{overlay:a.a.createElement(Ye.a,null,Oe.map(function(me,we){return a.a.createElement(Ye.a.Item,{key:we,onClick:function(){return ye(me.id)}},me.name)}))},a.a.createElement("span",{className:c.a.orderTextWrap},(U=Oe.find(function(me){return ue===me.id}))===null||U===void 0?void 0:U.name)),a.a.createElement("span",{className:c.a.orderIconWrap},a.a.createElement("span",{className:c.a.orderAsc},a.a.createElement("i",{className:F==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer),onClick:function(){return be(F==="asc"?"desc":"asc")}})),a.a.createElement("span",{className:c.a.orderDesc},a.a.createElement("i",{className:F==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer),onClick:function(){return be(F==="asc"?"desc":"asc")}}))))},ie=k,he=e("siWv"),le=e.n(he),oe=function(v){var U=v.className,F=v.style,ue=v.children,ne=v.onClick;return a.a.createElement("div",{onClick:ne,className:S()(le.a.btn,U),style:F},ue)},$=oe},NvD2:function(J,E,e){"use strict";e.d(E,"a",function(){return n});var _=e("Kwbf");function a(se,D){var u=new Set;return se.forEach(function(Z){D.has(Z)||u.add(Z)}),u}function ce(se){var D=se||{},u=D.disabled,Z=D.disableCheckbox,y=D.checkable;return!!(u||Z)||y===!1}function re(se,D,u,Z){for(var y=new Set(se),Q=new Set,S=0;S<=u;S+=1){var p=D.get(S)||new Set;p.forEach(function(h){var R=h.key,T=h.node,O=h.children,z=O===void 0?[]:O;y.has(R)&&!Z(T)&&z.filter(function(C){return!Z(C.node)}).forEach(function(C){y.add(C.key)})})}for(var f=new Set,d=u;d>=0;d-=1){var N=D.get(d)||new Set;N.forEach(function(h){var R=h.parent,T=h.node;if(Z(T)||!h.parent||f.has(h.parent.key))return;if(Z(h.parent.node)){f.add(R.key);return}var O=!0,z=!1;(R.children||[]).filter(function(C){return!Z(C.node)}).forEach(function(C){var g=C.key,b=y.has(g);O&&!b&&(O=!1),!z&&(b||Q.has(g))&&(z=!0)}),O&&y.add(R.key),z&&Q.add(R.key),f.add(R.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(a(Q,y))}}function M(se,D,u,Z,y){for(var Q=new Set(se),S=new Set(D),p=0;p<=Z;p+=1){var f=u.get(p)||new Set;f.forEach(function(R){var T=R.key,O=R.node,z=R.children,C=z===void 0?[]:z;!Q.has(T)&&!S.has(T)&&!y(O)&&C.filter(function(g){return!y(g.node)}).forEach(function(g){Q.delete(g.key)})})}S=new Set;for(var d=new Set,N=Z;N>=0;N-=1){var h=u.get(N)||new Set;h.forEach(function(R){var T=R.parent,O=R.node;if(y(O)||!R.parent||d.has(R.parent.key))return;if(y(R.parent.node)){d.add(T.key);return}var z=!0,C=!1;(T.children||[]).filter(function(g){return!y(g.node)}).forEach(function(g){var b=g.key,r=Q.has(b);z&&!r&&(z=!1),!C&&(r||S.has(b))&&(C=!0)}),z||Q.delete(T.key),C&&S.add(T.key),d.add(T.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(a(S,Q))}}function n(se,D,u,Z){var y=[],Q;Z?Q=Z:Q=ce;var S=new Set(se.filter(function(N){var h=!!u[N];return h||y.push(N),h})),p=new Map,f=0;Object.keys(u).forEach(function(N){var h=u[N],R=h.level,T=p.get(R);T||(T=new Set,p.set(R,T)),T.add(h),f=Math.max(f,R)}),Object(_.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(N){return"'".concat(N,"'")}).join(", ")));var d;return D===!0?d=re(S,p,f,Q):d=M(S,D.halfCheckedKeys,p,f,Q),d}},OZM5:function(J,E,e){"use strict";e.d(E,"b",function(){return Z}),e.d(E,"a",function(){return y}),e.d(E,"k",function(){return Q}),e.d(E,"h",function(){return S}),e.d(E,"i",function(){return p}),e.d(E,"g",function(){return f}),e.d(E,"c",function(){return d}),e.d(E,"d",function(){return N}),e.d(E,"j",function(){return T}),e.d(E,"e",function(){return O}),e.d(E,"f",function(){return z});var _=e("KQm4"),a=e("U8pU"),ce=e("Ff2n"),re=e("q1tI"),M=e.n(re),n=e("Kwbf"),se=e("WaYH"),D=.25,u=2;function Z(C,g){var b=C.slice(),r=b.indexOf(g);return r>=0&&b.splice(r,1),b}function y(C,g){var b=C.slice();return b.indexOf(g)===-1&&b.push(g),b}function Q(C){return C.split("-")}function S(C,g){return"".concat(C,"-").concat(g)}function p(C){return C&&C.type&&C.type.isTreeNode}function f(C,g){var b=[C],r=g[C];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var l=i.key,s=i.children;b.push(l),o(s)})}return o(r.children),b}function d(C,g){var b=C.clientY,r=g.selectHandle.getBoundingClientRect(),o=r.top,t=r.bottom,i=r.height,l=Math.max(i*D,u);return b<=o+l?-1:b>=t-l?1:0}function N(C,g){if(!C)return;var b=g.multiple;return b?C.slice():C.length?[C[0]]:C}var h=function(g){return g};function R(C,g){if(!C)return[];var b=g||{},r=b.processProps,o=r===void 0?h:r,t=Array.isArray(C)?C:[C];return t.map(function(i){var l=i.children,s=Object(ce.a)(i,["children"]),A=R(l,g);return M.a.createElement(se.a,Object.assign({},o(s)),A)})}function T(C){if(!C)return null;var g;if(Array.isArray(C))g={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(a.a)(C)==="object")g={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function O(C,g){var b=new Set;function r(o){if(b.has(o))return;var t=g[o];if(!t)return;b.add(o);var i=t.parent,l=t.node;if(l.disabled)return;i&&r(i.key)}return(C||[]).forEach(function(o){r(o)}),Object(_.a)(b)}function z(C){var g={};return Object.keys(C).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(g[b]=C[b])}),g}},Oe0F:function(J,E,e){J.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},"SA+Z":function(J,E,e){var _=e("wTVA"),a=e("EbDI"),ce=e("ZhPi"),re=e("wkBT");function M(n){return _(n)||a(n)||ce(n)||re()}J.exports=M,J.exports.__esModule=!0,J.exports.default=J.exports},WaYH:function(J,E,e){"use strict";var _=e("rePB"),a=e("Ff2n"),ce=e("VTBJ"),re=e("1OyB"),M=e("vuIU"),n=e("JX7q"),se=e("Ji7U"),D=e("LK+K"),u=e("q1tI"),Z=e("TSYQ"),y=e.n(Z),Q=e("sboe"),S=e("OZM5"),p=function(g){var b=g.prefixCls,r=g.level,o=g.isStart,t=g.isEnd;if(!r)return null;for(var i="".concat(b,"-indent-unit"),l=[],s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,te=I.getAttribute("id")||I.getAttribute("data-reactid")||I.getAttribute("name");if(j&&m[te])return m[te];var G=window.getComputedStyle(I),x=G.getPropertyValue("box-sizing")||G.getPropertyValue("-moz-box-sizing")||G.getPropertyValue("-webkit-box-sizing"),w=parseFloat(G.getPropertyValue("padding-bottom"))+parseFloat(G.getPropertyValue("padding-top")),Y=parseFloat(G.getPropertyValue("border-bottom-width"))+parseFloat(G.getPropertyValue("border-top-width")),ae=A.map(function(pe){return"".concat(pe,":").concat(G.getPropertyValue(pe))}).join(";"),xe={sizingStyle:ae,paddingSize:w,borderSize:Y,boxSizing:x};return j&&te&&(m[te]=xe),xe}function q(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),I.getAttribute("wrap")?P.setAttribute("wrap",I.getAttribute("wrap")):P.removeAttribute("wrap");var x=B(I,j),w=x.paddingSize,Y=x.borderSize,ae=x.boxSizing,xe=x.sizingStyle;P.setAttribute("style","".concat(xe,";").concat(s)),P.value=I.value||I.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Ee=Number.MAX_SAFE_INTEGER,Te=P.scrollHeight,Pe;if(ae==="border-box"?Te+=Y:ae==="content-box"&&(Te-=w),te!==null||G!==null){P.value=" ";var ze=P.scrollHeight-w;te!==null&&(pe=ze*te,ae==="border-box"&&(pe=pe+w+Y),Te=Math.max(pe,Te)),G!==null&&(Ee=ze*G,ae==="border-box"&&(Ee=Ee+w+Y),Pe=Te>Ee?"":"hidden",Te=Math.min(Ee,Te))}return{height:Te,minHeight:pe,maxHeight:Ee,overflowY:Pe,resize:"none"}}var V=e("Gytx"),W=e.n(V),L;(function(I){I[I.NONE=0]="NONE",I[I.RESIZING=1]="RESIZING",I[I.RESIZED=2]="RESIZED"})(L||(L={}));var ee=function(I){Object(re.a)(te,I);var j=Object(D.a)(te);function te(G){var x;return Object(a.a)(this,te),x=j.call(this,G),x.nextFrameActionId=void 0,x.resizeFrameId=void 0,x.textArea=void 0,x.saveTextArea=function(w){x.textArea=w},x.handleResize=function(w){var Y=x.state.resizeStatus,ae=x.props,xe=ae.autoSize,pe=ae.onResize;if(Y!==L.NONE)return;typeof pe=="function"&&pe(w),xe&&x.resizeOnNextFrame()},x.resizeOnNextFrame=function(){cancelAnimationFrame(x.nextFrameActionId),x.nextFrameActionId=requestAnimationFrame(x.resizeTextarea)},x.resizeTextarea=function(){var w=x.props.autoSize;if(!w||!x.textArea)return;var Y=w.minRows,ae=w.maxRows,xe=q(x.textArea,!1,Y,ae);x.setState({textareaStyles:xe,resizeStatus:L.RESIZING},function(){cancelAnimationFrame(x.resizeFrameId),x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:L.RESIZED},function(){x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:L.NONE}),x.fixFirefoxAutoScroll()})})})})},x.renderTextArea=function(){var w=x.props,Y=w.prefixCls,ae=Y===void 0?"rc-textarea":Y,xe=w.autoSize,pe=w.onResize,Ee=w.className,Te=w.disabled,Pe=x.state,ze=Pe.textareaStyles,ke=Pe.resizeStatus,Ie=Object(t.a)(x.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Re=l()(ae,Ee,Object(M.a)({},"".concat(ae,"-disabled"),Te));"value"in Ie&&(Ie.value=Ie.value||"");var De=Object(se.a)(Object(se.a)(Object(se.a)({},x.props.style),ze),ke===L.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:x.handleResize,disabled:!(xe||pe)},n.createElement("textarea",Object(_.a)({},Ie,{className:Re,style:De,ref:x.saveTextArea})))},x.state={textareaStyles:{},resizeStatus:L.NONE},x}return Object(ce.a)(te,[{key:"componentDidUpdate",value:function(x){(x.value!==this.props.value||!W()(x.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 x=this.textArea.selectionStart,w=this.textArea.selectionEnd;this.textArea.setSelectionRange(x,w)}}catch(Y){}}},{key:"render",value:function(){return this.renderTextArea()}}]),te}(n.Component),de=ee,Ae=function(I){Object(re.a)(te,I);var j=Object(D.a)(te);function te(G){var x;Object(a.a)(this,te),x=j.call(this,G),x.resizableTextArea=void 0,x.focus=function(){x.resizableTextArea.textArea.focus()},x.saveTextArea=function(Y){x.resizableTextArea=Y},x.handleChange=function(Y){var ae=x.props.onChange;x.setValue(Y.target.value,function(){x.resizableTextArea.resizeTextarea()}),ae&&ae(Y)},x.handleKeyDown=function(Y){var ae=x.props,xe=ae.onPressEnter,pe=ae.onKeyDown;Y.keyCode===13&&xe&&xe(Y),pe&&pe(Y)};var w=typeof G.value=="undefined"||G.value===null?G.defaultValue:G.value;return x.state={value:w},x}return Object(ce.a)(te,[{key:"setValue",value:function(x,w){"value"in this.props||this.setState({value:x},w)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(de,Object(_.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(x){return"value"in x?{value:x.value}:null}}]),te}(n.Component),Ce=E.default=Ae},ZJlW:function(J,E,e){J.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"}},bT9E:function(J,E,e){"use strict";e.d(E,"a",function(){return a});var _=e("VTBJ");function a(ce,re){var D=Object(_.a)({},ce);return Array.isArray(re)&&re.forEach(function(n){delete D[n]}),D}},bUJZ:function(J,E){J.exports="data:image/png;base64,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"},biw7:function(J,E,e){"use strict";var _=e("q1tI"),a=e.n(_),ce=_.createContext(null);E.a=ce},cFMs:function(J,E){J.exports="data:image/png;base64,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"},cz0n:function(J,E,e){J.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"}},"f0W+":function(J,E,e){J.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(J,E,e){J.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"}},fyJ8:function(J,E,e){"use strict";var _=e("rePB"),a=e("VTBJ"),ce=e("Ff2n"),re=e("U8pU"),D=e("q1tI"),n=e.n(D),se=e("TSYQ"),M=e.n(se),u=e("c+Xe"),Z=e("sR1s");function y(d){return d&&Object(re.a)(d)==="object"&&!Array.isArray(d)&&!D.isValidElement(d)}function Q(d){return typeof d=="string"?!0:Object(u.c)(d)}function S(d,N){var h,R=d.prefixCls,T=d.className,O=d.record,z=d.index,C=d.dataIndex,g=d.render,b=d.children,r=d.component,o=r===void 0?"td":r,t=d.colSpan,i=d.rowSpan,l=d.fixLeft,s=d.fixRight,A=d.firstFixLeft,m=d.lastFixLeft,P=d.firstFixRight,B=d.lastFixRight,q=d.appendNode,V=d.additionalProps,W=V===void 0?{}:V,L=d.ellipsis,ee=d.align,de=d.rowType,Ae=d.isSticky,Ce="".concat(R,"-cell"),I,j;if(b)j=b;else{var te=Object(Z.b)(O,C);if(j=te,g){var G=g(te,O,z);y(G)?(j=G.children,I=G.props):j=G}}Object(re.a)(j)==="object"&&!Array.isArray(j)&&!D.isValidElement(j)&&(j=null),L&&(m||P)&&(j=D.createElement("span",{className:"".concat(Ce,"-content")},j));var x=I||{},w=x.colSpan,Y=x.rowSpan,ae=x.style,xe=x.className,pe=Object(ce.a)(x,["colSpan","rowSpan","style","className"]),Ee=w!==void 0?w:t,Te=Y!==void 0?Y:i;if(Ee===0||Te===0)return null;var Pe={},ze=typeof l=="number",ke=typeof s=="number";ze&&(Pe.position="sticky",Pe.left=l),ke&&(Pe.position="sticky",Pe.right=s);var Ie={};ee&&(Ie.textAlign=ee);var Re,De=L===!0?{showTitle:!0}:L;De&&(De.showTitle||de==="header")&&(typeof j=="string"||typeof j=="number"?Re=j.toString():D.isValidElement(j)&&typeof j.props.children=="string"&&(Re=j.props.children));var Ge=Object(a.a)(Object(a.a)(Object(a.a)({title:Re},pe),W),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:Te&&Te!==1?Te:null,className:M()(Ce,T,(h={},Object(_.a)(h,"".concat(Ce,"-fix-left"),ze),Object(_.a)(h,"".concat(Ce,"-fix-left-first"),A),Object(_.a)(h,"".concat(Ce,"-fix-left-last"),m),Object(_.a)(h,"".concat(Ce,"-fix-right"),ke),Object(_.a)(h,"".concat(Ce,"-fix-right-first"),P),Object(_.a)(h,"".concat(Ce,"-fix-right-last"),B),Object(_.a)(h,"".concat(Ce,"-ellipsis"),L),Object(_.a)(h,"".concat(Ce,"-with-append"),q),Object(_.a)(h,"".concat(Ce,"-fix-sticky"),(ze||ke)&&Ae),h),W.className,xe),style:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},W.style),Ie),Pe),ae),ref:Q(o)?N:null});return D.createElement(o,Object.assign({},Ge),q,j)}var p=D.forwardRef(S);p.displayName="Cell";var f=D.memo(p,function(d,N){return N.shouldCellUpdate?!N.shouldCellUpdate(N.record,d.record):!1});E.a=f},hW8S:function(J,E,e){"use strict";e.d(E,"a",function(){return re}),e.d(E,"c",function(){return D}),e.d(E,"b",function(){return n});var _=e("VTBJ"),a=e("Ff2n"),ce=e("Kwbf"),re="RC_TABLE_INTERNAL_COL_DEFINE";function D(se){var M=se.expandable,u=Object(a.a)(se,["expandable"]);return"expandable"in se?Object(_.a)(Object(_.a)({},u),M):u}function n(se){return Object.keys(se).reduce(function(M,u){return(u.substr(0,5)==="data-"||u.substr(0,5)==="aria-")&&(M[u]=se[u]),M},{})}},"iL++":function(J,E,e){J.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"}},"lhx+":function(J,E,e){J.exports={flex_box_center:"flex_box_center___3-5Wg",flex_space_between:"flex_space_between___1Unpv",flex_box_vertical_center:"flex_box_vertical_center___1S9SL",flex_box_center_end:"flex_box_center_end___2OCso",flex_box_column:"flex_box_column___3m_UZ",wrap:"wrap___3Cuc9",midWrap:"midWrap___1nBzj",color999:"color999___19Pif",orderWrap:"orderWrap___1GmcP",orderIconWrap:"orderIconWrap___2aa2z",orderAsc:"orderAsc___1b2iZ",orderDesc:"orderDesc___3quHT",color0152d9:"color0152d9___ldoRr",h10:"h10___3NO0d",cursorPointer:"cursorPointer___3VF_N",orderTextWrap:"orderTextWrap___2Qdlx",cardWrap:"cardWrap___Y-ZxK",countWrap:"countWrap___2jHh7",affixContainer:"affixContainer___py2xS",qrcode:"qrcode___kjUuj",img:"img___3RlI5",tips:"tips___22vic",close:"close___1TK7v",text:"text___3oPIa",type:"type___1umwN"}},n6Qo:function(J,E,e){"use strict";e.d(E,"a",function(){return M});var _=e("q1tI"),a=e("biw7"),ce=e("fyJ8");function re(u){var Z=u.className,y=u.index,Q=u.children,S=u.colSpan,p=u.rowSpan,f=_.useContext(a.a),d=f.prefixCls,N=f.fixedInfoList,h=N[y];return _.createElement(ce.a,Object.assign({className:Z,index:y,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:S,rowSpan:p}}}},h))}function D(u){return _.createElement("tr",Object.assign({},u))}function n(u){var Z=u.children,y=_.useContext(a.a),Q=y.prefixCls;return _.createElement("tfoot",{className:"".concat(Q,"-summary")},Z)}var se=E.b=n,M={Cell:re,Row:D}},sR1s:function(J,E,e){"use strict";e.d(E,"b",function(){return re}),e.d(E,"a",function(){return D}),e.d(E,"c",function(){return n}),e.d(E,"d",function(){return se});var _=e("U8pU"),a="RC_TABLE_KEY";function ce(M){return M==null?[]:Array.isArray(M)?M:[M]}function re(M,u){if(!u&&typeof u!="number")return M;for(var Z=ce(u),y=M,Q=0;Q1)Object(Z.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(T.length===0)return Object(Z.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var O=T[0];if(n.isValidElement(O)&&Object(y.c)(O)){var z=O.ref;T[0]=n.cloneElement(O,{ref:Object(y.a)(z,this.setChildNode)})}return T.length===1?T[0]:T.map(function(C,g){return!n.isValidElement(C)||"key"in C&&C.key!==null?C:n.cloneElement(C,{key:"".concat(S,"-").concat(g)})})}}]),N}(n.Component);p.displayName="ResizeObserver",E.a=p},wCXF:function(J,E,e){"use strict";e.d(E,"a",function(){return Ve});var _=e("rePB"),a=e("VTBJ"),ce=e("KQm4"),re=e("U8pU"),D=e("ODXe"),n=e("q1tI"),se=e("TSYQ"),M=e.n(se),u=e("Gytx"),Z=e.n(u),y=e("Kwbf"),Q=e("t23M"),S=e("qx4F"),p=e("6eGT"),f=e("IBYe"),d=e("Ff2n"),N=e("c+Xe"),h=e("fyJ8"),R=e("biw7");function T(c,K,k,ie,he){var le=k[c]||{},oe=k[K]||{},$,X;le.fixed==="left"?$=ie.left[c]:oe.fixed==="right"&&(X=ie.right[K]);var v=!1,U=!1,F=!1,ue=!1,ne=k[K+1],be=k[c-1];if(he==="rtl"){if($!==void 0){var ye=be&&be.fixed==="left";ue=!ye}else if(X!==void 0){var ge=ne&&ne.fixed==="right";F=!ge}}else if($!==void 0){var Oe=ne&&ne.fixed==="left";v=!Oe}else if(X!==void 0){var me=be&&be.fixed==="right";U=!me}return{fixLeft:$,fixRight:X,lastFixLeft:v,firstFixRight:U,lastFixRight:F,firstFixLeft:ue,isSticky:ie.isSticky}}var O=e("sR1s");function z(c){var K=c.cells,k=c.stickyOffsets,ie=c.flattenColumns,he=c.rowComponent,le=c.cellComponent,oe=c.onHeaderRow,$=c.index,X=n.useContext(R.a),v=X.prefixCls,U=X.direction,F;oe&&(F=oe(K.map(function(ne){return ne.column}),$));var ue=Object(O.a)(K.map(function(ne){return ne.column}));return n.createElement(he,Object.assign({},F),K.map(function(ne,be){var ye=ne.column,ge=T(ne.colStart,ne.colEnd,ie,k,U),Oe;return ye&&ye.onHeaderCell&&(Oe=ne.column.onHeaderCell(ye)),n.createElement(h.a,Object.assign({},ne,{ellipsis:ye.ellipsis,align:ye.align,component:le,prefixCls:v,key:ue[be]},ge,{additionalProps:Oe,rowType:"header"}))}))}z.displayName="HeaderRow";var C=z;function g(c){var K=[];function k(oe,$){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;K[X]=K[X]||[];var v=$,U=oe.filter(Boolean).map(function(F){var ue={key:F.key,className:F.className||"",children:F.title,column:F,colStart:v},ne=1,be=F.children;return be&&be.length>0&&(ne=k(be,v,X+1).reduce(function(ye,ge){return ye+ge},0),ue.hasSubColumns=!0),"colSpan"in F&&(ne=F.colSpan),"rowSpan"in F&&(ue.rowSpan=F.rowSpan),ue.colSpan=ne,ue.colEnd=ue.colStart+ne-1,K[X].push(ue),v+=ne,ne});return U}k(c,0);for(var ie=K.length,he=function($){K[$].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=ie-$)})},le=0;le=0;$-=1){var X=K[$],v=k&&k[$],U=v&&v[o.a];(X||U||oe)&&(he.unshift(n.createElement("col",Object.assign({key:$,style:{width:X,minWidth:X}},U))),oe=!0)}return n.createElement("colgroup",null,he)}var i=t;function l(c,K){return Object(n.useMemo)(function(){for(var k=[],ie=0;ie1?et-1:0),mt=1;mt=F&&(He=F-ue),oe({scrollLeft:He/F*(U+2)}),me.current.x=H.pageX},Fe=function(){var H=Object(ke.b)(le.current).top,fe=H+le.current.offsetHeight,_e=document.documentElement.scrollTop+window.innerHeight;fe-Object(S.a)()<=_e||H>=_e-$?Oe(function(Ke){return Object(a.a)(Object(a.a)({},Ke),{},{isHiddenScrollBar:!0})}):Oe(function(Ke){return Object(a.a)(Object(a.a)({},Ke),{},{isHiddenScrollBar:!1})})},Se=function(H){Oe(function(fe){return Object(a.a)(Object(a.a)({},fe),{},{scrollLeft:H/U*F||0})})};return n.useImperativeHandle(k,function(){return{setScrollLeft:Se}}),n.useEffect(function(){var Ne=Object(ze.a)(document.body,"mouseup",Xe,!1),H=Object(ze.a)(document.body,"mousemove",ve,!1);return Fe(),function(){Ne.remove(),H.remove()}},[ue,Le]),n.useEffect(function(){var Ne=Object(ze.a)(window,"scroll",Fe,!1),H=Object(ze.a)(window,"resize",Fe,!1);return function(){Ne.remove(),H.remove()}},[]),n.useEffect(function(){ge.isHiddenScrollBar||Oe(function(Ne){var H,fe;return Object(a.a)(Object(a.a)({},Ne),{},{scrollLeft:le.current.scrollLeft/((H=le.current)===null||H===void 0?void 0:H.scrollWidth)*((fe=le.current)===null||fe===void 0?void 0:fe.clientWidth)})})},[ge.isHiddenScrollBar]),U<=F||!ue||ge.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(S.a)(),width:F,bottom:$},className:"".concat(v,"-sticky-scroll")},n.createElement("div",{onMouseDown:Me,ref:ne,className:M()("".concat(v,"-sticky-scroll-bar"),Object(_.a)({},"".concat(v,"-sticky-scroll-bar-active"),Le)),style:{width:"".concat(ue,"px"),transform:"translate3d(".concat(ge.scrollLeft,"px, 0, 0)")}}))},Re=n.forwardRef(Ie);function De(c,K){return n.useMemo(function(){var k=!!c;return{isSticky:k,stickyClassName:k?"".concat(K,"-sticky-header"):"",offsetHeader:Object(re.a)(c)==="object"&&c.offsetHeader||0,offsetScroll:Object(re.a)(c)==="object"&&c.offsetScroll||0}},[c,K])}var Ge=[],Qe={},Ve="rc-table-internal-hook",qe=n.memo(function(c){var K=c.children;return K},function(c,K){return Z()(c.props,K.props)?c.pingLeft!==K.pingLeft||c.pingRight!==K.pingRight:!1});function Ye(c){var K,k=c.prefixCls,ie=c.className,he=c.rowClassName,le=c.style,oe=c.data,$=c.rowKey,X=c.scroll,v=c.tableLayout,U=c.direction,F=c.title,ue=c.footer,ne=c.summary,be=c.id,ye=c.showHeader,ge=c.components,Oe=c.emptyText,me=c.onRow,we=c.onHeaderRow,je=c.internalHooks,Le=c.transformColumns,We=c.internalRefs,Xe=c.sticky,Me=oe||Ge,ve=!!Me.length,Fe=n.useState(0),Se=Object(D.a)(Fe,2),Ne=Se[0],H=Se[1];n.useEffect(function(){H(Object(S.a)())});var fe=n.useMemo(function(){return Object(O.c)(ge,{})},[ge]),_e=n.useCallback(function(Ue,Be){return Object(O.b)(fe,Ue)||Be},[fe]),Ke=n.useMemo(function(){return typeof $=="function"?$:function(Ue){var Be=Ue&&Ue[$];return Be}},[$]),He=Object(o.c)(c),tt=He.expandIcon,_t=He.expandedRowKeys,Rt=He.defaultExpandedRowKeys,it=He.defaultExpandAllRows,ct=He.expandedRowRender,pt=He.onExpand,ht=He.onExpandedRowsChange,Dt=He.expandRowByClick,rt=He.rowExpandable,gt=He.expandIconColumnIndex,vt=He.expandedRowClassName,It=He.childrenColumnName,Mt=He.indentSize,Et=tt||Te,Ct=It||"children",Pt=n.useMemo(function(){return ct?"row":c.expandable&&je===Ve&&c.expandable.__PARENT_RENDER_ICON__||Me.some(function(Ue){return Ue&&Object(re.a)(Ue)==="object"&&Ue[Ct]})?"nest":!1},[!!ct,Me]),jt=n.useState(function(){return Rt||(it?Pe(Me,Ke,Ct):[])}),$e=Object(D.a)(jt,2),nt=$e[0],st=$e[1],et=n.useMemo(function(){return new Set(_t||nt||[])},[_t,nt]),dt=n.useCallback(function(Ue){var Be=Ke(Ue,Me.indexOf(Ue)),Ze,at=et.has(Be);at?(et.delete(Be),Ze=Object(ce.a)(et)):Ze=[].concat(Object(ce.a)(et),[Be]),st(Ze),pt&&pt(!at,Ue),ht&&ht(Ze)},[Ke,et,Me,pt,ht]),mt=n.useState(0),St=Object(D.a)(mt,2),xt=St[0],Nt=St[1],vn=Object(j.b)(Object(a.a)(Object(a.a)(Object(a.a)({},c),He),{},{expandable:!!ct,expandedKeys:et,getRowKey:Ke,onTriggerExpand:dt,expandIcon:Et,expandIconColumnIndex:gt,direction:U}),je===Ve?Le:null),Qt=Object(D.a)(vn,2),Wt=Qt[0],Je=Qt[1],Tt=n.useMemo(function(){return{columns:Wt,flattenColumns:Je}},[Wt,Je]),zt=n.useRef(),Zt=n.useRef(),ft=n.useRef(),En=n.useState(!1),qt=Object(D.a)(En,2),$t=qt[0],bn=qt[1],gn=n.useState(!1),en=Object(D.a)(gn,2),tn=en[0],Cn=en[1],xn=x(new Map),nn=Object(D.a)(xn,2),An=nn[0],yn=nn[1],On=Object(O.a)(Je),an=On.map(function(Ue){return An.get(Ue)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=ae(on,Je.length,U),lt=X&&Object(O.d)(X.y),ut=X&&Object(O.d)(X.x),At=ut&&Je.some(function(Ue){var Be=Ue.fixed;return Be}),rn=n.useRef(),Ut=De(Xe,k),yt=Ut.isSticky,_n=Ut.offsetHeader,Rn=Ut.offsetScroll,Dn=Ut.stickyClassName,Ft,wt,Kt;lt&&(wt={overflowY:"scroll",maxHeight:X.y}),ut&&(Ft={overflowX:"auto"},lt||(wt={overflowY:"hidden"}),Kt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var sn=n.useCallback(function(Ue,Be){yn(function(Ze){var at=new Map(Ze);return at.set(Ue,Be),at})},[]),Mn=w(null),ln=Object(D.a)(Mn,2),Pn=ln[0],un=ln[1];function Ht(Ue,Be){if(!Be)return;typeof Be=="function"?Be(Ue):Be.scrollLeft!==Ue&&(Be.scrollLeft=Ue)}var bt=function(Be){var Ze=Be.currentTarget,at=Be.scrollLeft,Ot=typeof at=="number"?at:Ze.scrollLeft,hn=Ze||Qe;if(!un()||un()===hn){var Jt;Pn(hn),Ht(Ot,Zt.current),Ht(Ot,ft.current),Ht(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ze){var wn=Ze.scrollWidth,Bn=Ze.clientWidth;bn(Ot>0),Cn(Ot0?[].concat(Object(a.a)(d),Object(a.a)(y(T).map(function(O){return Object(ce.a)({fixed:R},O)}))):[].concat(Object(a.a)(d),[Object(ce.a)(Object(ce.a)({},N),{},{fixed:R})])},[])}function Q(f){for(var d=!0,N=0;N=0;T-=1){var O=f[T];if(R&&O.fixed!=="right")R=!1;else if(!R&&O.fixed==="right"){Object(se.a)(!1,"Index ".concat(T+1," of `columns` missing `fixed='right'` prop."));break}}}function S(f){return f.map(function(d){var N=d.fixed,h=Object(re.a)(d,["fixed"]),R=N;return N==="left"?R="right":N==="right"&&(R="left"),Object(ce.a)({fixed:R},h)})}function p(f,d){var N=f.prefixCls,h=f.columns,R=f.children,T=f.expandable,O=f.expandedKeys,z=f.getRowKey,C=f.onTriggerExpand,g=f.expandIcon,b=f.rowExpandable,r=f.expandIconColumnIndex,o=f.direction,t=f.expandRowByClick,i=D.useMemo(function(){return h||Z(R)},[h,R]),l=D.useMemo(function(){if(T){var m,P=r||0,B=i[P],q=(m={},Object(_.a)(m,u.a,{className:"".concat(N,"-expand-icon-col")}),Object(_.a)(m,"title",""),Object(_.a)(m,"fixed",B?B.fixed:null),Object(_.a)(m,"className","".concat(N,"-row-expand-icon-cell")),Object(_.a)(m,"render",function(L,ee,de){var Ae=z(ee,de),Ce=O.has(Ae),I=b?b(ee):!0,j=g({prefixCls:N,expanded:Ce,expandable:I,record:ee,onExpand:C});return t?D.createElement("span",{onClick:function(G){return G.stopPropagation()}},j):j}),m),V=i.slice();return P>=0&&V.splice(P,0,q),V}return i},[T,i,z,O,g,o]),s=D.useMemo(function(){var m=l;return d&&(m=d(m)),m.length||(m=[{render:function(){return null}}]),m},[d,l,o]),A=D.useMemo(function(){return o==="rtl"?S(y(s)):y(s)},[s,o]);return[s,A]}E.b=p},xiVL:function(J,E){J.exports="data:image/png;base64,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"},"y0+3":function(J,E,e){"use strict";e.d(E,"a",function(){return y}),e.d(E,"b",function(){return S});var _=/margin|padding|width|height|max|min|offset/,a={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function re(p){return p.nodeType===1?p.ownerDocument.defaultView.getComputedStyle(p,null):{}}function D(p,f,d){if(f=f.toLowerCase(),d==="auto"){if(f==="height")return p.offsetHeight;if(f==="width")return p.offsetWidth}return f in a||(a[f]=_.test(f)),a[f]?parseFloat(d)||0:d}function n(p,f){var d=arguments.length,N=re(p);return f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,d===1?N:D(p,f,N[f]||p.style[f])}function se(p,f,d){var N=arguments.length;if(f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,N===3)return typeof d=="number"&&_.test(f)&&(d="".concat(d,"px")),p.style[f]=d,d;for(var h in f)f.hasOwnProperty(h)&&se(p,h,f[h]);return re(p)}function M(p){return p===document.body?document.documentElement.clientWidth:p.offsetWidth}function u(p){return p===document.body?window.innerHeight||document.documentElement.clientHeight:p.offsetHeight}function Z(){var p=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:p,height:f}}function y(){var p=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:p,height:f}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function S(p){var f=p.getBoundingClientRect(),d=document.documentElement;return{left:f.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},"yTi+":function(J,E,e){J.exports=e.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(J,E){J.exports="data:image/png;base64,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"},z4EP:function(J,E){J.exports="data:image/png;base64,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"}}]); +`,A=["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"],m={},P;function B(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=I.getAttribute("id")||I.getAttribute("data-reactid")||I.getAttribute("name");if(j&&m[te])return m[te];var G=window.getComputedStyle(I),x=G.getPropertyValue("box-sizing")||G.getPropertyValue("-moz-box-sizing")||G.getPropertyValue("-webkit-box-sizing"),w=parseFloat(G.getPropertyValue("padding-bottom"))+parseFloat(G.getPropertyValue("padding-top")),Y=parseFloat(G.getPropertyValue("border-bottom-width"))+parseFloat(G.getPropertyValue("border-top-width")),ae=A.map(function(pe){return"".concat(pe,":").concat(G.getPropertyValue(pe))}).join(";"),xe={sizingStyle:ae,paddingSize:w,borderSize:Y,boxSizing:x};return j&&te&&(m[te]=xe),xe}function q(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,G=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),I.getAttribute("wrap")?P.setAttribute("wrap",I.getAttribute("wrap")):P.removeAttribute("wrap");var x=B(I,j),w=x.paddingSize,Y=x.borderSize,ae=x.boxSizing,xe=x.sizingStyle;P.setAttribute("style","".concat(xe,";").concat(s)),P.value=I.value||I.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Ee=Number.MAX_SAFE_INTEGER,Te=P.scrollHeight,Pe;if(ae==="border-box"?Te+=Y:ae==="content-box"&&(Te-=w),te!==null||G!==null){P.value=" ";var ze=P.scrollHeight-w;te!==null&&(pe=ze*te,ae==="border-box"&&(pe=pe+w+Y),Te=Math.max(pe,Te)),G!==null&&(Ee=ze*G,ae==="border-box"&&(Ee=Ee+w+Y),Pe=Te>Ee?"":"hidden",Te=Math.min(Ee,Te))}return{height:Te,minHeight:pe,maxHeight:Ee,overflowY:Pe,resize:"none"}}var V=e("Gytx"),W=e.n(V),L;(function(I){I[I.NONE=0]="NONE",I[I.RESIZING=1]="RESIZING",I[I.RESIZED=2]="RESIZED"})(L||(L={}));var ee=function(I){Object(re.a)(te,I);var j=Object(M.a)(te);function te(G){var x;return Object(a.a)(this,te),x=j.call(this,G),x.nextFrameActionId=void 0,x.resizeFrameId=void 0,x.textArea=void 0,x.saveTextArea=function(w){x.textArea=w},x.handleResize=function(w){var Y=x.state.resizeStatus,ae=x.props,xe=ae.autoSize,pe=ae.onResize;if(Y!==L.NONE)return;typeof pe=="function"&&pe(w),xe&&x.resizeOnNextFrame()},x.resizeOnNextFrame=function(){cancelAnimationFrame(x.nextFrameActionId),x.nextFrameActionId=requestAnimationFrame(x.resizeTextarea)},x.resizeTextarea=function(){var w=x.props.autoSize;if(!w||!x.textArea)return;var Y=w.minRows,ae=w.maxRows,xe=q(x.textArea,!1,Y,ae);x.setState({textareaStyles:xe,resizeStatus:L.RESIZING},function(){cancelAnimationFrame(x.resizeFrameId),x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:L.RESIZED},function(){x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:L.NONE}),x.fixFirefoxAutoScroll()})})})})},x.renderTextArea=function(){var w=x.props,Y=w.prefixCls,ae=Y===void 0?"rc-textarea":Y,xe=w.autoSize,pe=w.onResize,Ee=w.className,Te=w.disabled,Pe=x.state,ze=Pe.textareaStyles,ke=Pe.resizeStatus,Ie=Object(t.a)(x.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Re=l()(ae,Ee,Object(D.a)({},"".concat(ae,"-disabled"),Te));"value"in Ie&&(Ie.value=Ie.value||"");var Me=Object(se.a)(Object(se.a)(Object(se.a)({},x.props.style),ze),ke===L.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:x.handleResize,disabled:!(xe||pe)},n.createElement("textarea",Object(_.a)({},Ie,{className:Re,style:Me,ref:x.saveTextArea})))},x.state={textareaStyles:{},resizeStatus:L.NONE},x}return Object(ce.a)(te,[{key:"componentDidUpdate",value:function(x){(x.value!==this.props.value||!W()(x.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 x=this.textArea.selectionStart,w=this.textArea.selectionEnd;this.textArea.setSelectionRange(x,w)}}catch(Y){}}},{key:"render",value:function(){return this.renderTextArea()}}]),te}(n.Component),de=ee,Ae=function(I){Object(re.a)(te,I);var j=Object(M.a)(te);function te(G){var x;Object(a.a)(this,te),x=j.call(this,G),x.resizableTextArea=void 0,x.focus=function(){x.resizableTextArea.textArea.focus()},x.saveTextArea=function(Y){x.resizableTextArea=Y},x.handleChange=function(Y){var ae=x.props.onChange;x.setValue(Y.target.value,function(){x.resizableTextArea.resizeTextarea()}),ae&&ae(Y)},x.handleKeyDown=function(Y){var ae=x.props,xe=ae.onPressEnter,pe=ae.onKeyDown;Y.keyCode===13&&xe&&xe(Y),pe&&pe(Y)};var w=typeof G.value=="undefined"||G.value===null?G.defaultValue:G.value;return x.state={value:w},x}return Object(ce.a)(te,[{key:"setValue",value:function(x,w){"value"in this.props||this.setState({value:x},w)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(de,Object(_.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(x){return"value"in x?{value:x.value}:null}}]),te}(n.Component),Ce=E.default=Ae},ZJlW:function(J,E,e){J.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"}},bT9E:function(J,E,e){"use strict";e.d(E,"a",function(){return a});var _=e("VTBJ");function a(ce,re){var M=Object(_.a)({},ce);return Array.isArray(re)&&re.forEach(function(n){delete M[n]}),M}},bUJZ:function(J,E){J.exports="data:image/png;base64,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"},biw7:function(J,E,e){"use strict";var _=e("q1tI"),a=e.n(_),ce=_.createContext(null);E.a=ce},cFMs:function(J,E){J.exports="data:image/png;base64,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"},cz0n:function(J,E,e){J.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"}},"f0W+":function(J,E,e){J.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(J,E,e){J.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"}},fyJ8:function(J,E,e){"use strict";var _=e("rePB"),a=e("VTBJ"),ce=e("Ff2n"),re=e("U8pU"),M=e("q1tI"),n=e.n(M),se=e("TSYQ"),D=e.n(se),u=e("c+Xe"),Z=e("sR1s");function y(d){return d&&Object(re.a)(d)==="object"&&!Array.isArray(d)&&!M.isValidElement(d)}function Q(d){return typeof d=="string"?!0:Object(u.c)(d)}function S(d,N){var h,R=d.prefixCls,T=d.className,O=d.record,z=d.index,C=d.dataIndex,g=d.render,b=d.children,r=d.component,o=r===void 0?"td":r,t=d.colSpan,i=d.rowSpan,l=d.fixLeft,s=d.fixRight,A=d.firstFixLeft,m=d.lastFixLeft,P=d.firstFixRight,B=d.lastFixRight,q=d.appendNode,V=d.additionalProps,W=V===void 0?{}:V,L=d.ellipsis,ee=d.align,de=d.rowType,Ae=d.isSticky,Ce="".concat(R,"-cell"),I,j;if(b)j=b;else{var te=Object(Z.b)(O,C);if(j=te,g){var G=g(te,O,z);y(G)?(j=G.children,I=G.props):j=G}}Object(re.a)(j)==="object"&&!Array.isArray(j)&&!M.isValidElement(j)&&(j=null),L&&(m||P)&&(j=M.createElement("span",{className:"".concat(Ce,"-content")},j));var x=I||{},w=x.colSpan,Y=x.rowSpan,ae=x.style,xe=x.className,pe=Object(ce.a)(x,["colSpan","rowSpan","style","className"]),Ee=w!==void 0?w:t,Te=Y!==void 0?Y:i;if(Ee===0||Te===0)return null;var Pe={},ze=typeof l=="number",ke=typeof s=="number";ze&&(Pe.position="sticky",Pe.left=l),ke&&(Pe.position="sticky",Pe.right=s);var Ie={};ee&&(Ie.textAlign=ee);var Re,Me=L===!0?{showTitle:!0}:L;Me&&(Me.showTitle||de==="header")&&(typeof j=="string"||typeof j=="number"?Re=j.toString():M.isValidElement(j)&&typeof j.props.children=="string"&&(Re=j.props.children));var Ge=Object(a.a)(Object(a.a)(Object(a.a)({title:Re},pe),W),{},{colSpan:Ee&&Ee!==1?Ee:null,rowSpan:Te&&Te!==1?Te:null,className:D()(Ce,T,(h={},Object(_.a)(h,"".concat(Ce,"-fix-left"),ze),Object(_.a)(h,"".concat(Ce,"-fix-left-first"),A),Object(_.a)(h,"".concat(Ce,"-fix-left-last"),m),Object(_.a)(h,"".concat(Ce,"-fix-right"),ke),Object(_.a)(h,"".concat(Ce,"-fix-right-first"),P),Object(_.a)(h,"".concat(Ce,"-fix-right-last"),B),Object(_.a)(h,"".concat(Ce,"-ellipsis"),L),Object(_.a)(h,"".concat(Ce,"-with-append"),q),Object(_.a)(h,"".concat(Ce,"-fix-sticky"),(ze||ke)&&Ae),h),W.className,xe),style:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},W.style),Ie),Pe),ae),ref:Q(o)?N:null});return M.createElement(o,Object.assign({},Ge),q,j)}var p=M.forwardRef(S);p.displayName="Cell";var f=M.memo(p,function(d,N){return N.shouldCellUpdate?!N.shouldCellUpdate(N.record,d.record):!1});E.a=f},hW8S:function(J,E,e){"use strict";e.d(E,"a",function(){return re}),e.d(E,"c",function(){return M}),e.d(E,"b",function(){return n});var _=e("VTBJ"),a=e("Ff2n"),ce=e("Kwbf"),re="RC_TABLE_INTERNAL_COL_DEFINE";function M(se){var D=se.expandable,u=Object(a.a)(se,["expandable"]);return"expandable"in se?Object(_.a)(Object(_.a)({},u),D):u}function n(se){return Object.keys(se).reduce(function(D,u){return(u.substr(0,5)==="data-"||u.substr(0,5)==="aria-")&&(D[u]=se[u]),D},{})}},"iL++":function(J,E,e){J.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"}},"lhx+":function(J,E,e){J.exports={flex_box_center:"flex_box_center___3-5Wg",flex_space_between:"flex_space_between___1Unpv",flex_box_vertical_center:"flex_box_vertical_center___1S9SL",flex_box_center_end:"flex_box_center_end___2OCso",flex_box_column:"flex_box_column___3m_UZ",wrap:"wrap___3Cuc9",midWrap:"midWrap___1nBzj",color999:"color999___19Pif",orderWrap:"orderWrap___1GmcP",orderIconWrap:"orderIconWrap___2aa2z",orderAsc:"orderAsc___1b2iZ",orderDesc:"orderDesc___3quHT",color0152d9:"color0152d9___ldoRr",h10:"h10___3NO0d",cursorPointer:"cursorPointer___3VF_N",orderTextWrap:"orderTextWrap___2Qdlx",cardWrap:"cardWrap___Y-ZxK",countWrap:"countWrap___2jHh7",affixContainer:"affixContainer___py2xS",qrcode:"qrcode___kjUuj",img:"img___3RlI5",tips:"tips___22vic",close:"close___1TK7v",text:"text___3oPIa",type:"type___1umwN"}},n6Qo:function(J,E,e){"use strict";e.d(E,"a",function(){return D});var _=e("q1tI"),a=e("biw7"),ce=e("fyJ8");function re(u){var Z=u.className,y=u.index,Q=u.children,S=u.colSpan,p=u.rowSpan,f=_.useContext(a.a),d=f.prefixCls,N=f.fixedInfoList,h=N[y];return _.createElement(ce.a,Object.assign({className:Z,index:y,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:S,rowSpan:p}}}},h))}function M(u){return _.createElement("tr",Object.assign({},u))}function n(u){var Z=u.children,y=_.useContext(a.a),Q=y.prefixCls;return _.createElement("tfoot",{className:"".concat(Q,"-summary")},Z)}var se=E.b=n,D={Cell:re,Row:M}},sR1s:function(J,E,e){"use strict";e.d(E,"b",function(){return re}),e.d(E,"a",function(){return M}),e.d(E,"c",function(){return n}),e.d(E,"d",function(){return se});var _=e("U8pU"),a="RC_TABLE_KEY";function ce(D){return D==null?[]:Array.isArray(D)?D:[D]}function re(D,u){if(!u&&typeof u!="number")return D;for(var Z=ce(u),y=D,Q=0;Q1)Object(Z.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(T.length===0)return Object(Z.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var O=T[0];if(n.isValidElement(O)&&Object(y.c)(O)){var z=O.ref;T[0]=n.cloneElement(O,{ref:Object(y.a)(z,this.setChildNode)})}return T.length===1?T[0]:T.map(function(C,g){return!n.isValidElement(C)||"key"in C&&C.key!==null?C:n.cloneElement(C,{key:"".concat(S,"-").concat(g)})})}}]),N}(n.Component);p.displayName="ResizeObserver",E.a=p},wCXF:function(J,E,e){"use strict";e.d(E,"a",function(){return Ve});var _=e("rePB"),a=e("VTBJ"),ce=e("KQm4"),re=e("U8pU"),M=e("ODXe"),n=e("q1tI"),se=e("TSYQ"),D=e.n(se),u=e("Gytx"),Z=e.n(u),y=e("Kwbf"),Q=e("t23M"),S=e("qx4F"),p=e("6eGT"),f=e("IBYe"),d=e("Ff2n"),N=e("c+Xe"),h=e("fyJ8"),R=e("biw7");function T(c,K,k,ie,he){var le=k[c]||{},oe=k[K]||{},$,X;le.fixed==="left"?$=ie.left[c]:oe.fixed==="right"&&(X=ie.right[K]);var v=!1,U=!1,F=!1,ue=!1,ne=k[K+1],be=k[c-1];if(he==="rtl"){if($!==void 0){var ye=be&&be.fixed==="left";ue=!ye}else if(X!==void 0){var ge=ne&&ne.fixed==="right";F=!ge}}else if($!==void 0){var Oe=ne&&ne.fixed==="left";v=!Oe}else if(X!==void 0){var me=be&&be.fixed==="right";U=!me}return{fixLeft:$,fixRight:X,lastFixLeft:v,firstFixRight:U,lastFixRight:F,firstFixLeft:ue,isSticky:ie.isSticky}}var O=e("sR1s");function z(c){var K=c.cells,k=c.stickyOffsets,ie=c.flattenColumns,he=c.rowComponent,le=c.cellComponent,oe=c.onHeaderRow,$=c.index,X=n.useContext(R.a),v=X.prefixCls,U=X.direction,F;oe&&(F=oe(K.map(function(ne){return ne.column}),$));var ue=Object(O.a)(K.map(function(ne){return ne.column}));return n.createElement(he,Object.assign({},F),K.map(function(ne,be){var ye=ne.column,ge=T(ne.colStart,ne.colEnd,ie,k,U),Oe;return ye&&ye.onHeaderCell&&(Oe=ne.column.onHeaderCell(ye)),n.createElement(h.a,Object.assign({},ne,{ellipsis:ye.ellipsis,align:ye.align,component:le,prefixCls:v,key:ue[be]},ge,{additionalProps:Oe,rowType:"header"}))}))}z.displayName="HeaderRow";var C=z;function g(c){var K=[];function k(oe,$){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;K[X]=K[X]||[];var v=$,U=oe.filter(Boolean).map(function(F){var ue={key:F.key,className:F.className||"",children:F.title,column:F,colStart:v},ne=1,be=F.children;return be&&be.length>0&&(ne=k(be,v,X+1).reduce(function(ye,ge){return ye+ge},0),ue.hasSubColumns=!0),"colSpan"in F&&(ne=F.colSpan),"rowSpan"in F&&(ue.rowSpan=F.rowSpan),ue.colSpan=ne,ue.colEnd=ue.colStart+ne-1,K[X].push(ue),v+=ne,ne});return U}k(c,0);for(var ie=K.length,he=function($){K[$].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=ie-$)})},le=0;le=0;$-=1){var X=K[$],v=k&&k[$],U=v&&v[o.a];(X||U||oe)&&(he.unshift(n.createElement("col",Object.assign({key:$,style:{width:X,minWidth:X}},U))),oe=!0)}return n.createElement("colgroup",null,he)}var i=t;function l(c,K){return Object(n.useMemo)(function(){for(var k=[],ie=0;ie1?et-1:0),mt=1;mt=F&&(He=F-ue),oe({scrollLeft:He/F*(U+2)}),me.current.x=H.pageX},Fe=function(){var H=Object(ke.b)(le.current).top,fe=H+le.current.offsetHeight,_e=document.documentElement.scrollTop+window.innerHeight;fe-Object(S.a)()<=_e||H>=_e-$?Oe(function(Ke){return Object(a.a)(Object(a.a)({},Ke),{},{isHiddenScrollBar:!0})}):Oe(function(Ke){return Object(a.a)(Object(a.a)({},Ke),{},{isHiddenScrollBar:!1})})},Se=function(H){Oe(function(fe){return Object(a.a)(Object(a.a)({},fe),{},{scrollLeft:H/U*F||0})})};return n.useImperativeHandle(k,function(){return{setScrollLeft:Se}}),n.useEffect(function(){var Ne=Object(ze.a)(document.body,"mouseup",Xe,!1),H=Object(ze.a)(document.body,"mousemove",ve,!1);return Fe(),function(){Ne.remove(),H.remove()}},[ue,Le]),n.useEffect(function(){var Ne=Object(ze.a)(window,"scroll",Fe,!1),H=Object(ze.a)(window,"resize",Fe,!1);return function(){Ne.remove(),H.remove()}},[]),n.useEffect(function(){ge.isHiddenScrollBar||Oe(function(Ne){var H,fe;return Object(a.a)(Object(a.a)({},Ne),{},{scrollLeft:le.current.scrollLeft/((H=le.current)===null||H===void 0?void 0:H.scrollWidth)*((fe=le.current)===null||fe===void 0?void 0:fe.clientWidth)})})},[ge.isHiddenScrollBar]),U<=F||!ue||ge.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(S.a)(),width:F,bottom:$},className:"".concat(v,"-sticky-scroll")},n.createElement("div",{onMouseDown:De,ref:ne,className:D()("".concat(v,"-sticky-scroll-bar"),Object(_.a)({},"".concat(v,"-sticky-scroll-bar-active"),Le)),style:{width:"".concat(ue,"px"),transform:"translate3d(".concat(ge.scrollLeft,"px, 0, 0)")}}))},Re=n.forwardRef(Ie);function Me(c,K){return n.useMemo(function(){var k=!!c;return{isSticky:k,stickyClassName:k?"".concat(K,"-sticky-header"):"",offsetHeader:Object(re.a)(c)==="object"&&c.offsetHeader||0,offsetScroll:Object(re.a)(c)==="object"&&c.offsetScroll||0}},[c,K])}var Ge=[],Qe={},Ve="rc-table-internal-hook",qe=n.memo(function(c){var K=c.children;return K},function(c,K){return Z()(c.props,K.props)?c.pingLeft!==K.pingLeft||c.pingRight!==K.pingRight:!1});function Ye(c){var K,k=c.prefixCls,ie=c.className,he=c.rowClassName,le=c.style,oe=c.data,$=c.rowKey,X=c.scroll,v=c.tableLayout,U=c.direction,F=c.title,ue=c.footer,ne=c.summary,be=c.id,ye=c.showHeader,ge=c.components,Oe=c.emptyText,me=c.onRow,we=c.onHeaderRow,je=c.internalHooks,Le=c.transformColumns,We=c.internalRefs,Xe=c.sticky,De=oe||Ge,ve=!!De.length,Fe=n.useState(0),Se=Object(M.a)(Fe,2),Ne=Se[0],H=Se[1];n.useEffect(function(){H(Object(S.a)())});var fe=n.useMemo(function(){return Object(O.c)(ge,{})},[ge]),_e=n.useCallback(function(Ue,Be){return Object(O.b)(fe,Ue)||Be},[fe]),Ke=n.useMemo(function(){return typeof $=="function"?$:function(Ue){var Be=Ue&&Ue[$];return Be}},[$]),He=Object(o.c)(c),tt=He.expandIcon,_t=He.expandedRowKeys,Rt=He.defaultExpandedRowKeys,it=He.defaultExpandAllRows,ct=He.expandedRowRender,pt=He.onExpand,ht=He.onExpandedRowsChange,Mt=He.expandRowByClick,rt=He.rowExpandable,gt=He.expandIconColumnIndex,vt=He.expandedRowClassName,It=He.childrenColumnName,Dt=He.indentSize,Et=tt||Te,Ct=It||"children",Pt=n.useMemo(function(){return ct?"row":c.expandable&&je===Ve&&c.expandable.__PARENT_RENDER_ICON__||De.some(function(Ue){return Ue&&Object(re.a)(Ue)==="object"&&Ue[Ct]})?"nest":!1},[!!ct,De]),jt=n.useState(function(){return Rt||(it?Pe(De,Ke,Ct):[])}),$e=Object(M.a)(jt,2),nt=$e[0],st=$e[1],et=n.useMemo(function(){return new Set(_t||nt||[])},[_t,nt]),dt=n.useCallback(function(Ue){var Be=Ke(Ue,De.indexOf(Ue)),Ze,at=et.has(Be);at?(et.delete(Be),Ze=Object(ce.a)(et)):Ze=[].concat(Object(ce.a)(et),[Be]),st(Ze),pt&&pt(!at,Ue),ht&&ht(Ze)},[Ke,et,De,pt,ht]),mt=n.useState(0),St=Object(M.a)(mt,2),xt=St[0],Nt=St[1],vn=Object(j.b)(Object(a.a)(Object(a.a)(Object(a.a)({},c),He),{},{expandable:!!ct,expandedKeys:et,getRowKey:Ke,onTriggerExpand:dt,expandIcon:Et,expandIconColumnIndex:gt,direction:U}),je===Ve?Le:null),Qt=Object(M.a)(vn,2),Wt=Qt[0],Je=Qt[1],Tt=n.useMemo(function(){return{columns:Wt,flattenColumns:Je}},[Wt,Je]),zt=n.useRef(),Zt=n.useRef(),ft=n.useRef(),En=n.useState(!1),qt=Object(M.a)(En,2),$t=qt[0],bn=qt[1],gn=n.useState(!1),en=Object(M.a)(gn,2),tn=en[0],Cn=en[1],xn=x(new Map),nn=Object(M.a)(xn,2),An=nn[0],yn=nn[1],On=Object(O.a)(Je),an=On.map(function(Ue){return An.get(Ue)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=ae(on,Je.length,U),lt=X&&Object(O.d)(X.y),ut=X&&Object(O.d)(X.x),At=ut&&Je.some(function(Ue){var Be=Ue.fixed;return Be}),rn=n.useRef(),Ut=Me(Xe,k),yt=Ut.isSticky,_n=Ut.offsetHeader,Rn=Ut.offsetScroll,Mn=Ut.stickyClassName,Ft,wt,Kt;lt&&(wt={overflowY:"scroll",maxHeight:X.y}),ut&&(Ft={overflowX:"auto"},lt||(wt={overflowY:"hidden"}),Kt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var sn=n.useCallback(function(Ue,Be){yn(function(Ze){var at=new Map(Ze);return at.set(Ue,Be),at})},[]),Dn=w(null),ln=Object(M.a)(Dn,2),Pn=ln[0],un=ln[1];function Ht(Ue,Be){if(!Be)return;typeof Be=="function"?Be(Ue):Be.scrollLeft!==Ue&&(Be.scrollLeft=Ue)}var bt=function(Be){var Ze=Be.currentTarget,at=Be.scrollLeft,Ot=typeof at=="number"?at:Ze.scrollLeft,hn=Ze||Qe;if(!un()||un()===hn){var Jt;Pn(hn),Ht(Ot,Zt.current),Ht(Ot,ft.current),Ht(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ze){var wn=Ze.scrollWidth,Bn=Ze.clientWidth;bn(Ot>0),Cn(Ot0?[].concat(Object(a.a)(d),Object(a.a)(y(T).map(function(O){return Object(ce.a)({fixed:R},O)}))):[].concat(Object(a.a)(d),[Object(ce.a)(Object(ce.a)({},N),{},{fixed:R})])},[])}function Q(f){for(var d=!0,N=0;N=0;T-=1){var O=f[T];if(R&&O.fixed!=="right")R=!1;else if(!R&&O.fixed==="right"){Object(se.a)(!1,"Index ".concat(T+1," of `columns` missing `fixed='right'` prop."));break}}}function S(f){return f.map(function(d){var N=d.fixed,h=Object(re.a)(d,["fixed"]),R=N;return N==="left"?R="right":N==="right"&&(R="left"),Object(ce.a)({fixed:R},h)})}function p(f,d){var N=f.prefixCls,h=f.columns,R=f.children,T=f.expandable,O=f.expandedKeys,z=f.getRowKey,C=f.onTriggerExpand,g=f.expandIcon,b=f.rowExpandable,r=f.expandIconColumnIndex,o=f.direction,t=f.expandRowByClick,i=M.useMemo(function(){return h||Z(R)},[h,R]),l=M.useMemo(function(){if(T){var m,P=r||0,B=i[P],q=(m={},Object(_.a)(m,u.a,{className:"".concat(N,"-expand-icon-col")}),Object(_.a)(m,"title",""),Object(_.a)(m,"fixed",B?B.fixed:null),Object(_.a)(m,"className","".concat(N,"-row-expand-icon-cell")),Object(_.a)(m,"render",function(L,ee,de){var Ae=z(ee,de),Ce=O.has(Ae),I=b?b(ee):!0,j=g({prefixCls:N,expanded:Ce,expandable:I,record:ee,onExpand:C});return t?M.createElement("span",{onClick:function(G){return G.stopPropagation()}},j):j}),m),V=i.slice();return P>=0&&V.splice(P,0,q),V}return i},[T,i,z,O,g,o]),s=M.useMemo(function(){var m=l;return d&&(m=d(m)),m.length||(m=[{render:function(){return null}}]),m},[d,l,o]),A=M.useMemo(function(){return o==="rtl"?S(y(s)):y(s)},[s,o]);return[s,A]}E.b=p},xiVL:function(J,E){J.exports="data:image/png;base64,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"},"y0+3":function(J,E,e){"use strict";e.d(E,"a",function(){return y}),e.d(E,"b",function(){return S});var _=/margin|padding|width|height|max|min|offset/,a={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function re(p){return p.nodeType===1?p.ownerDocument.defaultView.getComputedStyle(p,null):{}}function M(p,f,d){if(f=f.toLowerCase(),d==="auto"){if(f==="height")return p.offsetHeight;if(f==="width")return p.offsetWidth}return f in a||(a[f]=_.test(f)),a[f]?parseFloat(d)||0:d}function n(p,f){var d=arguments.length,N=re(p);return f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,d===1?N:M(p,f,N[f]||p.style[f])}function se(p,f,d){var N=arguments.length;if(f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,N===3)return typeof d=="number"&&_.test(f)&&(d="".concat(d,"px")),p.style[f]=d,d;for(var h in f)f.hasOwnProperty(h)&&se(p,h,f[h]);return re(p)}function D(p){return p===document.body?document.documentElement.clientWidth:p.offsetWidth}function u(p){return p===document.body?window.innerHeight||document.documentElement.clientHeight:p.offsetHeight}function Z(){var p=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:p,height:f}}function y(){var p=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:p,height:f}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function S(p){var f=p.getBoundingClientRect(),d=document.documentElement;return{left:f.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},"yTi+":function(J,E,e){J.exports=e.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(J,E){J.exports="data:image/png;base64,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"},z4EP:function(J,E){J.exports="data:image/png;base64,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"}}]); diff --git a/umi.e8857e1c.js b/umi.02836f8a.js similarity index 93% rename from umi.e8857e1c.js rename to umi.02836f8a.js index d036a12d22..68f6654e21 100644 --- a/umi.e8857e1c.js +++ b/umi.02836f8a.js @@ -16,18 +16,18 @@ The error may be correlated with this previous error: `+Ae.current.stack+` -`),P}return Object(v.a)(function(){S.current=je,k.current=oe,ae.current=le,Ae.current=void 0}),Object(v.a)(function(){function P(){try{var T=ce.getState();if(T===k.current)return;var $=S.current(T);if(we($,ae.current))return;ae.current=$,k.current=T}catch(se){Ae.current=se}U()}return B.onStateChange=P,B.trySubscribe(),P(),function(){return B.tryUnsubscribe()}},[ce,B]),le}function tt(je){je===void 0&&(je=t.a);var we=je===t.a?W:function(){return Object(a.useContext)(je)};return function(Y,V){V===void 0&&(V=Te);var U=we(),B=U.store,Ae=U.subscription,S=Ve(Y,V,B,Ae);return Object(a.useDebugValue)(S),S}}var ht=tt(),ge=e("i8i4"),ye=e("TfIc");Object(ye.b)(ge.unstable_batchedUpdates)},"/R3g":function(x,g,e){var a=e("MMxC"),n=e("zTPR"),r=e("ls1J"),t=e("f1E4"),u=e("Acmb"),v=e("IuhT"),m=r.keys,i=r.toKey,s=function(l){var f=[];return v(l,f.push,f),f},d=function(l,f){var o=m(l,f),h=u(l);if(h===null)return o;var c=d(h,f);return c.length?o.length?s(new n(o.concat(c))):c:o};a({target:"Reflect",stat:!0},{getMetadataKeys:function(f){var o=arguments.length<2?void 0:i(arguments[1]);return d(t(f),o)}})},"/dTS":function(x,g,e){var a=e("f1E4"),n=e("cT1L"),r=e("2kyd"),t=r("species");x.exports=function(u,v){var m=a(u).constructor,i;return m===void 0||(i=a(m)[t])==null?v:n(i)}},"/gva":function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("kkxG"),t=e("NMFW"),u=e("a5mf"),v=e("IuhT"),m=e("igoe"),i=e("tSXo"),s=e("MVys"),d=e("GPrf"),l=e("kiNa"),f=e("+vfm");x.exports=function(o,h,c){var b=o.indexOf("Map")!==-1,E=o.indexOf("Weak")!==-1,O=b?"set":"add",C=n[o],M=C&&C.prototype,w=C,A={},L=function(ue){var re=M[ue];t(M,ue,ue=="add"?function(J){return re.call(this,J===0?0:J),this}:ue=="delete"?function(ee){return E&&!i(ee)?!1:re.call(this,ee===0?0:ee)}:ue=="get"?function(J){return E&&!i(J)?void 0:re.call(this,J===0?0:J)}:ue=="has"?function(J){return E&&!i(J)?!1:re.call(this,J===0?0:J)}:function(J,F){return re.call(this,J===0?0:J,F),this})};if(r(o,typeof C!="function"||!(E||M.forEach&&!s(function(){new C().entries().next()}))))w=c.getConstructor(h,o,b,O),u.REQUIRED=!0;else if(r(o,!0)){var z=new w,G=z[O](E?{}:-0,1)!=z,D=s(function(){z.has(1)}),N=d(function(ue){new C(ue)}),Oe=!E&&s(function(){for(var ue=new C,re=5;re--;)ue[O](re,re);return!ue.has(-0)});N||(w=h(function(ue,re){m(ue,w,o);var ee=f(new C,ue,w);return re!=null&&v(re,ee[O],ee,b),ee}),w.prototype=M,M.constructor=w),(D||Oe)&&(L("delete"),L("has"),b&&L("get")),(Oe||G)&&L(O),E&&M.clear&&delete M.clear}return A[o]=w,a({global:!0,forced:w!=C},A),l(w,o),E||c.setStrong(w,o,b),w}},"/mKc":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("7BAe"),m=e("/dTS"),i=e("jbR1"),s=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{filter:function(l){var f=t(this),o=i(f),h=v(l,arguments.length>1?arguments[1]:void 0,3),c=new(m(f,r("Set"))),b=u(c.add);return s(o,function(E){h(E,E,f)&&b.call(c,E)},void 0,!1,!0),c}})},"/vMi":function(x,g,e){"use strict";var a=e("/gva"),n=e("uz3g");a("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"/yC2":function(x,g,e){var a=e("tny8"),n=e("MVys"),r=e("8w+9");x.exports=!a&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},0:function(x,g,e){x.exports=e("tB8F")},"02UQ":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("B3m4"),u={namespace:"graduation",state:{name:"\u6BD5\u4E1A\u8BBE\u8BA1",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.o,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksListDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.m,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailTaskList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTopisDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.n,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.l,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{tasksDetail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),refuseTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),agreeTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getReplyList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{replyList:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),createReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.e,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.q,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyUnLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.r,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),deleteReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.f,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),addTopicDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{addTopicData:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),editTopicDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editTopicData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),editTasksDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.h,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editTasksData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),addTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),addTasks:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTasks:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"0BeC":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Xq8v"),u={namespace:"attachment",state:{name:"\u8D44\u6E90",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{allList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),mineAttachment:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{mineList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),fileImport:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),updateVisits:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"0O5u":function(x,g,e){"use strict";var a=e("MMxC"),n=e("MVys"),r=e("Un+d"),t=e("tSXo"),u=e("cTDu"),v=e("oa35"),m=e("arQb"),i=e("nMuc"),s=e("jMDO"),d=e("2kyd"),l=e("hRxt"),f=d("isConcatSpreadable"),o=9007199254740991,h="Maximum allowed index exceeded",c=l>=51||!n(function(){var C=[];return C[f]=!1,C.concat()[0]!==C}),b=s("concat"),E=function(C){if(!t(C))return!1;var M=C[f];return M!==void 0?!!M:r(C)},O=!c||!b;a({target:"Array",proto:!0,forced:O},{concat:function(M){var w=u(this),A=i(w,0),L=0,z,G,D,N,Oe;for(z=-1,D=arguments.length;zo)throw TypeError(h);for(G=0;G=o)throw TypeError(h);m(A,L++,Oe)}return A.length=L,A}})},"0Owb":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return a=Object.assign||function(n){for(var r=1;r1;){var O=E.pop(),C=O.obj[O.prop];if(r(C)){for(var M=[],w=0;w=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||w===a.RFC1738&&(G===40||G===41)){L+=A.charAt(z);continue}if(G<128){L=L+t[G];continue}if(G<2048){L=L+(t[192|G>>6]+t[128|G&63]);continue}if(G<55296||G>=57344){L=L+(t[224|G>>12]+t[128|G>>6&63]+t[128|G&63]);continue}z+=1,G=65536+((G&1023)<<10|A.charCodeAt(z)&1023),L+=t[240|G>>18]+t[128|G>>12&63]+t[128|G>>6&63]+t[128|G&63]}return L},l=function(E){for(var O=[{obj:{o:E},prop:"o"}],C=[],M=0;M1?arguments[1]:void 0,h=o!==void 0,c=m(d),b=0,E,O,C,M,w,A;if(h&&(o=a(o,f>2?arguments[2]:void 0,2)),c!=null&&!(l==Array&&t(c)))for(M=c.call(d),w=M.next,O=new l;!(C=w.call(M)).done;b++)A=h?r(M,o,[C.value,b],!0):C.value,v(O,b,A);else for(E=u(d.length),O=new l(E);E>b;b++)A=h?o(d[b],b):d[b],v(O,b,A);return O.length=b,O}},"1OyB":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},"1W/9":function(x,g,e){"use strict";var a=e("1OyB"),n=e("vuIU"),r=e("Ji7U"),t=e("LK+K"),u=e("U8pU"),v=e("q1tI"),m=e("wgJM"),i=e("QC+M"),s=e("MNnm"),d=e("qx4F");function l(re){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!re)return{};var J=ee.element,F=J===void 0?document.body:J,Q={},q=Object.keys(re);return q.forEach(function(He){Q[He]=F.style[He]}),q.forEach(function(He){F.style[He]=re[He]}),Q}var f=l;function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h={},c=function(re){if(!o()&&!re)return;var ee="ant-scrolling-effect",J=new RegExp("".concat(ee),"g"),F=document.body.className;if(re){if(!J.test(F))return;f(h),h={},document.body.className=F.replace(J,"").trim();return}var Q=Object(d.a)();if(Q&&(h=f({position:"relative",width:"calc(100% - ".concat(Q,"px)")}),!J.test(F))){var q="".concat(F," ").concat(ee);document.body.className=q.trim()}},b=e("KQm4"),E=[],O="ant-scrolling-effect",C=new RegExp("".concat(O),"g"),M=0,w=new Map,A=function re(ee){var J=this;Object(a.a)(this,re),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var F;return(F=J.options)===null||F===void 0?void 0:F.container},this.reLock=function(F){var Q=E.find(function(q){var He=q.target;return He===J.lockTarget});Q&&J.unLock(),J.options=F,Q&&(Q.options=F,J.lock())},this.lock=function(){var F;if(E.some(function(ft){var $e=ft.target;return $e===J.lockTarget}))return;if(E.some(function(ft){var $e,Ue=ft.options;return(Ue==null?void 0:Ue.container)===(($e=J.options)===null||$e===void 0?void 0:$e.container)})){E=[].concat(Object(b.a)(E),[{target:J.lockTarget,options:J.options}]);return}var Q=0,q=((F=J.options)===null||F===void 0?void 0:F.container)||document.body;(q===document.body&&window.innerWidth-document.documentElement.clientWidth>0||q.scrollHeight>q.clientHeight)&&(Q=Object(d.a)());var He=q.className;if(E.filter(function(ft){var $e,Ue=ft.options;return(Ue==null?void 0:Ue.container)===(($e=J.options)===null||$e===void 0?void 0:$e.container)}).length===0&&w.set(q,f({width:Q!==0?"calc(100% - ".concat(Q,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:q})),!C.test(He)){var Ze="".concat(He," ").concat(O);q.className=Ze.trim()}E=[].concat(Object(b.a)(E),[{target:J.lockTarget,options:J.options}])},this.unLock=function(){var F,Q=E.find(function(Ze){var ft=Ze.target;return ft===J.lockTarget});if(E=E.filter(function(Ze){var ft=Ze.target;return ft!==J.lockTarget}),!Q||E.some(function(Ze){var ft,$e=Ze.options;return($e==null?void 0:$e.container)===((ft=Q.options)===null||ft===void 0?void 0:ft.container)}))return;var q=((F=J.options)===null||F===void 0?void 0:F.container)||document.body,He=q.className;if(!C.test(He))return;f(w.get(q),{element:q}),w.delete(q),q.className=q.className.replace(C,"").trim()},this.lockTarget=M++,this.options=ee},L=0,z=Object(s.a)();function G(){return 0}var D={},N=function(ee){if(!z)return null;if(ee){if(typeof ee=="string")return document.querySelectorAll(ee)[0];if(typeof ee=="function")return ee();if(Object(u.a)(ee)==="object"&&ee instanceof window.HTMLElement)return ee}return document.body},Oe=function(re){Object(r.a)(J,re);var ee=Object(t.a)(J);function J(F){var Q;return Object(a.a)(this,J),Q=ee.call(this,F),Q.container=void 0,Q.componentRef=v.createRef(),Q.rafId=void 0,Q.scrollLocker=void 0,Q.renderComponent=void 0,Q.updateScrollLocker=function(q){var He=q||{},Ze=He.visible,ft=Q.props,$e=ft.getContainer,Ue=ft.visible;Ue&&Ue!==Ze&&z&&N($e)!==Q.scrollLocker.getContainer()&&Q.scrollLocker.reLock({container:N($e)})},Q.updateOpenCount=function(q){var He=q||{},Ze=He.visible,ft=He.getContainer,$e=Q.props,Ue=$e.visible,X=$e.getContainer;Ue!==Ze&&z&&N(X)===document.body&&(Ue&&!Ze?L+=1:q&&(L-=1));var me=typeof X=="function"&&typeof ft=="function";(me?X.toString()!==ft.toString():X!==ft)&&Q.removeCurrentContainer()},Q.attachToParent=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(q||Q.container&&!Q.container.parentNode){var He=N(Q.props.getContainer);return He?(He.appendChild(Q.container),!0):!1}return!0},Q.getContainer=function(){return z?(Q.container||(Q.container=document.createElement("div"),Q.attachToParent(!0)),Q.setWrapperClassName(),Q.container):null},Q.setWrapperClassName=function(){var q=Q.props.wrapperClassName;Q.container&&q&&q!==Q.container.className&&(Q.container.className=q)},Q.removeCurrentContainer=function(){var q,He;(q=Q.container)===null||q===void 0||((He=q.parentNode)===null||He===void 0)||He.removeChild(Q.container)},Q.switchScrollingEffect=function(){L===1&&!Object.keys(D).length?(c(),D=f({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):L||(f(D),D={},c(!0))},Q.scrollLocker=new A({container:N(F.getContainer)}),Q}return Object(n.a)(J,[{key:"componentDidMount",value:function(){var Q=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Object(m.a)(function(){Q.forceUpdate()}))}},{key:"componentDidUpdate",value:function(Q){this.updateOpenCount(Q),this.updateScrollLocker(Q),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var Q=this.props,q=Q.visible,He=Q.getContainer;z&&N(He)===document.body&&(L=q&&L?L-1:L),this.removeCurrentContainer(),m.a.cancel(this.rafId)}},{key:"render",value:function(){var Q=this.props,q=Q.children,He=Q.forceRender,Ze=Q.visible,ft=null,$e={getOpenCount:function(){return L},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(He||Ze||this.componentRef.current)&&(ft=v.createElement(i.a,{getContainer:this.getContainer,ref:this.componentRef},q($e))),ft}}]),J}(v.Component),ue=g.a=Oe},"1WJl":function(x,g,e){"use strict";x.exports=function a(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var t,u,v;if(Array.isArray(n)){if(t=n.length,t!=r.length)return!1;for(u=t;u--!==0;)if(!a(n[u],r[u]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(v=Object.keys(n),t=v.length,t!==Object.keys(r).length)return!1;for(u=t;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,v[u]))return!1;for(u=t;u--!==0;){var m=v[u];if(!a(n[m],r[m]))return!1}return!0}return n!==n&&r!==r}},"1aI8":function(x,g,e){var a=e("ZkJ9"),n=e("ukPv"),r=e("tSXo"),t=e("lz10"),u=e("jtLI"),v=e("CjUg"),m=e("6ixQ"),i=n.WeakMap,s,d,l,f=function(C){return l(C)?d(C):s(C,{})},o=function(C){return function(M){var w;if(!r(M)||(w=d(M)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return w}};if(a){var h=new i,c=h.get,b=h.has,E=h.set;s=function(C,M){return E.call(h,C,M),M},d=function(C){return c.call(h,C)||{}},l=function(C){return b.call(h,C)}}else{var O=v("state");m[O]=!0,s=function(C,M){return t(C,O,M),M},d=function(C){return u(C,O)?C[O]:{}},l=function(C){return u(C,O)}}x.exports={set:s,get:d,has:l,enforce:f,getterFor:o}},"1cmj":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),u=e("ErOA");function v(f){return m.apply(this,arguments)}function m(){return m=Object(t.a)(r.a.mark(function f(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(u.a)("/api/shixuns/new.json",{method:"Get",params:o}));case 1:case"end":return c.stop()}},f)})),m.apply(this,arguments)}function i(f){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function f(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(u.a)("/api/shixuns/".concat(o.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return c.stop()}},f)})),s.apply(this,arguments)}var d={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"save",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},f)}),getTestData:r.a.mark(function f(o,h){var c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return c=o.payload,b=h.call,E=h.put,M.next=4,b(v,c);case 4:return O=M.sent,M.next=7,E({type:"save",payload:{data:O}});case 7:case"end":return M.stop()}},f)}),setUpdateIndex:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"save",payload:{updateIndex:Math.random()}});case 4:case"end":return C.stop()}},f)}),getCommonData:r.a.mark(function f(o,h){var c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return c=o.payload,b=h.call,E=h.put,M.next=4,b(i,c);case 4:return O=M.sent,M.next=7,E({type:"save",payload:Object(a.a)({},O.data)});case 7:case"end":return M.stop()}},f)}),setSideBarTabs:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"sideBar",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},f)})},reducers:{save:function(o,h){return Object(a.a)(Object(a.a)({},o),h.payload)},sideBar:function(o,h){return Object(a.a)(Object(a.a)({},o),{},{sideBar:Object(a.a)(Object(a.a)({},o.sideBar),h.payload)})}},subscriptions:{setup:function(o){var h=o.dispatch,c=o.history}}},l=g.a=d},"1jPx":function(x,g,e){"use strict";var a=e("8OQV"),n=e("FVwB").exportTypedArrayStaticMethod,r=e("Sn4z");n("from",r,a)},"1nhP":function(x,g,e){var a=e("m0kY");x.exports=function(n){var r=a(n);if(r<0)throw RangeError("The argument can't be less than 0");return r}},"1qEB":function(x,g,e){"use strict";var a=e("k1fw"),n={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(t,u){return Object(a.a)(Object(a.a)({},t),u.payload)},openModal:function(t,u){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:u.payload})},closeModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:""})},openSimpleModal:function(t,u){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:Object(a.a)({visible:!0},u.payload)})},closeSimpleModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:{visible:!1}})}}};g.a=n},"1vsH":function(x,g,e){"use strict";e.d(g,"o",function(){return Oe}),e.d(g,"j",function(){return ue}),e.d(g,"l",function(){return re}),e.d(g,"B",function(){return J}),e.d(g,"f",function(){return F}),e.d(g,"h",function(){return Q}),e.d(g,"e",function(){return q}),e.d(g,"g",function(){return He}),e.d(g,"n",function(){return Ze}),e.d(g,"c",function(){return ft}),e.d(g,"k",function(){return $e}),e.d(g,"m",function(){return Ue}),e.d(g,"A",function(){return X}),e.d(g,"a",function(){return ie}),e.d(g,"bb",function(){return Ye}),e.d(g,"db",function(){return fe}),e.d(g,"K",function(){return Te}),e.d(g,"H",function(){return Ve}),e.d(g,"D",function(){return tt}),e.d(g,"G",function(){return ht}),e.d(g,"Z",function(){return ge}),e.d(g,"F",function(){return ye}),e.d(g,"W",function(){return je}),e.d(g,"x",function(){return ce}),e.d(g,"y",function(){return U}),e.d(g,"w",function(){return B}),e.d(g,"v",function(){return Ae}),e.d(g,"Y",function(){return S}),e.d(g,"O",function(){return k}),e.d(g,"L",function(){return ae}),e.d(g,"S",function(){return K}),e.d(g,"d",function(){return $}),e.d(g,"b",function(){return se}),e.d(g,"V",function(){return it}),e.d(g,"C",function(){return Et}),e.d(g,"P",function(){return Tt}),e.d(g,"J",function(){return It}),e.d(g,"s",function(){return tn}),e.d(g,"M",function(){return gn}),e.d(g,"ab",function(){return an}),e.d(g,"T",function(){return on}),e.d(g,"z",function(){return vn}),e.d(g,"cb",function(){return Rn}),e.d(g,"R",function(){return St}),e.d(g,"E",function(){return bt}),e.d(g,"q",function(){return Pt}),e.d(g,"u",function(){return Ft}),e.d(g,"I",function(){return De}),e.d(g,"p",function(){return Ct}),e.d(g,"X",function(){return be}),e.d(g,"r",function(){return Ne}),e.d(g,"Q",function(){return Fe}),e.d(g,"i",function(){return dt}),e.d(g,"t",function(){return Pe}),e.d(g,"N",function(){return ct}),e.d(g,"U",function(){return qe});var a=e("oBTY"),n=e("sRBo"),r=e("kaz8"),t=e("14J3"),u=e("BMrR"),v=e("jCWc"),m=e("kPKH"),i=e("2qtc"),s=e("kLXV"),d=e("9og8"),l=e("miYZ"),f=e("tsqr"),o=e("k1fw"),h=e("jrin"),c=e("WmNS"),b=e.n(c),E=e("q1tI"),O=e.n(E),C=e("xKgJ"),M=e("s8TD"),w=e("V0Rq"),A=e("bntm"),L={load:"text/html","123":"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp","602":"application/x-t602","669":"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"},z=e("aCH8"),G=e.n(z),D=e("m3rI"),N=e("dhSg"),Oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ue=["\u6B63\u786E","\u9519\u8BEF"],re=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],ee=function(Z){var Xe={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return Z.data&&Z.data.map(function(gt,Mt){return O.a.createElement("span",{key:Mt,className:Xe[gt]&&Xe[gt].class},gt)})},J=function(Z){var Xe,gt=(Xe={},Object(h.a)(Xe,-1,"\u91CD\u505A\u4E2D"),Object(h.a)(Xe,0,"\u672A\u5F00\u542F"),Object(h.a)(Xe,1,"\u672A\u901A\u5173"),Object(h.a)(Xe,2,"\u6309\u65F6\u901A\u5173"),Xe);return gt[Z]||"\u8FDF\u4EA4\u901A\u5173"},F=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}),Xe);return O.a.createElement("span",{className:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.class},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},Q=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}),Xe);return O.a.createElement("span",{className:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.class},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},q=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}),Xe);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},He=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"}),Xe);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},Ze=function(Z){var Xe=Z.status,gt={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return O.a.createElement("span",{className:gt[Xe].class},gt[Xe].name)}catch(Mt){console.log("utils.StatusGraduationProjectTags",Z.status)}},ft={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},$e={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},Ue=function(Z){var Xe={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},gt={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};Z.temporary&&(Xe=Object(o.a)(Object(o.a)({},Xe),gt));var Mt=[];Z.is_random&&Mt.push(O.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{Z.status&&Z.status.map(function(xt,Gt){Mt.push(O.a.createElement("span",{style:(Z==null?void 0:Z.style)||[],key:Gt,className:Xe[xt]&&Xe[xt].class},xt))})}catch(xt){console.log("utils.status.tag:",xt,Z.status)}return Mt},X=function(Z){if(Z===1)return O.a.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(Z===2)return O.a.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(Z===3)return O.a.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u7ED3\u675F")},me=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Xe);return O.a.createElement("span",{className:(gt=xt[Z.status])===null||gt===void 0?void 0:gt.class},(Mt=xt[Z.status])===null||Mt===void 0?void 0:Mt.name)},ie=function(Z){var Xe,gt,Mt={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return O.a.createElement("span",{className:(Xe=Mt[Z.status])===null||Xe===void 0?void 0:Xe.class},(gt=Mt[Z.status])===null||gt===void 0?void 0:gt.name)},W=function(Z){Z=new Date(Z).getTime();var Xe=1e3*60,gt=Xe*60,Mt=gt*24,xt="",Gt=new Date().getTime(),ln=Gt-Z;if(ln<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),xt="\u521A\u521A";var nn=parseInt(ln/Mt,10),Ln=parseInt(ln/gt,10),bn=parseInt(ln/Xe,10);return nn>30?xt=""+de(Z,"yyyy-MM-dd"):nn>1?xt=""+nn+"\u5929\u524D":nn==1?xt="\u6628\u5929":Ln>=1?xt=""+Ln+"\u5C0F\u65F6\u524D":bn>=5?xt=""+bn+"\u5206\u949F\u524D":xt="\u521A\u521A",xt},de=function(Z,Xe){typeof Z=="string"&&(Z.indexOf("T")>=0&&(Z=Z.replace("T"," ")),Z=new Date(Date.parse(Z.replace(/-/g,"/")))),Z=new Date(Z);var gt={"M+":Z.getMonth()+1,"d+":Z.getDate(),"h+":Z.getHours(),"m+":Z.getMinutes(),"s+":Z.getSeconds(),"q+":Math.floor((Z.getMonth()+3)/3),S:Z.getMilliseconds()},Mt=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(Xe)&&(Xe=Xe.replace(RegExp.$1,(Z.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(Xe)&&(Xe=Xe.replace(RegExp.$1,Mt[RegExp.$1.length-1][Z.getDay()]));for(var xt in gt)new RegExp("("+xt+")").test(Xe)&&(Xe=Xe.replace(RegExp.$1,RegExp.$1.length==1?gt[xt]:("00"+gt[xt]).substr((""+gt[xt]).length)));return Xe},Ye=function(Z){if(!Z||Z<0)return"0\u79D2";console.log("time:",Z);var Xe=60,gt=Xe*60,Mt=gt*24,xt=Z/Mt,Gt=Z/gt,ln=Z/Xe,nn=Z%60;return xt>=1?parseInt(xt.toString())+"\u5929"+Math.floor(Gt%24)+"\u65F6"+Math.floor(ln%60)+"\u5206"+Math.floor(Z%60)+"\u79D2":Gt>1?parseInt(Gt.toString())+"\u65F6"+Math.floor(ln%60)+"\u5206"+Math.floor(Z%60)+"\u79D2":ln>=1?parseInt(ln.toString())+"\u5206"+Math.floor(Z%60)+"\u79D2":Math.ceil(Z)+"\u79D2"},fe=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,gt=0;if(Z){gt=Z.length;for(var Mt=0;Mt=55296&&xt<=56319&&(gt--,Mt++)}}return gt<=Xe},rt=function(Z,Xe,gt){if(Xe){var Mt=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,xt=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,Gt=xt.test(Xe),ln=Mt.test(Xe);(Gt===!0||ln===!0||(Xe.length<2||Xe.length>=21))&>("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}gt()},Te=function(Z,Xe,gt){if(Xe){var Mt=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,xt=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,Gt=xt.test(Xe),ln=Mt.test(Xe);(Gt===!0||ln===!0||(Xe.length<2||Xe.length>=11))&>("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}gt()},Ve=function(Z){if(!Z)return"";for(var Xe=Z.length-1,gt="",Mt=0;Mt0){Xe=!1;break}return Xe}function ae(){var Me=navigator.userAgent,Z=["Chrome"];return Z.some(function(Xe){return Me.indexOf(Xe)>-1})}function oe(){var Me=navigator.userAgent,Z=["Chrome","Firefox"];return Z.some(function(Xe){return Me.indexOf(Xe)>-1})}var le=function(){var Z,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Xe==null||((Z=Xe.toString())===null||Z===void 0)?void 0:Z.replace(/\B(?=(\d{3})+(?!\d))/g,",")},K=function(Z){var Xe=document.createElement("a");Xe.target="_blank",document.body.appendChild(Xe),Xe.href=Z;var gt=document.createEvent("MouseEvents");gt.initEvent("click",!1,!1),Xe.dispatchEvent(gt),document.body.removeChild(Xe)},P=function(Z){var Xe=document.createElement("a");document.body.appendChild(Xe),Xe.href=Z;var gt=document.createEvent("MouseEvents");gt.initEvent("click",!1,!1),Xe.dispatchEvent(gt),document.body.removeChild(Xe)},T=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Z.length<=6?Z:"".concat(Z.substring(0,3),"...").concat(Z.substring(Z.length-3,Z.length))},$=function(){var Z=new Date().getHours(),Xe=new Date().getMinutes();return Xe>=30?(Z++,Xe="00"):Xe="30",Z+":"+Xe},se=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"-",Xe=new Date().getHours(),gt=new Date().getMinutes();return gt>=30?(Xe++,gt="00"):gt="30",new Date().toLocaleDateString().replace(/\//g,Z)+" "+Xe+":"+gt},ke;(function(Me){Me.Number="Number",Me.String="String",Me.Boolean="Boolean",Me.Object="Object",Me.Array="Array",Me.Function="Function"})(ke||(ke={}));var ve=function(Z){var Xe=Object.prototype.toString.call(Z);return Xe.substring(8,Xe.length-1)},Be=function(Z){return ve(Z)===ke.Array?Z.length===0:ve(Z)===ke.Object?Object.keys(Z).length===0:!Z},it=function(Z,Xe){for(var gt=[],Mt=Z;Mt1&&arguments[1]!==void 0?arguments[1]:12,gt=Xe/2-2,Mt=Xe/2+3;return Z.length>Xe?Z.substr(0,gt)+"..."+Z.substr(Mt,Xe):Z},Et=function(Z){return Z>4.5?5:Z>4&&Z<=4.5?4.5:Z>3.5&&Z<=4?4:Z>3&&Z<=3.5?3.5:Z>2.5&&Z<=3?3:Z>2&&Z<=2.5?2.5:Z>1.5&&Z<=2?2:Z>1&&Z<=1.5?1.5:Z>.5&&Z<=1?1:Z>0&&Z<=.5?.5:0},Tt=function(Z){return Z==null};function Ht(Me,Z){var Xe=new RegExp("(^|&)".concat(Me,"=([^&]*)(&|$)"),"i"),gt=Z.substr(1).match(Xe);return gt!=null?decodeURIComponent(gt[2]):null}var It=function(Z){if(Z.link_url)return window.open(Z.link_url);switch(Z.container_type){case"ApplyUserAuthentication":if(Z.tiding_type==="Apply"){if(Z.auth_type===1)return window.open("/admins/identity_authentications");if(Z.auth_type===2)return window.open("/admins/professional_authentications")}return Z.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return Z.tiding_type==="Apply"?window.open("/admins/department_applies"):Z.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return Z.tiding_type==="Apply"?window.open("/admins/unit_applies"):Z.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(Z.parent_container_type){case"ApplyShixun":if(Z.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(Z.tiding_type==="System")return window.open("/shixuns/".concat(Z.identifier,"/challenges"));case"ApplySubject":if(Z.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(Z.tiding_type==="System")return window.open("/paths/".concat(Z.parent_container_id));case"TrialAuthorization":if(Z.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(Z.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/teachers"));case"StudentJoinCourse":if(Z.tiding_type==="Apply")return window.open("/classrooms/".concat(Z.belong_container_id,"/teachers"));if(Z.tiding_type==="System")return window.open("/classrooms/".concat(Z.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"Course":return Z.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(Z.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(Z.container_id));case"JournalsForMessage":switch(Z.parent_container_type){case"Principal":return"";case"HomeworkCommon":return Z.homework_type==="normal"?window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/question")):Z.homework_type==="group"?window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/question")):Z.homework_type==="practice"?window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(Z.link_url)}case"Memo":return window.open("/forums/".concat(Z.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(Z.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(D.a.FORGE+Z.project_url);case"ReporterJoinProject":return window.open(D.a.FORGE+Z.project_url);case"DealProject":return window.open(D.a.FORGE+Z.project_url);case"ManagerJoinProject":return window.open(D.a.FORGE+Z.project_url);case"Poll":switch(Z.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(Z.belong_container_id,"/poll/").concat(Z.container_id,"/detail"));default:return window.open(" /classrooms/".concat(Z.belong_container_id,"/poll/").concat(Z.container_id,"/detail"))}case"Exercise":switch(Z.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.container_id));case"GraduationWork":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.parent_container_id));case"HomeworkCommon":switch(Z.parent_container_type){case"AnonymousCommentFail":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));default:if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/review/").concat(Z.container_id));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/review/").concat(Z.container_id));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.trigger_user.id,"/review/").concat(Z.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.trigger_user.id,"/review/").concat(Z.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(D.a.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(Z.parent_container_id));case"Issue":return window.open("/issues/".concat(Z.container_id));case"PullRequest":return window.open(D.a.FORGE+Z.project_url);case"Department":return window.open("/account/profile");case"Library":if(Z.tiding_type==="Apply")return window.open("/admins/library_applies");if(Z.tiding_type==="System")return window.open("/moop_cases/".concat(Z.container_id));case"ProjectPackage":return Z.tiding_type==="Destroyed"||Z.tiding_type==="Destroyed_end"?void 0:Z.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(Z.container_id));case"Discuss":return Z.parent_container_type==="Hack"&&Z.extra?window.open("/myproblems/".concat(Z.extra,"/comment")):Z.extra==="ai_reply"&&Z.task_identifier?window.open("/tasks/".concat(Z.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(Z.identifier,"/shixun_discuss"));case"Video":if(Z.tiding_type==="Apply")return window.open("/admins/video_applies");if(Z.tiding_type==="System"){var Xe;return window.open("/users/".concat((Xe=Object(C.x)())===null||Xe===void 0?void 0:Xe.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(Z.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(Z.container_id));case"ResubmitStudentWork":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/").concat(Z.container_id,"/appraise"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/").concat(Z.container_id,"/appraise"));case"AdjustScore":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(Z.belong_container_id,"/course_videos?open=live"));case"Hack":if(Z.extra&&Z.parent_container_type!=="HackDelete")return window.open("/problems/".concat(Z.extra,"/edit"));default:return}},tn=function(Z){var Xe,gt;return new Promise(function(){var Mt=Object(d.a)(b.a.mark(function xt(Gt,ln){var nn;return b.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(!(Z.ip_limit!=="no"||Z.ip_bind)){bn.next=4;break}return bn.next=3,Object(M.a)({ip_limit:Z==null?void 0:Z.ip_limit,ip_bind:Z==null?void 0:Z.ip_bind});case 3:Xe=bn.sent;case 4:return bn.next=6,Object(w.g)({id:Z.exerciseId,ip:Xe});case 6:if(nn=bn.sent,nn.status===0?Gt(nn):ln(nn),!Z.errmsgHide){bn.next=10;break}return bn.abrupt("return",!0);case 10:if(!(nn.status===-1)){bn.next=15;break}return gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),bn.abrupt("return",!1);case 15:if(!(nn.status===-2)){bn.next=18;break}return gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",O.a.createElement("span",{className:"c-red"},nn.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),bn.abrupt("return",!1);case 18:case"end":return bn.stop()}},xt)}));return function(xt,Gt){return Mt.apply(this,arguments)}}())},qt=function(Z){return new Promise(function(){var Xe=Object(d.a)(b.a.mark(function gt(Mt,xt){var Gt;return b.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(w.f)({id:Z==null?void 0:Z.exerciseId,coursesId:Z==null?void 0:Z.coursesId});case 2:if(Gt=nn.sent,!((Gt==null?void 0:Gt.status)===0)){nn.next=6;break}return Mt(""),nn.abrupt("return");case 6:setTimeout(function(){window.location.reload()},2e3),xt("");case 8:case"end":return nn.stop()}},gt)}));return function(gt,Mt){return Xe.apply(this,arguments)}}())},gn=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},an=function(){var Me=Object(d.a)(b.a.mark(function Z(Xe){var gt;return b.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!k())){xt.next=3;break}return s.a.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"}),xt.abrupt("return");case 3:return xt.next=5,qt(Xe);case 5:if(!(Xe.ip_limit!=="no"||Xe.ip_bind)){xt.next=11;break}return xt.next=8,tn(Xe);case 8:if(ae()){xt.next=11;break}return s.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),xt.abrupt("return");case 11:if(!(Xe.open_camera||Xe.screen_open||Xe.ip_limit!=="no"||Xe.ip_bind||Xe.identity_verify)){xt.next=18;break}if(oe()){xt.next=15;break}return s.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),xt.abrupt("return",!1);case 15:gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},Xe.identity_verify&&O.a.createElement(u.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"45px"},O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(m.a,{flex:"1"},"\u8FDB\u5165\u8003\u8BD5\u524D\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u9700\u91C7\u96C6\u7167\u7247\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u901A\u8FC7\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u624D\u53EF\u4EE5\u8FDB\u5165\u8003\u8BD5\u3002",!Ne()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Xe.open_camera&&O.a.createElement(u.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(m.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",!Ne()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Xe.screen_open&&O.a.createElement(u.a,{justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),O.a.createElement(m.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",Xe.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",!Ne()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(Xe.inner_ip!==""||Xe.public_ip!=="")&&Xe.ip_limit!=="no"&&O.a.createElement(u.a,{justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),O.a.createElement(m.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",O.a.createElement("br",null),!Ne()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),Xe.ip_bind&&O.a.createElement(u.a,{justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IPbangding c-blue font24"})),O.a.createElement(m.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A\u3002\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002",O.a.createElement("br",null),!Ne()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),O.a.createElement("p",{className:"ml40 mt40"},O.a.createElement(r.a,{onChange:function(ln){return gt.update({okButtonProps:{disabled:!ln.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){if(Object(A.d)(document.body),Xe.open_phone_video_recording){var ln;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((ln=Object(C.x)())===null||ln===void 0?void 0:ln.login,"/check"))}else if(Xe.identity_verify&&Xe.current_status===2){var nn;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((nn=Object(C.x)())===null||nn===void 0?void 0:nn.login,"/check"))}else{var Ln;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((Ln=Object(C.x)())===null||Ln===void 0?void 0:Ln.login))}},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),xt.next=19;break;case 18:Xe.identity_verify&&Xe.current_status===2?Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat(Xe.login,"/check")):Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat(Xe.login));case 19:case"end":return xt.stop()}},Z)}));return function(Xe){return Me.apply(this,arguments)}}(),Tn=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}],on=function(Z){var Xe=/(\w+)=([^\#&]*)/gi,gt={};return Z.replace(Xe,function(Mt,xt,Gt){gt[xt]=decodeURI(Gt)}),gt},En=function(Z,Xe){var gt={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E".concat(Xe,"\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002")},Mt=gt[Z];f.b.warn(Mt)},yn=function(Z,Xe){for(var gt,Mt,xt=window.atob(Z),Gt=xt.length,ln=new Uint8Array(Gt),nn=0;nn0&&arguments[0]!==void 0?arguments[0]:"",Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=document.createElement("textarea");gt.value=Z,document.body.appendChild(gt),gt.select(),document.execCommand("Copy"),Xe||f.b.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(gt)},De=function(Z){Z||(Z=window.location.search);var Xe=Z.substring(1),gt={};return Xe.split("&").forEach(function(Mt){var xt=Mt.split("=");gt[xt[0]]=decodeURIComponent(xt[1])}),gt},Ct=function(Z,Xe){if(!Xe)return null;var gt=[];return Xe.forEach(function(Mt,xt){var Gt=Math.floor(xt/Z);gt[Gt]||(gt[Gt]=[]),gt[Gt].push(Mt)}),gt},be=function(Z){Ne()?document.title=" ":document.title=Z||" "},Ne=function(){var Z,Xe;return(Z=window)===null||Z===void 0||((Xe=Z.localStorage)===null||Xe===void 0)?void 0:Xe.isClientExam},Fe={setItem:function(Z,Xe,gt){var Mt=Z,xt=localStorage.getItem(Mt),Gt=xt!==null&&xt!=="[object Object]"?JSON.parse(xt):{};Gt[gt]=Xe,localStorage.setItem(Mt,JSON.stringify(Gt))},getItem:function(Z,Xe){var gt=Z,Mt=localStorage.getItem(gt),xt=Mt!==null&&Mt!=="[object Object]"?JSON.parse(Mt):{};return xt[Xe]}},dt=function(Z){return Z!=null&&Z.startsWith("http")?Z:D.a.IMG_SERVER+Z},Pe=function(Z){for(var Xe=Ce(),gt=Z.split("."),Mt=Xe.split("."),xt=Math.max(gt.length,Mt.length);gt.lengthnn)return 1;if(ln-1};function qe(Me,Z){var Xe=Me.length,gt,Mt;Z=Z||1;for(var xt=function(){var ln=Math.sin(Z++)*1e3;return ln-Math.floor(ln)};Xe!==0;)Mt=Math.floor(xt()*Xe),Xe-=1,gt=Me[Xe],Me[Xe]=Me[Mt],Me[Mt]=gt;return Me}},"1vuE":function(x,g,e){var a=e("eNh0");a("flat")},2:function(x,g){},"22qN":function(x,g,e){},"25BE":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}},"284h":function(x,g,e){var a=e("cDf5").default;function n(t){if(typeof WeakMap!="function")return null;var u=new WeakMap,v=new WeakMap;return(n=function(i){return i?v:u})(t)}function r(t,u){if(!u&&t&&t.__esModule)return t;if(t===null||a(t)!=="object"&&typeof t!="function")return{default:t};var v=n(u);if(v&&v.has(t))return v.get(t);var m={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var d=i?Object.getOwnPropertyDescriptor(t,s):null;d&&(d.get||d.set)?Object.defineProperty(m,s,d):m[s]=t[s]}return m.default=t,v&&v.set(t,m),m}x.exports=r,x.exports.__esModule=!0,x.exports.default=x.exports},"29mP":function(x,g,e){var a=e("nFn1"),n=e("ukPv"),r=function(t){return typeof t=="function"?t:void 0};x.exports=function(t,u){return arguments.length<2?r(a[t])||r(n[t]):a[t]&&a[t][u]||n[t]&&n[t][u]}},"2FZw":function(x,g,e){var a=e("oa35"),n=e("+rjg"),r=e("FCfD"),t=Math.ceil,u=function(v){return function(m,i,s){var d=String(r(m)),l=d.length,f=s===void 0?" ":String(s),o=a(i),h,c;return o<=l||f==""?d:(h=o-l,c=n.call(f,t(h/f.length)),c.length>h&&(c=c.slice(0,h)),v?d+c:c+d)}};x.exports={start:u(!1),end:u(!0)}},"2GS6":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){var n=[].slice.call(arguments,0);return n.length===1?n[0]:function(){for(var t=0;t1?m-1:0);for(var i=1;i2?m-2:0);for(var i=2;i1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){b.call(c,E,h(O,E,f))},void 0,!0,!0),c}})},"2j6C":function(x,g){x.exports=e;function e(a,n){if(!a)throw new Error(n||"Assertion failed")}e.equal=function(n,r,t){if(n!=r)throw new Error(t||"Assertion failed: "+n+" != "+r)}},"2kyd":function(x,g,e){var a=e("ukPv"),n=e("xxaU"),r=e("jtLI"),t=e("evbn"),u=e("Fs9M"),v=e("wgKq"),m=n("wks"),i=a.Symbol,s=v?i:i&&i.withoutSetter||t;x.exports=function(d){return r(m,d)||(u&&r(i,d)?m[d]=i[d]:m[d]=s("Symbol."+d)),m[d]}},"2mql":function(x,g,e){"use strict";var a=e("TOwV"),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[a.ForwardRef]=t,v[a.Memo]=u;function m(c){return a.isMemo(c)?u:v[c.$$typeof]||n}var i=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,o=Object.prototype;function h(c,b,E){if(typeof b!="string"){if(o){var O=f(b);O&&O!==o&&h(c,O,E)}var C=s(b);d&&(C=C.concat(d(b)));for(var M=m(c),w=m(b),A=0;A=0;s--){var d=v[s];d==="."?v.splice(s,1):d===".."?(v.splice(s,1),i++):i&&(v.splice(s,1),i--)}if(m)for(;i--;i)v.unshift("..");return v}g.resolve=function(){for(var v="",m=!1,i=arguments.length-1;i>=-1&&!m;i--){var s=i>=0?arguments[i]:a.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;v=s+"/"+v,m=s.charAt(0)==="/"}return v=n(t(v.split("/"),function(d){return!!d}),!m).join("/"),(m?"/":"")+v||"."},g.normalize=function(v){var m=g.isAbsolute(v),i=u(v,-1)==="/";return v=n(t(v.split("/"),function(s){return!!s}),!m).join("/"),!v&&!m&&(v="."),v&&i&&(v+="/"),(m?"/":"")+v},g.isAbsolute=function(v){return v.charAt(0)==="/"},g.join=function(){var v=Array.prototype.slice.call(arguments,0);return g.normalize(t(v,function(m,i){if(typeof m!="string")throw new TypeError("Arguments to path.join must be strings");return m}).join("/"))},g.relative=function(v,m){v=g.resolve(v).substr(1),m=g.resolve(m).substr(1);function i(c){for(var b=0;b=0&&!(c[E]!=="");E--);return b>E?[]:c.slice(b,E-b+1)}for(var s=i(v.split("/")),d=i(m.split("/")),l=Math.min(s.length,d.length),f=l,o=0;o=1;--l)if(m=v.charCodeAt(l),m===47){if(!d){s=l;break}}else d=!1;return s===-1?i?"/":".":i&&s===1?"/":v.slice(0,s)};function r(v){typeof v!="string"&&(v=v+"");var m=0,i=-1,s=!0,d;for(d=v.length-1;d>=0;--d)if(v.charCodeAt(d)===47){if(!s){m=d+1;break}}else i===-1&&(s=!1,i=d+1);return i===-1?"":v.slice(m,i)}g.basename=function(v,m){var i=r(v);return m&&i.substr(-1*m.length)===m&&(i=i.substr(0,i.length-m.length)),i},g.extname=function(v){typeof v!="string"&&(v=v+"");for(var m=-1,i=0,s=-1,d=!0,l=0,f=v.length-1;f>=0;--f){var o=v.charCodeAt(f);if(o===47){if(!d){i=f+1;break}continue}s===-1&&(d=!1,s=f+1),o===46?m===-1?m=f:l!==1&&(l=1):m!==-1&&(l=-1)}return m===-1||s===-1||l===0||l===1&&m===s-1&&m===i+1?"":v.slice(m,s)};function t(v,m){if(v.filter)return v.filter(m);for(var i=[],s=0;s>>0,i=t>>>0,s=u>>>0;return i-(v>>>0)-((~m&s|~(m^s)&m-s>>>0)>>>31)|0}})},"3Us1":function(x,g,e){var a=e("Mi8B");a("Float32",function(n){return function(t,u,v){return n(this,t,u,v)}})},"3blH":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("hJwl"),u={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},competitions:[],count:""},effects:{getList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=i.call,l=i.put,f=s,c.next=5,d(t.v,s);case 5:return o=c.sent,c.next=8,l({type:"save",payload:Object(a.a)({listParams:f},o)});case 8:return c.abrupt("return",o);case 9:case"end":return c.stop()}},v)}),addApplytojoincourse:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.r,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),competitionTeams:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.s,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStaff:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.A,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getHeader:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.x,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getItem:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.y,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),updateMdContent:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.H,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.E,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.D,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),UpTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.q,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),DeleteTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ExitTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.h,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),AddTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),JoinTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeacher:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.C,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStudents:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.B,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),SubmitTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.o,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Reward:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.n,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ChartRules:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Charts:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.e,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),TabResults:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Results:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.m,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Prize:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Accounts:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getVerification:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.F,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),PhoneBind:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),EmailBind:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Authentication:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Professional:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.l,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setleader:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.G,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getShixun:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.z,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getCourse:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.w,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"3dhw":function(x,g,e){"use strict";var a=e("NMFW"),n=e("f1E4"),r=e("MVys"),t=e("k/J9"),u="toString",v=RegExp.prototype,m=v[u],i=r(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),s=m.name!=u;(i||s)&&a(RegExp.prototype,u,function(){var l=n(this),f=String(l.source),o=l.flags,h=String(o===void 0&&l instanceof RegExp&&!("flags"in v)?t.call(l):o);return"/"+f+"/"+h},{unsafe:!0})},"3tO9":function(x,g,e){var a=e("lSNA");function n(t,u){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);u&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),v.push.apply(v,m)}return v}function r(t){for(var u=1;u1?arguments[1]:void 0)}})},"4IlW":function(x,g,e){"use strict";var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var t=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=a.ZERO&&r<=a.NINE)return!0;if(r>=a.NUM_ZERO&&r<=a.NUM_MULTIPLY)return!0;if(r>=a.A&&r<=a.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};g.a=a},"4MGa":function(x,g,e){},"4Mzw":function(x,g,e){var a=e("ukPv"),n=e("kiNa");n(a.JSON,"JSON",!0)},"4rKd":function(x,g,e){var a=e("lz10"),n=e("aKVN"),r=e("2kyd"),t=r("toPrimitive"),u=Date.prototype;t in u||a(u,t,n)},"58Ye":function(x,g,e){},"5Blz":function(x,g,e){"use strict";var a=e("MMxC"),n=e("9RRT").right,r=e("R8iy"),t=e("kGMc"),u=r("reduceRight"),v=t("reduce",{1:0});a({target:"Array",proto:!0,forced:!u||!v},{reduceRight:function(i){return n(this,i,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"5FVT":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),u={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{forumsDetailData:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),setForumsDetailData:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{forumsDetailData:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"5JgN":function(x,g,e){"use strict";e("FbcW");var a=e("MMxC"),n=e("29mP"),r=e("lgSf"),t=e("NMFW"),u=e("ujhg"),v=e("kiNa"),m=e("uoF6"),i=e("1aI8"),s=e("igoe"),d=e("jtLI"),l=e("7BAe"),f=e("Ei+o"),o=e("f1E4"),h=e("tSXo"),c=e("u+7+"),b=e("HhvW"),E=e("qcmB"),O=e("9SZg"),C=e("2kyd"),M=n("fetch"),w=n("Headers"),A=C("iterator"),L="URLSearchParams",z=L+"Iterator",G=i.set,D=i.getterFor(L),N=i.getterFor(z),Oe=/\+/g,ue=Array(4),re=function(ie){return ue[ie-1]||(ue[ie-1]=RegExp("((?:%[\\da-f]{2}){"+ie+"})","gi"))},ee=function(ie){try{return decodeURIComponent(ie)}catch(W){return ie}},J=function(ie){var W=ie.replace(Oe," "),de=4;try{return decodeURIComponent(W)}catch(Ye){for(;de;)W=W.replace(re(de--),ee);return W}},F=/[!'()~]|%20/g,Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},q=function(ie){return Q[ie]},He=function(ie){return encodeURIComponent(ie).replace(F,q)},Ze=function(ie,W){if(W)for(var de=W.split("&"),Ye=0,fe,rt;Ye0?arguments[0]:void 0,de=this,Ye=[],fe,rt,Te,Ve,tt,ht,ge,ye,je;if(G(de,{type:L,entries:Ye,updateURL:function(){},updateSearchParams:ft}),W!==void 0)if(h(W))if(fe=O(W),typeof fe=="function")for(rt=fe.call(W),Te=rt.next;!(Ve=Te.call(rt)).done;){if(tt=E(o(Ve.value)),ht=tt.next,(ge=ht.call(tt)).done||(ye=ht.call(tt)).done||!ht.call(tt).done)throw TypeError("Expected sequence with length 2");Ye.push({key:ge.value+"",value:ye.value+""})}else for(je in W)d(W,je)&&Ye.push({key:je,value:W[je]+""});else Ze(Ye,typeof W=="string"?W.charAt(0)==="?"?W.slice(1):W:W+"")},me=X.prototype;u(me,{append:function(W,de){$e(arguments.length,2);var Ye=D(this);Ye.entries.push({key:W+"",value:de+""}),Ye.updateURL()},delete:function(ie){$e(arguments.length,1);for(var W=D(this),de=W.entries,Ye=ie+"",fe=0;fefe.key){de.splice(rt,0,fe);break}rt===Te&&de.push(fe)}W.updateURL()},forEach:function(W){for(var de=D(this).entries,Ye=l(W,arguments.length>1?arguments[1]:void 0,3),fe=0,rt;fe1&&(Ye=arguments[1],h(Ye)&&(fe=Ye.body,f(fe)===L&&(rt=Ye.headers?new w(Ye.headers):new w,rt.has("content-type")||rt.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ye=c(Ye,{body:b(0,String(fe)),headers:b(0,rt)}))),de.push(Ye)),M.apply(this,de)}}),x.exports={URLSearchParams:X,getState:D}},"5QGz":function(x,g,e){var a=e("MMxC"),n=Math.atanh,r=Math.log;a({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(u){return(u=+u)==0?u:r((1+u)/(1-u))/2}})},"5WQS":function(x,g,e){"use strict";e.d(g,"e",function(){return v}),e.d(g,"h",function(){return i}),e.d(g,"c",function(){return d}),e.d(g,"g",function(){return f}),e.d(g,"d",function(){return h}),e.d(g,"f",function(){return b}),e.d(g,"b",function(){return O}),e.d(g,"a",function(){return M});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(A){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/tidings.json",{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),m.apply(this,arguments)}function i(A){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/unread_message_info.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),s.apply(this,arguments)}function d(A){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),l.apply(this,arguments)}function f(A){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages.json"),{method:"post",body:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),o.apply(this,arguments)}function h(A){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.id,"/recent_contacts.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),c.apply(this,arguments)}function b(A){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users_for_private_messages.json",{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),E.apply(this,arguments)}function O(A){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_message_details.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),C.apply(this,arguments)}function M(A){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages/").concat(L.id,".json"),{method:"delete"}));case 1:case"end":return G.stop()}},A)})),w.apply(this,arguments)}},"5mCs":function(x,g,e){"use strict";var a=e("oBTY"),n=e("k1fw"),r=e("WmNS"),t=e.n(r),u=e("oUNq"),v={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1},effects:{getClassroom:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=s.call,f=s.put,o=d,b.next=5,l(u.R,d);case 5:return h=b.sent,b.next=8,f({type:"save",payload:Object(n.a)({listParams:o},h)});case 8:return b.abrupt("return",h);case 9:case"end":return b.stop()}},m)}),getClassroomTopBanner:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.V,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailTopBanner:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomLeftMenus:t.a.mark(function m(i,s){var d,l,f,o,h,c;return t.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(u.Q,d);case 4:return o=E.sent,h=[].concat(Object(a.a)((o==null?void 0:o.course_modules)||[]),Object(a.a)((o==null?void 0:o.hidden_modules)||[])),c={},h==null||h.forEach(function(O){c[O.type]=O.name}),E.next=10,f({type:"save",payload:{detailLeftMenus:Object(n.a)({},o),detailLeftMenusNames:c}});case 10:return E.abrupt("return",o);case 11:case"end":return E.stop()}},m)}),getClassroomShixunsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.T,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomTeacherShixunsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.U,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getClassroomCommonList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.T,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomTeacherCommonList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.U,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getClassroomGraduationTopicsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.P,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailGraduationTopicsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomGraduationTaskList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.O,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailGraduationTaskList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomExercisesList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.N,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailExerciseList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomPollsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.S,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailPollsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getCourseGroups:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.Z,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{courseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAllCourseGroup:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.D,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{allCourseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomCommonHomeworksList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.M,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomAttendancesList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.K,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomAttendancesStatistic:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.L,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesStatistic:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAttendanceDetail:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.H,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesDetail:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getAnnouncementList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.F,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAnnouncementList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAttachmentList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.G,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttachmentList:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},m)}),getCourseware:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.hb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCourseware:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},m)}),getVideoList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.rb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getLiveVideoList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.jb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailLiveVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getCoursesMine:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.gb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{courseMine:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getBoardList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.J,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailBoardList:Object(n.a)({},h.data)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getCourseGroupsList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.ab,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseGroupsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseStudentsList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.db,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCoursStudentsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getCourseStatistics:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.cb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseStatisticsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseActscore:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.W,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseActscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseWorkscore:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.eb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseWorkscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getShixunLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.qb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getExperimentLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.ib,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getShixunAiRecommendLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.pb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunAiRecommendLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCoursesLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.fb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{coursesLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),createCoursesHomework:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.g,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),createShixunHomework:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.j,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),createExperiment:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.h,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),getSchoolList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.nb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{schoolList:Object(n.a)({},h.school_names)}});case 7:return b.abrupt("return",h.school_names);case 8:case"end":return b.stop()}},m)}),searchSchoolTeacherList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.Ab,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{searchMemberList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getAllTaskList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.E,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{taskList:Object(a.a)(h.tasks)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),updateTaskPosition:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.Lb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{actionTabs:{key:""}}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),setActionTabs:t.a.mark(function m(i,s){var d,l,f;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(n.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(n.a)(Object(n.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},"5wUe":function(x,g,e){var a=e("Q9SF"),n=e("MIOZ"),r=e("mGKP"),t=e("h0XC");function u(v,m){return a(v)||n(v,m)||r(v,m)||t()}x.exports=u},"5yw/":function(x,g){x.exports={}},"66pj":function(x,g,e){var a=e("MMxC"),n=e("u93E"),r=Math.abs,t=Math.pow;a({target:"Math",stat:!0},{cbrt:function(v){return n(v=+v)*t(r(v),1/3)}})},"6CvP":function(x,g,e){"use strict";e.d(g,"a",function(){return u}),e.d(g,"c",function(){return m}),e.d(g,"e",function(){return s}),e.d(g,"d",function(){return l}),e.d(g,"b",function(){return o});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function c(){return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",Object(t.a)("/api/home/index.json",{method:"Get"}));case 1:case"end":return E.stop()}},c)})),v.apply(this,arguments)}function m(c){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/courses/apply_to_join_course.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),i.apply(this,arguments)}function s(c){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/project_applies.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),d.apply(this,arguments)}function l(c){return f.apply(this,arguments)}function f(){return f=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return O.stop()}},c)})),f.apply(this,arguments)}function o(c){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/view_notice.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),h.apply(this,arguments)}},"6FCX":function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"WeakMap",stat:!0},{of:n})},"6YAi":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("yMj0"),u={namespace:"announcement",state:{name:"\u666E\u901A\u8BD5\u5377\uFF0C\u968F\u673A\u8BD5\u5377\u8BE6\u60C5\u9875\u9762",loading:!0,actionTabs:{}},effects:{informDown:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),informUp:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"6cL7":function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("FCfD"),t=e("UPML"),u=e("dagG");a("search",1,function(v,m,i){return[function(d){var l=r(this),f=d==null?void 0:d[v];return f!==void 0?f.call(d,l):new RegExp(d)[v](String(l))},function(s){var d=i(m,s,this);if(d.done)return d.value;var l=n(s),f=String(this),o=l.lastIndex;t(o,0)||(l.lastIndex=0);var h=u(l,f);return t(l.lastIndex,o)||(l.lastIndex=o),h===null?-1:h.index}]})},"6fQ5":function(x,g,e){"use strict";e.d(g,"a",function(){return n}),e.d(g,"b",function(){return t});var a=e("k1fw"),n=function(v){return v==null?void 0:v.map(function(m){var i=(m.sub_disciplines||[]).map(function(s){return{value:s.id,label:s.name}});return{value:m.id,label:m.name,children:i}})},r={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},t=function(v){if(!v)return;var m=v||{},i=m.all_questions_count,s=m.all_score,d=m.single_questions,l=m.multiple_questions,f=m.judgement_questions,o=m.program_questions,h=m.completion_questions,c=m.subjective_questions,b=m.practical_questions,E=m.combination_questions,O=[Object(a.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},d),Object(a.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},l),Object(a.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},h),Object(a.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},f),Object(a.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),Object(a.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},o),Object(a.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},b),Object(a.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},E)],C=O.filter(function(M){return M.questions_count>0}).map(function(M,w){return Object(a.a)(Object(a.a)({},M),{number:r[w+1]})});return{all_questions_count:i,all_score:s,questionList:C}}},"6ixQ":function(x,g){x.exports={}},"6koa":function(x,g,e){"use strict";function a(n,r){if(n===r)return!0;if(!n||!r)return!1;var t=Object.keys(n),u=Object.keys(r),v=t.length;if(u.length!==v)return!1;for(var m=0;m0?L[0]||A.data[0].ec_major_school_id:void 0}});case 14:case"end":return G.stop()}},o)}),getYearList:m.a.mark(function o(h,c){var b,E,O,C,M,w,A,L;return m.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return b=h.payload,E=c.call,O=c.put,C=c.select,G.next=4,E(i.k,b.id);case 4:return M=G.sent,G.next=7,C(function(D){return D.user});case 7:if(w=G.sent,A=w.userInfo,!(M&&M.data)){G.next=13;break}return L=s.a.getItem(A==null?void 0:A.login),G.next=13,O({type:"setMajorOrYearDataSource",payload:{key:l[1],value:M.data.map(function(D){return{label:D.year,value:D.ec_year_id}}),active:M.data.length>0?b.firstEnter?L[1]:M.data[0].ec_year_id:void 0}});case 13:case"end":return G.stop()}},o)}),getCourseResults:m.a.mark(function o(h,c){var b,E,O,C,M,w,A,L,z,G,D,N,Oe,ue,re,ee,J;return m.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return b=h.payload,E=b===void 0?{}:b,O=c.call,C=c.put,M=c.select,w=E.calc,A=E.page,L=E.per_page,Q.next=5,M(function(q){return q.engineeringEvaluteList});case 5:return z=Q.sent,G=z.headerData,D=z.tabListData,Q.next=10,M(function(q){return q.user});case 10:if(N=Q.sent,Oe=N.userInfo,ue=G.active[l[1]],!ue){Q.next=26;break}return re={id:ue,page:A||1,per_page:L||D.pageSize},w&&(re=Object(t.a)(Object(t.a)({},re),{},{page:D.pageNo})),Q.next=18,O(i.e,re);case 18:if(ee=Q.sent,J=[G.active[l[0]],G.active[l[1]]],s.a.setItem(Oe==null?void 0:Oe.login,J),!(ee&&ee.ec_courses)){Q.next=24;break}return Q.next=24,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:re.page,total:ee.count,pageSize:re.per_page||D.pageSize,dataSource:ee.ec_courses.map(function(q,He){return Object(t.a)(Object(t.a)({},q),{},{key:re.page>1?(re.page-1)*re.per_page+He+1:He+1})})})});case 24:Q.next=28;break;case 26:return Q.next=28,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:1,total:0,dataSource:[]})});case 28:case"end":return Q.stop()}},o)}),exportCourse:m.a.mark(function o(h,c){var b,E,O,C,M;return m.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return b=h.payload,E=c.call,O=c.select,A.next=4,O(function(L){return L.engineeringEvaluteList});case 4:if(C=A.sent,M=C.headerData,!M.active[l[1]]){A.next=9;break}return A.next=9,E(i.a,M.active[l[1]]);case 9:case"end":return A.stop()}},o)}),compute:m.a.mark(function o(h,c){var b,E,O,C,M,w;return m.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return b=h.payload,E=c.call,O=c.put,C=b.all,M=Object(r.a)(b,["all"]),L.next=5,E(C?i.m:i.n,M);case 5:if(w=L.sent,!(w&&w.status===0)){L.next=12;break}return n.b.success("\u8BA1\u7B97\u5B8C\u6210"),L.next=10,O({type:"getCourseResults",payload:{calc:!0}});case 10:L.next=13;break;case 12:n.b.error(w.message);case 13:case"end":return L.stop()}},o)})},reducers:{save:function(h,c){return Object(t.a)(Object(t.a)({},h),c.payload)},setMajorOrYearDataSource:function(h,c){var b=c.payload,E=h.headerData.active;return b.active&&(E=Object(t.a)(Object(t.a)({},E),{},Object(u.a)({},b.key,b.active))),Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{dataSource:Object(t.a)(Object(t.a)({},h.headerData.dataSource),{},Object(u.a)({},b.key,Object(t.a)(Object(t.a)({},h.headerData.dataSource[b.key]),{},{dataList:b.value}))),active:E})})},setMajorOrYearActive:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{active:Object(t.a)(Object(t.a)({},h.headerData.active),{},Object(u.a)({},b.key,b.value))})})},setCourseResults:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{tabListData:Object(t.a)(Object(t.a)({},h.tabListData),b)})}},subscriptions:{setup:function(h){var c=h.dispatch,b=h.history;return b.listen(function(E){var O=E.pathname;O==="/"&&c({type:"query"})})}}};g.a=f},"7VZV":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("SVaM"),u=e("m3rI"),v={namespace:"globalSetting",state:{name:"\u5168\u5C40\u914D\u7F6E",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,showFooter:!0,showHeader:!0,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"default",globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1}},effects:{query:r.a.mark(function i(s,d){var l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=s.payload,o=d.call,h=d.put,E.next=4,o(t.b,f);case 4:return c=E.sent,m(c),u.a.OFFICE_SERVER=c==null||((l=c.setting)===null||l===void 0)?void 0:l.office_server_url,E.next=9,h({type:"save",payload:Object(a.a)({},c)});case 9:case"end":return E.stop()}},i)}),getSystemUpdate:r.a.mark(function i(s,d){var l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(t.c,l);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{updateData:Object(a.a)({},h)}});case 7:case"end":return b.stop()}},i)}),setTheme:r.a.mark(function i(s,d){var l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(t.c,l);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{theme:l||"default"}});case 7:case"end":return b.stop()}},i)}),setGlobalLoading:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{globalLoading:Object(a.a)({},l)}});case 4:case"end":return c.stop()}},i)}),headerToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeader:l}});case 4:case"end":return c.stop()}},i)}),footerToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showFooter:l}});case 4:case"end":return c.stop()}},i)}),headerFooterToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeaderFooter:l}});case 4:case"end":return c.stop()}},i)}),headerFixedToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeaderFixed:l}});case 4:case"end":return c.stop()}},i)}),onlyShowBackTopToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{onlyShowBackTop:l}});case 4:case"end":return c.stop()}},i)}),onlyShowBackTopIconToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{onlyShowBackTopIcons:l}});case 4:case"end":return c.stop()}},i)}),setOperateModel:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{operateModel:l}});case 4:case"end":return c.stop()}},i)}),setOperateModelPath:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{operateModelPath:l}});case 4:case"end":return c.stop()}},i)}),setShowQuestionBackTop:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showQuestionBackTop:l}});case 4:case"end":return c.stop()}},i)})},reducers:{save:function(s,d){return Object(a.a)(Object(a.a)({},s),d.payload)}},subscriptions:{setup:function(s){var d=s.dispatch,l=s.history;return l.listen(function(f){var o=f.pathname;o==="/"})}}};g.a=v;var m=function(){var s,d,l,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(s=f.setting)===null||s===void 0||s.tab_logo_url;var o=document.createElement("link"),h=document.getElementById("dynamic-favicon");o.id="dynamic-favicon",o.rel="shortcut icon",o.href=(d=f.setting)!==null&&d!==void 0&&d.tab_logo_url?"".concat(u.a.IMG_SERVER,"/").concat((l=f.setting)===null||l===void 0?void 0:l.tab_logo_url):"".concat(u.a.IMG_SERVER,"/react/build/./favicon.ico"),h&&document.head.removeChild(h),document.head.appendChild(o);try{var c;if(!((c=f.setting)!==null&&c!==void 0&&c.main_site)){var b;document.querySelector('meta[name="keywords"]').content=(b=f.setting)===null||b===void 0?void 0:b.name,document.querySelector('meta[name="description"]').remove()}}catch(E){}}},"7W2i":function(x,g,e){var a=e("SksO");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},"7bO/":function(x,g,e){"use strict";e.d(g,"b",function(){return a});var a={};e.r(a),e.d(a,"take",function(){return qt}),e.d(a,"takem",function(){return gn}),e.d(a,"put",function(){return an}),e.d(a,"all",function(){return Tn}),e.d(a,"race",function(){return on}),e.d(a,"call",function(){return yn}),e.d(a,"apply",function(){return vn}),e.d(a,"cps",function(){return Rn}),e.d(a,"fork",function(){return Pn}),e.d(a,"spawn",function(){return St}),e.d(a,"join",function(){return bt}),e.d(a,"cancel",function(){return Pt}),e.d(a,"select",function(){return Ft}),e.d(a,"actionChannel",function(){return De}),e.d(a,"cancelled",function(){return Ct}),e.d(a,"flush",function(){return be}),e.d(a,"getContext",function(){return Ne}),e.d(a,"setContext",function(){return Fe}),e.d(a,"takeEvery",function(){return Hr}),e.d(a,"takeLatest",function(){return _n}),e.d(a,"throttle",function(){return Fr});var n=Object.assign||function(ne){for(var te=1;te=0&&ne.splice(Ie,1)}var A={from:function(te){var Ie=Array(te.length);for(var ze in te)O(te,ze)&&(Ie[ze]=te[ze]);return Ie}};function L(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=n({},ne),Ie=new Promise(function(ze,mt){te.resolve=ze,te.reject=mt});return te.promise=Ie,te}function z(ne){for(var te=[],Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:!0,Ie=void 0,ze=new Promise(function(mt){Ie=setTimeout(function(){return mt(te)},ne)});return ze[i]=function(){return clearTimeout(Ie)},ze}function D(){var ne,te=!0,Ie=void 0,ze=void 0;return ne={},ne[u]=!0,ne.isRunning=function(){return te},ne.result=function(){return Ie},ne.error=function(){return ze},ne.setRunning=function(Ot){return te=Ot},ne.setResult=function(Ot){return Ie=Ot},ne.setError=function(Ot){return ze=Ot},ne}function N(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(){return++ne}}var Oe=N(),ue=function(te){throw te},re=function(te){return{value:te,done:!0}};function ee(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",ze=arguments[3],mt={name:Ie,next:ne,throw:te,return:re};return ze&&(mt[v]=!0),typeof Symbol!="undefined"&&(mt[Symbol.iterator]=function(){return mt}),mt}function J(ne,te){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";typeof window=="undefined"?console.log("redux-saga "+ne+": "+te+` +`),P}return Object(v.a)(function(){S.current=je,k.current=oe,ae.current=le,Ae.current=void 0}),Object(v.a)(function(){function P(){try{var T=ce.getState();if(T===k.current)return;var $=S.current(T);if(we($,ae.current))return;ae.current=$,k.current=T}catch(se){Ae.current=se}U()}return B.onStateChange=P,B.trySubscribe(),P(),function(){return B.tryUnsubscribe()}},[ce,B]),le}function tt(je){je===void 0&&(je=t.a);var we=je===t.a?W:function(){return Object(a.useContext)(je)};return function(Y,V){V===void 0&&(V=Te);var U=we(),B=U.store,Ae=U.subscription,S=Ve(Y,V,B,Ae);return Object(a.useDebugValue)(S),S}}var ht=tt(),ge=e("i8i4"),ye=e("TfIc");Object(ye.b)(ge.unstable_batchedUpdates)},"/R3g":function(x,g,e){var a=e("MMxC"),n=e("zTPR"),r=e("ls1J"),t=e("f1E4"),u=e("Acmb"),v=e("IuhT"),m=r.keys,i=r.toKey,s=function(l){var f=[];return v(l,f.push,f),f},d=function(l,f){var o=m(l,f),h=u(l);if(h===null)return o;var c=d(h,f);return c.length?o.length?s(new n(o.concat(c))):c:o};a({target:"Reflect",stat:!0},{getMetadataKeys:function(f){var o=arguments.length<2?void 0:i(arguments[1]);return d(t(f),o)}})},"/dTS":function(x,g,e){var a=e("f1E4"),n=e("cT1L"),r=e("2kyd"),t=r("species");x.exports=function(u,v){var m=a(u).constructor,i;return m===void 0||(i=a(m)[t])==null?v:n(i)}},"/gva":function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("kkxG"),t=e("NMFW"),u=e("a5mf"),v=e("IuhT"),m=e("igoe"),i=e("tSXo"),s=e("MVys"),d=e("GPrf"),l=e("kiNa"),f=e("+vfm");x.exports=function(o,h,c){var b=o.indexOf("Map")!==-1,E=o.indexOf("Weak")!==-1,O=b?"set":"add",C=n[o],M=C&&C.prototype,w=C,A={},L=function(ue){var re=M[ue];t(M,ue,ue=="add"?function(J){return re.call(this,J===0?0:J),this}:ue=="delete"?function(ee){return E&&!i(ee)?!1:re.call(this,ee===0?0:ee)}:ue=="get"?function(J){return E&&!i(J)?void 0:re.call(this,J===0?0:J)}:ue=="has"?function(J){return E&&!i(J)?!1:re.call(this,J===0?0:J)}:function(J,F){return re.call(this,J===0?0:J,F),this})};if(r(o,typeof C!="function"||!(E||M.forEach&&!s(function(){new C().entries().next()}))))w=c.getConstructor(h,o,b,O),u.REQUIRED=!0;else if(r(o,!0)){var z=new w,G=z[O](E?{}:-0,1)!=z,D=s(function(){z.has(1)}),N=d(function(ue){new C(ue)}),Oe=!E&&s(function(){for(var ue=new C,re=5;re--;)ue[O](re,re);return!ue.has(-0)});N||(w=h(function(ue,re){m(ue,w,o);var ee=f(new C,ue,w);return re!=null&&v(re,ee[O],ee,b),ee}),w.prototype=M,M.constructor=w),(D||Oe)&&(L("delete"),L("has"),b&&L("get")),(Oe||G)&&L(O),E&&M.clear&&delete M.clear}return A[o]=w,a({global:!0,forced:w!=C},A),l(w,o),E||c.setStrong(w,o,b),w}},"/mKc":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("7BAe"),m=e("/dTS"),i=e("jbR1"),s=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{filter:function(l){var f=t(this),o=i(f),h=v(l,arguments.length>1?arguments[1]:void 0,3),c=new(m(f,r("Set"))),b=u(c.add);return s(o,function(E){h(E,E,f)&&b.call(c,E)},void 0,!1,!0),c}})},"/vMi":function(x,g,e){"use strict";var a=e("/gva"),n=e("uz3g");a("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"/yC2":function(x,g,e){var a=e("tny8"),n=e("MVys"),r=e("8w+9");x.exports=!a&&!n(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},0:function(x,g,e){x.exports=e("tB8F")},"02UQ":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("B3m4"),u={namespace:"graduation",state:{name:"\u6BD5\u4E1A\u8BBE\u8BA1",loading:!0,actionTabs:{},detailList:{},detailTaskList:{},replyList:{},detail:{},addTopicData:{},editTopicData:{},editTasksData:{}},effects:{getTopisDetailList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.o,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksListDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.m,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailTaskList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTopisDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.n,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getTasksDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.l,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{tasksDetail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),refuseTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),agreeTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getReplyList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{replyList:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),createReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.e,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.q,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyUnLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.r,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),deleteReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.f,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),addTopicDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{addTopicData:Object(a.a)({},o)}});case 7:case"end":return c.stop()}},v)}),editTopicDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editTopicData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),editTasksDefaultData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.h,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editTasksData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),addTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTopic:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),addTasks:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),editTasks:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"0BeC":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Xq8v"),u={namespace:"attachment",state:{name:"\u8D44\u6E90",loading:!0,detail:{},actionTabs:{}},effects:{allAttachment:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{allList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),mineAttachment:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{mineList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),fileImport:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detail:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),updateVisits:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"0O5u":function(x,g,e){"use strict";var a=e("MMxC"),n=e("MVys"),r=e("Un+d"),t=e("tSXo"),u=e("cTDu"),v=e("oa35"),m=e("arQb"),i=e("nMuc"),s=e("jMDO"),d=e("2kyd"),l=e("hRxt"),f=d("isConcatSpreadable"),o=9007199254740991,h="Maximum allowed index exceeded",c=l>=51||!n(function(){var C=[];return C[f]=!1,C.concat()[0]!==C}),b=s("concat"),E=function(C){if(!t(C))return!1;var M=C[f];return M!==void 0?!!M:r(C)},O=!c||!b;a({target:"Array",proto:!0,forced:O},{concat:function(M){var w=u(this),A=i(w,0),L=0,z,G,D,N,Oe;for(z=-1,D=arguments.length;zo)throw TypeError(h);for(G=0;G=o)throw TypeError(h);m(A,L++,Oe)}return A.length=L,A}})},"0Owb":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return a=Object.assign||function(n){for(var r=1;r1;){var O=E.pop(),C=O.obj[O.prop];if(r(C)){for(var M=[],w=0;w=48&&G<=57||G>=65&&G<=90||G>=97&&G<=122||w===a.RFC1738&&(G===40||G===41)){L+=A.charAt(z);continue}if(G<128){L=L+t[G];continue}if(G<2048){L=L+(t[192|G>>6]+t[128|G&63]);continue}if(G<55296||G>=57344){L=L+(t[224|G>>12]+t[128|G>>6&63]+t[128|G&63]);continue}z+=1,G=65536+((G&1023)<<10|A.charCodeAt(z)&1023),L+=t[240|G>>18]+t[128|G>>12&63]+t[128|G>>6&63]+t[128|G&63]}return L},l=function(E){for(var O=[{obj:{o:E},prop:"o"}],C=[],M=0;M1?arguments[1]:void 0,h=o!==void 0,c=m(d),b=0,E,O,C,M,w,A;if(h&&(o=a(o,f>2?arguments[2]:void 0,2)),c!=null&&!(l==Array&&t(c)))for(M=c.call(d),w=M.next,O=new l;!(C=w.call(M)).done;b++)A=h?r(M,o,[C.value,b],!0):C.value,v(O,b,A);else for(E=u(d.length),O=new l(E);E>b;b++)A=h?o(d[b],b):d[b],v(O,b,A);return O.length=b,O}},"1OyB":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},"1W/9":function(x,g,e){"use strict";var a=e("1OyB"),n=e("vuIU"),r=e("Ji7U"),t=e("LK+K"),u=e("U8pU"),v=e("q1tI"),m=e("wgJM"),i=e("QC+M"),s=e("MNnm"),d=e("qx4F");function l(re){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!re)return{};var J=ee.element,F=J===void 0?document.body:J,Q={},q=Object.keys(re);return q.forEach(function(He){Q[He]=F.style[He]}),q.forEach(function(He){F.style[He]=re[He]}),Q}var f=l;function o(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h={},c=function(re){if(!o()&&!re)return;var ee="ant-scrolling-effect",J=new RegExp("".concat(ee),"g"),F=document.body.className;if(re){if(!J.test(F))return;f(h),h={},document.body.className=F.replace(J,"").trim();return}var Q=Object(d.a)();if(Q&&(h=f({position:"relative",width:"calc(100% - ".concat(Q,"px)")}),!J.test(F))){var q="".concat(F," ").concat(ee);document.body.className=q.trim()}},b=e("KQm4"),E=[],O="ant-scrolling-effect",C=new RegExp("".concat(O),"g"),M=0,w=new Map,A=function re(ee){var J=this;Object(a.a)(this,re),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var F;return(F=J.options)===null||F===void 0?void 0:F.container},this.reLock=function(F){var Q=E.find(function(q){var He=q.target;return He===J.lockTarget});Q&&J.unLock(),J.options=F,Q&&(Q.options=F,J.lock())},this.lock=function(){var F;if(E.some(function(ft){var $e=ft.target;return $e===J.lockTarget}))return;if(E.some(function(ft){var $e,Ue=ft.options;return(Ue==null?void 0:Ue.container)===(($e=J.options)===null||$e===void 0?void 0:$e.container)})){E=[].concat(Object(b.a)(E),[{target:J.lockTarget,options:J.options}]);return}var Q=0,q=((F=J.options)===null||F===void 0?void 0:F.container)||document.body;(q===document.body&&window.innerWidth-document.documentElement.clientWidth>0||q.scrollHeight>q.clientHeight)&&(Q=Object(d.a)());var He=q.className;if(E.filter(function(ft){var $e,Ue=ft.options;return(Ue==null?void 0:Ue.container)===(($e=J.options)===null||$e===void 0?void 0:$e.container)}).length===0&&w.set(q,f({width:Q!==0?"calc(100% - ".concat(Q,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:q})),!C.test(He)){var Ze="".concat(He," ").concat(O);q.className=Ze.trim()}E=[].concat(Object(b.a)(E),[{target:J.lockTarget,options:J.options}])},this.unLock=function(){var F,Q=E.find(function(Ze){var ft=Ze.target;return ft===J.lockTarget});if(E=E.filter(function(Ze){var ft=Ze.target;return ft!==J.lockTarget}),!Q||E.some(function(Ze){var ft,$e=Ze.options;return($e==null?void 0:$e.container)===((ft=Q.options)===null||ft===void 0?void 0:ft.container)}))return;var q=((F=J.options)===null||F===void 0?void 0:F.container)||document.body,He=q.className;if(!C.test(He))return;f(w.get(q),{element:q}),w.delete(q),q.className=q.className.replace(C,"").trim()},this.lockTarget=M++,this.options=ee},L=0,z=Object(s.a)();function G(){return 0}var D={},N=function(ee){if(!z)return null;if(ee){if(typeof ee=="string")return document.querySelectorAll(ee)[0];if(typeof ee=="function")return ee();if(Object(u.a)(ee)==="object"&&ee instanceof window.HTMLElement)return ee}return document.body},Oe=function(re){Object(r.a)(J,re);var ee=Object(t.a)(J);function J(F){var Q;return Object(a.a)(this,J),Q=ee.call(this,F),Q.container=void 0,Q.componentRef=v.createRef(),Q.rafId=void 0,Q.scrollLocker=void 0,Q.renderComponent=void 0,Q.updateScrollLocker=function(q){var He=q||{},Ze=He.visible,ft=Q.props,$e=ft.getContainer,Ue=ft.visible;Ue&&Ue!==Ze&&z&&N($e)!==Q.scrollLocker.getContainer()&&Q.scrollLocker.reLock({container:N($e)})},Q.updateOpenCount=function(q){var He=q||{},Ze=He.visible,ft=He.getContainer,$e=Q.props,Ue=$e.visible,X=$e.getContainer;Ue!==Ze&&z&&N(X)===document.body&&(Ue&&!Ze?L+=1:q&&(L-=1));var me=typeof X=="function"&&typeof ft=="function";(me?X.toString()!==ft.toString():X!==ft)&&Q.removeCurrentContainer()},Q.attachToParent=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(q||Q.container&&!Q.container.parentNode){var He=N(Q.props.getContainer);return He?(He.appendChild(Q.container),!0):!1}return!0},Q.getContainer=function(){return z?(Q.container||(Q.container=document.createElement("div"),Q.attachToParent(!0)),Q.setWrapperClassName(),Q.container):null},Q.setWrapperClassName=function(){var q=Q.props.wrapperClassName;Q.container&&q&&q!==Q.container.className&&(Q.container.className=q)},Q.removeCurrentContainer=function(){var q,He;(q=Q.container)===null||q===void 0||((He=q.parentNode)===null||He===void 0)||He.removeChild(Q.container)},Q.switchScrollingEffect=function(){L===1&&!Object.keys(D).length?(c(),D=f({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):L||(f(D),D={},c(!0))},Q.scrollLocker=new A({container:N(F.getContainer)}),Q}return Object(n.a)(J,[{key:"componentDidMount",value:function(){var Q=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=Object(m.a)(function(){Q.forceUpdate()}))}},{key:"componentDidUpdate",value:function(Q){this.updateOpenCount(Q),this.updateScrollLocker(Q),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var Q=this.props,q=Q.visible,He=Q.getContainer;z&&N(He)===document.body&&(L=q&&L?L-1:L),this.removeCurrentContainer(),m.a.cancel(this.rafId)}},{key:"render",value:function(){var Q=this.props,q=Q.children,He=Q.forceRender,Ze=Q.visible,ft=null,$e={getOpenCount:function(){return L},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(He||Ze||this.componentRef.current)&&(ft=v.createElement(i.a,{getContainer:this.getContainer,ref:this.componentRef},q($e))),ft}}]),J}(v.Component),ue=g.a=Oe},"1WJl":function(x,g,e){"use strict";x.exports=function a(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var t,u,v;if(Array.isArray(n)){if(t=n.length,t!=r.length)return!1;for(u=t;u--!==0;)if(!a(n[u],r[u]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(v=Object.keys(n),t=v.length,t!==Object.keys(r).length)return!1;for(u=t;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,v[u]))return!1;for(u=t;u--!==0;){var m=v[u];if(!a(n[m],r[m]))return!1}return!0}return n!==n&&r!==r}},"1aI8":function(x,g,e){var a=e("ZkJ9"),n=e("ukPv"),r=e("tSXo"),t=e("lz10"),u=e("jtLI"),v=e("CjUg"),m=e("6ixQ"),i=n.WeakMap,s,d,l,f=function(C){return l(C)?d(C):s(C,{})},o=function(C){return function(M){var w;if(!r(M)||(w=d(M)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return w}};if(a){var h=new i,c=h.get,b=h.has,E=h.set;s=function(C,M){return E.call(h,C,M),M},d=function(C){return c.call(h,C)||{}},l=function(C){return b.call(h,C)}}else{var O=v("state");m[O]=!0,s=function(C,M){return t(C,O,M),M},d=function(C){return u(C,O)?C[O]:{}},l=function(C){return u(C,O)}}x.exports={set:s,get:d,has:l,enforce:f,getterFor:o}},"1cmj":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("9og8"),u=e("ErOA");function v(f){return m.apply(this,arguments)}function m(){return m=Object(t.a)(r.a.mark(function f(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(u.a)("/api/shixuns/new.json",{method:"Get",params:o}));case 1:case"end":return c.stop()}},f)})),m.apply(this,arguments)}function i(f){return s.apply(this,arguments)}function s(){return s=Object(t.a)(r.a.mark(function f(o){return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Object(u.a)("/api/shixuns/".concat(o.id,"/required_status.json"),{method:"Get",params:{}}));case 1:case"end":return c.stop()}},f)})),s.apply(this,arguments)}var d={namespace:"practiceSetting",state:{data:{},is_published:!0,updateIndex:1,id:"",questionName:"",base_info_warning:!1,challenges_warning:!1,repository_warning:!1,mirror_warning:!1,service_warning:!1,selectQuestionParams:{},newQuestion:null,user_name:"",user_image_url:"",title:"",windows_vnc:!0,isExistComplete:!1,sideBar:{tabsActive:"",selectPath:"",confirmLeave:!1}},effects:{setParams:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"save",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},f)}),getTestData:r.a.mark(function f(o,h){var c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return c=o.payload,b=h.call,E=h.put,M.next=4,b(v,c);case 4:return O=M.sent,M.next=7,E({type:"save",payload:{data:O}});case 7:case"end":return M.stop()}},f)}),setUpdateIndex:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"save",payload:{updateIndex:Math.random()}});case 4:case"end":return C.stop()}},f)}),getCommonData:r.a.mark(function f(o,h){var c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return c=o.payload,b=h.call,E=h.put,M.next=4,b(i,c);case 4:return O=M.sent,M.next=7,E({type:"save",payload:Object(a.a)({},O.data)});case 7:case"end":return M.stop()}},f)}),setSideBarTabs:r.a.mark(function f(o,h){var c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return c=o.payload,b=h.call,E=h.put,C.next=4,E({type:"sideBar",payload:Object(a.a)({},c)});case 4:case"end":return C.stop()}},f)})},reducers:{save:function(o,h){return Object(a.a)(Object(a.a)({},o),h.payload)},sideBar:function(o,h){return Object(a.a)(Object(a.a)({},o),{},{sideBar:Object(a.a)(Object(a.a)({},o.sideBar),h.payload)})}},subscriptions:{setup:function(o){var h=o.dispatch,c=o.history}}},l=g.a=d},"1jPx":function(x,g,e){"use strict";var a=e("8OQV"),n=e("FVwB").exportTypedArrayStaticMethod,r=e("Sn4z");n("from",r,a)},"1nhP":function(x,g,e){var a=e("m0kY");x.exports=function(n){var r=a(n);if(r<0)throw RangeError("The argument can't be less than 0");return r}},"1qEB":function(x,g,e){"use strict";var a=e("k1fw"),n={namespace:"innovation",state:{visibleModalName:"",hideRemindModal:!0,openForkModalPosition:"forkButton",simpleModalProps:{visible:!1}},reducers:{save:function(t,u){return Object(a.a)(Object(a.a)({},t),u.payload)},openModal:function(t,u){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:u.payload})},closeModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{visibleModalName:""})},openSimpleModal:function(t,u){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:Object(a.a)({visible:!0},u.payload)})},closeSimpleModal:function(t){return Object(a.a)(Object(a.a)({},t),{},{simpleModalProps:{visible:!1}})}}};g.a=n},"1vsH":function(x,g,e){"use strict";e.d(g,"o",function(){return Oe}),e.d(g,"j",function(){return ue}),e.d(g,"l",function(){return re}),e.d(g,"B",function(){return J}),e.d(g,"f",function(){return F}),e.d(g,"h",function(){return Q}),e.d(g,"e",function(){return q}),e.d(g,"g",function(){return He}),e.d(g,"n",function(){return Ze}),e.d(g,"c",function(){return ft}),e.d(g,"k",function(){return $e}),e.d(g,"m",function(){return Ue}),e.d(g,"A",function(){return X}),e.d(g,"a",function(){return ie}),e.d(g,"bb",function(){return Ye}),e.d(g,"db",function(){return fe}),e.d(g,"K",function(){return Te}),e.d(g,"H",function(){return Ve}),e.d(g,"D",function(){return tt}),e.d(g,"G",function(){return ht}),e.d(g,"Z",function(){return ge}),e.d(g,"F",function(){return ye}),e.d(g,"W",function(){return je}),e.d(g,"x",function(){return ce}),e.d(g,"y",function(){return U}),e.d(g,"w",function(){return B}),e.d(g,"v",function(){return Ae}),e.d(g,"Y",function(){return S}),e.d(g,"O",function(){return k}),e.d(g,"L",function(){return ae}),e.d(g,"S",function(){return K}),e.d(g,"d",function(){return $}),e.d(g,"b",function(){return se}),e.d(g,"V",function(){return it}),e.d(g,"C",function(){return Et}),e.d(g,"P",function(){return Tt}),e.d(g,"J",function(){return It}),e.d(g,"s",function(){return tn}),e.d(g,"M",function(){return gn}),e.d(g,"ab",function(){return an}),e.d(g,"T",function(){return on}),e.d(g,"z",function(){return vn}),e.d(g,"cb",function(){return Rn}),e.d(g,"R",function(){return St}),e.d(g,"E",function(){return bt}),e.d(g,"q",function(){return Pt}),e.d(g,"u",function(){return Ft}),e.d(g,"I",function(){return De}),e.d(g,"p",function(){return Ct}),e.d(g,"X",function(){return be}),e.d(g,"r",function(){return Fe}),e.d(g,"Q",function(){return Ne}),e.d(g,"i",function(){return dt}),e.d(g,"t",function(){return Pe}),e.d(g,"N",function(){return ct}),e.d(g,"U",function(){return qe});var a=e("oBTY"),n=e("sRBo"),r=e("kaz8"),t=e("14J3"),u=e("BMrR"),v=e("jCWc"),m=e("kPKH"),i=e("2qtc"),s=e("kLXV"),d=e("9og8"),l=e("miYZ"),f=e("tsqr"),o=e("k1fw"),h=e("jrin"),c=e("WmNS"),b=e.n(c),E=e("q1tI"),O=e.n(E),C=e("xKgJ"),M=e("s8TD"),w=e("V0Rq"),A=e("bntm"),L={load:"text/html","123":"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp","602":"application/x-t602","669":"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"},z=e("aCH8"),G=e.n(z),D=e("m3rI"),N=e("dhSg"),Oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ue=["\u6B63\u786E","\u9519\u8BEF"],re=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],ee=function(Z){var Xe={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return Z.data&&Z.data.map(function(gt,Mt){return O.a.createElement("span",{key:Mt,className:Xe[gt]&&Xe[gt].class},gt)})},J=function(Z){var Xe,gt=(Xe={},Object(h.a)(Xe,-1,"\u91CD\u505A\u4E2D"),Object(h.a)(Xe,0,"\u672A\u5F00\u542F"),Object(h.a)(Xe,1,"\u672A\u901A\u5173"),Object(h.a)(Xe,2,"\u6309\u65F6\u901A\u5173"),Xe);return gt[Z]||"\u8FDF\u4EA4\u901A\u5173"},F=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u901A\u5173",class:"c-red"}),Xe);return O.a.createElement("span",{className:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.class},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},Q=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red"}),Xe);return O.a.createElement("span",{className:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.class},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},q=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u901A\u5173",class:"c-red",color:"#d4443d"}),Xe);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.color,borderRadius:"20px",width:"65px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},He=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange",color:"#999999"}),Object(h.a)(Xe,0,{name:"\u672A\u5F00\u542F",class:"c-black",color:"#999999"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red",color:"#d4443d"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green",color:"#57be40"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange",color:"#f09143"}),Object(h.a)(Xe,4,{name:"\u622A\u6B62\u540E\u901A\u5173",class:"c-red",color:"#d4443d"}),Xe);return O.a.createElement("span",{style:{marginLeft:"10px",color:"#fff",background:xt==null||((gt=xt[Z.status])===null||gt===void 0)?void 0:gt.color,borderRadius:"20px",padding:"0 8px",height:"18px",justifyContent:"center",display:"inline-flex",lineHeight:"18px"}},xt==null||((Mt=xt[Z.status])===null||Mt===void 0)?void 0:Mt.name)},Ze=function(Z){var Xe=Z.status,gt={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return O.a.createElement("span",{className:gt[Xe].class},gt[Xe].name)}catch(Mt){console.log("utils.StatusGraduationProjectTags",Z.status)}},ft={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F",99:"\u6A21\u62DF\u8003\u8BD5\u4E2D"},$e={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},Ue=function(Z){var Xe={\u6A21\u62DF\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-pink ml10"},\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10soft"},\u672A\u53D1\u5E03:{class:"tag-style bgB8B8B8 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-c5d6ff ml10soft"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-blue ml10soft"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10soft"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10soft"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},gt={\u672A\u53D1\u5E03:{class:"tag-style bg-C6CED6 ml10soft"},\u672A\u5F00\u59CB:{class:"tag-style bg-C1E2FF ml10soft"},\u8FDB\u884C\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u5DF2\u622A\u6B62:{class:"tag-style bg-E53333 ml10soft"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-0152d9 ml10soft"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-44D7B6 ml10soft"}};Z.temporary&&(Xe=Object(o.a)(Object(o.a)({},Xe),gt));var Mt=[];Z.is_random&&Mt.push(O.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{Z.status&&Z.status.map(function(xt,Gt){Mt.push(O.a.createElement("span",{style:(Z==null?void 0:Z.style)||[],key:Gt,className:Xe[xt]&&Xe[xt].class},xt))})}catch(xt){console.log("utils.status.tag:",xt,Z.status)}return Mt},X=function(Z){if(Z===1)return O.a.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style ml5"},"\u672A\u5F00\u59CB");if(Z===2)return O.a.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style ml5"},"\u8003\u8BD5\u4E2D");if(Z===3)return O.a.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style ml5"},"\u5DF2\u7ED3\u675F")},me=function(Z){var Xe,gt,Mt,xt=(Xe={},Object(h.a)(Xe,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(h.a)(Xe,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(h.a)(Xe,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(h.a)(Xe,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(h.a)(Xe,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Xe);return O.a.createElement("span",{className:(gt=xt[Z.status])===null||gt===void 0?void 0:gt.class},(Mt=xt[Z.status])===null||Mt===void 0?void 0:Mt.name)},ie=function(Z){var Xe,gt,Mt={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return O.a.createElement("span",{className:(Xe=Mt[Z.status])===null||Xe===void 0?void 0:Xe.class},(gt=Mt[Z.status])===null||gt===void 0?void 0:gt.name)},W=function(Z){Z=new Date(Z).getTime();var Xe=1e3*60,gt=Xe*60,Mt=gt*24,xt="",Gt=new Date().getTime(),ln=Gt-Z;if(ln<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),xt="\u521A\u521A";var nn=parseInt(ln/Mt,10),Ln=parseInt(ln/gt,10),bn=parseInt(ln/Xe,10);return nn>30?xt=""+de(Z,"yyyy-MM-dd"):nn>1?xt=""+nn+"\u5929\u524D":nn==1?xt="\u6628\u5929":Ln>=1?xt=""+Ln+"\u5C0F\u65F6\u524D":bn>=5?xt=""+bn+"\u5206\u949F\u524D":xt="\u521A\u521A",xt},de=function(Z,Xe){typeof Z=="string"&&(Z.indexOf("T")>=0&&(Z=Z.replace("T"," ")),Z=new Date(Date.parse(Z.replace(/-/g,"/")))),Z=new Date(Z);var gt={"M+":Z.getMonth()+1,"d+":Z.getDate(),"h+":Z.getHours(),"m+":Z.getMinutes(),"s+":Z.getSeconds(),"q+":Math.floor((Z.getMonth()+3)/3),S:Z.getMilliseconds()},Mt=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(Xe)&&(Xe=Xe.replace(RegExp.$1,(Z.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(Xe)&&(Xe=Xe.replace(RegExp.$1,Mt[RegExp.$1.length-1][Z.getDay()]));for(var xt in gt)new RegExp("("+xt+")").test(Xe)&&(Xe=Xe.replace(RegExp.$1,RegExp.$1.length==1?gt[xt]:("00"+gt[xt]).substr((""+gt[xt]).length)));return Xe},Ye=function(Z){if(!Z||Z<0)return"0\u79D2";console.log("time:",Z);var Xe=60,gt=Xe*60,Mt=gt*24,xt=Z/Mt,Gt=Z/gt,ln=Z/Xe,nn=Z%60;return xt>=1?parseInt(xt.toString())+"\u5929"+Math.floor(Gt%24)+"\u65F6"+Math.floor(ln%60)+"\u5206"+Math.floor(Z%60)+"\u79D2":Gt>1?parseInt(Gt.toString())+"\u65F6"+Math.floor(ln%60)+"\u5206"+Math.floor(Z%60)+"\u79D2":ln>=1?parseInt(ln.toString())+"\u5206"+Math.floor(Z%60)+"\u79D2":Math.ceil(Z)+"\u79D2"},fe=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,gt=0;if(Z){gt=Z.length;for(var Mt=0;Mt=55296&&xt<=56319&&(gt--,Mt++)}}return gt<=Xe},rt=function(Z,Xe,gt){if(Xe){var Mt=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,xt=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,Gt=xt.test(Xe),ln=Mt.test(Xe);(Gt===!0||ln===!0||(Xe.length<2||Xe.length>=21))&>("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}gt()},Te=function(Z,Xe,gt){if(Xe){var Mt=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,xt=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,Gt=xt.test(Xe),ln=Mt.test(Xe);(Gt===!0||ln===!0||(Xe.length<2||Xe.length>=11))&>("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}gt()},Ve=function(Z){if(!Z)return"";for(var Xe=Z.length-1,gt="",Mt=0;Mt0){Xe=!1;break}return Xe}function ae(){var Me=navigator.userAgent,Z=["Chrome"];return Z.some(function(Xe){return Me.indexOf(Xe)>-1})}function oe(){var Me=navigator.userAgent,Z=["Chrome","Firefox"];return Z.some(function(Xe){return Me.indexOf(Xe)>-1})}var le=function(){var Z,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Xe==null||((Z=Xe.toString())===null||Z===void 0)?void 0:Z.replace(/\B(?=(\d{3})+(?!\d))/g,",")},K=function(Z){var Xe=document.createElement("a");Xe.target="_blank",document.body.appendChild(Xe),Xe.href=Z;var gt=document.createEvent("MouseEvents");gt.initEvent("click",!1,!1),Xe.dispatchEvent(gt),document.body.removeChild(Xe)},P=function(Z){var Xe=document.createElement("a");document.body.appendChild(Xe),Xe.href=Z;var gt=document.createEvent("MouseEvents");gt.initEvent("click",!1,!1),Xe.dispatchEvent(gt),document.body.removeChild(Xe)},T=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Z.length<=6?Z:"".concat(Z.substring(0,3),"...").concat(Z.substring(Z.length-3,Z.length))},$=function(){var Z=new Date().getHours(),Xe=new Date().getMinutes();return Xe>=30?(Z++,Xe="00"):Xe="30",Z+":"+Xe},se=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"-",Xe=new Date().getHours(),gt=new Date().getMinutes();return gt>=30?(Xe++,gt="00"):gt="30",new Date().toLocaleDateString().replace(/\//g,Z)+" "+Xe+":"+gt},ke;(function(Me){Me.Number="Number",Me.String="String",Me.Boolean="Boolean",Me.Object="Object",Me.Array="Array",Me.Function="Function"})(ke||(ke={}));var ve=function(Z){var Xe=Object.prototype.toString.call(Z);return Xe.substring(8,Xe.length-1)},Be=function(Z){return ve(Z)===ke.Array?Z.length===0:ve(Z)===ke.Object?Object.keys(Z).length===0:!Z},it=function(Z,Xe){for(var gt=[],Mt=Z;Mt1&&arguments[1]!==void 0?arguments[1]:12,gt=Xe/2-2,Mt=Xe/2+3;return Z.length>Xe?Z.substr(0,gt)+"..."+Z.substr(Mt,Xe):Z},Et=function(Z){return Z>4.5?5:Z>4&&Z<=4.5?4.5:Z>3.5&&Z<=4?4:Z>3&&Z<=3.5?3.5:Z>2.5&&Z<=3?3:Z>2&&Z<=2.5?2.5:Z>1.5&&Z<=2?2:Z>1&&Z<=1.5?1.5:Z>.5&&Z<=1?1:Z>0&&Z<=.5?.5:0},Tt=function(Z){return Z==null};function Ht(Me,Z){var Xe=new RegExp("(^|&)".concat(Me,"=([^&]*)(&|$)"),"i"),gt=Z.substr(1).match(Xe);return gt!=null?decodeURIComponent(gt[2]):null}var It=function(Z){if(Z.link_url)return window.open(Z.link_url);switch(Z.container_type){case"ApplyUserAuthentication":if(Z.tiding_type==="Apply"){if(Z.auth_type===1)return window.open("/admins/identity_authentications");if(Z.auth_type===2)return window.open("/admins/professional_authentications")}return Z.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return Z.tiding_type==="Apply"?window.open("/admins/department_applies"):Z.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return Z.tiding_type==="Apply"?window.open("/admins/unit_applies"):Z.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(Z.parent_container_type){case"ApplyShixun":if(Z.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(Z.tiding_type==="System")return window.open("/shixuns/".concat(Z.identifier,"/challenges"));case"ApplySubject":if(Z.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(Z.tiding_type==="System")return window.open("/paths/".concat(Z.parent_container_id));case"TrialAuthorization":if(Z.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(Z.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/teachers"));case"StudentJoinCourse":if(Z.tiding_type==="Apply")return window.open("/classrooms/".concat(Z.belong_container_id,"/teachers"));if(Z.tiding_type==="System")return window.open("/classrooms/".concat(Z.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"Course":return Z.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(Z.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(Z.container_id));case"JournalsForMessage":switch(Z.parent_container_type){case"Principal":return"";case"HomeworkCommon":return Z.homework_type==="normal"?window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/question")):Z.homework_type==="group"?window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/question")):Z.homework_type==="practice"?window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"StudentWorksScore":return window.open(Z.link_url)}case"Memo":return window.open("/forums/".concat(Z.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(Z.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open(D.a.FORGE+Z.project_url);case"ReporterJoinProject":return window.open(D.a.FORGE+Z.project_url);case"DealProject":return window.open(D.a.FORGE+Z.project_url);case"ManagerJoinProject":return window.open(D.a.FORGE+Z.project_url);case"Poll":switch(Z.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(Z.belong_container_id,"/poll/").concat(Z.container_id,"/detail"));default:return window.open(" /classrooms/".concat(Z.belong_container_id,"/poll/").concat(Z.container_id,"/detail"))}case"Exercise":switch(Z.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(Z.belong_container_id,"/exercise/").concat(Z.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_topics/").concat(Z.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.container_id));case"GraduationWork":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(Z.belong_container_id,"/graduation_tasks/").concat(Z.parent_container_id));case"HomeworkCommon":switch(Z.parent_container_type){case"AnonymousCommentFail":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"));default:if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/detail"));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/review/").concat(Z.container_id));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/review/").concat(Z.container_id));if(Z.homework_type==="practice")return window.open("/classrooms/".concat(Z.belong_container_id,"/shixun_homework/").concat(Z.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.trigger_user.id,"/review/").concat(Z.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.trigger_user.id,"/review/").concat(Z.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("".concat(D.a.API_SERVER,"/admins/mirror_repositories"));case"Journal":return window.open("/issues/".concat(Z.parent_container_id));case"Issue":return window.open("/issues/".concat(Z.container_id));case"PullRequest":return window.open(D.a.FORGE+Z.project_url);case"Department":return window.open("/account/profile");case"Library":if(Z.tiding_type==="Apply")return window.open("/admins/library_applies");if(Z.tiding_type==="System")return window.open("/moop_cases/".concat(Z.container_id));case"ProjectPackage":return Z.tiding_type==="Destroyed"||Z.tiding_type==="Destroyed_end"?void 0:Z.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(Z.container_id));case"Discuss":return Z.parent_container_type==="Hack"&&Z.extra?window.open("/myproblems/".concat(Z.extra,"/comment")):Z.extra==="ai_reply"&&Z.task_identifier?window.open("/tasks/".concat(Z.task_identifier,"?extra=extra")):window.open("/shixuns/".concat(Z.identifier,"/shixun_discuss"));case"Video":if(Z.tiding_type==="Apply")return window.open("/admins/video_applies");if(Z.tiding_type==="System"){var Xe;return window.open("/users/".concat((Xe=Object(C.x)())===null||Xe===void 0?void 0:Xe.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(Z.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(Z.container_id));case"ResubmitStudentWork":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id,"/").concat(Z.container_id,"/appraise"));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id,"/").concat(Z.container_id,"/appraise"));case"AdjustScore":if(Z.homework_type==="normal")return window.open("/classrooms/".concat(Z.belong_container_id,"/common_homework/").concat(Z.parent_container_id));if(Z.homework_type==="group")return window.open("/classrooms/".concat(Z.belong_container_id,"/group_homework/").concat(Z.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(Z.belong_container_id,"/course_videos?open=live"));case"Hack":if(Z.extra&&Z.parent_container_type!=="HackDelete")return window.open("/problems/".concat(Z.extra,"/edit"));default:return}},tn=function(Z){var Xe,gt;return new Promise(function(){var Mt=Object(d.a)(b.a.mark(function xt(Gt,ln){var nn;return b.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(!(Z.ip_limit!=="no")){bn.next=4;break}return bn.next=3,Object(M.a)({ip_limit:Z==null?void 0:Z.ip_limit,ip_bind:Z==null?void 0:Z.ip_bind});case 3:Xe=bn.sent;case 4:return bn.next=6,Object(w.g)({id:Z.exerciseId,ip:Xe});case 6:if(nn=bn.sent,nn.status===0?Gt(nn):ln(nn),!Z.errmsgHide){bn.next=10;break}return bn.abrupt("return",!0);case 10:if(!(nn.status===-1)){bn.next=15;break}return gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),bn.abrupt("return",!1);case 15:if(!(nn.status===-2)){bn.next=18;break}return gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u63D0\u793A"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",O.a.createElement("span",{className:"c-red"},nn.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),bn.abrupt("return",!1);case 18:case"end":return bn.stop()}},xt)}));return function(xt,Gt){return Mt.apply(this,arguments)}}())},qt=function(Z){return new Promise(function(){var Xe=Object(d.a)(b.a.mark(function gt(Mt,xt){var Gt;return b.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(w.f)({id:Z==null?void 0:Z.exerciseId,coursesId:Z==null?void 0:Z.coursesId});case 2:if(Gt=nn.sent,!((Gt==null?void 0:Gt.status)===0)){nn.next=6;break}return Mt(""),nn.abrupt("return");case 6:setTimeout(function(){window.location.reload()},2e3),xt("");case 8:case"end":return nn.stop()}},gt)}));return function(gt,Mt){return Xe.apply(this,arguments)}}())},gn=function(){return location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1},an=function(){var Me=Object(d.a)(b.a.mark(function Z(Xe){var gt;return b.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!((location.pathname.indexOf("/classrooms/4RW9CYHY")>-1||location.pathname.indexOf("/classrooms/qb4ft587")>-1||location.pathname.indexOf("/classrooms/c5q9bsp2")>-1)&&!k())){xt.next=3;break}return s.a.info({content:"\u8BF7\u4F7F\u7528\u7535\u8111\u53C2\u52A0\u8003\u8BD5\uFF01"}),xt.abrupt("return");case 3:return xt.next=5,qt(Xe);case 5:if(!(Xe.ip_limit!=="no")){xt.next=11;break}return xt.next=8,tn(Xe);case 8:if(ae()){xt.next=11;break}return s.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),xt.abrupt("return");case 11:if(!(Xe.open_camera||Xe.screen_open||Xe.ip_limit!=="no"||Xe.ip_bind||Xe.identity_verify)){xt.next=18;break}if(oe()){xt.next=15;break}return s.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:O.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",O.a.createElement("br",null),"\u8BF7\u4F7F\u7528",O.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",O.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),xt.abrupt("return",!1);case 15:gt=s.a.info({title:O.a.createElement(u.a,null,O.a.createElement(m.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return gt.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:O.a.createElement("div",{className:"font16 p20"},Xe.identity_verify&&O.a.createElement(u.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"45px"},O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(m.a,{flex:"1"},"\u8FDB\u5165\u8003\u8BD5\u524D\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u9700\u91C7\u96C6\u7167\u7247\u8BA4\u8BC1\uFF0C\u8BA4\u8BC1\u901A\u8FC7\u5E76\u5F00\u542F\u624B\u673A\u5F55\u5236\u624D\u53EF\u4EE5\u8FDB\u5165\u8003\u8BD5\u3002",!Fe()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Xe.open_camera&&O.a.createElement(u.a,{align:"middle",justify:"start",className:"mt20"},O.a.createElement(m.a,null,O.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),O.a.createElement(m.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",!Fe()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Xe.screen_open&&O.a.createElement(u.a,{justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),O.a.createElement(m.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",Xe.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",!Fe()&&O.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),(Xe.inner_ip!==""||Xe.public_ip!=="")&&Xe.ip_limit!=="no"&&O.a.createElement(u.a,{justify:"start",className:"mt20"},O.a.createElement(m.a,{flex:"24px",className:"mr20"},O.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),O.a.createElement(m.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542FIP\u8303\u56F4\u9650\u5B9A\u3002IP\u5730\u5740\u4E0D\u5728\u8303\u56F4\u5185\u4E0D\u53EF\u53C2\u52A0\u8003\u8BD5\u3002",O.a.createElement("br",null),!Fe()&&O.a.createElement(O.a.Fragment,null,O.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),O.a.createElement("br",null),O.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")))),O.a.createElement("p",{className:"ml40 mt40"},O.a.createElement(r.a,{onChange:function(ln){return gt.update({okButtonProps:{disabled:!ln.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){if(Object(A.d)(document.body),Xe.open_phone_video_recording){var ln;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((ln=Object(C.x)())===null||ln===void 0?void 0:ln.login,"/check"))}else if(Xe.identity_verify&&Xe.current_status===2){var nn;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((nn=Object(C.x)())===null||nn===void 0?void 0:nn.login,"/check"))}else{var Ln;Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat((Ln=Object(C.x)())===null||Ln===void 0?void 0:Ln.login))}},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),xt.next=19;break;case 18:Xe.identity_verify&&Xe.current_status===2?Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat(Xe.login,"/check")):Xe.history.push("/classrooms/".concat(Xe.coursesId,"/exercise/").concat(Xe.exerciseId,"/users/").concat(Xe.login));case 19:case"end":return xt.stop()}},Z)}));return function(Xe){return Me.apply(this,arguments)}}(),Tn=[{name:"\u535A\u58EB\u7814\u7A76\u751F",id:8},{name:"\u7855\u58EB\u7814\u7A76\u751F",id:7},{name:"\u672C\u79D1",id:6},{name:"\u5927\u4E13",id:5},{name:"\u4E2D\u4E13",id:4},{name:"\u9AD8\u4E2D",id:3},{name:"\u521D\u4E2D",id:2},{name:"\u5C0F\u5B66",id:1},{name:"\u5176\u4ED6",id:9}],on=function(Z){var Xe=/(\w+)=([^\#&]*)/gi,gt={};return Z.replace(Xe,function(Mt,xt,Gt){gt[xt]=decodeURI(Gt)}),gt},En=function(Z,Xe){var gt={1:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",2:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u4E0D\u5B58\u5728\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",3:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u6559\u5E08\u3002",4:"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u5C06\u4E8E".concat(Xe,"\u53D1\u5E03\uFF0C\u8BF7\u7B49\u5F85\u3002")},Mt=gt[Z];f.b.warn(Mt)},yn=function(Z,Xe){for(var gt,Mt,xt=window.atob(Z),Gt=xt.length,ln=new Uint8Array(Gt),nn=0;nn0&&arguments[0]!==void 0?arguments[0]:"",Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=document.createElement("textarea");gt.value=Z,document.body.appendChild(gt),gt.select(),document.execCommand("Copy"),Xe||f.b.success("\u590D\u5236\u6210\u529F"),document.body.removeChild(gt)},De=function(Z){Z||(Z=window.location.search);var Xe=Z.substring(1),gt={};return Xe.split("&").forEach(function(Mt){var xt=Mt.split("=");gt[xt[0]]=decodeURIComponent(xt[1])}),gt},Ct=function(Z,Xe){if(!Xe)return null;var gt=[];return Xe.forEach(function(Mt,xt){var Gt=Math.floor(xt/Z);gt[Gt]||(gt[Gt]=[]),gt[Gt].push(Mt)}),gt},be=function(Z){Fe()?document.title=" ":document.title=Z||" "},Fe=function(){var Z,Xe;return(Z=window)===null||Z===void 0||((Xe=Z.localStorage)===null||Xe===void 0)?void 0:Xe.isClientExam},Ne={setItem:function(Z,Xe,gt){var Mt=Z,xt=localStorage.getItem(Mt),Gt=xt!==null&&xt!=="[object Object]"?JSON.parse(xt):{};Gt[gt]=Xe,localStorage.setItem(Mt,JSON.stringify(Gt))},getItem:function(Z,Xe){var gt=Z,Mt=localStorage.getItem(gt),xt=Mt!==null&&Mt!=="[object Object]"?JSON.parse(Mt):{};return xt[Xe]}},dt=function(Z){return Z!=null&&Z.startsWith("http")?Z:D.a.IMG_SERVER+Z},Pe=function(Z){for(var Xe=Ce(),gt=Z.split("."),Mt=Xe.split("."),xt=Math.max(gt.length,Mt.length);gt.lengthnn)return 1;if(ln-1};function qe(Me,Z){var Xe=Me.length,gt,Mt;Z=Z||1;for(var xt=function(){var ln=Math.sin(Z++)*1e3;return ln-Math.floor(ln)};Xe!==0;)Mt=Math.floor(xt()*Xe),Xe-=1,gt=Me[Xe],Me[Xe]=Me[Mt],Me[Mt]=gt;return Me}},"1vuE":function(x,g,e){var a=e("eNh0");a("flat")},2:function(x,g){},"22qN":function(x,g,e){},"25BE":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}},"284h":function(x,g,e){var a=e("cDf5").default;function n(t){if(typeof WeakMap!="function")return null;var u=new WeakMap,v=new WeakMap;return(n=function(i){return i?v:u})(t)}function r(t,u){if(!u&&t&&t.__esModule)return t;if(t===null||a(t)!=="object"&&typeof t!="function")return{default:t};var v=n(u);if(v&&v.has(t))return v.get(t);var m={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var d=i?Object.getOwnPropertyDescriptor(t,s):null;d&&(d.get||d.set)?Object.defineProperty(m,s,d):m[s]=t[s]}return m.default=t,v&&v.set(t,m),m}x.exports=r,x.exports.__esModule=!0,x.exports.default=x.exports},"29mP":function(x,g,e){var a=e("nFn1"),n=e("ukPv"),r=function(t){return typeof t=="function"?t:void 0};x.exports=function(t,u){return arguments.length<2?r(a[t])||r(n[t]):a[t]&&a[t][u]||n[t]&&n[t][u]}},"2FZw":function(x,g,e){var a=e("oa35"),n=e("+rjg"),r=e("FCfD"),t=Math.ceil,u=function(v){return function(m,i,s){var d=String(r(m)),l=d.length,f=s===void 0?" ":String(s),o=a(i),h,c;return o<=l||f==""?d:(h=o-l,c=n.call(f,t(h/f.length)),c.length>h&&(c=c.slice(0,h)),v?d+c:c+d)}};x.exports={start:u(!1),end:u(!0)}},"2GS6":function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){var n=[].slice.call(arguments,0);return n.length===1?n[0]:function(){for(var t=0;t1?m-1:0);for(var i=1;i2?m-2:0);for(var i=2;i1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){b.call(c,E,h(O,E,f))},void 0,!0,!0),c}})},"2j6C":function(x,g){x.exports=e;function e(a,n){if(!a)throw new Error(n||"Assertion failed")}e.equal=function(n,r,t){if(n!=r)throw new Error(t||"Assertion failed: "+n+" != "+r)}},"2kyd":function(x,g,e){var a=e("ukPv"),n=e("xxaU"),r=e("jtLI"),t=e("evbn"),u=e("Fs9M"),v=e("wgKq"),m=n("wks"),i=a.Symbol,s=v?i:i&&i.withoutSetter||t;x.exports=function(d){return r(m,d)||(u&&r(i,d)?m[d]=i[d]:m[d]=s("Symbol."+d)),m[d]}},"2mql":function(x,g,e){"use strict";var a=e("TOwV"),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[a.ForwardRef]=t,v[a.Memo]=u;function m(c){return a.isMemo(c)?u:v[c.$$typeof]||n}var i=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,o=Object.prototype;function h(c,b,E){if(typeof b!="string"){if(o){var O=f(b);O&&O!==o&&h(c,O,E)}var C=s(b);d&&(C=C.concat(d(b)));for(var M=m(c),w=m(b),A=0;A=0;s--){var d=v[s];d==="."?v.splice(s,1):d===".."?(v.splice(s,1),i++):i&&(v.splice(s,1),i--)}if(m)for(;i--;i)v.unshift("..");return v}g.resolve=function(){for(var v="",m=!1,i=arguments.length-1;i>=-1&&!m;i--){var s=i>=0?arguments[i]:a.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;v=s+"/"+v,m=s.charAt(0)==="/"}return v=n(t(v.split("/"),function(d){return!!d}),!m).join("/"),(m?"/":"")+v||"."},g.normalize=function(v){var m=g.isAbsolute(v),i=u(v,-1)==="/";return v=n(t(v.split("/"),function(s){return!!s}),!m).join("/"),!v&&!m&&(v="."),v&&i&&(v+="/"),(m?"/":"")+v},g.isAbsolute=function(v){return v.charAt(0)==="/"},g.join=function(){var v=Array.prototype.slice.call(arguments,0);return g.normalize(t(v,function(m,i){if(typeof m!="string")throw new TypeError("Arguments to path.join must be strings");return m}).join("/"))},g.relative=function(v,m){v=g.resolve(v).substr(1),m=g.resolve(m).substr(1);function i(c){for(var b=0;b=0&&!(c[E]!=="");E--);return b>E?[]:c.slice(b,E-b+1)}for(var s=i(v.split("/")),d=i(m.split("/")),l=Math.min(s.length,d.length),f=l,o=0;o=1;--l)if(m=v.charCodeAt(l),m===47){if(!d){s=l;break}}else d=!1;return s===-1?i?"/":".":i&&s===1?"/":v.slice(0,s)};function r(v){typeof v!="string"&&(v=v+"");var m=0,i=-1,s=!0,d;for(d=v.length-1;d>=0;--d)if(v.charCodeAt(d)===47){if(!s){m=d+1;break}}else i===-1&&(s=!1,i=d+1);return i===-1?"":v.slice(m,i)}g.basename=function(v,m){var i=r(v);return m&&i.substr(-1*m.length)===m&&(i=i.substr(0,i.length-m.length)),i},g.extname=function(v){typeof v!="string"&&(v=v+"");for(var m=-1,i=0,s=-1,d=!0,l=0,f=v.length-1;f>=0;--f){var o=v.charCodeAt(f);if(o===47){if(!d){i=f+1;break}continue}s===-1&&(d=!1,s=f+1),o===46?m===-1?m=f:l!==1&&(l=1):m!==-1&&(l=-1)}return m===-1||s===-1||l===0||l===1&&m===s-1&&m===i+1?"":v.slice(m,s)};function t(v,m){if(v.filter)return v.filter(m);for(var i=[],s=0;s>>0,i=t>>>0,s=u>>>0;return i-(v>>>0)-((~m&s|~(m^s)&m-s>>>0)>>>31)|0}})},"3Us1":function(x,g,e){var a=e("Mi8B");a("Float32",function(n){return function(t,u,v){return n(this,t,u,v)}})},"3blH":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("hJwl"),u={namespace:"competitions",state:{name:"",loading:!0,listParams:{page:1,per_page:20,category:""},competitions:[],count:""},effects:{getList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=i.call,l=i.put,f=s,c.next=5,d(t.v,s);case 5:return o=c.sent,c.next=8,l({type:"save",payload:Object(a.a)({listParams:f},o)});case 8:return c.abrupt("return",o);case 9:case"end":return c.stop()}},v)}),addApplytojoincourse:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.r,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),competitionTeams:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.s,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStaff:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.A,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getHeader:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.x,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getItem:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.y,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),updateMdContent:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.H,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.E,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeamDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.D,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),UpTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.q,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),DeleteTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ExitTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.h,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),AddTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),JoinTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getTeacher:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.C,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getStudents:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.B,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),SubmitTeam:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.o,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Reward:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.n,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),ChartRules:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Charts:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.e,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),TabResults:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.p,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Results:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.m,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Prize:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Accounts:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getVerification:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.F,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),PhoneBind:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),EmailBind:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.g,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Authentication:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.c,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),Professional:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.l,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setleader:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.G,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getShixun:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.z,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),getCourse:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.w,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"3dhw":function(x,g,e){"use strict";var a=e("NMFW"),n=e("f1E4"),r=e("MVys"),t=e("k/J9"),u="toString",v=RegExp.prototype,m=v[u],i=r(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),s=m.name!=u;(i||s)&&a(RegExp.prototype,u,function(){var l=n(this),f=String(l.source),o=l.flags,h=String(o===void 0&&l instanceof RegExp&&!("flags"in v)?t.call(l):o);return"/"+f+"/"+h},{unsafe:!0})},"3tO9":function(x,g,e){var a=e("lSNA");function n(t,u){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);u&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),v.push.apply(v,m)}return v}function r(t){for(var u=1;u1?arguments[1]:void 0)}})},"4IlW":function(x,g,e){"use strict";var a={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(r){var t=r.keyCode;if(r.altKey&&!r.ctrlKey||r.metaKey||t>=a.F1&&t<=a.F12)return!1;switch(t){case a.ALT:case a.CAPS_LOCK:case a.CONTEXT_MENU:case a.CTRL:case a.DOWN:case a.END:case a.ESC:case a.HOME:case a.INSERT:case a.LEFT:case a.MAC_FF_META:case a.META:case a.NUMLOCK:case a.NUM_CENTER:case a.PAGE_DOWN:case a.PAGE_UP:case a.PAUSE:case a.PRINT_SCREEN:case a.RIGHT:case a.SHIFT:case a.UP:case a.WIN_KEY:case a.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(r){if(r>=a.ZERO&&r<=a.NINE)return!0;if(r>=a.NUM_ZERO&&r<=a.NUM_MULTIPLY)return!0;if(r>=a.A&&r<=a.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&r===0)return!0;switch(r){case a.SPACE:case a.QUESTION_MARK:case a.NUM_PLUS:case a.NUM_MINUS:case a.NUM_PERIOD:case a.NUM_DIVISION:case a.SEMICOLON:case a.DASH:case a.EQUALS:case a.COMMA:case a.PERIOD:case a.SLASH:case a.APOSTROPHE:case a.SINGLE_QUOTE:case a.OPEN_SQUARE_BRACKET:case a.BACKSLASH:case a.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};g.a=a},"4MGa":function(x,g,e){},"4Mzw":function(x,g,e){var a=e("ukPv"),n=e("kiNa");n(a.JSON,"JSON",!0)},"4rKd":function(x,g,e){var a=e("lz10"),n=e("aKVN"),r=e("2kyd"),t=r("toPrimitive"),u=Date.prototype;t in u||a(u,t,n)},"58Ye":function(x,g,e){},"5Blz":function(x,g,e){"use strict";var a=e("MMxC"),n=e("9RRT").right,r=e("R8iy"),t=e("kGMc"),u=r("reduceRight"),v=t("reduce",{1:0});a({target:"Array",proto:!0,forced:!u||!v},{reduceRight:function(i){return n(this,i,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"5FVT":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),u={namespace:"forumsDetail",state:{forumsDetailData:{}},effects:{getForumsDetailData:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{forumsDetailData:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),setForumsDetailData:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{forumsDetailData:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"5JgN":function(x,g,e){"use strict";e("FbcW");var a=e("MMxC"),n=e("29mP"),r=e("lgSf"),t=e("NMFW"),u=e("ujhg"),v=e("kiNa"),m=e("uoF6"),i=e("1aI8"),s=e("igoe"),d=e("jtLI"),l=e("7BAe"),f=e("Ei+o"),o=e("f1E4"),h=e("tSXo"),c=e("u+7+"),b=e("HhvW"),E=e("qcmB"),O=e("9SZg"),C=e("2kyd"),M=n("fetch"),w=n("Headers"),A=C("iterator"),L="URLSearchParams",z=L+"Iterator",G=i.set,D=i.getterFor(L),N=i.getterFor(z),Oe=/\+/g,ue=Array(4),re=function(ie){return ue[ie-1]||(ue[ie-1]=RegExp("((?:%[\\da-f]{2}){"+ie+"})","gi"))},ee=function(ie){try{return decodeURIComponent(ie)}catch(W){return ie}},J=function(ie){var W=ie.replace(Oe," "),de=4;try{return decodeURIComponent(W)}catch(Ye){for(;de;)W=W.replace(re(de--),ee);return W}},F=/[!'()~]|%20/g,Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},q=function(ie){return Q[ie]},He=function(ie){return encodeURIComponent(ie).replace(F,q)},Ze=function(ie,W){if(W)for(var de=W.split("&"),Ye=0,fe,rt;Ye0?arguments[0]:void 0,de=this,Ye=[],fe,rt,Te,Ve,tt,ht,ge,ye,je;if(G(de,{type:L,entries:Ye,updateURL:function(){},updateSearchParams:ft}),W!==void 0)if(h(W))if(fe=O(W),typeof fe=="function")for(rt=fe.call(W),Te=rt.next;!(Ve=Te.call(rt)).done;){if(tt=E(o(Ve.value)),ht=tt.next,(ge=ht.call(tt)).done||(ye=ht.call(tt)).done||!ht.call(tt).done)throw TypeError("Expected sequence with length 2");Ye.push({key:ge.value+"",value:ye.value+""})}else for(je in W)d(W,je)&&Ye.push({key:je,value:W[je]+""});else Ze(Ye,typeof W=="string"?W.charAt(0)==="?"?W.slice(1):W:W+"")},me=X.prototype;u(me,{append:function(W,de){$e(arguments.length,2);var Ye=D(this);Ye.entries.push({key:W+"",value:de+""}),Ye.updateURL()},delete:function(ie){$e(arguments.length,1);for(var W=D(this),de=W.entries,Ye=ie+"",fe=0;fefe.key){de.splice(rt,0,fe);break}rt===Te&&de.push(fe)}W.updateURL()},forEach:function(W){for(var de=D(this).entries,Ye=l(W,arguments.length>1?arguments[1]:void 0,3),fe=0,rt;fe1&&(Ye=arguments[1],h(Ye)&&(fe=Ye.body,f(fe)===L&&(rt=Ye.headers?new w(Ye.headers):new w,rt.has("content-type")||rt.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ye=c(Ye,{body:b(0,String(fe)),headers:b(0,rt)}))),de.push(Ye)),M.apply(this,de)}}),x.exports={URLSearchParams:X,getState:D}},"5QGz":function(x,g,e){var a=e("MMxC"),n=Math.atanh,r=Math.log;a({target:"Math",stat:!0,forced:!(n&&1/n(-0)<0)},{atanh:function(u){return(u=+u)==0?u:r((1+u)/(1-u))/2}})},"5WQS":function(x,g,e){"use strict";e.d(g,"e",function(){return v}),e.d(g,"h",function(){return i}),e.d(g,"c",function(){return d}),e.d(g,"g",function(){return f}),e.d(g,"d",function(){return h}),e.d(g,"f",function(){return b}),e.d(g,"b",function(){return O}),e.d(g,"a",function(){return M});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(A){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/tidings.json",{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),m.apply(this,arguments)}function i(A){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/unread_message_info.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),s.apply(this,arguments)}function d(A){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),l.apply(this,arguments)}function f(A){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages.json"),{method:"post",body:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),o.apply(this,arguments)}function h(A){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.id,"/recent_contacts.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),c.apply(this,arguments)}function b(A){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users_for_private_messages.json",{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),E.apply(this,arguments)}function O(A){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_message_details.json"),{method:"get",params:Object(a.a)({},L)}));case 1:case"end":return G.stop()}},A)})),C.apply(this,arguments)}function M(A){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function A(L){return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.abrupt("return",Object(u.a)("/api/users/".concat(L.userId,"/private_messages/").concat(L.id,".json"),{method:"delete"}));case 1:case"end":return G.stop()}},A)})),w.apply(this,arguments)}},"5mCs":function(x,g,e){"use strict";var a=e("oBTY"),n=e("k1fw"),r=e("WmNS"),t=e.n(r),u=e("oUNq"),v={namespace:"classroomList",state:{name:"",loading:!0,detailTopBanner:{},detailLeftMenus:{},detailLeftMenusNames:{},detailShixunsList:{},detailGraduationTopicsList:{},detailGraduationTaskList:{},detailExerciseList:{},detailPollsList:{},detailCommonHomeworksList:{},detailAttendancesList:{},detailAttendancesDetail:{},detailAnnouncementList:{},detailAttachmentList:{},detailCourseware:{},courseMine:{},detailVideoList:{},detailLiveVideoList:{},detailBoardList:{},courseGroups:{},allCourseGroups:{},detailCourseGroupsList:{},detailCoursStudentsList:{},detailCourseStatisticsList:{},detailAttendancesStatistic:{},detailCourseWorkscore:{},detailCourseActscore:{},coursesLists:{},shixunLists:{},schoolList:{},taskList:[],searchMemberList:{},actionTabs:{key:""},listParams:{order:"all",page:1,limit:16,search:""},shareStatus:!1},effects:{getClassroom:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=s.call,f=s.put,o=d,b.next=5,l(u.R,d);case 5:return h=b.sent,b.next=8,f({type:"save",payload:Object(n.a)({listParams:o},h)});case 8:return b.abrupt("return",h);case 9:case"end":return b.stop()}},m)}),getClassroomTopBanner:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.V,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailTopBanner:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomLeftMenus:t.a.mark(function m(i,s){var d,l,f,o,h,c;return t.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(u.Q,d);case 4:return o=E.sent,h=[].concat(Object(a.a)((o==null?void 0:o.course_modules)||[]),Object(a.a)((o==null?void 0:o.hidden_modules)||[])),c={},h==null||h.forEach(function(O){c[O.type]=O.name}),E.next=10,f({type:"save",payload:{detailLeftMenus:Object(n.a)({},o),detailLeftMenusNames:c}});case 10:return E.abrupt("return",o);case 11:case"end":return E.stop()}},m)}),getClassroomShixunsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.T,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomTeacherShixunsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.U,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailShixunsList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getClassroomCommonList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.T,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomTeacherCommonList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.U,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getClassroomGraduationTopicsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.P,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailGraduationTopicsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomGraduationTaskList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.O,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailGraduationTaskList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomExercisesList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.N,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailExerciseList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomPollsList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.S,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailPollsList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getCourseGroups:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.Z,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{courseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAllCourseGroup:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.D,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{allCourseGroups:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomCommonHomeworksList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.M,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCommonHomeworksList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomAttendancesList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.K,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getClassroomAttendancesStatistic:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.L,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesStatistic:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAttendanceDetail:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.H,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttendancesDetail:Object(n.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getAnnouncementList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.F,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAnnouncementList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getAttachmentList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.G,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailAttachmentList:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},m)}),getCourseware:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.hb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailCourseware:Object(n.a)({},o.data)}});case 7:case"end":return c.stop()}},m)}),getVideoList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.rb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getLiveVideoList:t.a.mark(function m(i,s){var d,l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(u.jb,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{detailLiveVideoList:Object(n.a)({},o)}});case 7:case"end":return c.stop()}},m)}),getCoursesMine:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.gb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{courseMine:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getBoardList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.J,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailBoardList:Object(n.a)({},h.data)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getCourseGroupsList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.ab,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseGroupsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseStudentsList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.db,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCoursStudentsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h.data);case 8:case"end":return b.stop()}},m)}),getCourseStatistics:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.cb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseStatisticsList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseActscore:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.W,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseActscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCourseWorkscore:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.eb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{detailCourseWorkscore:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getShixunLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.qb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getExperimentLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.ib,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getShixunAiRecommendLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.pb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{shixunAiRecommendLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getCoursesLists:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.fb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{coursesLists:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),createCoursesHomework:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.g,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),createShixunHomework:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.j,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),createExperiment:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.h,d);case 4:return h=b.sent,b.abrupt("return",h);case 6:case"end":return b.stop()}},m)}),getSchoolList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.nb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{schoolList:Object(n.a)({},h.school_names)}});case 7:return b.abrupt("return",h.school_names);case 8:case"end":return b.stop()}},m)}),searchSchoolTeacherList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.Ab,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{searchMemberList:Object(n.a)({},h)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),getAllTaskList:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.E,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{taskList:Object(a.a)(h.tasks)}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),updateTaskPosition:t.a.mark(function m(i,s){var d,l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=i.callback,f=s.call,o=s.put,b.next=4,f(u.Lb,d);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{actionTabs:{key:""}}});case 7:return b.abrupt("return",h);case 8:case"end":return b.stop()}},m)}),setActionTabs:t.a.mark(function m(i,s){var d,l,f;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(n.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(n.a)(Object(n.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},"5wUe":function(x,g,e){var a=e("Q9SF"),n=e("MIOZ"),r=e("mGKP"),t=e("h0XC");function u(v,m){return a(v)||n(v,m)||r(v,m)||t()}x.exports=u},"5yw/":function(x,g){x.exports={}},"66pj":function(x,g,e){var a=e("MMxC"),n=e("u93E"),r=Math.abs,t=Math.pow;a({target:"Math",stat:!0},{cbrt:function(v){return n(v=+v)*t(r(v),1/3)}})},"6CvP":function(x,g,e){"use strict";e.d(g,"a",function(){return u}),e.d(g,"c",function(){return m}),e.d(g,"e",function(){return s}),e.d(g,"d",function(){return l}),e.d(g,"b",function(){return o});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function c(){return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",Object(t.a)("/api/home/index.json",{method:"Get"}));case 1:case"end":return E.stop()}},c)})),v.apply(this,arguments)}function m(c){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/courses/apply_to_join_course.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),i.apply(this,arguments)}function s(c){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/project_applies.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),d.apply(this,arguments)}function l(c){return f.apply(this,arguments)}function f(){return f=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/home_notice.json",{method:"Get"}));case 1:case"end":return O.stop()}},c)})),f.apply(this,arguments)}function o(c){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/users/view_notice.json",{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),h.apply(this,arguments)}},"6FCX":function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"WeakMap",stat:!0},{of:n})},"6YAi":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("yMj0"),u={namespace:"announcement",state:{name:"\u666E\u901A\u8BD5\u5377\uFF0C\u968F\u673A\u8BD5\u5377\u8BE6\u60C5\u9875\u9762",loading:!0,actionTabs:{}},effects:{informDown:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.a,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),informUp:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"6cL7":function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("FCfD"),t=e("UPML"),u=e("dagG");a("search",1,function(v,m,i){return[function(d){var l=r(this),f=d==null?void 0:d[v];return f!==void 0?f.call(d,l):new RegExp(d)[v](String(l))},function(s){var d=i(m,s,this);if(d.done)return d.value;var l=n(s),f=String(this),o=l.lastIndex;t(o,0)||(l.lastIndex=0);var h=u(l,f);return t(l.lastIndex,o)||(l.lastIndex=o),h===null?-1:h.index}]})},"6fQ5":function(x,g,e){"use strict";e.d(g,"a",function(){return n}),e.d(g,"b",function(){return t});var a=e("k1fw"),n=function(v){return v==null?void 0:v.map(function(m){var i=(m.sub_disciplines||[]).map(function(s){return{value:s.id,label:s.name}});return{value:m.id,label:m.name,children:i}})},r={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},t=function(v){if(!v)return;var m=v||{},i=m.all_questions_count,s=m.all_score,d=m.single_questions,l=m.multiple_questions,f=m.judgement_questions,o=m.program_questions,h=m.completion_questions,c=m.subjective_questions,b=m.practical_questions,E=m.combination_questions,O=[Object(a.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},d),Object(a.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},l),Object(a.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},h),Object(a.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},f),Object(a.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},c),Object(a.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},o),Object(a.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},b),Object(a.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},E)],C=O.filter(function(M){return M.questions_count>0}).map(function(M,w){return Object(a.a)(Object(a.a)({},M),{number:r[w+1]})});return{all_questions_count:i,all_score:s,questionList:C}}},"6ixQ":function(x,g){x.exports={}},"6koa":function(x,g,e){"use strict";function a(n,r){if(n===r)return!0;if(!n||!r)return!1;var t=Object.keys(n),u=Object.keys(r),v=t.length;if(u.length!==v)return!1;for(var m=0;m0?L[0]||A.data[0].ec_major_school_id:void 0}});case 14:case"end":return G.stop()}},o)}),getYearList:m.a.mark(function o(h,c){var b,E,O,C,M,w,A,L;return m.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return b=h.payload,E=c.call,O=c.put,C=c.select,G.next=4,E(i.k,b.id);case 4:return M=G.sent,G.next=7,C(function(D){return D.user});case 7:if(w=G.sent,A=w.userInfo,!(M&&M.data)){G.next=13;break}return L=s.a.getItem(A==null?void 0:A.login),G.next=13,O({type:"setMajorOrYearDataSource",payload:{key:l[1],value:M.data.map(function(D){return{label:D.year,value:D.ec_year_id}}),active:M.data.length>0?b.firstEnter?L[1]:M.data[0].ec_year_id:void 0}});case 13:case"end":return G.stop()}},o)}),getCourseResults:m.a.mark(function o(h,c){var b,E,O,C,M,w,A,L,z,G,D,N,Oe,ue,re,ee,J;return m.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return b=h.payload,E=b===void 0?{}:b,O=c.call,C=c.put,M=c.select,w=E.calc,A=E.page,L=E.per_page,Q.next=5,M(function(q){return q.engineeringEvaluteList});case 5:return z=Q.sent,G=z.headerData,D=z.tabListData,Q.next=10,M(function(q){return q.user});case 10:if(N=Q.sent,Oe=N.userInfo,ue=G.active[l[1]],!ue){Q.next=26;break}return re={id:ue,page:A||1,per_page:L||D.pageSize},w&&(re=Object(t.a)(Object(t.a)({},re),{},{page:D.pageNo})),Q.next=18,O(i.e,re);case 18:if(ee=Q.sent,J=[G.active[l[0]],G.active[l[1]]],s.a.setItem(Oe==null?void 0:Oe.login,J),!(ee&&ee.ec_courses)){Q.next=24;break}return Q.next=24,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:re.page,total:ee.count,pageSize:re.per_page||D.pageSize,dataSource:ee.ec_courses.map(function(q,He){return Object(t.a)(Object(t.a)({},q),{},{key:re.page>1?(re.page-1)*re.per_page+He+1:He+1})})})});case 24:Q.next=28;break;case 26:return Q.next=28,C({type:"setCourseResults",payload:Object(t.a)(Object(t.a)({},D),{},{pageNo:1,total:0,dataSource:[]})});case 28:case"end":return Q.stop()}},o)}),exportCourse:m.a.mark(function o(h,c){var b,E,O,C,M;return m.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return b=h.payload,E=c.call,O=c.select,A.next=4,O(function(L){return L.engineeringEvaluteList});case 4:if(C=A.sent,M=C.headerData,!M.active[l[1]]){A.next=9;break}return A.next=9,E(i.a,M.active[l[1]]);case 9:case"end":return A.stop()}},o)}),compute:m.a.mark(function o(h,c){var b,E,O,C,M,w;return m.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return b=h.payload,E=c.call,O=c.put,C=b.all,M=Object(r.a)(b,["all"]),L.next=5,E(C?i.m:i.n,M);case 5:if(w=L.sent,!(w&&w.status===0)){L.next=12;break}return n.b.success("\u8BA1\u7B97\u5B8C\u6210"),L.next=10,O({type:"getCourseResults",payload:{calc:!0}});case 10:L.next=13;break;case 12:n.b.error(w.message);case 13:case"end":return L.stop()}},o)})},reducers:{save:function(h,c){return Object(t.a)(Object(t.a)({},h),c.payload)},setMajorOrYearDataSource:function(h,c){var b=c.payload,E=h.headerData.active;return b.active&&(E=Object(t.a)(Object(t.a)({},E),{},Object(u.a)({},b.key,b.active))),Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{dataSource:Object(t.a)(Object(t.a)({},h.headerData.dataSource),{},Object(u.a)({},b.key,Object(t.a)(Object(t.a)({},h.headerData.dataSource[b.key]),{},{dataList:b.value}))),active:E})})},setMajorOrYearActive:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{headerData:Object(t.a)(Object(t.a)({},h.headerData),{},{active:Object(t.a)(Object(t.a)({},h.headerData.active),{},Object(u.a)({},b.key,b.value))})})},setCourseResults:function(h,c){var b=c.payload;return Object(t.a)(Object(t.a)({},h),{},{tabListData:Object(t.a)(Object(t.a)({},h.tabListData),b)})}},subscriptions:{setup:function(h){var c=h.dispatch,b=h.history;return b.listen(function(E){var O=E.pathname;O==="/"&&c({type:"query"})})}}};g.a=f},"7VZV":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("SVaM"),u=e("m3rI"),v={namespace:"globalSetting",state:{name:"\u5168\u5C40\u914D\u7F6E",loading:!0,isIlearning:window.location.host.indexOf("learning.")>-1,showFooter:!0,showHeader:!0,showHeaderFooter:!0,showHeaderFixed:!1,onlyShowBackTop:!0,onlyShowBackTopIcons:!0,operateModel:!1,operateModelPath:"",showQuestionBackTop:!1,theme:"default",globalLoading:{show:!1,text:""},updateData:{end_time:"",start_time:"",subject:"",system_score:"",system_update:!1}},effects:{query:r.a.mark(function i(s,d){var l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=s.payload,o=d.call,h=d.put,E.next=4,o(t.b,f);case 4:return c=E.sent,m(c),u.a.OFFICE_SERVER=c==null||((l=c.setting)===null||l===void 0)?void 0:l.office_server_url,E.next=9,h({type:"save",payload:Object(a.a)({},c)});case 9:case"end":return E.stop()}},i)}),getSystemUpdate:r.a.mark(function i(s,d){var l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(t.c,l);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{updateData:Object(a.a)({},h)}});case 7:case"end":return b.stop()}},i)}),setTheme:r.a.mark(function i(s,d){var l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(t.c,l);case 4:return h=b.sent,b.next=7,o({type:"save",payload:{theme:l||"default"}});case 7:case"end":return b.stop()}},i)}),setGlobalLoading:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{globalLoading:Object(a.a)({},l)}});case 4:case"end":return c.stop()}},i)}),headerToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeader:l}});case 4:case"end":return c.stop()}},i)}),footerToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showFooter:l}});case 4:case"end":return c.stop()}},i)}),headerFooterToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeaderFooter:l}});case 4:case"end":return c.stop()}},i)}),headerFixedToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showHeaderFixed:l}});case 4:case"end":return c.stop()}},i)}),onlyShowBackTopToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{onlyShowBackTop:l}});case 4:case"end":return c.stop()}},i)}),onlyShowBackTopIconToggle:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{onlyShowBackTopIcons:l}});case 4:case"end":return c.stop()}},i)}),setOperateModel:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{operateModel:l}});case 4:case"end":return c.stop()}},i)}),setOperateModelPath:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{operateModelPath:l}});case 4:case"end":return c.stop()}},i)}),setShowQuestionBackTop:r.a.mark(function i(s,d){var l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{showQuestionBackTop:l}});case 4:case"end":return c.stop()}},i)})},reducers:{save:function(s,d){return Object(a.a)(Object(a.a)({},s),d.payload)}},subscriptions:{setup:function(s){var d=s.dispatch,l=s.history;return l.listen(function(f){var o=f.pathname;o==="/"})}}};g.a=v;var m=function(){var s,d,l,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(s=f.setting)===null||s===void 0||s.tab_logo_url;var o=document.createElement("link"),h=document.getElementById("dynamic-favicon");o.id="dynamic-favicon",o.rel="shortcut icon",o.href=(d=f.setting)!==null&&d!==void 0&&d.tab_logo_url?"".concat(u.a.IMG_SERVER,"/").concat((l=f.setting)===null||l===void 0?void 0:l.tab_logo_url):"".concat(u.a.IMG_SERVER,"/react/build/./favicon.ico"),h&&document.head.removeChild(h),document.head.appendChild(o);try{var c;if(!((c=f.setting)!==null&&c!==void 0&&c.main_site)){var b;document.querySelector('meta[name="keywords"]').content=(b=f.setting)===null||b===void 0?void 0:b.name,document.querySelector('meta[name="description"]').remove()}}catch(E){}}},"7W2i":function(x,g,e){var a=e("SksO");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},"7bO/":function(x,g,e){"use strict";e.d(g,"b",function(){return a});var a={};e.r(a),e.d(a,"take",function(){return qt}),e.d(a,"takem",function(){return gn}),e.d(a,"put",function(){return an}),e.d(a,"all",function(){return Tn}),e.d(a,"race",function(){return on}),e.d(a,"call",function(){return yn}),e.d(a,"apply",function(){return vn}),e.d(a,"cps",function(){return Rn}),e.d(a,"fork",function(){return Pn}),e.d(a,"spawn",function(){return St}),e.d(a,"join",function(){return bt}),e.d(a,"cancel",function(){return Pt}),e.d(a,"select",function(){return Ft}),e.d(a,"actionChannel",function(){return De}),e.d(a,"cancelled",function(){return Ct}),e.d(a,"flush",function(){return be}),e.d(a,"getContext",function(){return Fe}),e.d(a,"setContext",function(){return Ne}),e.d(a,"takeEvery",function(){return Hr}),e.d(a,"takeLatest",function(){return _n}),e.d(a,"throttle",function(){return Fr});var n=Object.assign||function(ne){for(var te=1;te=0&&ne.splice(Ie,1)}var A={from:function(te){var Ie=Array(te.length);for(var ze in te)O(te,ze)&&(Ie[ze]=te[ze]);return Ie}};function L(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=n({},ne),Ie=new Promise(function(ze,mt){te.resolve=ze,te.reject=mt});return te.promise=Ie,te}function z(ne){for(var te=[],Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:!0,Ie=void 0,ze=new Promise(function(mt){Ie=setTimeout(function(){return mt(te)},ne)});return ze[i]=function(){return clearTimeout(Ie)},ze}function D(){var ne,te=!0,Ie=void 0,ze=void 0;return ne={},ne[u]=!0,ne.isRunning=function(){return te},ne.result=function(){return Ie},ne.error=function(){return ze},ne.setRunning=function(Ot){return te=Ot},ne.setResult=function(Ot){return Ie=Ot},ne.setError=function(Ot){return ze=Ot},ne}function N(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(){return++ne}}var Oe=N(),ue=function(te){throw te},re=function(te){return{value:te,done:!0}};function ee(ne){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",ze=arguments[3],mt={name:Ie,next:ne,throw:te,return:re};return ze&&(mt[v]=!0),typeof Symbol!="undefined"&&(mt[Symbol.iterator]=function(){return mt}),mt}function J(ne,te){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";typeof window=="undefined"?console.log("redux-saga "+ne+": "+te+` `+(Ie&&Ie.stack||Ie)):console[ne](te,Ie)}function F(ne,te){return function(){return ne.apply(void 0,arguments)}}var Q=function(te,Ie){return te+" has been deprecated in favor of "+Ie+", please update your code"},q=function(te){return new Error(` redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug in redux-saga code and not yours. Thanks for reporting this in the project's github repo. Error: `+te+` `)},He=function(te,Ie){return(te?te+".":"")+"setContext(props): argument "+Ie+" is not a plain object"},Ze=function(te){return function(Ie){return te(Object.defineProperty(Ie,s,{value:!0}))}},ft=function ne(te){return function(){for(var Ie=arguments.length,ze=Array(Ie),mt=0;mt0&&arguments[0]!==void 0?arguments[0]:10,te=arguments[1],Ie=new Array(ne),ze=0,mt=0,Ot=0,Rt=function(ut){Ie[mt]=ut,mt=(mt+1)%ne,ze++},he=function(){if(ze!=0){var ut=Ie[Ot];return Ie[Ot]=null,ze--,Ot=(Ot+1)%ne,ut}},Re=function(){for(var ut=[];ze;)ut.push(he());return ut};return{isEmpty:function(){return ze==0},put:function(ut){if(ze0&&arguments[0]!==void 0?arguments[0]:Ye.fixed(),te=!1,Ie=[];b(ne,C.buffer,V);function ze(){if(te&&Ie.length)throw q("Cannot have a closed channel with pending takers");if(Ie.length&&!ne.isEmpty())throw q("Cannot have pending takers with non empty buffer")}function mt(Re){if(ze(),b(Re,C.notUndef,U),te)return;if(!Ie.length)return ne.put(Re);for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:Ye.none(),Ie=arguments[2];arguments.length>2&&b(Ie,C.func,"Invalid match function passed to eventChannel");var ze=B(te),mt=function(){ze.__closed__||(Ot&&Ot(),ze.close())},Ot=ne(function(Rt){if(ce(Rt)){mt();return}if(Ie&&!Ie(Rt))return;ze.put(Rt)});if(ze.__closed__&&Ot(),!C.func(Ot))throw new Error("in eventChannel: subscribe should return a function to unsubscribe");return{take:ze.take,flush:ze.flush,close:mt}}function S(ne){var te=Ae(function(Ie){return ne(function(ze){if(ze[s]){Ie(ze);return}Ve(function(){return Ie(ze)})})});return ye({},te,{take:function(ze,mt){arguments.length>1&&(b(mt,C.func,"channel.take's matcher argument must be a function"),ze[m]=mt),te.take(ze)}})}var k=t("IO"),ae="TAKE",oe="PUT",le="ALL",K="RACE",P="CALL",T="CPS",$="FORK",se="JOIN",ke="CANCEL",ve="SELECT",Be="ACTION_CHANNEL",it="CANCELLED",We="FLUSH",Et="GET_CONTEXT",Tt="SET_CONTEXT",Ht=` -(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)`,It=function(te,Ie){var ze;return ze={},ze[k]=!0,ze[te]=Ie,ze},tn=function(te){return b(Pe.fork(te),C.object,"detach(eff): argument must be a fork effect"),te[$].detached=!0,te};function qt(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"*";if(arguments.length&&b(arguments[0],C.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),C.pattern(ne))return It(ae,{pattern:ne});if(C.channel(ne))return It(ae,{channel:ne});throw new Error("take(patternOrChannel): argument "+String(ne)+" is not valid channel or a valid pattern")}qt.maybe=function(){var ne=qt.apply(void 0,arguments);return ne[ae].maybe=!0,ne};var gn=F(qt.maybe,Q("takem","take.maybe"));function an(ne,te){return arguments.length>1?(b(ne,C.notUndef,"put(channel, action): argument channel is undefined"),b(ne,C.channel,"put(channel, action): argument "+ne+" is not a valid channel"),b(te,C.notUndef,"put(channel, action): argument action is undefined")):(b(ne,C.notUndef,"put(action): argument action is undefined"),te=ne,ne=null),It(oe,{channel:ne,action:te})}an.resolve=function(){var ne=an.apply(void 0,arguments);return ne[oe].resolve=!0,ne},an.sync=F(an.resolve,Q("put.sync","put.resolve"));function Tn(ne){return It(le,ne)}function on(ne){return It(K,ne)}function En(ne,te,Ie){b(te,C.notUndef,ne+": argument fn is undefined");var ze=null;if(C.array(te)){var mt=te;ze=mt[0],te=mt[1]}else if(te.fn){var Ot=te;ze=Ot.context,te=Ot.fn}return ze&&C.string(te)&&C.func(ze[te])&&(te=ze[te]),b(te,C.func,ne+": argument "+te+" is not a function"),{context:ze,fn:te,args:Ie}}function yn(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze2&&arguments[2]!==void 0?arguments[2]:[];return It(P,En("apply",{context:ne,fn:te},Ie))}function Rn(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze1?te-1:0),ze=1;ze1?te-1:0),ze=1;ze1)return Tn(te.map(function(mt){return bt(mt)}));var ze=te[0];return b(ze,C.notUndef,"join(task): argument task is undefined"),b(ze,C.task,"join(task): argument "+ze+" is not a valid Task object "+Ht),It(se,ze)}function Pt(){for(var ne=arguments.length,te=Array(ne),Ie=0;Ie1)return Tn(te.map(function(mt){return Pt(mt)}));var ze=te[0];return te.length===1&&(b(ze,C.notUndef,"cancel(task): argument task is undefined"),b(ze,C.task,"cancel(task): argument "+ze+" is not a valid Task object "+Ht)),It(ke,ze||d)}function Ft(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze1&&(b(te,C.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),b(te,C.buffer,"actionChannel(pattern, buffer): argument "+te+" is not a valid buffer")),It(Be,{pattern:ne,buffer:te})}function Ct(){return It(it,{})}function be(ne){return b(ne,C.channel,"flush(channel): argument "+ne+" is not valid channel"),It(We,ne)}function Ne(ne){return b(ne,C.string,"getContext(prop): argument "+ne+" is not a string"),It(Et,ne)}function Fe(ne){return b(ne,C.object,He(null,ne)),It(Tt,ne)}var dt=function(te){return function(Ie){return Ie&&Ie[k]&&Ie[te]}},Pe={take:dt(ae),put:dt(oe),all:dt(le),race:dt(K),call:dt(P),cps:dt(T),fork:dt($),join:dt(se),cancel:dt(ke),select:dt(ve),actionChannel:dt(Be),cancelled:dt(it),flush:dt(We),getContext:dt(Et),setContext:dt(Tt)},Ce=Object.assign||function(ne){for(var te=1;te1&&arguments[1]!==void 0?arguments[1]:function(){return h},Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h,ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,mt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},Ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},Rt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,he=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"anonymous",Re=arguments[8];b(ne,C.iterator,Me);var I="[...effects]",ut=F(Gr,Q(I,"all("+I+")")),yt=Ot.sagaMonitor,wt=Ot.logger,Lt=Ot.onError,Nt=wt||J,Vt=function(mn){var fn=mn.sagaStack;!fn&&mn.stack&&(fn=mn.stack.split(` +(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)`,It=function(te,Ie){var ze;return ze={},ze[k]=!0,ze[te]=Ie,ze},tn=function(te){return b(Pe.fork(te),C.object,"detach(eff): argument must be a fork effect"),te[$].detached=!0,te};function qt(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"*";if(arguments.length&&b(arguments[0],C.notUndef,"take(patternOrChannel): patternOrChannel is undefined"),C.pattern(ne))return It(ae,{pattern:ne});if(C.channel(ne))return It(ae,{channel:ne});throw new Error("take(patternOrChannel): argument "+String(ne)+" is not valid channel or a valid pattern")}qt.maybe=function(){var ne=qt.apply(void 0,arguments);return ne[ae].maybe=!0,ne};var gn=F(qt.maybe,Q("takem","take.maybe"));function an(ne,te){return arguments.length>1?(b(ne,C.notUndef,"put(channel, action): argument channel is undefined"),b(ne,C.channel,"put(channel, action): argument "+ne+" is not a valid channel"),b(te,C.notUndef,"put(channel, action): argument action is undefined")):(b(ne,C.notUndef,"put(action): argument action is undefined"),te=ne,ne=null),It(oe,{channel:ne,action:te})}an.resolve=function(){var ne=an.apply(void 0,arguments);return ne[oe].resolve=!0,ne},an.sync=F(an.resolve,Q("put.sync","put.resolve"));function Tn(ne){return It(le,ne)}function on(ne){return It(K,ne)}function En(ne,te,Ie){b(te,C.notUndef,ne+": argument fn is undefined");var ze=null;if(C.array(te)){var mt=te;ze=mt[0],te=mt[1]}else if(te.fn){var Ot=te;ze=Ot.context,te=Ot.fn}return ze&&C.string(te)&&C.func(ze[te])&&(te=ze[te]),b(te,C.func,ne+": argument "+te+" is not a function"),{context:ze,fn:te,args:Ie}}function yn(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze2&&arguments[2]!==void 0?arguments[2]:[];return It(P,En("apply",{context:ne,fn:te},Ie))}function Rn(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze1?te-1:0),ze=1;ze1?te-1:0),ze=1;ze1)return Tn(te.map(function(mt){return bt(mt)}));var ze=te[0];return b(ze,C.notUndef,"join(task): argument task is undefined"),b(ze,C.task,"join(task): argument "+ze+" is not a valid Task object "+Ht),It(se,ze)}function Pt(){for(var ne=arguments.length,te=Array(ne),Ie=0;Ie1)return Tn(te.map(function(mt){return Pt(mt)}));var ze=te[0];return te.length===1&&(b(ze,C.notUndef,"cancel(task): argument task is undefined"),b(ze,C.task,"cancel(task): argument "+ze+" is not a valid Task object "+Ht)),It(ke,ze||d)}function Ft(ne){for(var te=arguments.length,Ie=Array(te>1?te-1:0),ze=1;ze1&&(b(te,C.notUndef,"actionChannel(pattern, buffer): argument buffer is undefined"),b(te,C.buffer,"actionChannel(pattern, buffer): argument "+te+" is not a valid buffer")),It(Be,{pattern:ne,buffer:te})}function Ct(){return It(it,{})}function be(ne){return b(ne,C.channel,"flush(channel): argument "+ne+" is not valid channel"),It(We,ne)}function Fe(ne){return b(ne,C.string,"getContext(prop): argument "+ne+" is not a string"),It(Et,ne)}function Ne(ne){return b(ne,C.object,He(null,ne)),It(Tt,ne)}var dt=function(te){return function(Ie){return Ie&&Ie[k]&&Ie[te]}},Pe={take:dt(ae),put:dt(oe),all:dt(le),race:dt(K),call:dt(P),cps:dt(T),fork:dt($),join:dt(se),cancel:dt(ke),select:dt(ve),actionChannel:dt(Be),cancelled:dt(it),flush:dt(We),getContext:dt(Et),setContext:dt(Tt)},Ce=Object.assign||function(ne){for(var te=1;te1&&arguments[1]!==void 0?arguments[1]:function(){return h},Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h,ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,mt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},Ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},Rt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,he=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"anonymous",Re=arguments[8];b(ne,C.iterator,Me);var I="[...effects]",ut=F(Gr,Q(I,"all("+I+")")),yt=Ot.sagaMonitor,wt=Ot.logger,Lt=Ot.onError,Nt=wt||J,Vt=function(mn){var fn=mn.sagaStack;!fn&&mn.stack&&(fn=mn.stack.split(` `)[0].indexOf(mn.message)!==-1?mn.stack:"Error: "+mn.message+` `+mn.stack),Nt("error","uncaught at "+he,fn||mn.message||mn)},pn=S(te),kt=Object.create(mt);er.cancel=h;var Xt=ea(Rt,he,ne,Re),Jt={name:he,cancel:Cn,isRunning:!0},xn=xt(he,Jt,sr);function Cn(){Jt.isRunning&&!Jt.isCancelled&&(Jt.isCancelled=!0,er(Xe))}function or(){ne._isRunning&&!ne._isCancelled&&(ne._isCancelled=!0,xn.cancelAll(),sr(Xe))}return Re&&(Re.cancel=or),ne._isRunning=!0,er(),Xt;function er(Qt,mn){if(!Jt.isRunning)throw new Error("Trying to resume an already finished generator");try{var fn=void 0;mn?fn=ne.throw(Qt):Qt===Xe?(Jt.isCancelled=!0,er.cancel(),fn=C.func(ne.return)?ne.return(Xe):{done:!0,value:Xe}):Qt===Z?fn=C.func(ne.return)?ne.return():{done:!0}:fn=ne.next(Qt),fn.done?(Jt.isMainRunning=!1,Jt.cont&&Jt.cont(fn.value)):ir(fn.value,Rt,"",er)}catch(Un){Jt.isCancelled&&Vt(Un),Jt.isMainRunning=!1,Jt.cont(Un,!0)}}function sr(Qt,mn){ne._isRunning=!1,pn.close(),mn?(Qt instanceof Error&&Object.defineProperty(Qt,"sagaStack",{value:"at "+he+` `+(Qt.sagaStack||Qt.stack),configurable:!0}),Xt.cont||(Qt instanceof Error&&Lt?Lt(Qt):Vt(Qt)),ne._error=Qt,ne._isAborted=!0,ne._deferredEnd&&ne._deferredEnd.reject(Qt)):(ne._result=Qt,ne._deferredEnd&&ne._deferredEnd.resolve(Qt)),Xt.cont&&Xt.cont(Qt,mn),Xt.joiners.forEach(function(fn){return fn.cb(Qt,mn)}),Xt.joiners=null}function ir(Qt,mn){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",Un=arguments[3],Dn=Oe();yt&&yt.effectTriggered({effectId:Dn,parentEffectId:mn,label:fn,effect:Qt});var An=void 0;function jn(pt,Yt){if(An)return;An=!0,Un.cancel=h,yt&&(Yt?yt.effectRejected(Dn,pt):yt.effectResolved(Dn,pt)),Un(pt,Yt)}jn.cancel=h,Un.cancel=function(){if(An)return;An=!0;try{jn.cancel()}catch(pt){Vt(pt)}jn.cancel=h,yt&&yt.effectCancelled(Dn)};var nt=void 0;return C.promise(Qt)?gr(Qt,jn):C.helper(Qt)?Dr(ln(Qt),Dn,jn):C.iterator(Qt)?Vr(Qt,Dn,he,jn):C.array(Qt)?ut(Qt,Dn,jn):(nt=Pe.take(Qt))?$r(nt,jn):(nt=Pe.put(Qt))?na(nt,jn):(nt=Pe.all(Qt))?Gr(nt,Dn,jn):(nt=Pe.race(Qt))?qr(nt,Dn,jn):(nt=Pe.call(Qt))?Zr(nt,Dn,jn):(nt=Pe.cps(Qt))?_r(nt,jn):(nt=Pe.fork(Qt))?Dr(nt,Dn,jn):(nt=Pe.join(Qt))?Br(nt,jn):(nt=Pe.cancel(Qt))?Pr(nt,jn):(nt=Pe.select(Qt))?ra(nt,jn):(nt=Pe.actionChannel(Qt))?ca(nt,jn):(nt=Pe.flush(Qt))?Ar(nt,jn):(nt=Pe.cancelled(Qt))?Ir(nt,jn):(nt=Pe.getContext(Qt))?aa(nt,jn):(nt=Pe.setContext(Qt))?oa(nt,jn):jn(Qt)}function gr(Qt,mn){var fn=Qt[i];C.func(fn)?mn.cancel=fn:C.func(Qt.abort)&&(mn.cancel=function(){return Qt.abort()}),Qt.then(mn,function(Un){return mn(Un,!0)})}function Vr(Qt,mn,fn,Un){nn(Qt,te,Ie,ze,kt,Ot,mn,fn,Un)}function $r(Qt,mn){var fn=Qt.channel,Un=Qt.pattern,Dn=Qt.maybe;fn=fn||pn;var An=function(nt){return nt instanceof Error?mn(nt,!0):ce(nt)&&!Dn?mn(Z):mn(nt)};try{fn.take(An,Mt(Un))}catch(jn){return mn(jn,!0)}mn.cancel=An.cancel}function na(Qt,mn){var fn=Qt.channel,Un=Qt.action,Dn=Qt.resolve;Ve(function(){var An=void 0;try{An=(fn?fn.put:Ie)(Un)}catch(jn){if(fn||Dn)return mn(jn,!0);Vt(jn)}if(Dn&&C.promise(An))gr(An,mn);else return mn(An)})}function Zr(Qt,mn,fn){var Un=Qt.context,Dn=Qt.fn,An=Qt.args,jn=void 0;try{jn=Dn.apply(Un,An)}catch(nt){return fn(nt,!0)}return C.promise(jn)?gr(jn,fn):C.iterator(jn)?Vr(jn,mn,Dn.name,fn):fn(jn)}function _r(Qt,mn){var fn=Qt.context,Un=Qt.fn,Dn=Qt.args;try{var An=function(nt,pt){return C.undef(nt)?mn(pt):mn(nt,!0)};Un.apply(fn,Dn.concat(An)),An.cancel&&(mn.cancel=function(){return An.cancel()})}catch(jn){return mn(jn,!0)}}function Dr(Qt,mn,fn){var Un=Qt.context,Dn=Qt.fn,An=Qt.args,jn=Qt.detached,nt=Gt({context:Un,fn:Dn,args:An});try{tt();var pt=nn(nt,te,Ie,ze,kt,Ot,mn,Dn.name,jn?null:h);jn?fn(pt):nt._isRunning?(xn.addTask(pt),fn(pt)):nt._error?xn.abort(nt._error):fn(pt)}finally{ge()}}function Br(Qt,mn){if(Qt.isRunning()){var fn={task:Xt,cb:mn};mn.cancel=function(){return w(Qt.joiners,fn)},Qt.joiners.push(fn)}else Qt.isAborted()?mn(Qt.error(),!0):mn(Qt.result())}function Pr(Qt,mn){Qt===d&&(Qt=Xt),Qt.isRunning()&&Qt.cancel(),mn()}function Gr(Qt,mn,fn){var Un=Object.keys(Qt);if(!Un.length)return fn(C.array(Qt)?[]:{});var Dn=0,An=void 0,jn={},nt={};function pt(){Dn===Un.length&&(An=!0,fn(C.array(Qt)?A.from(Ce({},jn,{length:Un.length})):jn))}Un.forEach(function(Yt){var Se=function(Kr,sa){if(An)return;sa||ce(Kr)||Kr===Z||Kr===Xe?(fn.cancel(),fn(Kr,sa)):(jn[Yt]=Kr,Dn++,pt())};Se.cancel=h,nt[Yt]=Se}),fn.cancel=function(){An||(An=!0,Un.forEach(function(Yt){return nt[Yt].cancel()}))},Un.forEach(function(Yt){return ir(Qt[Yt],mn,Yt,nt[Yt])})}function qr(Qt,mn,fn){var Un=void 0,Dn=Object.keys(Qt),An={};Dn.forEach(function(jn){var nt=function(Yt,Se){if(Un)return;if(Se)fn.cancel(),fn(Yt,!0);else if(!ce(Yt)&&Yt!==Z&&Yt!==Xe){var vr;fn.cancel(),Un=!0;var Kr=(vr={},vr[jn]=Yt,vr);fn(C.array(Qt)?[].slice.call(Ce({},Kr,{length:Dn.length})):Kr)}};nt.cancel=h,An[jn]=nt}),fn.cancel=function(){Un||(Un=!0,Dn.forEach(function(jn){return An[jn].cancel()}))},Dn.forEach(function(jn){if(Un)return;ir(Qt[jn],mn,jn,An[jn])})}function ra(Qt,mn){var fn=Qt.selector,Un=Qt.args;try{var Dn=fn.apply(void 0,[ze()].concat(Un));mn(Dn)}catch(An){mn(An,!0)}}function ca(Qt,mn){var fn=Qt.pattern,Un=Qt.buffer,Dn=Mt(fn);Dn.pattern=fn,mn(Ae(te,Un||Ye.fixed(),Dn))}function Ir(Qt,mn){mn(!!Jt.isCancelled)}function Ar(Qt,mn){Qt.flush(mn)}function aa(Qt,mn){mn(kt[Qt])}function oa(Qt,mn){M.assign(kt,Qt),mn()}function ea(Qt,mn,fn,Un){var Dn,An,jn;return fn._deferredEnd=null,An={},An[u]=!0,An.id=Qt,An.name=mn,Dn="done",jn={},jn[Dn]=jn[Dn]||{},jn[Dn].get=function(){if(fn._deferredEnd)return fn._deferredEnd.promise;var nt=L();return fn._deferredEnd=nt,fn._isRunning||(fn._error?nt.reject(fn._error):nt.resolve(fn._result)),nt.promise},An.cont=Un,An.joiners=[],An.cancel=or,An.isRunning=function(){return fn._isRunning},An.isCancelled=function(){return fn._isCancelled},An.isAborted=function(){return fn._isAborted},An.result=function(){return fn._result},An.error=function(){return fn._error},An.setContext=function(pt){b(pt,C.object,He("task",pt)),M.assign(kt,pt)},qe(An,jn),An}}var Ln="runSaga(storeInterface, saga, ...args)",bn=Ln+": saga argument must be a Generator function!";function Ke(ne,te){for(var Ie=arguments.length,ze=Array(Ie>2?Ie-2:0),mt=2;mt=0)continue;if(!Object.prototype.hasOwnProperty.call(ne,ze))continue;Ie[ze]=ne[ze]}return Ie}function Ut(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=ne.context,Ie=te===void 0?{}:te,ze=_e(ne,["context"]),mt=ze.sagaMonitor,Ot=ze.logger,Rt=ze.onError;if(C.func(ze))throw new Error("Saga middleware no longer accept Generator functions. Use sagaMiddleware.run instead");if(Ot&&!C.func(Ot))throw new Error("`options.logger` passed to the Saga middleware is not a function!");if(Rt&&!C.func(Rt))throw new Error("`options.onError` passed to the Saga middleware is not a function!");if(ze.emitter&&!C.func(ze.emitter))throw new Error("`options.emitter` passed to the Saga middleware is not a function!");function he(Re){var I=Re.getState,ut=Re.dispatch,yt=Y();return yt.emit=(ze.emitter||c)(yt.emit),he.run=Ke.bind(null,{context:Ie,subscribe:yt.subscribe,dispatch:ut,getState:I,sagaMonitor:mt,logger:Ot,onError:Rt}),function(wt){return function(Lt){mt&&mt.actionDispatched&&mt.actionDispatched(Lt);var Nt=wt(Lt);return yt.emit(Lt),Nt}}}return he.run=function(){throw new Error("Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware")},he.setContext=function(Re){b(Re,C.object,He("sagaMiddleware",Re)),M.assign(Ie,Re)},he}var _={done:!0,value:void 0},Mn={};function Wn(ne){return C.channel(ne)?"channel":Array.isArray(ne)?String(ne.map(function(te){return String(te)})):String(ne)}function kn(ne,te){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"iterator",ze=void 0,mt=te;function Ot(Rt,he){if(mt===Mn)return _;if(he)throw mt=Mn,he;ze&&ze(Rt);var Re=ne[mt](),I=Re[0],ut=Re[1],yt=Re[2];return mt=I,ze=yt,mt===Mn?_:ut}return ee(Ot,function(Rt){return Ot(null,Rt)},Ie,!0)}function Fn(ne,te){for(var Ie=arguments.length,ze=Array(Ie>2?Ie-2:0),mt=2;mt2?Ie-2:0),mt=2;mt3?ze-3:0),Ot=3;Ot2?Ie-2:0),mt=2;mt2?Ie-2:0),mt=2;mt3?ze-3:0),Ot=3;Ot=this._delta8){u=this.pending;var m=u.length%this._delta8;this.pending=u.slice(u.length-m,u.length),this.pending.length===0&&(this.pending=null),u=a.join32(u,0,u.length-m,this.endian);for(var i=0;i>>24&255,i[s++]=u>>>16&255,i[s++]=u>>>8&255,i[s++]=u&255}else for(i[s++]=u&255,i[s++]=u>>>8&255,i[s++]=u>>>16&255,i[s++]=u>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,d=8;d1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){h(O,E,f)&&b.call(c,E,O)},void 0,!0,!0),c}})},"7zRj":function(x,g,e){(function(a){var n=typeof a!="undefined"?a:typeof window!="undefined"?window:{},r=e(3),t;typeof document!="undefined"?t=document:(t=n["__GLOBAL_DOCUMENT_CACHE@4"],t||(t=n["__GLOBAL_DOCUMENT_CACHE@4"]=r)),x.exports=t}).call(this,e("IyRk"))},"8+s/":function(x,g,e){"use strict";function a(i){return i&&typeof i=="object"&&"default"in i?i.default:i}var n=e("q1tI"),r=a(n);function t(i,s,d){return s in i?Object.defineProperty(i,s,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[s]=d,i}function u(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s}var v=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function m(i,s,d){if(typeof i!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof s!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof d!="undefined"&&typeof d!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function l(f){return f.displayName||f.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var h=[],c;function b(){c=i(h.map(function(O){return O.props})),E.canUseDOM?s(c):d&&(c=d(c))}var E=function(O){u(C,O);function C(){return O.apply(this,arguments)||this}C.peek=function(){return c},C.rewind=function(){if(C.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=c;return c=void 0,h=[],A};var M=C.prototype;return M.UNSAFE_componentWillMount=function(){h.push(this),b()},M.componentDidUpdate=function(){b()},M.componentWillUnmount=function(){var A=h.indexOf(this);h.splice(A,1),b()},M.render=function(){return r.createElement(o,this.props)},C}(n.PureComponent);return t(E,"displayName","SideEffect("+l(o)+")"),t(E,"canUseDOM",v),E}}x.exports=m},"80Z6":function(x,g,e){"use strict";var a=e("MMxC"),n=e("cT1L"),r=e("29mP"),t=e("LUyE"),u=e("WJ3H"),v=e("IuhT"),m="No one promise resolved";a({target:"Promise",stat:!0},{any:function(s){var d=this,l=t.f(d),f=l.resolve,o=l.reject,h=u(function(){var c=n(d.resolve),b=[],E=0,O=1,C=!1;v(s,function(M){var w=E++,A=!1;b.push(void 0),O++,c.call(d,M).then(function(L){if(A||C)return;C=!0,f(L)},function(L){if(A||C)return;A=!0,b[w]=L,--O||o(new(r("AggregateError"))(b,m))})}),--O||o(new(r("AggregateError"))(b,m))});return h.error&&o(h.value),l.promise}})},"85Yc":function(x,g,e){"use strict";e.r(g),e.d(g,"Field",function(){return Ve}),e.d(g,"List",function(){return ht}),e.d(g,"useForm",function(){return V}),e.d(g,"FormProvider",function(){return B});var a=e("q1tI"),n=e("Ff2n"),r=e("rePB"),t=e("VTBJ"),u=e("KQm4"),v=e("1OyB"),m=e("vuIU"),i=e("Ji7U"),s=e("LK+K"),d=e("Zm9Q"),l=e("Kwbf"),f=e("KW7l");function o(K){return K==null?[]:Array.isArray(K)?K:[K]}var h=e("o0o1"),c=e.n(h),b=e("HaE+"),E=e("U8pU"),O=e("KpVd");function C(K,P){for(var T=K,$=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return P.length&&$&&T===void 0&&!C(K,P.slice(0,-1))?K:w(K,P,T,$)}function L(K){return o(K)}function z(K,P){var T=C(K,P);return T}function G(K,P,T){var $=A(K,P,T);return $}function D(K,P){var T={};return P.forEach(function($){var se=z(K,$);T=G(T,$,se)}),T}function N(K,P){return K&&K.some(function(T){return ee(T,P)})}function Oe(K){return Object(E.a)(K)==="object"&&K!==null&&Object.getPrototypeOf(K)===Object.prototype}function ue(K,P){var T=Array.isArray(K)?Object(u.a)(K):Object(t.a)({},K);return P&&Object.keys(P).forEach(function($){var se=T[$],ke=P[$],ve=Oe(se)&&Oe(ke);T[$]=ve?ue(se,ke||{}):ke}),T}function re(K){for(var P=arguments.length,T=new Array(P>1?P-1:0),$=1;$=$||T<0||T>=$)return K;var se=K[P],ke=P-T;return ke>0?[].concat(Object(u.a)(K.slice(0,T)),[se],Object(u.a)(K.slice(T,P)),Object(u.a)(K.slice(P+1,$))):ke<0?[].concat(Object(u.a)(K.slice(0,P)),Object(u.a)(K.slice(P+1,T+1)),[se],Object(u.a)(K.slice(T+1,$))):K}var q="'${name}' is not a valid ${type}",He={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ze=O.a;function ft(K,P){return K.replace(/\$\{\w+\}/g,function(T){var $=T.slice(2,-1);return P[$]})}function $e(K,P,T,$){var se=Object(t.a)(Object(t.a)({},T),{},{name:P,enum:(T.enum||[]).join(", ")}),ke=function(it,We){return function(){return ft(it,Object(t.a)(Object(t.a)({},se),We))}};function ve(Be){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Be).forEach(function(We){var Et=Be[We];typeof Et=="string"?it[We]=ke(Et,$):Et&&Object(E.a)(Et)==="object"?(it[We]={},ve(Et,it[We])):it[We]=Et}),it}return ve(re({},He,K))}function Ue(K,P,T,$,se){return X.apply(this,arguments)}function X(){return X=Object(b.a)(c.a.mark(function K(P,T,$,se,ke){var ve,Be,it,We,Et,Tt;return c.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return ve=Object(t.a)({},$),Be=null,ve&&ve.type==="array"&&ve.defaultField&&(Be=ve.defaultField,delete ve.defaultField),it=new Ze(Object(r.a)({},P,[ve])),We=$e(se.validateMessages,P,ve,ke),it.messages(We),Et=[],It.prev=7,It.next=10,Promise.resolve(it.validate(Object(r.a)({},P,T),Object(t.a)({},se)));case 10:It.next=15;break;case 12:It.prev=12,It.t0=It.catch(7),It.t0.errors?Et=It.t0.errors.map(function(tn,qt){var gn=tn.message;return a.isValidElement(gn)?a.cloneElement(gn,{key:"error_".concat(qt)}):gn}):(console.error(It.t0),Et=[We.default()]);case 15:if(!(!Et.length&&Be)){It.next=20;break}return It.next=18,Promise.all(T.map(function(tn,qt){return Ue("".concat(P,".").concat(qt),tn,Be,se,ke)}));case 18:return Tt=It.sent,It.abrupt("return",Tt.reduce(function(tn,qt){return[].concat(Object(u.a)(tn),Object(u.a)(qt))},[]));case 20:return It.abrupt("return",Et);case 21:case"end":return It.stop()}},K,null,[[7,12]])})),X.apply(this,arguments)}function me(K,P,T,$,se,ke){var ve=K.join("."),Be=T.map(function(Et){var Tt=Et.validator;return Tt?Object(t.a)(Object(t.a)({},Et),{},{validator:function(It,tn,qt){var gn=!1,an=function(){for(var En=arguments.length,yn=new Array(En),vn=0;vn0&&arguments[0]!==void 0?arguments[0]:[];$.validatePromise===It&&($.validatePromise=null,$.errors=tn,$.reRender())}),It},$.isFieldValidating=function(){return!!$.validatePromise},$.isFieldTouched=function(){return $.touched},$.isFieldDirty=function(){return $.dirty},$.getErrors=function(){return $.errors},$.getMeta=function(){$.prevValidating=$.isFieldValidating();var se={touched:$.isFieldTouched(),validating:$.prevValidating,errors:$.errors,name:$.getNamePath()};return se},$.getOnlyChild=function(se){if(typeof se=="function"){var ke=$.getMeta();return Object(t.a)(Object(t.a)({},$.getOnlyChild(se($.getControlled(),ke,$.context))),{},{isFunction:!0})}var ve=Object(d.a)(se);return ve.length!==1||!a.isValidElement(ve[0])?{child:ve,isFunction:!1}:{child:ve[0],isFunction:!1}},$.getValue=function(se){var ke=$.context.getFieldsValue,ve=$.getNamePath();return z(se||ke(!0),ve)},$.getControlled=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=$.props,ve=ke.trigger,Be=ke.validateTrigger,it=ke.getValueFromEvent,We=ke.normalize,Et=ke.valuePropName,Tt=ke.getValueProps,Ht=Be!==void 0?Be:$.context.validateTrigger,It=$.getNamePath(),tn=$.context,qt=tn.getInternalHooks,gn=tn.getFieldsValue,an=qt(f.a),Tn=an.dispatch,on=$.getValue(),En=Tt||function(Pn){return Object(r.a)({},Et,Pn)},yn=se[ve],vn=Object(t.a)(Object(t.a)({},se),En(on));vn[ve]=function(){$.touched=!0,$.dirty=!0;for(var Pn,St=arguments.length,bt=new Array(St),Pt=0;Pt=0&&En<=yn.length?(ve.keys=[].concat(Object(u.a)(ve.keys.slice(0,En)),[ve.id],Object(u.a)(ve.keys.slice(En))),It([].concat(Object(u.a)(yn.slice(0,En)),[on],Object(u.a)(yn.slice(En))))):(ve.keys=[].concat(Object(u.a)(ve.keys),[ve.id]),It([].concat(Object(u.a)(yn),[on]))),ve.id+=1},remove:function(on){var En=qt(),yn=new Set(Array.isArray(on)?on:[on]);if(yn.size<=0)return;ve.keys=ve.keys.filter(function(vn,Rn){return!yn.has(Rn)}),It(En.filter(function(vn,Rn){return!yn.has(Rn)}))},move:function(on,En){if(on===En)return;var yn=qt();if(on<0||on>=yn.length||En<0||En>=yn.length)return;ve.keys=Q(ve.keys,on,En),It(Q(yn,on,En))}},an=Ht||[];return Array.isArray(an)||(an=[]),$(an.map(function(Tn,on){var En=ve.keys[on];return En===void 0&&(ve.keys[on]=ve.id,En=ve.keys[on],ve.id+=1),{name:on,key:En,isListField:!0}}),gn)}))},ht=tt,ge=e("ODXe");function ye(K){var P=!1,T=K.length,$=[];return K.length?new Promise(function(se,ke){K.forEach(function(ve,Be){ve.catch(function(it){return P=!0,it}).then(function(it){if(T-=1,$[Be]=it,T>0)return;P&&ke($),se($)})})}):Promise.resolve([])}var je=function(){function K(){Object(v.a)(this,K),this.list=[]}return Object(m.a)(K,[{key:"set",value:function(T,$){var se=this.list.findIndex(function(ke){return ee(ke.key,T)});se!==-1?this.list[se].value=$:this.list.push({key:T,value:$})}},{key:"get",value:function(T){var $=this.list.find(function(se){return ee(se.key,T)});return $&&$.value}},{key:"update",value:function(T,$){var se=this.get(T),ke=$(se);ke?this.set(T,ke):this.delete(T)}},{key:"delete",value:function(T){this.list=this.list.filter(function($){return!ee($.key,T)})}},{key:"map",value:function(T){return this.list.map(T)}},{key:"toJSON",value:function(){var T={};return this.map(function($){var se=$.key,ke=$.value;return T[se.join(".")]=ke,null}),T}}]),K}(),we=je,ce=function K(P){var T=this;Object(v.a)(this,K),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:T.getFieldValue,getFieldsValue:T.getFieldsValue,getFieldError:T.getFieldError,getFieldsError:T.getFieldsError,isFieldsTouched:T.isFieldsTouched,isFieldTouched:T.isFieldTouched,isFieldValidating:T.isFieldValidating,isFieldsValidating:T.isFieldsValidating,resetFields:T.resetFields,setFields:T.setFields,setFieldsValue:T.setFieldsValue,validateFields:T.validateFields,submit:T.submit,getInternalHooks:T.getInternalHooks}},this.getInternalHooks=function($){return $===f.a?(T.formHooked=!0,{dispatch:T.dispatch,registerField:T.registerField,useSubscribe:T.useSubscribe,setInitialValues:T.setInitialValues,setCallbacks:T.setCallbacks,setValidateMessages:T.setValidateMessages,getFields:T.getFields,setPreserve:T.setPreserve}):(Object(l.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function($){T.subscribable=$},this.setInitialValues=function($,se){T.initialValues=$||{},se&&(T.store=re({},$,T.store))},this.getInitialValue=function($){return z(T.initialValues,$)},this.setCallbacks=function($){T.callbacks=$},this.setValidateMessages=function($){T.validateMessages=$},this.setPreserve=function($){T.preserve=$},this.timeoutId=null,this.warningUnhooked=function(){},this.getFieldEntities=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return $?T.fieldEntities.filter(function(se){return se.getNamePath().length}):T.fieldEntities},this.getFieldsMap=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,se=new we;return T.getFieldEntities($).forEach(function(ke){var ve=ke.getNamePath();se.set(ve,ke)}),se},this.getFieldEntitiesForNamePathList=function($){if(!$)return T.getFieldEntities(!0);var se=T.getFieldsMap(!0);return $.map(function(ke){var ve=L(ke);return se.get(ve)||{INVALIDATE_NAME_PATH:L(ke)}})},this.getFieldsValue=function($,se){if(T.warningUnhooked(),$===!0&&!se)return T.store;var ke=T.getFieldEntitiesForNamePathList(Array.isArray($)?$:null),ve=[];return ke.forEach(function(Be){var it="INVALIDATE_NAME_PATH"in Be?Be.INVALIDATE_NAME_PATH:Be.getNamePath();if(!se)ve.push(it);else{var We="getMeta"in Be?Be.getMeta():null;se(We)&&ve.push(it)}}),D(T.store,ve.map(L))},this.getFieldValue=function($){T.warningUnhooked();var se=L($);return z(T.store,se)},this.getFieldsError=function($){T.warningUnhooked();var se=T.getFieldEntitiesForNamePathList($);return se.map(function(ke,ve){return ke&&!("INVALIDATE_NAME_PATH"in ke)?{name:ke.getNamePath(),errors:ke.getErrors()}:{name:L($[ve]),errors:[]}})},this.getFieldError=function($){T.warningUnhooked();var se=L($),ke=T.getFieldsError([se])[0];return ke.errors},this.isFieldsTouched=function(){T.warningUnhooked();for(var $=arguments.length,se=new Array($),ke=0;ke<$;ke++)se[ke]=arguments[ke];var ve=se[0],Be=se[1],it,We=!1;se.length===0?it=null:se.length===1?Array.isArray(ve)?(it=ve.map(L),We=!1):(it=null,We=ve):(it=ve.map(L),We=Be);var Et=function(Ht){if(!it)return Ht.isFieldTouched();var It=Ht.getNamePath();return N(it,It)?Ht.isFieldTouched():We};return We?T.getFieldEntities(!0).every(Et):T.getFieldEntities(!0).some(Et)},this.isFieldTouched=function($){return T.warningUnhooked(),T.isFieldsTouched([$])},this.isFieldsValidating=function($){T.warningUnhooked();var se=T.getFieldEntities();if(!$)return se.some(function(ve){return ve.isFieldValidating()});var ke=$.map(L);return se.some(function(ve){var Be=ve.getNamePath();return N(ke,Be)&&ve.isFieldValidating()})},this.isFieldValidating=function($){return T.warningUnhooked(),T.isFieldsValidating([$])},this.resetWithFieldInitialValue=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=new we,ke=T.getFieldEntities(!0);ke.forEach(function(it){var We=it.props.initialValue,Et=it.getNamePath();if(We!==void 0){var Tt=se.get(Et)||new Set;Tt.add({entity:it,value:We}),se.set(Et,Tt)}});var ve=function(We){We.forEach(function(Et){var Tt=Et.props.initialValue;if(Tt!==void 0){var Ht=Et.getNamePath(),It=T.getInitialValue(Ht);if(It!==void 0)Object(l.a)(!1,"Form already set 'initialValues' with path '".concat(Ht.join("."),"'. Field can not overwrite it."));else{var tn=se.get(Ht);if(tn&&tn.size>1)Object(l.a)(!1,"Multiple Field with path '".concat(Ht.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(tn){var qt=T.getFieldValue(Ht);(!$.skipExist||qt===void 0)&&(T.store=G(T.store,Ht,Object(u.a)(tn)[0].value))}}}})},Be;$.entities?Be=$.entities:$.namePathList?(Be=[],$.namePathList.forEach(function(it){var We=se.get(it);if(We){var Et;(Et=Be).push.apply(Et,Object(u.a)(Object(u.a)(We).map(function(Tt){return Tt.entity})))}})):Be=ke,ve(Be)},this.resetFields=function($){T.warningUnhooked();var se=T.store;if(!$){T.store=re({},T.initialValues),T.resetWithFieldInitialValue(),T.notifyObservers(se,null,{type:"reset"});return}var ke=$.map(L);ke.forEach(function(ve){var Be=T.getInitialValue(ve);T.store=G(T.store,ve,Be)}),T.resetWithFieldInitialValue({namePathList:ke}),T.notifyObservers(se,ke,{type:"reset"})},this.setFields=function($){T.warningUnhooked();var se=T.store;$.forEach(function(ke){var ve=ke.name,Be=ke.errors,it=Object(n.a)(ke,["name","errors"]),We=L(ve);"value"in it&&(T.store=G(T.store,We,it.value)),T.notifyObservers(se,[We],{type:"setField",data:ke})})},this.getFields=function(){var $=T.getFieldEntities(!0),se=$.map(function(ke){var ve=ke.getNamePath(),Be=ke.getMeta(),it=Object(t.a)(Object(t.a)({},Be),{},{name:ve,value:T.getFieldValue(ve)});return Object.defineProperty(it,"originRCField",{value:!0}),it});return se},this.registerField=function($){if(T.fieldEntities.push($),$.props.initialValue!==void 0){var se=T.store;T.resetWithFieldInitialValue({entities:[$],skipExist:!0}),T.notifyObservers(se,[$.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(ke,ve){T.fieldEntities=T.fieldEntities.filter(function(We){return We!==$});var Be=ve!==void 0?ve:T.preserve;if(Be===!1&&!ke){var it=$.getNamePath();T.getFieldValue(it)!==void 0&&(T.store=G(T.store,it,void 0))}}},this.dispatch=function($){switch($.type){case"updateValue":{var se=$.namePath,ke=$.value;T.updateValue(se,ke);break}case"validateField":{var ve=$.namePath,Be=$.triggerName;T.validateFields([ve],{triggerName:Be});break}default:}},this.notifyObservers=function($,se,ke){if(T.subscribable){var ve=Object(t.a)(Object(t.a)({},ke),{},{store:T.getFieldsValue(!0)});T.getFieldEntities().forEach(function(Be){var it=Be.onStoreChange;it($,se,ve)})}else T.forceRootUpdate()},this.updateValue=function($,se){var ke=L($),ve=T.store;T.store=G(T.store,ke,se),T.notifyObservers(ve,[ke],{type:"valueUpdate",source:"internal"});var Be=T.getDependencyChildrenFields(ke);T.validateFields(Be),T.notifyObservers(ve,Be,{type:"dependenciesUpdate",relatedFields:[ke].concat(Object(u.a)(Be))});var it=T.callbacks.onValuesChange;if(it){var We=D(T.store,[ke]);it(We,T.store)}T.triggerOnFieldsChange([ke].concat(Object(u.a)(Be)))},this.setFieldsValue=function($){T.warningUnhooked();var se=T.store;$&&(T.store=re(T.store,$)),T.notifyObservers(se,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function($){var se=new Set,ke=[],ve=new we;T.getFieldEntities().forEach(function(it){var We=it.props.dependencies;(We||[]).forEach(function(Et){var Tt=L(Et);ve.update(Tt,function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Ht.add(it),Ht})})});var Be=function it(We){var Et=ve.get(We)||new Set;Et.forEach(function(Tt){if(!se.has(Tt)){se.add(Tt);var Ht=Tt.getNamePath();Tt.isFieldDirty()&&Ht.length&&(ke.push(Ht),it(Ht))}})};return Be($),ke},this.triggerOnFieldsChange=function($,se){var ke=T.callbacks.onFieldsChange;if(ke){var ve=T.getFields();if(se){var Be=new we;se.forEach(function(We){var Et=We.name,Tt=We.errors;Be.set(Et,Tt)}),ve.forEach(function(We){We.errors=Be.get(We.name)||We.errors})}var it=ve.filter(function(We){var Et=We.name;return N($,Et)});ke(it,ve)}},this.validateFields=function($,se){T.warningUnhooked();var ke=!!$,ve=ke?$.map(L):[],Be=[];T.getFieldEntities(!0).forEach(function(Et){if(ke||ve.push(Et.getNamePath()),!Et.props.rules||!Et.props.rules.length)return;var Tt=Et.getNamePath();if(!ke||N(ve,Tt)){var Ht=Et.validateRules(Object(t.a)({validateMessages:Object(t.a)(Object(t.a)({},He),T.validateMessages)},se));Be.push(Ht.then(function(){return{name:Tt,errors:[]}}).catch(function(It){return Promise.reject({name:Tt,errors:It})}))}});var it=ye(Be);T.lastValidatePromise=it,it.catch(function(Et){return Et}).then(function(Et){var Tt=Et.map(function(Ht){var It=Ht.name;return It});T.notifyObservers(T.store,Tt,{type:"validateFinish"}),T.triggerOnFieldsChange(Tt,Et)});var We=it.then(function(){return T.lastValidatePromise===it?Promise.resolve(T.getFieldsValue(ve)):Promise.reject([])}).catch(function(Et){var Tt=Et.filter(function(Ht){return Ht&&Ht.errors.length});return Promise.reject({values:T.getFieldsValue(ve),errorFields:Tt,outOfDate:T.lastValidatePromise!==it})});return We.catch(function(Et){return Et}),We},this.submit=function(){T.warningUnhooked(),T.validateFields().then(function($){var se=T.callbacks.onFinish;if(se)try{se($)}catch(ke){console.error(ke)}}).catch(function($){var se=T.callbacks.onFinishFailed;se&&se($)})},this.forceRootUpdate=P};function Y(K){var P=a.useRef(),T=a.useState(),$=Object(ge.a)(T,2),se=$[1];if(!P.current)if(K)P.current=K;else{var ke=function(){se({})},ve=new ce(ke);P.current=ve.getForm()}return[P.current]}var V=Y,U=a.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),B=function(P){var T=P.validateMessages,$=P.onFormChange,se=P.onFormFinish,ke=P.children,ve=a.useContext(U),Be=a.useRef({});return a.createElement(U.Provider,{value:Object(t.a)(Object(t.a)({},ve),{},{validateMessages:Object(t.a)(Object(t.a)({},ve.validateMessages),T),triggerFormChange:function(We,Et){$&&$(We,{changedFields:Et,forms:Be.current}),ve.triggerFormChange(We,Et)},triggerFormFinish:function(We,Et){se&&se(We,{values:Et,forms:Be.current}),ve.triggerFormFinish(We,Et)},registerForm:function(We,Et){We&&(Be.current=Object(t.a)(Object(t.a)({},Be.current),{},Object(r.a)({},We,Et))),ve.registerForm(We,Et)},unregisterForm:function(We){var Et=Object(t.a)({},Be.current);delete Et[We],Be.current=Et,ve.unregisterForm(We)}})},ke)},Ae=U,S=function(P,T){var $=P.name,se=P.initialValues,ke=P.fields,ve=P.form,Be=P.preserve,it=P.children,We=P.component,Et=We===void 0?"form":We,Tt=P.validateMessages,Ht=P.validateTrigger,It=Ht===void 0?"onChange":Ht,tn=P.onValuesChange,qt=P.onFieldsChange,gn=P.onFinish,an=P.onFinishFailed,Tn=Object(n.a)(P,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),on=a.useContext(Ae),En=V(ve),yn=Object(ge.a)(En,1),vn=yn[0],Rn=vn.getInternalHooks(f.a),Pn=Rn.useSubscribe,St=Rn.setInitialValues,bt=Rn.setCallbacks,Pt=Rn.setValidateMessages,Ft=Rn.setPreserve;a.useImperativeHandle(T,function(){return vn}),a.useEffect(function(){return on.registerForm($,vn),function(){on.unregisterForm($)}},[on,vn,$]),Pt(Object(t.a)(Object(t.a)({},on.validateMessages),Tt)),bt({onValuesChange:tn,onFieldsChange:function(ct){if(on.triggerFormChange($,ct),qt){for(var qe=arguments.length,Me=new Array(qe>1?qe-1:0),Z=1;Zd;)s.push(String(v[d++])),d1?arguments[1]:void 0)})},"8OGu":function(x,g,e){var a=e("I65O");a("isConcatSpreadable")},"8OQS":function(x,g){function e(a,n){if(a==null)return{};var r={},t=Object.keys(a),u,v;for(v=0;v=0)continue;r[u]=a[u]}return r}x.exports=e,x.exports.__esModule=!0,x.exports.default=x.exports},"8OQV":function(x,g,e){var a=e("ukPv"),n=e("MVys"),r=e("GPrf"),t=e("FVwB").NATIVE_ARRAY_BUFFER_VIEWS,u=a.ArrayBuffer,v=a.Int8Array;x.exports=!t||!n(function(){v(1)})||!n(function(){new v(-1)})||!r(function(m){new v,new v(null),new v(1.5),new v(m)},!0)||n(function(){return new v(new u(2),1,void 0).length!==1})},"8Ubs":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"Map",stat:!0},{from:n})},"8XRh":function(x,g,e){"use strict";e.r(g),e.d(g,"CSSMotionList",function(){return W});var a=e("rePB"),n=e("VTBJ"),r=e("1OyB"),t=e("vuIU"),u=e("JX7q"),v=e("Ji7U"),m=e("LK+K"),i=e("U8pU"),s=e("q1tI"),d=e("m+aA"),l=e("c+Xe"),f=e("TSYQ"),o=e.n(f),h=e("xEkU"),c=e.n(h),b=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function E(Ye,fe){var rt={};return rt[Ye.toLowerCase()]=fe.toLowerCase(),rt["Webkit".concat(Ye)]="webkit".concat(fe),rt["Moz".concat(Ye)]="moz".concat(fe),rt["ms".concat(Ye)]="MS".concat(fe),rt["O".concat(Ye)]="o".concat(fe.toLowerCase()),rt}function O(Ye,fe){var rt={animationend:E("Animation","AnimationEnd"),transitionend:E("Transition","TransitionEnd")};return Ye&&("AnimationEvent"in fe||delete rt.animationend.animation,"TransitionEvent"in fe||delete rt.transitionend.transition),rt}var C=O(b,typeof window!="undefined"?window:{}),M={};if(b){var w=document.createElement("div");M=w.style}var A={};function L(Ye){if(A[Ye])return A[Ye];var fe=C[Ye];if(fe)for(var rt=Object.keys(fe),Te=rt.length,Ve=0;Ve0&&(ye.deadlineId=setTimeout(function(){ye.onMotionEnd({deadline:!0})},Y))})},ye.nextFrame=function(je){ye.cancelNextFrame(),ye.raf=c()(je)},ye.cancelNextFrame=function(){ye.raf&&(c.a.cancel(ye.raf),ye.raf=null)},ye}return Object(t.a)(ge,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var je,we=this.state,ce=we.status,Y=we.statusActive,V=we.statusStyle,U=this.props,B=U.children,Ae=U.motionName,S=U.visible,k=U.removeOnLeave,ae=U.leavedClassName,oe=U.eventProps;return B?ce===Oe||!Te(this.props)?S?B(Object(n.a)({},oe),this.setNodeRef):k?null:B(Object(n.a)(Object(n.a)({},oe),{},{className:ae}),this.setNodeRef):B(Object(n.a)(Object(n.a)({},oe),{},{className:o()(N(Ae,ce),(je={},Object(a.a)(je,N(Ae,"".concat(ce,"-active")),Y),Object(a.a)(je,Ae,typeof Ae=="string"),je)),style:V}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(je,we){var ce=we.prevProps,Y=we.status;if(!Te(je))return{};var V=je.visible,U=je.motionAppear,B=je.motionEnter,Ae=je.motionLeave,S=je.motionLeaveImmediately,k={prevProps:je};return(Y===ue&&!U||Y===re&&!B||Y===ee&&!Ae)&&(k.status=Oe,k.statusActive=!1,k.newStatus=!1),!ce&&V&&U&&(k.status=ue,k.statusActive=!1,k.newStatus=!0),ce&&!ce.visible&&V&&B&&(k.status=re,k.statusActive=!1,k.newStatus=!0),(ce&&ce.visible&&!V&&Ae||!ce&&S&&!V&&Ae)&&(k.status=ee,k.statusActive=!1,k.newStatus=!0),k}}]),ge}(s.Component);return Ve.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},rt?s.forwardRef(function(tt,ht){return s.createElement(Ve,Object.assign({internalRef:ht},tt))}):Ve}var F=J(D),Q=e("Ff2n"),q="add",He="keep",Ze="remove",ft="removed";function $e(Ye){var fe;return Ye&&Object(i.a)(Ye)==="object"&&"key"in Ye?fe=Ye:fe={key:Ye},Object(n.a)(Object(n.a)({},fe),{},{key:String(fe.key)})}function Ue(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ye.map($e)}function X(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=[],Te=0,Ve=fe.length,tt=Ue(Ye),ht=Ue(fe);tt.forEach(function(je){for(var we=!1,ce=Te;ce1});return ye.forEach(function(je){rt=rt.filter(function(we){var ce=we.key,Y=we.status;return ce!==je||Y!==Ze}),rt.forEach(function(we){we.key===je&&(we.status=He)})}),rt}var me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ie(Ye){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F,rt=function(Te){Object(v.a)(tt,Te);var Ve=Object(m.a)(tt);function tt(){var ht;return Object(r.a)(this,tt),ht=Ve.apply(this,arguments),ht.state={keyEntities:[]},ht.removeKey=function(ge){ht.setState(function(ye){var je=ye.keyEntities;return{keyEntities:je.map(function(we){return we.key!==ge?we:Object(n.a)(Object(n.a)({},we),{},{status:ft})})}})},ht}return Object(t.a)(tt,[{key:"render",value:function(){var ge=this,ye=this.state.keyEntities,je=this.props,we=je.component,ce=je.children,Y=Object(Q.a)(je,["component","children"]),V=we||s.Fragment,U={};return me.forEach(function(B){U[B]=Y[B],delete Y[B]}),delete Y.keys,s.createElement(V,Object.assign({},Y),ye.map(function(B){var Ae=B.status,S=Object(Q.a)(B,["status"]),k=Ae===q||Ae===He;return s.createElement(fe,Object.assign({},U,{key:S.key,visible:k,eventProps:S,onLeaveEnd:function(){U.onLeaveEnd&&U.onLeaveEnd.apply(U,arguments),ge.removeKey(S.key)}}),ce)}))}}],[{key:"getDerivedStateFromProps",value:function(ge,ye){var je=ge.keys,we=ye.keyEntities,ce=Ue(je);if(!Ye)return{keyEntities:ce.map(function(U){return Object(n.a)(Object(n.a)({},U),{},{status:He})})};var Y=X(we,ce),V=we.length;return{keyEntities:Y.filter(function(U){for(var B=null,Ae=0;Ae children");U=B}}),U}function E(ce,Y,V){var U=0;return ce&&ce.forEach(function(B){if(U)return;U=B&&B.key===Y&&!B.props[V]}),U}function O(ce,Y,V){var U=ce.length===Y.length;return U&&ce.forEach(function(B,Ae){var S=Y[Ae];B&&S&&((B&&!S||!B&&S||(B.key!==S.key||V&&B.props[V]!==S.props[V]))&&(U=!1))}),U}function C(ce,Y){var V=[],U={},B=[];return ce.forEach(function(Ae){Ae&&c(Y,Ae.key)?B.length&&(U[Ae.key]=B,B=[]):B.push(Ae)}),Y.forEach(function(Ae){Ae&&Object.prototype.hasOwnProperty.call(U,Ae.key)&&(V=V.concat(U[Ae.key])),V.push(Ae)}),V=V.concat(B),V}var M=e("UwPn"),w={isAppearSupported:function(Y){return Y.transitionName&&Y.transitionAppear||Y.animation.appear},isEnterSupported:function(Y){return Y.transitionName&&Y.transitionEnter||Y.animation.enter},isLeaveSupported:function(Y){return Y.transitionName&&Y.transitionLeave||Y.animation.leave},allowAppearCallback:function(Y){return Y.transitionAppear||Y.animation.appear},allowEnterCallback:function(Y){return Y.transitionEnter||Y.animation.enter},allowLeaveCallback:function(Y){return Y.transitionLeave||Y.animation.leave}},A=w,L=function(){function ce(Y,V){for(var U=0;U children");return s.a.createElement(ue,{key:oe.key,ref:function(K){U.childrenRefs[oe.key]=K},animation:B.animation,transitionName:B.transitionName,transitionEnter:B.transitionEnter,transitionAppear:B.transitionAppear,transitionLeave:B.transitionLeave},oe)}));var k=B.component;if(k){var ae=B;return typeof k=="string"&&(ae=re({className:B.className,style:B.style},B.componentProps)),s.a.createElement(k,ae,S)}return S[0]||null}}]),Y}(s.a.Component);$e.isAnimate=!0,$e.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:ft,onEnter:ft,onLeave:ft,onAppear:ft};var Ue=function(){var Y=this;this.performEnter=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillEnter(Y.handleDoneAdding.bind(Y,V,"enter")))},this.performAppear=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillAppear(Y.handleDoneAdding.bind(Y,V,"appear")))},this.handleDoneAdding=function(V,U){var B=Y.props;if(delete Y.currentlyAnimatingKeys[V],B.exclusive&&B!==Y.nextProps)return;var Ae=h(Ze(B));Y.isValidChildByKey(Ae,V)?U==="appear"?A.allowAppearCallback(B)&&(B.onAppear(V),B.onEnd(V,!0)):A.allowEnterCallback(B)&&(B.onEnter(V),B.onEnd(V,!0)):Y.performLeave(V)},this.performLeave=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillLeave(Y.handleDoneLeaving.bind(Y,V)))},this.handleDoneLeaving=function(V){var U=Y.props;if(delete Y.currentlyAnimatingKeys[V],U.exclusive&&U!==Y.nextProps)return;var B=h(Ze(U));if(Y.isValidChildByKey(B,V))Y.performEnter(V);else{var Ae=function(){A.allowLeaveCallback(U)&&(U.onLeave(V),U.onEnd(V,!1))};O(Y.state.children,B,U.showProp)?Ae():Y.setState({children:B},Ae)}}},X=o($e),me=e("2GS6"),ie=e("TSYQ"),W=e.n(ie),de=e("EE3K"),Ye=e("8HVG");function fe(ce,Y){var V=Object.keys(ce);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(ce);Y&&(U=U.filter(function(B){return Object.getOwnPropertyDescriptor(ce,B).enumerable})),V.push.apply(V,U)}return V}function rt(ce){for(var Y=1;Y=k&&(B.updateKey=K[0].notice.updateKey||K[0].notice.key,K.shift()),K.push({notice:B,holderCallback:Ae})),{notices:K}})},U.remove=function(B){U.setState(function(Ae){return{notices:Ae.notices.filter(function(S){var k=S.notice;return k.key!==B})}})},U}return Object(t.a)(V,[{key:"getTransitionName",value:function(){var B=this.props,Ae=B.prefixCls,S=B.animation,k=this.props.transitionName;return!k&&S&&(k="".concat(Ae,"-").concat(S)),k}},{key:"render",value:function(){var B=this,Ae=this.state.notices,S=this.props,k=S.prefixCls,ae=S.className,oe=S.closeIcon,le=S.style,K=Ae.map(function(P,T){var $=P.notice,se=P.holderCallback,ke=Boolean(T===Ae.length-1&&$.updateKey),ve=$.updateKey?$.updateKey:$.key,Be=Object(me.a)(B.remove.bind(B,$.key),$.onClose),it=rt(rt(rt({prefixCls:k,closeIcon:oe},$),$.props),{},{key:ve,update:ke,onClose:Be,onClick:$.onClick,children:$.content});return se?s.a.createElement("div",{key:ve,className:"".concat(k,"-hook-holder"),ref:function(Et){if(typeof ve=="undefined")return;Et?(B.hookRefs.set(ve,Et),se(Et,it)):B.hookRefs.delete(ve)}}):s.a.createElement(de.a,Object.assign({},it))});return s.a.createElement("div",{className:W()(k,ae),style:le},s.a.createElement(X,{transitionName:this.getTransitionName()},K))}}]),V}(i.Component);ye.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},ye.newInstance=function(Y,V){var U=Y||{},B=U.getContainer,Ae=Object(a.a)(U,["getContainer"]),S=document.createElement("div");if(B){var k=B();k.appendChild(S)}else document.body.appendChild(S);var ae=!1;function oe(le){if(ae)return;ae=!0,V({notice:function(P){le.add(P)},removeNotice:function(P){le.remove(P)},component:le,destroy:function(){l.a.unmountComponentAtNode(S),S.parentNode&&S.parentNode.removeChild(S)},useNotification:function(){return Object(Ye.a)(le)}})}l.a.render(s.a.createElement(ye,Object.assign({},Ae,{ref:oe})),S)};var je=ye,we=g.default=je},"8w+9":function(x,g,e){var a=e("ukPv"),n=e("tSXo"),r=a.document,t=n(r)&&n(r.createElement);x.exports=function(u){return t?r.createElement(u):{}}},"8yz6":function(x,g,e){"use strict";x.exports=function(a,n){if(!(typeof a=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[a];var r=a.indexOf(n);return r===-1?[a]:[a.slice(0,r),a.slice(r+n.length)]}},"9/ry":function(x,g,e){"use strict";var a=e("MMxC"),n=e("rjJZ"),r=e("FCfD"),t=e("C7V6");a({target:"String",proto:!0,forced:!t("includes")},{includes:function(v){return!!~String(r(this)).indexOf(n(v),arguments.length>1?arguments[1]:void 0)}})},"9BQv":function(x,g,e){"use strict";var a=e("tny8"),n=e("eNh0"),r=e("cTDu"),t=e("oa35"),u=e("YfKC").f;a&&!("lastItem"in[])&&(u(Array.prototype,"lastItem",{configurable:!0,get:function(){var m=r(this),i=t(m.length);return i==0?void 0:m[i-1]},set:function(m){var i=r(this),s=t(i.length);return i[s==0?0:s-1]=m}}),n("lastItem"))},"9R94":function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=!0,n="Invariant failed";function r(t,u){if(t)return;if(a)throw new Error(n);var v=typeof u=="function"?u():u,m=v?n+": "+v:n;throw new Error(m)}},"9RRT":function(x,g,e){var a=e("cT1L"),n=e("cTDu"),r=e("EzR6"),t=e("oa35"),u=function(v){return function(m,i,s,d){a(i);var l=n(m),f=r(l),o=t(l.length),h=v?o-1:0,c=v?-1:1;if(s<2)for(;;){if(h in f){d=f[h],h+=c;break}if(h+=c,v?h<0:o<=h)throw TypeError("Reduce of empty array with no initial value")}for(;v?h>=0:o>h;h+=c)h in f&&(d=i(d,f[h],h,l));return d}};x.exports={left:u(!1),right:u(!0)}},"9Rzw":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("/dTS"),m=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{difference:function(s){var d=t(this),l=new(v(d,r("Set")))(d),f=u(l.delete);return m(s,function(o){f.call(l,o)}),l}})},"9SZg":function(x,g,e){var a=e("Ei+o"),n=e("5yw/"),r=e("2kyd"),t=r("iterator");x.exports=function(u){if(u!=null)return u[t]||u["@@iterator"]||n[a(u)]}},"9Y4n":function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("bold")},{bold:function(){return n(this,"b","","")}})},"9bAj":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("cT1L"),u=e("PPXv"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{reduce:function(i){var s=r(this),d=u(s),l=arguments.length<2,f=l?void 0:arguments[1];if(t(i),v(d,function(o,h){l?(l=!1,f=h):f=i(f,h,o,s)},void 0,!0,!0),l)throw TypeError("Reduce of empty map with no initial value");return f}})},"9hUv":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("5WQS"),u={namespace:"messages",state:{tidingsList:[],privateMessage:[],unreadInfo:[],recentContacts:{},privateMessageDetails:{},userPrivateMessage:{},actionTabs:{key:"",params:{}}},effects:{getPrivateMessageDetails:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.b,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{privateMessageDetails:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getTidings:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.e,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{tidingsList:f||[]}});case 7:case"end":return h.stop()}},v)}),getPrivateMessages:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.c,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{privateMessage:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getUsersForPrivateMessages:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.f,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{userPrivateMessage:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),unreadMessageInfo:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.h,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{unreadInfo:f||[]}});case 7:case"end":return h.stop()}},v)}),getRecentContacts:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{recentContacts:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"9kvl":function(x,g,e){"use strict";e.d(g,"d",function(){return a.b}),e.d(g,"e",function(){return n.a}),e.d(g,"a",function(){return r.a}),e.d(g,"c",function(){return r.b}),e.d(g,"b",function(){return t.a}),e.d(g,"f",function(){return v.g});var a=e("FfOG"),n=e("bCY9"),r=e("p12T"),t=e("cFGR"),u=1,v=e("Fghh"),m=e("jrin"),i=e("k1fw"),s=e("qVdP"),d=e("jsC+"),l=e("0Owb"),f=e("PpiC"),o=e("q1tI"),h=e.n(o),c=function(bt){var Pt=bt.overlayClassName,Ft=Object(f.a)(bt,["overlayClassName"]);return h.a.createElement(d.a,Object(l.a)({overlayClassName:Pt},Ft))},b=function(bt){return bt.reduce(function(Pt,Ft){return Ft.lang?Object(i.a)(Object(i.a)({},Pt),{},Object(m.a)({},Ft.lang,Ft)):Pt},{})},E=Object(m.a)({"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"zh-TW",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0440\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u4F53\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},"zh-TW",{lang:"zh-TW",label:"\u7E41\u4F53\u4E2D\u6587",icon:"\u{1F1F9}\u{1F1FC}",title:"\u8A9E\u8A00"}),O=function(bt){return h.a.createElement(h.a.Fragment,null)},C=e("I5X1"),M=e("9og8"),w=e("/xke"),A=e("TeRw"),L=e("miYZ"),z=e("tsqr"),G=e("WmNS"),D=e.n(G),N=e("ZqBY"),Oe=e("LtsZ"),ue=e("9/5/"),re=e.n(ue),ee=e("hKI/"),J=e.n(ee);function F(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function Q(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var q=new Map,He=function(bt,Pt,Ft){var De=q.get(bt);(De==null?void 0:De.timer)&&clearTimeout(De.timer);var Ct=void 0;Pt>-1&&(Ct=setTimeout(function(){q.delete(bt)},Pt)),q.set(bt,{data:Ft,timer:Ct,startTime:new Date().getTime()})},Ze=function(bt){var Pt=q.get(bt);return{data:Pt==null?void 0:Pt.data,startTime:Pt==null?void 0:Pt.startTime}},ft=function(St,bt){var Pt=typeof Symbol=="function"&&St[Symbol.iterator];if(!Pt)return St;var Ft=Pt.call(St),De,Ct=[],be;try{for(;(bt===void 0||bt-- >0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},$e=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},me=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},V=function(){for(var St=[],bt=0;bt0){var Nt=Ke&&((Lt=Ze(Ke))===null||Lt===void 0?void 0:Lt.startTime)||0;Mn===-1||new Date().getTime()-Nt<=Mn||Object.values(mt).forEach(function(Vt){Vt.refresh()})}else I.current.apply(I,V(xt))},[]);var yt=Object(o.useCallback)(function(){Object.values(Rt.current).forEach(function(Lt){Lt.unmount()}),br.current=U,Ot({}),Rt.current={}},[Ot]);Ye(function(){be||Object.values(Rt.current).forEach(function(Lt){Lt.refresh()})},V(De)),Object(o.useEffect)(function(){return function(){Object.values(Rt.current).forEach(function(Lt){Lt.unmount()})}},[]);var wt=Object(o.useCallback)(function(Lt){return function(){console.warn("You should't call "+Lt+" when service not executed once.")}},[]);return ce(ce({loading:Hn&&!be||ct,data:Fn,error:void 0,params:[],cancel:wt("cancel"),refresh:wt("refresh"),mutate:wt("mutate")},mt[br.current]||{}),{run:Re,fetches:mt,reset:yt})}var S=Ae,k=function(){return k=Object.assign||function(St){for(var bt,Pt=1,Ft=arguments.length;Pt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},le=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},ke=function(){for(var St=[],bt=0;btdr&&(Hn=Math.max(1,dr)),bn({current:Hn,pageSize:ar})},[Ke,bn]),_=Object(o.useCallback)(function(Fn){Ut(Fn,xt)},[Ut,xt]),Mn=Object(o.useCallback)(function(Fn){Ut(gt,Fn)},[Ut,gt]),Wn=Object(o.useRef)(_);Wn.current=_,Ye(function(){bt.manual||Wn.current(1)},ke(be));var kn=Object(o.useCallback)(function(Fn,qn,Hn){bn({current:Fn.current,pageSize:Fn.pageSize||De,filters:qn,sorter:Hn})},[Ln,ln,bn]);return T({loading:qe,data:Pe,params:Ce,run:ct,pagination:{current:gt,pageSize:xt,total:Ke,totalPage:_e,onChange:Ut,changeCurrent:_,changePageSize:Mn},tableProps:{dataSource:(Pe==null?void 0:Pe.list)||[],loading:qe,onChange:kn,pagination:{current:gt,pageSize:xt,total:Ke}},sorter:ln,filters:Ln},Me)}var Be=ve,it=h.a.createContext({});it.displayName="UseRequestConfigContext";var We=it,Et=function(){return Et=Object.assign||function(St){for(var bt,Pt=1,Ft=arguments.length;Pt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Ne){be={error:Ne}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},It=function(){for(var St=[],bt=0;bt1&&arguments[1]!==void 0?arguments[1]:{};return an(St,Object(i.a)({formatResult:function(Ft){return Ft==null?void 0:Ft.data},requestMethod:function(Ft){if(typeof Ft=="string")return Rn(Ft);if(typeof Ft=="object"){var De=Ft.url,Ct=Object(f.a)(Ft,["url"]);return Rn(De,Ct)}throw new Error("request options error")}},bt))}var on;(function(St){St[St.SILENT=0]="SILENT",St[St.WARN_MESSAGE=1]="WARN_MESSAGE",St[St.ERROR_MESSAGE=2]="ERROR_MESSAGE",St[St.NOTIFICATION=4]="NOTIFICATION",St[St.REDIRECT=9]="REDIRECT"})(on||(on={}));var En="/exception",yn,vn=function(){var bt;if(yn)return yn;var Pt=n.a.applyPlugins({key:"request",type:Oe.a.modify,initialValue:{}}),Ft=((bt=Pt.errorConfig)===null||bt===void 0?void 0:bt.adaptor)||function(Ne){return Ne};yn=Object(N.a)(Object(i.a)({errorHandler:function(Fe){var dt,Pe,Ce;if(Fe!=null&&(dt=Fe.request)!==null&&dt!==void 0&&(Pe=dt.options)!==null&&Pe!==void 0&&Pe.skipErrorHandler)throw Fe;var ct;if(Fe.name==="ResponseError"&&Fe.data&&Fe.request){var qe,Me={req:Fe.request,res:Fe.response};ct=Ft(Fe.data,Me),Fe.message=((qe=ct)===null||qe===void 0?void 0:qe.errorMessage)||Fe.message,Fe.data=Fe.data,Fe.info=ct}if(ct=Fe.info,ct){var Z,Xe,gt,Mt=(Z=ct)===null||Z===void 0?void 0:Z.errorMessage,xt=(Xe=ct)===null||Xe===void 0?void 0:Xe.errorCode,Gt=((gt=Pt.errorConfig)===null||gt===void 0?void 0:gt.errorPage)||En;switch((Ce=ct)===null||Ce===void 0?void 0:Ce.showType){case on.SILENT:break;case on.WARN_MESSAGE:z.b.warn(Mt);break;case on.ERROR_MESSAGE:z.b.error(Mt);break;case on.NOTIFICATION:A.a.open({message:Mt});break;case on.REDIRECT:a.b.push({pathname:Gt,query:{errorCode:xt,errorMessage:Mt}});break;default:z.b.error(Mt);break}}else z.b.error(Fe.message||"Request error, please retry.");throw Fe}},Pt)),yn.use(function(){var Ne=Object(M.a)(D.a.mark(function Fe(dt,Pe){var Ce,ct,qe,Me,Z,Xe,gt,Mt;return D.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,Pe();case 2:if(ct=dt.req,qe=dt.res,!((Ce=ct.options)!==null&&Ce!==void 0&&Ce.skipErrorHandler)){Gt.next=5;break}return Gt.abrupt("return");case 5:if(Me=ct.options,Z=Me.getResponse,Xe=Z?qe.data:qe,gt=Ft(Xe,dt),!(gt.success===!1)){Gt.next=15;break}throw Mt=new Error(gt.errorMessage),Mt.name="BizError",Mt.data=Xe,Mt.info=gt,Mt;case 15:case"end":return Gt.stop()}},Fe)}));return function(Fe,dt){return Ne.apply(this,arguments)}}());var De=Pt.middlewares||[];De.forEach(function(Ne){yn.use(Ne)});var Ct=Pt.requestInterceptors||[],be=Pt.responseInterceptors||[];return Ct.map(function(Ne){yn.interceptors.request.use(Ne)}),be.map(function(Ne){yn.interceptors.response.use(Ne)}),yn},Rn=function(bt,Pt){var Ft=vn();return Ft(bt,Pt)},Pn=e("qhky")},"9mu1":function(x,g,e){"use strict";var a=e("ODXe"),n=e("U8pU"),r=e("q1tI"),t=e.n(r),u=e("c+Xe"),v=function(be){if(!be)return!1;if(be.offsetParent)return!0;if(be.getBBox){var Ne=be.getBBox();if(Ne.width||Ne.height)return!0}if(be.getBoundingClientRect){var Fe=be.getBoundingClientRect();if(Fe.width||Fe.height)return!0}return!1};function m(be,Ne){var Fe=Object.keys(be);if(Object.getOwnPropertySymbols){var dt=Object.getOwnPropertySymbols(be);Ne&&(dt=dt.filter(function(Pe){return Object.getOwnPropertyDescriptor(be,Pe).enumerable})),Fe.push.apply(Fe,dt)}return Fe}function i(be){for(var Ne=1;Ne=0&&Fe.left>=0&&Fe.bottom>Fe.top&&Fe.right>Fe.left?Fe:null}function le(be,Ne,Fe,dt){var Pe=B.clone(be),Ce={width:Ne.width,height:Ne.height};return dt.adjustX&&Pe.left=Fe.left&&Pe.left+Ce.width>Fe.right&&(Ce.width-=Pe.left+Ce.width-Fe.right),dt.adjustX&&Pe.left+Ce.width>Fe.right&&(Pe.left=Math.max(Fe.right-Ce.width,Fe.left)),dt.adjustY&&Pe.top=Fe.top&&Pe.top+Ce.height>Fe.bottom&&(Ce.height-=Pe.top+Ce.height-Fe.bottom),dt.adjustY&&Pe.top+Ce.height>Fe.bottom&&(Pe.top=Math.max(Fe.bottom-Ce.height,Fe.top)),B.mix(Pe,Ce)}function K(be){var Ne,Fe,dt;if(!B.isWindow(be)&&be.nodeType!==9)Ne=B.offset(be),Fe=B.outerWidth(be),dt=B.outerHeight(be);else{var Pe=B.getWindow(be);Ne={left:B.getWindowScrollLeft(Pe),top:B.getWindowScrollTop(Pe)},Fe=B.viewportWidth(Pe),dt=B.viewportHeight(Pe)}return Ne.width=Fe,Ne.height=dt,Ne}function P(be,Ne){var Fe=Ne.charAt(0),dt=Ne.charAt(1),Pe=be.width,Ce=be.height,ct=be.left,qe=be.top;return Fe==="c"?qe+=Ce/2:Fe==="b"&&(qe+=Ce),dt==="c"?ct+=Pe/2:dt==="r"&&(ct+=Pe),{left:ct,top:qe}}function T(be,Ne,Fe,dt,Pe){var Ce=P(Ne,Fe[1]),ct=P(be,Fe[0]),qe=[ct.left-Ce.left,ct.top-Ce.top];return{left:Math.round(be.left-qe[0]+dt[0]-Pe[0]),top:Math.round(be.top-qe[1]+dt[1]-Pe[1])}}function $(be,Ne,Fe){return be.leftFe.right}function se(be,Ne,Fe){return be.topFe.bottom}function ke(be,Ne,Fe){return be.left>Fe.right||be.left+Ne.widthFe.bottom||be.top+Ne.height=Fe.right||dt.top>=Fe.bottom}function It(be,Ne,Fe){var dt=Fe.target||Ne,Pe=K(dt),Ce=!Ht(dt,Fe.overflow&&Fe.overflow.alwaysByViewport);return Tt(be,Pe,Fe,Ce)}It.__getOffsetParent=S,It.__getVisibleRectForElement=oe;function tn(be,Ne,Fe){var dt,Pe,Ce=B.getDocument(be),ct=Ce.defaultView||Ce.parentWindow,qe=B.getWindowScrollLeft(ct),Me=B.getWindowScrollTop(ct),Z=B.viewportWidth(ct),Xe=B.viewportHeight(ct);"pageX"in Ne?dt=Ne.pageX:dt=qe+Ne.clientX,"pageY"in Ne?Pe=Ne.pageY:Pe=Me+Ne.clientY;var gt={left:dt,top:Pe,width:0,height:0},Mt=dt>=0&&dt<=qe+Z&&Pe>=0&&Pe<=Me+Xe,xt=[Fe.points[0],"cc"];return Tt(be,gt,i(i({},Fe),{},{points:xt}),Mt)}var qt=It,gn=e("zT1h"),an=e("Y+p1"),Tn=e.n(an),on=e("bdgK"),En=e("l4aY");function yn(be,Ne){return be===Ne?!0:!be||!Ne?!1:"pageX"in Ne&&"pageY"in Ne?be.pageX===Ne.pageX&&be.pageY===Ne.pageY:"clientX"in Ne&&"clientY"in Ne?be.clientX===Ne.clientX&&be.clientY===Ne.clientY:!1}function vn(be,Ne){be!==document.activeElement&&Object(En.a)(Ne,be)&&typeof be.focus=="function"&&be.focus()}function Rn(be,Ne){var Fe=null,dt=null;function Pe(ct){var qe=Object(a.a)(ct,1),Me=qe[0].target;if(!document.documentElement.contains(Me))return;var Z=Me.getBoundingClientRect(),Xe=Z.width,gt=Z.height,Mt=Math.floor(Xe),xt=Math.floor(gt);(Fe!==Mt||dt!==xt)&&Promise.resolve().then(function(){Ne({width:Mt,height:xt})}),Fe=Mt,dt=xt}var Ce=new on.default(Pe);return be&&Ce.observe(be),function(){Ce.disconnect()}}var Pn=function(be,Ne){var Fe=t.a.useRef(!1),dt=t.a.useRef(null);function Pe(){window.clearTimeout(dt.current)}function Ce(ct){if(!Fe.current||ct===!0){if(be()===!1)return;Fe.current=!0,Pe(),dt.current=window.setTimeout(function(){Fe.current=!1},Ne)}else Pe(),dt.current=window.setTimeout(function(){Fe.current=!1,Ce()},Ne)}return[Ce,function(){Fe.current=!1,Pe()}]};function St(be){return typeof be!="function"?null:be()}function bt(be){return Object(n.a)(be)!=="object"||!be?null:be}var Pt=function(Ne,Fe){var dt=Ne.children,Pe=Ne.disabled,Ce=Ne.target,ct=Ne.align,qe=Ne.onAlign,Me=Ne.monitorWindowResize,Z=Ne.monitorBufferTime,Xe=Z===void 0?0:Z,gt=t.a.useRef({}),Mt=t.a.useRef(),xt=t.a.Children.only(dt),Gt=t.a.useRef({});Gt.current.disabled=Pe,Gt.current.target=Ce,Gt.current.align=ct,Gt.current.onAlign=qe;var ln=Pn(function(){var _=Gt.current,Mn=_.disabled,Wn=_.target,kn=_.align,Fn=_.onAlign;if(!Mn&&Wn){var qn=Mt.current,Hn,ar=St(Wn),dr=bt(Wn);gt.current.element=ar,gt.current.point=dr,gt.current.align=kn;var br=document,jr=br.activeElement;return ar&&v(ar)?Hn=It(qn,ar,kn):dr&&(Hn=tn(qn,dr,kn)),vn(jr,qn),Fn&&Hn&&Fn(qn,Hn),!0}return!1},Xe),nn=Object(a.a)(ln,2),Ln=nn[0],bn=nn[1],Ke=t.a.useRef({cancel:function(){}}),_e=t.a.useRef({cancel:function(){}});t.a.useEffect(function(){var _=St(Ce),Mn=bt(Ce);Mt.current!==_e.current.element&&(_e.current.cancel(),_e.current.element=Mt.current,_e.current.cancel=Rn(Mt.current,Ln)),(gt.current.element!==_||!yn(gt.current.point,Mn)||!Tn()(gt.current.align,ct))&&(Ln(),Ke.current.element!==_&&(Ke.current.cancel(),Ke.current.element=_,Ke.current.cancel=Rn(_,Ln)))}),t.a.useEffect(function(){Pe?bn():Ln()},[Pe]);var Ut=t.a.useRef(null);return t.a.useEffect(function(){Me?Ut.current||(Ut.current=Object(gn.a)(window,"resize",Ln)):Ut.current&&(Ut.current.remove(),Ut.current=null)},[Me]),t.a.useEffect(function(){return function(){Ke.current.cancel(),_e.current.cancel(),Ut.current&&Ut.current.remove(),bn()}},[]),t.a.useImperativeHandle(Fe,function(){return{forceAlign:function(){return Ln(!0)}}}),t.a.isValidElement(xt)&&(xt=t.a.cloneElement(xt,{ref:Object(u.a)(xt.ref,Mt)})),xt},Ft=t.a.forwardRef(Pt);Ft.displayName="Align";var De=Ft,Ct=g.a=De},"9og8":function(x,g,e){"use strict";e.d(g,"a",function(){return n});function a(r,t,u,v,m,i,s){try{var d=r[i](s),l=d.value}catch(f){u(f);return}d.done?t(l):Promise.resolve(l).then(v,m)}function n(r){return function(){var t=this,u=arguments;return new Promise(function(v,m){var i=r.apply(t,u);function s(l){a(i,v,m,s,d,"next",l)}function d(l){a(i,v,m,s,d,"throw",l)}s(void 0)})}}},"9xmf":function(x,g,e){var a=e("EdiO");function n(r){if(Array.isArray(r))return a(r)}x.exports=n},"9zP7":function(x,g,e){var a=e("MMxC"),n=e("UPML");a({target:"Object",stat:!0},{is:n})},"9znl":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"Set",stat:!0},{from:n})},"A+b4":function(x,g,e){"use strict";var a=e("MMxC"),n=e("mTKU").start,r=e("HKQd"),t=r("trimStart"),u=t?function(){return n(this)}:"".trimStart;a({target:"String",proto:!0,forced:t},{trimStart:u,trimLeft:u})},A9H8:function(x,g,e){var a=e("MMxC"),n=e("IuhT"),r=e("arQb");a({target:"Object",stat:!0},{fromEntries:function(u){var v={};return n(u,function(m,i){r(v,m,i)},void 0,!0),v}})},AGcU:function(x,g,e){var a=e("MMxC"),n=e("jdp+");a({target:"Math",stat:!0},{fround:n})},AM7I:function(x,g,e){"use strict";var a,n=SyntaxError,r=Function,t=TypeError,u=function(D){try{return r('"use strict"; return ('+D+").constructor;")()}catch(N){}},v=Object.getOwnPropertyDescriptor;if(v)try{v({},"")}catch(D){v=null}var m=function(){throw new t},i=v?function(){try{return arguments.callee,m}catch(D){try{return v(arguments,"callee").get}catch(N){return m}}}():m,s=e("UVaH")(),d=Object.getPrototypeOf||function(D){return D.__proto__},l={},f=typeof Uint8Array=="undefined"?a:d(Uint8Array),o={"%AggregateError%":typeof AggregateError=="undefined"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?a:ArrayBuffer,"%ArrayIteratorPrototype%":s?d([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics=="undefined"?a:Atomics,"%BigInt%":typeof BigInt=="undefined"?a:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?a:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?a:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array=="undefined"?a:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?a:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?d(d([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map=="undefined"?a:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!s?a:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?a:Promise,"%Proxy%":typeof Proxy=="undefined"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?a:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!s?a:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s?d(""[Symbol.iterator]()):a,"%Symbol%":s?Symbol:a,"%SyntaxError%":n,"%ThrowTypeError%":i,"%TypedArray%":f,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array=="undefined"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?a:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?a:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?a:WeakSet},h=function D(N){var Oe;if(N==="%AsyncFunction%")Oe=u("async function () {}");else if(N==="%GeneratorFunction%")Oe=u("function* () {}");else if(N==="%AsyncGeneratorFunction%")Oe=u("async function* () {}");else if(N==="%AsyncGenerator%"){var ue=D("%AsyncGeneratorFunction%");ue&&(Oe=ue.prototype)}else if(N==="%AsyncIteratorPrototype%"){var re=D("%AsyncGenerator%");re&&(Oe=d(re.prototype))}return o[N]=Oe,Oe},c={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=e("D3zA"),E=e("oNNP"),O=b.call(Function.call,Array.prototype.concat),C=b.call(Function.apply,Array.prototype.splice),M=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,z=function(N){var Oe=w(N,0,1),ue=w(N,-1);if(Oe==="%"&&ue!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&Oe!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var re=[];return M(N,A,function(ee,J,F,Q){re[re.length]=F?M(Q,L,"$1"):J||ee}),re},G=function(N,Oe){var ue=N,re;if(E(c,ue)&&(re=c[ue],ue="%"+re[0]+"%"),E(o,ue)){var ee=o[ue];if(ee===l&&(ee=h(ue)),typeof ee=="undefined"&&!Oe)throw new t("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:re,name:ue,value:ee}}throw new n("intrinsic "+N+" does not exist!")};x.exports=function(N,Oe){if(typeof N!="string"||N.length===0)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Oe!="boolean")throw new t('"allowMissing" argument must be a boolean');var ue=z(N),re=ue.length>0?ue[0]:"",ee=G("%"+re+"%",Oe),J=ee.name,F=ee.value,Q=!1,q=ee.alias;q&&(re=q[0],C(ue,O([0,1],q)));for(var He=1,Ze=!0;He=ue.length){var X=v(F,ft);Ze=!!X,Ze&&"get"in X&&!("originalValue"in X.get)?F=X.get:F=F[ft]}else Ze=E(F,ft),F=F[ft];Ze&&!Q&&(o[J]=F)}}return F}},ANhw:function(x,g){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return a.rotl(n,8)&16711935|a.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],t=0,u=0;t>>5]|=n[t]<<24-u%32;return r},wordsToBytes:function(n){for(var r=[],t=0;t>>5]>>>24-t%32&255);return r},bytesToHex:function(n){for(var r=[],t=0;t>>4).toString(16)),r.push((n[t]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],t=0;t>>6*(3-v)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],t=0,u=0;t>>6-u*2)}return r}};x.exports=a})()},ANjH:function(x,g,e){"use strict";e.d(g,"a",function(){return M}),e.d(g,"b",function(){return O}),e.d(g,"c",function(){return b}),e.d(g,"d",function(){return C}),e.d(g,"e",function(){return f});var a=e("VTBJ");function n(A){return"Minified Redux error #"+A+"; visit https://redux.js.org/Errors?code="+A+" for the full message or use the non-minified dev environment for full errors. "}var r=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),t=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+t(),REPLACE:"@@redux/REPLACE"+t(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+t()}};function v(A){if(typeof A!="object"||A===null)return!1;for(var L=A;Object.getPrototypeOf(L)!==null;)L=Object.getPrototypeOf(L);return Object.getPrototypeOf(A)===L}function m(A){if(A===void 0)return"undefined";if(A===null)return"null";var L=typeof A;switch(L){case"boolean":case"string":case"number":case"symbol":case"function":return L}if(Array.isArray(A))return"array";if(d(A))return"date";if(s(A))return"error";var z=i(A);switch(z){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return z}return L.slice(8,-1).toLowerCase().replace(/\s/g,"")}function i(A){return typeof A.constructor=="function"?A.constructor.name:null}function s(A){return A instanceof Error||typeof A.message=="string"&&A.constructor&&typeof A.constructor.stackTraceLimit=="number"}function d(A){return A instanceof Date?!0:typeof A.toDateString=="function"&&typeof A.getDate=="function"&&typeof A.setDate=="function"}function l(A){var L=typeof A;return L}function f(A,L,z){var G;if(typeof L=="function"&&typeof z=="function"||typeof z=="function"&&typeof arguments[3]=="function")throw new Error(n(0));if(typeof L=="function"&&typeof z=="undefined"&&(z=L,L=void 0),typeof z!="undefined"){if(typeof z!="function")throw new Error(n(1));return z(f)(A,L)}if(typeof A!="function")throw new Error(n(2));var D=A,N=L,Oe=[],ue=Oe,re=!1;function ee(){ue===Oe&&(ue=Oe.slice())}function J(){if(re)throw new Error(n(3));return N}function F(Ze){if(typeof Ze!="function")throw new Error(n(4));if(re)throw new Error(n(5));var ft=!0;return ee(),ue.push(Ze),function(){if(!ft)return;if(re)throw new Error(n(6));ft=!1,ee();var Ue=ue.indexOf(Ze);ue.splice(Ue,1),Oe=null}}function Q(Ze){if(!v(Ze))throw new Error(n(7));if(typeof Ze.type=="undefined")throw new Error(n(8));if(re)throw new Error(n(9));try{re=!0,N=D(N,Ze)}finally{re=!1}for(var ft=Oe=ue,$e=0;$e0)return"Unexpected "+(Oe.length>1?"keys":"key")+" "+('"'+Oe.join('", "')+'" found in '+N+". ")+"Expected to find one of the known reducer keys instead: "+('"'+D.join('", "')+'". Unexpected keys will be ignored.')}function c(A){Object.keys(A).forEach(function(L){var z=A[L],G=z(void 0,{type:u.INIT});if(typeof G=="undefined")throw new Error(n(12));if(typeof z(void 0,{type:u.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(n(13))})}function b(A){for(var L=Object.keys(A),z={},G=0;G2&&arguments[2]!==void 0?arguments[2]:!1;return{type:a,payload:{location:f,action:o,isFirstRendering:h}}},r="@@router/CALL_HISTORY_METHOD",t=function(f){return function(){for(var o=arguments.length,h=new Array(o),c=0;c2?arguments[2]:void 0,o=t((f===void 0?s:n(f,s))-l,s-d),h=1;for(l0;)l in i?i[d]=i[l]:delete i[d],d+=h,l+=h;return i}},AqCL:function(x,g){x.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}},Auwt:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("PPXv"),u=e("bwJD"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{includes:function(i){return v(t(r(this)),function(s,d){if(u(d,i))return v.stop()},void 0,!0,!0).stopped}})},"B/G0":function(x,g,e){var a=e("MMxC"),n=e("tny8"),r=e("cC5k"),t=e("0qr0"),u=e("g8rt"),v=e("arQb");a({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(i){for(var s=t(i),d=u.f,l=r(s),f={},o=0,h,c;l.length>o;)c=d(s,h=l[o++]),c!==void 0&&v(f,h,c);return f}})},"B/J0":function(x,g,e){"use strict";var a=e("w8CP"),n=e("bu2F");function r(){if(!(this instanceof r))return new r;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(r,n),x.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(u){return u==="hex"?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}},B3m4:function(x,g,e){"use strict";e.d(g,"l",function(){return v}),e.d(g,"m",function(){return i}),e.d(g,"n",function(){return d}),e.d(g,"o",function(){return f}),e.d(g,"p",function(){return h}),e.d(g,"d",function(){return b}),e.d(g,"k",function(){return O}),e.d(g,"e",function(){return M}),e.d(g,"q",function(){return A}),e.d(g,"r",function(){return z}),e.d(g,"f",function(){return D}),e.d(g,"c",function(){return Oe}),e.d(g,"j",function(){return re}),e.d(g,"b",function(){return J}),e.d(g,"i",function(){return Q}),e.d(g,"a",function(){return He}),e.d(g,"g",function(){return ft}),e.d(g,"h",function(){return Ue});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(me){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,".json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),m.apply(this,arguments)}function i(me){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,"/tasks_list.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),s.apply(this,arguments)}function d(me){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/show_detail.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),l.apply(this,arguments)}function f(me){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,".json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),o.apply(this,arguments)}function h(me){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/refuse_student_topic.json"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),c.apply(this,arguments)}function b(me){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/accept_student_topic.json"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),E.apply(this,arguments)}function O(me){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/homework_commons/".concat(ie.categoryId,"/show_comment.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),C.apply(this,arguments)}function M(me){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/users/reply_message.json",{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),w.apply(this,arguments)}function A(me){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/praise_tread/like.json",{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),L.apply(this,arguments)}function z(me){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/praise_tread/unlike.json",{method:"delete",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),G.apply(this,arguments)}function D(me){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/commons/delete.json",{method:"delete",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),N.apply(this,arguments)}function Oe(me){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/new.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),ue.apply(this,arguments)}function re(me){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),ee.apply(this,arguments)}function J(me){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),F.apply(this,arguments)}function Q(me){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId),{method:"put",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),q.apply(this,arguments)}function He(me){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_tasks"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),Ze.apply(this,arguments)}function ft(me){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,".json"),{method:"put",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),$e.apply(this,arguments)}function Ue(me){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),X.apply(this,arguments)}},BEtg:function(x,g){/*! +Therefore yield `+te+" will return task descriptor to your saga and execute next lines of code."},dr=F(Fn,ar("takeEvery")),br=F(qn,ar("takeLatest")),jr=F(Hn,ar("throttle"));function Hr(ne,te){for(var Ie=arguments.length,ze=Array(Ie>2?Ie-2:0),mt=2;mt2?Ie-2:0),mt=2;mt3?ze-3:0),Ot=3;Ot=this._delta8){u=this.pending;var m=u.length%this._delta8;this.pending=u.slice(u.length-m,u.length),this.pending.length===0&&(this.pending=null),u=a.join32(u,0,u.length-m,this.endian);for(var i=0;i>>24&255,i[s++]=u>>>16&255,i[s++]=u>>>8&255,i[s++]=u&255}else for(i[s++]=u&255,i[s++]=u>>>8&255,i[s++]=u>>>16&255,i[s++]=u>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,d=8;d1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){h(O,E,f)&&b.call(c,E,O)},void 0,!0,!0),c}})},"7zRj":function(x,g,e){(function(a){var n=typeof a!="undefined"?a:typeof window!="undefined"?window:{},r=e(3),t;typeof document!="undefined"?t=document:(t=n["__GLOBAL_DOCUMENT_CACHE@4"],t||(t=n["__GLOBAL_DOCUMENT_CACHE@4"]=r)),x.exports=t}).call(this,e("IyRk"))},"8+s/":function(x,g,e){"use strict";function a(i){return i&&typeof i=="object"&&"default"in i?i.default:i}var n=e("q1tI"),r=a(n);function t(i,s,d){return s in i?Object.defineProperty(i,s,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[s]=d,i}function u(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s}var v=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function m(i,s,d){if(typeof i!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof s!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof d!="undefined"&&typeof d!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function l(f){return f.displayName||f.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var h=[],c;function b(){c=i(h.map(function(O){return O.props})),E.canUseDOM?s(c):d&&(c=d(c))}var E=function(O){u(C,O);function C(){return O.apply(this,arguments)||this}C.peek=function(){return c},C.rewind=function(){if(C.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=c;return c=void 0,h=[],A};var M=C.prototype;return M.UNSAFE_componentWillMount=function(){h.push(this),b()},M.componentDidUpdate=function(){b()},M.componentWillUnmount=function(){var A=h.indexOf(this);h.splice(A,1),b()},M.render=function(){return r.createElement(o,this.props)},C}(n.PureComponent);return t(E,"displayName","SideEffect("+l(o)+")"),t(E,"canUseDOM",v),E}}x.exports=m},"80Z6":function(x,g,e){"use strict";var a=e("MMxC"),n=e("cT1L"),r=e("29mP"),t=e("LUyE"),u=e("WJ3H"),v=e("IuhT"),m="No one promise resolved";a({target:"Promise",stat:!0},{any:function(s){var d=this,l=t.f(d),f=l.resolve,o=l.reject,h=u(function(){var c=n(d.resolve),b=[],E=0,O=1,C=!1;v(s,function(M){var w=E++,A=!1;b.push(void 0),O++,c.call(d,M).then(function(L){if(A||C)return;C=!0,f(L)},function(L){if(A||C)return;A=!0,b[w]=L,--O||o(new(r("AggregateError"))(b,m))})}),--O||o(new(r("AggregateError"))(b,m))});return h.error&&o(h.value),l.promise}})},"85Yc":function(x,g,e){"use strict";e.r(g),e.d(g,"Field",function(){return Ve}),e.d(g,"List",function(){return ht}),e.d(g,"useForm",function(){return V}),e.d(g,"FormProvider",function(){return B});var a=e("q1tI"),n=e("Ff2n"),r=e("rePB"),t=e("VTBJ"),u=e("KQm4"),v=e("1OyB"),m=e("vuIU"),i=e("Ji7U"),s=e("LK+K"),d=e("Zm9Q"),l=e("Kwbf"),f=e("KW7l");function o(K){return K==null?[]:Array.isArray(K)?K:[K]}var h=e("o0o1"),c=e.n(h),b=e("HaE+"),E=e("U8pU"),O=e("KpVd");function C(K,P){for(var T=K,$=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return P.length&&$&&T===void 0&&!C(K,P.slice(0,-1))?K:w(K,P,T,$)}function L(K){return o(K)}function z(K,P){var T=C(K,P);return T}function G(K,P,T){var $=A(K,P,T);return $}function D(K,P){var T={};return P.forEach(function($){var se=z(K,$);T=G(T,$,se)}),T}function N(K,P){return K&&K.some(function(T){return ee(T,P)})}function Oe(K){return Object(E.a)(K)==="object"&&K!==null&&Object.getPrototypeOf(K)===Object.prototype}function ue(K,P){var T=Array.isArray(K)?Object(u.a)(K):Object(t.a)({},K);return P&&Object.keys(P).forEach(function($){var se=T[$],ke=P[$],ve=Oe(se)&&Oe(ke);T[$]=ve?ue(se,ke||{}):ke}),T}function re(K){for(var P=arguments.length,T=new Array(P>1?P-1:0),$=1;$=$||T<0||T>=$)return K;var se=K[P],ke=P-T;return ke>0?[].concat(Object(u.a)(K.slice(0,T)),[se],Object(u.a)(K.slice(T,P)),Object(u.a)(K.slice(P+1,$))):ke<0?[].concat(Object(u.a)(K.slice(0,P)),Object(u.a)(K.slice(P+1,T+1)),[se],Object(u.a)(K.slice(T+1,$))):K}var q="'${name}' is not a valid ${type}",He={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ze=O.a;function ft(K,P){return K.replace(/\$\{\w+\}/g,function(T){var $=T.slice(2,-1);return P[$]})}function $e(K,P,T,$){var se=Object(t.a)(Object(t.a)({},T),{},{name:P,enum:(T.enum||[]).join(", ")}),ke=function(it,We){return function(){return ft(it,Object(t.a)(Object(t.a)({},se),We))}};function ve(Be){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(Be).forEach(function(We){var Et=Be[We];typeof Et=="string"?it[We]=ke(Et,$):Et&&Object(E.a)(Et)==="object"?(it[We]={},ve(Et,it[We])):it[We]=Et}),it}return ve(re({},He,K))}function Ue(K,P,T,$,se){return X.apply(this,arguments)}function X(){return X=Object(b.a)(c.a.mark(function K(P,T,$,se,ke){var ve,Be,it,We,Et,Tt;return c.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return ve=Object(t.a)({},$),Be=null,ve&&ve.type==="array"&&ve.defaultField&&(Be=ve.defaultField,delete ve.defaultField),it=new Ze(Object(r.a)({},P,[ve])),We=$e(se.validateMessages,P,ve,ke),it.messages(We),Et=[],It.prev=7,It.next=10,Promise.resolve(it.validate(Object(r.a)({},P,T),Object(t.a)({},se)));case 10:It.next=15;break;case 12:It.prev=12,It.t0=It.catch(7),It.t0.errors?Et=It.t0.errors.map(function(tn,qt){var gn=tn.message;return a.isValidElement(gn)?a.cloneElement(gn,{key:"error_".concat(qt)}):gn}):(console.error(It.t0),Et=[We.default()]);case 15:if(!(!Et.length&&Be)){It.next=20;break}return It.next=18,Promise.all(T.map(function(tn,qt){return Ue("".concat(P,".").concat(qt),tn,Be,se,ke)}));case 18:return Tt=It.sent,It.abrupt("return",Tt.reduce(function(tn,qt){return[].concat(Object(u.a)(tn),Object(u.a)(qt))},[]));case 20:return It.abrupt("return",Et);case 21:case"end":return It.stop()}},K,null,[[7,12]])})),X.apply(this,arguments)}function me(K,P,T,$,se,ke){var ve=K.join("."),Be=T.map(function(Et){var Tt=Et.validator;return Tt?Object(t.a)(Object(t.a)({},Et),{},{validator:function(It,tn,qt){var gn=!1,an=function(){for(var En=arguments.length,yn=new Array(En),vn=0;vn0&&arguments[0]!==void 0?arguments[0]:[];$.validatePromise===It&&($.validatePromise=null,$.errors=tn,$.reRender())}),It},$.isFieldValidating=function(){return!!$.validatePromise},$.isFieldTouched=function(){return $.touched},$.isFieldDirty=function(){return $.dirty},$.getErrors=function(){return $.errors},$.getMeta=function(){$.prevValidating=$.isFieldValidating();var se={touched:$.isFieldTouched(),validating:$.prevValidating,errors:$.errors,name:$.getNamePath()};return se},$.getOnlyChild=function(se){if(typeof se=="function"){var ke=$.getMeta();return Object(t.a)(Object(t.a)({},$.getOnlyChild(se($.getControlled(),ke,$.context))),{},{isFunction:!0})}var ve=Object(d.a)(se);return ve.length!==1||!a.isValidElement(ve[0])?{child:ve,isFunction:!1}:{child:ve[0],isFunction:!1}},$.getValue=function(se){var ke=$.context.getFieldsValue,ve=$.getNamePath();return z(se||ke(!0),ve)},$.getControlled=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=$.props,ve=ke.trigger,Be=ke.validateTrigger,it=ke.getValueFromEvent,We=ke.normalize,Et=ke.valuePropName,Tt=ke.getValueProps,Ht=Be!==void 0?Be:$.context.validateTrigger,It=$.getNamePath(),tn=$.context,qt=tn.getInternalHooks,gn=tn.getFieldsValue,an=qt(f.a),Tn=an.dispatch,on=$.getValue(),En=Tt||function(Pn){return Object(r.a)({},Et,Pn)},yn=se[ve],vn=Object(t.a)(Object(t.a)({},se),En(on));vn[ve]=function(){$.touched=!0,$.dirty=!0;for(var Pn,St=arguments.length,bt=new Array(St),Pt=0;Pt=0&&En<=yn.length?(ve.keys=[].concat(Object(u.a)(ve.keys.slice(0,En)),[ve.id],Object(u.a)(ve.keys.slice(En))),It([].concat(Object(u.a)(yn.slice(0,En)),[on],Object(u.a)(yn.slice(En))))):(ve.keys=[].concat(Object(u.a)(ve.keys),[ve.id]),It([].concat(Object(u.a)(yn),[on]))),ve.id+=1},remove:function(on){var En=qt(),yn=new Set(Array.isArray(on)?on:[on]);if(yn.size<=0)return;ve.keys=ve.keys.filter(function(vn,Rn){return!yn.has(Rn)}),It(En.filter(function(vn,Rn){return!yn.has(Rn)}))},move:function(on,En){if(on===En)return;var yn=qt();if(on<0||on>=yn.length||En<0||En>=yn.length)return;ve.keys=Q(ve.keys,on,En),It(Q(yn,on,En))}},an=Ht||[];return Array.isArray(an)||(an=[]),$(an.map(function(Tn,on){var En=ve.keys[on];return En===void 0&&(ve.keys[on]=ve.id,En=ve.keys[on],ve.id+=1),{name:on,key:En,isListField:!0}}),gn)}))},ht=tt,ge=e("ODXe");function ye(K){var P=!1,T=K.length,$=[];return K.length?new Promise(function(se,ke){K.forEach(function(ve,Be){ve.catch(function(it){return P=!0,it}).then(function(it){if(T-=1,$[Be]=it,T>0)return;P&&ke($),se($)})})}):Promise.resolve([])}var je=function(){function K(){Object(v.a)(this,K),this.list=[]}return Object(m.a)(K,[{key:"set",value:function(T,$){var se=this.list.findIndex(function(ke){return ee(ke.key,T)});se!==-1?this.list[se].value=$:this.list.push({key:T,value:$})}},{key:"get",value:function(T){var $=this.list.find(function(se){return ee(se.key,T)});return $&&$.value}},{key:"update",value:function(T,$){var se=this.get(T),ke=$(se);ke?this.set(T,ke):this.delete(T)}},{key:"delete",value:function(T){this.list=this.list.filter(function($){return!ee($.key,T)})}},{key:"map",value:function(T){return this.list.map(T)}},{key:"toJSON",value:function(){var T={};return this.map(function($){var se=$.key,ke=$.value;return T[se.join(".")]=ke,null}),T}}]),K}(),we=je,ce=function K(P){var T=this;Object(v.a)(this,K),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:T.getFieldValue,getFieldsValue:T.getFieldsValue,getFieldError:T.getFieldError,getFieldsError:T.getFieldsError,isFieldsTouched:T.isFieldsTouched,isFieldTouched:T.isFieldTouched,isFieldValidating:T.isFieldValidating,isFieldsValidating:T.isFieldsValidating,resetFields:T.resetFields,setFields:T.setFields,setFieldsValue:T.setFieldsValue,validateFields:T.validateFields,submit:T.submit,getInternalHooks:T.getInternalHooks}},this.getInternalHooks=function($){return $===f.a?(T.formHooked=!0,{dispatch:T.dispatch,registerField:T.registerField,useSubscribe:T.useSubscribe,setInitialValues:T.setInitialValues,setCallbacks:T.setCallbacks,setValidateMessages:T.setValidateMessages,getFields:T.getFields,setPreserve:T.setPreserve}):(Object(l.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function($){T.subscribable=$},this.setInitialValues=function($,se){T.initialValues=$||{},se&&(T.store=re({},$,T.store))},this.getInitialValue=function($){return z(T.initialValues,$)},this.setCallbacks=function($){T.callbacks=$},this.setValidateMessages=function($){T.validateMessages=$},this.setPreserve=function($){T.preserve=$},this.timeoutId=null,this.warningUnhooked=function(){},this.getFieldEntities=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return $?T.fieldEntities.filter(function(se){return se.getNamePath().length}):T.fieldEntities},this.getFieldsMap=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,se=new we;return T.getFieldEntities($).forEach(function(ke){var ve=ke.getNamePath();se.set(ve,ke)}),se},this.getFieldEntitiesForNamePathList=function($){if(!$)return T.getFieldEntities(!0);var se=T.getFieldsMap(!0);return $.map(function(ke){var ve=L(ke);return se.get(ve)||{INVALIDATE_NAME_PATH:L(ke)}})},this.getFieldsValue=function($,se){if(T.warningUnhooked(),$===!0&&!se)return T.store;var ke=T.getFieldEntitiesForNamePathList(Array.isArray($)?$:null),ve=[];return ke.forEach(function(Be){var it="INVALIDATE_NAME_PATH"in Be?Be.INVALIDATE_NAME_PATH:Be.getNamePath();if(!se)ve.push(it);else{var We="getMeta"in Be?Be.getMeta():null;se(We)&&ve.push(it)}}),D(T.store,ve.map(L))},this.getFieldValue=function($){T.warningUnhooked();var se=L($);return z(T.store,se)},this.getFieldsError=function($){T.warningUnhooked();var se=T.getFieldEntitiesForNamePathList($);return se.map(function(ke,ve){return ke&&!("INVALIDATE_NAME_PATH"in ke)?{name:ke.getNamePath(),errors:ke.getErrors()}:{name:L($[ve]),errors:[]}})},this.getFieldError=function($){T.warningUnhooked();var se=L($),ke=T.getFieldsError([se])[0];return ke.errors},this.isFieldsTouched=function(){T.warningUnhooked();for(var $=arguments.length,se=new Array($),ke=0;ke<$;ke++)se[ke]=arguments[ke];var ve=se[0],Be=se[1],it,We=!1;se.length===0?it=null:se.length===1?Array.isArray(ve)?(it=ve.map(L),We=!1):(it=null,We=ve):(it=ve.map(L),We=Be);var Et=function(Ht){if(!it)return Ht.isFieldTouched();var It=Ht.getNamePath();return N(it,It)?Ht.isFieldTouched():We};return We?T.getFieldEntities(!0).every(Et):T.getFieldEntities(!0).some(Et)},this.isFieldTouched=function($){return T.warningUnhooked(),T.isFieldsTouched([$])},this.isFieldsValidating=function($){T.warningUnhooked();var se=T.getFieldEntities();if(!$)return se.some(function(ve){return ve.isFieldValidating()});var ke=$.map(L);return se.some(function(ve){var Be=ve.getNamePath();return N(ke,Be)&&ve.isFieldValidating()})},this.isFieldValidating=function($){return T.warningUnhooked(),T.isFieldsValidating([$])},this.resetWithFieldInitialValue=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=new we,ke=T.getFieldEntities(!0);ke.forEach(function(it){var We=it.props.initialValue,Et=it.getNamePath();if(We!==void 0){var Tt=se.get(Et)||new Set;Tt.add({entity:it,value:We}),se.set(Et,Tt)}});var ve=function(We){We.forEach(function(Et){var Tt=Et.props.initialValue;if(Tt!==void 0){var Ht=Et.getNamePath(),It=T.getInitialValue(Ht);if(It!==void 0)Object(l.a)(!1,"Form already set 'initialValues' with path '".concat(Ht.join("."),"'. Field can not overwrite it."));else{var tn=se.get(Ht);if(tn&&tn.size>1)Object(l.a)(!1,"Multiple Field with path '".concat(Ht.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(tn){var qt=T.getFieldValue(Ht);(!$.skipExist||qt===void 0)&&(T.store=G(T.store,Ht,Object(u.a)(tn)[0].value))}}}})},Be;$.entities?Be=$.entities:$.namePathList?(Be=[],$.namePathList.forEach(function(it){var We=se.get(it);if(We){var Et;(Et=Be).push.apply(Et,Object(u.a)(Object(u.a)(We).map(function(Tt){return Tt.entity})))}})):Be=ke,ve(Be)},this.resetFields=function($){T.warningUnhooked();var se=T.store;if(!$){T.store=re({},T.initialValues),T.resetWithFieldInitialValue(),T.notifyObservers(se,null,{type:"reset"});return}var ke=$.map(L);ke.forEach(function(ve){var Be=T.getInitialValue(ve);T.store=G(T.store,ve,Be)}),T.resetWithFieldInitialValue({namePathList:ke}),T.notifyObservers(se,ke,{type:"reset"})},this.setFields=function($){T.warningUnhooked();var se=T.store;$.forEach(function(ke){var ve=ke.name,Be=ke.errors,it=Object(n.a)(ke,["name","errors"]),We=L(ve);"value"in it&&(T.store=G(T.store,We,it.value)),T.notifyObservers(se,[We],{type:"setField",data:ke})})},this.getFields=function(){var $=T.getFieldEntities(!0),se=$.map(function(ke){var ve=ke.getNamePath(),Be=ke.getMeta(),it=Object(t.a)(Object(t.a)({},Be),{},{name:ve,value:T.getFieldValue(ve)});return Object.defineProperty(it,"originRCField",{value:!0}),it});return se},this.registerField=function($){if(T.fieldEntities.push($),$.props.initialValue!==void 0){var se=T.store;T.resetWithFieldInitialValue({entities:[$],skipExist:!0}),T.notifyObservers(se,[$.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(ke,ve){T.fieldEntities=T.fieldEntities.filter(function(We){return We!==$});var Be=ve!==void 0?ve:T.preserve;if(Be===!1&&!ke){var it=$.getNamePath();T.getFieldValue(it)!==void 0&&(T.store=G(T.store,it,void 0))}}},this.dispatch=function($){switch($.type){case"updateValue":{var se=$.namePath,ke=$.value;T.updateValue(se,ke);break}case"validateField":{var ve=$.namePath,Be=$.triggerName;T.validateFields([ve],{triggerName:Be});break}default:}},this.notifyObservers=function($,se,ke){if(T.subscribable){var ve=Object(t.a)(Object(t.a)({},ke),{},{store:T.getFieldsValue(!0)});T.getFieldEntities().forEach(function(Be){var it=Be.onStoreChange;it($,se,ve)})}else T.forceRootUpdate()},this.updateValue=function($,se){var ke=L($),ve=T.store;T.store=G(T.store,ke,se),T.notifyObservers(ve,[ke],{type:"valueUpdate",source:"internal"});var Be=T.getDependencyChildrenFields(ke);T.validateFields(Be),T.notifyObservers(ve,Be,{type:"dependenciesUpdate",relatedFields:[ke].concat(Object(u.a)(Be))});var it=T.callbacks.onValuesChange;if(it){var We=D(T.store,[ke]);it(We,T.store)}T.triggerOnFieldsChange([ke].concat(Object(u.a)(Be)))},this.setFieldsValue=function($){T.warningUnhooked();var se=T.store;$&&(T.store=re(T.store,$)),T.notifyObservers(se,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function($){var se=new Set,ke=[],ve=new we;T.getFieldEntities().forEach(function(it){var We=it.props.dependencies;(We||[]).forEach(function(Et){var Tt=L(Et);ve.update(Tt,function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Ht.add(it),Ht})})});var Be=function it(We){var Et=ve.get(We)||new Set;Et.forEach(function(Tt){if(!se.has(Tt)){se.add(Tt);var Ht=Tt.getNamePath();Tt.isFieldDirty()&&Ht.length&&(ke.push(Ht),it(Ht))}})};return Be($),ke},this.triggerOnFieldsChange=function($,se){var ke=T.callbacks.onFieldsChange;if(ke){var ve=T.getFields();if(se){var Be=new we;se.forEach(function(We){var Et=We.name,Tt=We.errors;Be.set(Et,Tt)}),ve.forEach(function(We){We.errors=Be.get(We.name)||We.errors})}var it=ve.filter(function(We){var Et=We.name;return N($,Et)});ke(it,ve)}},this.validateFields=function($,se){T.warningUnhooked();var ke=!!$,ve=ke?$.map(L):[],Be=[];T.getFieldEntities(!0).forEach(function(Et){if(ke||ve.push(Et.getNamePath()),!Et.props.rules||!Et.props.rules.length)return;var Tt=Et.getNamePath();if(!ke||N(ve,Tt)){var Ht=Et.validateRules(Object(t.a)({validateMessages:Object(t.a)(Object(t.a)({},He),T.validateMessages)},se));Be.push(Ht.then(function(){return{name:Tt,errors:[]}}).catch(function(It){return Promise.reject({name:Tt,errors:It})}))}});var it=ye(Be);T.lastValidatePromise=it,it.catch(function(Et){return Et}).then(function(Et){var Tt=Et.map(function(Ht){var It=Ht.name;return It});T.notifyObservers(T.store,Tt,{type:"validateFinish"}),T.triggerOnFieldsChange(Tt,Et)});var We=it.then(function(){return T.lastValidatePromise===it?Promise.resolve(T.getFieldsValue(ve)):Promise.reject([])}).catch(function(Et){var Tt=Et.filter(function(Ht){return Ht&&Ht.errors.length});return Promise.reject({values:T.getFieldsValue(ve),errorFields:Tt,outOfDate:T.lastValidatePromise!==it})});return We.catch(function(Et){return Et}),We},this.submit=function(){T.warningUnhooked(),T.validateFields().then(function($){var se=T.callbacks.onFinish;if(se)try{se($)}catch(ke){console.error(ke)}}).catch(function($){var se=T.callbacks.onFinishFailed;se&&se($)})},this.forceRootUpdate=P};function Y(K){var P=a.useRef(),T=a.useState(),$=Object(ge.a)(T,2),se=$[1];if(!P.current)if(K)P.current=K;else{var ke=function(){se({})},ve=new ce(ke);P.current=ve.getForm()}return[P.current]}var V=Y,U=a.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),B=function(P){var T=P.validateMessages,$=P.onFormChange,se=P.onFormFinish,ke=P.children,ve=a.useContext(U),Be=a.useRef({});return a.createElement(U.Provider,{value:Object(t.a)(Object(t.a)({},ve),{},{validateMessages:Object(t.a)(Object(t.a)({},ve.validateMessages),T),triggerFormChange:function(We,Et){$&&$(We,{changedFields:Et,forms:Be.current}),ve.triggerFormChange(We,Et)},triggerFormFinish:function(We,Et){se&&se(We,{values:Et,forms:Be.current}),ve.triggerFormFinish(We,Et)},registerForm:function(We,Et){We&&(Be.current=Object(t.a)(Object(t.a)({},Be.current),{},Object(r.a)({},We,Et))),ve.registerForm(We,Et)},unregisterForm:function(We){var Et=Object(t.a)({},Be.current);delete Et[We],Be.current=Et,ve.unregisterForm(We)}})},ke)},Ae=U,S=function(P,T){var $=P.name,se=P.initialValues,ke=P.fields,ve=P.form,Be=P.preserve,it=P.children,We=P.component,Et=We===void 0?"form":We,Tt=P.validateMessages,Ht=P.validateTrigger,It=Ht===void 0?"onChange":Ht,tn=P.onValuesChange,qt=P.onFieldsChange,gn=P.onFinish,an=P.onFinishFailed,Tn=Object(n.a)(P,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),on=a.useContext(Ae),En=V(ve),yn=Object(ge.a)(En,1),vn=yn[0],Rn=vn.getInternalHooks(f.a),Pn=Rn.useSubscribe,St=Rn.setInitialValues,bt=Rn.setCallbacks,Pt=Rn.setValidateMessages,Ft=Rn.setPreserve;a.useImperativeHandle(T,function(){return vn}),a.useEffect(function(){return on.registerForm($,vn),function(){on.unregisterForm($)}},[on,vn,$]),Pt(Object(t.a)(Object(t.a)({},on.validateMessages),Tt)),bt({onValuesChange:tn,onFieldsChange:function(ct){if(on.triggerFormChange($,ct),qt){for(var qe=arguments.length,Me=new Array(qe>1?qe-1:0),Z=1;Zd;)s.push(String(v[d++])),d1?arguments[1]:void 0)})},"8OGu":function(x,g,e){var a=e("I65O");a("isConcatSpreadable")},"8OQS":function(x,g){function e(a,n){if(a==null)return{};var r={},t=Object.keys(a),u,v;for(v=0;v=0)continue;r[u]=a[u]}return r}x.exports=e,x.exports.__esModule=!0,x.exports.default=x.exports},"8OQV":function(x,g,e){var a=e("ukPv"),n=e("MVys"),r=e("GPrf"),t=e("FVwB").NATIVE_ARRAY_BUFFER_VIEWS,u=a.ArrayBuffer,v=a.Int8Array;x.exports=!t||!n(function(){v(1)})||!n(function(){new v(-1)})||!r(function(m){new v,new v(null),new v(1.5),new v(m)},!0)||n(function(){return new v(new u(2),1,void 0).length!==1})},"8Ubs":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"Map",stat:!0},{from:n})},"8XRh":function(x,g,e){"use strict";e.r(g),e.d(g,"CSSMotionList",function(){return W});var a=e("rePB"),n=e("VTBJ"),r=e("1OyB"),t=e("vuIU"),u=e("JX7q"),v=e("Ji7U"),m=e("LK+K"),i=e("U8pU"),s=e("q1tI"),d=e("m+aA"),l=e("c+Xe"),f=e("TSYQ"),o=e.n(f),h=e("xEkU"),c=e.n(h),b=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function E(Ye,fe){var rt={};return rt[Ye.toLowerCase()]=fe.toLowerCase(),rt["Webkit".concat(Ye)]="webkit".concat(fe),rt["Moz".concat(Ye)]="moz".concat(fe),rt["ms".concat(Ye)]="MS".concat(fe),rt["O".concat(Ye)]="o".concat(fe.toLowerCase()),rt}function O(Ye,fe){var rt={animationend:E("Animation","AnimationEnd"),transitionend:E("Transition","TransitionEnd")};return Ye&&("AnimationEvent"in fe||delete rt.animationend.animation,"TransitionEvent"in fe||delete rt.transitionend.transition),rt}var C=O(b,typeof window!="undefined"?window:{}),M={};if(b){var w=document.createElement("div");M=w.style}var A={};function L(Ye){if(A[Ye])return A[Ye];var fe=C[Ye];if(fe)for(var rt=Object.keys(fe),Te=rt.length,Ve=0;Ve0&&(ye.deadlineId=setTimeout(function(){ye.onMotionEnd({deadline:!0})},Y))})},ye.nextFrame=function(je){ye.cancelNextFrame(),ye.raf=c()(je)},ye.cancelNextFrame=function(){ye.raf&&(c.a.cancel(ye.raf),ye.raf=null)},ye}return Object(t.a)(ge,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var je,we=this.state,ce=we.status,Y=we.statusActive,V=we.statusStyle,U=this.props,B=U.children,Ae=U.motionName,S=U.visible,k=U.removeOnLeave,ae=U.leavedClassName,oe=U.eventProps;return B?ce===Oe||!Te(this.props)?S?B(Object(n.a)({},oe),this.setNodeRef):k?null:B(Object(n.a)(Object(n.a)({},oe),{},{className:ae}),this.setNodeRef):B(Object(n.a)(Object(n.a)({},oe),{},{className:o()(N(Ae,ce),(je={},Object(a.a)(je,N(Ae,"".concat(ce,"-active")),Y),Object(a.a)(je,Ae,typeof Ae=="string"),je)),style:V}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(je,we){var ce=we.prevProps,Y=we.status;if(!Te(je))return{};var V=je.visible,U=je.motionAppear,B=je.motionEnter,Ae=je.motionLeave,S=je.motionLeaveImmediately,k={prevProps:je};return(Y===ue&&!U||Y===re&&!B||Y===ee&&!Ae)&&(k.status=Oe,k.statusActive=!1,k.newStatus=!1),!ce&&V&&U&&(k.status=ue,k.statusActive=!1,k.newStatus=!0),ce&&!ce.visible&&V&&B&&(k.status=re,k.statusActive=!1,k.newStatus=!0),(ce&&ce.visible&&!V&&Ae||!ce&&S&&!V&&Ae)&&(k.status=ee,k.statusActive=!1,k.newStatus=!0),k}}]),ge}(s.Component);return Ve.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},rt?s.forwardRef(function(tt,ht){return s.createElement(Ve,Object.assign({internalRef:ht},tt))}):Ve}var F=J(D),Q=e("Ff2n"),q="add",He="keep",Ze="remove",ft="removed";function $e(Ye){var fe;return Ye&&Object(i.a)(Ye)==="object"&&"key"in Ye?fe=Ye:fe={key:Ye},Object(n.a)(Object(n.a)({},fe),{},{key:String(fe.key)})}function Ue(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ye.map($e)}function X(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=[],Te=0,Ve=fe.length,tt=Ue(Ye),ht=Ue(fe);tt.forEach(function(je){for(var we=!1,ce=Te;ce1});return ye.forEach(function(je){rt=rt.filter(function(we){var ce=we.key,Y=we.status;return ce!==je||Y!==Ze}),rt.forEach(function(we){we.key===je&&(we.status=He)})}),rt}var me=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ie(Ye){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F,rt=function(Te){Object(v.a)(tt,Te);var Ve=Object(m.a)(tt);function tt(){var ht;return Object(r.a)(this,tt),ht=Ve.apply(this,arguments),ht.state={keyEntities:[]},ht.removeKey=function(ge){ht.setState(function(ye){var je=ye.keyEntities;return{keyEntities:je.map(function(we){return we.key!==ge?we:Object(n.a)(Object(n.a)({},we),{},{status:ft})})}})},ht}return Object(t.a)(tt,[{key:"render",value:function(){var ge=this,ye=this.state.keyEntities,je=this.props,we=je.component,ce=je.children,Y=Object(Q.a)(je,["component","children"]),V=we||s.Fragment,U={};return me.forEach(function(B){U[B]=Y[B],delete Y[B]}),delete Y.keys,s.createElement(V,Object.assign({},Y),ye.map(function(B){var Ae=B.status,S=Object(Q.a)(B,["status"]),k=Ae===q||Ae===He;return s.createElement(fe,Object.assign({},U,{key:S.key,visible:k,eventProps:S,onLeaveEnd:function(){U.onLeaveEnd&&U.onLeaveEnd.apply(U,arguments),ge.removeKey(S.key)}}),ce)}))}}],[{key:"getDerivedStateFromProps",value:function(ge,ye){var je=ge.keys,we=ye.keyEntities,ce=Ue(je);if(!Ye)return{keyEntities:ce.map(function(U){return Object(n.a)(Object(n.a)({},U),{},{status:He})})};var Y=X(we,ce),V=we.length;return{keyEntities:Y.filter(function(U){for(var B=null,Ae=0;Ae children");U=B}}),U}function E(ce,Y,V){var U=0;return ce&&ce.forEach(function(B){if(U)return;U=B&&B.key===Y&&!B.props[V]}),U}function O(ce,Y,V){var U=ce.length===Y.length;return U&&ce.forEach(function(B,Ae){var S=Y[Ae];B&&S&&((B&&!S||!B&&S||(B.key!==S.key||V&&B.props[V]!==S.props[V]))&&(U=!1))}),U}function C(ce,Y){var V=[],U={},B=[];return ce.forEach(function(Ae){Ae&&c(Y,Ae.key)?B.length&&(U[Ae.key]=B,B=[]):B.push(Ae)}),Y.forEach(function(Ae){Ae&&Object.prototype.hasOwnProperty.call(U,Ae.key)&&(V=V.concat(U[Ae.key])),V.push(Ae)}),V=V.concat(B),V}var M=e("UwPn"),w={isAppearSupported:function(Y){return Y.transitionName&&Y.transitionAppear||Y.animation.appear},isEnterSupported:function(Y){return Y.transitionName&&Y.transitionEnter||Y.animation.enter},isLeaveSupported:function(Y){return Y.transitionName&&Y.transitionLeave||Y.animation.leave},allowAppearCallback:function(Y){return Y.transitionAppear||Y.animation.appear},allowEnterCallback:function(Y){return Y.transitionEnter||Y.animation.enter},allowLeaveCallback:function(Y){return Y.transitionLeave||Y.animation.leave}},A=w,L=function(){function ce(Y,V){for(var U=0;U children");return s.a.createElement(ue,{key:oe.key,ref:function(K){U.childrenRefs[oe.key]=K},animation:B.animation,transitionName:B.transitionName,transitionEnter:B.transitionEnter,transitionAppear:B.transitionAppear,transitionLeave:B.transitionLeave},oe)}));var k=B.component;if(k){var ae=B;return typeof k=="string"&&(ae=re({className:B.className,style:B.style},B.componentProps)),s.a.createElement(k,ae,S)}return S[0]||null}}]),Y}(s.a.Component);$e.isAnimate=!0,$e.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:ft,onEnter:ft,onLeave:ft,onAppear:ft};var Ue=function(){var Y=this;this.performEnter=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillEnter(Y.handleDoneAdding.bind(Y,V,"enter")))},this.performAppear=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillAppear(Y.handleDoneAdding.bind(Y,V,"appear")))},this.handleDoneAdding=function(V,U){var B=Y.props;if(delete Y.currentlyAnimatingKeys[V],B.exclusive&&B!==Y.nextProps)return;var Ae=h(Ze(B));Y.isValidChildByKey(Ae,V)?U==="appear"?A.allowAppearCallback(B)&&(B.onAppear(V),B.onEnd(V,!0)):A.allowEnterCallback(B)&&(B.onEnter(V),B.onEnd(V,!0)):Y.performLeave(V)},this.performLeave=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillLeave(Y.handleDoneLeaving.bind(Y,V)))},this.handleDoneLeaving=function(V){var U=Y.props;if(delete Y.currentlyAnimatingKeys[V],U.exclusive&&U!==Y.nextProps)return;var B=h(Ze(U));if(Y.isValidChildByKey(B,V))Y.performEnter(V);else{var Ae=function(){A.allowLeaveCallback(U)&&(U.onLeave(V),U.onEnd(V,!1))};O(Y.state.children,B,U.showProp)?Ae():Y.setState({children:B},Ae)}}},X=o($e),me=e("2GS6"),ie=e("TSYQ"),W=e.n(ie),de=e("EE3K"),Ye=e("8HVG");function fe(ce,Y){var V=Object.keys(ce);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(ce);Y&&(U=U.filter(function(B){return Object.getOwnPropertyDescriptor(ce,B).enumerable})),V.push.apply(V,U)}return V}function rt(ce){for(var Y=1;Y=k&&(B.updateKey=K[0].notice.updateKey||K[0].notice.key,K.shift()),K.push({notice:B,holderCallback:Ae})),{notices:K}})},U.remove=function(B){U.setState(function(Ae){return{notices:Ae.notices.filter(function(S){var k=S.notice;return k.key!==B})}})},U}return Object(t.a)(V,[{key:"getTransitionName",value:function(){var B=this.props,Ae=B.prefixCls,S=B.animation,k=this.props.transitionName;return!k&&S&&(k="".concat(Ae,"-").concat(S)),k}},{key:"render",value:function(){var B=this,Ae=this.state.notices,S=this.props,k=S.prefixCls,ae=S.className,oe=S.closeIcon,le=S.style,K=Ae.map(function(P,T){var $=P.notice,se=P.holderCallback,ke=Boolean(T===Ae.length-1&&$.updateKey),ve=$.updateKey?$.updateKey:$.key,Be=Object(me.a)(B.remove.bind(B,$.key),$.onClose),it=rt(rt(rt({prefixCls:k,closeIcon:oe},$),$.props),{},{key:ve,update:ke,onClose:Be,onClick:$.onClick,children:$.content});return se?s.a.createElement("div",{key:ve,className:"".concat(k,"-hook-holder"),ref:function(Et){if(typeof ve=="undefined")return;Et?(B.hookRefs.set(ve,Et),se(Et,it)):B.hookRefs.delete(ve)}}):s.a.createElement(de.a,Object.assign({},it))});return s.a.createElement("div",{className:W()(k,ae),style:le},s.a.createElement(X,{transitionName:this.getTransitionName()},K))}}]),V}(i.Component);ye.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},ye.newInstance=function(Y,V){var U=Y||{},B=U.getContainer,Ae=Object(a.a)(U,["getContainer"]),S=document.createElement("div");if(B){var k=B();k.appendChild(S)}else document.body.appendChild(S);var ae=!1;function oe(le){if(ae)return;ae=!0,V({notice:function(P){le.add(P)},removeNotice:function(P){le.remove(P)},component:le,destroy:function(){l.a.unmountComponentAtNode(S),S.parentNode&&S.parentNode.removeChild(S)},useNotification:function(){return Object(Ye.a)(le)}})}l.a.render(s.a.createElement(ye,Object.assign({},Ae,{ref:oe})),S)};var je=ye,we=g.default=je},"8w+9":function(x,g,e){var a=e("ukPv"),n=e("tSXo"),r=a.document,t=n(r)&&n(r.createElement);x.exports=function(u){return t?r.createElement(u):{}}},"8yz6":function(x,g,e){"use strict";x.exports=function(a,n){if(!(typeof a=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[a];var r=a.indexOf(n);return r===-1?[a]:[a.slice(0,r),a.slice(r+n.length)]}},"9/ry":function(x,g,e){"use strict";var a=e("MMxC"),n=e("rjJZ"),r=e("FCfD"),t=e("C7V6");a({target:"String",proto:!0,forced:!t("includes")},{includes:function(v){return!!~String(r(this)).indexOf(n(v),arguments.length>1?arguments[1]:void 0)}})},"9BQv":function(x,g,e){"use strict";var a=e("tny8"),n=e("eNh0"),r=e("cTDu"),t=e("oa35"),u=e("YfKC").f;a&&!("lastItem"in[])&&(u(Array.prototype,"lastItem",{configurable:!0,get:function(){var m=r(this),i=t(m.length);return i==0?void 0:m[i-1]},set:function(m){var i=r(this),s=t(i.length);return i[s==0?0:s-1]=m}}),n("lastItem"))},"9R94":function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=!0,n="Invariant failed";function r(t,u){if(t)return;if(a)throw new Error(n);var v=typeof u=="function"?u():u,m=v?n+": "+v:n;throw new Error(m)}},"9RRT":function(x,g,e){var a=e("cT1L"),n=e("cTDu"),r=e("EzR6"),t=e("oa35"),u=function(v){return function(m,i,s,d){a(i);var l=n(m),f=r(l),o=t(l.length),h=v?o-1:0,c=v?-1:1;if(s<2)for(;;){if(h in f){d=f[h],h+=c;break}if(h+=c,v?h<0:o<=h)throw TypeError("Reduce of empty array with no initial value")}for(;v?h>=0:o>h;h+=c)h in f&&(d=i(d,f[h],h,l));return d}};x.exports={left:u(!1),right:u(!0)}},"9Rzw":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("/dTS"),m=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{difference:function(s){var d=t(this),l=new(v(d,r("Set")))(d),f=u(l.delete);return m(s,function(o){f.call(l,o)}),l}})},"9SZg":function(x,g,e){var a=e("Ei+o"),n=e("5yw/"),r=e("2kyd"),t=r("iterator");x.exports=function(u){if(u!=null)return u[t]||u["@@iterator"]||n[a(u)]}},"9Y4n":function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("bold")},{bold:function(){return n(this,"b","","")}})},"9bAj":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("cT1L"),u=e("PPXv"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{reduce:function(i){var s=r(this),d=u(s),l=arguments.length<2,f=l?void 0:arguments[1];if(t(i),v(d,function(o,h){l?(l=!1,f=h):f=i(f,h,o,s)},void 0,!0,!0),l)throw TypeError("Reduce of empty map with no initial value");return f}})},"9hUv":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("5WQS"),u={namespace:"messages",state:{tidingsList:[],privateMessage:[],unreadInfo:[],recentContacts:{},privateMessageDetails:{},userPrivateMessage:{},actionTabs:{key:"",params:{}}},effects:{getPrivateMessageDetails:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.b,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{privateMessageDetails:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getTidings:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.e,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{tidingsList:f||[]}});case 7:case"end":return h.stop()}},v)}),getPrivateMessages:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.c,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{privateMessage:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getUsersForPrivateMessages:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.f,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{userPrivateMessage:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),unreadMessageInfo:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.h,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{unreadInfo:f||[]}});case 7:case"end":return h.stop()}},v)}),getRecentContacts:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{recentContacts:f||[]}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"9kvl":function(x,g,e){"use strict";e.d(g,"d",function(){return a.b}),e.d(g,"e",function(){return n.a}),e.d(g,"a",function(){return r.a}),e.d(g,"c",function(){return r.b}),e.d(g,"b",function(){return t.a}),e.d(g,"f",function(){return v.g});var a=e("FfOG"),n=e("bCY9"),r=e("p12T"),t=e("cFGR"),u=1,v=e("Fghh"),m=e("jrin"),i=e("k1fw"),s=e("qVdP"),d=e("jsC+"),l=e("0Owb"),f=e("PpiC"),o=e("q1tI"),h=e.n(o),c=function(bt){var Pt=bt.overlayClassName,Ft=Object(f.a)(bt,["overlayClassName"]);return h.a.createElement(d.a,Object(l.a)({overlayClassName:Pt},Ft))},b=function(bt){return bt.reduce(function(Pt,Ft){return Ft.lang?Object(i.a)(Object(i.a)({},Pt),{},Object(m.a)({},Ft.lang,Ft)):Pt},{})},E=Object(m.a)({"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"zh-TW",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0440\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u4F53\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},"zh-TW",{lang:"zh-TW",label:"\u7E41\u4F53\u4E2D\u6587",icon:"\u{1F1F9}\u{1F1FC}",title:"\u8A9E\u8A00"}),O=function(bt){return h.a.createElement(h.a.Fragment,null)},C=e("I5X1"),M=e("9og8"),w=e("/xke"),A=e("TeRw"),L=e("miYZ"),z=e("tsqr"),G=e("WmNS"),D=e.n(G),N=e("ZqBY"),Oe=e("LtsZ"),ue=e("9/5/"),re=e.n(ue),ee=e("hKI/"),J=e.n(ee);function F(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function Q(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var q=new Map,He=function(bt,Pt,Ft){var De=q.get(bt);(De==null?void 0:De.timer)&&clearTimeout(De.timer);var Ct=void 0;Pt>-1&&(Ct=setTimeout(function(){q.delete(bt)},Pt)),q.set(bt,{data:Ft,timer:Ct,startTime:new Date().getTime()})},Ze=function(bt){var Pt=q.get(bt);return{data:Pt==null?void 0:Pt.data,startTime:Pt==null?void 0:Pt.startTime}},ft=function(St,bt){var Pt=typeof Symbol=="function"&&St[Symbol.iterator];if(!Pt)return St;var Ft=Pt.call(St),De,Ct=[],be;try{for(;(bt===void 0||bt-- >0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},$e=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},me=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},V=function(){for(var St=[],bt=0;bt0){var Nt=Ke&&((Lt=Ze(Ke))===null||Lt===void 0?void 0:Lt.startTime)||0;Mn===-1||new Date().getTime()-Nt<=Mn||Object.values(mt).forEach(function(Vt){Vt.refresh()})}else I.current.apply(I,V(xt))},[]);var yt=Object(o.useCallback)(function(){Object.values(Rt.current).forEach(function(Lt){Lt.unmount()}),br.current=U,Ot({}),Rt.current={}},[Ot]);Ye(function(){be||Object.values(Rt.current).forEach(function(Lt){Lt.refresh()})},V(De)),Object(o.useEffect)(function(){return function(){Object.values(Rt.current).forEach(function(Lt){Lt.unmount()})}},[]);var wt=Object(o.useCallback)(function(Lt){return function(){console.warn("You should't call "+Lt+" when service not executed once.")}},[]);return ce(ce({loading:Hn&&!be||ct,data:Fn,error:void 0,params:[],cancel:wt("cancel"),refresh:wt("refresh"),mutate:wt("mutate")},mt[br.current]||{}),{run:Re,fetches:mt,reset:yt})}var S=Ae,k=function(){return k=Object.assign||function(St){for(var bt,Pt=1,Ft=arguments.length;Pt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},le=function(){for(var St=[],bt=0;bt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},ke=function(){for(var St=[],bt=0;btdr&&(Hn=Math.max(1,dr)),bn({current:Hn,pageSize:ar})},[Ke,bn]),_=Object(o.useCallback)(function(Fn){Ut(Fn,xt)},[Ut,xt]),Mn=Object(o.useCallback)(function(Fn){Ut(gt,Fn)},[Ut,gt]),Wn=Object(o.useRef)(_);Wn.current=_,Ye(function(){bt.manual||Wn.current(1)},ke(be));var kn=Object(o.useCallback)(function(Fn,qn,Hn){bn({current:Fn.current,pageSize:Fn.pageSize||De,filters:qn,sorter:Hn})},[Ln,ln,bn]);return T({loading:qe,data:Pe,params:Ce,run:ct,pagination:{current:gt,pageSize:xt,total:Ke,totalPage:_e,onChange:Ut,changeCurrent:_,changePageSize:Mn},tableProps:{dataSource:(Pe==null?void 0:Pe.list)||[],loading:qe,onChange:kn,pagination:{current:gt,pageSize:xt,total:Ke}},sorter:ln,filters:Ln},Me)}var Be=ve,it=h.a.createContext({});it.displayName="UseRequestConfigContext";var We=it,Et=function(){return Et=Object.assign||function(St){for(var bt,Pt=1,Ft=arguments.length;Pt0)&&!(De=Ft.next()).done;)Ct.push(De.value)}catch(Fe){be={error:Fe}}finally{try{De&&!De.done&&(Pt=Ft.return)&&Pt.call(Ft)}finally{if(be)throw be.error}}return Ct},It=function(){for(var St=[],bt=0;bt1&&arguments[1]!==void 0?arguments[1]:{};return an(St,Object(i.a)({formatResult:function(Ft){return Ft==null?void 0:Ft.data},requestMethod:function(Ft){if(typeof Ft=="string")return Rn(Ft);if(typeof Ft=="object"){var De=Ft.url,Ct=Object(f.a)(Ft,["url"]);return Rn(De,Ct)}throw new Error("request options error")}},bt))}var on;(function(St){St[St.SILENT=0]="SILENT",St[St.WARN_MESSAGE=1]="WARN_MESSAGE",St[St.ERROR_MESSAGE=2]="ERROR_MESSAGE",St[St.NOTIFICATION=4]="NOTIFICATION",St[St.REDIRECT=9]="REDIRECT"})(on||(on={}));var En="/exception",yn,vn=function(){var bt;if(yn)return yn;var Pt=n.a.applyPlugins({key:"request",type:Oe.a.modify,initialValue:{}}),Ft=((bt=Pt.errorConfig)===null||bt===void 0?void 0:bt.adaptor)||function(Fe){return Fe};yn=Object(N.a)(Object(i.a)({errorHandler:function(Ne){var dt,Pe,Ce;if(Ne!=null&&(dt=Ne.request)!==null&&dt!==void 0&&(Pe=dt.options)!==null&&Pe!==void 0&&Pe.skipErrorHandler)throw Ne;var ct;if(Ne.name==="ResponseError"&&Ne.data&&Ne.request){var qe,Me={req:Ne.request,res:Ne.response};ct=Ft(Ne.data,Me),Ne.message=((qe=ct)===null||qe===void 0?void 0:qe.errorMessage)||Ne.message,Ne.data=Ne.data,Ne.info=ct}if(ct=Ne.info,ct){var Z,Xe,gt,Mt=(Z=ct)===null||Z===void 0?void 0:Z.errorMessage,xt=(Xe=ct)===null||Xe===void 0?void 0:Xe.errorCode,Gt=((gt=Pt.errorConfig)===null||gt===void 0?void 0:gt.errorPage)||En;switch((Ce=ct)===null||Ce===void 0?void 0:Ce.showType){case on.SILENT:break;case on.WARN_MESSAGE:z.b.warn(Mt);break;case on.ERROR_MESSAGE:z.b.error(Mt);break;case on.NOTIFICATION:A.a.open({message:Mt});break;case on.REDIRECT:a.b.push({pathname:Gt,query:{errorCode:xt,errorMessage:Mt}});break;default:z.b.error(Mt);break}}else z.b.error(Ne.message||"Request error, please retry.");throw Ne}},Pt)),yn.use(function(){var Fe=Object(M.a)(D.a.mark(function Ne(dt,Pe){var Ce,ct,qe,Me,Z,Xe,gt,Mt;return D.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,Pe();case 2:if(ct=dt.req,qe=dt.res,!((Ce=ct.options)!==null&&Ce!==void 0&&Ce.skipErrorHandler)){Gt.next=5;break}return Gt.abrupt("return");case 5:if(Me=ct.options,Z=Me.getResponse,Xe=Z?qe.data:qe,gt=Ft(Xe,dt),!(gt.success===!1)){Gt.next=15;break}throw Mt=new Error(gt.errorMessage),Mt.name="BizError",Mt.data=Xe,Mt.info=gt,Mt;case 15:case"end":return Gt.stop()}},Ne)}));return function(Ne,dt){return Fe.apply(this,arguments)}}());var De=Pt.middlewares||[];De.forEach(function(Fe){yn.use(Fe)});var Ct=Pt.requestInterceptors||[],be=Pt.responseInterceptors||[];return Ct.map(function(Fe){yn.interceptors.request.use(Fe)}),be.map(function(Fe){yn.interceptors.response.use(Fe)}),yn},Rn=function(bt,Pt){var Ft=vn();return Ft(bt,Pt)},Pn=e("qhky")},"9mu1":function(x,g,e){"use strict";var a=e("ODXe"),n=e("U8pU"),r=e("q1tI"),t=e.n(r),u=e("c+Xe"),v=function(be){if(!be)return!1;if(be.offsetParent)return!0;if(be.getBBox){var Fe=be.getBBox();if(Fe.width||Fe.height)return!0}if(be.getBoundingClientRect){var Ne=be.getBoundingClientRect();if(Ne.width||Ne.height)return!0}return!1};function m(be,Fe){var Ne=Object.keys(be);if(Object.getOwnPropertySymbols){var dt=Object.getOwnPropertySymbols(be);Fe&&(dt=dt.filter(function(Pe){return Object.getOwnPropertyDescriptor(be,Pe).enumerable})),Ne.push.apply(Ne,dt)}return Ne}function i(be){for(var Fe=1;Fe=0&&Ne.left>=0&&Ne.bottom>Ne.top&&Ne.right>Ne.left?Ne:null}function le(be,Fe,Ne,dt){var Pe=B.clone(be),Ce={width:Fe.width,height:Fe.height};return dt.adjustX&&Pe.left=Ne.left&&Pe.left+Ce.width>Ne.right&&(Ce.width-=Pe.left+Ce.width-Ne.right),dt.adjustX&&Pe.left+Ce.width>Ne.right&&(Pe.left=Math.max(Ne.right-Ce.width,Ne.left)),dt.adjustY&&Pe.top=Ne.top&&Pe.top+Ce.height>Ne.bottom&&(Ce.height-=Pe.top+Ce.height-Ne.bottom),dt.adjustY&&Pe.top+Ce.height>Ne.bottom&&(Pe.top=Math.max(Ne.bottom-Ce.height,Ne.top)),B.mix(Pe,Ce)}function K(be){var Fe,Ne,dt;if(!B.isWindow(be)&&be.nodeType!==9)Fe=B.offset(be),Ne=B.outerWidth(be),dt=B.outerHeight(be);else{var Pe=B.getWindow(be);Fe={left:B.getWindowScrollLeft(Pe),top:B.getWindowScrollTop(Pe)},Ne=B.viewportWidth(Pe),dt=B.viewportHeight(Pe)}return Fe.width=Ne,Fe.height=dt,Fe}function P(be,Fe){var Ne=Fe.charAt(0),dt=Fe.charAt(1),Pe=be.width,Ce=be.height,ct=be.left,qe=be.top;return Ne==="c"?qe+=Ce/2:Ne==="b"&&(qe+=Ce),dt==="c"?ct+=Pe/2:dt==="r"&&(ct+=Pe),{left:ct,top:qe}}function T(be,Fe,Ne,dt,Pe){var Ce=P(Fe,Ne[1]),ct=P(be,Ne[0]),qe=[ct.left-Ce.left,ct.top-Ce.top];return{left:Math.round(be.left-qe[0]+dt[0]-Pe[0]),top:Math.round(be.top-qe[1]+dt[1]-Pe[1])}}function $(be,Fe,Ne){return be.leftNe.right}function se(be,Fe,Ne){return be.topNe.bottom}function ke(be,Fe,Ne){return be.left>Ne.right||be.left+Fe.widthNe.bottom||be.top+Fe.height=Ne.right||dt.top>=Ne.bottom}function It(be,Fe,Ne){var dt=Ne.target||Fe,Pe=K(dt),Ce=!Ht(dt,Ne.overflow&&Ne.overflow.alwaysByViewport);return Tt(be,Pe,Ne,Ce)}It.__getOffsetParent=S,It.__getVisibleRectForElement=oe;function tn(be,Fe,Ne){var dt,Pe,Ce=B.getDocument(be),ct=Ce.defaultView||Ce.parentWindow,qe=B.getWindowScrollLeft(ct),Me=B.getWindowScrollTop(ct),Z=B.viewportWidth(ct),Xe=B.viewportHeight(ct);"pageX"in Fe?dt=Fe.pageX:dt=qe+Fe.clientX,"pageY"in Fe?Pe=Fe.pageY:Pe=Me+Fe.clientY;var gt={left:dt,top:Pe,width:0,height:0},Mt=dt>=0&&dt<=qe+Z&&Pe>=0&&Pe<=Me+Xe,xt=[Ne.points[0],"cc"];return Tt(be,gt,i(i({},Ne),{},{points:xt}),Mt)}var qt=It,gn=e("zT1h"),an=e("Y+p1"),Tn=e.n(an),on=e("bdgK"),En=e("l4aY");function yn(be,Fe){return be===Fe?!0:!be||!Fe?!1:"pageX"in Fe&&"pageY"in Fe?be.pageX===Fe.pageX&&be.pageY===Fe.pageY:"clientX"in Fe&&"clientY"in Fe?be.clientX===Fe.clientX&&be.clientY===Fe.clientY:!1}function vn(be,Fe){be!==document.activeElement&&Object(En.a)(Fe,be)&&typeof be.focus=="function"&&be.focus()}function Rn(be,Fe){var Ne=null,dt=null;function Pe(ct){var qe=Object(a.a)(ct,1),Me=qe[0].target;if(!document.documentElement.contains(Me))return;var Z=Me.getBoundingClientRect(),Xe=Z.width,gt=Z.height,Mt=Math.floor(Xe),xt=Math.floor(gt);(Ne!==Mt||dt!==xt)&&Promise.resolve().then(function(){Fe({width:Mt,height:xt})}),Ne=Mt,dt=xt}var Ce=new on.default(Pe);return be&&Ce.observe(be),function(){Ce.disconnect()}}var Pn=function(be,Fe){var Ne=t.a.useRef(!1),dt=t.a.useRef(null);function Pe(){window.clearTimeout(dt.current)}function Ce(ct){if(!Ne.current||ct===!0){if(be()===!1)return;Ne.current=!0,Pe(),dt.current=window.setTimeout(function(){Ne.current=!1},Fe)}else Pe(),dt.current=window.setTimeout(function(){Ne.current=!1,Ce()},Fe)}return[Ce,function(){Ne.current=!1,Pe()}]};function St(be){return typeof be!="function"?null:be()}function bt(be){return Object(n.a)(be)!=="object"||!be?null:be}var Pt=function(Fe,Ne){var dt=Fe.children,Pe=Fe.disabled,Ce=Fe.target,ct=Fe.align,qe=Fe.onAlign,Me=Fe.monitorWindowResize,Z=Fe.monitorBufferTime,Xe=Z===void 0?0:Z,gt=t.a.useRef({}),Mt=t.a.useRef(),xt=t.a.Children.only(dt),Gt=t.a.useRef({});Gt.current.disabled=Pe,Gt.current.target=Ce,Gt.current.align=ct,Gt.current.onAlign=qe;var ln=Pn(function(){var _=Gt.current,Mn=_.disabled,Wn=_.target,kn=_.align,Fn=_.onAlign;if(!Mn&&Wn){var qn=Mt.current,Hn,ar=St(Wn),dr=bt(Wn);gt.current.element=ar,gt.current.point=dr,gt.current.align=kn;var br=document,jr=br.activeElement;return ar&&v(ar)?Hn=It(qn,ar,kn):dr&&(Hn=tn(qn,dr,kn)),vn(jr,qn),Fn&&Hn&&Fn(qn,Hn),!0}return!1},Xe),nn=Object(a.a)(ln,2),Ln=nn[0],bn=nn[1],Ke=t.a.useRef({cancel:function(){}}),_e=t.a.useRef({cancel:function(){}});t.a.useEffect(function(){var _=St(Ce),Mn=bt(Ce);Mt.current!==_e.current.element&&(_e.current.cancel(),_e.current.element=Mt.current,_e.current.cancel=Rn(Mt.current,Ln)),(gt.current.element!==_||!yn(gt.current.point,Mn)||!Tn()(gt.current.align,ct))&&(Ln(),Ke.current.element!==_&&(Ke.current.cancel(),Ke.current.element=_,Ke.current.cancel=Rn(_,Ln)))}),t.a.useEffect(function(){Pe?bn():Ln()},[Pe]);var Ut=t.a.useRef(null);return t.a.useEffect(function(){Me?Ut.current||(Ut.current=Object(gn.a)(window,"resize",Ln)):Ut.current&&(Ut.current.remove(),Ut.current=null)},[Me]),t.a.useEffect(function(){return function(){Ke.current.cancel(),_e.current.cancel(),Ut.current&&Ut.current.remove(),bn()}},[]),t.a.useImperativeHandle(Ne,function(){return{forceAlign:function(){return Ln(!0)}}}),t.a.isValidElement(xt)&&(xt=t.a.cloneElement(xt,{ref:Object(u.a)(xt.ref,Mt)})),xt},Ft=t.a.forwardRef(Pt);Ft.displayName="Align";var De=Ft,Ct=g.a=De},"9og8":function(x,g,e){"use strict";e.d(g,"a",function(){return n});function a(r,t,u,v,m,i,s){try{var d=r[i](s),l=d.value}catch(f){u(f);return}d.done?t(l):Promise.resolve(l).then(v,m)}function n(r){return function(){var t=this,u=arguments;return new Promise(function(v,m){var i=r.apply(t,u);function s(l){a(i,v,m,s,d,"next",l)}function d(l){a(i,v,m,s,d,"throw",l)}s(void 0)})}}},"9xmf":function(x,g,e){var a=e("EdiO");function n(r){if(Array.isArray(r))return a(r)}x.exports=n},"9zP7":function(x,g,e){var a=e("MMxC"),n=e("UPML");a({target:"Object",stat:!0},{is:n})},"9znl":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"Set",stat:!0},{from:n})},"A+b4":function(x,g,e){"use strict";var a=e("MMxC"),n=e("mTKU").start,r=e("HKQd"),t=r("trimStart"),u=t?function(){return n(this)}:"".trimStart;a({target:"String",proto:!0,forced:t},{trimStart:u,trimLeft:u})},A9H8:function(x,g,e){var a=e("MMxC"),n=e("IuhT"),r=e("arQb");a({target:"Object",stat:!0},{fromEntries:function(u){var v={};return n(u,function(m,i){r(v,m,i)},void 0,!0),v}})},AGcU:function(x,g,e){var a=e("MMxC"),n=e("jdp+");a({target:"Math",stat:!0},{fround:n})},AM7I:function(x,g,e){"use strict";var a,n=SyntaxError,r=Function,t=TypeError,u=function(D){try{return r('"use strict"; return ('+D+").constructor;")()}catch(N){}},v=Object.getOwnPropertyDescriptor;if(v)try{v({},"")}catch(D){v=null}var m=function(){throw new t},i=v?function(){try{return arguments.callee,m}catch(D){try{return v(arguments,"callee").get}catch(N){return m}}}():m,s=e("UVaH")(),d=Object.getPrototypeOf||function(D){return D.__proto__},l={},f=typeof Uint8Array=="undefined"?a:d(Uint8Array),o={"%AggregateError%":typeof AggregateError=="undefined"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?a:ArrayBuffer,"%ArrayIteratorPrototype%":s?d([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics=="undefined"?a:Atomics,"%BigInt%":typeof BigInt=="undefined"?a:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?a:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?a:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array=="undefined"?a:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?a:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?d(d([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map=="undefined"?a:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!s?a:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?a:Promise,"%Proxy%":typeof Proxy=="undefined"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?a:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!s?a:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s?d(""[Symbol.iterator]()):a,"%Symbol%":s?Symbol:a,"%SyntaxError%":n,"%ThrowTypeError%":i,"%TypedArray%":f,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array=="undefined"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?a:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?a:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?a:WeakSet},h=function D(N){var Oe;if(N==="%AsyncFunction%")Oe=u("async function () {}");else if(N==="%GeneratorFunction%")Oe=u("function* () {}");else if(N==="%AsyncGeneratorFunction%")Oe=u("async function* () {}");else if(N==="%AsyncGenerator%"){var ue=D("%AsyncGeneratorFunction%");ue&&(Oe=ue.prototype)}else if(N==="%AsyncIteratorPrototype%"){var re=D("%AsyncGenerator%");re&&(Oe=d(re.prototype))}return o[N]=Oe,Oe},c={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=e("D3zA"),E=e("oNNP"),O=b.call(Function.call,Array.prototype.concat),C=b.call(Function.apply,Array.prototype.splice),M=b.call(Function.call,String.prototype.replace),w=b.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,z=function(N){var Oe=w(N,0,1),ue=w(N,-1);if(Oe==="%"&&ue!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&Oe!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var re=[];return M(N,A,function(ee,J,F,Q){re[re.length]=F?M(Q,L,"$1"):J||ee}),re},G=function(N,Oe){var ue=N,re;if(E(c,ue)&&(re=c[ue],ue="%"+re[0]+"%"),E(o,ue)){var ee=o[ue];if(ee===l&&(ee=h(ue)),typeof ee=="undefined"&&!Oe)throw new t("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:re,name:ue,value:ee}}throw new n("intrinsic "+N+" does not exist!")};x.exports=function(N,Oe){if(typeof N!="string"||N.length===0)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Oe!="boolean")throw new t('"allowMissing" argument must be a boolean');var ue=z(N),re=ue.length>0?ue[0]:"",ee=G("%"+re+"%",Oe),J=ee.name,F=ee.value,Q=!1,q=ee.alias;q&&(re=q[0],C(ue,O([0,1],q)));for(var He=1,Ze=!0;He=ue.length){var X=v(F,ft);Ze=!!X,Ze&&"get"in X&&!("originalValue"in X.get)?F=X.get:F=F[ft]}else Ze=E(F,ft),F=F[ft];Ze&&!Q&&(o[J]=F)}}return F}},ANhw:function(x,g){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a={rotl:function(n,r){return n<>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return a.rotl(n,8)&16711935|a.rotl(n,24)&4278255360;for(var r=0;r0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],t=0,u=0;t>>5]|=n[t]<<24-u%32;return r},wordsToBytes:function(n){for(var r=[],t=0;t>>5]>>>24-t%32&255);return r},bytesToHex:function(n){for(var r=[],t=0;t>>4).toString(16)),r.push((n[t]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],t=0;t>>6*(3-v)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],t=0,u=0;t>>6-u*2)}return r}};x.exports=a})()},ANjH:function(x,g,e){"use strict";e.d(g,"a",function(){return M}),e.d(g,"b",function(){return O}),e.d(g,"c",function(){return b}),e.d(g,"d",function(){return C}),e.d(g,"e",function(){return f});var a=e("VTBJ");function n(A){return"Minified Redux error #"+A+"; visit https://redux.js.org/Errors?code="+A+" for the full message or use the non-minified dev environment for full errors. "}var r=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),t=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+t(),REPLACE:"@@redux/REPLACE"+t(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+t()}};function v(A){if(typeof A!="object"||A===null)return!1;for(var L=A;Object.getPrototypeOf(L)!==null;)L=Object.getPrototypeOf(L);return Object.getPrototypeOf(A)===L}function m(A){if(A===void 0)return"undefined";if(A===null)return"null";var L=typeof A;switch(L){case"boolean":case"string":case"number":case"symbol":case"function":return L}if(Array.isArray(A))return"array";if(d(A))return"date";if(s(A))return"error";var z=i(A);switch(z){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return z}return L.slice(8,-1).toLowerCase().replace(/\s/g,"")}function i(A){return typeof A.constructor=="function"?A.constructor.name:null}function s(A){return A instanceof Error||typeof A.message=="string"&&A.constructor&&typeof A.constructor.stackTraceLimit=="number"}function d(A){return A instanceof Date?!0:typeof A.toDateString=="function"&&typeof A.getDate=="function"&&typeof A.setDate=="function"}function l(A){var L=typeof A;return L}function f(A,L,z){var G;if(typeof L=="function"&&typeof z=="function"||typeof z=="function"&&typeof arguments[3]=="function")throw new Error(n(0));if(typeof L=="function"&&typeof z=="undefined"&&(z=L,L=void 0),typeof z!="undefined"){if(typeof z!="function")throw new Error(n(1));return z(f)(A,L)}if(typeof A!="function")throw new Error(n(2));var D=A,N=L,Oe=[],ue=Oe,re=!1;function ee(){ue===Oe&&(ue=Oe.slice())}function J(){if(re)throw new Error(n(3));return N}function F(Ze){if(typeof Ze!="function")throw new Error(n(4));if(re)throw new Error(n(5));var ft=!0;return ee(),ue.push(Ze),function(){if(!ft)return;if(re)throw new Error(n(6));ft=!1,ee();var Ue=ue.indexOf(Ze);ue.splice(Ue,1),Oe=null}}function Q(Ze){if(!v(Ze))throw new Error(n(7));if(typeof Ze.type=="undefined")throw new Error(n(8));if(re)throw new Error(n(9));try{re=!0,N=D(N,Ze)}finally{re=!1}for(var ft=Oe=ue,$e=0;$e0)return"Unexpected "+(Oe.length>1?"keys":"key")+" "+('"'+Oe.join('", "')+'" found in '+N+". ")+"Expected to find one of the known reducer keys instead: "+('"'+D.join('", "')+'". Unexpected keys will be ignored.')}function c(A){Object.keys(A).forEach(function(L){var z=A[L],G=z(void 0,{type:u.INIT});if(typeof G=="undefined")throw new Error(n(12));if(typeof z(void 0,{type:u.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(n(13))})}function b(A){for(var L=Object.keys(A),z={},G=0;G2&&arguments[2]!==void 0?arguments[2]:!1;return{type:a,payload:{location:f,action:o,isFirstRendering:h}}},r="@@router/CALL_HISTORY_METHOD",t=function(f){return function(){for(var o=arguments.length,h=new Array(o),c=0;c2?arguments[2]:void 0,o=t((f===void 0?s:n(f,s))-l,s-d),h=1;for(l0;)l in i?i[d]=i[l]:delete i[d],d+=h,l+=h;return i}},AqCL:function(x,g){x.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}},Auwt:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("PPXv"),u=e("bwJD"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{includes:function(i){return v(t(r(this)),function(s,d){if(u(d,i))return v.stop()},void 0,!0,!0).stopped}})},"B/G0":function(x,g,e){var a=e("MMxC"),n=e("tny8"),r=e("cC5k"),t=e("0qr0"),u=e("g8rt"),v=e("arQb");a({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(i){for(var s=t(i),d=u.f,l=r(s),f={},o=0,h,c;l.length>o;)c=d(s,h=l[o++]),c!==void 0&&v(f,h,c);return f}})},"B/J0":function(x,g,e){"use strict";var a=e("w8CP"),n=e("bu2F");function r(){if(!(this instanceof r))return new r;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(r,n),x.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(u){return u==="hex"?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}},B3m4:function(x,g,e){"use strict";e.d(g,"l",function(){return v}),e.d(g,"m",function(){return i}),e.d(g,"n",function(){return d}),e.d(g,"o",function(){return f}),e.d(g,"p",function(){return h}),e.d(g,"d",function(){return b}),e.d(g,"k",function(){return O}),e.d(g,"e",function(){return M}),e.d(g,"q",function(){return A}),e.d(g,"r",function(){return z}),e.d(g,"f",function(){return D}),e.d(g,"c",function(){return Oe}),e.d(g,"j",function(){return re}),e.d(g,"b",function(){return J}),e.d(g,"i",function(){return Q}),e.d(g,"a",function(){return He}),e.d(g,"g",function(){return ft}),e.d(g,"h",function(){return Ue});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(me){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,".json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),m.apply(this,arguments)}function i(me){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,"/tasks_list.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),s.apply(this,arguments)}function d(me){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/show_detail.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),l.apply(this,arguments)}function f(me){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,".json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),o.apply(this,arguments)}function h(me){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/refuse_student_topic.json"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),c.apply(this,arguments)}function b(me){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/accept_student_topic.json"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),E.apply(this,arguments)}function O(me){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/homework_commons/".concat(ie.categoryId,"/show_comment.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),C.apply(this,arguments)}function M(me){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/users/reply_message.json",{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),w.apply(this,arguments)}function A(me){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/praise_tread/like.json",{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),L.apply(this,arguments)}function z(me){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/praise_tread/unlike.json",{method:"delete",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),G.apply(this,arguments)}function D(me){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/commons/delete.json",{method:"delete",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),N.apply(this,arguments)}function Oe(me){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/new.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),ue.apply(this,arguments)}function re(me){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),ee.apply(this,arguments)}function J(me){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),F.apply(this,arguments)}function Q(me){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_topics/").concat(ie.categoryId),{method:"put",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),q.apply(this,arguments)}function He(me){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/courses/".concat(ie.coursesId,"/graduation_tasks"),{method:"post",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),Ze.apply(this,arguments)}function ft(me){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,".json"),{method:"put",body:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),$e.apply(this,arguments)}function Ue(me){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function me(ie){return t.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",Object(u.a)("/api/graduation_tasks/".concat(ie.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},ie)}));case 1:case"end":return de.stop()}},me)})),X.apply(this,arguments)}},BEtg:function(x,g){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -47,24 +47,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules" `);var or=I.getPluralRules(Re,{type:kt.pluralType}).select(Jt-(kt.offset||0));Cn=kt.options[or]||kt.options.other}if(!Cn)throw new RangeError('Invalid values for "'+kt.value+'": "'+Jt+'". Options are "'+Object.keys(kt.options).join('", "')+'"');Nt.push.apply(Nt,Ve(Cn.value,Re,I,ut,yt,Jt-(kt.offset||0)));continue}}return Te(Nt)}function tt(he,Re,I,ut,yt,wt){var Lt=Ve(he,Re,I,ut,yt,void 0,wt);return Lt.length===1?Lt[0].value:Lt.reduce(function(Nt,Vt){return Nt+=Vt.value},"")}var ht,ge="@@",ye=/@@(\d+_\d+)@@/g,je=0;function we(){return Date.now()+"_"+ ++je}function ce(he,Re){return he.split(ye).filter(Boolean).map(function(I){return Re[I]!=null?Re[I]:I}).reduce(function(I,ut){return I.length&&(typeof ut=="string"&&typeof I[I.length-1]=="string")?I[I.length-1]+=ut:I.push(ut),I},[])}var Y=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,V=Date.now()+"@@",U=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function B(he,Re,I){var ut=he.tagName,yt=he.outerHTML,wt=he.textContent,Lt=he.childNodes;if(!ut)return ce(wt||"",Re);ut=ut.toLowerCase();var Nt=~U.indexOf(ut),Vt=I[ut];if(Vt&&Nt)throw new rt(ut+" is a self-closing tag and can not be used, please use another tag name.");if(!Lt.length)return[yt];var pn=Array.prototype.slice.call(Lt).reduce(function(kt,Xt){return kt.concat(B(Xt,Re,I))},[]);return Vt?typeof Vt=="function"?[Vt.apply(void 0,pn)]:[Vt]:fe(["<"+ut+">"],pn,[""])}function Ae(he,Re,I,ut,yt,wt){var Lt=Ve(he,Re,I,ut,yt,void 0,wt),Nt={},Vt=Lt.reduce(function(Jt,xn){if(xn.type===0)return Jt+=xn.value;var Cn=we();return Nt[Cn]=xn.value,Jt+=""+ge+Cn+ge},"");if(!Y.test(Vt))return ce(Vt,Nt);if(!yt)throw new rt("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new rt("Cannot format XML message without DOMParser");ht||(ht=new DOMParser);var pn=ht.parseFromString(''+Vt+"","text/html").getElementById(V);if(!pn)throw new rt("Malformed HTML message "+Vt);var kt=Object.keys(yt).filter(function(Jt){return!!pn.getElementsByTagName(Jt).length});if(!kt.length)return ce(Vt,Nt);var Xt=kt.filter(function(Jt){return Jt!==Jt.toLowerCase()});if(Xt.length)throw new rt("HTML tag must be lowercased but the following tags are not: "+Xt.join(", "));return Array.prototype.slice.call(pn.childNodes).reduce(function(Jt,xn){return Jt.concat(B(xn,Nt,yt))},[])}var S=function(){return S=Object.assign||function(he){for(var Re,I=1,ut=arguments.length;I<"']/g;function ke(he){return(""+he).replace(se,function(Re){return $[Re.charCodeAt(0)]})}function ve(he,Re){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Re.reduce(function(ut,yt){return yt in he?ut[yt]=he[yt]:yt in I&&(ut[yt]=I[yt]),ut},{})}function Be(he){T(he,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function it(he,Re){var I=Re?` `.concat(Re.stack):"";return"[React Intl] ".concat(he).concat(I)}function We(he){}var Et={formats:{},messages:{},timeZone:void 0,textComponent:u.Fragment,defaultLocale:"en",defaultFormats:{},onError:We};function Tt(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ht(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tt(),Re=Intl.RelativeTimeFormat,I=Intl.ListFormat,ut=Intl.DisplayNames;return{getDateTimeFormat:q(Intl.DateTimeFormat,he.dateTime),getNumberFormat:q(Intl.NumberFormat,he.number),getMessageFormat:q(P,he.message),getRelativeTimeFormat:q(Re,he.relativeTime),getPluralRules:q(Intl.PluralRules,he.pluralRules),getListFormat:q(I,he.list),getDisplayNames:q(ut,he.displayNames)}}function It(he,Re,I,ut){var yt=he&&he[Re],wt;if(yt&&(wt=yt[I]),wt)return wt;ut(it("No ".concat(Re," format named: ").concat(I)))}var tn=i.a||m;function qt(he){return he.displayName||he.name||"Component"}var gn=u.createContext(null),an=gn.Consumer,Tn=gn.Provider,on=Tn,En=gn;function yn(he,Re){var I=Re||{},ut=I.intlPropName,yt=ut===void 0?"intl":ut,wt=I.forwardRef,Lt=wt===void 0?!1:wt,Nt=I.enforceContext,Vt=Nt===void 0?!0:Nt,pn=function(Xt){return u.createElement(an,null,function(Jt){return Vt&&Be(Jt),u.createElement(he,Object.assign({},Xt,Object(v.a)({},yt,Jt),{ref:Lt?Xt.forwardedRef:null}))})};return pn.displayName="injectIntl(".concat(qt(he),")"),pn.WrappedComponent=he,tn(Lt?u.forwardRef(function(kt,Xt){return u.createElement(pn,Object.assign({},kt,{forwardedRef:Xt}))}):pn,he)}var vn=e("kyWZ"),Rn=e.n(vn),Pn=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function St(he,Re){var I=he.locale,ut=he.formats,yt=he.onError,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=wt.format,Nt=Lt&&It(ut,"number",Lt,yt)||{},Vt=ve(wt,Pn,Nt);return Re(I,Vt)}function bt(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return St(he,Re,ut).format(I)}catch(yt){he.onError(it("Error formatting number.",yt))}return String(I)}function Pt(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return St(he,Re,ut).formatToParts(I)}catch(yt){he.onError(it("Error formatting number.",yt))}return[]}var Ft=["numeric","style"];function De(he,Re){var I=he.locale,ut=he.formats,yt=he.onError,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=wt.format,Nt=!!Lt&&It(ut,"relative",Lt,yt)||{},Vt=ve(wt,Ft,Nt);return Re(I,Vt)}function Ct(he,Re,I,ut){var yt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};ut||(ut="second");var wt=Intl.RelativeTimeFormat;wt||he.onError(it(`Intl.RelativeTimeFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-relativetimeformat" -`));try{return De(he,Re,yt).format(I,ut)}catch(Lt){he.onError(it("Error formatting relative time.",Lt))}return String(I)}var be=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ne(he,Re,I){var ut=he.locale,yt=he.formats,wt=he.onError,Lt=he.timeZone,Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Vt=Nt.format,pn=Object.assign(Object.assign({},Lt&&{timeZone:Lt}),Vt&&It(yt,Re,Vt,wt)),kt=ve(Nt,be,pn);return Re==="time"&&!kt.hour&&!kt.minute&&!kt.second&&(kt=Object.assign(Object.assign({},kt),{hour:"numeric",minute:"numeric"})),I(ut,kt)}function Fe(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Ne(he,"date",Re,ut).format(yt)}catch(wt){he.onError(it("Error formatting date.",wt))}return String(yt)}function dt(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Ne(he,"time",Re,ut).format(yt)}catch(wt){he.onError(it("Error formatting time.",wt))}return String(yt)}function Pe(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Ne(he,"date",Re,ut).formatToParts(yt)}catch(wt){he.onError(it("Error formatting date.",wt))}return[]}function Ce(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Ne(he,"time",Re,ut).formatToParts(yt)}catch(wt){he.onError(it("Error formatting time.",wt))}return[]}var ct=["localeMatcher","type"];function qe(he,Re,I){var ut=he.locale,yt=he.onError,wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||yt(it(`Intl.PluralRules is not available in this environment. +`));try{return De(he,Re,yt).format(I,ut)}catch(Lt){he.onError(it("Error formatting relative time.",Lt))}return String(I)}var be=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Fe(he,Re,I){var ut=he.locale,yt=he.formats,wt=he.onError,Lt=he.timeZone,Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Vt=Nt.format,pn=Object.assign(Object.assign({},Lt&&{timeZone:Lt}),Vt&&It(yt,Re,Vt,wt)),kt=ve(Nt,be,pn);return Re==="time"&&!kt.hour&&!kt.minute&&!kt.second&&(kt=Object.assign(Object.assign({},kt),{hour:"numeric",minute:"numeric"})),I(ut,kt)}function Ne(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Fe(he,"date",Re,ut).format(yt)}catch(wt){he.onError(it("Error formatting date.",wt))}return String(yt)}function dt(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Fe(he,"time",Re,ut).format(yt)}catch(wt){he.onError(it("Error formatting time.",wt))}return String(yt)}function Pe(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Fe(he,"date",Re,ut).formatToParts(yt)}catch(wt){he.onError(it("Error formatting date.",wt))}return[]}function Ce(he,Re,I){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=typeof I=="string"?new Date(I||0):I;try{return Fe(he,"time",Re,ut).formatToParts(yt)}catch(wt){he.onError(it("Error formatting time.",wt))}return[]}var ct=["localeMatcher","type"];function qe(he,Re,I){var ut=he.locale,yt=he.onError,wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||yt(it(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" `));var Lt=ve(wt,ct);try{return Re(ut,Lt).select(I)}catch(Nt){yt(it("Error formatting plural.",Nt))}return"other"}var Me=e("oBTY");function Z(he,Re){return Object.keys(he).reduce(function(I,ut){return I[ut]=Object.assign({timeZone:Re},he[ut]),I},{})}function Xe(he,Re){var I=Object.keys(Object.assign(Object.assign({},he),Re));return I.reduce(function(ut,yt){return ut[yt]=Object.assign(Object.assign({},he[yt]||{}),Re[yt]||{}),ut},{})}function gt(he,Re){if(!Re)return he;var I=P.formats;return Object.assign(Object.assign(Object.assign({},I),he),{date:Xe(Z(I.date,Re),Z(he.date||{},Re)),time:Xe(Z(I.time,Re),Z(he.time||{},Re))})}var Mt=function(Re){return u.createElement.apply(u,[u.Fragment,null].concat(Object(Me.a)(Re)))};function xt(he,Re){var I=he.locale,ut=he.formats,yt=he.messages,wt=he.defaultLocale,Lt=he.defaultFormats,Nt=he.onError,Vt=he.timeZone,pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Xt=pn.id,Jt=pn.defaultMessage;T(!!Xt,"[React Intl] An `id` must be provided to format a message.");var xn=yt&&yt[String(Xt)];ut=gt(ut,Vt),Lt=gt(Lt,Vt);var Cn=[];if(xn)try{var or=Re.getMessageFormat(xn,I,ut,{formatters:Re});Cn=or.formatHTMLMessage(kt)}catch(sr){Nt(it('Error formatting message: "'.concat(Xt,'" for locale: "').concat(I,'"')+(Jt?", using default message as fallback.":""),sr))}else(!Jt||I&&I.toLowerCase()!==wt.toLowerCase())&&Nt(it('Missing message: "'.concat(Xt,'" for locale: "').concat(I,'"')+(Jt?", using default message as fallback.":"")));if(!Cn.length&&Jt)try{var er=Re.getMessageFormat(Jt,wt,Lt);Cn=er.formatHTMLMessage(kt)}catch(sr){Nt(it('Error formatting the default message for: "'.concat(Xt,'"'),sr))}return Cn.length?Cn.length===1&&typeof Cn[0]=="string"?Cn[0]||Jt||String(Xt):Mt(Cn):(Nt(it('Cannot format message: "'.concat(Xt,'", ')+"using message ".concat(xn||Jt?"source":"id"," as fallback."))),typeof xn=="string"?xn||Jt||String(Xt):Jt||String(Xt))}function Gt(he,Re){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},yt=Object.keys(ut).reduce(function(wt,Lt){var Nt=ut[Lt];return wt[Lt]=typeof Nt=="string"?ke(Nt):Nt,wt},{});return xt(he,Re,I,yt)}var ln=e("6koa"),nn=e.n(ln),Ln=["localeMatcher","type","style"],bn=Date.now();function Ke(he){return"".concat(bn,"_").concat(he,"_").concat(bn)}function _e(he,Re,I){var ut=he.locale,yt=he.onError,wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Lt=Intl.ListFormat;Lt||yt(it(`Intl.ListFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-listformat" `));var Nt=ve(wt,Ln);try{var Vt={},pn=I.map(function(Xt,Jt){if(typeof Xt=="object"){var xn=Ke(Jt);return Vt[xn]=Xt,xn}return String(Xt)});if(!Object.keys(Vt).length)return Re(ut,Nt).format(pn);var kt=Re(ut,Nt).formatToParts(pn);return kt.reduce(function(Xt,Jt){var xn=Jt.value;return Vt[xn]?Xt.push(Vt[xn]):typeof Xt[Xt.length-1]=="string"?Xt[Xt.length-1]+=xn:Xt.push(xn),Xt},[])}catch(Xt){yt(it("Error formatting list.",Xt))}return I}var Ut=["localeMatcher","style","type","fallback"];function _(he,Re,I){var ut=he.locale,yt=he.onError,wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Lt=Intl.DisplayNames;Lt||yt(it(`Intl.DisplayNames is not available in this environment. Try polyfilling it using "@formatjs/intl-displaynames" -`));var Nt=ve(wt,Ut);try{return Re(ut,Nt).of(I)}catch(Vt){yt(it("Error formatting display name.",Vt))}}var Mn=nn.a||ln;function Wn(he){return{locale:he.locale,timeZone:he.timeZone,formats:he.formats,textComponent:he.textComponent,messages:he.messages,defaultLocale:he.defaultLocale,defaultFormats:he.defaultFormats,onError:he.onError}}function kn(he,Re){var I=Ht(Re),ut=Object.assign(Object.assign({},Et),he);if(!ut.locale||!Rn()(ut.locale)){var yt=ut.locale,wt=ut.defaultLocale,Lt=ut.onError;typeof Lt=="function"&&Lt(it('Missing locale data for locale: "'.concat(yt,'". ')+'Using default locale: "'.concat(wt,'" as fallback.'))),ut.locale=ut.defaultLocale||"en"}return Object.assign(Object.assign({},ut),{formatters:I,formatNumber:bt.bind(null,ut,I.getNumberFormat),formatNumberToParts:Pt.bind(null,ut,I.getNumberFormat),formatRelativeTime:Ct.bind(null,ut,I.getRelativeTimeFormat),formatDate:Fe.bind(null,ut,I.getDateTimeFormat),formatDateToParts:Pe.bind(null,ut,I.getDateTimeFormat),formatTime:dt.bind(null,ut,I.getDateTimeFormat),formatTimeToParts:Ce.bind(null,ut,I.getDateTimeFormat),formatPlural:qe.bind(null,ut,I.getPluralRules),formatMessage:xt.bind(null,ut,I),formatHTMLMessage:Gt.bind(null,ut,I),formatList:_e.bind(null,ut,I.getListFormat),formatDisplayName:_.bind(null,ut,I.getDisplayNames)})}var Fn=function(he){Object(r.a)(I,he);var Re=Object(t.a)(I);function I(){var ut;return Object(a.a)(this,I),ut=Re.apply(this,arguments),ut.cache=Tt(),ut.state={cache:ut.cache,intl:kn(Wn(ut.props),ut.cache),prevConfig:Wn(ut.props)},ut}return Object(n.a)(I,[{key:"render",value:function(){return Be(this.state.intl),u.createElement(on,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(yt,wt){var Lt=wt.prevConfig,Nt=wt.cache,Vt=Wn(yt);return Mn(Lt,Vt)?null:{intl:kn(Vt,Nt),prevConfig:Vt}}}]),I}(u.PureComponent);Fn.displayName="IntlProvider",Fn.defaultProps=Et;var qn=e("LtsZ"),Hn=e("ZW6p"),ar=e("2W6z"),dr=e.n(ar),br=e("9kvl"),jr,Hr=!0,_n={},Fr=function(Re,I,ut){var yt,wt;if(!Re)return;var Lt=(yt=_n[Re])!==null&&yt!==void 0&&yt.messages?Object.assign({},_n[Re].messages,I):I,Nt=ut||{},Vt=Nt.momentLocale,pn=Nt.antd;_n[Re]={messages:Lt,locale:(wt=Re.split("-"))===null||wt===void 0?void 0:wt.join("-"),momentLocale:Vt,antd:pn}},Ge=function(Re,I){return jr&&!I&&!Re?jr:Re&&_n[Re]?kn(_n[Re]):(dr()(!Re||!!_n[Re],"The current popular language does not exist, please check the locales folder!"),_n["zh-CN"]?kn(_n["zh-CN"]):kn({locale:"zh-CN",messages:{}}))},ne=function(Re){jr=Ge(Re,!0)},te=function(){var Re=br.e.applyPlugins({key:"locale",type:qn.a.modify,initialValue:{}});if(typeof(Re==null?void 0:Re.getLocale)=="function")return Re.getLocale();var I=typeof localStorage!="undefined"&&Hr?window.localStorage.getItem("umi_locale"):"",ut,yt=typeof navigator!="undefined"&&typeof navigator.language=="string";return ut=yt?navigator.language.split("-").join("-"):"",I||ut||"zh-CN"},Ie=function(){var Re=te(),I=["he","ar","fa","ku"],ut=I.filter(function(yt){return Re.startsWith(yt)}).length?"rtl":"ltr";return ut},ze=function(Re){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ut=new RegExp("^([a-z]{2})-?([A-Z]{2})?$"),yt=br.e.applyPlugins({key:"locale",type:qn.a.modify,initialValue:{}});if(typeof(yt==null?void 0:yt.setLocale)=="function"){yt.setLocale({lang:Re,realReload:I,updater:function(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re;return Hn.d.emit(Hn.a,Nt)}});return}if(Re!==void 0&&!ut.test(Re))throw new Error("setLocale lang format error");if(te()!==Re){if(typeof window.localStorage!="undefined"&&Hr&&window.localStorage.setItem("umi_locale",Re||""),ne(Re),I)window.location.reload();else if(Hn.d.emit(Hn.a,Re),window.dispatchEvent){var wt=new Event("languagechange");window.dispatchEvent(wt)}}},mt=!0,Ot=function(Re,I){return mt&&(dr()(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl. +`));var Nt=ve(wt,Ut);try{return Re(ut,Nt).of(I)}catch(Vt){yt(it("Error formatting display name.",Vt))}}var Mn=nn.a||ln;function Wn(he){return{locale:he.locale,timeZone:he.timeZone,formats:he.formats,textComponent:he.textComponent,messages:he.messages,defaultLocale:he.defaultLocale,defaultFormats:he.defaultFormats,onError:he.onError}}function kn(he,Re){var I=Ht(Re),ut=Object.assign(Object.assign({},Et),he);if(!ut.locale||!Rn()(ut.locale)){var yt=ut.locale,wt=ut.defaultLocale,Lt=ut.onError;typeof Lt=="function"&&Lt(it('Missing locale data for locale: "'.concat(yt,'". ')+'Using default locale: "'.concat(wt,'" as fallback.'))),ut.locale=ut.defaultLocale||"en"}return Object.assign(Object.assign({},ut),{formatters:I,formatNumber:bt.bind(null,ut,I.getNumberFormat),formatNumberToParts:Pt.bind(null,ut,I.getNumberFormat),formatRelativeTime:Ct.bind(null,ut,I.getRelativeTimeFormat),formatDate:Ne.bind(null,ut,I.getDateTimeFormat),formatDateToParts:Pe.bind(null,ut,I.getDateTimeFormat),formatTime:dt.bind(null,ut,I.getDateTimeFormat),formatTimeToParts:Ce.bind(null,ut,I.getDateTimeFormat),formatPlural:qe.bind(null,ut,I.getPluralRules),formatMessage:xt.bind(null,ut,I),formatHTMLMessage:Gt.bind(null,ut,I),formatList:_e.bind(null,ut,I.getListFormat),formatDisplayName:_.bind(null,ut,I.getDisplayNames)})}var Fn=function(he){Object(r.a)(I,he);var Re=Object(t.a)(I);function I(){var ut;return Object(a.a)(this,I),ut=Re.apply(this,arguments),ut.cache=Tt(),ut.state={cache:ut.cache,intl:kn(Wn(ut.props),ut.cache),prevConfig:Wn(ut.props)},ut}return Object(n.a)(I,[{key:"render",value:function(){return Be(this.state.intl),u.createElement(on,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(yt,wt){var Lt=wt.prevConfig,Nt=wt.cache,Vt=Wn(yt);return Mn(Lt,Vt)?null:{intl:kn(Vt,Nt),prevConfig:Vt}}}]),I}(u.PureComponent);Fn.displayName="IntlProvider",Fn.defaultProps=Et;var qn=e("LtsZ"),Hn=e("ZW6p"),ar=e("2W6z"),dr=e.n(ar),br=e("9kvl"),jr,Hr=!0,_n={},Fr=function(Re,I,ut){var yt,wt;if(!Re)return;var Lt=(yt=_n[Re])!==null&&yt!==void 0&&yt.messages?Object.assign({},_n[Re].messages,I):I,Nt=ut||{},Vt=Nt.momentLocale,pn=Nt.antd;_n[Re]={messages:Lt,locale:(wt=Re.split("-"))===null||wt===void 0?void 0:wt.join("-"),momentLocale:Vt,antd:pn}},Ge=function(Re,I){return jr&&!I&&!Re?jr:Re&&_n[Re]?kn(_n[Re]):(dr()(!Re||!!_n[Re],"The current popular language does not exist, please check the locales folder!"),_n["zh-CN"]?kn(_n["zh-CN"]):kn({locale:"zh-CN",messages:{}}))},ne=function(Re){jr=Ge(Re,!0)},te=function(){var Re=br.e.applyPlugins({key:"locale",type:qn.a.modify,initialValue:{}});if(typeof(Re==null?void 0:Re.getLocale)=="function")return Re.getLocale();var I=typeof localStorage!="undefined"&&Hr?window.localStorage.getItem("umi_locale"):"",ut,yt=typeof navigator!="undefined"&&typeof navigator.language=="string";return ut=yt?navigator.language.split("-").join("-"):"",I||ut||"zh-CN"},Ie=function(){var Re=te(),I=["he","ar","fa","ku"],ut=I.filter(function(yt){return Re.startsWith(yt)}).length?"rtl":"ltr";return ut},ze=function(Re){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ut=new RegExp("^([a-z]{2})-?([A-Z]{2})?$"),yt=br.e.applyPlugins({key:"locale",type:qn.a.modify,initialValue:{}});if(typeof(yt==null?void 0:yt.setLocale)=="function"){yt.setLocale({lang:Re,realReload:I,updater:function(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re;return Hn.d.emit(Hn.a,Nt)}});return}if(Re!==void 0&&!ut.test(Re))throw new Error("setLocale lang format error");if(te()!==Re){if(typeof window.localStorage!="undefined"&&Hr&&window.localStorage.setItem("umi_locale",Re||""),ne(Re),I)window.location.reload();else if(Hn.d.emit(Hn.a,Re),window.dispatchEvent){var wt=new Event("languagechange");window.dispatchEvent(wt)}}},mt=!0,Ot=function(Re,I){return mt&&(dr()(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl. \u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 http://j.mp/37Fkd5Q - `),mt=!1),jr.formatMessage(Re,I)},Rt=function(){return Object.keys(_n)}},FoZm:function(x,g,e){(function(a){a.IntlPolyfill=e("fL0r"),e(1),a.Intl||(a.Intl=a.IntlPolyfill,a.IntlPolyfill.__applyLocaleSensitivePrototypes()),x.exports=a.IntlPolyfill}).call(this,e("IyRk"))},FpZJ:function(x,g,e){"use strict";x.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},r=Symbol("test"),t=Object(r);if(typeof r=="string")return!1;if(Object.prototype.toString.call(r)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var u=42;n[r]=u;for(r in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0)return!1;if(typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var v=Object.getOwnPropertySymbols(n);if(v.length!==1||v[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(n,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(n,r);if(m.value!==u||m.enumerable!==!0)return!1}return!0}},Fs9M:function(x,g,e){var a=e("MVys");x.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},FuvP:function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"Set",stat:!0},{of:n})},FzKp:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("oXNe"),u={namespace:"boards",state:{name:"\u8BA8\u8BBA",loading:!0,actionTabs:{},boardsDetail:{},boardsCategoryList:{}},effects:{getBoardsCategoryList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{boardsCategoryList:Object(a.a)({},o.data)}});case 7:return c.abrupt("return",o.data);case 8:case"end":return c.stop()}},v)}),getBoardsDetail:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.e,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{boardsDetail:Object(a.a)({},o.data)}});case 7:return c.abrupt("return",o.data);case 8:case"end":return c.stop()}},v)}),setTopping:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.i,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),escTopping:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.c,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),getReplyList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{replyList:Object(a.a)({},o.data)}});case 7:case"end":return c.stop()}},v)}),createReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.a,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.g,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),replyUnLike:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.h,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),deleteReply:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,h.next=4,l(t.b,s);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},"G+G9":function(x,g,e){"use strict";var a=e("k1fw"),n=e("PpiC"),r=e("WmNS"),t=e.n(r),u=e("9kvl"),v=e("jb+D"),m={namespace:"user",state:{name:"\u7528\u6237\u767B\u5F55\u6A21\u5757",showPopLogin:!1,showClosable:!1,bindAccountModalVisible:!1,userInfoForBindAccountModal:{},loginInfo:{login:"",password:""},userInfo:{},navigationInfo:{},loading:!0,actionTabs:{key:"",params:{},phone:""}},effects:{login:t.a.mark(function i(s,d){var l,f,o,h,c,b;return t.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return l=s.payload,f=d.call,o=d.put,h=l.to,c=Object(n.a)(l,["to"]),O.next=5,f(v.b,c);case 5:if(b=O.sent,!b.status)try{h?u.d.replace(h):location.reload()}catch(C){}case 7:case"end":return O.stop()}},i)}),showPopLogin:t.a.mark(function i(s,d){var l,f;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=s.payload,f=d.put,h.next=4,f({type:"save",payload:{showPopLogin:l.showPopLogin,showClosable:l.showClosable}});case 4:case"end":return h.stop()}},i)}),setBindAccountModal:t.a.mark(function i(s,d){var l,f;return t.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=s.payload,f=d.put,h.next=4,f({type:"save",payload:{bindAccountModalVisible:l.bindAccountModalVisible,userInfoForBindAccountModal:l.userInfoForBindAccountModal,loginInfo:l.loginInfo}});case 4:case"end":return h.stop()}},i)}),getUserInfo:t.a.mark(function i(s,d){var l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(v.t,Object(a.a)({},l));case 4:return h=b.sent,localStorage.userInfo=JSON.stringify(h),b.next=8,o({type:"save",payload:{userInfo:Object(a.a)({},h)}});case 8:case"end":return b.stop()}},i)}),getNavigationInfo:t.a.mark(function i(s,d){var l,f,o,h;return t.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return l=s.payload,f=d.call,o=d.put,b.next=4,f(v.m,Object(a.a)({},l));case 4:return h=b.sent,b.next=7,o({type:"save",payload:{navigationInfo:Object(a.a)({},h)}});case 7:case"end":return b.stop()}},i)}),setActionTabs:t.a.mark(function i(s,d){var l,f,o;return t.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return l=s.payload,f=d.call,o=d.put,c.next=4,o({type:"save",payload:{actionTabs:Object(a.a)({},l)}});case 4:case"end":return c.stop()}},i)})},reducers:{save:function(s,d){return Object(a.a)(Object(a.a)({},s),d.payload)}}};g.a=m},GNqc:function(x,g){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},GPZX:function(x,g,e){var a=e("MMxC"),n=e("ls1J"),r=e("f1E4"),t=n.toKey,u=n.getMap,v=n.store;a({target:"Reflect",stat:!0},{deleteMetadata:function(i,s){var d=arguments.length<3?void 0:t(arguments[2]),l=u(r(s),d,!1);if(l===void 0||!l.delete(i))return!1;if(l.size)return!0;var f=v.get(s);return f.delete(d),!!f.size||v.delete(s)}})},GPrf:function(x,g,e){var a=e("2kyd"),n=a("iterator"),r=!1;try{var t=0,u={next:function(){return{done:!!t++}},return:function(){r=!0}};u[n]=function(){return this},Array.from(u,function(){throw 2})}catch(v){}x.exports=function(v,m){if(!m&&!r)return!1;var i=!1;try{var s={};s[n]=function(){return{next:function(){return{done:i=!0}}}},v(s)}catch(d){}return i}},GYRj:function(x,g,e){var a=e("MMxC"),n=Math.log,r=Math.LOG10E;a({target:"Math",stat:!0},{log10:function(u){return n(u)*r}})},"Gw+j":function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("/dTS"),m=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:function(s){var d=t(this),l=new(v(d,r("Set")))(d),f=u(l.delete),o=u(l.add);return m(s,function(h){f.call(l,h)||o.call(l,h)}),l}})},H4Hi:function(x,g,e){x.exports={loading:"loading___Pj8IT",layoutMainClass:"layoutMainClass___Z79Lq"}},H4fg:function(x,g,e){"use strict";g.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},H8Ov:function(x,g,e){var a=e("I65O");a("toPrimitive")},HBuW:function(x,g,e){"use strict";e.d(g,"ob",function(){return v}),e.d(g,"pb",function(){return i}),e.d(g,"mb",function(){return d}),e.d(g,"gb",function(){return f}),e.d(g,"J",function(){return h}),e.d(g,"D",function(){return b}),e.d(g,"E",function(){return O}),e.d(g,"yb",function(){return M}),e.d(g,"n",function(){return A}),e.d(g,"m",function(){return z}),e.d(g,"j",function(){return D}),e.d(g,"q",function(){return Oe}),e.d(g,"Eb",function(){return re}),e.d(g,"Fb",function(){return J}),e.d(g,"l",function(){return Q}),e.d(g,"k",function(){return He}),e.d(g,"h",function(){return ft}),e.d(g,"Ab",function(){return Ue}),e.d(g,"ab",function(){return me}),e.d(g,"u",function(){return W}),e.d(g,"i",function(){return Ye}),e.d(g,"Hb",function(){return rt}),e.d(g,"nb",function(){return Ve}),e.d(g,"G",function(){return ht}),e.d(g,"Jb",function(){return ye}),e.d(g,"N",function(){return we}),e.d(g,"d",function(){return Y}),e.d(g,"g",function(){return U}),e.d(g,"M",function(){return Ae}),e.d(g,"o",function(){return k}),e.d(g,"x",function(){return oe}),e.d(g,"cb",function(){return K}),e.d(g,"kb",function(){return T}),e.d(g,"Z",function(){return se}),e.d(g,"hb",function(){return ve}),e.d(g,"O",function(){return it}),e.d(g,"Vb",function(){return Et}),e.d(g,"lb",function(){return Ht}),e.d(g,"B",function(){return tn}),e.d(g,"zb",function(){return gn}),e.d(g,"P",function(){return Tn}),e.d(g,"Rb",function(){return En}),e.d(g,"Qb",function(){return vn}),e.d(g,"Ub",function(){return Pn}),e.d(g,"jb",function(){return bt}),e.d(g,"y",function(){return Ft}),e.d(g,"L",function(){return Ct}),e.d(g,"b",function(){return Ne}),e.d(g,"H",function(){return dt}),e.d(g,"Mb",function(){return Ce}),e.d(g,"bb",function(){return qe}),e.d(g,"Kb",function(){return Z}),e.d(g,"v",function(){return gt}),e.d(g,"K",function(){return xt}),e.d(g,"I",function(){return ln}),e.d(g,"Lb",function(){return Ln}),e.d(g,"c",function(){return Ke}),e.d(g,"Nb",function(){return Ut}),e.d(g,"w",function(){return Mn}),e.d(g,"Ib",function(){return kn}),e.d(g,"C",function(){return qn}),e.d(g,"Q",function(){return ar}),e.d(g,"z",function(){return br}),e.d(g,"A",function(){return Hr}),e.d(g,"wb",function(){return Fr}),e.d(g,"xb",function(){return ne}),e.d(g,"db",function(){return Ie}),e.d(g,"fb",function(){return mt}),e.d(g,"ib",function(){return Rt}),e.d(g,"e",function(){return Re}),e.d(g,"f",function(){return ut}),e.d(g,"eb",function(){return wt}),e.d(g,"T",function(){return Nt}),e.d(g,"U",function(){return pn}),e.d(g,"Sb",function(){return Xt}),e.d(g,"Tb",function(){return xn}),e.d(g,"Wb",function(){return or}),e.d(g,"Bb",function(){return sr}),e.d(g,"X",function(){return gr}),e.d(g,"rb",function(){return $r}),e.d(g,"Cb",function(){return Zr}),e.d(g,"Db",function(){return Dr}),e.d(g,"a",function(){return Pr}),e.d(g,"V",function(){return qr}),e.d(g,"Ob",function(){return ca}),e.d(g,"Gb",function(){return Ar}),e.d(g,"R",function(){return oa}),e.d(g,"S",function(){return Qt}),e.d(g,"r",function(){return fn}),e.d(g,"s",function(){return Dn}),e.d(g,"t",function(){return jn}),e.d(g,"F",function(){return pt}),e.d(g,"Y",function(){return Se}),e.d(g,"ub",function(){return Kr}),e.d(g,"sb",function(){return lr}),e.d(g,"tb",function(){return $o}),e.d(g,"vb",function(){return ho}),e.d(g,"qb",function(){return ls}),e.d(g,"W",function(){return ko}),e.d(g,"Pb",function(){return vo}),e.d(g,"p",function(){return ia});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(ot){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return at.keyword=at.keyword!=="null"?at.keyword:"",pe.abrupt("return",Object(u.a)("/api/shixuns.json",{method:"Get",params:Object(a.a)({},at)}));case 2:case"end":return pe.stop()}},ot)})),m.apply(this,arguments)}function i(ot){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/disciplines.json",{method:"Get",params:Object(a.a)({source:"shixun"},at||{})}));case 1:case"end":return pe.stop()}},ot)})),s.apply(this,arguments)}function d(ot){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,".json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),l.apply(this,arguments)}function f(ot){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/show_right.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),o.apply(this,arguments)}function h(ot){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),c.apply(this,arguments)}function b(ot){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/jupyter_exec.json").concat(at.reset?"?reset=".concat(at.reset):""),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),E.apply(this,arguments)}function O(ot){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/shixun_exec.json").concat(at.reset?"?reset=".concat(at.reset):""),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),C.apply(this,arguments)}function M(ot){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)(at.url,{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),w.apply(this,arguments)}function A(ot){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.shixun_identifier,"/challenges/").concat(at.challenge_id,"/index_up.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),L.apply(this,arguments)}function z(ot){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.shixun_identifier,"/challenges/").concat(at.challenge_id,"/index_down.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),G.apply(this,arguments)}function D(ot){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/collections/cancel.json",{method:"Delete",body:{container_id:at.container_id,container_type:at.container_type}}));case 1:case"end":return pe.stop()}},ot)})),N.apply(this,arguments)}function Oe(ot){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/collections.json",{method:"Post",body:{container_id:at.container_id,container_type:at.container_type}}));case 1:case"end":return pe.stop()}},ot)})),ue.apply(this,arguments)}function re(ot){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function ot(at){var _t,pe;return t.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return _t=at||{},pe=_t.id,la.abrupt("return",Object(u.a)("/api/shixuns/".concat(pe,"/search_user_courses.json"),{method:"Get",params:at}));case 2:case"end":return la.stop()}},ot)})),ee.apply(this,arguments)}function J(ot){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function ot(at){var _t,pe,ao,la,yo,bo;return t.a.wrap(function(Xr){for(;;)switch(Xr.prev=Xr.next){case 0:return _t=at||{},pe=_t.id,ao=_t.course_id,la=_t.identifier,yo=_t.type,bo=_t.is_copy,Xr.abrupt("return",Object(u.a)("/api/shixuns/".concat(pe,"/send_to_course.json"),{method:"Post",body:{course_id:ao,identifier:la,type:yo,is_copy:bo}}));case 2:case"end":return Xr.stop()}},ot)})),F.apply(this,arguments)}function Q(ot){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/cancel_publish.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),q.apply(this,arguments)}function He(ot){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/cancel_apply_public.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),Ze.apply(this,arguments)}function ft(ot){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/apply_public.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),$e.apply(this,arguments)}function Ue(ot){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/publish.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),X.apply(this,arguments)}function me(ot){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/jupyter_new.json",{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),ie.apply(this,arguments)}function W(ot){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/attachments/".concat(at.id,".json"),{method:"delete"}));case 1:case"end":return pe.stop()}},ot)})),de.apply(this,arguments)}function Ye(ot){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),fe.apply(this,arguments)}function rt(ot){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns.json",{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Te.apply(this,arguments)}function Ve(ot){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:at}));case 1:case"end":return pe.stop()}},ot)})),tt.apply(this,arguments)}function ht(ot){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/review_newest_record.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),ge.apply(this,arguments)}function ye(ot){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/review_shixun.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),je.apply(this,arguments)}function we(ot){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/collaborators.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),ce.apply(this,arguments)}function Y(ot){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/shixun_members_added.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),V.apply(this,arguments)}function U(ot){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.identifier,"/add_members_group.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),B.apply(this,arguments)}function Ae(ot){return S.apply(this,arguments)}function S(){return S=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/change_manager.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),S.apply(this,arguments)}function k(ot){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/change_manager.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),ae.apply(this,arguments)}function oe(ot){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/collaborators_delete.json?user_id=").concat(at.userId),{method:"delete"}));case 1:case"end":return pe.stop()}},ot)})),le.apply(this,arguments)}function K(ot){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/ranking_list.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),P.apply(this,arguments)}function T(ot){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/settings.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),$.apply(this,arguments)}function se(ot){return ke.apply(this,arguments)}function ke(){return ke=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/get_mirror_script.json?mirror_id=".concat(at.mirror_id),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),ke.apply(this,arguments)}function ve(ot){return Be.apply(this,arguments)}function Be(){return Be=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/get_script_contents.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),Be.apply(this,arguments)}function it(ot){return We.apply(this,arguments)}function We(){return We=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/get_custom_script.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),We.apply(this,arguments)}function Et(ot){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_for_jupyter.json"),{method:"put",body:at}));case 1:case"end":return pe.stop()}},ot)})),Tt.apply(this,arguments)}function Ht(ot){return It.apply(this,arguments)}function It(){return It=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/shixun_quotes.json"),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),It.apply(this,arguments)}function tn(ot){return qt.apply(this,arguments)}function qt(){return qt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,".json"),{method:"delete"}));case 1:case"end":return pe.stop()}},ot)})),qt.apply(this,arguments)}function gn(ot){return an.apply(this,arguments)}function an(){return an=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/close.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),an.apply(this,arguments)}function Tn(ot){return on.apply(this,arguments)}function on(){return on=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/departments.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),on.apply(this,arguments)}function En(ot){return yn.apply(this,arguments)}function yn(){return yn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_permission_setting.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),yn.apply(this,arguments)}function vn(ot){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_learn_setting.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Rn.apply(this,arguments)}function Pn(ot){return St.apply(this,arguments)}function St(){return St=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_setting"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),St.apply(this,arguments)}function bt(ot){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/get_data_sets.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),Pt.apply(this,arguments)}function Ft(ot){return De.apply(this,arguments)}function De(){return De=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/destroy_data_sets.json"),{method:"Delete",body:{id:at.deleteId}}));case 1:case"end":return pe.stop()}},ot)})),De.apply(this,arguments)}function Ct(ot){return be.apply(this,arguments)}function be(){return be=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/new.json"),{method:"get"}));case 1:case"end":return pe.stop()}},ot)})),be.apply(this,arguments)}function Ne(ot){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.identifier,"/challenges.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Fe.apply(this,arguments)}function dt(ot){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengeId,"/edit.json?tab=").concat(at.tab),{method:"get"}));case 1:case"end":return pe.stop()}},ot)})),Pe.apply(this,arguments)}function Ce(ot){return ct.apply(this,arguments)}function ct(){return ct=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,".json"),{method:"put",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),ct.apply(this,arguments)}function qe(ot){return Me.apply(this,arguments)}function Me(){return Me=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/choose_questions.json"),{method:"get"}));case 1:case"end":return pe.stop()}},ot)})),Me.apply(this,arguments)}function Z(ot){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/move_position.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Xe.apply(this,arguments)}function gt(ot){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,".json"),{method:"delete",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Mt.apply(this,arguments)}function xt(ot){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/edit.json"),{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Gt.apply(this,arguments)}function ln(ot){return nn.apply(this,arguments)}function nn(){return nn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengeId,"/answer.json"),{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),nn.apply(this,arguments)}function Ln(ot){return bn.apply(this,arguments)}function bn(){return bn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengeId,"/crud_answer.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),bn.apply(this,arguments)}function Ke(ot){return _e.apply(this,arguments)}function _e(){return _e=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!(at.type===1)){pe.next=2;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/create_choose_question.json"),{method:"post",body:Object(a.a)({},at)}));case 2:if(!(at.type===2)){pe.next=4;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/create_blank_question.json"),{method:"post",body:Object(a.a)({},at)}));case 4:if(!(at.type===3)){pe.next=6;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/create_judge_question.json"),{method:"post",body:Object(a.a)({},at)}));case 6:case"end":return pe.stop()}},ot)})),_e.apply(this,arguments)}function Ut(ot){return _.apply(this,arguments)}function _(){return _=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(!(at.type===1)){pe.next=2;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/update_choose_question.json?choose_id=").concat(at.questionId),{method:"post",body:Object(a.a)({},at)}));case 2:if(!(at.type===2)){pe.next=4;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/update_blank_question.json?choose_id=").concat(at.questionId),{method:"put",body:Object(a.a)({},at)}));case 4:if(!(at.type===3)){pe.next=6;break}return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/update_judge_question.json?choose_id=").concat(at.questionId),{method:"put",body:Object(a.a)({},at)}));case 6:case"end":return pe.stop()}},ot)})),_.apply(this,arguments)}function Mn(ot){return Wn.apply(this,arguments)}function Wn(){return Wn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/destroy_challenge_choose.json"),{method:"Delete",body:{choose_id:at.questionId}}));case 1:case"end":return pe.stop()}},ot)})),Wn.apply(this,arguments)}function kn(ot){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/choose_question_up_position.json"),{method:"post",body:{challenge_choose_id:at.questionId}}));case 1:case"end":return pe.stop()}},ot)})),Fn.apply(this,arguments)}function qn(ot){return Hn.apply(this,arguments)}function Hn(){return Hn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/choose_question_down_position.json"),{method:"post",body:{challenge_choose_id:at.questionId}}));case 1:case"end":return pe.stop()}},ot)})),Hn.apply(this,arguments)}function ar(ot){return dr.apply(this,arguments)}function dr(){return dr=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/challenges/").concat(at.challengesId,"/edit_choose_question.json?choose_id=").concat(at.questionId),{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),dr.apply(this,arguments)}function br(ot){return jr.apply(this,arguments)}function jr(){return jr=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/delete_git_file.json"),{method:"Delete",body:at}));case 1:case"end":return pe.stop()}},ot)})),jr.apply(this,arguments)}function Hr(ot){return _n.apply(this,arguments)}function _n(){return _n=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/delete_git_file.json"),{method:"Delete",body:at}));case 1:case"end":return pe.stop()}},ot)})),_n.apply(this,arguments)}function Fr(ot){return Ge.apply(this,arguments)}function Ge(){return Ge=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/mv_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Ge.apply(this,arguments)}function ne(ot){return te.apply(this,arguments)}function te(){return te=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/mv_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),te.apply(this,arguments)}function Ie(ot){return ze.apply(this,arguments)}function ze(){return ze=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/repository.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),ze.apply(this,arguments)}function mt(ot){return Ot.apply(this,arguments)}function Ot(){return Ot=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/repository.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Ot.apply(this,arguments)}function Rt(ot){return he.apply(this,arguments)}function he(){return he=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/secret_repository.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),he.apply(this,arguments)}function Re(ot){return I.apply(this,arguments)}function I(){return I=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/add_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),I.apply(this,arguments)}function ut(ot){return yt.apply(this,arguments)}function yt(){return yt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/add_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),yt.apply(this,arguments)}function wt(ot){return Lt.apply(this,arguments)}function Lt(){return Lt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/commits.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Lt.apply(this,arguments)}function Nt(ot){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/file_content.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Vt.apply(this,arguments)}function pn(ot){return kt.apply(this,arguments)}function kt(){return kt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/file_content.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),kt.apply(this,arguments)}function Xt(ot){return Jt.apply(this,arguments)}function Jt(){return Jt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Jt.apply(this,arguments)}function xn(ot){return Cn.apply(this,arguments)}function Cn(){return Cn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/update_file.json"),{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Cn.apply(this,arguments)}function or(ot){return er.apply(this,arguments)}function er(){return er=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/upload_git_folder.json"),{method:"post",body:{path:at.path,secret_repository:at.secret_repository}}));case 1:case"end":return pe.stop()}},ot)})),er.apply(this,arguments)}function sr(ot){return ir.apply(this,arguments)}function ir(){return ir=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/".concat(at.url),{method:"Get"}));case 1:case"end":return pe.stop()}},ot)})),ir.apply(this,arguments)}function gr(ot){return Vr.apply(this,arguments)}function Vr(){return Vr=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/get_info_with_tpm.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),Vr.apply(this,arguments)}function $r(ot){return na.apply(this,arguments)}function na(){return na=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/timeinfo_with_tpm.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),na.apply(this,arguments)}function Zr(ot){return _r.apply(this,arguments)}function _r(){return _r=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/reset_with_tpm.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),_r.apply(this,arguments)}function Dr(ot){return Br.apply(this,arguments)}function Br(){return Br=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/save_with_tpm.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),Br.apply(this,arguments)}function Pr(ot){return Gr.apply(this,arguments)}function Gr(){return Gr=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/active_with_tpm.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),Gr.apply(this,arguments)}function qr(ot){return ra.apply(this,arguments)}function ra(){return ra=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/fork_list.json"),{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),ra.apply(this,arguments)}function ca(ot){return Ir.apply(this,arguments)}function Ir(){return Ir=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.identifier,"/change_editable.json"),{method:"put",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Ir.apply(this,arguments)}function Ar(ot){return aa.apply(this,arguments)}function aa(){return aa=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/set_secret_dir.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),aa.apply(this,arguments)}function oa(ot){return ea.apply(this,arguments)}function ea(){return ea=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/new.json",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),ea.apply(this,arguments)}function Qt(ot){return mn.apply(this,arguments)}function mn(){return mn=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/environment_info",{method:"Get",params:at}));case 1:case"end":return pe.stop()}},ot)})),mn.apply(this,arguments)}function fn(ot){return Un.apply(this,arguments)}function Un(){return Un=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/init_repository.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Un.apply(this,arguments)}function Dn(ot){return An.apply(this,arguments)}function An(){return An=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/sci/projects/".concat(at.id,"/init_repository.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),An.apply(this,arguments)}function jn(ot){return nt.apply(this,arguments)}function nt(){return nt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_secret_repository.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),nt.apply(this,arguments)}function pt(ot){return Yt.apply(this,arguments)}function Yt(){return Yt=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/exist_exercise.json"),{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Yt.apply(this,arguments)}function Se(ot){return vr.apply(this,arguments)}function vr(){return vr=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,".json"),{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),vr.apply(this,arguments)}function Kr(ot){return sa.apply(this,arguments)}function sa(){return sa=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/publish.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),sa.apply(this,arguments)}function lr(ot){return ja.apply(this,arguments)}function ja(){return ja=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/open_vnc.json"),{method:"post",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),ja.apply(this,arguments)}function $o(ot){return mo.apply(this,arguments)}function mo(){return mo=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/open_webssh.json"),{method:"post",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),mo.apply(this,arguments)}function ho(ot){return Ta.apply(this,arguments)}function Ta(){return Ta=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/save_image.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Ta.apply(this,arguments)}function Bo(ot){return Ga.apply(this,arguments)}function Ga(){return Ga=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/delete_image.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Ga.apply(this,arguments)}function is(ot){return za.apply(this,arguments)}function za(){return za=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/extend_vnc.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),za.apply(this,arguments)}function Wo(ot){return xa.apply(this,arguments)}function xa(){return xa=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/mirror_applies/".concat(at.id,"/reset_vnc_link.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),xa.apply(this,arguments)}function ls(ot){return ro.apply(this,arguments)}function ro(){return ro=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/paths/get_task_pass.json",{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),ro.apply(this,arguments)}function ko(ot){return go.apply(this,arguments)}function go(){return go=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),go.apply(this,arguments)}function vo(ot){return Ka.apply(this,arguments)}function Ka(){return Ka=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/".concat(at.id,"/update_jupyter_lab_setting.json"),{method:"post",body:Object(a.a)({},at)}));case 1:case"end":return pe.stop()}},ot)})),Ka.apply(this,arguments)}function ia(ot){return Aa.apply(this,arguments)}function Aa(){return Aa=Object(n.a)(t.a.mark(function ot(at){return t.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.abrupt("return",Object(u.a)("/api/shixuns/check_shixun_copy.json",{method:"post",body:at}));case 1:case"end":return pe.stop()}},ot)})),Aa.apply(this,arguments)}},HKQd:function(x,g,e){var a=e("MVys"),n=e("Tfd0"),r="\u200B\x85\u180E";x.exports=function(t){return a(function(){return!!n[t]()||r[t]()!=r||n[t].name!==t})}},HQPm:function(x,g,e){e("bPAU")},"HaE+":function(x,g,e){"use strict";e.d(g,"a",function(){return n});function a(r,t,u,v,m,i,s){try{var d=r[i](s),l=d.value}catch(f){u(f);return}d.done?t(l):Promise.resolve(l).then(v,m)}function n(r){return function(){var t=this,u=arguments;return new Promise(function(v,m){var i=r.apply(t,u);function s(l){a(i,v,m,s,d,"next",l)}function d(l){a(i,v,m,s,d,"throw",l)}s(void 0)})}}},HctQ:function(x,g,e){var a=e("tny8"),n=e("YfKC"),r=e("f1E4"),t=e("P0e2");x.exports=a?Object.defineProperties:function(v,m){r(v);for(var i=t(m),s=i.length,d=0,l;s>d;)n.f(v,l=i[d++],m[l]);return v}},HhvW:function(x,g){x.exports=function(e,a){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:a}}},HjuX:function(x,g,e){var a=e("MMxC"),n=e("CdV7").entries;a({target:"Object",stat:!0},{entries:function(t){return n(t)}})},"I5+W":function(x,g,e){"use strict";var a=e("FVwB"),n=e("8OQV"),r=a.aTypedArrayConstructor,t=a.exportTypedArrayStaticMethod;t("of",function(){for(var v=0,m=arguments.length,i=new(r(this))(m);m>v;)i[v]=arguments[v++];return i},n)},I5X1:function(x,g,e){"use strict";e.d(g,"a",function(){return i});var a=e("tJVT"),n=e("q1tI"),r=e.n(n),t=e("1WJl"),u=e.n(t),v=e("FMtG"),m=e.n(v);function i(s,d){var l=Object(n.useContext)(v.UmiContext),f=Object(n.useRef)(d);f.current=d;var o=Object(n.useState)(function(){return f.current?f.current(l.data[s]):l.data[s]}),h=Object(a.a)(o,2),c=h[0],b=h[1],E=Object(n.useRef)(c);return E.current=c,Object(n.useEffect)(function(){var O=function(M){if(d&&f.current){var w=f.current(M),A=E.current;u()(w,A)||b(w)}else b(M)};try{l.callbacks[s].add(O)}catch(C){l.callbacks[s]=new Set,l.callbacks[s].add(O)}return function(){l.callbacks[s].delete(O)}},[s]),c}},I65O:function(x,g,e){var a=e("nFn1"),n=e("jtLI"),r=e("IjB0"),t=e("YfKC").f;x.exports=function(u){var v=a.Symbol||(a.Symbol={});n(v,u)||t(v,u,{value:r.f(u)})}},IA2H:function(x,g,e){"use strict";var a={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};g.a=a},"IC/V":function(x,g,e){var a=e("I65O");a("split")},IGnA:function(x,g,e){var a=e("0qr0"),n=e("uGHk").f,r={}.toString,t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(v){try{return n(v)}catch(m){return t.slice()}};x.exports.f=function(m){return t&&r.call(m)=="[object Window]"?u(m):n(a(m))}},ITfd:function(x,g,e){"use strict";var a=e("w8CP"),n=e("2j6C");function r(t,u,v){if(!(this instanceof r))return new r(t,u,v);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(u,v))}x.exports=r,r.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),n(u.length<=this.blockSize);for(var v=u.length;v1?arguments[1]:void 0)})},IbaC:function(x,g,e){"use strict";var a=e("MMxC"),n=e("FCfD"),r=e("YON3"),t=e("k/J9"),u=e("2kyd"),v=e("Zcjx"),m=u("replace"),i=RegExp.prototype;a({target:"String",proto:!0},{replaceAll:function s(d,l){var f=n(this),o,h,c,b,E,O,C,M,w;if(d!=null){if(o=r(d),o&&(h=String(n("flags"in i?d.flags:t.call(d))),!~h.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(c=d[m],c!==void 0)return c.call(d,f,l);if(v&&o)return String(f).replace(d,l)}if(b=String(f),E=String(d),E==="")return s.call(b,/(?:)/g,l);if(O=b.split(E),typeof l!="function")return O.join(String(l));for(C=O[0],M=C.length,w=1;wE;E++)if(C=f?h(a(w=s[E])[0],w[1]):h(s[E]),C&&C instanceof m)return C;return new m(!1)}c=b.call(s)}for(M=c.next;!(w=M.call(c)).done;)if(C=v(c,h,w.value,f),typeof C=="object"&&C&&C instanceof m)return C;return new m(!1)};i.stop=function(s){return new m(!0,s)}},"Iw+M":function(x,g,e){"use strict";var a=e("FVwB"),n=e("/3zY").indexOf,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("indexOf",function(v){return n(r(this),v,arguments.length>1?arguments[1]:void 0)})},IyRk:function(x,g){(function(e){x.exports=function(){var a={873:function(t){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch(v){typeof window=="object"&&(u=window)}t.exports=u}},n={};function r(t){if(n[t])return n[t].exports;var u=n[t]={exports:{}},v=!0;try{a[t](u,u.exports,r),v=!1}finally{v&&delete n[t]}return u.exports}return r.ab=e+"/",r(873)}()}).call(this,"/")},IyrG:function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("ZSlt"),t=e("ssJt"),u="ArrayBuffer",v=r[u],m=n[u];a({global:!0,forced:m!==v},{ArrayBuffer:v}),t(u)},"J+Da":function(x,g,e){var a=e("m0kY"),n=e("oa35");x.exports=function(r){if(r===void 0)return 0;var t=a(r),u=n(t);if(t!==u)throw RangeError("Wrong length or index");return u}},J3Yn:function(x,g,e){var a=e("pb5k"),n=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(r){return n.call(r)}),x.exports=a.inspectSource},J428:function(x,g,e){var a=e("MMxC"),n=e("CdV7").values;a({target:"Object",stat:!0},{values:function(t){return n(t)}})},J4zp:function(x,g,e){var a=e("wTVA"),n=e("m0LI"),r=e("ZhPi"),t=e("wkBT");function u(v,m){return a(v)||n(v,m)||r(v,m)||t()}x.exports=u,x.exports.__esModule=!0,x.exports.default=x.exports},JDCn:function(x,g,e){var a=e("MMxC"),n=Math.floor,r=Math.log,t=Math.LOG2E;a({target:"Math",stat:!0},{clz32:function(v){return(v>>>=0)?31-n(r(v+.5)*t):32}})},JI6M:function(x,g,e){"use strict";var a=e("MMxC"),n=e("mTKU").trim,r=e("HKQd");a({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})},JO4c:function(x,g,e){"use strict";var a=e("FVwB"),n=e("9RRT").right,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("reduceRight",function(v){return n(r(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},JS3A:function(x,g,e){var a=e("tSXo");x.exports=function(n){if(!a(n)&&n!==null)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},JX7q:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}},JXee:function(x,g,e){var a=e("MMxC"),n=e("YMoz"),r=e("jdp+");a({target:"Math",stat:!0},{fscale:function(u,v,m,i,s){return r(n(u,v,m,i,s))}})},JXem:function(x,g,e){"use strict";var a=e("Acmb"),n=e("lz10"),r=e("jtLI"),t=e("2kyd"),u=e("Zcjx"),v=t("iterator"),m=!1,i=function(){return this},s,d,l;[].keys&&(l=[].keys(),"next"in l?(d=a(a(l)),d!==Object.prototype&&(s=d)):m=!0),s==null&&(s={}),!u&&!r(s,v)&&n(s,v,i),x.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},Ji7U:function(x,g,e){"use strict";e.d(g,"a",function(){return n});var a=e("s4An");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&Object(a.a)(r,t)}},JnaH:function(x,g,e){var a=e("MMxC"),n=e("MVys"),r=e("V61k"),t=Math.abs,u=Math.exp,v=Math.E,m=n(function(){return Math.sinh(-2e-17)!=-2e-17});a({target:"Math",stat:!0,forced:m},{sinh:function(s){return t(s=+s)<1?(r(s)-r(-s))/2:(u(s-1)-u(-s-1))*(v/2)}})},JxQ3:function(x,g,e){var a=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=a&&n&&typeof n.get=="function"?n.get:null,t=a&&Map.prototype.forEach,u=typeof Set=="function"&&Set.prototype,v=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m=u&&v&&typeof v.get=="function"?v.get:null,i=u&&Set.prototype.forEach,s=typeof WeakMap=="function"&&WeakMap.prototype,d=s?WeakMap.prototype.has:null,l=typeof WeakSet=="function"&&WeakSet.prototype,f=l?WeakSet.prototype.has:null,o=typeof WeakRef=="function"&&WeakRef.prototype,h=o?WeakRef.prototype.deref:null,c=Boolean.prototype.valueOf,b=Object.prototype.toString,E=Function.prototype.toString,O=String.prototype.match,C=String.prototype.slice,M=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,L=RegExp.prototype.test,z=Array.prototype.concat,G=Array.prototype.join,D=Array.prototype.slice,N=Math.floor,Oe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee?"object":"symbol")?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,Q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(P){return P.__proto__}:null);function q(P,T){if(P===Infinity||P===-Infinity||P!==P||P&&P>-1e3&&P<1e3||L.call(/e/,T))return T;var $=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof P=="number"){var se=P<0?-N(-P):N(P);if(se!==P){var ke=String(se),ve=C.call(T,ke.length+1);return M.call(ke,$,"$&_")+"."+M.call(M.call(ve,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(T,$,"$&_")}var He=e(2).custom,Ze=He&&fe(He)?He:null;x.exports=function P(T,$,se,ke){var ve=$||{};if(Ve(ve,"quoteStyle")&&ve.quoteStyle!=="single"&&ve.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ve(ve,"maxStringLength")&&(typeof ve.maxStringLength=="number"?ve.maxStringLength<0&&ve.maxStringLength!==Infinity:ve.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Be=Ve(ve,"customInspect")?ve.customInspect:!0;if(typeof Be!="boolean"&&Be!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ve(ve,"indent")&&ve.indent!==null&&ve.indent!==" "&&!(parseInt(ve.indent,10)===ve.indent&&ve.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ve(ve,"numericSeparator")&&typeof ve.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var it=ve.numericSeparator;if(typeof T=="undefined")return"undefined";if(T===null)return"null";if(typeof T=="boolean")return T?"true":"false";if(typeof T=="string")return U(T,ve);if(typeof T=="number"){if(T===0)return Infinity/T>0?"0":"-0";var We=String(T);return it?q(T,We):We}if(typeof T=="bigint"){var Et=String(T)+"n";return it?q(T,Et):Et}var Tt=typeof ve.depth=="undefined"?5:ve.depth;if(typeof se=="undefined"&&(se=0),se>=Tt&&Tt>0&&typeof T=="object")return Ue(T)?"[Array]":"[Object]";var Ht=oe(ve,se);if(typeof ke=="undefined")ke=[];else if(ge(ke,T)>=0)return"[Circular]";function It(Ct,be,Ne){if(be&&(ke=D.call(ke),ke.push(be)),Ne){var Fe={depth:ve.depth};return Ve(ve,"quoteStyle")&&(Fe.quoteStyle=ve.quoteStyle),P(Ct,Fe,se+1,ke)}return P(Ct,ve,se+1,ke)}if(typeof T=="function"){var tn=ht(T),qt=K(T,It);return"[Function"+(tn?": "+tn:" (anonymous)")+"]"+(qt.length>0?" { "+G.call(qt,", ")+" }":"")}if(fe(T)){var gn=ee?M.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(T);return typeof T=="object"&&!ee?Ae(gn):gn}if(V(T)){for(var an="<"+A.call(String(T.nodeName)),Tn=T.attributes||[],on=0;on",an}if(Ue(T)){if(T.length===0)return"[]";var En=K(T,It);return Ht&&!ae(En)?"["+le(En,Ht)+"]":"[ "+G.call(En,", ")+" ]"}if(ie(T)){var yn=K(T,It);return"cause"in T&&!F.call(T,"cause")?"{ ["+String(T)+"] "+G.call(z.call("[cause]: "+It(T.cause),yn),", ")+" }":yn.length===0?"["+String(T)+"]":"{ ["+String(T)+"] "+G.call(yn,", ")+" }"}if(typeof T=="object"&&Be){if(Ze&&typeof T[Ze]=="function")return T[Ze]();if(Be!=="symbol"&&typeof T.inspect=="function")return T.inspect()}if(ye(T)){var vn=[];return t.call(T,function(Ct,be){vn.push(It(be,T,!0)+" => "+It(Ct,T))}),k("Map",r.call(T),vn,Ht)}if(ce(T)){var Rn=[];return i.call(T,function(Ct){Rn.push(It(Ct,T))}),k("Set",m.call(T),Rn,Ht)}if(je(T))return S("WeakMap");if(Y(T))return S("WeakSet");if(we(T))return S("WeakRef");if(de(T))return Ae(It(Number(T)));if(rt(T))return Ae(It(Oe.call(T)));if(Ye(T))return Ae(c.call(T));if(W(T))return Ae(It(String(T)));if(!X(T)&&!me(T)){var Pn=K(T,It),St=Q?Q(T)===Object.prototype:T instanceof Object||T.constructor===Object,bt=T instanceof Object?"":"null prototype",Pt=!St&&J&&Object(T)===T&&J in T?C.call(tt(T),8,-1):bt?"Object":"",Ft=St||typeof T.constructor!="function"?"":T.constructor.name?T.constructor.name+" ":"",De=Ft+(Pt||bt?"["+G.call(z.call([],Pt||[],bt||[]),": ")+"] ":"");return Pn.length===0?De+"{}":Ht?De+"{"+le(Pn,Ht)+"}":De+"{ "+G.call(Pn,", ")+" }"}return String(T)};function ft(P,T,$){var se=($.quoteStyle||T)==="double"?'"':"'";return se+P+se}function $e(P){return M.call(String(P),/"/g,""")}function Ue(P){return tt(P)==="[object Array]"&&(!J||!(typeof P=="object"&&J in P))}function X(P){return tt(P)==="[object Date]"&&(!J||!(typeof P=="object"&&J in P))}function me(P){return tt(P)==="[object RegExp]"&&(!J||!(typeof P=="object"&&J in P))}function ie(P){return tt(P)==="[object Error]"&&(!J||!(typeof P=="object"&&J in P))}function W(P){return tt(P)==="[object String]"&&(!J||!(typeof P=="object"&&J in P))}function de(P){return tt(P)==="[object Number]"&&(!J||!(typeof P=="object"&&J in P))}function Ye(P){return tt(P)==="[object Boolean]"&&(!J||!(typeof P=="object"&&J in P))}function fe(P){if(ee)return P&&typeof P=="object"&&P instanceof Symbol;if(typeof P=="symbol")return!0;if(!P||typeof P!="object"||!re)return!1;try{return re.call(P),!0}catch(T){}return!1}function rt(P){if(!P||typeof P!="object"||!Oe)return!1;try{return Oe.call(P),!0}catch(T){}return!1}var Te=Object.prototype.hasOwnProperty||function(P){return P in this};function Ve(P,T){return Te.call(P,T)}function tt(P){return b.call(P)}function ht(P){if(P.name)return P.name;var T=O.call(E.call(P),/^function\s*([\w$]+)/);return T?T[1]:null}function ge(P,T){if(P.indexOf)return P.indexOf(T);for(var $=0,se=P.length;$T.maxStringLength){var $=P.length-T.maxStringLength,se="... "+$+" more character"+($>1?"s":"");return U(C.call(P,0,T.maxStringLength),T)+se}var ke=M.call(M.call(P,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,B);return ft(ke,"single",T)}function B(P){var T=P.charCodeAt(0),$={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];return $?"\\"+$:"\\x"+(T<16?"0":"")+w.call(T.toString(16))}function Ae(P){return"Object("+P+")"}function S(P){return P+" { ? }"}function k(P,T,$,se){var ke=se?le($,se):G.call($,", ");return P+" ("+T+") {"+ke+"}"}function ae(P){for(var T=0;Td;)n.f(v,l=i[d++],m[l]);return v}},HhvW:function(x,g){x.exports=function(e,a){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:a}}},HjuX:function(x,g,e){var a=e("MMxC"),n=e("CdV7").entries;a({target:"Object",stat:!0},{entries:function(t){return n(t)}})},"I5+W":function(x,g,e){"use strict";var a=e("FVwB"),n=e("8OQV"),r=a.aTypedArrayConstructor,t=a.exportTypedArrayStaticMethod;t("of",function(){for(var v=0,m=arguments.length,i=new(r(this))(m);m>v;)i[v]=arguments[v++];return i},n)},I5X1:function(x,g,e){"use strict";e.d(g,"a",function(){return i});var a=e("tJVT"),n=e("q1tI"),r=e.n(n),t=e("1WJl"),u=e.n(t),v=e("FMtG"),m=e.n(v);function i(s,d){var l=Object(n.useContext)(v.UmiContext),f=Object(n.useRef)(d);f.current=d;var o=Object(n.useState)(function(){return f.current?f.current(l.data[s]):l.data[s]}),h=Object(a.a)(o,2),c=h[0],b=h[1],E=Object(n.useRef)(c);return E.current=c,Object(n.useEffect)(function(){var O=function(M){if(d&&f.current){var w=f.current(M),A=E.current;u()(w,A)||b(w)}else b(M)};try{l.callbacks[s].add(O)}catch(C){l.callbacks[s]=new Set,l.callbacks[s].add(O)}return function(){l.callbacks[s].delete(O)}},[s]),c}},I65O:function(x,g,e){var a=e("nFn1"),n=e("jtLI"),r=e("IjB0"),t=e("YfKC").f;x.exports=function(u){var v=a.Symbol||(a.Symbol={});n(v,u)||t(v,u,{value:r.f(u)})}},IA2H:function(x,g,e){"use strict";var a={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};g.a=a},"IC/V":function(x,g,e){var a=e("I65O");a("split")},IGnA:function(x,g,e){var a=e("0qr0"),n=e("uGHk").f,r={}.toString,t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(v){try{return n(v)}catch(m){return t.slice()}};x.exports.f=function(m){return t&&r.call(m)=="[object Window]"?u(m):n(a(m))}},ITfd:function(x,g,e){"use strict";var a=e("w8CP"),n=e("2j6C");function r(t,u,v){if(!(this instanceof r))return new r(t,u,v);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(u,v))}x.exports=r,r.prototype._init=function(u){u.length>this.blockSize&&(u=new this.Hash().update(u).digest()),n(u.length<=this.blockSize);for(var v=u.length;v1?arguments[1]:void 0)})},IbaC:function(x,g,e){"use strict";var a=e("MMxC"),n=e("FCfD"),r=e("YON3"),t=e("k/J9"),u=e("2kyd"),v=e("Zcjx"),m=u("replace"),i=RegExp.prototype;a({target:"String",proto:!0},{replaceAll:function s(d,l){var f=n(this),o,h,c,b,E,O,C,M,w;if(d!=null){if(o=r(d),o&&(h=String(n("flags"in i?d.flags:t.call(d))),!~h.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(c=d[m],c!==void 0)return c.call(d,f,l);if(v&&o)return String(f).replace(d,l)}if(b=String(f),E=String(d),E==="")return s.call(b,/(?:)/g,l);if(O=b.split(E),typeof l!="function")return O.join(String(l));for(C=O[0],M=C.length,w=1;wE;E++)if(C=f?h(a(w=s[E])[0],w[1]):h(s[E]),C&&C instanceof m)return C;return new m(!1)}c=b.call(s)}for(M=c.next;!(w=M.call(c)).done;)if(C=v(c,h,w.value,f),typeof C=="object"&&C&&C instanceof m)return C;return new m(!1)};i.stop=function(s){return new m(!0,s)}},"Iw+M":function(x,g,e){"use strict";var a=e("FVwB"),n=e("/3zY").indexOf,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("indexOf",function(v){return n(r(this),v,arguments.length>1?arguments[1]:void 0)})},IyRk:function(x,g){(function(e){x.exports=function(){var a={873:function(t){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch(v){typeof window=="object"&&(u=window)}t.exports=u}},n={};function r(t){if(n[t])return n[t].exports;var u=n[t]={exports:{}},v=!0;try{a[t](u,u.exports,r),v=!1}finally{v&&delete n[t]}return u.exports}return r.ab=e+"/",r(873)}()}).call(this,"/")},IyrG:function(x,g,e){"use strict";var a=e("MMxC"),n=e("ukPv"),r=e("ZSlt"),t=e("ssJt"),u="ArrayBuffer",v=r[u],m=n[u];a({global:!0,forced:m!==v},{ArrayBuffer:v}),t(u)},"J+Da":function(x,g,e){var a=e("m0kY"),n=e("oa35");x.exports=function(r){if(r===void 0)return 0;var t=a(r),u=n(t);if(t!==u)throw RangeError("Wrong length or index");return u}},J3Yn:function(x,g,e){var a=e("pb5k"),n=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(r){return n.call(r)}),x.exports=a.inspectSource},J428:function(x,g,e){var a=e("MMxC"),n=e("CdV7").values;a({target:"Object",stat:!0},{values:function(t){return n(t)}})},J4zp:function(x,g,e){var a=e("wTVA"),n=e("m0LI"),r=e("ZhPi"),t=e("wkBT");function u(v,m){return a(v)||n(v,m)||r(v,m)||t()}x.exports=u,x.exports.__esModule=!0,x.exports.default=x.exports},JDCn:function(x,g,e){var a=e("MMxC"),n=Math.floor,r=Math.log,t=Math.LOG2E;a({target:"Math",stat:!0},{clz32:function(v){return(v>>>=0)?31-n(r(v+.5)*t):32}})},JI6M:function(x,g,e){"use strict";var a=e("MMxC"),n=e("mTKU").trim,r=e("HKQd");a({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})},JO4c:function(x,g,e){"use strict";var a=e("FVwB"),n=e("9RRT").right,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("reduceRight",function(v){return n(r(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},JS3A:function(x,g,e){var a=e("tSXo");x.exports=function(n){if(!a(n)&&n!==null)throw TypeError("Can't set "+String(n)+" as a prototype");return n}},JX7q:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}},JXee:function(x,g,e){var a=e("MMxC"),n=e("YMoz"),r=e("jdp+");a({target:"Math",stat:!0},{fscale:function(u,v,m,i,s){return r(n(u,v,m,i,s))}})},JXem:function(x,g,e){"use strict";var a=e("Acmb"),n=e("lz10"),r=e("jtLI"),t=e("2kyd"),u=e("Zcjx"),v=t("iterator"),m=!1,i=function(){return this},s,d,l;[].keys&&(l=[].keys(),"next"in l?(d=a(a(l)),d!==Object.prototype&&(s=d)):m=!0),s==null&&(s={}),!u&&!r(s,v)&&n(s,v,i),x.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},Ji7U:function(x,g,e){"use strict";e.d(g,"a",function(){return n});var a=e("s4An");function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&Object(a.a)(r,t)}},JnaH:function(x,g,e){var a=e("MMxC"),n=e("MVys"),r=e("V61k"),t=Math.abs,u=Math.exp,v=Math.E,m=n(function(){return Math.sinh(-2e-17)!=-2e-17});a({target:"Math",stat:!0,forced:m},{sinh:function(s){return t(s=+s)<1?(r(s)-r(-s))/2:(u(s-1)-u(-s-1))*(v/2)}})},JxQ3:function(x,g,e){var a=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=a&&n&&typeof n.get=="function"?n.get:null,t=a&&Map.prototype.forEach,u=typeof Set=="function"&&Set.prototype,v=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m=u&&v&&typeof v.get=="function"?v.get:null,i=u&&Set.prototype.forEach,s=typeof WeakMap=="function"&&WeakMap.prototype,d=s?WeakMap.prototype.has:null,l=typeof WeakSet=="function"&&WeakSet.prototype,f=l?WeakSet.prototype.has:null,o=typeof WeakRef=="function"&&WeakRef.prototype,h=o?WeakRef.prototype.deref:null,c=Boolean.prototype.valueOf,b=Object.prototype.toString,E=Function.prototype.toString,O=String.prototype.match,C=String.prototype.slice,M=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,L=RegExp.prototype.test,z=Array.prototype.concat,G=Array.prototype.join,D=Array.prototype.slice,N=Math.floor,Oe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",J=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ee?"object":"symbol")?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,Q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(P){return P.__proto__}:null);function q(P,T){if(P===Infinity||P===-Infinity||P!==P||P&&P>-1e3&&P<1e3||L.call(/e/,T))return T;var $=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof P=="number"){var se=P<0?-N(-P):N(P);if(se!==P){var ke=String(se),ve=C.call(T,ke.length+1);return M.call(ke,$,"$&_")+"."+M.call(M.call(ve,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(T,$,"$&_")}var He=e(2).custom,Ze=He&&fe(He)?He:null;x.exports=function P(T,$,se,ke){var ve=$||{};if(Ve(ve,"quoteStyle")&&ve.quoteStyle!=="single"&&ve.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ve(ve,"maxStringLength")&&(typeof ve.maxStringLength=="number"?ve.maxStringLength<0&&ve.maxStringLength!==Infinity:ve.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Be=Ve(ve,"customInspect")?ve.customInspect:!0;if(typeof Be!="boolean"&&Be!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ve(ve,"indent")&&ve.indent!==null&&ve.indent!==" "&&!(parseInt(ve.indent,10)===ve.indent&&ve.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ve(ve,"numericSeparator")&&typeof ve.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var it=ve.numericSeparator;if(typeof T=="undefined")return"undefined";if(T===null)return"null";if(typeof T=="boolean")return T?"true":"false";if(typeof T=="string")return U(T,ve);if(typeof T=="number"){if(T===0)return Infinity/T>0?"0":"-0";var We=String(T);return it?q(T,We):We}if(typeof T=="bigint"){var Et=String(T)+"n";return it?q(T,Et):Et}var Tt=typeof ve.depth=="undefined"?5:ve.depth;if(typeof se=="undefined"&&(se=0),se>=Tt&&Tt>0&&typeof T=="object")return Ue(T)?"[Array]":"[Object]";var Ht=oe(ve,se);if(typeof ke=="undefined")ke=[];else if(ge(ke,T)>=0)return"[Circular]";function It(Ct,be,Fe){if(be&&(ke=D.call(ke),ke.push(be)),Fe){var Ne={depth:ve.depth};return Ve(ve,"quoteStyle")&&(Ne.quoteStyle=ve.quoteStyle),P(Ct,Ne,se+1,ke)}return P(Ct,ve,se+1,ke)}if(typeof T=="function"){var tn=ht(T),qt=K(T,It);return"[Function"+(tn?": "+tn:" (anonymous)")+"]"+(qt.length>0?" { "+G.call(qt,", ")+" }":"")}if(fe(T)){var gn=ee?M.call(String(T),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(T);return typeof T=="object"&&!ee?Ae(gn):gn}if(V(T)){for(var an="<"+A.call(String(T.nodeName)),Tn=T.attributes||[],on=0;on",an}if(Ue(T)){if(T.length===0)return"[]";var En=K(T,It);return Ht&&!ae(En)?"["+le(En,Ht)+"]":"[ "+G.call(En,", ")+" ]"}if(ie(T)){var yn=K(T,It);return"cause"in T&&!F.call(T,"cause")?"{ ["+String(T)+"] "+G.call(z.call("[cause]: "+It(T.cause),yn),", ")+" }":yn.length===0?"["+String(T)+"]":"{ ["+String(T)+"] "+G.call(yn,", ")+" }"}if(typeof T=="object"&&Be){if(Ze&&typeof T[Ze]=="function")return T[Ze]();if(Be!=="symbol"&&typeof T.inspect=="function")return T.inspect()}if(ye(T)){var vn=[];return t.call(T,function(Ct,be){vn.push(It(be,T,!0)+" => "+It(Ct,T))}),k("Map",r.call(T),vn,Ht)}if(ce(T)){var Rn=[];return i.call(T,function(Ct){Rn.push(It(Ct,T))}),k("Set",m.call(T),Rn,Ht)}if(je(T))return S("WeakMap");if(Y(T))return S("WeakSet");if(we(T))return S("WeakRef");if(de(T))return Ae(It(Number(T)));if(rt(T))return Ae(It(Oe.call(T)));if(Ye(T))return Ae(c.call(T));if(W(T))return Ae(It(String(T)));if(!X(T)&&!me(T)){var Pn=K(T,It),St=Q?Q(T)===Object.prototype:T instanceof Object||T.constructor===Object,bt=T instanceof Object?"":"null prototype",Pt=!St&&J&&Object(T)===T&&J in T?C.call(tt(T),8,-1):bt?"Object":"",Ft=St||typeof T.constructor!="function"?"":T.constructor.name?T.constructor.name+" ":"",De=Ft+(Pt||bt?"["+G.call(z.call([],Pt||[],bt||[]),": ")+"] ":"");return Pn.length===0?De+"{}":Ht?De+"{"+le(Pn,Ht)+"}":De+"{ "+G.call(Pn,", ")+" }"}return String(T)};function ft(P,T,$){var se=($.quoteStyle||T)==="double"?'"':"'";return se+P+se}function $e(P){return M.call(String(P),/"/g,""")}function Ue(P){return tt(P)==="[object Array]"&&(!J||!(typeof P=="object"&&J in P))}function X(P){return tt(P)==="[object Date]"&&(!J||!(typeof P=="object"&&J in P))}function me(P){return tt(P)==="[object RegExp]"&&(!J||!(typeof P=="object"&&J in P))}function ie(P){return tt(P)==="[object Error]"&&(!J||!(typeof P=="object"&&J in P))}function W(P){return tt(P)==="[object String]"&&(!J||!(typeof P=="object"&&J in P))}function de(P){return tt(P)==="[object Number]"&&(!J||!(typeof P=="object"&&J in P))}function Ye(P){return tt(P)==="[object Boolean]"&&(!J||!(typeof P=="object"&&J in P))}function fe(P){if(ee)return P&&typeof P=="object"&&P instanceof Symbol;if(typeof P=="symbol")return!0;if(!P||typeof P!="object"||!re)return!1;try{return re.call(P),!0}catch(T){}return!1}function rt(P){if(!P||typeof P!="object"||!Oe)return!1;try{return Oe.call(P),!0}catch(T){}return!1}var Te=Object.prototype.hasOwnProperty||function(P){return P in this};function Ve(P,T){return Te.call(P,T)}function tt(P){return b.call(P)}function ht(P){if(P.name)return P.name;var T=O.call(E.call(P),/^function\s*([\w$]+)/);return T?T[1]:null}function ge(P,T){if(P.indexOf)return P.indexOf(T);for(var $=0,se=P.length;$T.maxStringLength){var $=P.length-T.maxStringLength,se="... "+$+" more character"+($>1?"s":"");return U(C.call(P,0,T.maxStringLength),T)+se}var ke=M.call(M.call(P,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,B);return ft(ke,"single",T)}function B(P){var T=P.charCodeAt(0),$={8:"b",9:"t",10:"n",12:"f",13:"r"}[T];return $?"\\"+$:"\\x"+(T<16?"0":"")+w.call(T.toString(16))}function Ae(P){return"Object("+P+")"}function S(P){return P+" { ? }"}function k(P,T,$,se){var ke=se?le($,se):G.call($,", ");return P+" ("+T+") {"+ke+"}"}function ae(P){for(var T=0;T=0)return!1;return!0}function oe(P,T){var $;if(P.indent===" ")$=" ";else if(typeof P.indent=="number"&&P.indent>0)$=G.call(Array(P.indent+1)," ");else return null;return{base:$,prev:G.call(Array(T+1),$)}}function le(P,T){if(P.length===0)return"";var $=` `+T.prev+T.base;return $+G.call(P,","+$)+` `+T.prev}function K(P,T){var $=Ue(P),se=[];if($){se.length=P.length;for(var ke=0;ke=Y)return U;switch(U){case"%s":return String(ye[we++]);case"%d":return Number(ye[we++]);case"%j":try{return JSON.stringify(ye[we++])}catch(B){return"[Circular]"}break;default:return U}});return V}return ce}function h(ge){return ge==="string"||ge==="url"||ge==="hex"||ge==="email"||ge==="date"||ge==="pattern"}function c(ge,ye){return ge==null||ye==="array"&&Array.isArray(ge)&&!ge.length?!0:!!(h(ye)&&typeof ge=="string"&&!ge)}function b(ge,ye,je){var we=[],ce=0,Y=ge.length;function V(U){we.push.apply(we,U),ce++,ce===Y&&je(we)}ge.forEach(function(U){ye(U,V)})}function E(ge,ye,je){var we=0,ce=ge.length;function Y(V){if(V&&V.length){je(V);return}var U=we;we=we+1,U()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},D={integer:function(ye){return D.number(ye)&&parseInt(ye,10)===ye},float:function(ye){return D.number(ye)&&!D.integer(ye)},array:function(ye){return Array.isArray(ye)},regexp:function(ye){if(ye instanceof RegExp)return!0;try{return!!new RegExp(ye)}catch(je){return!1}},date:function(ye){return typeof ye.getTime=="function"&&typeof ye.getMonth=="function"&&typeof ye.getYear=="function"&&!isNaN(ye.getTime())},number:function(ye){return isNaN(ye)?!1:typeof ye=="number"},object:function(ye){return typeof ye=="object"&&!D.array(ye)},method:function(ye){return typeof ye=="function"},email:function(ye){return typeof ye=="string"&&!!ye.match(G.email)&&ye.length<255},url:function(ye){return typeof ye=="string"&&!!ye.match(G.url)},hex:function(ye){return typeof ye=="string"&&!!ye.match(G.hex)}};function N(ge,ye,je,we,ce){if(ge.required&&ye===void 0){L(ge,ye,je,we,ce);return}var Y=["integer","float","array","regexp","object","method","email","number","date","url","hex"],V=ge.type;Y.indexOf(V)>-1?D[V](ye)||we.push(o(ce.messages.types[V],ge.fullField,ge.type)):V&&typeof ye!==ge.type&&we.push(o(ce.messages.types[V],ge.fullField,ge.type))}function Oe(ge,ye,je,we,ce){var Y=typeof ge.len=="number",V=typeof ge.min=="number",U=typeof ge.max=="number",B=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ae=ye,S=null,k=typeof ye=="number",ae=typeof ye=="string",oe=Array.isArray(ye);if(k?S="number":ae?S="string":oe&&(S="array"),!S)return!1;oe&&(Ae=ye.length),ae&&(Ae=ye.replace(B,"_").length),Y?Ae!==ge.len&&we.push(o(ce.messages[S].len,ge.fullField,ge.len)):V&&!U&&Aege.max?we.push(o(ce.messages[S].max,ge.fullField,ge.max)):V&&U&&(Aege.max)&&we.push(o(ce.messages[S].range,ge.fullField,ge.min,ge.max))}var ue="enum";function re(ge,ye,je,we,ce){ge[ue]=Array.isArray(ge[ue])?ge[ue]:[],ge[ue].indexOf(ye)===-1&&we.push(o(ce.messages[ue],ge.fullField,ge[ue].join(", ")))}function ee(ge,ye,je,we,ce){if(ge.pattern){if(ge.pattern instanceof RegExp)ge.pattern.lastIndex=0,ge.pattern.test(ye)||we.push(o(ce.messages.pattern.mismatch,ge.fullField,ye,ge.pattern));else if(typeof ge.pattern=="string"){var Y=new RegExp(ge.pattern);Y.test(ye)||we.push(o(ce.messages.pattern.mismatch,ge.fullField,ye,ge.pattern))}}}var J={required:L,whitespace:z,type:N,range:Oe,enum:re,pattern:ee};function F(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye,"string")&&!ge.required)return je();J.required(ge,ye,we,Y,ce,"string"),c(ye,"string")||(J.type(ge,ye,we,Y,ce),J.range(ge,ye,we,Y,ce),J.pattern(ge,ye,we,Y,ce),ge.whitespace===!0&&J.whitespace(ge,ye,we,Y,ce))}je(Y)}function Q(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&J.type(ge,ye,we,Y,ce)}je(Y)}function q(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(ye===""&&(ye=void 0),c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&(J.type(ge,ye,we,Y,ce),J.range(ge,ye,we,Y,ce))}je(Y)}function He(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&J.type(ge,ye,we,Y,ce)}je(Y)}function Ze(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),c(ye)||J.type(ge,ye,we,Y,ce)}je(Y)}function ft(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&(J.type(ge,ye,we,Y,ce),J.range(ge,ye,we,Y,ce))}je(Y)}function $e(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&(J.type(ge,ye,we,Y,ce),J.range(ge,ye,we,Y,ce))}je(Y)}function Ue(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(ye==null&&!ge.required)return je();J.required(ge,ye,we,Y,ce,"array"),ye!=null&&(J.type(ge,ye,we,Y,ce),J.range(ge,ye,we,Y,ce))}je(Y)}function X(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&J.type(ge,ye,we,Y,ce)}je(Y)}var me="enum";function ie(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce),ye!==void 0&&J[me](ge,ye,we,Y,ce)}je(Y)}function W(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye,"string")&&!ge.required)return je();J.required(ge,ye,we,Y,ce),c(ye,"string")||J.pattern(ge,ye,we,Y,ce)}je(Y)}function de(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye,"date")&&!ge.required)return je();if(J.required(ge,ye,we,Y,ce),!c(ye,"date")){var U;ye instanceof Date?U=ye:U=new Date(ye),J.type(ge,U,we,Y,ce),U&&J.range(ge,U.getTime(),we,Y,ce)}}je(Y)}function Ye(ge,ye,je,we,ce){var Y=[],V=Array.isArray(ye)?"array":typeof ye;J.required(ge,ye,we,Y,ce,V),je(Y)}function fe(ge,ye,je,we,ce){var Y=ge.type,V=[],U=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(U){if(c(ye,Y)&&!ge.required)return je();J.required(ge,ye,we,V,ce,Y),c(ye,Y)||J.type(ge,ye,we,V,ce)}je(V)}function rt(ge,ye,je,we,ce){var Y=[],V=ge.required||!ge.required&&we.hasOwnProperty(ge.field);if(V){if(c(ye)&&!ge.required)return je();J.required(ge,ye,we,Y,ce)}je(Y)}var Te={string:F,method:Q,number:q,boolean:He,regexp:Ze,integer:ft,float:$e,array:Ue,object:X,enum:ie,pattern:W,date:de,url:fe,hex:fe,email:fe,required:Ye,any:rt};function Ve(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var ye=JSON.parse(JSON.stringify(this));return ye.clone=this.clone,ye}}}var tt=Ve();function ht(ge){this.rules=null,this._messages=tt,this.define(ge)}ht.prototype={messages:function(ye){return ye&&(this._messages=A(Ve(),ye)),this._messages},define:function(ye){if(!ye)throw new Error("Cannot configure a schema with no rules");if(typeof ye!="object"||Array.isArray(ye))throw new Error("Rules must be an object");this.rules={};var je,we;for(je in ye)ye.hasOwnProperty(je)&&(we=ye[je],this.rules[je]=Array.isArray(we)?we:[we])},validate:function(ye,je,we){var ce=this;je===void 0&&(je={}),we===void 0&&(we=function(){});var Y=ye,V=je,U=we;if(typeof V=="function"&&(U=V,V={}),!this.rules||Object.keys(this.rules).length===0)return U&&U(),Promise.resolve();function B(K){var P,T=[],$={};function se(ke){if(Array.isArray(ke)){var ve;T=(ve=T).concat.apply(ve,ke)}else T.push(ke)}for(P=0;P=s.length?{value:void 0,done:!0}:(l=a(s,d),i.index+=l.length,{value:l,done:!1})})},Kwbf:function(x,g,e){"use strict";e.d(g,"c",function(){return n}),e.d(g,"b",function(){return m});var a={};function n(i,s){}function r(i,s){}function t(){a={}}function u(i,s,d){!s&&!a[d]&&(i(!1,d),a[d]=!0)}function v(i,s){u(n,i,s)}function m(i,s){u(r,i,s)}g.a=v},L5O0:function(x,g,e){var a=e("MMxC"),n=e("qA1w");a({target:"WeakSet",stat:!0},{of:n})},LJ80:function(x,g,e){var a=e("jtLI"),n=e("cC5k"),r=e("g8rt"),t=e("YfKC");x.exports=function(u,v){for(var m=n(v),i=t.f,s=r.f,d=0;d1?arguments[1]:void 0)})},LpSC:function(x,g,e){e("bZMm"),x.exports=self.fetch.bind(self)},LtsZ:function(x,g,e){"use strict";e.d(g,"a",function(){return Ze}),e.d(g,"b",function(){return Ue}),e.d(g,"c",function(){return Q});var a=e("q1tI"),n=e.n(a),r=e("8L3h"),t=e.n(r);function u(X,me){var ie=Object.keys(X);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(X);me&&(W=W.filter(function(de){return Object.getOwnPropertyDescriptor(X,de).enumerable})),ie.push.apply(ie,W)}return ie}function v(X){for(var me=1;meX.length)&&(me=X.length);for(var ie=0,W=new Array(me);ie=X.length?{done:!0}:{done:!1,value:X[W++]}},e:function(Te){throw Te},f:de}}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 Ye=!0,fe=!1,rt;return{s:function(){ie=ie.call(X)},n:function(){var Te=ie.next();return Ye=Te.done,Te},e:function(Te){fe=!0,rt=Te},f:function(){try{!Ye&&ie.return!=null&&ie.return()}finally{if(fe)throw rt}}}}var w=Object(a.createContext)(null),A=[],L=[],z=!1;function G(X){var me=X(),ie={loading:!0,loaded:null,error:null};return ie.promise=me.then(function(W){return ie.loading=!1,ie.loaded=W,W}).catch(function(W){throw ie.loading=!1,ie.error=W,W}),ie}function D(X){var me={loading:!1,loaded:{},error:null},ie=[];try{Object.keys(X).forEach(function(W){var de=G(X[W]);de.loading?me.loading=!0:(me.loaded[W]=de.loaded,me.error=de.error),ie.push(de.promise),de.promise.then(function(Ye){me.loaded[W]=Ye}).catch(function(Ye){me.error=Ye})})}catch(W){me.error=W}return me.promise=Promise.all(ie).then(function(W){return me.loading=!1,W}).catch(function(W){throw me.loading=!1,W}),me}function N(X){return X&&X.__esModule?X.default:X}function Oe(X,me){return Object(a.createElement)(N(X),me)}function ue(X,me){var ie=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:Oe,webpack:null,modules:null},me),W=null;function de(){if(!W){var Te=new re(X,ie);W={getCurrentValue:Te.getCurrentValue.bind(Te),subscribe:Te.subscribe.bind(Te),retry:Te.retry.bind(Te),promise:Te.promise.bind(Te)}}return W.promise()}if(typeof window=="undefined"&&A.push(de),!z&&typeof window!="undefined"&&typeof ie.webpack=="function"){var Ye=ie.webpack();L.push(function(Te){var Ve=M(Ye),tt;try{for(Ve.s();!(tt=Ve.n()).done;){var ht=tt.value;if(Te.indexOf(ht)!==-1)return de()}}catch(ge){Ve.e(ge)}finally{Ve.f()}})}var fe=function(Ve,tt){de();var ht=Object(a.useContext)(w),ge=Object(r.useSubscription)(W);return Object(a.useImperativeHandle)(tt,function(){return{retry:W.retry}}),ht&&Array.isArray(ie.modules)&&ie.modules.forEach(function(ye){ht(ye)}),ge.loading||ge.error?Object(a.createElement)(ie.loading,{isLoading:ge.loading,pastDelay:ge.pastDelay,timedOut:ge.timedOut,error:ge.error,retry:W.retry}):ge.loaded?ie.render(ge.loaded,Ve):null},rt=Object(a.forwardRef)(fe);return rt.preload=function(){return de()},rt.displayName="LoadableComponent",rt}var re=function(){function X(me,ie){d(this,X),this._loadFn=me,this._opts=ie,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return f(X,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var ie=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var W=this._res,de=this._opts;W.loading&&(typeof de.delay=="number"&&(de.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(function(){ie._update({pastDelay:!0})},de.delay)),typeof de.timeout=="number"&&(this._timeout=setTimeout(function(){ie._update({timedOut:!0})},de.timeout))),this._res.promise.then(function(){ie._update(),ie._clearTimeouts()}).catch(function(Ye){ie._update(),ie._clearTimeouts()}),this._update({})}},{key:"_update",value:function(ie){this._state=v(v({},this._state),ie),this._callbacks.forEach(function(W){return W()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return v(v({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(ie){var W=this;return this._callbacks.add(ie),function(){W._callbacks.delete(ie)}}}]),X}();function ee(X){return ue(G,X)}function J(X){if(typeof X.render!="function")throw new Error("LoadableMap requires a `render(loaded, props)` function");return ue(D,X)}ee.Map=J;function F(X,me){for(var ie=[];X.length;){var W=X.pop();ie.push(W(me))}return Promise.all(ie).then(function(){if(X.length)return F(X,me)})}ee.preloadAll=function(){return new Promise(function(X,me){F(A).then(X,me)})},ee.preloadReady=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(me){var ie=function(){return z=!0,me()};F(L,X).then(ie,ie)})},typeof window!="undefined"&&(window.__NEXT_PRELOADREADY=ee.preloadReady);function Q(X){var me=ee,ie={loading:function(de){var Ye=de.error,fe=de.isLoading;return Object(a.createElement)("p",null,"loading...")}};if(typeof X=="function")ie.loader=X;else if(m(X)==="object")ie=v(v({},ie),X);else throw new Error("Unexpect arguments ".concat(X));return me(ie)}function q(X,me){if(!X)throw new Error(me)}var He=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"},Ze;(function(X){X.compose="compose",X.modify="modify",X.event="event"})(Ze||(Ze={}));function ft(X){var me=X.fns,ie=X.args;if(me.length===1)return me[0];var W=me.pop();return me.reduce(function(de,Ye){return function(){return Ye(de,ie)}},W)}function $e(X){return!!X&&m(X)==="object"&&typeof X.then=="function"}var Ue=function(){function X(me){d(this,X),this.validKeys=void 0,this.hooks={},this.validKeys=(me==null?void 0:me.validKeys)||[]}return f(X,[{key:"register",value:function(ie){var W=this;q(!!ie.apply,"register failed, plugin.apply must supplied"),q(!!ie.path,"register failed, plugin.path must supplied"),Object.keys(ie.apply).forEach(function(de){q(W.validKeys.indexOf(de)>-1,"register failed, invalid key ".concat(de," from plugin ").concat(ie.path,".")),W.hooks[de]||(W.hooks[de]=[]),W.hooks[de]=W.hooks[de].concat(ie.apply[de])})}},{key:"getHooks",value:function(ie){var W=ie.split("."),de=h(W),Ye=de[0],fe=de.slice(1),rt=this.hooks[Ye]||[];return fe.length&&(rt=rt.map(function(Te){try{var Ve=Te,tt=M(fe),ht;try{for(tt.s();!(ht=tt.n()).done;){var ge=ht.value;Ve=Ve[ge]}}catch(ye){tt.e(ye)}finally{tt.f()}return Ve}catch(ye){return null}}).filter(Boolean)),rt}},{key:"applyPlugins",value:function(ie){var W=ie.key,de=ie.type,Ye=ie.initialValue,fe=ie.args,rt=ie.async,Te=this.getHooks(W)||[];fe&&q(m(fe)==="object","applyPlugins failed, args must be plain object.");switch(de){case Ze.modify:return rt?Te.reduce(function(){var Ve=s(regeneratorRuntime.mark(function tt(ht,ge){var ye;return regeneratorRuntime.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(q(typeof ge=="function"||m(ge)==="object"||$e(ge),"applyPlugins failed, all hooks for key ".concat(W," must be function, plain object or Promise.")),!$e(ht)){we.next=5;break}return we.next=4,ht;case 4:ht=we.sent;case 5:if(!(typeof ge=="function")){we.next=16;break}if(ye=ge(ht,fe),!$e(ye)){we.next=13;break}return we.next=10,ye;case 10:return we.abrupt("return",we.sent);case 13:return we.abrupt("return",ye);case 14:we.next=21;break;case 16:if(!$e(ge)){we.next=20;break}return we.next=19,ge;case 19:ge=we.sent;case 20:return we.abrupt("return",v(v({},ht),ge));case 21:case"end":return we.stop()}},tt)}));return function(tt,ht){return Ve.apply(this,arguments)}}(),$e(Ye)?Ye:Promise.resolve(Ye)):Te.reduce(function(Ve,tt){return q(typeof tt=="function"||m(tt)==="object","applyPlugins failed, all hooks for key ".concat(W," must be function or plain object.")),typeof tt=="function"?tt(Ve,fe):v(v({},Ve),tt)},Ye);case Ze.event:return Te.forEach(function(Ve){q(typeof Ve=="function","applyPlugins failed, all hooks for key ".concat(W," must be function.")),Ve(fe)});case Ze.compose:return function(){return ft({fns:Te.concat(Ye),args:fe})()}}}}]),X}()},LtxK:function(x,g,e){var a=e("I65O");a("iterator")},LuSS:function(x,g,e){"use strict";e.d(g,"a",function(){return t});var a=e("FER5"),n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},r=e("b3aT");function t(o){var h={r:0,g:0,b:0},c=1,b=null,E=null,O=null,C=!1,M=!1;return typeof o=="string"&&(o=l(o)),typeof o=="object"&&(f(o.r)&&f(o.g)&&f(o.b)?(h=Object(a.g)(o.r,o.g,o.b),C=!0,M=String(o.r).substr(-1)==="%"?"prgb":"rgb"):f(o.h)&&f(o.s)&&f(o.v)?(b=Object(r.c)(o.s),E=Object(r.c)(o.v),h=Object(a.c)(o.h,b,E),C=!0,M="hsv"):f(o.h)&&f(o.s)&&f(o.l)&&(b=Object(r.c)(o.s),O=Object(r.c)(o.l),h=Object(a.b)(o.h,b,O),C=!0,M="hsl"),Object.prototype.hasOwnProperty.call(o,"a")&&(c=o.a)),c=Object(r.b)(c),{ok:C,format:o.format||M,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:c}}var u="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",m="(?:"+v+")|(?:"+u+")",i="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?",s="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?",d={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+s),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 l(o){if(o=o.trim().toLowerCase(),o.length===0)return!1;var h=!1;if(n[o])o=n[o],h=!0;else if(o==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c=d.rgb.exec(o);return c?{r:c[1],g:c[2],b:c[3]}:(c=d.rgba.exec(o),c?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=d.hsl.exec(o),c?{h:c[1],s:c[2],l:c[3]}:(c=d.hsla.exec(o),c?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=d.hsv.exec(o),c?{h:c[1],s:c[2],v:c[3]}:(c=d.hsva.exec(o),c?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=d.hex8.exec(o),c?{r:Object(a.d)(c[1]),g:Object(a.d)(c[2]),b:Object(a.d)(c[3]),a:Object(a.a)(c[4]),format:h?"name":"hex8"}:(c=d.hex6.exec(o),c?{r:Object(a.d)(c[1]),g:Object(a.d)(c[2]),b:Object(a.d)(c[3]),format:h?"name":"hex"}:(c=d.hex4.exec(o),c?{r:Object(a.d)(c[1]+c[1]),g:Object(a.d)(c[2]+c[2]),b:Object(a.d)(c[3]+c[3]),a:Object(a.a)(c[4]+c[4]),format:h?"name":"hex8"}:(c=d.hex3.exec(o),c?{r:Object(a.d)(c[1]+c[1]),g:Object(a.d)(c[2]+c[2]),b:Object(a.d)(c[3]+c[3]),format:h?"name":"hex"}:!1)))))))))}function f(o){return Boolean(d.CSS_UNIT.exec(String(o)))}},M1bg:function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("blink")},{blink:function(){return n(this,"blink","","")}})},M3b6:function(x,g,e){var a=e("tSXo"),n=Math.floor;x.exports=function(t){return!a(t)&&isFinite(t)&&n(t)===t}},M5u2:function(x,g,e){var a=e("I65O");a("unscopables")},M8HR:function(x,g,e){"use strict";var a=e("MVys");function n(r,t){return RegExp(r,t)}g.UNSUPPORTED_Y=a(function(){var r=n("a","y");return r.lastIndex=2,r.exec("abcd")!=null}),g.BROKEN_CARET=a(function(){var r=n("^r","gy");return r.lastIndex=2,r.exec("str")!=null})},MIOZ:function(x,g){function e(a,n){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(a)))return;var r=[],t=!0,u=!1,v=void 0;try{for(var m=a[Symbol.iterator](),i;!(t=(i=m.next()).done)&&!(r.push(i.value),n&&r.length===n);t=!0);}catch(s){u=!0,v=s}finally{try{!t&&m.return!=null&&m.return()}finally{if(u)throw v}}return r}x.exports=e},MMxC:function(x,g,e){var a=e("ukPv"),n=e("g8rt").f,r=e("lz10"),t=e("NMFW"),u=e("TMUv"),v=e("LJ80"),m=e("kkxG");x.exports=function(i,s){var d=i.target,l=i.global,f=i.stat,o,h,c,b,E,O;if(l?h=a:f?h=a[d]||u(d,{}):h=(a[d]||{}).prototype,h)for(c in s){if(E=s[c],i.noTargetGet?(O=n(h,c),b=O&&O.value):b=h[c],o=m(l?c:d+(f?".":"#")+c,i.forced),!o&&b!==void 0){if(typeof E===typeof b)continue;v(E,b)}(i.sham||b&&b.sham)&&r(E,"sham",!0),t(h,c,E,i)}}},MNnm:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},MRpI:function(x,g,e){var a=e("MMxC"),n=e("V61k"),r=Math.exp;a({target:"Math",stat:!0},{tanh:function(u){var v=n(u=+u),m=n(-u);return v==Infinity?1:m==Infinity?-1:(v-m)/(r(u)+r(-u))}})},MVys:function(x,g){x.exports=function(e){try{return!!e()}catch(a){return!0}}},Mgx3:function(x,g,e){"use strict";e.d(g,"y",function(){return v}),e.d(g,"z",function(){return d}),e.d(g,"u",function(){return f}),e.d(g,"Q",function(){return h}),e.d(g,"B",function(){return b}),e.d(g,"D",function(){return O}),e.d(g,"E",function(){return M}),e.d(g,"w",function(){return A}),e.d(g,"I",function(){return z}),e.d(g,"U",function(){return D}),e.d(g,"p",function(){return Oe}),e.d(g,"o",function(){return re}),e.d(g,"n",function(){return He}),e.d(g,"k",function(){return ft}),e.d(g,"q",function(){return Ue}),e.d(g,"h",function(){return me}),e.d(g,"m",function(){return W}),e.d(g,"g",function(){return Ye}),e.d(g,"l",function(){return rt}),e.d(g,"G",function(){return Ve}),e.d(g,"O",function(){return ht}),e.d(g,"e",function(){return ye}),e.d(g,"b",function(){return we}),e.d(g,"i",function(){return Y}),e.d(g,"K",function(){return U}),e.d(g,"C",function(){return K}),e.d(g,"H",function(){return T}),e.d(g,"J",function(){return se}),e.d(g,"T",function(){return it}),e.d(g,"M",function(){return Et}),e.d(g,"N",function(){return Ht}),e.d(g,"f",function(){return tn}),e.d(g,"c",function(){return gn}),e.d(g,"R",function(){return Tn}),e.d(g,"a",function(){return En}),e.d(g,"d",function(){return vn}),e.d(g,"S",function(){return bt}),e.d(g,"t",function(){return Ft}),e.d(g,"r",function(){return Ct}),e.d(g,"A",function(){return Ne}),e.d(g,"x",function(){return dt}),e.d(g,"P",function(){return qe}),e.d(g,"s",function(){return Z}),e.d(g,"v",function(){return gt}),e.d(g,"L",function(){return xt}),e.d(g,"F",function(){return ln}),e.d(g,"j",function(){return Ln});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(Ke){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _e.keyword=_e.keyword!=="null"?_e.keyword:"",_.abrupt("return",Object(u.a)("/api/paths.json",{method:"Get",params:Object(a.a)({},_e)}));case 2:case"end":return _.stop()}},Ke)})),m.apply(this,arguments)}function i(Ke){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _e.keyword=_e.keyword!=="null"?_e.keyword:"",_.abrupt("return",Object(u.a)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:Object(a.a)({},_e)}));case 2:case"end":return _.stop()}},Ke)})),s.apply(this,arguments)}function d(Ke){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/disciplines.json",{method:"Get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),l.apply(this,arguments)}function f(Ke){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"PUT",body:_e}));case 1:case"end":return _.stop()}},Ke)})),o.apply(this,arguments)}function h(Ke){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),c.apply(this,arguments)}function b(Ke){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/edit.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),E.apply(this,arguments)}function O(Ke){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"get",params:Object(a.a)({identifier:_e.id},_e)}));case 1:case"end":return _.stop()}},Ke)})),C.apply(this,arguments)}function M(Ke){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/right_banner.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),w.apply(this,arguments)}function A(Ke){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),L.apply(this,arguments)}function z(Ke){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages.json",{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),G.apply(this,arguments)}function D(Ke){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/update_team_title.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),N.apply(this,arguments)}function Oe(Ke){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/delete_member.json"),{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ue.apply(this,arguments)}function re(Ke){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses/").concat(_e==null?void 0:_e.courseid,".json"),{method:"Delete"}));case 1:case"end":return _.stop()}},Ke)})),ee.apply(this,arguments)}function J(Ke){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/up_member_position.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),F.apply(this,arguments)}function Q(Ke){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/down_member_position.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),q.apply(this,arguments)}function He(Ke){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/collections.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Ze.apply(this,arguments)}function ft(Ke){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/collections/cancel.json",{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),$e.apply(this,arguments)}function Ue(Ke){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),X.apply(this,arguments)}function me(Ke){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/publish.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ie.apply(this,arguments)}function W(Ke){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/cancel_publish.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),de.apply(this,arguments)}function Ye(Ke){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/apply_public.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),fe.apply(this,arguments)}function rt(Ke){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/cancel_public.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Te.apply(this,arguments)}function Ve(Ke){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/choose_course.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),tt.apply(this,arguments)}function ht(Ke){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/send_to_course.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ge.apply(this,arguments)}function ye(Ke){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/add_subject_members.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),je.apply(this,arguments)}function we(Ke){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ce.apply(this,arguments)}function Y(Ke){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/appointment.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),V.apply(this,arguments)}function U(Ke){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.id,"/join_excellent_course.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),B.apply(this,arguments)}function Ae(Ke){return S.apply(this,arguments)}function S(){return S=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/statistics_info.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),S.apply(this,arguments)}function k(Ke){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/shixun_analyze.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),ae.apply(this,arguments)}function oe(Ke){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/learning_analyze.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),le.apply(this,arguments)}function K(Ke){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/learning_statistics.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),P.apply(this,arguments)}function T(Ke){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/shixun_statistics.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),$.apply(this,arguments)}function se(Ke){return ke.apply(this,arguments)}function ke(){return ke=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/study_analyze/").concat(_e.type,".json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),ke.apply(this,arguments)}function ve(Ke){return Be.apply(this,arguments)}function Be(){return Be=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/append_to_stage.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Be.apply(this,arguments)}function it(Ke){return We.apply(this,arguments)}function We(){return We=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,".json"),{method:"put",body:_e}));case 1:case"end":return _.stop()}},Ke)})),We.apply(this,arguments)}function Et(Ke){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_shixun_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Tt.apply(this,arguments)}function Ht(Ke){return It.apply(this,arguments)}function It(){return It=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/select_shixun_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),It.apply(this,arguments)}function tn(Ke){return qt.apply(this,arguments)}function qt(){return qt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_video_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),qt.apply(this,arguments)}function gn(Ke){return an.apply(this,arguments)}function an(){return an=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_attachment_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),an.apply(this,arguments)}function Tn(Ke){return on.apply(this,arguments)}function on(){return on=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stage_shixuns/".concat(_e.id,".json"),{method:"put",body:_e}));case 1:case"end":return _.stop()}},Ke)})),on.apply(this,arguments)}function En(Ke){return yn.apply(this,arguments)}function yn(){return yn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_blank_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),yn.apply(this,arguments)}function vn(Ke){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages.json?subject_id=".concat(_e.pathId),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Rn.apply(this,arguments)}function Pn(Ke){return St.apply(this,arguments)}function St(){return St=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/add_shixun_to_stage.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),St.apply(this,arguments)}function bt(Ke){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/up_position.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),Pt.apply(this,arguments)}function Ft(Ke){return De.apply(this,arguments)}function De(){return De=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/down_position.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),De.apply(this,arguments)}function Ct(Ke){return be.apply(this,arguments)}function be(){return be=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,".json"),{method:"delete"}));case 1:case"end":return _.stop()}},Ke)})),be.apply(this,arguments)}function Ne(Ke){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.pathId,"/discusses.json"),{method:"get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Fe.apply(this,arguments)}function dt(Ke){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.coursesId,"/excellent_discusses.json"),{method:"get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Pe.apply(this,arguments)}function Ce(Ke){return ct.apply(this,arguments)}function ct(){return ct=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/discusses.json",{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),ct.apply(this,arguments)}function qe(Ke){return Me.apply(this,arguments)}function Me(){return Me=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.stage_id,"/items/move_position"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Me.apply(this,arguments)}function Z(Ke){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.stage_id,"/items/").concat(_e.id),{method:"delete"}));case 1:case"end":return _.stop()}},Ke)})),Xe.apply(this,arguments)}function gt(Ke){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.id,"/excellent_discuss"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Mt.apply(this,arguments)}function xt(Ke){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/post_discuss"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Gt.apply(this,arguments)}function ln(Ke){return nn.apply(this,arguments)}function nn(){return nn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/schools/for_option.json",{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),nn.apply(this,arguments)}function Ln(Ke){return bn.apply(this,arguments)}function bn(){return bn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/add_school_applies.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),bn.apply(this,arguments)}},MgzW:function(x,g,e){"use strict";/* +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ye=!0,fe=!1,rt;return{s:function(){ie=ie.call(X)},n:function(){var Te=ie.next();return Ye=Te.done,Te},e:function(Te){fe=!0,rt=Te},f:function(){try{!Ye&&ie.return!=null&&ie.return()}finally{if(fe)throw rt}}}}var w=Object(a.createContext)(null),A=[],L=[],z=!1;function G(X){var me=X(),ie={loading:!0,loaded:null,error:null};return ie.promise=me.then(function(W){return ie.loading=!1,ie.loaded=W,W}).catch(function(W){throw ie.loading=!1,ie.error=W,W}),ie}function D(X){var me={loading:!1,loaded:{},error:null},ie=[];try{Object.keys(X).forEach(function(W){var de=G(X[W]);de.loading?me.loading=!0:(me.loaded[W]=de.loaded,me.error=de.error),ie.push(de.promise),de.promise.then(function(Ye){me.loaded[W]=Ye}).catch(function(Ye){me.error=Ye})})}catch(W){me.error=W}return me.promise=Promise.all(ie).then(function(W){return me.loading=!1,W}).catch(function(W){throw me.loading=!1,W}),me}function N(X){return X&&X.__esModule?X.default:X}function Oe(X,me){return Object(a.createElement)(N(X),me)}function ue(X,me){var ie=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:Oe,webpack:null,modules:null},me),W=null;function de(){if(!W){var Te=new re(X,ie);W={getCurrentValue:Te.getCurrentValue.bind(Te),subscribe:Te.subscribe.bind(Te),retry:Te.retry.bind(Te),promise:Te.promise.bind(Te)}}return W.promise()}if(typeof window=="undefined"&&A.push(de),!z&&typeof window!="undefined"&&typeof ie.webpack=="function"){var Ye=ie.webpack();L.push(function(Te){var Ve=M(Ye),tt;try{for(Ve.s();!(tt=Ve.n()).done;){var ht=tt.value;if(Te.indexOf(ht)!==-1)return de()}}catch(ge){Ve.e(ge)}finally{Ve.f()}})}var fe=function(Ve,tt){de();var ht=Object(a.useContext)(w),ge=Object(r.useSubscription)(W);return Object(a.useImperativeHandle)(tt,function(){return{retry:W.retry}}),ht&&Array.isArray(ie.modules)&&ie.modules.forEach(function(ye){ht(ye)}),ge.loading||ge.error?Object(a.createElement)(ie.loading,{isLoading:ge.loading,pastDelay:ge.pastDelay,timedOut:ge.timedOut,error:ge.error,retry:W.retry}):ge.loaded?ie.render(ge.loaded,Ve):null},rt=Object(a.forwardRef)(fe);return rt.preload=function(){return de()},rt.displayName="LoadableComponent",rt}var re=function(){function X(me,ie){d(this,X),this._loadFn=me,this._opts=ie,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return f(X,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var ie=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var W=this._res,de=this._opts;W.loading&&(typeof de.delay=="number"&&(de.delay===0?this._state.pastDelay=!0:this._delay=setTimeout(function(){ie._update({pastDelay:!0})},de.delay)),typeof de.timeout=="number"&&(this._timeout=setTimeout(function(){ie._update({timedOut:!0})},de.timeout))),this._res.promise.then(function(){ie._update(),ie._clearTimeouts()}).catch(function(Ye){ie._update(),ie._clearTimeouts()}),this._update({})}},{key:"_update",value:function(ie){this._state=v(v({},this._state),ie),this._callbacks.forEach(function(W){return W()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return v(v({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading})}},{key:"subscribe",value:function(ie){var W=this;return this._callbacks.add(ie),function(){W._callbacks.delete(ie)}}}]),X}();function ee(X){return ue(G,X)}function J(X){if(typeof X.render!="function")throw new Error("LoadableMap requires a `render(loaded, props)` function");return ue(D,X)}ee.Map=J;function F(X,me){for(var ie=[];X.length;){var W=X.pop();ie.push(W(me))}return Promise.all(ie).then(function(){if(X.length)return F(X,me)})}ee.preloadAll=function(){return new Promise(function(X,me){F(A).then(X,me)})},ee.preloadReady=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new Promise(function(me){var ie=function(){return z=!0,me()};F(L,X).then(ie,ie)})},typeof window!="undefined"&&(window.__NEXT_PRELOADREADY=ee.preloadReady);function Q(X){var me=ee,ie={loading:function(de){var Ye=de.error,fe=de.isLoading;return Object(a.createElement)("p",null,"loading...")}};if(typeof X=="function")ie.loader=X;else if(m(X)==="object")ie=v(v({},ie),X);else throw new Error("Unexpect arguments ".concat(X));return me(ie)}function q(X,me){if(!X)throw new Error(me)}var He=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"},Ze;(function(X){X.compose="compose",X.modify="modify",X.event="event"})(Ze||(Ze={}));function ft(X){var me=X.fns,ie=X.args;if(me.length===1)return me[0];var W=me.pop();return me.reduce(function(de,Ye){return function(){return Ye(de,ie)}},W)}function $e(X){return!!X&&m(X)==="object"&&typeof X.then=="function"}var Ue=function(){function X(me){d(this,X),this.validKeys=void 0,this.hooks={},this.validKeys=(me==null?void 0:me.validKeys)||[]}return f(X,[{key:"register",value:function(ie){var W=this;q(!!ie.apply,"register failed, plugin.apply must supplied"),q(!!ie.path,"register failed, plugin.path must supplied"),Object.keys(ie.apply).forEach(function(de){q(W.validKeys.indexOf(de)>-1,"register failed, invalid key ".concat(de," from plugin ").concat(ie.path,".")),W.hooks[de]||(W.hooks[de]=[]),W.hooks[de]=W.hooks[de].concat(ie.apply[de])})}},{key:"getHooks",value:function(ie){var W=ie.split("."),de=h(W),Ye=de[0],fe=de.slice(1),rt=this.hooks[Ye]||[];return fe.length&&(rt=rt.map(function(Te){try{var Ve=Te,tt=M(fe),ht;try{for(tt.s();!(ht=tt.n()).done;){var ge=ht.value;Ve=Ve[ge]}}catch(ye){tt.e(ye)}finally{tt.f()}return Ve}catch(ye){return null}}).filter(Boolean)),rt}},{key:"applyPlugins",value:function(ie){var W=ie.key,de=ie.type,Ye=ie.initialValue,fe=ie.args,rt=ie.async,Te=this.getHooks(W)||[];fe&&q(m(fe)==="object","applyPlugins failed, args must be plain object.");switch(de){case Ze.modify:return rt?Te.reduce(function(){var Ve=s(regeneratorRuntime.mark(function tt(ht,ge){var ye;return regeneratorRuntime.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(q(typeof ge=="function"||m(ge)==="object"||$e(ge),"applyPlugins failed, all hooks for key ".concat(W," must be function, plain object or Promise.")),!$e(ht)){we.next=5;break}return we.next=4,ht;case 4:ht=we.sent;case 5:if(!(typeof ge=="function")){we.next=16;break}if(ye=ge(ht,fe),!$e(ye)){we.next=13;break}return we.next=10,ye;case 10:return we.abrupt("return",we.sent);case 13:return we.abrupt("return",ye);case 14:we.next=21;break;case 16:if(!$e(ge)){we.next=20;break}return we.next=19,ge;case 19:ge=we.sent;case 20:return we.abrupt("return",v(v({},ht),ge));case 21:case"end":return we.stop()}},tt)}));return function(tt,ht){return Ve.apply(this,arguments)}}(),$e(Ye)?Ye:Promise.resolve(Ye)):Te.reduce(function(Ve,tt){return q(typeof tt=="function"||m(tt)==="object","applyPlugins failed, all hooks for key ".concat(W," must be function or plain object.")),typeof tt=="function"?tt(Ve,fe):v(v({},Ve),tt)},Ye);case Ze.event:return Te.forEach(function(Ve){q(typeof Ve=="function","applyPlugins failed, all hooks for key ".concat(W," must be function.")),Ve(fe)});case Ze.compose:return function(){return ft({fns:Te.concat(Ye),args:fe})()}}}}]),X}()},LtxK:function(x,g,e){var a=e("I65O");a("iterator")},LuSS:function(x,g,e){"use strict";e.d(g,"a",function(){return t});var a=e("FER5"),n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},r=e("b3aT");function t(o){var h={r:0,g:0,b:0},c=1,b=null,E=null,O=null,C=!1,M=!1;return typeof o=="string"&&(o=l(o)),typeof o=="object"&&(f(o.r)&&f(o.g)&&f(o.b)?(h=Object(a.g)(o.r,o.g,o.b),C=!0,M=String(o.r).substr(-1)==="%"?"prgb":"rgb"):f(o.h)&&f(o.s)&&f(o.v)?(b=Object(r.c)(o.s),E=Object(r.c)(o.v),h=Object(a.c)(o.h,b,E),C=!0,M="hsv"):f(o.h)&&f(o.s)&&f(o.l)&&(b=Object(r.c)(o.s),O=Object(r.c)(o.l),h=Object(a.b)(o.h,b,O),C=!0,M="hsl"),Object.prototype.hasOwnProperty.call(o,"a")&&(c=o.a)),c=Object(r.b)(c),{ok:C,format:o.format||M,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:c}}var u="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",m="(?:"+v+")|(?:"+u+")",i="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?",s="[\\s|\\(]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")[,|\\s]+("+m+")\\s*\\)?",d={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+s),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 l(o){if(o=o.trim().toLowerCase(),o.length===0)return!1;var h=!1;if(n[o])o=n[o],h=!0;else if(o==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c=d.rgb.exec(o);return c?{r:c[1],g:c[2],b:c[3]}:(c=d.rgba.exec(o),c?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=d.hsl.exec(o),c?{h:c[1],s:c[2],l:c[3]}:(c=d.hsla.exec(o),c?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=d.hsv.exec(o),c?{h:c[1],s:c[2],v:c[3]}:(c=d.hsva.exec(o),c?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=d.hex8.exec(o),c?{r:Object(a.d)(c[1]),g:Object(a.d)(c[2]),b:Object(a.d)(c[3]),a:Object(a.a)(c[4]),format:h?"name":"hex8"}:(c=d.hex6.exec(o),c?{r:Object(a.d)(c[1]),g:Object(a.d)(c[2]),b:Object(a.d)(c[3]),format:h?"name":"hex"}:(c=d.hex4.exec(o),c?{r:Object(a.d)(c[1]+c[1]),g:Object(a.d)(c[2]+c[2]),b:Object(a.d)(c[3]+c[3]),a:Object(a.a)(c[4]+c[4]),format:h?"name":"hex8"}:(c=d.hex3.exec(o),c?{r:Object(a.d)(c[1]+c[1]),g:Object(a.d)(c[2]+c[2]),b:Object(a.d)(c[3]+c[3]),format:h?"name":"hex"}:!1)))))))))}function f(o){return Boolean(d.CSS_UNIT.exec(String(o)))}},M1bg:function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("blink")},{blink:function(){return n(this,"blink","","")}})},M3b6:function(x,g,e){var a=e("tSXo"),n=Math.floor;x.exports=function(t){return!a(t)&&isFinite(t)&&n(t)===t}},M5u2:function(x,g,e){var a=e("I65O");a("unscopables")},M8HR:function(x,g,e){"use strict";var a=e("MVys");function n(r,t){return RegExp(r,t)}g.UNSUPPORTED_Y=a(function(){var r=n("a","y");return r.lastIndex=2,r.exec("abcd")!=null}),g.BROKEN_CARET=a(function(){var r=n("^r","gy");return r.lastIndex=2,r.exec("str")!=null})},MIOZ:function(x,g){function e(a,n){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(a)))return;var r=[],t=!0,u=!1,v=void 0;try{for(var m=a[Symbol.iterator](),i;!(t=(i=m.next()).done)&&!(r.push(i.value),n&&r.length===n);t=!0);}catch(s){u=!0,v=s}finally{try{!t&&m.return!=null&&m.return()}finally{if(u)throw v}}return r}x.exports=e},MMxC:function(x,g,e){var a=e("ukPv"),n=e("g8rt").f,r=e("lz10"),t=e("NMFW"),u=e("TMUv"),v=e("LJ80"),m=e("kkxG");x.exports=function(i,s){var d=i.target,l=i.global,f=i.stat,o,h,c,b,E,O;if(l?h=a:f?h=a[d]||u(d,{}):h=(a[d]||{}).prototype,h)for(c in s){if(E=s[c],i.noTargetGet?(O=n(h,c),b=O&&O.value):b=h[c],o=m(l?c:d+(f?".":"#")+c,i.forced),!o&&b!==void 0){if(typeof E===typeof b)continue;v(E,b)}(i.sham||b&&b.sham)&&r(E,"sham",!0),t(h,c,E,i)}}},MNnm:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},MRpI:function(x,g,e){var a=e("MMxC"),n=e("V61k"),r=Math.exp;a({target:"Math",stat:!0},{tanh:function(u){var v=n(u=+u),m=n(-u);return v==Infinity?1:m==Infinity?-1:(v-m)/(r(u)+r(-u))}})},MVys:function(x,g){x.exports=function(e){try{return!!e()}catch(a){return!0}}},Mgx3:function(x,g,e){"use strict";e.d(g,"y",function(){return v}),e.d(g,"z",function(){return d}),e.d(g,"u",function(){return f}),e.d(g,"Q",function(){return h}),e.d(g,"B",function(){return b}),e.d(g,"D",function(){return O}),e.d(g,"E",function(){return M}),e.d(g,"w",function(){return A}),e.d(g,"I",function(){return z}),e.d(g,"U",function(){return D}),e.d(g,"p",function(){return Oe}),e.d(g,"o",function(){return re}),e.d(g,"n",function(){return He}),e.d(g,"k",function(){return ft}),e.d(g,"q",function(){return Ue}),e.d(g,"h",function(){return me}),e.d(g,"m",function(){return W}),e.d(g,"g",function(){return Ye}),e.d(g,"l",function(){return rt}),e.d(g,"G",function(){return Ve}),e.d(g,"O",function(){return ht}),e.d(g,"e",function(){return ye}),e.d(g,"b",function(){return we}),e.d(g,"i",function(){return Y}),e.d(g,"K",function(){return U}),e.d(g,"C",function(){return K}),e.d(g,"H",function(){return T}),e.d(g,"J",function(){return se}),e.d(g,"T",function(){return it}),e.d(g,"M",function(){return Et}),e.d(g,"N",function(){return Ht}),e.d(g,"f",function(){return tn}),e.d(g,"c",function(){return gn}),e.d(g,"R",function(){return Tn}),e.d(g,"a",function(){return En}),e.d(g,"d",function(){return vn}),e.d(g,"S",function(){return bt}),e.d(g,"t",function(){return Ft}),e.d(g,"r",function(){return Ct}),e.d(g,"A",function(){return Fe}),e.d(g,"x",function(){return dt}),e.d(g,"P",function(){return qe}),e.d(g,"s",function(){return Z}),e.d(g,"v",function(){return gt}),e.d(g,"L",function(){return xt}),e.d(g,"F",function(){return ln}),e.d(g,"j",function(){return Ln});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(Ke){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _e.keyword=_e.keyword!=="null"?_e.keyword:"",_.abrupt("return",Object(u.a)("/api/paths.json",{method:"Get",params:Object(a.a)({},_e)}));case 2:case"end":return _.stop()}},Ke)})),m.apply(this,arguments)}function i(Ke){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _e.keyword=_e.keyword!=="null"?_e.keyword:"",_.abrupt("return",Object(u.a)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:Object(a.a)({},_e)}));case 2:case"end":return _.stop()}},Ke)})),s.apply(this,arguments)}function d(Ke){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/disciplines.json",{method:"Get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),l.apply(this,arguments)}function f(Ke){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"PUT",body:_e}));case 1:case"end":return _.stop()}},Ke)})),o.apply(this,arguments)}function h(Ke){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),c.apply(this,arguments)}function b(Ke){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/edit.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),E.apply(this,arguments)}function O(Ke){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"get",params:Object(a.a)({identifier:_e.id},_e)}));case 1:case"end":return _.stop()}},Ke)})),C.apply(this,arguments)}function M(Ke){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/right_banner.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),w.apply(this,arguments)}function A(Ke){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),L.apply(this,arguments)}function z(Ke){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages.json",{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),G.apply(this,arguments)}function D(Ke){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/update_team_title.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),N.apply(this,arguments)}function Oe(Ke){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/delete_member.json"),{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ue.apply(this,arguments)}function re(Ke){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses/").concat(_e==null?void 0:_e.courseid,".json"),{method:"Delete"}));case 1:case"end":return _.stop()}},Ke)})),ee.apply(this,arguments)}function J(Ke){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/up_member_position.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),F.apply(this,arguments)}function Q(Ke){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/down_member_position.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),q.apply(this,arguments)}function He(Ke){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/collections.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Ze.apply(this,arguments)}function ft(Ke){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/collections/cancel.json",{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),$e.apply(this,arguments)}function Ue(Ke){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,".json"),{method:"Delete",body:_e}));case 1:case"end":return _.stop()}},Ke)})),X.apply(this,arguments)}function me(Ke){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/publish.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ie.apply(this,arguments)}function W(Ke){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/cancel_publish.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),de.apply(this,arguments)}function Ye(Ke){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/apply_public.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),fe.apply(this,arguments)}function rt(Ke){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/cancel_public.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Te.apply(this,arguments)}function Ve(Ke){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/choose_course.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),tt.apply(this,arguments)}function ht(Ke){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/send_to_course.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ge.apply(this,arguments)}function ye(Ke){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/add_subject_members.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),je.apply(this,arguments)}function we(Ke){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/spoc_courses.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),ce.apply(this,arguments)}function Y(Ke){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/appointment.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),V.apply(this,arguments)}function U(Ke){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.id,"/join_excellent_course.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),B.apply(this,arguments)}function Ae(Ke){return S.apply(this,arguments)}function S(){return S=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/statistics_info.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),S.apply(this,arguments)}function k(Ke){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/shixun_analyze.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),ae.apply(this,arguments)}function oe(Ke){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/learning_analyze.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),le.apply(this,arguments)}function K(Ke){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/learning_statistics.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),P.apply(this,arguments)}function T(Ke){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/shixun_statistics.json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),$.apply(this,arguments)}function se(Ke){return ke.apply(this,arguments)}function ke(){return ke=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/study_analyze/").concat(_e.type,".json"),{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),ke.apply(this,arguments)}function ve(Ke){return Be.apply(this,arguments)}function Be(){return Be=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/append_to_stage.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Be.apply(this,arguments)}function it(Ke){return We.apply(this,arguments)}function We(){return We=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,".json"),{method:"put",body:_e}));case 1:case"end":return _.stop()}},Ke)})),We.apply(this,arguments)}function Et(Ke){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_shixun_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Tt.apply(this,arguments)}function Ht(Ke){return It.apply(this,arguments)}function It(){return It=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/select_shixun_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),It.apply(this,arguments)}function tn(Ke){return qt.apply(this,arguments)}function qt(){return qt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_video_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),qt.apply(this,arguments)}function gn(Ke){return an.apply(this,arguments)}function an(){return an=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_attachment_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),an.apply(this,arguments)}function Tn(Ke){return on.apply(this,arguments)}function on(){return on=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stage_shixuns/".concat(_e.id,".json"),{method:"put",body:_e}));case 1:case"end":return _.stop()}},Ke)})),on.apply(this,arguments)}function En(Ke){return yn.apply(this,arguments)}function yn(){return yn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/add_blank_to_stage.json"),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),yn.apply(this,arguments)}function vn(Ke){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages.json?subject_id=".concat(_e.pathId),{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),Rn.apply(this,arguments)}function Pn(Ke){return St.apply(this,arguments)}function St(){return St=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/add_shixun_to_stage.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),St.apply(this,arguments)}function bt(Ke){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/up_position.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),Pt.apply(this,arguments)}function Ft(Ke){return De.apply(this,arguments)}function De(){return De=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,"/down_position.json"),{method:"get"}));case 1:case"end":return _.stop()}},Ke)})),De.apply(this,arguments)}function Ct(Ke){return be.apply(this,arguments)}function be(){return be=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.id,".json"),{method:"delete"}));case 1:case"end":return _.stop()}},Ke)})),be.apply(this,arguments)}function Fe(Ke){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.pathId,"/discusses.json"),{method:"get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Ne.apply(this,arguments)}function dt(Ke){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.coursesId,"/excellent_discusses.json"),{method:"get",params:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Pe.apply(this,arguments)}function Ce(Ke){return ct.apply(this,arguments)}function ct(){return ct=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/discusses.json",{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),ct.apply(this,arguments)}function qe(Ke){return Me.apply(this,arguments)}function Me(){return Me=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.stage_id,"/items/move_position"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Me.apply(this,arguments)}function Z(Ke){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/stages/".concat(_e.stage_id,"/items/").concat(_e.id),{method:"delete"}));case 1:case"end":return _.stop()}},Ke)})),Xe.apply(this,arguments)}function gt(Ke){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/courses/".concat(_e.id,"/excellent_discuss"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Mt.apply(this,arguments)}function xt(Ke){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/paths/".concat(_e.id,"/post_discuss"),{method:"post",body:Object(a.a)({},_e)}));case 1:case"end":return _.stop()}},Ke)})),Gt.apply(this,arguments)}function ln(Ke){return nn.apply(this,arguments)}function nn(){return nn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/schools/for_option.json",{method:"get",params:_e}));case 1:case"end":return _.stop()}},Ke)})),nn.apply(this,arguments)}function Ln(Ke){return bn.apply(this,arguments)}function bn(){return bn=Object(n.a)(t.a.mark(function Ke(_e){return t.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.abrupt("return",Object(u.a)("/api/add_school_applies.json",{method:"post",body:_e}));case 1:case"end":return _.stop()}},Ke)})),bn.apply(this,arguments)}},MgzW:function(x,g,e){"use strict";/* object-assign (c) Sindre Sorhus @license MIT @@ -75,20 +75,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){"use strict";var r={}.hasOwnProperty;function t(){for(var u=[],v=0;v=0;k--){var ae=S[k][u];ae.modified||(Array.isArray(ae.base)?Q(ae)&&D(ae):F(ae)&&D(ae))}}function J(S){if(!S||typeof S!="object")return;var k=S[u];if(!k)return;var ae=k.base,oe=k.draft,le=k.assigned;if(!Array.isArray(S))Object.keys(oe).forEach(function($){ae[$]===void 0&&!h(ae,$)?(le[$]=!0,D(k)):le[$]||J(oe[$])}),Object.keys(ae).forEach(function($){oe[$]===void 0&&!h(oe,$)&&(le[$]=!1,D(k))});else if(Q(k)){if(D(k),le.length=!0,oe.length=0;le--){var K=oe[le],P=k[K];if(P===void 0&&!h(k,K))return!0;var T=ae[K],$=T&&T[u];if($?$.base!==P:!c(T,P))return!0}return oe.length!==Object.keys(k).length}function Q(S){var k=S.draft;if(k.length!==S.base.length)return!0;var ae=Object.getOwnPropertyDescriptor(k,k.length-1);return!!(ae&&!ae.get)}function q(S,k,ae){Object.defineProperty(S,k,{value:ae,enumerable:!1,writable:!0})}var He=Object.freeze({willFinalize:C,createProxy:M});function Ze(){}function ft(S,k){var ae=k?k.scope:b.current,oe={scope:ae,modified:!1,finalized:!1,assigned:{},parent:k,base:S,draft:null,drafts:{},copy:null,revoke:null},le=Array.isArray(S)?Proxy.revocable([oe],Ue):Proxy.revocable(oe,$e),K=le.revoke,P=le.proxy;return oe.draft=P,oe.revoke=K,ae.drafts.push(P),P}var $e={get:ie,has:function(k,ae){return ae in X(k)},ownKeys:function(k){return Reflect.ownKeys(X(k))},set:W,deleteProperty:de,getOwnPropertyDescriptor:Ye,defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(k){return Object.getPrototypeOf(k.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},Ue={};f($e,function(S,k){Ue[S]=function(){return arguments[0]=arguments[0][0],k.apply(this,arguments)}}),Ue.deleteProperty=function(S,k){if(isNaN(parseInt(k)))throw new Error("Immer only supports deleting array indices");return $e.deleteProperty.call(this,S[0],k)},Ue.set=function(S,k,ae){if(k!=="length"&&isNaN(parseInt(k)))throw new Error("Immer only supports setting array indices and the 'length' property");return $e.set.call(this,S[0],k,ae)};function X(S){return S.copy||S.base}function me(S,k){var ae=S[u],oe=Reflect.getOwnPropertyDescriptor(ae?X(ae):S,k);return oe&&oe.value}function ie(S,k){if(k===u)return S;var ae=S.drafts;if(!S.modified&&h(ae,k))return ae[k];var oe=X(S)[k];if(S.finalized||!m(oe))return oe;if(S.modified){if(oe!==me(S.base,k))return oe;ae=S.copy}return ae[k]=ft(oe,S)}function W(S,k,ae){if(!S.modified){var oe=me(S.base,k),le=ae?c(oe,ae)||ae===S.drafts[k]:c(oe,ae)&&k in S.base;if(le)return!0;fe(S)}return S.assigned[k]=!0,S.copy[k]=ae,!0}function de(S,k){return(me(S.base,k)!==void 0||k in S.base)&&(S.assigned[k]=!1,fe(S)),S.copy&&delete S.copy[k],!0}function Ye(S,k){var ae=X(S),oe=Reflect.getOwnPropertyDescriptor(ae,k);return oe&&(oe.writable=!0,oe.configurable=!Array.isArray(ae)||k!=="length"),oe}function fe(S){S.modified||(S.modified=!0,S.copy=s(l(S.base),S.drafts),S.drafts=null,S.parent&&fe(S.parent))}var rt=Object.freeze({willFinalize:Ze,createProxy:ft});function Te(S,k,ae,oe){Array.isArray(S.base)?Ve(S,k,ae,oe):tt(S,k,ae,oe)}function Ve(S,k,ae,oe){var le,K,P=S.base,T=S.copy,$=S.assigned;T.lengthke&&P[ve-1]===T[ve+se-1];)--ve;for(var Be=ke;Be=ve;--Tt){var Ht=k.concat([Tt]);ae[Et+Tt-ve]={op:"add",path:Ht,value:T[Tt]},We&&oe.push({op:"remove",path:Ht})}We||oe.push({op:"replace",path:k.concat(["length"]),value:P.length})}function tt(S,k,ae,oe){var le=S.base,K=S.copy;f(S.assigned,function(P,T){var $=le[P],se=K[P],ke=T?P in le?"replace":"add":"remove";if($===se&&ke==="replace")return;var ve=k.concat(P);ae.push(ke==="remove"?{op:ke,path:ve}:{op:ke,path:ve,value:se}),oe.push(ke==="add"?{op:"remove",path:ve}:ke==="remove"?{op:"add",path:ve,value:$}:{op:"replace",path:ve,value:$})})}function ht(S,k){for(var ae=0;ae0;)ve[Be]=arguments[Be+1];return le.produce(ke,function(it){return ae.call.apply(ae,[it,it].concat(ve))})}}{if(typeof ae!="function")throw new Error("The first or second argument to `produce` must be a function");if(oe!==void 0&&typeof oe!="function")throw new Error("The third argument to `produce` must be a function or undefined")}var P;if(m(k)){var T=b.enter(),$=this.createProxy(k),se=!0;try{P=ae.call($,$),se=!1}finally{se?T.revoke():T.leave()}return P instanceof Promise?P.then(function(ke){return T.usePatches(oe),le.processResult(ke,T)},function(ke){throw T.revoke(),ke}):(T.usePatches(oe),this.processResult(P,T))}else return P=ae(k),P===void 0?k:P!==r?P:void 0},je.prototype.createDraft=function(k){if(!m(k))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var ae=b.enter(),oe=this.createProxy(k);return oe[u].isManual=!0,ae.leave(),oe},je.prototype.finishDraft=function(k,ae){var oe=k&&k[u];if(!oe||!oe.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(oe.finalized)throw new Error("The given draft is already finalized");var le=oe.scope;return le.usePatches(ae),this.processResult(void 0,le)},je.prototype.setAutoFreeze=function(k){this.autoFreeze=k},je.prototype.setUseProxies=function(k){this.useProxies=k,s(this,k?rt:He)},je.prototype.applyPatches=function(k,ae){return v(k)?ht(k,ae):this.produce(k,function(oe){return ht(oe,ae)})},je.prototype.processResult=function(k,ae){var oe=ae.drafts[0],le=k!==void 0&&k!==oe;if(this.willFinalize(ae,k,le),le){if(oe[u].modified)throw ae.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");m(k)&&(k=this.finalize(k,null,ae)),ae.patches&&(ae.patches.push({op:"replace",path:[],value:k}),ae.inversePatches.push({op:"replace",path:[],value:oe[u].base}))}else k=this.finalize(oe,[],ae);return ae.revoke(),ae.patches&&ae.patchListener(ae.patches,ae.inversePatches),k!==r?k:void 0},je.prototype.finalize=function(k,ae,oe){var le=this,K=k[u];if(!K)return Object.isFrozen(k)?k:this.finalizeTree(k,null,oe);if(K.scope!==oe)return k;if(!K.modified)return K.base;if(!K.finalized){if(K.finalized=!0,this.finalizeTree(K.draft,ae,oe),this.onDelete)if(this.useProxies){var P=K.assigned;for(var T in P)P[T]||this.onDelete(K,T)}else{var $=K.base,se=K.copy;f($,function(ke){h(se,ke)||le.onDelete(K,ke)})}this.onCopy&&this.onCopy(K),this.autoFreeze&&oe.canAutoFreeze&&Object.freeze(K.copy),ae&&oe.patches&&Te(K,ae,oe.patches,oe.inversePatches)}return K.copy},je.prototype.finalizeTree=function(k,ae,oe){var le=this,K=k[u];K&&(this.useProxies||(K.copy=l(K.draft,!0)),k=K.copy);var P=!!ae&&!!oe.patches,T=function($,se,ke){if(se===ke)throw Error("Immer forbids circular references");var ve=!!K&&ke===k;if(v(se)){var Be=ve&&P&&!K.assigned[$]?ae.concat($):null;if(se=le.finalize(se,Be,oe),v(se)&&(oe.canAutoFreeze=!1),Array.isArray(ke)||o(ke,$)?ke[$]=se:Object.defineProperty(ke,$,{value:se}),ve&&se===K.base[$])return}else{if(ve&&c(se,K.base[$]))return;m(se)&&!Object.isFrozen(se)&&f(se,T)}ve&&le.onAssign&&le.onAssign(K,$,se)};return f(k,T),k};var we=new je,ce=we.produce,Y=we.setAutoFreeze.bind(we),V=we.setUseProxies.bind(we),U=we.applyPatches.bind(we),B=we.createDraft.bind(we),Ae=we.finishDraft.bind(we);g.default=ce}.call(this,e("Q2Ig"))},V0Bj:function(x,g,e){var a=e("I65O");a("observable")},V0Rq:function(x,g,e){"use strict";e.d(g,"x",function(){return v}),e.d(g,"w",function(){return i}),e.d(g,"Q",function(){return f}),e.d(g,"A",function(){return h}),e.d(g,"p",function(){return b}),e.d(g,"U",function(){return O}),e.d(g,"u",function(){return M}),e.d(g,"r",function(){return A}),e.d(g,"a",function(){return z}),e.d(g,"O",function(){return D}),e.d(g,"j",function(){return Oe}),e.d(g,"I",function(){return re}),e.d(g,"k",function(){return J}),e.d(g,"b",function(){return Q}),e.d(g,"m",function(){return He}),e.d(g,"n",function(){return ft}),e.d(g,"s",function(){return Ue}),e.d(g,"D",function(){return me}),e.d(g,"G",function(){return W}),e.d(g,"M",function(){return Ye}),e.d(g,"N",function(){return rt}),e.d(g,"P",function(){return Ve}),e.d(g,"i",function(){return ht}),e.d(g,"K",function(){return ye}),e.d(g,"eb",function(){return we}),e.d(g,"H",function(){return Y}),e.d(g,"o",function(){return U}),e.d(g,"z",function(){return Ae}),e.d(g,"y",function(){return S}),e.d(g,"db",function(){return k}),e.d(g,"ab",function(){return oe}),e.d(g,"bb",function(){return K}),e.d(g,"S",function(){return T}),e.d(g,"T",function(){return se}),e.d(g,"Y",function(){return ke}),e.d(g,"d",function(){return ve}),e.d(g,"W",function(){return Be}),e.d(g,"t",function(){return it}),e.d(g,"E",function(){return We}),e.d(g,"C",function(){return Et}),e.d(g,"F",function(){return Tt}),e.d(g,"J",function(){return Ht}),e.d(g,"v",function(){return It}),e.d(g,"c",function(){return tn}),e.d(g,"B",function(){return qt}),e.d(g,"R",function(){return gn}),e.d(g,"cb",function(){return an}),e.d(g,"g",function(){return Tn}),e.d(g,"f",function(){return on}),e.d(g,"L",function(){return En}),e.d(g,"q",function(){return yn}),e.d(g,"e",function(){return Rn}),e.d(g,"X",function(){return St}),e.d(g,"Z",function(){return Pt}),e.d(g,"l",function(){return De}),e.d(g,"h",function(){return be}),e.d(g,"V",function(){return Fe});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(Pe){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_lists.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),m.apply(this,arguments)}function i(Pe){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_identity_photos.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),s.apply(this,arguments)}function d(Pe){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/video_push_url.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),l.apply(this,arguments)}function f(Pe){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/query_identity_photo_state.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),o.apply(this,arguments)}function h(Pe){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_result.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),c.apply(this,arguments)}function b(Pe){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/question_banks/bank_list.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),E.apply(this,arguments)}function O(Pe){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/question_banks/save_banks.json",{method:"POST",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),C.apply(this,arguments)}function M(Pe){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/publish_modal.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),w.apply(this,arguments)}function A(Pe){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/common_header.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),L.apply(this,arguments)}function z(Pe){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),G.apply(this,arguments)}function D(Pe){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,".json"),{method:"put",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),N.apply(this,arguments)}function Oe(Pe){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,".json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ue.apply(this,arguments)}function re(Pe){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/tag_disciplines.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ee.apply(this,arguments)}function J(Pe){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function Pe(Ce){var ct;return t.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ct=Ce.id,delete Ce.id,Me.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(ct,".json"),{method:"put",body:Object(a.a)({},Ce)}));case 3:case"end":return Me.stop()}},Pe)})),F.apply(this,arguments)}function Q(Pe){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_questions.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),q.apply(this,arguments)}function He(Pe){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/up_down.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ze.apply(this,arguments)}function ft(Pe){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,".json"),{method:"delete"}));case 1:case"end":return qe.stop()}},Pe)})),$e.apply(this,arguments)}function Ue(Pe){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/end_modal.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),X.apply(this,arguments)}function me(Pe){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/publish_groups.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ie.apply(this,arguments)}function W(Pe){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,"/user_exercise_detail.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),de.apply(this,arguments)}function Ye(Pe){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),fe.apply(this,arguments)}function rt(Pe){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/batch_adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Te.apply(this,arguments)}function Ve(Pe){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),tt.apply(this,arguments)}function ht(Pe){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.id,"/delayed_time.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ge.apply(this,arguments)}function ye(Pe){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_setting.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),je.apply(this,arguments)}function we(Pe){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_setting.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ce.apply(this,arguments)}function Y(Pe){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,"/review_exercises_by_students.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),V.apply(this,arguments)}function U(Pe){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_lists.xlsx"),{method:"get",params:Object(a.a)(Object(a.a)({},Ce),{},{export:!0})}));case 1:case"end":return qe.stop()}},Pe)})),B.apply(this,arguments)}function Ae(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/user_exercise_detail.json"),{method:"get",params:Object(a.a)(Object(a.a)({},Pe),{},{login:null})})}function S(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/start.json"),{method:"get",params:Object(a.a)({},Pe)})}function k(Pe){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.questionId,"/exercise_answers.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),ae.apply(this,arguments)}function oe(Pe){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),le.apply(this,arguments)}function K(Pe){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/simulate_commit_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),P.apply(this,arguments)}function T(Pe){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/redo_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),$.apply(this,arguments)}function se(Pe){return Object(u.a)("/api/".concat(Pe.url),{method:"get",params:Object(a.a)({},Pe)})}function ke(Pe){return Object(u.a)("/api/problems/".concat(Pe.id,"/start.json"),{method:"get",params:Object(a.a)({},Pe)})}function ve(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/begin_commit.json"),{method:"get",params:Object(a.a)({},Pe)})}function Be(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/simulate_begin_commit.json"),{method:"get",params:Object(a.a)({},Pe)})}function it(Pe){return Object(u.a)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:Object(a.a)({},Pe)})}function We(Pe){return console.log("params:",Pe),Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},Pe)})}function Et(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/get_objective_scores.json"),{method:"get",params:Object(a.a)({},Pe)})}function Tt(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/redo_modal.json"),{method:"get",params:Object(a.a)({},Pe)})}function Ht(Pe){return Object(u.a)("/api/exercises/get_user_exercises.json",{method:"get",params:Pe})}function It(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/exercise_header.json"),{method:"get",params:Object(a.a)({},Pe)})}function tn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/allow_close_camera.json"),{method:"post",body:Object(a.a)({},Pe)})}function qt(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/get_exercise_user_info.json"),{method:"get",params:Object(a.a)({},Pe)})}function gn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/record_screen"),{method:"post",params:Object(a.a)({},Pe)})}function an(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/unbind_ip.json"),{method:"post",body:Object(a.a)({},Pe)})}function Tn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/check_ip.json"),{method:"get",params:Object(a.a)({},Pe)})}function on(Pe){return Object(u.a)("/api/exercises/".concat(Pe==null?void 0:Pe.id,"/check_user_exercise.json"),{method:"get",params:Object(a.a)({},Pe)})}function En(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/make_up_students.json"),{method:"get",params:Object(a.a)({},Pe)})}function yn(Pe){return vn.apply(this,arguments)}function vn(){return vn=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/code_review_detail.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),vn.apply(this,arguments)}function Rn(Pe){return Pn.apply(this,arguments)}function Pn(){return Pn=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.question_id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Pn.apply(this,arguments)}function St(Pe){return bt.apply(this,arguments)}function bt(){return bt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/examination_banks/".concat(Ce.categoryId,"/simulate_exercise.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),bt.apply(this,arguments)}function Pt(Pe){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/simulate_start_answer.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ft.apply(this,arguments)}function De(Pe){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_time.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ct.apply(this,arguments)}function be(Pe){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_screen_at.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ne.apply(this,arguments)}function Fe(Pe){return dt.apply(this,arguments)}function dt(){return dt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/attachments/set_ecs_attachment.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),dt.apply(this,arguments)}},V61k:function(x,g){var e=Math.expm1,a=Math.exp;x.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:a(r)-1}:e},V85Q:function(x,g,e){var a=e("FCfD"),n=/"/g;x.exports=function(r,t,u,v){var m=String(a(r)),i="<"+t;return u!==""&&(i+=" "+u+'="'+String(v).replace(n,""")+'"'),i+">"+m+""}},V93i:function(x,g,e){"use strict";x.exports=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(n){return"%".concat(n.charCodeAt(0).toString(16).toUpperCase())})}},VAJa:function(x,g,e){"use strict";var a=e("AM7I"),n=e("VF6F"),r=e("JxQ3"),t=a("%TypeError%"),u=a("%WeakMap%",!0),v=a("%Map%",!0),m=n("WeakMap.prototype.get",!0),i=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),l=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),o=function(E,O){for(var C=E,M;(M=C.next)!==null;C=M)if(M.key===O)return C.next=M.next,M.next=E.next,E.next=M,M},h=function(E,O){var C=o(E,O);return C&&C.value},c=function(E,O,C){var M=o(E,O);M?M.value=C:E.next={key:O,next:E.next,value:C}},b=function(E,O){return!!o(E,O)};x.exports=function(){var O,C,M,w={assert:function(A){if(!w.has(A))throw new t("Side channel does not contain "+r(A))},get:function(A){if(u&&A&&(typeof A=="object"||typeof A=="function")){if(O)return m(O,A)}else if(v){if(C)return d(C,A)}else if(M)return h(M,A)},has:function(A){if(u&&A&&(typeof A=="object"||typeof A=="function")){if(O)return s(O,A)}else if(v){if(C)return f(C,A)}else if(M)return b(M,A);return!1},set:function(A,L){u&&A&&(typeof A=="object"||typeof A=="function")?(O||(O=new u),i(O,A,L)):v?(C||(C=new v),l(C,A,L)):(M||(M={key:{},next:null}),c(M,A,L))}};return w}},VF6F:function(x,g,e){"use strict";var a=e("AM7I"),n=e("PrET"),r=n(a("String.prototype.indexOf"));x.exports=function(u,v){var m=a(u,!!v);return typeof m=="function"&&r(u,".prototype.")>-1?n(m):m}},VQRL:function(x,g,e){var a=e("I65O");a("replace")},VSU6:function(x,g,e){"use strict";var a=e("cTDu"),n=e("bIKR"),r=e("oa35");x.exports=function(u){for(var v=a(this),m=r(v.length),i=arguments.length,s=n(i>1?arguments[1]:void 0,m),d=i>2?arguments[2]:void 0,l=d===void 0?m:n(d,m);l>s;)v[s++]=u;return v}},VTBJ:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("rePB");function n(t,u){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);u&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),v.push.apply(v,m)}return v}function r(t){for(var u=1;u=0;--He){var Ze=this.tryEntries[He],ft=Ze.completion;if(Ze.tryLoc==="root")return q("end");if(Ze.tryLoc<=this.prev){var $e=t.call(Ze,"catchLoc"),Ue=t.call(Ze,"finallyLoc");if($e&&Ue){if(this.prev=0;--q){var He=this.tryEntries[q];if(He.tryLoc<=this.prev&&t.call(He,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===F)return this.complete(q.completion,q.afterLoc),ue(q),b}},catch:function(F){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===F){var He=q.completion;if(He.type==="throw"){var Ze=He.arg;ue(q)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(F,Q,q){return this.delegate={iterator:ee(F),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=u),b}},n}(x.exports);try{regeneratorRuntime=a}catch(n){Function("r","regeneratorRuntime = r")(a)}},VuYY:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tny8"),r=e("ssJt"),t=e("cT1L"),u=e("f1E4"),v=e("tSXo"),m=e("igoe"),i=e("YfKC").f,s=e("lz10"),d=e("ujhg"),l=e("qcmB"),f=e("IuhT"),o=e("dnEI"),h=e("2kyd"),c=e("1aI8"),b=h("observable"),E=c.get,O=c.set,C=function(D){return D==null?void 0:t(D)},M=function(D){var N=D.cleanup;if(N){D.cleanup=void 0;try{N()}catch(Oe){o(Oe)}}},w=function(D){return D.observer===void 0},A=function(D,N){if(!n){D.closed=!0;var Oe=N.subscriptionObserver;Oe&&(Oe.closed=!0)}N.observer=void 0},L=function(D,N){var Oe=O(this,{cleanup:void 0,observer:u(D),subscriptionObserver:void 0}),ue;n||(this.closed=!1);try{(ue=C(D.start))&&ue.call(D,this)}catch(F){o(F)}if(w(Oe))return;var re=Oe.subscriptionObserver=new z(this);try{var ee=N(re),J=ee;ee!=null&&(Oe.cleanup=typeof ee.unsubscribe=="function"?function(){J.unsubscribe()}:t(ee))}catch(F){re.error(F);return}w(Oe)&&M(Oe)};L.prototype=d({},{unsubscribe:function(){var N=E(this);w(N)||(A(this,N),M(N))}}),n&&i(L.prototype,"closed",{configurable:!0,get:function(){return w(E(this))}});var z=function(D){O(this,{subscription:D}),n||(this.closed=!1)};z.prototype=d({},{next:function(N){var Oe=E(E(this).subscription);if(!w(Oe)){var ue=Oe.observer;try{var re=C(ue.next);re&&re.call(ue,N)}catch(ee){o(ee)}}},error:function(N){var Oe=E(this).subscription,ue=E(Oe);if(!w(ue)){var re=ue.observer;A(Oe,ue);try{var ee=C(re.error);ee?ee.call(re,N):o(N)}catch(J){o(J)}M(ue)}},complete:function(){var N=E(this).subscription,Oe=E(N);if(!w(Oe)){var ue=Oe.observer;A(N,Oe);try{var re=C(ue.complete);re&&re.call(ue)}catch(ee){o(ee)}M(Oe)}}}),n&&i(z.prototype,"closed",{configurable:!0,get:function(){return w(E(E(this).subscription))}});var G=function(N){m(this,G,"Observable"),O(this,{subscriber:t(N)})};d(G.prototype,{subscribe:function(N){var Oe=arguments.length;return new L(typeof N=="function"?{next:N,error:Oe>1?arguments[1]:void 0,complete:Oe>2?arguments[2]:void 0}:v(N)?N:{},E(this).subscriber)}}),d(G,{from:function(N){var Oe=typeof this=="function"?this:G,ue=C(u(N)[b]);if(ue){var re=u(ue.call(N));return re.constructor===Oe?re:new Oe(function(J){return re.subscribe(J)})}var ee=l(N);return new Oe(function(J){f(ee,function(F){if(J.next(F),J.closed)return f.stop()},void 0,!1,!0),J.complete()})},of:function(){for(var N=typeof this=="function"?this:G,Oe=arguments.length,ue=new Array(Oe),re=0;re1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){b.call(c,h(O,E,f),O)},void 0,!0,!0),c}})},W8MJ:function(x,g){function e(n,r){for(var t=0;t0}).map(function(z,G){var D;return Object(a.a)(Object(a.a)({},z),{number:u[G+1],questions:z==null||((D=z.questions)===null||D===void 0)?void 0:D.map(function(N){return Object(a.a)(Object(a.a)({},N),{},{shixun:N.examination_bank_shixun_challenges})})})});return{exam:o,questionList:L}},m=e("6fQ5"),i={namespace:"paperlibrary",state:{paperData:void 0,disciplinesData:void 0,teachGroupData:void 0,courseOptions:[],actionTabs:{key:"",params:{}}},effects:{getDisciplines:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.k,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{disciplinesData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getCustomDisciplines:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.j,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{disciplinesData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getEditDisciplines:r.a.mark(function d(l,f){var o,h,c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return o=l.payload,h=f.call,c=f.put,M.next=4,h(t.k,o);case 4:return b=M.sent,E=b==null?void 0:b.disciplines,O=Object(m.a)(E),M.next=9,c({type:"save",payload:{courseOptions:O,disciplinesData:Object(a.a)({},b)}});case 9:return M.abrupt("return",b);case 10:case"end":return M.stop()}},d)}),getTeachGroupData:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.p,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{teachGroupData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getPaperData:r.a.mark(function d(l,f){var o,h,c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return o=l.payload,h=f.call,c=f.put,C.next=4,h(t.n,o);case 4:return b=C.sent,E=v(b),C.next=8,c({type:"save",payload:{paperData:E}});case 8:return C.abrupt("return",b);case 9:case"end":return C.stop()}},d)}),getPaperlibraryList:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.o,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setPublic:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.w,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),handleDelete:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.q,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),getCourseList:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.i,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),sendToClass:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.u,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),adjustPosition:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.a,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setScore:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.x,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),handleDeleteEditQuestion:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.r,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),batchSetScore:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.d,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),batchDelete:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.b,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),updatePaper:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.A,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setActionTabs:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,c({type:"save",payload:{actionTabs:Object(a.a)({},o)}});case 4:case"end":return E.stop()}},d)})},reducers:{save:function(l,f){return Object(a.a)(Object(a.a)({},l),f.payload)}},subscriptions:{setup:function(l){var f=l.dispatch,o=l.history;return o.listen(function(h){var c=h.pathname;c==="/"&&f({type:"query"})})}}},s=g.a=i},WRkp:function(x,g,e){"use strict";g.sha1=e("E+IA"),g.sha224=e("B/J0"),g.sha256=e("bu2F"),g.sha384=e("i5UE"),g.sha512=e("tSWc")},"WU/Z":function(x,g,e){"use strict";var a=e("FVwB"),n=e("zv1X").forEach,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("forEach",function(v){n(r(this),v,arguments.length>1?arguments[1]:void 0)})},WbBG:function(x,g,e){"use strict";var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";x.exports=a},WkPL:function(x,g){function e(a,n){(n==null||n>a.length)&&(n=a.length);for(var r=0,t=new Array(n);rke;)se.push(arguments[ke++]);return ve=T,!l(T)&&P===void 0||V(P)?void 0:(d(T)||(T=function(Be,it){if(typeof ve=="function"&&(it=ve.call(this,Be,it)),!V(it))return it}),se[1]=T,de.apply(null,se))}})}W[$e][Ue]||G(W[$e],Ue,W[$e].valueOf),Q(W,ft),ue[Ze]=!0},Xq8t:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),u={namespace:"forumsList",state:{forumsData:{},listParams:{page:1,order:"updated_at"}},effects:{getForumsData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=i.call,l=i.put,c.next=4,d(s.memoType==="shixun_discuss"?t.g:t.c,s);case 4:return f=c.sent,delete s.memoType,o=s,c.next=9,l({type:"save",payload:{listParams:o,forumsData:Object(a.a)({},f)}});case 9:return c.abrupt("return",f);case 10:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},Xq8v:function(x,g,e){"use strict";e.d(g,"a",function(){return v}),e.d(g,"d",function(){return i}),e.d(g,"b",function(){return d}),e.d(g,"c",function(){return f}),e.d(g,"e",function(){return h}),e.d(g,"f",function(){return b});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(O){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/public_with_course_and_project",{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),m.apply(this,arguments)}function i(O){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/mine_with_course_and_project.json",{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),s.apply(this,arguments)}function d(O){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/import.json",{method:"post",body:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),l.apply(this,arguments)}function f(O){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/".concat(C.id,".json"),{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),o.apply(this,arguments)}function h(O){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function O(C){var M;return t.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return M=C.id,delete C.id,A.abrupt("return",Object(u.a)("/api/files/".concat(M,".json"),{method:"put",body:Object(a.a)({},C)}));case 3:case"end":return A.stop()}},O)})),c.apply(this,arguments)}function b(O){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/".concat(C.id,"/update_visits.json"),{method:"post"}));case 1:case"end":return w.stop()}},O)})),E.apply(this,arguments)}},XuYy:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("jb+D"),u={namespace:"userDetail",state:{systemUpdate:void 0,homepageInfo:void 0,homeworkBanksDetail:{},actionTabs:{key:"",params:{}}},effects:{getHomeworkBanksDetail:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.l,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{homeworkBanksDetail:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getSystemUpdate:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.s,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{systemUpdate:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getHomepageInfo:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.k,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{homepageInfo:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),signed:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.B,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getCourses:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.i,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getShixuns:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.r,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getPaths:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.n,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getProjects:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.o,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getVideos:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.x,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getReviewVideos:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.q,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),deleteVideo:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.h,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getQuestionBanks:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.p,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicsSetPublic:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.F,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicsDelete:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.E,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicGetCourseList:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.C,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicSendToClass:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.D,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),logWatchHistory:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.y,s);case 4:return f=h.sent,h.abrupt("return",f==null?void 0:f.log_id);case 6:case"end":return h.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"Xxk+":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"WeakSet",stat:!0},{from:n})},Y3g6:function(x,g,e){var a=e("f1E4");x.exports=function(n,r,t,u){try{return u?r(a(t)[0],t[1]):r(t)}catch(m){var v=n.return;throw v!==void 0&&a(v.call(n)),m}}},Y9hK:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(n))return Array.from(n)}},YJ9l:function(x,g,e){"use strict";var a=e("5wUe"),n=e("bfL6"),r=e("R5yR"),t=e("V93i"),u=e("8jRI"),v=e("8yz6"),m=e("c0go"),i=function(w){return w==null};function s(M){switch(M.arrayFormat){case"index":return function(w){return function(A,L){var z=A.length;return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[[f(w,M),"[",z,"]"].join("")]):[].concat(r(A),[[f(w,M),"[",f(z,M),"]=",f(L,M)].join("")])}};case"bracket":return function(w){return function(A,L){return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[[f(w,M),"[]"].join("")]):[].concat(r(A),[[f(w,M),"[]=",f(L,M)].join("")])}};case"comma":case"separator":return function(w){return function(A,L){return L==null||L.length===0?A:A.length===0?[[f(w,M),"=",f(L,M)].join("")]:[[A,f(L,M)].join(M.arrayFormatSeparator)]}};default:return function(w){return function(A,L){return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[f(w,M)]):[].concat(r(A),[[f(w,M),"=",f(L,M)].join("")])}}}}function d(M){var w;switch(M.arrayFormat){case"index":return function(A,L,z){if(w=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!w){z[A]=L;return}z[A]===void 0&&(z[A]={}),z[A][w[1]]=L};case"bracket":return function(A,L,z){if(w=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!w){z[A]=L;return}if(z[A]===void 0){z[A]=[L];return}z[A]=[].concat(z[A],L)};case"comma":case"separator":return function(A,L,z){var G=typeof L=="string"&&L.includes(M.arrayFormatSeparator),D=typeof L=="string"&&!G&&o(L,M).includes(M.arrayFormatSeparator);L=D?o(L,M):L;var N=G||D?L.split(M.arrayFormatSeparator).map(function(Oe){return o(Oe,M)}):L===null?L:o(L,M);z[A]=N};default:return function(A,L,z){if(z[A]===void 0){z[A]=L;return}z[A]=[].concat(z[A],L)}}}function l(M){if(typeof M!="string"||M.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(M,w){return w.encode?w.strict?t(M):encodeURIComponent(M):M}function o(M,w){return w.decode?u(M):M}function h(M){return Array.isArray(M)?M.sort():typeof M=="object"?h(Object.keys(M)).sort(function(w,A){return Number(w)-Number(A)}).map(function(w){return M[w]}):M}function c(M){var w=M.indexOf("#");return w!==-1&&(M=M.slice(0,w)),M}function b(M){var w="",A=M.indexOf("#");return A!==-1&&(w=M.slice(A)),w}function E(M){M=c(M);var w=M.indexOf("?");return w===-1?"":M.slice(w+1)}function O(M,w){return w.parseNumbers&&!Number.isNaN(Number(M))&&typeof M=="string"&&M.trim()!==""?M=Number(M):w.parseBooleans&&M!==null&&(M.toLowerCase()==="true"||M.toLowerCase()==="false")&&(M=M.toLowerCase()==="true"),M}function C(M,w){w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w),l(w.arrayFormatSeparator);var A=d(w),L=Object.create(null);if(typeof M!="string")return L;if(M=M.trim().replace(/^[?#&]/,""),!M)return L;var z=n(M.split("&")),G;try{for(z.s();!(G=z.n()).done;){var D=G.value;if(D==="")continue;var N=v(w.decode?D.replace(/\+/g," "):D,"="),Oe=a(N,2),ue=Oe[0],re=Oe[1];re=re===void 0?null:["comma","separator"].includes(w.arrayFormat)?re:o(re,w),A(o(ue,w),re,L)}}catch(ft){z.e(ft)}finally{z.f()}for(var ee=0,J=Object.keys(L);ee0}).join("&")},g.parseUrl=function(M,w){w=Object.assign({decode:!0},w);var A=v(M,"#"),L=a(A,2),z=L[0],G=L[1];return Object.assign({url:z.split("?")[0]||"",query:C(E(M),w)},w&&w.parseFragmentIdentifier&&G?{fragmentIdentifier:o(G,w)}:{})},g.stringifyUrl=function(M,w){w=Object.assign({encode:!0,strict:!0},w);var A=c(M.url).split("?")[0]||"",L=g.extract(M.url),z=g.parse(L,{sort:!1}),G=Object.assign(z,M.query),D=g.stringify(G,w);D&&(D="?".concat(D));var N=b(M.url);return M.fragmentIdentifier&&(N="#".concat(f(M.fragmentIdentifier,w))),"".concat(A).concat(D).concat(N)},g.pick=function(M,w,A){A=Object.assign({parseFragmentIdentifier:!0},A);var L=g.parseUrl(M,A),z=L.url,G=L.query,D=L.fragmentIdentifier;return g.stringifyUrl({url:z,query:m(G,w),fragmentIdentifier:D},A)},g.exclude=function(M,w,A){var L=Array.isArray(w)?function(z){return!w.includes(z)}:function(z,G){return!w(z,G)};return g.pick(M,L,A)}},YJpY:function(x,g,e){"use strict";var a=e("MMxC"),n=e("hKmx"),r=e("cTDu"),t=e("oa35"),u=e("cT1L"),v=e("nMuc");a({target:"Array",proto:!0},{flatMap:function(i){var s=r(this),d=t(s.length),l;return u(i),l=v(s,0),l.length=n(l,s,s,d,0,1,i,arguments.length>1?arguments[1]:void 0),l}})},YMoz:function(x,g){x.exports=Math.scale||function(a,n,r,t,u){return arguments.length===0||a!=a||n!=n||r!=r||t!=t||u!=u?NaN:a===Infinity||a===-Infinity?a:(a-n)*(u-t)/(r-n)+t}},YON3:function(x,g,e){var a=e("tSXo"),n=e("UwrT"),r=e("2kyd"),t=r("match");x.exports=function(u){var v;return a(u)&&((v=u[t])!==void 0?!!v:n(u)=="RegExp")}},YS25:function(x,g,e){"use strict";e.d(g,"a",function(){return ee}),e.d(g,"b",function(){return ft}),e.d(g,"d",function(){return Ue}),e.d(g,"c",function(){return C}),e.d(g,"f",function(){return M}),e.d(g,"e",function(){return O});var a=e("wx14");function n(X){return X.charAt(0)==="/"}function r(X,me){for(var ie=me,W=ie+1,de=X.length;W=0;tt--){var ht=W[tt];ht==="."?r(W,tt):ht===".."?(r(W,tt),Ve++):Ve&&(r(W,tt),Ve--)}if(!fe)for(;Ve--;Ve)W.unshift("..");fe&&W[0]!==""&&(!W[0]||!n(W[0]))&&W.unshift("");var ge=W.join("/");return rt&&ge.substr(-1)!=="/"&&(ge+="/"),ge}var u=t;function v(X){return X.valueOf?X.valueOf():Object.prototype.valueOf.call(X)}function m(X,me){if(X===me)return!0;if(X==null||me==null)return!1;if(Array.isArray(X))return Array.isArray(me)&&X.length===me.length&&X.every(function(de,Ye){return m(de,me[Ye])});if(typeof X=="object"||typeof me=="object"){var ie=v(X),W=v(me);return ie!==X||W!==me?m(ie,W):Object.keys(Object.assign({},X,me)).every(function(de){return m(X[de],me[de])})}return!1}var i=m,s=e("YJ9l"),d=e.n(s),l=e("9R94");function f(X){return X.charAt(0)==="/"?X:"/"+X}function o(X){return X.charAt(0)==="/"?X.substr(1):X}function h(X,me){return X.toLowerCase().indexOf(me.toLowerCase())===0&&"/?#".indexOf(X.charAt(me.length))!==-1}function c(X,me){return h(X,me)?X.substr(me.length):X}function b(X){return X.charAt(X.length-1)==="/"?X.slice(0,-1):X}function E(X){var me=X||"/",ie="",W="",de=me.indexOf("#");de!==-1&&(W=me.substr(de),me=me.substr(0,de));var Ye=me.indexOf("?");return Ye!==-1&&(ie=me.substr(Ye),me=me.substr(0,Ye)),{pathname:me,search:ie==="?"?"":ie,hash:W==="#"?"":W}}function O(X){var me=X.pathname,ie=X.search,W=X.hash,de=me||"/";return ie&&ie!=="?"&&(de+=ie.charAt(0)==="?"?ie:"?"+ie),W&&W!=="#"&&(de+=W.charAt(0)==="#"?W:"#"+W),de}function C(X,me,ie,W){var de;typeof X=="string"?(de=E(X),de.query=de.search?d.a.parse(de.search):{},de.state=me):(de=Object(a.a)({},X),de.pathname===void 0&&(de.pathname=""),de.search?(de.search.charAt(0)!=="?"&&(de.search="?"+de.search),de.query=d.a.parse(de.search)):(de.search=de.query?d.a.stringify(de.query):"",de.query=de.query||{}),de.hash?de.hash.charAt(0)!=="#"&&(de.hash="#"+de.hash):de.hash="",me!==void 0&&de.state===void 0&&(de.state=me));try{de.pathname=decodeURI(de.pathname)}catch(Ye){throw Ye instanceof URIError?new URIError('Pathname "'+de.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Ye}return ie&&(de.key=ie),W?de.pathname?de.pathname.charAt(0)!=="/"&&(de.pathname=u(de.pathname,W.pathname)):de.pathname=W.pathname:de.pathname||(de.pathname="/"),de}function M(X,me){return X.pathname===me.pathname&&X.search===me.search&&X.hash===me.hash&&X.key===me.key&&i(X.state,me.state)}function w(){var X=null;function me(fe){return X=fe,function(){X===fe&&(X=null)}}function ie(fe,rt,Te,Ve){if(X!=null){var tt=typeof X=="function"?X(fe,rt):X;typeof tt=="string"?typeof Te=="function"?Te(tt,Ve):Ve(!0):Ve(tt!==!1)}else Ve(!0)}var W=[];function de(fe){var rt=!0;function Te(){rt&&fe.apply(void 0,arguments)}return W.push(Te),function(){rt=!1,W=W.filter(function(Ve){return Ve!==Te})}}function Ye(){for(var fe=arguments.length,rt=new Array(fe),Te=0;Te$?se.splice($,se.length-$,K):se.push(K),tt({action:le,location:K,index:$,entries:se})})}function ce(ae,oe){var le="REPLACE",K=C(ae,oe,ht(),k.location);Ve.confirmTransitionTo(K,le,ie,function(P){if(!P)return;k.entries[k.index]=K,tt({action:le,location:K})})}function Y(ae){var oe=$e(k.index+ae,0,k.entries.length-1),le="POP",K=k.entries[oe];Ve.confirmTransitionTo(K,le,ie,function(P){P?tt({action:le,location:K,index:oe}):tt()})}function V(){Y(-1)}function U(){Y(1)}function B(ae){var oe=k.index+ae;return oe>=0&&oe1||"".split(/.?/).length?O=function(C,M){var w=String(t(this)),A=M===void 0?o:M>>>0;if(A===0)return[];if(C===void 0)return[w];if(!n(C))return b.call(w,C,A);for(var L=[],z=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(C.sticky?"y":""),G=0,D=new RegExp(C.source,z+"g"),N,Oe,ue;(N=s.call(D,w))&&!(Oe=D.lastIndex,Oe>G&&(L.push(w.slice(G,N.index)),N.length>1&&N.index=A));)D.lastIndex===N.index&&D.lastIndex++;return G===w.length?(ue||!D.test(""))&&L.push(""):L.push(w.slice(G)),L.length>A?L.slice(0,A):L}:"0".split(void 0,0).length?O=function(C,M){return C===void 0&&M===0?[]:b.call(this,C,M)}:O=b,[function(M,w){var A=t(this),L=M==null?void 0:M[c];return L!==void 0?L.call(M,A,w):O.call(String(A),M,w)},function(C,M){var w=E(O,C,this,M,O!==b);if(w.done)return w.value;var A=r(C),L=String(this),z=u(A,RegExp),G=A.unicode,D=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(h?"y":"g"),N=new z(h?A:"^(?:"+A.source+")",D),Oe=M===void 0?o:M>>>0;if(Oe===0)return[];if(L.length===0)return i(N,L)===null?[L]:[];for(var ue=0,re=0,ee=[];re>8&255]},He=function(Te){return[Te&255,Te>>8&255,Te>>16&255,Te>>24&255]},Ze=function(Te){return Te[3]<<24|Te[2]<<16|Te[1]<<8|Te[0]},ft=function(Te){return J(Te,23,4)},$e=function(Te){return J(Te,52,8)},Ue=function(Te,Ve){c(Te[L],Ve,{get:function(){return C(this)[Ve]}})},X=function(Te,Ve,tt,ht){var ge=d(tt),ye=C(Te);if(ge+Ve>ye.byteLength)throw ee(G);var je=C(ye.buffer).bytes,we=ge+ye.byteOffset,ce=je.slice(we,we+Ve);return ht?ce:ce.reverse()},me=function(Te,Ve,tt,ht,ge,ye){var je=d(tt),we=C(Te);if(je+Ve>we.byteLength)throw ee(G);for(var ce=C(we.buffer).bytes,Y=je+we.byteOffset,V=ht(+ge),U=0;Uge)throw ee("Wrong offset");if(ht=ht===void 0?ge-ye:s(ht),ye+ht>ge)throw ee(z);M(this,{buffer:Ve,byteLength:ht,byteOffset:ye}),n||(this.buffer=Ve,this.byteLength=ht,this.byteOffset=ye)},n&&(Ue(N,"byteLength"),Ue(Oe,"buffer"),Ue(Oe,"byteLength"),Ue(Oe,"byteOffset")),u(Oe[L],{getInt8:function(Ve){return X(this,1,Ve)[0]<<24>>24},getUint8:function(Ve){return X(this,1,Ve)[0]},getInt16:function(Ve){var tt=X(this,2,Ve,arguments.length>1?arguments[1]:void 0);return(tt[1]<<8|tt[0])<<16>>16},getUint16:function(Ve){var tt=X(this,2,Ve,arguments.length>1?arguments[1]:void 0);return tt[1]<<8|tt[0]},getInt32:function(Ve){return Ze(X(this,4,Ve,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ve){return Ze(X(this,4,Ve,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ve){return F(X(this,4,Ve,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ve){return F(X(this,8,Ve,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ve,tt){me(this,1,Ve,Q,tt)},setUint8:function(Ve,tt){me(this,1,Ve,Q,tt)},setInt16:function(Ve,tt){me(this,2,Ve,q,tt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ve,tt){me(this,2,Ve,q,tt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ve,tt){me(this,4,Ve,He,tt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ve,tt){me(this,4,Ve,He,tt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ve,tt){me(this,4,Ve,ft,tt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ve,tt){me(this,8,Ve,$e,tt,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){D(1)})||!v(function(){new D(-1)})||v(function(){return new D,new D(1.5),new D(NaN),D.name!=w})){N=function(Ve){return m(this,N),new D(d(Ve))};for(var ie=N[L]=D[L],W=h(D),de=0,Ye;W.length>de;)(Ye=W[de++])in N||t(N,Ye,D[Ye]);ie.constructor=N}o&&f(ue)!==re&&o(ue,re);var fe=new Oe(new N(2)),rt=ue.setInt8;fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&u(ue,{setInt8:function(Ve,tt){rt.call(this,Ve,tt<<24>>24)},setUint8:function(Ve,tt){rt.call(this,Ve,tt<<24>>24)}},{unsafe:!0})}E(N,w),E(Oe,A),x.exports={ArrayBuffer:N,DataView:Oe}},ZW6p:function(x,g,e){"use strict";e.d(g,"d",function(){return h}),e.d(g,"a",function(){return c}),e.d(g,"c",function(){return b}),e.d(g,"b",function(){return E});var a=e("GNNt"),n=e("wEI+"),r=e("k1fw"),t=e("tJVT"),u=e("q1tI"),v=e.n(u),m=e("+qE3"),i=e.n(m),s=e("wd/R"),d=e.n(s),l=e("XDpg"),f=e.n(l),o=e("Fghh"),h=new i.a;h.setMaxListeners(5);var c=Symbol("LANG_CHANGE");function b(){var O=Object(o.d)();if(d.a!==null&&d.a!==void 0&&d.a.locale){var C;d.a.locale(((C=o.e[O])===null||C===void 0?void 0:C.momentLocale)||"zh-cn")}Object(o.f)(O)}var E=function(C){var M,w=v.a.useState(function(){return Object(o.d)()}),A=Object(t.a)(w,2),L=A[0],z=A[1],G=v.a.useState(function(){return Object(o.c)(L,!0)}),D=Object(t.a)(G,2),N=D[0],Oe=D[1],ue=function(F){if(d.a!==null&&d.a!==void 0&&d.a.locale){var Q;d.a.locale(((Q=o.e[F])===null||Q===void 0?void 0:Q.momentLocale)||"en")}z(F),Oe(Object(o.c)(F))};v.a.useLayoutEffect(function(){return h.on(c,ue),function(){h.off(c,ue)}},[]);var re=Object(r.a)({},e("+Gva").default),ee=Object(o.b)();return v.a.createElement(n.b,{direction:ee,locale:((M=o.e[L])===null||M===void 0?void 0:M.antd)||re},v.a.createElement(o.a,{value:N},C.children))}},ZahQ:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tny8"),r=e("i7kj"),t=e("cTDu"),u=e("cT1L"),v=e("YfKC");n&&a({target:"Object",proto:!0,forced:r},{__defineGetter__:function(i,s){v.f(t(this),i,{get:u(s),enumerable:!0,configurable:!0})}})},Zcjx:function(x,g){x.exports=!1},Ze4s:function(x,g,e){var a=e("ukPv"),n=e("mTKU").trim,r=e("Tfd0"),t=a.parseInt,u=/^[+-]?0[Xx]/,v=t(r+"08")!==8||t(r+"0x16")!==22;x.exports=v?function(i,s){var d=n(String(i));return t(d,s>>>0||(u.test(d)?16:10))}:t},ZhPi:function(x,g,e){var a=e("WkPL");function n(r,t){if(!r)return;if(typeof r=="string")return a(r,t);var u=Object.prototype.toString.call(r).slice(8,-1);if(u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set")return Array.from(r);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},ZkJ9:function(x,g,e){var a=e("ukPv"),n=e("J3Yn"),r=a.WeakMap;x.exports=typeof r=="function"&&/native code/.test(n(r))},Zkxe:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("WCUW"),u=e("6fQ5"),v={namespace:"problemsetPreview",state:{disciplinesData:void 0,courseOptions:[],paperData:void 0,actionTabs:{key:"",params:{}}},effects:{getPaperData:r.a.mark(function m(i,s){var d,l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=s.call,f=s.put,b.next=4,l(t.z,d);case 4:return o=b.sent,h=Object(u.b)(o),b.next=8,f({type:"save",payload:{paperData:h}});case 8:return b.abrupt("return",o);case 9:case"end":return b.stop()}},m)}),getEditDisciplines:r.a.mark(function m(i,s){var d,l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(t.v,d);case 4:return o=E.sent,h=o==null?void 0:o.disciplines,c=Object(u.a)(h),E.next=9,f({type:"save",payload:{courseOptions:c,disciplinesData:Object(a.a)({},o)}});case 9:return E.abrupt("return",o);case 10:case"end":return E.stop()}},m)}),setScore:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.S,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),handleDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.F,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),batchSetScore:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.k,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),batchDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.e,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),adjustPosition:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.c,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),newPreviewProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.J,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setActionTabs:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(a.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(a.a)(Object(a.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},Zm9Q:function(x,g,e){"use strict";e.d(g,"a",function(){return u});var a=e("q1tI"),n=e.n(a),r=e("TOwV"),t=e.n(r);function u(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[];return n.a.Children.forEach(v,function(s){if(s==null&&!m.keepEmpty)return;Array.isArray(s)?i=i.concat(u(s)):Object(r.isFragment)(s)&&s.props?i=i.concat(u(s.props.children,m)):i.push(s)}),i}},ZqBY:function(x,g,e){"use strict";(function(a){e.d(g,"a",function(){return S});var n=e("Qyje"),r=e.n(n),t=e("LpSC"),u=e.n(t);function v(le,K){var P=Object.keys(le);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(le);K&&(T=T.filter(function($){return Object.getOwnPropertyDescriptor(le,$).enumerable})),P.push.apply(P,T)}return P}function m(le){for(var K=1;Kle.length)&&(K=le.length);for(var P=0,T=new Array(K);P=0;k--){var ae=S[k][u];ae.modified||(Array.isArray(ae.base)?Q(ae)&&D(ae):F(ae)&&D(ae))}}function J(S){if(!S||typeof S!="object")return;var k=S[u];if(!k)return;var ae=k.base,oe=k.draft,le=k.assigned;if(!Array.isArray(S))Object.keys(oe).forEach(function($){ae[$]===void 0&&!h(ae,$)?(le[$]=!0,D(k)):le[$]||J(oe[$])}),Object.keys(ae).forEach(function($){oe[$]===void 0&&!h(oe,$)&&(le[$]=!1,D(k))});else if(Q(k)){if(D(k),le.length=!0,oe.length=0;le--){var K=oe[le],P=k[K];if(P===void 0&&!h(k,K))return!0;var T=ae[K],$=T&&T[u];if($?$.base!==P:!c(T,P))return!0}return oe.length!==Object.keys(k).length}function Q(S){var k=S.draft;if(k.length!==S.base.length)return!0;var ae=Object.getOwnPropertyDescriptor(k,k.length-1);return!!(ae&&!ae.get)}function q(S,k,ae){Object.defineProperty(S,k,{value:ae,enumerable:!1,writable:!0})}var He=Object.freeze({willFinalize:C,createProxy:M});function Ze(){}function ft(S,k){var ae=k?k.scope:b.current,oe={scope:ae,modified:!1,finalized:!1,assigned:{},parent:k,base:S,draft:null,drafts:{},copy:null,revoke:null},le=Array.isArray(S)?Proxy.revocable([oe],Ue):Proxy.revocable(oe,$e),K=le.revoke,P=le.proxy;return oe.draft=P,oe.revoke=K,ae.drafts.push(P),P}var $e={get:ie,has:function(k,ae){return ae in X(k)},ownKeys:function(k){return Reflect.ownKeys(X(k))},set:W,deleteProperty:de,getOwnPropertyDescriptor:Ye,defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(k){return Object.getPrototypeOf(k.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},Ue={};f($e,function(S,k){Ue[S]=function(){return arguments[0]=arguments[0][0],k.apply(this,arguments)}}),Ue.deleteProperty=function(S,k){if(isNaN(parseInt(k)))throw new Error("Immer only supports deleting array indices");return $e.deleteProperty.call(this,S[0],k)},Ue.set=function(S,k,ae){if(k!=="length"&&isNaN(parseInt(k)))throw new Error("Immer only supports setting array indices and the 'length' property");return $e.set.call(this,S[0],k,ae)};function X(S){return S.copy||S.base}function me(S,k){var ae=S[u],oe=Reflect.getOwnPropertyDescriptor(ae?X(ae):S,k);return oe&&oe.value}function ie(S,k){if(k===u)return S;var ae=S.drafts;if(!S.modified&&h(ae,k))return ae[k];var oe=X(S)[k];if(S.finalized||!m(oe))return oe;if(S.modified){if(oe!==me(S.base,k))return oe;ae=S.copy}return ae[k]=ft(oe,S)}function W(S,k,ae){if(!S.modified){var oe=me(S.base,k),le=ae?c(oe,ae)||ae===S.drafts[k]:c(oe,ae)&&k in S.base;if(le)return!0;fe(S)}return S.assigned[k]=!0,S.copy[k]=ae,!0}function de(S,k){return(me(S.base,k)!==void 0||k in S.base)&&(S.assigned[k]=!1,fe(S)),S.copy&&delete S.copy[k],!0}function Ye(S,k){var ae=X(S),oe=Reflect.getOwnPropertyDescriptor(ae,k);return oe&&(oe.writable=!0,oe.configurable=!Array.isArray(ae)||k!=="length"),oe}function fe(S){S.modified||(S.modified=!0,S.copy=s(l(S.base),S.drafts),S.drafts=null,S.parent&&fe(S.parent))}var rt=Object.freeze({willFinalize:Ze,createProxy:ft});function Te(S,k,ae,oe){Array.isArray(S.base)?Ve(S,k,ae,oe):tt(S,k,ae,oe)}function Ve(S,k,ae,oe){var le,K,P=S.base,T=S.copy,$=S.assigned;T.lengthke&&P[ve-1]===T[ve+se-1];)--ve;for(var Be=ke;Be=ve;--Tt){var Ht=k.concat([Tt]);ae[Et+Tt-ve]={op:"add",path:Ht,value:T[Tt]},We&&oe.push({op:"remove",path:Ht})}We||oe.push({op:"replace",path:k.concat(["length"]),value:P.length})}function tt(S,k,ae,oe){var le=S.base,K=S.copy;f(S.assigned,function(P,T){var $=le[P],se=K[P],ke=T?P in le?"replace":"add":"remove";if($===se&&ke==="replace")return;var ve=k.concat(P);ae.push(ke==="remove"?{op:ke,path:ve}:{op:ke,path:ve,value:se}),oe.push(ke==="add"?{op:"remove",path:ve}:ke==="remove"?{op:"add",path:ve,value:$}:{op:"replace",path:ve,value:$})})}function ht(S,k){for(var ae=0;ae0;)ve[Be]=arguments[Be+1];return le.produce(ke,function(it){return ae.call.apply(ae,[it,it].concat(ve))})}}{if(typeof ae!="function")throw new Error("The first or second argument to `produce` must be a function");if(oe!==void 0&&typeof oe!="function")throw new Error("The third argument to `produce` must be a function or undefined")}var P;if(m(k)){var T=b.enter(),$=this.createProxy(k),se=!0;try{P=ae.call($,$),se=!1}finally{se?T.revoke():T.leave()}return P instanceof Promise?P.then(function(ke){return T.usePatches(oe),le.processResult(ke,T)},function(ke){throw T.revoke(),ke}):(T.usePatches(oe),this.processResult(P,T))}else return P=ae(k),P===void 0?k:P!==r?P:void 0},je.prototype.createDraft=function(k){if(!m(k))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var ae=b.enter(),oe=this.createProxy(k);return oe[u].isManual=!0,ae.leave(),oe},je.prototype.finishDraft=function(k,ae){var oe=k&&k[u];if(!oe||!oe.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(oe.finalized)throw new Error("The given draft is already finalized");var le=oe.scope;return le.usePatches(ae),this.processResult(void 0,le)},je.prototype.setAutoFreeze=function(k){this.autoFreeze=k},je.prototype.setUseProxies=function(k){this.useProxies=k,s(this,k?rt:He)},je.prototype.applyPatches=function(k,ae){return v(k)?ht(k,ae):this.produce(k,function(oe){return ht(oe,ae)})},je.prototype.processResult=function(k,ae){var oe=ae.drafts[0],le=k!==void 0&&k!==oe;if(this.willFinalize(ae,k,le),le){if(oe[u].modified)throw ae.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");m(k)&&(k=this.finalize(k,null,ae)),ae.patches&&(ae.patches.push({op:"replace",path:[],value:k}),ae.inversePatches.push({op:"replace",path:[],value:oe[u].base}))}else k=this.finalize(oe,[],ae);return ae.revoke(),ae.patches&&ae.patchListener(ae.patches,ae.inversePatches),k!==r?k:void 0},je.prototype.finalize=function(k,ae,oe){var le=this,K=k[u];if(!K)return Object.isFrozen(k)?k:this.finalizeTree(k,null,oe);if(K.scope!==oe)return k;if(!K.modified)return K.base;if(!K.finalized){if(K.finalized=!0,this.finalizeTree(K.draft,ae,oe),this.onDelete)if(this.useProxies){var P=K.assigned;for(var T in P)P[T]||this.onDelete(K,T)}else{var $=K.base,se=K.copy;f($,function(ke){h(se,ke)||le.onDelete(K,ke)})}this.onCopy&&this.onCopy(K),this.autoFreeze&&oe.canAutoFreeze&&Object.freeze(K.copy),ae&&oe.patches&&Te(K,ae,oe.patches,oe.inversePatches)}return K.copy},je.prototype.finalizeTree=function(k,ae,oe){var le=this,K=k[u];K&&(this.useProxies||(K.copy=l(K.draft,!0)),k=K.copy);var P=!!ae&&!!oe.patches,T=function($,se,ke){if(se===ke)throw Error("Immer forbids circular references");var ve=!!K&&ke===k;if(v(se)){var Be=ve&&P&&!K.assigned[$]?ae.concat($):null;if(se=le.finalize(se,Be,oe),v(se)&&(oe.canAutoFreeze=!1),Array.isArray(ke)||o(ke,$)?ke[$]=se:Object.defineProperty(ke,$,{value:se}),ve&&se===K.base[$])return}else{if(ve&&c(se,K.base[$]))return;m(se)&&!Object.isFrozen(se)&&f(se,T)}ve&&le.onAssign&&le.onAssign(K,$,se)};return f(k,T),k};var we=new je,ce=we.produce,Y=we.setAutoFreeze.bind(we),V=we.setUseProxies.bind(we),U=we.applyPatches.bind(we),B=we.createDraft.bind(we),Ae=we.finishDraft.bind(we);g.default=ce}.call(this,e("Q2Ig"))},V0Bj:function(x,g,e){var a=e("I65O");a("observable")},V0Rq:function(x,g,e){"use strict";e.d(g,"x",function(){return v}),e.d(g,"w",function(){return i}),e.d(g,"Q",function(){return f}),e.d(g,"A",function(){return h}),e.d(g,"p",function(){return b}),e.d(g,"U",function(){return O}),e.d(g,"u",function(){return M}),e.d(g,"r",function(){return A}),e.d(g,"a",function(){return z}),e.d(g,"O",function(){return D}),e.d(g,"j",function(){return Oe}),e.d(g,"I",function(){return re}),e.d(g,"k",function(){return J}),e.d(g,"b",function(){return Q}),e.d(g,"m",function(){return He}),e.d(g,"n",function(){return ft}),e.d(g,"s",function(){return Ue}),e.d(g,"D",function(){return me}),e.d(g,"G",function(){return W}),e.d(g,"M",function(){return Ye}),e.d(g,"N",function(){return rt}),e.d(g,"P",function(){return Ve}),e.d(g,"i",function(){return ht}),e.d(g,"K",function(){return ye}),e.d(g,"eb",function(){return we}),e.d(g,"H",function(){return Y}),e.d(g,"o",function(){return U}),e.d(g,"z",function(){return Ae}),e.d(g,"y",function(){return S}),e.d(g,"db",function(){return k}),e.d(g,"ab",function(){return oe}),e.d(g,"bb",function(){return K}),e.d(g,"S",function(){return T}),e.d(g,"T",function(){return se}),e.d(g,"Y",function(){return ke}),e.d(g,"d",function(){return ve}),e.d(g,"W",function(){return Be}),e.d(g,"t",function(){return it}),e.d(g,"E",function(){return We}),e.d(g,"C",function(){return Et}),e.d(g,"F",function(){return Tt}),e.d(g,"J",function(){return Ht}),e.d(g,"v",function(){return It}),e.d(g,"c",function(){return tn}),e.d(g,"B",function(){return qt}),e.d(g,"R",function(){return gn}),e.d(g,"cb",function(){return an}),e.d(g,"g",function(){return Tn}),e.d(g,"f",function(){return on}),e.d(g,"L",function(){return En}),e.d(g,"q",function(){return yn}),e.d(g,"e",function(){return Rn}),e.d(g,"X",function(){return St}),e.d(g,"Z",function(){return Pt}),e.d(g,"l",function(){return De}),e.d(g,"h",function(){return be}),e.d(g,"V",function(){return Ne});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(Pe){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_lists.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),m.apply(this,arguments)}function i(Pe){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_identity_photos.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),s.apply(this,arguments)}function d(Pe){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/video_push_url.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),l.apply(this,arguments)}function f(Pe){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/query_identity_photo_state.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),o.apply(this,arguments)}function h(Pe){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_result.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),c.apply(this,arguments)}function b(Pe){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/question_banks/bank_list.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),E.apply(this,arguments)}function O(Pe){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/question_banks/save_banks.json",{method:"POST",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),C.apply(this,arguments)}function M(Pe){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/publish_modal.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),w.apply(this,arguments)}function A(Pe){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/common_header.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),L.apply(this,arguments)}function z(Pe){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),G.apply(this,arguments)}function D(Pe){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,".json"),{method:"put",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),N.apply(this,arguments)}function Oe(Pe){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,".json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ue.apply(this,arguments)}function re(Pe){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/tag_disciplines.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ee.apply(this,arguments)}function J(Pe){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function Pe(Ce){var ct;return t.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ct=Ce.id,delete Ce.id,Me.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(ct,".json"),{method:"put",body:Object(a.a)({},Ce)}));case 3:case"end":return Me.stop()}},Pe)})),F.apply(this,arguments)}function Q(Pe){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_questions.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),q.apply(this,arguments)}function He(Pe){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/up_down.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ze.apply(this,arguments)}function ft(Pe){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,".json"),{method:"delete"}));case 1:case"end":return qe.stop()}},Pe)})),$e.apply(this,arguments)}function Ue(Pe){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/end_modal.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),X.apply(this,arguments)}function me(Pe){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/publish_groups.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ie.apply(this,arguments)}function W(Pe){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,"/user_exercise_detail.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),de.apply(this,arguments)}function Ye(Pe){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),fe.apply(this,arguments)}function rt(Pe){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.id,"/batch_adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Te.apply(this,arguments)}function Ve(Pe){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),tt.apply(this,arguments)}function ht(Pe){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.id,"/delayed_time.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ge.apply(this,arguments)}function ye(Pe){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_setting.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),je.apply(this,arguments)}function we(Pe){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_setting.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),ce.apply(this,arguments)}function Y(Pe){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.exerciseId,"/review_exercises_by_students.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),V.apply(this,arguments)}function U(Pe){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_lists.xlsx"),{method:"get",params:Object(a.a)(Object(a.a)({},Ce),{},{export:!0})}));case 1:case"end":return qe.stop()}},Pe)})),B.apply(this,arguments)}function Ae(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/user_exercise_detail.json"),{method:"get",params:Object(a.a)(Object(a.a)({},Pe),{},{login:null})})}function S(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/start.json"),{method:"get",params:Object(a.a)({},Pe)})}function k(Pe){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.questionId,"/exercise_answers.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),ae.apply(this,arguments)}function oe(Pe){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),le.apply(this,arguments)}function K(Pe){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/simulate_commit_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),P.apply(this,arguments)}function T(Pe){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/redo_exercise.json"),{method:"post",body:Ce}));case 1:case"end":return qe.stop()}},Pe)})),$.apply(this,arguments)}function se(Pe){return Object(u.a)("/api/".concat(Pe.url),{method:"get",params:Object(a.a)({},Pe)})}function ke(Pe){return Object(u.a)("/api/problems/".concat(Pe.id,"/start.json"),{method:"get",params:Object(a.a)({},Pe)})}function ve(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/begin_commit.json"),{method:"get",params:Object(a.a)({},Pe)})}function Be(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/simulate_begin_commit.json"),{method:"get",params:Object(a.a)({},Pe)})}function it(Pe){return Object(u.a)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:Object(a.a)({},Pe)})}function We(Pe){return console.log("params:",Pe),Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/edit.json"),{method:"get",params:Object(a.a)({},Pe)})}function Et(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/get_objective_scores.json"),{method:"get",params:Object(a.a)({},Pe)})}function Tt(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/redo_modal.json"),{method:"get",params:Object(a.a)({},Pe)})}function Ht(Pe){return Object(u.a)("/api/exercises/get_user_exercises.json",{method:"get",params:Pe})}function It(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/exercise_header.json"),{method:"get",params:Object(a.a)({},Pe)})}function tn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/allow_close_camera.json"),{method:"post",body:Object(a.a)({},Pe)})}function qt(Pe){return Object(u.a)("/api/exercises/".concat(Pe.categoryId,"/get_exercise_user_info.json"),{method:"get",params:Object(a.a)({},Pe)})}function gn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/record_screen"),{method:"post",params:Object(a.a)({},Pe)})}function an(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/unbind_ip.json"),{method:"post",body:Object(a.a)({},Pe)})}function Tn(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/check_ip.json"),{method:"get",params:Object(a.a)({},Pe)})}function on(Pe){return Object(u.a)("/api/exercises/".concat(Pe==null?void 0:Pe.id,"/check_user_exercise.json"),{method:"get",params:Object(a.a)({},Pe)})}function En(Pe){return Object(u.a)("/api/exercises/".concat(Pe.id,"/make_up_students.json"),{method:"get",params:Object(a.a)({},Pe)})}function yn(Pe){return vn.apply(this,arguments)}function vn(){return vn=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/courses/".concat(Ce.coursesId,"/exercises/code_review_detail.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),vn.apply(this,arguments)}function Rn(Pe){return Pn.apply(this,arguments)}function Pn(){return Pn=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercise_questions/".concat(Ce.question_id,"/adjust_score.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Pn.apply(this,arguments)}function St(Pe){return bt.apply(this,arguments)}function bt(){return bt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/examination_banks/".concat(Ce.categoryId,"/simulate_exercise.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),bt.apply(this,arguments)}function Pt(Pe){return Ft.apply(this,arguments)}function Ft(){return Ft=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/simulate_start_answer.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ft.apply(this,arguments)}function De(Pe){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/exercise_time.json"),{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Ct.apply(this,arguments)}function be(Pe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/exercises/".concat(Ce.categoryId,"/commit_screen_at.json"),{method:"post",body:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),Fe.apply(this,arguments)}function Ne(Pe){return dt.apply(this,arguments)}function dt(){return dt=Object(n.a)(t.a.mark(function Pe(Ce){return t.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",Object(u.a)("/api/attachments/set_ecs_attachment.json",{method:"get",params:Object(a.a)({},Ce)}));case 1:case"end":return qe.stop()}},Pe)})),dt.apply(this,arguments)}},V61k:function(x,g){var e=Math.expm1,a=Math.exp;x.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:a(r)-1}:e},V85Q:function(x,g,e){var a=e("FCfD"),n=/"/g;x.exports=function(r,t,u,v){var m=String(a(r)),i="<"+t;return u!==""&&(i+=" "+u+'="'+String(v).replace(n,""")+'"'),i+">"+m+""}},V93i:function(x,g,e){"use strict";x.exports=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(n){return"%".concat(n.charCodeAt(0).toString(16).toUpperCase())})}},VAJa:function(x,g,e){"use strict";var a=e("AM7I"),n=e("VF6F"),r=e("JxQ3"),t=a("%TypeError%"),u=a("%WeakMap%",!0),v=a("%Map%",!0),m=n("WeakMap.prototype.get",!0),i=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),l=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),o=function(E,O){for(var C=E,M;(M=C.next)!==null;C=M)if(M.key===O)return C.next=M.next,M.next=E.next,E.next=M,M},h=function(E,O){var C=o(E,O);return C&&C.value},c=function(E,O,C){var M=o(E,O);M?M.value=C:E.next={key:O,next:E.next,value:C}},b=function(E,O){return!!o(E,O)};x.exports=function(){var O,C,M,w={assert:function(A){if(!w.has(A))throw new t("Side channel does not contain "+r(A))},get:function(A){if(u&&A&&(typeof A=="object"||typeof A=="function")){if(O)return m(O,A)}else if(v){if(C)return d(C,A)}else if(M)return h(M,A)},has:function(A){if(u&&A&&(typeof A=="object"||typeof A=="function")){if(O)return s(O,A)}else if(v){if(C)return f(C,A)}else if(M)return b(M,A);return!1},set:function(A,L){u&&A&&(typeof A=="object"||typeof A=="function")?(O||(O=new u),i(O,A,L)):v?(C||(C=new v),l(C,A,L)):(M||(M={key:{},next:null}),c(M,A,L))}};return w}},VF6F:function(x,g,e){"use strict";var a=e("AM7I"),n=e("PrET"),r=n(a("String.prototype.indexOf"));x.exports=function(u,v){var m=a(u,!!v);return typeof m=="function"&&r(u,".prototype.")>-1?n(m):m}},VQRL:function(x,g,e){var a=e("I65O");a("replace")},VSU6:function(x,g,e){"use strict";var a=e("cTDu"),n=e("bIKR"),r=e("oa35");x.exports=function(u){for(var v=a(this),m=r(v.length),i=arguments.length,s=n(i>1?arguments[1]:void 0,m),d=i>2?arguments[2]:void 0,l=d===void 0?m:n(d,m);l>s;)v[s++]=u;return v}},VTBJ:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("rePB");function n(t,u){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);u&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),v.push.apply(v,m)}return v}function r(t){for(var u=1;u=0;--He){var Ze=this.tryEntries[He],ft=Ze.completion;if(Ze.tryLoc==="root")return q("end");if(Ze.tryLoc<=this.prev){var $e=t.call(Ze,"catchLoc"),Ue=t.call(Ze,"finallyLoc");if($e&&Ue){if(this.prev=0;--q){var He=this.tryEntries[q];if(He.tryLoc<=this.prev&&t.call(He,"finallyLoc")&&this.prev=0;--Q){var q=this.tryEntries[Q];if(q.finallyLoc===F)return this.complete(q.completion,q.afterLoc),ue(q),b}},catch:function(F){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var q=this.tryEntries[Q];if(q.tryLoc===F){var He=q.completion;if(He.type==="throw"){var Ze=He.arg;ue(q)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(F,Q,q){return this.delegate={iterator:ee(F),resultName:Q,nextLoc:q},this.method==="next"&&(this.arg=u),b}},n}(x.exports);try{regeneratorRuntime=a}catch(n){Function("r","regeneratorRuntime = r")(a)}},VuYY:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tny8"),r=e("ssJt"),t=e("cT1L"),u=e("f1E4"),v=e("tSXo"),m=e("igoe"),i=e("YfKC").f,s=e("lz10"),d=e("ujhg"),l=e("qcmB"),f=e("IuhT"),o=e("dnEI"),h=e("2kyd"),c=e("1aI8"),b=h("observable"),E=c.get,O=c.set,C=function(D){return D==null?void 0:t(D)},M=function(D){var N=D.cleanup;if(N){D.cleanup=void 0;try{N()}catch(Oe){o(Oe)}}},w=function(D){return D.observer===void 0},A=function(D,N){if(!n){D.closed=!0;var Oe=N.subscriptionObserver;Oe&&(Oe.closed=!0)}N.observer=void 0},L=function(D,N){var Oe=O(this,{cleanup:void 0,observer:u(D),subscriptionObserver:void 0}),ue;n||(this.closed=!1);try{(ue=C(D.start))&&ue.call(D,this)}catch(F){o(F)}if(w(Oe))return;var re=Oe.subscriptionObserver=new z(this);try{var ee=N(re),J=ee;ee!=null&&(Oe.cleanup=typeof ee.unsubscribe=="function"?function(){J.unsubscribe()}:t(ee))}catch(F){re.error(F);return}w(Oe)&&M(Oe)};L.prototype=d({},{unsubscribe:function(){var N=E(this);w(N)||(A(this,N),M(N))}}),n&&i(L.prototype,"closed",{configurable:!0,get:function(){return w(E(this))}});var z=function(D){O(this,{subscription:D}),n||(this.closed=!1)};z.prototype=d({},{next:function(N){var Oe=E(E(this).subscription);if(!w(Oe)){var ue=Oe.observer;try{var re=C(ue.next);re&&re.call(ue,N)}catch(ee){o(ee)}}},error:function(N){var Oe=E(this).subscription,ue=E(Oe);if(!w(ue)){var re=ue.observer;A(Oe,ue);try{var ee=C(re.error);ee?ee.call(re,N):o(N)}catch(J){o(J)}M(ue)}},complete:function(){var N=E(this).subscription,Oe=E(N);if(!w(Oe)){var ue=Oe.observer;A(N,Oe);try{var re=C(ue.complete);re&&re.call(ue)}catch(ee){o(ee)}M(Oe)}}}),n&&i(z.prototype,"closed",{configurable:!0,get:function(){return w(E(E(this).subscription))}});var G=function(N){m(this,G,"Observable"),O(this,{subscriber:t(N)})};d(G.prototype,{subscribe:function(N){var Oe=arguments.length;return new L(typeof N=="function"?{next:N,error:Oe>1?arguments[1]:void 0,complete:Oe>2?arguments[2]:void 0}:v(N)?N:{},E(this).subscriber)}}),d(G,{from:function(N){var Oe=typeof this=="function"?this:G,ue=C(u(N)[b]);if(ue){var re=u(ue.call(N));return re.constructor===Oe?re:new Oe(function(J){return re.subscribe(J)})}var ee=l(N);return new Oe(function(J){f(ee,function(F){if(J.next(F),J.closed)return f.stop()},void 0,!1,!0),J.complete()})},of:function(){for(var N=typeof this=="function"?this:G,Oe=arguments.length,ue=new Array(Oe),re=0;re1?arguments[1]:void 0,3),c=new(m(f,r("Map"))),b=u(c.set);return s(o,function(E,O){b.call(c,h(O,E,f),O)},void 0,!0,!0),c}})},W8MJ:function(x,g){function e(n,r){for(var t=0;t0}).map(function(z,G){var D;return Object(a.a)(Object(a.a)({},z),{number:u[G+1],questions:z==null||((D=z.questions)===null||D===void 0)?void 0:D.map(function(N){return Object(a.a)(Object(a.a)({},N),{},{shixun:N.examination_bank_shixun_challenges})})})});return{exam:o,questionList:L}},m=e("6fQ5"),i={namespace:"paperlibrary",state:{paperData:void 0,disciplinesData:void 0,teachGroupData:void 0,courseOptions:[],actionTabs:{key:"",params:{}}},effects:{getDisciplines:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.k,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{disciplinesData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getCustomDisciplines:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.j,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{disciplinesData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getEditDisciplines:r.a.mark(function d(l,f){var o,h,c,b,E,O;return r.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return o=l.payload,h=f.call,c=f.put,M.next=4,h(t.k,o);case 4:return b=M.sent,E=b==null?void 0:b.disciplines,O=Object(m.a)(E),M.next=9,c({type:"save",payload:{courseOptions:O,disciplinesData:Object(a.a)({},b)}});case 9:return M.abrupt("return",b);case 10:case"end":return M.stop()}},d)}),getTeachGroupData:r.a.mark(function d(l,f){var o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=l.payload,h=f.call,c=f.put,O.next=4,h(t.p,o);case 4:return b=O.sent,O.next=7,c({type:"save",payload:{teachGroupData:Object(a.a)({},b)}});case 7:return O.abrupt("return",b);case 8:case"end":return O.stop()}},d)}),getPaperData:r.a.mark(function d(l,f){var o,h,c,b,E;return r.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return o=l.payload,h=f.call,c=f.put,C.next=4,h(t.n,o);case 4:return b=C.sent,E=v(b),C.next=8,c({type:"save",payload:{paperData:E}});case 8:return C.abrupt("return",b);case 9:case"end":return C.stop()}},d)}),getPaperlibraryList:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.o,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setPublic:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.w,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),handleDelete:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.q,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),getCourseList:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.i,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),sendToClass:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.u,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),adjustPosition:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.a,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setScore:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.x,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),handleDeleteEditQuestion:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.r,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),batchSetScore:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.d,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),batchDelete:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.b,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),updatePaper:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,h(t.A,o);case 4:return E.abrupt("return",E.sent);case 5:case"end":return E.stop()}},d)}),setActionTabs:r.a.mark(function d(l,f){var o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,c({type:"save",payload:{actionTabs:Object(a.a)({},o)}});case 4:case"end":return E.stop()}},d)})},reducers:{save:function(l,f){return Object(a.a)(Object(a.a)({},l),f.payload)}},subscriptions:{setup:function(l){var f=l.dispatch,o=l.history;return o.listen(function(h){var c=h.pathname;c==="/"&&f({type:"query"})})}}},s=g.a=i},WRkp:function(x,g,e){"use strict";g.sha1=e("E+IA"),g.sha224=e("B/J0"),g.sha256=e("bu2F"),g.sha384=e("i5UE"),g.sha512=e("tSWc")},"WU/Z":function(x,g,e){"use strict";var a=e("FVwB"),n=e("zv1X").forEach,r=a.aTypedArray,t=a.exportTypedArrayMethod;t("forEach",function(v){n(r(this),v,arguments.length>1?arguments[1]:void 0)})},WbBG:function(x,g,e){"use strict";var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";x.exports=a},WkPL:function(x,g){function e(a,n){(n==null||n>a.length)&&(n=a.length);for(var r=0,t=new Array(n);rke;)se.push(arguments[ke++]);return ve=T,!l(T)&&P===void 0||V(P)?void 0:(d(T)||(T=function(Be,it){if(typeof ve=="function"&&(it=ve.call(this,Be,it)),!V(it))return it}),se[1]=T,de.apply(null,se))}})}W[$e][Ue]||G(W[$e],Ue,W[$e].valueOf),Q(W,ft),ue[Ze]=!0},Xq8t:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("h+Ho"),u={namespace:"forumsList",state:{forumsData:{},listParams:{page:1,order:"updated_at"}},effects:{getForumsData:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=i.call,l=i.put,c.next=4,d(s.memoType==="shixun_discuss"?t.g:t.c,s);case 4:return f=c.sent,delete s.memoType,o=s,c.next=9,l({type:"save",payload:{listParams:o,forumsData:Object(a.a)({},f)}});case 9:return c.abrupt("return",f);case 10:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},Xq8v:function(x,g,e){"use strict";e.d(g,"a",function(){return v}),e.d(g,"d",function(){return i}),e.d(g,"b",function(){return d}),e.d(g,"c",function(){return f}),e.d(g,"e",function(){return h}),e.d(g,"f",function(){return b});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(O){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/public_with_course_and_project",{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),m.apply(this,arguments)}function i(O){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/mine_with_course_and_project.json",{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),s.apply(this,arguments)}function d(O){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/import.json",{method:"post",body:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),l.apply(this,arguments)}function f(O){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/".concat(C.id,".json"),{method:"get",params:Object(a.a)({},C)}));case 1:case"end":return w.stop()}},O)})),o.apply(this,arguments)}function h(O){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function O(C){var M;return t.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return M=C.id,delete C.id,A.abrupt("return",Object(u.a)("/api/files/".concat(M,".json"),{method:"put",body:Object(a.a)({},C)}));case 3:case"end":return A.stop()}},O)})),c.apply(this,arguments)}function b(O){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function O(C){return t.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",Object(u.a)("/api/files/".concat(C.id,"/update_visits.json"),{method:"post"}));case 1:case"end":return w.stop()}},O)})),E.apply(this,arguments)}},XuYy:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("jb+D"),u={namespace:"userDetail",state:{systemUpdate:void 0,homepageInfo:void 0,homeworkBanksDetail:{},actionTabs:{key:"",params:{}}},effects:{getHomeworkBanksDetail:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.l,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{homeworkBanksDetail:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getSystemUpdate:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.s,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{systemUpdate:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),getHomepageInfo:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.k,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{homepageInfo:Object(a.a)({},f)}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)}),signed:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.B,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getCourses:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.i,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getShixuns:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.r,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getPaths:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.n,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getProjects:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.o,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getVideos:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.x,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getReviewVideos:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.q,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),deleteVideo:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.h,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getQuestionBanks:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.p,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicsSetPublic:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.F,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicsDelete:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.E,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicGetCourseList:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.C,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),topicSendToClass:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.D,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),logWatchHistory:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.y,s);case 4:return f=h.sent,h.abrupt("return",f==null?void 0:f.log_id);case 6:case"end":return h.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},"Xxk+":function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"WeakSet",stat:!0},{from:n})},Y3g6:function(x,g,e){var a=e("f1E4");x.exports=function(n,r,t,u){try{return u?r(a(t)[0],t[1]):r(t)}catch(m){var v=n.return;throw v!==void 0&&a(v.call(n)),m}}},Y9hK:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(n))return Array.from(n)}},YJ9l:function(x,g,e){"use strict";var a=e("5wUe"),n=e("bfL6"),r=e("R5yR"),t=e("V93i"),u=e("8jRI"),v=e("8yz6"),m=e("c0go"),i=function(w){return w==null};function s(M){switch(M.arrayFormat){case"index":return function(w){return function(A,L){var z=A.length;return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[[f(w,M),"[",z,"]"].join("")]):[].concat(r(A),[[f(w,M),"[",f(z,M),"]=",f(L,M)].join("")])}};case"bracket":return function(w){return function(A,L){return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[[f(w,M),"[]"].join("")]):[].concat(r(A),[[f(w,M),"[]=",f(L,M)].join("")])}};case"comma":case"separator":return function(w){return function(A,L){return L==null||L.length===0?A:A.length===0?[[f(w,M),"=",f(L,M)].join("")]:[[A,f(L,M)].join(M.arrayFormatSeparator)]}};default:return function(w){return function(A,L){return L===void 0||M.skipNull&&L===null||M.skipEmptyString&&L===""?A:L===null?[].concat(r(A),[f(w,M)]):[].concat(r(A),[[f(w,M),"=",f(L,M)].join("")])}}}}function d(M){var w;switch(M.arrayFormat){case"index":return function(A,L,z){if(w=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!w){z[A]=L;return}z[A]===void 0&&(z[A]={}),z[A][w[1]]=L};case"bracket":return function(A,L,z){if(w=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!w){z[A]=L;return}if(z[A]===void 0){z[A]=[L];return}z[A]=[].concat(z[A],L)};case"comma":case"separator":return function(A,L,z){var G=typeof L=="string"&&L.includes(M.arrayFormatSeparator),D=typeof L=="string"&&!G&&o(L,M).includes(M.arrayFormatSeparator);L=D?o(L,M):L;var N=G||D?L.split(M.arrayFormatSeparator).map(function(Oe){return o(Oe,M)}):L===null?L:o(L,M);z[A]=N};default:return function(A,L,z){if(z[A]===void 0){z[A]=L;return}z[A]=[].concat(z[A],L)}}}function l(M){if(typeof M!="string"||M.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(M,w){return w.encode?w.strict?t(M):encodeURIComponent(M):M}function o(M,w){return w.decode?u(M):M}function h(M){return Array.isArray(M)?M.sort():typeof M=="object"?h(Object.keys(M)).sort(function(w,A){return Number(w)-Number(A)}).map(function(w){return M[w]}):M}function c(M){var w=M.indexOf("#");return w!==-1&&(M=M.slice(0,w)),M}function b(M){var w="",A=M.indexOf("#");return A!==-1&&(w=M.slice(A)),w}function E(M){M=c(M);var w=M.indexOf("?");return w===-1?"":M.slice(w+1)}function O(M,w){return w.parseNumbers&&!Number.isNaN(Number(M))&&typeof M=="string"&&M.trim()!==""?M=Number(M):w.parseBooleans&&M!==null&&(M.toLowerCase()==="true"||M.toLowerCase()==="false")&&(M=M.toLowerCase()==="true"),M}function C(M,w){w=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},w),l(w.arrayFormatSeparator);var A=d(w),L=Object.create(null);if(typeof M!="string")return L;if(M=M.trim().replace(/^[?#&]/,""),!M)return L;var z=n(M.split("&")),G;try{for(z.s();!(G=z.n()).done;){var D=G.value;if(D==="")continue;var N=v(w.decode?D.replace(/\+/g," "):D,"="),Oe=a(N,2),ue=Oe[0],re=Oe[1];re=re===void 0?null:["comma","separator"].includes(w.arrayFormat)?re:o(re,w),A(o(ue,w),re,L)}}catch(ft){z.e(ft)}finally{z.f()}for(var ee=0,J=Object.keys(L);ee0}).join("&")},g.parseUrl=function(M,w){w=Object.assign({decode:!0},w);var A=v(M,"#"),L=a(A,2),z=L[0],G=L[1];return Object.assign({url:z.split("?")[0]||"",query:C(E(M),w)},w&&w.parseFragmentIdentifier&&G?{fragmentIdentifier:o(G,w)}:{})},g.stringifyUrl=function(M,w){w=Object.assign({encode:!0,strict:!0},w);var A=c(M.url).split("?")[0]||"",L=g.extract(M.url),z=g.parse(L,{sort:!1}),G=Object.assign(z,M.query),D=g.stringify(G,w);D&&(D="?".concat(D));var N=b(M.url);return M.fragmentIdentifier&&(N="#".concat(f(M.fragmentIdentifier,w))),"".concat(A).concat(D).concat(N)},g.pick=function(M,w,A){A=Object.assign({parseFragmentIdentifier:!0},A);var L=g.parseUrl(M,A),z=L.url,G=L.query,D=L.fragmentIdentifier;return g.stringifyUrl({url:z,query:m(G,w),fragmentIdentifier:D},A)},g.exclude=function(M,w,A){var L=Array.isArray(w)?function(z){return!w.includes(z)}:function(z,G){return!w(z,G)};return g.pick(M,L,A)}},YJpY:function(x,g,e){"use strict";var a=e("MMxC"),n=e("hKmx"),r=e("cTDu"),t=e("oa35"),u=e("cT1L"),v=e("nMuc");a({target:"Array",proto:!0},{flatMap:function(i){var s=r(this),d=t(s.length),l;return u(i),l=v(s,0),l.length=n(l,s,s,d,0,1,i,arguments.length>1?arguments[1]:void 0),l}})},YMoz:function(x,g){x.exports=Math.scale||function(a,n,r,t,u){return arguments.length===0||a!=a||n!=n||r!=r||t!=t||u!=u?NaN:a===Infinity||a===-Infinity?a:(a-n)*(u-t)/(r-n)+t}},YON3:function(x,g,e){var a=e("tSXo"),n=e("UwrT"),r=e("2kyd"),t=r("match");x.exports=function(u){var v;return a(u)&&((v=u[t])!==void 0?!!v:n(u)=="RegExp")}},YS25:function(x,g,e){"use strict";e.d(g,"a",function(){return ee}),e.d(g,"b",function(){return ft}),e.d(g,"d",function(){return Ue}),e.d(g,"c",function(){return C}),e.d(g,"f",function(){return M}),e.d(g,"e",function(){return O});var a=e("wx14");function n(X){return X.charAt(0)==="/"}function r(X,me){for(var ie=me,W=ie+1,de=X.length;W=0;tt--){var ht=W[tt];ht==="."?r(W,tt):ht===".."?(r(W,tt),Ve++):Ve&&(r(W,tt),Ve--)}if(!fe)for(;Ve--;Ve)W.unshift("..");fe&&W[0]!==""&&(!W[0]||!n(W[0]))&&W.unshift("");var ge=W.join("/");return rt&&ge.substr(-1)!=="/"&&(ge+="/"),ge}var u=t;function v(X){return X.valueOf?X.valueOf():Object.prototype.valueOf.call(X)}function m(X,me){if(X===me)return!0;if(X==null||me==null)return!1;if(Array.isArray(X))return Array.isArray(me)&&X.length===me.length&&X.every(function(de,Ye){return m(de,me[Ye])});if(typeof X=="object"||typeof me=="object"){var ie=v(X),W=v(me);return ie!==X||W!==me?m(ie,W):Object.keys(Object.assign({},X,me)).every(function(de){return m(X[de],me[de])})}return!1}var i=m,s=e("YJ9l"),d=e.n(s),l=e("9R94");function f(X){return X.charAt(0)==="/"?X:"/"+X}function o(X){return X.charAt(0)==="/"?X.substr(1):X}function h(X,me){return X.toLowerCase().indexOf(me.toLowerCase())===0&&"/?#".indexOf(X.charAt(me.length))!==-1}function c(X,me){return h(X,me)?X.substr(me.length):X}function b(X){return X.charAt(X.length-1)==="/"?X.slice(0,-1):X}function E(X){var me=X||"/",ie="",W="",de=me.indexOf("#");de!==-1&&(W=me.substr(de),me=me.substr(0,de));var Ye=me.indexOf("?");return Ye!==-1&&(ie=me.substr(Ye),me=me.substr(0,Ye)),{pathname:me,search:ie==="?"?"":ie,hash:W==="#"?"":W}}function O(X){var me=X.pathname,ie=X.search,W=X.hash,de=me||"/";return ie&&ie!=="?"&&(de+=ie.charAt(0)==="?"?ie:"?"+ie),W&&W!=="#"&&(de+=W.charAt(0)==="#"?W:"#"+W),de}function C(X,me,ie,W){var de;typeof X=="string"?(de=E(X),de.query=de.search?d.a.parse(de.search):{},de.state=me):(de=Object(a.a)({},X),de.pathname===void 0&&(de.pathname=""),de.search?(de.search.charAt(0)!=="?"&&(de.search="?"+de.search),de.query=d.a.parse(de.search)):(de.search=de.query?d.a.stringify(de.query):"",de.query=de.query||{}),de.hash?de.hash.charAt(0)!=="#"&&(de.hash="#"+de.hash):de.hash="",me!==void 0&&de.state===void 0&&(de.state=me));try{de.pathname=decodeURI(de.pathname)}catch(Ye){throw Ye instanceof URIError?new URIError('Pathname "'+de.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Ye}return ie&&(de.key=ie),W?de.pathname?de.pathname.charAt(0)!=="/"&&(de.pathname=u(de.pathname,W.pathname)):de.pathname=W.pathname:de.pathname||(de.pathname="/"),de}function M(X,me){return X.pathname===me.pathname&&X.search===me.search&&X.hash===me.hash&&X.key===me.key&&i(X.state,me.state)}function w(){var X=null;function me(fe){return X=fe,function(){X===fe&&(X=null)}}function ie(fe,rt,Te,Ve){if(X!=null){var tt=typeof X=="function"?X(fe,rt):X;typeof tt=="string"?typeof Te=="function"?Te(tt,Ve):Ve(!0):Ve(tt!==!1)}else Ve(!0)}var W=[];function de(fe){var rt=!0;function Te(){rt&&fe.apply(void 0,arguments)}return W.push(Te),function(){rt=!1,W=W.filter(function(Ve){return Ve!==Te})}}function Ye(){for(var fe=arguments.length,rt=new Array(fe),Te=0;Te$?se.splice($,se.length-$,K):se.push(K),tt({action:le,location:K,index:$,entries:se})})}function ce(ae,oe){var le="REPLACE",K=C(ae,oe,ht(),k.location);Ve.confirmTransitionTo(K,le,ie,function(P){if(!P)return;k.entries[k.index]=K,tt({action:le,location:K})})}function Y(ae){var oe=$e(k.index+ae,0,k.entries.length-1),le="POP",K=k.entries[oe];Ve.confirmTransitionTo(K,le,ie,function(P){P?tt({action:le,location:K,index:oe}):tt()})}function V(){Y(-1)}function U(){Y(1)}function B(ae){var oe=k.index+ae;return oe>=0&&oe1||"".split(/.?/).length?O=function(C,M){var w=String(t(this)),A=M===void 0?o:M>>>0;if(A===0)return[];if(C===void 0)return[w];if(!n(C))return b.call(w,C,A);for(var L=[],z=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(C.sticky?"y":""),G=0,D=new RegExp(C.source,z+"g"),N,Oe,ue;(N=s.call(D,w))&&!(Oe=D.lastIndex,Oe>G&&(L.push(w.slice(G,N.index)),N.length>1&&N.index=A));)D.lastIndex===N.index&&D.lastIndex++;return G===w.length?(ue||!D.test(""))&&L.push(""):L.push(w.slice(G)),L.length>A?L.slice(0,A):L}:"0".split(void 0,0).length?O=function(C,M){return C===void 0&&M===0?[]:b.call(this,C,M)}:O=b,[function(M,w){var A=t(this),L=M==null?void 0:M[c];return L!==void 0?L.call(M,A,w):O.call(String(A),M,w)},function(C,M){var w=E(O,C,this,M,O!==b);if(w.done)return w.value;var A=r(C),L=String(this),z=u(A,RegExp),G=A.unicode,D=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(h?"y":"g"),N=new z(h?A:"^(?:"+A.source+")",D),Oe=M===void 0?o:M>>>0;if(Oe===0)return[];if(L.length===0)return i(N,L)===null?[L]:[];for(var ue=0,re=0,ee=[];re>8&255]},He=function(Te){return[Te&255,Te>>8&255,Te>>16&255,Te>>24&255]},Ze=function(Te){return Te[3]<<24|Te[2]<<16|Te[1]<<8|Te[0]},ft=function(Te){return J(Te,23,4)},$e=function(Te){return J(Te,52,8)},Ue=function(Te,Ve){c(Te[L],Ve,{get:function(){return C(this)[Ve]}})},X=function(Te,Ve,tt,ht){var ge=d(tt),ye=C(Te);if(ge+Ve>ye.byteLength)throw ee(G);var je=C(ye.buffer).bytes,we=ge+ye.byteOffset,ce=je.slice(we,we+Ve);return ht?ce:ce.reverse()},me=function(Te,Ve,tt,ht,ge,ye){var je=d(tt),we=C(Te);if(je+Ve>we.byteLength)throw ee(G);for(var ce=C(we.buffer).bytes,Y=je+we.byteOffset,V=ht(+ge),U=0;Uge)throw ee("Wrong offset");if(ht=ht===void 0?ge-ye:s(ht),ye+ht>ge)throw ee(z);M(this,{buffer:Ve,byteLength:ht,byteOffset:ye}),n||(this.buffer=Ve,this.byteLength=ht,this.byteOffset=ye)},n&&(Ue(N,"byteLength"),Ue(Oe,"buffer"),Ue(Oe,"byteLength"),Ue(Oe,"byteOffset")),u(Oe[L],{getInt8:function(Ve){return X(this,1,Ve)[0]<<24>>24},getUint8:function(Ve){return X(this,1,Ve)[0]},getInt16:function(Ve){var tt=X(this,2,Ve,arguments.length>1?arguments[1]:void 0);return(tt[1]<<8|tt[0])<<16>>16},getUint16:function(Ve){var tt=X(this,2,Ve,arguments.length>1?arguments[1]:void 0);return tt[1]<<8|tt[0]},getInt32:function(Ve){return Ze(X(this,4,Ve,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ve){return Ze(X(this,4,Ve,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ve){return F(X(this,4,Ve,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ve){return F(X(this,8,Ve,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ve,tt){me(this,1,Ve,Q,tt)},setUint8:function(Ve,tt){me(this,1,Ve,Q,tt)},setInt16:function(Ve,tt){me(this,2,Ve,q,tt,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ve,tt){me(this,2,Ve,q,tt,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ve,tt){me(this,4,Ve,He,tt,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ve,tt){me(this,4,Ve,He,tt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ve,tt){me(this,4,Ve,ft,tt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ve,tt){me(this,8,Ve,$e,tt,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){D(1)})||!v(function(){new D(-1)})||v(function(){return new D,new D(1.5),new D(NaN),D.name!=w})){N=function(Ve){return m(this,N),new D(d(Ve))};for(var ie=N[L]=D[L],W=h(D),de=0,Ye;W.length>de;)(Ye=W[de++])in N||t(N,Ye,D[Ye]);ie.constructor=N}o&&f(ue)!==re&&o(ue,re);var fe=new Oe(new N(2)),rt=ue.setInt8;fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&u(ue,{setInt8:function(Ve,tt){rt.call(this,Ve,tt<<24>>24)},setUint8:function(Ve,tt){rt.call(this,Ve,tt<<24>>24)}},{unsafe:!0})}E(N,w),E(Oe,A),x.exports={ArrayBuffer:N,DataView:Oe}},ZW6p:function(x,g,e){"use strict";e.d(g,"d",function(){return h}),e.d(g,"a",function(){return c}),e.d(g,"c",function(){return b}),e.d(g,"b",function(){return E});var a=e("GNNt"),n=e("wEI+"),r=e("k1fw"),t=e("tJVT"),u=e("q1tI"),v=e.n(u),m=e("+qE3"),i=e.n(m),s=e("wd/R"),d=e.n(s),l=e("XDpg"),f=e.n(l),o=e("Fghh"),h=new i.a;h.setMaxListeners(5);var c=Symbol("LANG_CHANGE");function b(){var O=Object(o.d)();if(d.a!==null&&d.a!==void 0&&d.a.locale){var C;d.a.locale(((C=o.e[O])===null||C===void 0?void 0:C.momentLocale)||"zh-cn")}Object(o.f)(O)}var E=function(C){var M,w=v.a.useState(function(){return Object(o.d)()}),A=Object(t.a)(w,2),L=A[0],z=A[1],G=v.a.useState(function(){return Object(o.c)(L,!0)}),D=Object(t.a)(G,2),N=D[0],Oe=D[1],ue=function(F){if(d.a!==null&&d.a!==void 0&&d.a.locale){var Q;d.a.locale(((Q=o.e[F])===null||Q===void 0?void 0:Q.momentLocale)||"en")}z(F),Oe(Object(o.c)(F))};v.a.useLayoutEffect(function(){return h.on(c,ue),function(){h.off(c,ue)}},[]);var re=Object(r.a)({},e("+Gva").default),ee=Object(o.b)();return v.a.createElement(n.b,{direction:ee,locale:((M=o.e[L])===null||M===void 0?void 0:M.antd)||re},v.a.createElement(o.a,{value:N},C.children))}},ZahQ:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tny8"),r=e("i7kj"),t=e("cTDu"),u=e("cT1L"),v=e("YfKC");n&&a({target:"Object",proto:!0,forced:r},{__defineGetter__:function(i,s){v.f(t(this),i,{get:u(s),enumerable:!0,configurable:!0})}})},Zcjx:function(x,g){x.exports=!1},Ze4s:function(x,g,e){var a=e("ukPv"),n=e("mTKU").trim,r=e("Tfd0"),t=a.parseInt,u=/^[+-]?0[Xx]/,v=t(r+"08")!==8||t(r+"0x16")!==22;x.exports=v?function(i,s){var d=n(String(i));return t(d,s>>>0||(u.test(d)?16:10))}:t},ZhPi:function(x,g,e){var a=e("WkPL");function n(r,t){if(!r)return;if(typeof r=="string")return a(r,t);var u=Object.prototype.toString.call(r).slice(8,-1);if(u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set")return Array.from(r);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(r,t)}x.exports=n,x.exports.__esModule=!0,x.exports.default=x.exports},ZkJ9:function(x,g,e){var a=e("ukPv"),n=e("J3Yn"),r=a.WeakMap;x.exports=typeof r=="function"&&/native code/.test(n(r))},Zkxe:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("WCUW"),u=e("6fQ5"),v={namespace:"problemsetPreview",state:{disciplinesData:void 0,courseOptions:[],paperData:void 0,actionTabs:{key:"",params:{}}},effects:{getPaperData:r.a.mark(function m(i,s){var d,l,f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=i.payload,l=s.call,f=s.put,b.next=4,l(t.z,d);case 4:return o=b.sent,h=Object(u.b)(o),b.next=8,f({type:"save",payload:{paperData:h}});case 8:return b.abrupt("return",o);case 9:case"end":return b.stop()}},m)}),getEditDisciplines:r.a.mark(function m(i,s){var d,l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(t.v,d);case 4:return o=E.sent,h=o==null?void 0:o.disciplines,c=Object(u.a)(h),E.next=9,f({type:"save",payload:{courseOptions:c,disciplinesData:Object(a.a)({},o)}});case 9:return E.abrupt("return",o);case 10:case"end":return E.stop()}},m)}),setScore:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.S,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),handleDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.F,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),batchSetScore:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.k,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),batchDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.e,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),adjustPosition:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.c,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),newPreviewProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.J,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setActionTabs:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(a.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(a.a)(Object(a.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},Zm9Q:function(x,g,e){"use strict";e.d(g,"a",function(){return u});var a=e("q1tI"),n=e.n(a),r=e("TOwV"),t=e.n(r);function u(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[];return n.a.Children.forEach(v,function(s){if(s==null&&!m.keepEmpty)return;Array.isArray(s)?i=i.concat(u(s)):Object(r.isFragment)(s)&&s.props?i=i.concat(u(s.props.children,m)):i.push(s)}),i}},ZqBY:function(x,g,e){"use strict";(function(a){e.d(g,"a",function(){return S});var n=e("Qyje"),r=e.n(n),t=e("LpSC"),u=e.n(t);function v(le,K){var P=Object.keys(le);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(le);K&&(T=T.filter(function($){return Object.getOwnPropertyDescriptor(le,$).enumerable})),P.push.apply(P,T)}return P}function m(le){for(var K=1;Kle.length)&&(K=le.length);for(var P=0,T=new Array(K);P1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1,defaultInstance:!1},$=!1,se=!1,ke=!1;if(typeof T=="number"?(a&&Object({NODE_ENV:"production"})&&!1&&console.warn('use() options should be object, number property would be deprecated in future\uFF0Cplease update use() options to "{ core: true }".'),$=!0,se=!1):i(T)==="object"&&T&&(se=T.global||!1,$=T.core||!1,ke=T.defaultInstance||!1),se){le.globalMiddlewares.splice(le.globalMiddlewares.length-le.defaultGlobalMiddlewaresLength,0,P);return}if($){le.coreMiddlewares.splice(le.coreMiddlewares.length-le.defaultCoreMiddlewaresLength,0,P);return}if(ke){this.defaultMiddlewares.push(P);return}this.middlewares.push(P)}},{key:"execute",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,T=ue([].concat(L(this.middlewares),L(this.defaultMiddlewares),L(le.globalMiddlewares),L(le.coreMiddlewares)));return T(P)}}]),le}();re.globalMiddlewares=[],re.defaultGlobalMiddlewaresLength=0,re.coreMiddlewares=[],re.defaultCoreMiddlewaresLength=0;var ee=function(){function le(K){s(this,le),this.cache=new Map,this.timer={},this.extendOptions(K)}return l(le,[{key:"extendOptions",value:function(P){this.maxCache=P.maxCache||0}},{key:"get",value:function(P){return this.cache.get(JSON.stringify(P))}},{key:"set",value:function(P,T){var $=this,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var ke=L(this.cache.keys())[0];this.cache.delete(ke),this.timer[ke]&&clearTimeout(this.timer[ke])}var ve=JSON.stringify(P);this.cache.set(ve,T),se>0&&(this.timer[ve]=setTimeout(function(){$.cache.delete(ve),delete $.timer[ve]},se))}},{key:"delete",value:function(P){var T=JSON.stringify(P);return delete this.timer[T],this.cache.delete(T)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),le}(),J=function(le){o(P,le);var K=A(P);function P(T,$){var se,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"RequestError";return s(this,P),se=K.call(this,T),se.name="RequestError",se.request=$,se.type=ke,se}return P}(C(Error)),F=function(le){o(P,le);var K=A(P);function P(T,$,se,ke){var ve,Be=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"ResponseError";return s(this,P),ve=K.call(this,$||T.statusText),ve.name="ResponseError",ve.data=se,ve.response=T,ve.request=ke,ve.type=Be,ve}return P}(C(Error));function Q(le){return new Promise(function(K,P){var T=new FileReader;T.onload=function(){K(T.result)},T.onerror=P,T.readAsText(le,"GBK")})}function q(le){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;try{return JSON.parse(le)}catch($){if(K)throw new F(P,"JSON.parse fail",le,T,"ParseError")}return le}function He(le,K,P){return new Promise(function(T,$){setTimeout(function(){$(new J(K||"timeout of ".concat(le,"ms exceeded"),P,"Timeout"))},le)})}function Ze(le){return new Promise(function(K,P){le.cancelToken&&le.cancelToken.promise.then(function(T){P(T)})})}var ft=Object.prototype.toString;function $e(){var le;return typeof a!="undefined"&&ft.call(a)==="[object process]"&&(le="NODE"),typeof XMLHttpRequest!="undefined"&&(le="BROWSER"),le}function Ue(le){return i(le)==="object"&&Object.prototype.toString.call(le)==="[object Array]"}function X(le){return typeof URLSearchParams!="undefined"&&le instanceof URLSearchParams}function me(le){return i(le)==="object"&&Object.prototype.toString.call(le)==="[object Date]"}function ie(le){return le!==null&&i(le)==="object"}function W(le,K){if(!le)return;if(i(le)!=="object"&&(le=[le]),Ue(le))for(var P=0;P1&&arguments[1]!==void 0?arguments[1]:{},T=P.prefix,$=P.suffix;return T&&(K="".concat(T).concat(K)),$&&(K="".concat(K).concat($)),{url:K,options:P}},Te=!1;function Ve(le,K){var P=K.method,T=P===void 0?"get":P;return T.toLowerCase()==="get"}function tt(le,K){if(!le)return K();var P=le.req;P=P===void 0?{}:P;var T=P.options,$=T===void 0?{}:T,se=P.url,ke=se===void 0?"":se,ve=le.cache,Be=le.responseInterceptors,it=$.timeout,We=it===void 0?0:it,Et=$.timeoutMessage,Tt=$.__umiRequestCoreType__,Ht=Tt===void 0?"normal":Tt,It=$.useCache,tn=It===void 0?!1:It,qt=$.method,gn=qt===void 0?"get":qt,an=$.params,Tn=$.ttl,on=$.validateCache,En=on===void 0?Ve:on;if(Ht!=="normal")return a&&Object({NODE_ENV:"production"})&&!1&&Te===!1&&(Te=!0,console.warn("__umiRequestCoreType__ is a internal property that use in umi-request, change its value would affect the behavior of request! It only use when you want to extend or use request core.")),K();var yn=fetch;if(!yn)throw new Error("Global fetch not exist!");var vn=$e()==="BROWSER",Rn=En(ke,$)&&tn&&vn;if(Rn){var Pn=ve.get({url:ke,params:an,method:gn});if(Pn)return Pn=Pn.clone(),Pn.useCache=!0,le.res=Pn,K()}var St;return We>0?St=Promise.race([Ze($),yn(ke,$),He(We,Et,le.req)]):St=Promise.race([Ze($),yn(ke,$)]),Be.forEach(function(bt){St=St.then(function(Pt){var Ft=typeof Pt.clone=="function"?Pt.clone():Pt;return bt(Ft,$)})}),St.then(function(bt){if(Rn&&bt.status===200){var Pt=bt.clone();Pt.useCache=!0,ve.set({url:ke,params:an,method:gn},Pt,Tn)}return le.res=bt,K()})}function ht(le,K){var P;return K().then(function(){if(!le)return;var T=le.res,$=T===void 0?{}:T,se=le.req,ke=se===void 0?{}:se,ve=ke||{},Be=ve.options;Be=Be===void 0?{}:Be;var it=Be.responseType,We=it===void 0?"json":it,Et=Be.charset,Tt=Et===void 0?"utf8":Et,Ht=Be.getResponse,It=Be.throwErrIfParseFail,tn=It===void 0?!1:It,qt=Be.parseResponse,gn=qt===void 0?!0:qt;if(!gn)return;if(!$||!$.clone)return;if(P=$e()==="BROWSER"?$.clone():$,P.useCache=$.useCache||!1,Tt==="gbk")try{return $.blob().then(Q).then(function(an){return q(an,!1,P,ke)})}catch(an){throw new F(P,an.message,null,ke,"ParseError")}else if(We==="json")return $.text().then(function(an){return q(an,tn,P,ke)});try{return $[We]()}catch(an){throw new F(P,"responseType not support",null,ke,"ParseError")}}).then(function(T){if(!le)return;var $=le.res,se=le.req,ke=se===void 0?{}:se,ve=ke||{},Be=ve.options;Be=Be===void 0?{}:Be;var it=Be.getResponse,We=it===void 0?!1:it;if(!P)return;if(P.status>=200&&P.status<300){if(We){le.res={data:T,response:P};return}le.res=T;return}throw new F(P,"http error",T,ke,"HttpError")}).catch(function(T){if(T instanceof J||T instanceof F)throw T;var $=le.req,se=le.res;throw T.request=T.request||$,T.response=T.response||se,T.type=T.type||T.name,T.data=T.data||void 0,T})}function ge(le,K){if(!le)return K();var P=le.req;P=P===void 0?{}:P;var T=P.options,$=T===void 0?{}:T,se=$.method,ke=se===void 0?"get":se;if(["post","put","patch","delete"].indexOf(ke.toLowerCase())===-1)return K();var ve=$.requestType,Be=ve===void 0?"json":ve,it=$.data;if(it){var We=Object.prototype.toString.call(it);We==="[object Object]"||We==="[object Array]"?Be==="json"?($.headers=m({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},$.headers),$.body=JSON.stringify(it)):Be==="form"&&($.headers=m({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},$.headers),$.body=Ye(it)):($.headers=m({Accept:"application/json"},$.headers),$.body=it)}return le.req.options=$,K()}function ye(le,K){var P,T;if(le)if(K)P=K(le);else if(X(le))P=le.toString();else if(Ue(le))T=[],W(le,function(se){se===null||typeof se=="undefined"?T.push(se):T.push(ie(se)?JSON.stringify(se):se)}),P=Ye(T);else{T={},W(le,function(se,ke){var ve=se;se===null||typeof se=="undefined"?T[ke]=se:me(se)?ve=se.toISOString():Ue(se)?ve=se:ie(se)&&(ve=JSON.stringify(se)),T[ke]=ve});var $=Ye(T);P=$}return P}function je(le,K){if(!le)return K();var P=le.req;P=P===void 0?{}:P;var T=P.options,$=T===void 0?{}:T,se=$.paramsSerializer,ke=$.params,ve=le.req;ve=ve===void 0?{}:ve;var Be=ve.url,it=Be===void 0?"":Be;$.method=$.method?$.method.toUpperCase():"GET",$.credentials=$.credentials||"same-origin";var We=ye(ke,se);if(le.req.originUrl=it,We){var Et=it.indexOf("?")!==-1?"&":"?";le.req.url="".concat(it).concat(Et).concat(We)}return le.req.options=$,K()}var we=[ge,je,ht],ce=[tt];re.globalMiddlewares=we,re.defaultGlobalMiddlewaresLength=we.length,re.coreMiddlewares=ce,re.defaultCoreMiddlewaresLength=ce.length;var Y=function(){function le(K){s(this,le),this.onion=new re([]),this.fetchIndex=0,this.mapCache=new ee(K),this.initOptions=K,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return l(le,[{key:"use",value:function(P){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!1,core:!1};return this.onion.use(P,T),this}},{key:"extendOptions",value:function(P){this.initOptions=fe(this.initOptions,P),this.mapCache.extendOptions(P)}},{key:"dealRequestInterceptors",value:function(P){var T=function(ke,ve){return ke.then(function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return P.req.url=Be.url||P.req.url,P.req.options=Be.options||P.req.options,ve(P.req.url,P.req.options)})},$=[].concat(L(le.requestInterceptors),L(this.instanceRequestInterceptors));return $.reduce(T,Promise.resolve()).then(function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return P.req.url=se.url||P.req.url,P.req.options=se.options||P.req.options,Promise.resolve()})}},{key:"request",value:function(P,T){var $=this,se=this.onion,ke={req:{url:P,options:m(m({},T),{},{url:P})},res:null,cache:this.mapCache,responseInterceptors:[].concat(L(le.responseInterceptors),L(this.instanceResponseInterceptors))};if(typeof P!="string")throw new Error("url MUST be a string");return new Promise(function(ve,Be){$.dealRequestInterceptors(ke).then(function(){return se.execute(ke)}).then(function(){ve(ke.res)}).catch(function(it){var We=ke.req.options.errorHandler;if(We)try{var Et=We(it);ve(Et)}catch(Tt){Be(Tt)}else Be(it)})})}}],[{key:"requestUse",value:function(P){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof P!="function")throw new TypeError("Interceptor must be function!");T.global?le.requestInterceptors.push(P):this.instanceRequestInterceptors.push(P)}},{key:"responseUse",value:function(P){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{global:!0};if(typeof P!="function")throw new TypeError("Interceptor must be function!");T.global?le.responseInterceptors.push(P):this.instanceResponseInterceptors.push(P)}}]),le}();Y.requestInterceptors=[rt],Y.responseInterceptors=[];function V(le){this.message=le}V.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},V.prototype.__CANCEL__=!0;function U(le){if(typeof le!="function")throw new TypeError("executor must be a function.");var K;this.promise=new Promise(function($){K=$});var P=this;le(function($){if(P.reason)return;P.reason=new V($),K(P.reason)})}U.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},U.source=function(){var K,P=new U(function($){K=$});return{token:P,cancel:K}};function B(le){return!!(le&&le.__CANCEL__)}var Ae=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=new Y(K),T=function(ke){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=fe(P.initOptions,ve);return P.request(ke,Be)};T.use=P.use.bind(P),T.fetchIndex=P.fetchIndex,T.interceptors={request:{use:Y.requestUse.bind(P)},response:{use:Y.responseUse.bind(P)}};var $=["get","post","delete","put","patch","head","options","rpc"];return $.forEach(function(se){T[se]=function(ke,ve){return T(ke,m(m({},ve),{},{method:se}))}}),T.Cancel=V,T.CancelToken=U,T.isCancel=B,T.extendOptions=P.extendOptions.bind(P),T.middlewares={instance:P.onion.middlewares,defaultInstance:P.onion.defaultMiddlewares,global:re.globalMiddlewares,core:re.coreMiddlewares},T},S=function(K){return Ae(K)},k=Ae({parseResponse:!1}),ae=Ae({}),oe=ae}).call(this,e("Q2Ig"))},a1gu:function(x,g,e){var a=e("cDf5").default,n=e("PJYZ");function r(t,u){if(u&&(a(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}x.exports=r,x.exports.__esModule=!0,x.exports.default=x.exports},a3WO:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,u=new Array(r);t>>24)&16711935|(i[h]<<24|i[h]>>>8)&4278255360;i[s>>>5]|=128<>>9<<4)+14]=s;for(var c=u._ff,b=u._gg,E=u._hh,O=u._ii,h=0;h>>0,l=l+M>>>0,f=f+w>>>0,o=o+A>>>0}return a.endian([d,l,f,o])};u._ff=function(v,m,i,s,d,l,f){var o=v+(m&i|~m&s)+(d>>>0)+f;return(o<>>32-l)+m},u._gg=function(v,m,i,s,d,l,f){var o=v+(m&s|i&~s)+(d>>>0)+f;return(o<>>32-l)+m},u._hh=function(v,m,i,s,d,l,f){var o=v+(m^i^s)+(d>>>0)+f;return(o<>>32-l)+m},u._ii=function(v,m,i,s,d,l,f){var o=v+(i^(m|~s))+(d>>>0)+f;return(o<>>32-l)+m},u._blocksize=16,u._digestsize=16,x.exports=function(v,m){if(v==null)throw new Error("Illegal argument "+v);var i=a.wordsToBytes(u(v,m));return m&&m.asBytes?i:m&&m.asString?t.bytesToString(i):a.bytesToHex(i)}})()},aF2d:function(x,g,e){"use strict";var a=e("cT1L"),n=e("7BAe"),r=e("IuhT");x.exports=function(u){var v=arguments.length,m=v>1?arguments[1]:void 0,i,s,d,l;return a(this),i=m!==void 0,i&&a(m),u==null?new this:(s=[],i?(d=0,l=n(m,v>2?arguments[2]:void 0,2),r(u,function(f){s.push(l(f,d++))})):r(u,s.push,s),new this(s))}},aHGi:function(x,g,e){var a=e("I65O");a("toStringTag")},aI7X:function(x,g,e){"use strict";var a="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,t="[object Function]";x.exports=function(v){var m=this;if(typeof m!="function"||r.call(m)!==t)throw new TypeError(a+m);for(var i=n.call(arguments,1),s,d=function(){if(this instanceof s){var c=m.apply(this,i.concat(n.call(arguments)));return Object(c)===c?c:this}else return m.apply(v,i.concat(n.call(arguments)))},l=Math.max(0,m.length-i.length),f=[],o=0;o1)&&(i=1),i}function v(i){return i<=1?Number(i)*100+"%":i}function m(i){return i.length===1?"0"+i:String(i)}},b48C:function(x,g){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(a){return!1}}x.exports=e,x.exports.__esModule=!0,x.exports.default=x.exports},b6mv:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("6CvP"),u={namespace:"homePage",state:{name:"\u9996\u9875",loading:!0},effects:{home:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.a,{payload:s});case 4:return f=h.sent,h.next=7,l({type:"save",payload:Object(a.a)({},f)});case 7:case"end":return h.stop()}},v)}),query:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{name:"linlu"}});case 4:case"end":return o.stop()}},v)}),getHomeNotice:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)}),UploadNotice:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.abrupt("return",o);case 6:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},b6st:function(x,g,e){var a=e("ukPv");x.exports=a.Promise},"b8+j":function(x,g,e){var a=e("MMxC"),n=e("f1E4"),r=e("JS3A"),t=e("g1ZG");t&&a({target:"Reflect",stat:!0},{setPrototypeOf:function(v,m){n(v),r(m);try{return t(v,m),!0}catch(i){return!1}}})},bCY9:function(x,g,e){"use strict";e.d(g,"a",function(){return n});var a=e("LtsZ"),n=new a.b({validKeys:["modifyClientRenderOpts","patchRoutes","rootContainer","render","onRouteChange","__mfsu","dva","getInitialState","locale","locale","request"]})},bDgo:function(x,g,e){var a=e("MMxC"),n=e("M3b6");a({target:"Number",stat:!0},{isInteger:n})},"bF+Q":function(x,g,e){var a=e("2kyd"),n=e("5yw/"),r=a("iterator"),t=Array.prototype;x.exports=function(u){return u!==void 0&&(n.Array===u||t[r]===u)}},bIKR:function(x,g,e){var a=e("m0kY"),n=Math.max,r=Math.min;x.exports=function(t,u){var v=a(t);return v<0?n(v+u,0):r(v,u)}},bPAU:function(x,g,e){"use strict";var a=e("MMxC"),n=e("uoF6"),r=e("FCfD"),t=e("oa35"),u=e("cT1L"),v=e("f1E4"),m=e("UwrT"),i=e("YON3"),s=e("k/J9"),d=e("lz10"),l=e("MVys"),f=e("2kyd"),o=e("/dTS"),h=e("xH5X"),c=e("1aI8"),b=e("Zcjx"),E=f("matchAll"),O="RegExp String",C=O+" Iterator",M=c.set,w=c.getterFor(C),A=RegExp.prototype,L=A.exec,z="".matchAll,G=!!z&&!l(function(){"a".matchAll(/./)}),D=function(ue,re){var ee=ue.exec,J;if(typeof ee=="function"){if(J=ee.call(ue,re),typeof J!="object")throw TypeError("Incorrect exec result");return J}return L.call(ue,re)},N=n(function(re,ee,J,F){M(this,{type:C,regexp:re,string:ee,global:J,unicode:F,done:!1})},O,function(){var re=w(this);if(re.done)return{value:void 0,done:!0};var ee=re.regexp,J=re.string,F=D(ee,J);return F===null?{value:void 0,done:re.done=!0}:re.global?(String(F[0])==""&&(ee.lastIndex=h(J,t(ee.lastIndex),re.unicode)),{value:F,done:!1}):(re.done=!0,{value:F,done:!1})}),Oe=function(ue){var re=v(this),ee=String(ue),J,F,Q,q,He,Ze;return J=o(re,RegExp),F=re.flags,F===void 0&&re instanceof RegExp&&!("flags"in A)&&(F=s.call(re)),Q=F===void 0?"":String(F),q=new J(J===RegExp?re.source:re,Q),He=!!~Q.indexOf("g"),Ze=!!~Q.indexOf("u"),q.lastIndex=t(re.lastIndex),new N(q,ee,He,Ze)};a({target:"String",proto:!0,forced:G},{matchAll:function(re){var ee=r(this),J,F,Q,q;if(re!=null){if(i(re)&&(J=String(r("flags"in A?re.flags:s.call(re))),!~J.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(G)return z.apply(ee,arguments);if(Q=re[E],Q===void 0&&b&&m(re)=="RegExp"&&(Q=Oe),Q!=null)return u(Q).call(re,ee)}else if(G)return z.apply(ee,arguments);return F=String(ee),q=new RegExp(re,"g"),b?Oe.call(q,F):q[E](F)}}),b||E in A||d(A,E,Oe)},bQgK:function(x,g,e){(function(a){(function(){var n,r,t,u,v,m;typeof performance!="undefined"&&performance!==null&&performance.now?x.exports=function(){return performance.now()}:typeof a!="undefined"&&a!==null&&a.hrtime?(x.exports=function(){return(n()-v)/1e6},r=a.hrtime,n=function(){var i;return i=r(),i[0]*1e9+i[1]},u=n(),m=a.uptime()*1e9,v=u-m):Date.now?(x.exports=function(){return Date.now()-t},t=Date.now()):(x.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(this)}).call(this,e("Q2Ig"))},bZMm:function(x,g,e){"use strict";e.r(g),e.d(g,"Headers",function(){return s}),e.d(g,"Request",function(){return C}),e.d(g,"Response",function(){return A}),e.d(g,"DOMException",function(){return z}),e.d(g,"fetch",function(){return G});var a=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof a!="undefined"&&a,n={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(D){return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function r(D){return D&&DataView.prototype.isPrototypeOf(D)}if(n.arrayBuffer)var t=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(D){return D&&t.indexOf(Object.prototype.toString.call(D))>-1};function v(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function m(D){return typeof D!="string"&&(D=String(D)),D}function i(D){var N={next:function(){var Oe=D.shift();return{done:Oe===void 0,value:Oe}}};return n.iterable&&(N[Symbol.iterator]=function(){return N}),N}function s(D){this.map={},D instanceof s?D.forEach(function(N,Oe){this.append(Oe,N)},this):Array.isArray(D)?D.forEach(function(N){this.append(N[0],N[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(N){this.append(N,D[N])},this)}s.prototype.append=function(D,N){D=v(D),N=m(N);var Oe=this.map[D];this.map[D]=Oe?Oe+", "+N:N},s.prototype.delete=function(D){delete this.map[v(D)]},s.prototype.get=function(D){return D=v(D),this.has(D)?this.map[D]:null},s.prototype.has=function(D){return this.map.hasOwnProperty(v(D))},s.prototype.set=function(D,N){this.map[v(D)]=m(N)},s.prototype.forEach=function(D,N){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&D.call(N,this.map[Oe],Oe,this)},s.prototype.keys=function(){var D=[];return this.forEach(function(N,Oe){D.push(Oe)}),i(D)},s.prototype.values=function(){var D=[];return this.forEach(function(N){D.push(N)}),i(D)},s.prototype.entries=function(){var D=[];return this.forEach(function(N,Oe){D.push([Oe,N])}),i(D)},n.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);function d(D){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}function l(D){return new Promise(function(N,Oe){D.onload=function(){N(D.result)},D.onerror=function(){Oe(D.error)}})}function f(D){var N=new FileReader,Oe=l(N);return N.readAsArrayBuffer(D),Oe}function o(D){var N=new FileReader,Oe=l(N);return N.readAsText(D),Oe}function h(D){for(var N=new Uint8Array(D),Oe=new Array(N.length),ue=0;ue-1?N:D}function C(D,N){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N=N||{};var Oe=N.body;if(D instanceof C){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,N.headers||(this.headers=new s(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!Oe&&D._bodyInit!=null&&(Oe=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=N.credentials||this.credentials||"same-origin",(N.headers||!this.headers)&&(this.headers=new s(N.headers)),this.method=O(N.method||this.method||"GET"),this.mode=N.mode||this.mode||null,this.signal=N.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Oe),(this.method==="GET"||this.method==="HEAD")&&(N.cache==="no-store"||N.cache==="no-cache")){var ue=/([?&])_=[^&]*/;if(ue.test(this.url))this.url=this.url.replace(ue,"$1_="+new Date().getTime());else{var re=/\?/;this.url+=(re.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})};function M(D){var N=new FormData;return D.trim().split("&").forEach(function(Oe){if(Oe){var ue=Oe.split("="),re=ue.shift().replace(/\+/g," "),ee=ue.join("=").replace(/\+/g," ");N.append(decodeURIComponent(re),decodeURIComponent(ee))}}),N}function w(D){var N=new s,Oe=D.replace(/\r?\n[\t ]+/g," ");return Oe.split("\r").map(function(ue){return ue.indexOf(` `)===0?ue.substr(1,ue.length):ue}).forEach(function(ue){var re=ue.split(":"),ee=re.shift().trim();if(ee){var J=re.join(":").trim();N.append(ee,J)}}),N}b.call(C.prototype);function A(D,N){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N||(N={}),this.type="default",this.status=N.status===void 0?200:N.status,this.ok=this.status>=200&&this.status<300,this.statusText=N.statusText===void 0?"":""+N.statusText,this.headers=new s(N.headers),this.url=N.url||"",this._initBody(D)}b.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},A.error=function(){var D=new A(null,{status:0,statusText:""});return D.type="error",D};var L=[301,302,303,307,308];A.redirect=function(D,N){if(L.indexOf(N)===-1)throw new RangeError("Invalid status code");return new A(null,{status:N,headers:{location:D}})};var z=a.DOMException;try{new z}catch(D){z=function(N,Oe){this.message=N,this.name=Oe;var ue=Error(N);this.stack=ue.stack},z.prototype=Object.create(Error.prototype),z.prototype.constructor=z}function G(D,N){return new Promise(function(Oe,ue){var re=new C(D,N);if(re.signal&&re.signal.aborted)return ue(new z("Aborted","AbortError"));var ee=new XMLHttpRequest;function J(){ee.abort()}ee.onload=function(){var Q={status:ee.status,statusText:ee.statusText,headers:w(ee.getAllResponseHeaders()||"")};Q.url="responseURL"in ee?ee.responseURL:Q.headers.get("X-Request-URL");var q="response"in ee?ee.response:ee.responseText;setTimeout(function(){Oe(new A(q,Q))},0)},ee.onerror=function(){setTimeout(function(){ue(new TypeError("Network request failed"))},0)},ee.ontimeout=function(){setTimeout(function(){ue(new TypeError("Network request failed"))},0)},ee.onabort=function(){setTimeout(function(){ue(new z("Aborted","AbortError"))},0)};function F(Q){try{return Q===""&&a.location.href?a.location.href:Q}catch(q){return Q}}ee.open(re.method,F(re.url),!0),re.credentials==="include"?ee.withCredentials=!0:re.credentials==="omit"&&(ee.withCredentials=!1),"responseType"in ee&&(n.blob?ee.responseType="blob":n.arrayBuffer&&re.headers.get("Content-Type")&&re.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ee.responseType="arraybuffer")),N&&typeof N.headers=="object"&&!(N.headers instanceof s)?Object.getOwnPropertyNames(N.headers).forEach(function(Q){ee.setRequestHeader(Q,m(N.headers[Q]))}):re.headers.forEach(function(Q,q){ee.setRequestHeader(q,Q)}),re.signal&&(re.signal.addEventListener("abort",J),ee.onreadystatechange=function(){ee.readyState===4&&re.signal.removeEventListener("abort",J)}),ee.send(typeof re._bodyInit=="undefined"?null:re._bodyInit)})}G.polyfill=!0,a.fetch||(a.fetch=G,a.Headers=s,a.Request=C,a.Response=A)},bcvT:function(x,g,e){var a=e("ukPv"),n=e("XX5T"),r=e("PHrn"),t=e("lz10");for(var u in n){var v=a[u],m=v&&v.prototype;if(m&&m.forEach!==r)try{t(m,"forEach",r)}catch(i){m.forEach=r}}},bdgK:function(x,g,e){"use strict";e.r(g),function(a){var n=function(){if(typeof Map!="undefined")return Map;function ee(J,F){var Q=-1;return J.some(function(q,He){return q[0]===F?(Q=He,!0):!1}),Q}return function(){function J(){this.__entries__=[]}return Object.defineProperty(J.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),J.prototype.get=function(F){var Q=ee(this.__entries__,F),q=this.__entries__[Q];return q&&q[1]},J.prototype.set=function(F,Q){var q=ee(this.__entries__,F);~q?this.__entries__[q][1]=Q:this.__entries__.push([F,Q])},J.prototype.delete=function(F){var Q=this.__entries__,q=ee(Q,F);~q&&Q.splice(q,1)},J.prototype.has=function(F){return!!~ee(this.__entries__,F)},J.prototype.clear=function(){this.__entries__.splice(0)},J.prototype.forEach=function(F,Q){Q===void 0&&(Q=null);for(var q=0,He=this.__entries__;q0},ee.prototype.connect_=function(){if(!r||this.connected_)return;document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0},ee.prototype.disconnect_=function(){if(!r||!this.connected_)return;document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1},ee.prototype.onTransitionEnd_=function(J){var F=J.propertyName,Q=F===void 0?"":F,q=s.some(function(He){return!!~Q.indexOf(He)});q&&this.refresh()},ee.getInstance=function(){return this.instance_||(this.instance_=new ee),this.instance_},ee.instance_=null,ee}(),f=function(ee,J){for(var F=0,Q=Object.keys(J);F0},ee}(),Oe=typeof WeakMap!="undefined"?new WeakMap:new n,ue=function(){function ee(J){if(!(this instanceof ee))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var F=l.getInstance(),Q=new N(J,F,this);Oe.set(this,Q)}return ee}();["observe","unobserve","disconnect"].forEach(function(ee){ue.prototype[ee]=function(){var J;return(J=Oe.get(this))[ee].apply(J,arguments)}});var re=function(){return typeof t.ResizeObserver!="undefined"?t.ResizeObserver:ue}();g.default=re}.call(this,e("IyRk"))},beyn:function(x,g,e){"use strict";var a=e("MMxC"),n=e("mTKU").end,r=e("HKQd"),t=r("trimEnd"),u=t?function(){return n(this)}:"".trimEnd;a({target:"String",proto:!0,forced:t},{trimEnd:u,trimRight:u})},bfL6:function(x,g,e){var a=e("mGKP");function n(r,t){var u;if(typeof Symbol=="undefined"||r[Symbol.iterator]==null){if(Array.isArray(r)||(u=a(r))||t&&r&&typeof r.length=="number"){u&&(r=u);var v=0,m=function(){};return{s:m,n:function(){return v>=r.length?{done:!0}:{done:!1,value:r[v++]}},e:function(f){throw f},f:m}}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 i=!0,s=!1,d;return{s:function(){u=r[Symbol.iterator]()},n:function(){var f=u.next();return i=f.done,f},e:function(f){s=!0,d=f},f:function(){try{!i&&u.return!=null&&u.return()}finally{if(s)throw d}}}}x.exports=n},bkVK:function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("link")},{link:function(u){return n(this,"a","href",u)}})},bmMU:function(x,g){var e=typeof Element!="undefined",a=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function t(u,v){if(u===v)return!0;if(u&&v&&typeof u=="object"&&typeof v=="object"){if(u.constructor!==v.constructor)return!1;var m,i,s;if(Array.isArray(u)){if(m=u.length,m!=v.length)return!1;for(i=m;i--!==0;)if(!t(u[i],v[i]))return!1;return!0}var d;if(a&&u instanceof Map&&v instanceof Map){if(u.size!==v.size)return!1;for(d=u.entries();!(i=d.next()).done;)if(!v.has(i.value[0]))return!1;for(d=u.entries();!(i=d.next()).done;)if(!t(i.value[1],v.get(i.value[0])))return!1;return!0}if(n&&u instanceof Set&&v instanceof Set){if(u.size!==v.size)return!1;for(d=u.entries();!(i=d.next()).done;)if(!v.has(i.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(v)){if(m=u.length,m!=v.length)return!1;for(i=m;i--!==0;)if(u[i]!==v[i])return!1;return!0}if(u.constructor===RegExp)return u.source===v.source&&u.flags===v.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===v.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===v.toString();if(s=Object.keys(u),m=s.length,m!==Object.keys(v).length)return!1;for(i=m;i--!==0;)if(!Object.prototype.hasOwnProperty.call(v,s[i]))return!1;if(e&&u instanceof Element)return!1;for(i=m;i--!==0;){if((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&u.$$typeof)continue;if(!t(u[s[i]],v[s[i]]))return!1}return!0}return u!==u&&v!==v}x.exports=function(v,m){try{return t(v,m)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}}},bntm:function(x,g,e){"use strict";e.d(g,"d",function(){return a}),e.d(g,"b",function(){return n}),e.d(g,"c",function(){return r}),e.d(g,"a",function(){return t});function a(u){try{u.mozRequestFullScreen?u.mozRequestFullScreen():u.webkitRequestFullScreen&&u.webkitRequestFullScreen()}catch(v){console.log(v,":e")}}function n(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}var r=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function t(){var u=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,v=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(u==null)}},bu2F:function(x,g,e){"use strict";var a=e("w8CP"),n=e("7ckf"),r=e("qlaj"),t=e("2j6C"),u=a.sum32,v=a.sum32_4,m=a.sum32_5,i=r.ch32,s=r.maj32,d=r.s0_256,l=r.s1_256,f=r.g0_256,o=r.g1_256,h=n.BlockHash,c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=c,this.W=new Array(64)}a.inherits(b,h),x.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(O,C){for(var M=this.W,w=0;w<16;w++)M[w]=O[C+w];for(;w=0)return t[m].splice(d,1),!0}return!1},publish:function(m){if(!t[m])return!1;var i=Array.prototype.slice.call(arguments,1);return t[m].forEach(function(s){s.apply(null,i)}),this}};return r?Object.assign(r,u):u}var n=new a;g.a=n},dnEI:function(x,g,e){var a=e("ukPv");x.exports=function(n,r){var t=a.console;t&&t.error&&(arguments.length===1?t.error(n):t.error(n,r))}},dnZx:function(x,g,e){"use strict";e("KvPC");var a=e("MMxC"),n=e("tny8"),r=e("lgSf"),t=e("ukPv"),u=e("HctQ"),v=e("NMFW"),m=e("igoe"),i=e("jtLI"),s=e("qitQ"),d=e("1H91"),l=e("eYKs").codeAt,f=e("Di6M"),o=e("kiNa"),h=e("5JgN"),c=e("1aI8"),b=t.URL,E=h.URLSearchParams,O=h.getState,C=c.set,M=c.getterFor("URL"),w=Math.floor,A=Math.pow,L="Invalid authority",z="Invalid scheme",G="Invalid host",D="Invalid port",N=/[A-Za-z]/,Oe=/[\d+-.A-Za-z]/,ue=/\d/,re=/^(0x|0X)/,ee=/^[0-7]+$/,J=/^\d+$/,F=/^[\dA-Fa-f]+$/,Q=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,q=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,He=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ze=/[\u0009\u000A\u000D]/g,ft,$e=function(De,Ct){var be,Ne,Fe;if(Ct.charAt(0)=="["){if(Ct.charAt(Ct.length-1)!="]")return G;if(be=X(Ct.slice(1,-1)),!be)return G;De.host=be}else if(Ve(De)){if(Ct=f(Ct),Q.test(Ct))return G;if(be=Ue(Ct),be===null)return G;De.host=be}else{if(q.test(Ct))return G;for(be="",Ne=d(Ct),Fe=0;Fe4)return De;for(Ne=[],Fe=0;Fe1&&dt.charAt(0)=="0"&&(Pe=re.test(dt)?16:8,dt=dt.slice(Pe==8?1:2)),dt==="")Ce=0;else{if(!(Pe==10?J:Pe==8?ee:F).test(dt))return De;Ce=parseInt(dt,Pe)}Ne.push(Ce)}for(Fe=0;Fe=A(256,5-be))return null}else if(Ce>255)return null;for(ct=Ne.pop(),Fe=0;Fe6)return;for(Ce=0;Xe();){if(ct=null,Ce>0)if(Xe()=="."&&Ce<4)Fe++;else return;if(!ue.test(Xe()))return;for(;ue.test(Xe());){if(qe=parseInt(Xe(),10),ct===null)ct=qe;else{if(ct==0)return;ct=ct*10+qe}if(ct>255)return;Fe++}Ct[be]=Ct[be]*256+ct,Ce++,(Ce==2||Ce==4)&&be++}if(Ce!=4)return;break}else if(Xe()==":"){if(Fe++,!Xe())return}else if(Xe())return;Ct[be++]=dt}if(Ne!==null)for(Me=be-Ne,be=7;be!=0&&Me>0;)Z=Ct[be],Ct[be--]=Ct[Ne+Me-1],Ct[Ne+--Me]=Z;else if(be!=8)return;return Ct},me=function(De){for(var Ct=null,be=1,Ne=null,Fe=0,dt=0;dt<8;dt++)De[dt]!==0?(Fe>be&&(Ct=Ne,be=Fe),Ne=null,Fe=0):(Ne===null&&(Ne=dt),++Fe);return Fe>be&&(Ct=Ne,be=Fe),Ct},ie=function(De){var Ct,be,Ne,Fe;if(typeof De=="number"){for(Ct=[],be=0;be<4;be++)Ct.unshift(De%256),De=w(De/256);return Ct.join(".")}else if(typeof De=="object"){for(Ct="",Ne=me(De),be=0;be<8;be++){if(Fe&&De[be]===0)continue;Fe&&(Fe=!1),Ne===be?(Ct+=be?":":"::",Fe=!0):(Ct+=De[be].toString(16),be<7&&(Ct+=":"))}return"["+Ct+"]"}return De},W={},de=s({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),Ye=s({},de,{"#":1,"?":1,"{":1,"}":1}),fe=s({},Ye,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rt=function(De,Ct){var be=l(De,0);return be>32&&be<127&&!i(Ct,De)?De:encodeURIComponent(De)},Te={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ve=function(De){return i(Te,De.scheme)},tt=function(De){return De.username!=""||De.password!=""},ht=function(De){return!De.host||De.cannotBeABaseURL||De.scheme=="file"},ge=function(De,Ct){var be;return De.length==2&&N.test(De.charAt(0))&&((be=De.charAt(1))==":"||!Ct&&be=="|")},ye=function(De){var Ct;return De.length>1&&ge(De.slice(0,2))&&(De.length==2||((Ct=De.charAt(2))==="/"||Ct==="\\"||Ct==="?")||Ct==="#")},je=function(De){var Ct=De.path,be=Ct.length;be&&(De.scheme!="file"||be!=1||!ge(Ct[0],!0))&&Ct.pop()},we=function(De){return De==="."||De.toLowerCase()==="%2e"},ce=function(De){return De=De.toLowerCase(),De===".."||De==="%2e."||De===".%2e"||De==="%2e%2e"},Y={},V={},U={},B={},Ae={},S={},k={},ae={},oe={},le={},K={},P={},T={},$={},se={},ke={},ve={},Be={},it={},We={},Et={},Tt=function(De,Ct,be,Ne){var Fe=be||Y,dt=0,Pe="",Ce=!1,ct=!1,qe=!1,Me,Z,Xe,gt;for(be||(De.scheme="",De.username="",De.password="",De.host=null,De.port=null,De.path=[],De.query=null,De.fragment=null,De.cannotBeABaseURL=!1,Ct=Ct.replace(He,"")),Ct=Ct.replace(Ze,""),Me=d(Ct);dt<=Me.length;){Z=Me[dt];switch(Fe){case Y:if(Z&&N.test(Z))Pe+=Z.toLowerCase(),Fe=V;else{if(be)return z;Fe=U;continue}break;case V:if(Z&&(Oe.test(Z)||Z=="+"||Z=="-"||Z=="."))Pe+=Z.toLowerCase();else if(Z==":"){if(be&&(Ve(De)!=i(Te,Pe)||Pe=="file"&&(tt(De)||De.port!==null)||De.scheme=="file"&&!De.host))return;if(De.scheme=Pe,be){Ve(De)&&Te[De.scheme]==De.port&&(De.port=null);return}Pe="",De.scheme=="file"?Fe=$:Ve(De)&&Ne&&Ne.scheme==De.scheme?Fe=B:Ve(De)?Fe=ae:Me[dt+1]=="/"?(Fe=Ae,dt++):(De.cannotBeABaseURL=!0,De.path.push(""),Fe=it)}else{if(be)return z;Pe="",Fe=U,dt=0;continue}break;case U:if(!Ne||Ne.cannotBeABaseURL&&Z!="#")return z;if(Ne.cannotBeABaseURL&&Z=="#"){De.scheme=Ne.scheme,De.path=Ne.path.slice(),De.query=Ne.query,De.fragment="",De.cannotBeABaseURL=!0,Fe=Et;break}Fe=Ne.scheme=="file"?$:S;continue;case B:if(Z=="/"&&Me[dt+1]=="/")Fe=oe,dt++;else{Fe=S;continue}break;case Ae:if(Z=="/"){Fe=le;break}else{Fe=Be;continue}case S:if(De.scheme=Ne.scheme,Z==ft)De.username=Ne.username,De.password=Ne.password,De.host=Ne.host,De.port=Ne.port,De.path=Ne.path.slice(),De.query=Ne.query;else if(Z=="/"||Z=="\\"&&Ve(De))Fe=k;else if(Z=="?")De.username=Ne.username,De.password=Ne.password,De.host=Ne.host,De.port=Ne.port,De.path=Ne.path.slice(),De.query="",Fe=We;else if(Z=="#")De.username=Ne.username,De.password=Ne.password,De.host=Ne.host,De.port=Ne.port,De.path=Ne.path.slice(),De.query=Ne.query,De.fragment="",Fe=Et;else{De.username=Ne.username,De.password=Ne.password,De.host=Ne.host,De.port=Ne.port,De.path=Ne.path.slice(),De.path.pop(),Fe=Be;continue}break;case k:if(Ve(De)&&(Z=="/"||Z=="\\"))Fe=oe;else if(Z=="/")Fe=le;else{De.username=Ne.username,De.password=Ne.password,De.host=Ne.host,De.port=Ne.port,Fe=Be;continue}break;case ae:if(Fe=oe,Z!="/"||Pe.charAt(dt+1)!="/")continue;dt++;break;case oe:if(Z!="/"&&Z!="\\"){Fe=le;continue}break;case le:if(Z=="@"){Ce&&(Pe="%40"+Pe),Ce=!0,Xe=d(Pe);for(var Mt=0;Mt65535)return D;De.port=Ve(De)&&ln===Te[De.scheme]?null:ln,Pe=""}if(be)return;Fe=ve;continue}else return D;break;case $:if(De.scheme="file",Z=="/"||Z=="\\")Fe=se;else if(Ne&&Ne.scheme=="file")if(Z==ft)De.host=Ne.host,De.path=Ne.path.slice(),De.query=Ne.query;else if(Z=="?")De.host=Ne.host,De.path=Ne.path.slice(),De.query="",Fe=We;else if(Z=="#")De.host=Ne.host,De.path=Ne.path.slice(),De.query=Ne.query,De.fragment="",Fe=Et;else{ye(Me.slice(dt).join(""))||(De.host=Ne.host,De.path=Ne.path.slice(),je(De)),Fe=Be;continue}else{Fe=Be;continue}break;case se:if(Z=="/"||Z=="\\"){Fe=ke;break}Ne&&Ne.scheme=="file"&&!ye(Me.slice(dt).join(""))&&(ge(Ne.path[0],!0)?De.path.push(Ne.path[0]):De.host=Ne.host),Fe=Be;continue;case ke:if(Z==ft||Z=="/"||Z=="\\"||Z=="?"||Z=="#"){if(!be&&ge(Pe))Fe=Be;else if(Pe==""){if(De.host="",be)return;Fe=ve}else{if(gt=$e(De,Pe),gt)return gt;if(De.host=="localhost"&&(De.host=""),be)return;Pe="",Fe=ve}continue}else Pe+=Z;break;case ve:if(Ve(De)){if(Fe=Be,Z!="/"&&Z!="\\")continue}else if(!be&&Z=="?")De.query="",Fe=We;else if(!be&&Z=="#")De.fragment="",Fe=Et;else if(Z!=ft&&(Fe=Be,Z!="/"))continue;break;case Be:if(Z==ft||Z=="/"||Z=="\\"&&Ve(De)||!be&&(Z=="?"||Z=="#")){if(ce(Pe)?(je(De),Z!="/"&&!(Z=="\\"&&Ve(De))&&De.path.push("")):we(Pe)?Z!="/"&&!(Z=="\\"&&Ve(De))&&De.path.push(""):(De.scheme=="file"&&!De.path.length&&ge(Pe)&&(De.host&&(De.host=""),Pe=Pe.charAt(0)+":"),De.path.push(Pe)),Pe="",De.scheme=="file"&&(Z==ft||Z=="?"||Z=="#"))for(;De.path.length>1&&De.path[0]==="";)De.path.shift();Z=="?"?(De.query="",Fe=We):Z=="#"&&(De.fragment="",Fe=Et)}else Pe+=rt(Z,Ye);break;case it:Z=="?"?(De.query="",Fe=We):Z=="#"?(De.fragment="",Fe=Et):Z!=ft&&(De.path[0]+=rt(Z,W));break;case We:!be&&Z=="#"?(De.fragment="",Fe=Et):Z!=ft&&(Z=="'"&&Ve(De)?De.query+="%27":Z=="#"?De.query+="%23":De.query+=rt(Z,W));break;case Et:Z!=ft&&(De.fragment+=rt(Z,de));break}dt++}},Ht=function(Ct){var be=m(this,Ht,"URL"),Ne=arguments.length>1?arguments[1]:void 0,Fe=String(Ct),dt=C(be,{type:"URL"}),Pe,Ce;if(Ne!==void 0){if(Ne instanceof Ht)Pe=M(Ne);else if(Ce=Tt(Pe={},String(Ne)),Ce)throw TypeError(Ce)}if(Ce=Tt(dt,Fe,null,Pe),Ce)throw TypeError(Ce);var ct=dt.searchParams=new E,qe=O(ct);qe.updateSearchParams(dt.query),qe.updateURL=function(){dt.query=String(ct)||null},n||(be.href=tn.call(be),be.origin=qt.call(be),be.protocol=gn.call(be),be.username=an.call(be),be.password=Tn.call(be),be.host=on.call(be),be.hostname=En.call(be),be.port=yn.call(be),be.pathname=vn.call(be),be.search=Rn.call(be),be.searchParams=Pn.call(be),be.hash=St.call(be))},It=Ht.prototype,tn=function(){var De=M(this),Ct=De.scheme,be=De.username,Ne=De.password,Fe=De.host,dt=De.port,Pe=De.path,Ce=De.query,ct=De.fragment,qe=Ct+":";return Fe!==null?(qe+="//",tt(De)&&(qe+=be+(Ne?":"+Ne:"")+"@"),qe+=ie(Fe),dt!==null&&(qe+=":"+dt)):Ct=="file"&&(qe+="//"),qe+=De.cannotBeABaseURL?Pe[0]:Pe.length?"/"+Pe.join("/"):"",Ce!==null&&(qe+="?"+Ce),ct!==null&&(qe+="#"+ct),qe},qt=function(){var De=M(this),Ct=De.scheme,be=De.port;if(Ct=="blob")try{return new URL(Ct.path[0]).origin}catch(Ne){return"null"}return Ct=="file"||!Ve(De)?"null":Ct+"://"+ie(De.host)+(be!==null?":"+be:"")},gn=function(){return M(this).scheme+":"},an=function(){return M(this).username},Tn=function(){return M(this).password},on=function(){var De=M(this),Ct=De.host,be=De.port;return Ct===null?"":be===null?ie(Ct):ie(Ct)+":"+be},En=function(){var De=M(this).host;return De===null?"":ie(De)},yn=function(){var De=M(this).port;return De===null?"":String(De)},vn=function(){var De=M(this),Ct=De.path;return De.cannotBeABaseURL?Ct[0]:Ct.length?"/"+Ct.join("/"):""},Rn=function(){var De=M(this).query;return De?"?"+De:""},Pn=function(){return M(this).searchParams},St=function(){var De=M(this).fragment;return De?"#"+De:""},bt=function(De,Ct){return{get:De,set:Ct,configurable:!0,enumerable:!0}};if(n&&u(It,{href:bt(tn,function(De){var Ct=M(this),be=String(De),Ne=Tt(Ct,be);if(Ne)throw TypeError(Ne);O(Ct.searchParams).updateSearchParams(Ct.query)}),origin:bt(qt),protocol:bt(gn,function(De){var Ct=M(this);Tt(Ct,String(De)+":",Y)}),username:bt(an,function(De){var Ct=M(this),be=d(String(De));if(ht(Ct))return;Ct.username="";for(var Ne=0;Ne children");U=B}}),U}function f(ce,Y,V){var U=0;return ce&&ce.forEach(function(B){if(U)return;U=B&&B.key===Y&&!B.props[V]}),U}function o(ce,Y,V){var U=ce.length===Y.length;return U&&ce.forEach(function(B,Ae){var S=Y[Ae];B&&S&&((B&&!S||!B&&S||(B.key!==S.key||V&&B.props[V]!==S.props[V]))&&(U=!1))}),U}function h(ce,Y){var V=[],U={},B=[];return ce.forEach(function(Ae){Ae&&d(Y,Ae.key)?B.length&&(U[Ae.key]=B,B=[]):B.push(Ae)}),Y.forEach(function(Ae){Ae&&Object.prototype.hasOwnProperty.call(U,Ae.key)&&(V=V.concat(U[Ae.key])),V.push(Ae)}),V=V.concat(B),V}var c=e("UwPn"),b={isAppearSupported:function(Y){return Y.transitionName&&Y.transitionAppear||Y.animation.appear},isEnterSupported:function(Y){return Y.transitionName&&Y.transitionEnter||Y.animation.enter},isLeaveSupported:function(Y){return Y.transitionName&&Y.transitionLeave||Y.animation.leave},allowAppearCallback:function(Y){return Y.transitionAppear||Y.animation.appear},allowEnterCallback:function(Y){return Y.transitionEnter||Y.animation.enter},allowLeaveCallback:function(Y){return Y.transitionLeave||Y.animation.leave}},E=b,O=function(){function ce(Y,V){for(var U=0;U children");return n.a.createElement(z,{key:oe.key,ref:function(K){U.childrenRefs[oe.key]=K},animation:B.animation,transitionName:B.transitionName,transitionEnter:B.transitionEnter,transitionAppear:B.transitionAppear,transitionLeave:B.transitionLeave},oe)}));var k=B.component;if(k){var ae=B;return typeof k=="string"&&(ae=G({className:B.className,style:B.style},B.componentProps)),n.a.createElement(k,ae,S)}return S[0]||null}}]),Y}(n.a.Component);Q.isAnimate=!0,Q.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:F,onEnter:F,onLeave:F,onAppear:F};var q=function(){var Y=this;this.performEnter=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillEnter(Y.handleDoneAdding.bind(Y,V,"enter")))},this.performAppear=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillAppear(Y.handleDoneAdding.bind(Y,V,"appear")))},this.handleDoneAdding=function(V,U){var B=Y.props;if(delete Y.currentlyAnimatingKeys[V],B.exclusive&&B!==Y.nextProps)return;var Ae=s(J(B));Y.isValidChildByKey(Ae,V)?U==="appear"?E.allowAppearCallback(B)&&(B.onAppear(V),B.onEnd(V,!0)):E.allowEnterCallback(B)&&(B.onEnter(V),B.onEnd(V,!0)):Y.performLeave(V)},this.performLeave=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillLeave(Y.handleDoneLeaving.bind(Y,V)))},this.handleDoneLeaving=function(V){var U=Y.props;if(delete Y.currentlyAnimatingKeys[V],U.exclusive&&U!==Y.nextProps)return;var B=s(J(U));if(Y.isValidChildByKey(B,V))Y.performEnter(V);else{var Ae=function(){E.allowLeaveCallback(U)&&(U.onLeave(V),U.onEnd(V,!1))};o(Y.state.children,B,U.showProp)?Ae():Y.setState({children:B},Ae)}}},He=i(Q),Ze=Object.assign||function(ce){for(var Y=1;Y=s?t?"":void 0:(d=m.charCodeAt(i),d<55296||d>56319||i+1===s||(l=m.charCodeAt(i+1))<56320||l>57343?t?m.charAt(i):d:t?m.slice(i,i+2):(d-55296<<10)+(l-56320)+65536)}};x.exports={codeAt:r(!1),charAt:r(!0)}},ecuC:function(x,g,e){"use strict";var a=e("MMxC"),n=e("uoF6"),r=e("FCfD"),t=e("1aI8"),u=e("eYKs"),v=u.codeAt,m=u.charAt,i="String Iterator",s=t.set,d=t.getterFor(i),l=n(function(o){s(this,{type:i,string:o,index:0})},"String",function(){var o=d(this),h=o.string,c=o.index,b;return c>=h.length?{value:void 0,done:!0}:(b=m(h,c),o.index+=b.length,{value:{codePoint:v(b,0),position:c},done:!1})});a({target:"String",proto:!0},{codePoints:function(){return new l(String(r(this)))}})},edbT:function(x,g,e){"use strict";e.d(g,"a",function(){return t});var a=e("TfIc");function n(){var u=Object(a.a)(),v=null,m=null;return{clear:function(){v=null,m=null},notify:function(){u(function(){for(var s=v;s;)s.callback(),s=s.next})},get:function(){for(var s=[],d=v;d;)s.push(d),d=d.next;return s},subscribe:function(s){var d=!0,l=m={callback:s,next:null,prev:m};return l.prev?l.prev.next=l:v=l,function(){if(!d||v===null)return;d=!1,l.next?l.next.prev=l.prev:m=l.prev,l.prev?l.prev.next=l.next:v=l.next}}}}var r={notify:function(){},get:function(){return[]}};function t(u,v){var m,i=r;function s(b){return o(),i.subscribe(b)}function d(){i.notify()}function l(){c.onStateChange&&c.onStateChange()}function f(){return Boolean(m)}function o(){m||(m=v?v.addNestedSub(l):u.subscribe(l),i=n())}function h(){m&&(m(),m=void 0,i.clear(),i=r)}var c={addNestedSub:s,notifyNestedSubs:d,handleChangeWrapper:l,isSubscribed:f,trySubscribe:o,tryUnsubscribe:h,getListeners:function(){return i}};return c}},"egz/":function(x,g){var e=Math.log;x.exports=Math.log1p||function(n){return(n=+n)>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},ehAy:function(x,g,e){"use strict";var a=e("MMxC"),n=e("zv1X").findIndex,r=e("eNh0"),t=e("kGMc"),u="findIndex",v=!0,m=t(u);u in[]&&Array(1)[u](function(){v=!1}),a({target:"Array",proto:!0,forced:v||!m},{findIndex:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}}),r(u)},en47:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Mgx3"),u={namespace:"newCourse",state:{actionTabs:{key:"",params:{}}},effects:{editCourse:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.u,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),submitCourse:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.Q,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getEditCourseData:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.B,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getSchoolOption:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.F,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),appplySchool:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.j,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},evbn:function(x,g){var e=0,a=Math.random();x.exports=function(n){return"Symbol("+String(n===void 0?"":n)+")_"+(++e+a).toString(36)}},"f/k9":function(x,g,e){"use strict";/** @license React vundefined +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,d;return{s:function(){u=r[Symbol.iterator]()},n:function(){var f=u.next();return i=f.done,f},e:function(f){s=!0,d=f},f:function(){try{!i&&u.return!=null&&u.return()}finally{if(s)throw d}}}}x.exports=n},bkVK:function(x,g,e){"use strict";var a=e("MMxC"),n=e("V85Q"),r=e("NQQk");a({target:"String",proto:!0,forced:r("link")},{link:function(u){return n(this,"a","href",u)}})},bmMU:function(x,g){var e=typeof Element!="undefined",a=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function t(u,v){if(u===v)return!0;if(u&&v&&typeof u=="object"&&typeof v=="object"){if(u.constructor!==v.constructor)return!1;var m,i,s;if(Array.isArray(u)){if(m=u.length,m!=v.length)return!1;for(i=m;i--!==0;)if(!t(u[i],v[i]))return!1;return!0}var d;if(a&&u instanceof Map&&v instanceof Map){if(u.size!==v.size)return!1;for(d=u.entries();!(i=d.next()).done;)if(!v.has(i.value[0]))return!1;for(d=u.entries();!(i=d.next()).done;)if(!t(i.value[1],v.get(i.value[0])))return!1;return!0}if(n&&u instanceof Set&&v instanceof Set){if(u.size!==v.size)return!1;for(d=u.entries();!(i=d.next()).done;)if(!v.has(i.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(v)){if(m=u.length,m!=v.length)return!1;for(i=m;i--!==0;)if(u[i]!==v[i])return!1;return!0}if(u.constructor===RegExp)return u.source===v.source&&u.flags===v.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===v.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===v.toString();if(s=Object.keys(u),m=s.length,m!==Object.keys(v).length)return!1;for(i=m;i--!==0;)if(!Object.prototype.hasOwnProperty.call(v,s[i]))return!1;if(e&&u instanceof Element)return!1;for(i=m;i--!==0;){if((s[i]==="_owner"||s[i]==="__v"||s[i]==="__o")&&u.$$typeof)continue;if(!t(u[s[i]],v[s[i]]))return!1}return!0}return u!==u&&v!==v}x.exports=function(v,m){try{return t(v,m)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}}},bntm:function(x,g,e){"use strict";e.d(g,"d",function(){return a}),e.d(g,"b",function(){return n}),e.d(g,"c",function(){return r}),e.d(g,"a",function(){return t});function a(u){try{u.mozRequestFullScreen?u.mozRequestFullScreen():u.webkitRequestFullScreen&&u.webkitRequestFullScreen()}catch(v){console.log(v,":e")}}function n(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}var r=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function t(){var u=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,v=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(u==null)}},bu2F:function(x,g,e){"use strict";var a=e("w8CP"),n=e("7ckf"),r=e("qlaj"),t=e("2j6C"),u=a.sum32,v=a.sum32_4,m=a.sum32_5,i=r.ch32,s=r.maj32,d=r.s0_256,l=r.s1_256,f=r.g0_256,o=r.g1_256,h=n.BlockHash,c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=c,this.W=new Array(64)}a.inherits(b,h),x.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(O,C){for(var M=this.W,w=0;w<16;w++)M[w]=O[C+w];for(;w=0)return t[m].splice(d,1),!0}return!1},publish:function(m){if(!t[m])return!1;var i=Array.prototype.slice.call(arguments,1);return t[m].forEach(function(s){s.apply(null,i)}),this}};return r?Object.assign(r,u):u}var n=new a;g.a=n},dnEI:function(x,g,e){var a=e("ukPv");x.exports=function(n,r){var t=a.console;t&&t.error&&(arguments.length===1?t.error(n):t.error(n,r))}},dnZx:function(x,g,e){"use strict";e("KvPC");var a=e("MMxC"),n=e("tny8"),r=e("lgSf"),t=e("ukPv"),u=e("HctQ"),v=e("NMFW"),m=e("igoe"),i=e("jtLI"),s=e("qitQ"),d=e("1H91"),l=e("eYKs").codeAt,f=e("Di6M"),o=e("kiNa"),h=e("5JgN"),c=e("1aI8"),b=t.URL,E=h.URLSearchParams,O=h.getState,C=c.set,M=c.getterFor("URL"),w=Math.floor,A=Math.pow,L="Invalid authority",z="Invalid scheme",G="Invalid host",D="Invalid port",N=/[A-Za-z]/,Oe=/[\d+-.A-Za-z]/,ue=/\d/,re=/^(0x|0X)/,ee=/^[0-7]+$/,J=/^\d+$/,F=/^[\dA-Fa-f]+$/,Q=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,q=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,He=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ze=/[\u0009\u000A\u000D]/g,ft,$e=function(De,Ct){var be,Fe,Ne;if(Ct.charAt(0)=="["){if(Ct.charAt(Ct.length-1)!="]")return G;if(be=X(Ct.slice(1,-1)),!be)return G;De.host=be}else if(Ve(De)){if(Ct=f(Ct),Q.test(Ct))return G;if(be=Ue(Ct),be===null)return G;De.host=be}else{if(q.test(Ct))return G;for(be="",Fe=d(Ct),Ne=0;Ne4)return De;for(Fe=[],Ne=0;Ne1&&dt.charAt(0)=="0"&&(Pe=re.test(dt)?16:8,dt=dt.slice(Pe==8?1:2)),dt==="")Ce=0;else{if(!(Pe==10?J:Pe==8?ee:F).test(dt))return De;Ce=parseInt(dt,Pe)}Fe.push(Ce)}for(Ne=0;Ne=A(256,5-be))return null}else if(Ce>255)return null;for(ct=Fe.pop(),Ne=0;Ne6)return;for(Ce=0;Xe();){if(ct=null,Ce>0)if(Xe()=="."&&Ce<4)Ne++;else return;if(!ue.test(Xe()))return;for(;ue.test(Xe());){if(qe=parseInt(Xe(),10),ct===null)ct=qe;else{if(ct==0)return;ct=ct*10+qe}if(ct>255)return;Ne++}Ct[be]=Ct[be]*256+ct,Ce++,(Ce==2||Ce==4)&&be++}if(Ce!=4)return;break}else if(Xe()==":"){if(Ne++,!Xe())return}else if(Xe())return;Ct[be++]=dt}if(Fe!==null)for(Me=be-Fe,be=7;be!=0&&Me>0;)Z=Ct[be],Ct[be--]=Ct[Fe+Me-1],Ct[Fe+--Me]=Z;else if(be!=8)return;return Ct},me=function(De){for(var Ct=null,be=1,Fe=null,Ne=0,dt=0;dt<8;dt++)De[dt]!==0?(Ne>be&&(Ct=Fe,be=Ne),Fe=null,Ne=0):(Fe===null&&(Fe=dt),++Ne);return Ne>be&&(Ct=Fe,be=Ne),Ct},ie=function(De){var Ct,be,Fe,Ne;if(typeof De=="number"){for(Ct=[],be=0;be<4;be++)Ct.unshift(De%256),De=w(De/256);return Ct.join(".")}else if(typeof De=="object"){for(Ct="",Fe=me(De),be=0;be<8;be++){if(Ne&&De[be]===0)continue;Ne&&(Ne=!1),Fe===be?(Ct+=be?":":"::",Ne=!0):(Ct+=De[be].toString(16),be<7&&(Ct+=":"))}return"["+Ct+"]"}return De},W={},de=s({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),Ye=s({},de,{"#":1,"?":1,"{":1,"}":1}),fe=s({},Ye,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rt=function(De,Ct){var be=l(De,0);return be>32&&be<127&&!i(Ct,De)?De:encodeURIComponent(De)},Te={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ve=function(De){return i(Te,De.scheme)},tt=function(De){return De.username!=""||De.password!=""},ht=function(De){return!De.host||De.cannotBeABaseURL||De.scheme=="file"},ge=function(De,Ct){var be;return De.length==2&&N.test(De.charAt(0))&&((be=De.charAt(1))==":"||!Ct&&be=="|")},ye=function(De){var Ct;return De.length>1&&ge(De.slice(0,2))&&(De.length==2||((Ct=De.charAt(2))==="/"||Ct==="\\"||Ct==="?")||Ct==="#")},je=function(De){var Ct=De.path,be=Ct.length;be&&(De.scheme!="file"||be!=1||!ge(Ct[0],!0))&&Ct.pop()},we=function(De){return De==="."||De.toLowerCase()==="%2e"},ce=function(De){return De=De.toLowerCase(),De===".."||De==="%2e."||De===".%2e"||De==="%2e%2e"},Y={},V={},U={},B={},Ae={},S={},k={},ae={},oe={},le={},K={},P={},T={},$={},se={},ke={},ve={},Be={},it={},We={},Et={},Tt=function(De,Ct,be,Fe){var Ne=be||Y,dt=0,Pe="",Ce=!1,ct=!1,qe=!1,Me,Z,Xe,gt;for(be||(De.scheme="",De.username="",De.password="",De.host=null,De.port=null,De.path=[],De.query=null,De.fragment=null,De.cannotBeABaseURL=!1,Ct=Ct.replace(He,"")),Ct=Ct.replace(Ze,""),Me=d(Ct);dt<=Me.length;){Z=Me[dt];switch(Ne){case Y:if(Z&&N.test(Z))Pe+=Z.toLowerCase(),Ne=V;else{if(be)return z;Ne=U;continue}break;case V:if(Z&&(Oe.test(Z)||Z=="+"||Z=="-"||Z=="."))Pe+=Z.toLowerCase();else if(Z==":"){if(be&&(Ve(De)!=i(Te,Pe)||Pe=="file"&&(tt(De)||De.port!==null)||De.scheme=="file"&&!De.host))return;if(De.scheme=Pe,be){Ve(De)&&Te[De.scheme]==De.port&&(De.port=null);return}Pe="",De.scheme=="file"?Ne=$:Ve(De)&&Fe&&Fe.scheme==De.scheme?Ne=B:Ve(De)?Ne=ae:Me[dt+1]=="/"?(Ne=Ae,dt++):(De.cannotBeABaseURL=!0,De.path.push(""),Ne=it)}else{if(be)return z;Pe="",Ne=U,dt=0;continue}break;case U:if(!Fe||Fe.cannotBeABaseURL&&Z!="#")return z;if(Fe.cannotBeABaseURL&&Z=="#"){De.scheme=Fe.scheme,De.path=Fe.path.slice(),De.query=Fe.query,De.fragment="",De.cannotBeABaseURL=!0,Ne=Et;break}Ne=Fe.scheme=="file"?$:S;continue;case B:if(Z=="/"&&Me[dt+1]=="/")Ne=oe,dt++;else{Ne=S;continue}break;case Ae:if(Z=="/"){Ne=le;break}else{Ne=Be;continue}case S:if(De.scheme=Fe.scheme,Z==ft)De.username=Fe.username,De.password=Fe.password,De.host=Fe.host,De.port=Fe.port,De.path=Fe.path.slice(),De.query=Fe.query;else if(Z=="/"||Z=="\\"&&Ve(De))Ne=k;else if(Z=="?")De.username=Fe.username,De.password=Fe.password,De.host=Fe.host,De.port=Fe.port,De.path=Fe.path.slice(),De.query="",Ne=We;else if(Z=="#")De.username=Fe.username,De.password=Fe.password,De.host=Fe.host,De.port=Fe.port,De.path=Fe.path.slice(),De.query=Fe.query,De.fragment="",Ne=Et;else{De.username=Fe.username,De.password=Fe.password,De.host=Fe.host,De.port=Fe.port,De.path=Fe.path.slice(),De.path.pop(),Ne=Be;continue}break;case k:if(Ve(De)&&(Z=="/"||Z=="\\"))Ne=oe;else if(Z=="/")Ne=le;else{De.username=Fe.username,De.password=Fe.password,De.host=Fe.host,De.port=Fe.port,Ne=Be;continue}break;case ae:if(Ne=oe,Z!="/"||Pe.charAt(dt+1)!="/")continue;dt++;break;case oe:if(Z!="/"&&Z!="\\"){Ne=le;continue}break;case le:if(Z=="@"){Ce&&(Pe="%40"+Pe),Ce=!0,Xe=d(Pe);for(var Mt=0;Mt65535)return D;De.port=Ve(De)&&ln===Te[De.scheme]?null:ln,Pe=""}if(be)return;Ne=ve;continue}else return D;break;case $:if(De.scheme="file",Z=="/"||Z=="\\")Ne=se;else if(Fe&&Fe.scheme=="file")if(Z==ft)De.host=Fe.host,De.path=Fe.path.slice(),De.query=Fe.query;else if(Z=="?")De.host=Fe.host,De.path=Fe.path.slice(),De.query="",Ne=We;else if(Z=="#")De.host=Fe.host,De.path=Fe.path.slice(),De.query=Fe.query,De.fragment="",Ne=Et;else{ye(Me.slice(dt).join(""))||(De.host=Fe.host,De.path=Fe.path.slice(),je(De)),Ne=Be;continue}else{Ne=Be;continue}break;case se:if(Z=="/"||Z=="\\"){Ne=ke;break}Fe&&Fe.scheme=="file"&&!ye(Me.slice(dt).join(""))&&(ge(Fe.path[0],!0)?De.path.push(Fe.path[0]):De.host=Fe.host),Ne=Be;continue;case ke:if(Z==ft||Z=="/"||Z=="\\"||Z=="?"||Z=="#"){if(!be&&ge(Pe))Ne=Be;else if(Pe==""){if(De.host="",be)return;Ne=ve}else{if(gt=$e(De,Pe),gt)return gt;if(De.host=="localhost"&&(De.host=""),be)return;Pe="",Ne=ve}continue}else Pe+=Z;break;case ve:if(Ve(De)){if(Ne=Be,Z!="/"&&Z!="\\")continue}else if(!be&&Z=="?")De.query="",Ne=We;else if(!be&&Z=="#")De.fragment="",Ne=Et;else if(Z!=ft&&(Ne=Be,Z!="/"))continue;break;case Be:if(Z==ft||Z=="/"||Z=="\\"&&Ve(De)||!be&&(Z=="?"||Z=="#")){if(ce(Pe)?(je(De),Z!="/"&&!(Z=="\\"&&Ve(De))&&De.path.push("")):we(Pe)?Z!="/"&&!(Z=="\\"&&Ve(De))&&De.path.push(""):(De.scheme=="file"&&!De.path.length&&ge(Pe)&&(De.host&&(De.host=""),Pe=Pe.charAt(0)+":"),De.path.push(Pe)),Pe="",De.scheme=="file"&&(Z==ft||Z=="?"||Z=="#"))for(;De.path.length>1&&De.path[0]==="";)De.path.shift();Z=="?"?(De.query="",Ne=We):Z=="#"&&(De.fragment="",Ne=Et)}else Pe+=rt(Z,Ye);break;case it:Z=="?"?(De.query="",Ne=We):Z=="#"?(De.fragment="",Ne=Et):Z!=ft&&(De.path[0]+=rt(Z,W));break;case We:!be&&Z=="#"?(De.fragment="",Ne=Et):Z!=ft&&(Z=="'"&&Ve(De)?De.query+="%27":Z=="#"?De.query+="%23":De.query+=rt(Z,W));break;case Et:Z!=ft&&(De.fragment+=rt(Z,de));break}dt++}},Ht=function(Ct){var be=m(this,Ht,"URL"),Fe=arguments.length>1?arguments[1]:void 0,Ne=String(Ct),dt=C(be,{type:"URL"}),Pe,Ce;if(Fe!==void 0){if(Fe instanceof Ht)Pe=M(Fe);else if(Ce=Tt(Pe={},String(Fe)),Ce)throw TypeError(Ce)}if(Ce=Tt(dt,Ne,null,Pe),Ce)throw TypeError(Ce);var ct=dt.searchParams=new E,qe=O(ct);qe.updateSearchParams(dt.query),qe.updateURL=function(){dt.query=String(ct)||null},n||(be.href=tn.call(be),be.origin=qt.call(be),be.protocol=gn.call(be),be.username=an.call(be),be.password=Tn.call(be),be.host=on.call(be),be.hostname=En.call(be),be.port=yn.call(be),be.pathname=vn.call(be),be.search=Rn.call(be),be.searchParams=Pn.call(be),be.hash=St.call(be))},It=Ht.prototype,tn=function(){var De=M(this),Ct=De.scheme,be=De.username,Fe=De.password,Ne=De.host,dt=De.port,Pe=De.path,Ce=De.query,ct=De.fragment,qe=Ct+":";return Ne!==null?(qe+="//",tt(De)&&(qe+=be+(Fe?":"+Fe:"")+"@"),qe+=ie(Ne),dt!==null&&(qe+=":"+dt)):Ct=="file"&&(qe+="//"),qe+=De.cannotBeABaseURL?Pe[0]:Pe.length?"/"+Pe.join("/"):"",Ce!==null&&(qe+="?"+Ce),ct!==null&&(qe+="#"+ct),qe},qt=function(){var De=M(this),Ct=De.scheme,be=De.port;if(Ct=="blob")try{return new URL(Ct.path[0]).origin}catch(Fe){return"null"}return Ct=="file"||!Ve(De)?"null":Ct+"://"+ie(De.host)+(be!==null?":"+be:"")},gn=function(){return M(this).scheme+":"},an=function(){return M(this).username},Tn=function(){return M(this).password},on=function(){var De=M(this),Ct=De.host,be=De.port;return Ct===null?"":be===null?ie(Ct):ie(Ct)+":"+be},En=function(){var De=M(this).host;return De===null?"":ie(De)},yn=function(){var De=M(this).port;return De===null?"":String(De)},vn=function(){var De=M(this),Ct=De.path;return De.cannotBeABaseURL?Ct[0]:Ct.length?"/"+Ct.join("/"):""},Rn=function(){var De=M(this).query;return De?"?"+De:""},Pn=function(){return M(this).searchParams},St=function(){var De=M(this).fragment;return De?"#"+De:""},bt=function(De,Ct){return{get:De,set:Ct,configurable:!0,enumerable:!0}};if(n&&u(It,{href:bt(tn,function(De){var Ct=M(this),be=String(De),Fe=Tt(Ct,be);if(Fe)throw TypeError(Fe);O(Ct.searchParams).updateSearchParams(Ct.query)}),origin:bt(qt),protocol:bt(gn,function(De){var Ct=M(this);Tt(Ct,String(De)+":",Y)}),username:bt(an,function(De){var Ct=M(this),be=d(String(De));if(ht(Ct))return;Ct.username="";for(var Fe=0;Fe children");U=B}}),U}function f(ce,Y,V){var U=0;return ce&&ce.forEach(function(B){if(U)return;U=B&&B.key===Y&&!B.props[V]}),U}function o(ce,Y,V){var U=ce.length===Y.length;return U&&ce.forEach(function(B,Ae){var S=Y[Ae];B&&S&&((B&&!S||!B&&S||(B.key!==S.key||V&&B.props[V]!==S.props[V]))&&(U=!1))}),U}function h(ce,Y){var V=[],U={},B=[];return ce.forEach(function(Ae){Ae&&d(Y,Ae.key)?B.length&&(U[Ae.key]=B,B=[]):B.push(Ae)}),Y.forEach(function(Ae){Ae&&Object.prototype.hasOwnProperty.call(U,Ae.key)&&(V=V.concat(U[Ae.key])),V.push(Ae)}),V=V.concat(B),V}var c=e("UwPn"),b={isAppearSupported:function(Y){return Y.transitionName&&Y.transitionAppear||Y.animation.appear},isEnterSupported:function(Y){return Y.transitionName&&Y.transitionEnter||Y.animation.enter},isLeaveSupported:function(Y){return Y.transitionName&&Y.transitionLeave||Y.animation.leave},allowAppearCallback:function(Y){return Y.transitionAppear||Y.animation.appear},allowEnterCallback:function(Y){return Y.transitionEnter||Y.animation.enter},allowLeaveCallback:function(Y){return Y.transitionLeave||Y.animation.leave}},E=b,O=function(){function ce(Y,V){for(var U=0;U children");return n.a.createElement(z,{key:oe.key,ref:function(K){U.childrenRefs[oe.key]=K},animation:B.animation,transitionName:B.transitionName,transitionEnter:B.transitionEnter,transitionAppear:B.transitionAppear,transitionLeave:B.transitionLeave},oe)}));var k=B.component;if(k){var ae=B;return typeof k=="string"&&(ae=G({className:B.className,style:B.style},B.componentProps)),n.a.createElement(k,ae,S)}return S[0]||null}}]),Y}(n.a.Component);Q.isAnimate=!0,Q.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:F,onEnter:F,onLeave:F,onAppear:F};var q=function(){var Y=this;this.performEnter=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillEnter(Y.handleDoneAdding.bind(Y,V,"enter")))},this.performAppear=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillAppear(Y.handleDoneAdding.bind(Y,V,"appear")))},this.handleDoneAdding=function(V,U){var B=Y.props;if(delete Y.currentlyAnimatingKeys[V],B.exclusive&&B!==Y.nextProps)return;var Ae=s(J(B));Y.isValidChildByKey(Ae,V)?U==="appear"?E.allowAppearCallback(B)&&(B.onAppear(V),B.onEnd(V,!0)):E.allowEnterCallback(B)&&(B.onEnter(V),B.onEnd(V,!0)):Y.performLeave(V)},this.performLeave=function(V){Y.childrenRefs[V]&&(Y.currentlyAnimatingKeys[V]=!0,Y.childrenRefs[V].componentWillLeave(Y.handleDoneLeaving.bind(Y,V)))},this.handleDoneLeaving=function(V){var U=Y.props;if(delete Y.currentlyAnimatingKeys[V],U.exclusive&&U!==Y.nextProps)return;var B=s(J(U));if(Y.isValidChildByKey(B,V))Y.performEnter(V);else{var Ae=function(){E.allowLeaveCallback(U)&&(U.onLeave(V),U.onEnd(V,!1))};o(Y.state.children,B,U.showProp)?Ae():Y.setState({children:B},Ae)}}},He=i(Q),Ze=Object.assign||function(ce){for(var Y=1;Y=s?t?"":void 0:(d=m.charCodeAt(i),d<55296||d>56319||i+1===s||(l=m.charCodeAt(i+1))<56320||l>57343?t?m.charAt(i):d:t?m.slice(i,i+2):(d-55296<<10)+(l-56320)+65536)}};x.exports={codeAt:r(!1),charAt:r(!0)}},ecuC:function(x,g,e){"use strict";var a=e("MMxC"),n=e("uoF6"),r=e("FCfD"),t=e("1aI8"),u=e("eYKs"),v=u.codeAt,m=u.charAt,i="String Iterator",s=t.set,d=t.getterFor(i),l=n(function(o){s(this,{type:i,string:o,index:0})},"String",function(){var o=d(this),h=o.string,c=o.index,b;return c>=h.length?{value:void 0,done:!0}:(b=m(h,c),o.index+=b.length,{value:{codePoint:v(b,0),position:c},done:!1})});a({target:"String",proto:!0},{codePoints:function(){return new l(String(r(this)))}})},edbT:function(x,g,e){"use strict";e.d(g,"a",function(){return t});var a=e("TfIc");function n(){var u=Object(a.a)(),v=null,m=null;return{clear:function(){v=null,m=null},notify:function(){u(function(){for(var s=v;s;)s.callback(),s=s.next})},get:function(){for(var s=[],d=v;d;)s.push(d),d=d.next;return s},subscribe:function(s){var d=!0,l=m={callback:s,next:null,prev:m};return l.prev?l.prev.next=l:v=l,function(){if(!d||v===null)return;d=!1,l.next?l.next.prev=l.prev:m=l.prev,l.prev?l.prev.next=l.next:v=l.next}}}}var r={notify:function(){},get:function(){return[]}};function t(u,v){var m,i=r;function s(b){return o(),i.subscribe(b)}function d(){i.notify()}function l(){c.onStateChange&&c.onStateChange()}function f(){return Boolean(m)}function o(){m||(m=v?v.addNestedSub(l):u.subscribe(l),i=n())}function h(){m&&(m(),m=void 0,i.clear(),i=r)}var c={addNestedSub:s,notifyNestedSubs:d,handleChangeWrapper:l,isSubscribed:f,trySubscribe:o,tryUnsubscribe:h,getListeners:function(){return i}};return c}},"egz/":function(x,g){var e=Math.log;x.exports=Math.log1p||function(n){return(n=+n)>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},ehAy:function(x,g,e){"use strict";var a=e("MMxC"),n=e("zv1X").findIndex,r=e("eNh0"),t=e("kGMc"),u="findIndex",v=!0,m=t(u);u in[]&&Array(1)[u](function(){v=!1}),a({target:"Array",proto:!0,forced:v||!m},{findIndex:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}}),r(u)},en47:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("Mgx3"),u={namespace:"newCourse",state:{actionTabs:{key:"",params:{}}},effects:{editCourse:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.u,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),submitCourse:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.Q,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getEditCourseData:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.B,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),getSchoolOption:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.F,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),appplySchool:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,d(t.j,s);case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},evbn:function(x,g){var e=0,a=Math.random();x.exports=function(n){return"Symbol("+String(n===void 0?"":n)+")_"+(++e+a).toString(36)}},"f/k9":function(x,g,e){"use strict";/** @license React vundefined * use-subscription.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a=e("MgzW"),n=e("q1tI");g.useSubscription=function(r){var t=r.getCurrentValue,u=r.subscribe,v=n.useState(function(){return{getCurrentValue:t,subscribe:u,value:t()}});r=v[0];var m=v[1];return v=r.value,(r.getCurrentValue!==t||r.subscribe!==u)&&(v=t(),m({getCurrentValue:t,subscribe:u,value:v})),n.useDebugValue(v),n.useEffect(function(){function i(){if(!s){var l=t();m(function(f){return f.getCurrentValue!==t||f.subscribe!==u||f.value===l?f:a({},f,{value:l})})}}var s=!1,d=u(i);return i(),function(){s=!0,d()}},[t,u]),v}},f1E4:function(x,g,e){var a=e("tSXo");x.exports=function(n){if(!a(n))throw TypeError(String(n)+" is not an object");return n}},fDrP:function(x,g,e){"use strict";var a=e("MMxC"),n=e("bIKR"),r=e("m0kY"),t=e("oa35"),u=e("cTDu"),v=e("nMuc"),m=e("arQb"),i=e("jMDO"),s=e("kGMc"),d=i("splice"),l=s("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,o=Math.min,h=9007199254740991,c="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d||!l},{splice:function(E,O){var C=u(this),M=t(C.length),w=n(E,M),A=arguments.length,L,z,G,D,N,Oe;if(A===0?L=z=0:A===1?(L=0,z=M-w):(L=A-2,z=o(f(r(O),0),M-w)),M+L-z>h)throw TypeError(c);for(G=v(C,z),D=0;DM-z+L;D--)delete C[D-1]}else if(L>z)for(D=M-z;D>w;D--)N=D+z-1,Oe=D+L-1,N in C?C[Oe]=C[N]:delete C[Oe];for(D=0;D1?arguments[1]:void 0)}}),r("includes")},fIMf:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("m47v"),u={namespace:"virtualSpaces",state:{showMenu:!0,actionTabs:{key:"",params:{},module_id:""},virtualSpacesDetails:{},menus:[]},effects:{setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)}),setShowMenu:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{showMenu:s}});case 4:case"end":return o.stop()}},v)}),getVirtualSpacesDetails:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.c,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{virtualSpacesDetails:Object(a.a)({},f)}});case 7:case"end":return h.stop()}},v)}),getVirtualSpacesMenus:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{menus:f}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},fL0r:function(x,g,e){"use strict";(function(a){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol?"symbol":typeof Ge},r=function(){var Ge=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103;return function(te,Ie,ze,mt){var Ot=te&&te.defaultProps,Rt=arguments.length-3;if(!Ie&&Rt!==0&&(Ie={}),Ie&&Ot)for(var he in Ot)Ie[he]===void 0&&(Ie[he]=Ot[he]);else Ie||(Ie=Ot||{});if(Rt===1)Ie.children=mt;else if(Rt>1){for(var Re=Array(Rt),I=0;I=0)continue;if(!Object.prototype.hasOwnProperty.call(Ge,Ie))continue;te[Ie]=Ge[Ie]}return te},C=function(Ge,ne){if(!Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:Ge},M=typeof a=="undefined"?self:a,w=function Ge(ne,te,Ie,ze){var mt=Object.getOwnPropertyDescriptor(ne,te);if(mt===void 0){var Ot=Object.getPrototypeOf(ne);Ot!==null&&Ge(Ot,te,Ie,ze)}else if("value"in mt&&mt.writable)mt.value=Ie;else{var Rt=mt.set;Rt!==void 0&&Rt.call(ze,Ie)}return Ie},A=function(){function Ge(ne,te){var Ie=[],ze=!0,mt=!1,Ot=void 0;try{for(var Rt=ne[Symbol.iterator](),he;!(ze=(he=Rt.next()).done)&&!(Ie.push(he.value),te&&Ie.length===te);ze=!0);}catch(Re){mt=!0,Ot=Re}finally{try{!ze&&Rt.return&&Rt.return()}finally{if(mt)throw Ot}}return Ie}return function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return Ge(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),L=function(Ge,ne){if(Array.isArray(Ge))return Ge;if(Symbol.iterator in Object(Ge)){for(var te=[],Ie=Ge[Symbol.iterator](),ze;!(ze=Ie.next()).done&&!(te.push(ze.value),ne&&te.length===ne););return te}else throw new TypeError("Invalid attempt to destructure non-iterable instance")},z=function(Ge,ne){return Object.freeze(Object.defineProperties(Ge,{raw:{value:Object.freeze(ne)}}))},G=function(Ge,ne){return Ge.raw=ne,Ge},D=function(Ge,ne,te){if(Ge===te)throw new ReferenceError(ne+" is not defined - temporal dead zone");return Ge},N={},Oe=function(Ge){return Array.isArray(Ge)?Ge:Array.from(Ge)},ue=function(Ge){if(Array.isArray(Ge)){for(var ne=0,te=Array(Ge.length);neGe)}function Ye(Ge){for(var ne in Ge)(Ge instanceof Ye||F.call(Ge,ne))&&Q(this,ne,{value:Ge[ne],enumerable:!0,writable:!0,configurable:!0})}Ye.prototype=He(null);function fe(){Q(this,"length",{writable:!0,value:0}),arguments.length&&$e.apply(this,Ze.call(arguments))}fe.prototype=He(null);function rt(){if(ie.disableRegExpRestore)return function(){};for(var Ge={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},ne=!1,te=1;te<=9;te++)ne=(Ge["$"+te]=RegExp["$"+te])||ne;return function(){var Ie=/[.?*+^$[\]\\(){}|-]/g,ze=Ge.lastMatch.replace(Ie,"\\$&"),mt=new fe;if(ne)for(var Ot=1;Ot<=9;Ot++){var Rt=Ge["$"+Ot];Rt?(Rt=Rt.replace(Ie,"\\$&"),ze=ze.replace(Rt,"("+Rt+")")):ze="()"+ze,$e.call(mt,ze.slice(0,ze.indexOf("(")+1)),ze=ze.slice(ze.indexOf("(")+1)}var he=Ue.call(mt,"")+ze;he=he.replace(/(\\\(|\\\)|[^()])+/g,function(I){return"[\\s\\S]{"+I.replace("\\","").length+"}"});var Re=new RegExp(he,Ge.multiline?"gm":"g");Re.lastIndex=Ge.leftContext.length,Re.exec(Ge.input)}}function Te(Ge){if(Ge===null)throw new TypeError("Cannot convert null or undefined to object");return(typeof Ge=="undefined"?"undefined":re.typeof(Ge))==="object"?Ge:Object(Ge)}function Ve(Ge){return typeof Ge=="number"?Ge:Number(Ge)}function tt(Ge){var ne=Ve(Ge);return isNaN(ne)?0:ne===0||ne===-0||ne===Infinity||ne===-Infinity?ne:ne<0?Math.floor(Math.abs(ne))*-1:Math.floor(Math.abs(ne))}function ht(Ge){var ne=tt(Ge);return ne<=0?0:ne===Infinity?Math.pow(2,53)-1:Math.min(ne,Math.pow(2,53)-1)}function ge(Ge){return F.call(Ge,"__getInternalProperties")?Ge.__getInternalProperties(W):He(null)}var ye="[a-z]{3}(?:-[a-z]{3}){0,2}",je="(?:[a-z]{2,3}(?:-"+ye+")?|[a-z]{4}|[a-z]{5,8})",we="[a-z]{4}",ce="(?:[a-z]{2}|\\d{3})",Y="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",V="[0-9a-wy-z]",U=V+"(?:-[a-z0-9]{2,8})+",B="x(?:-[a-z0-9]{1,8})+",Ae="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",S="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",k="(?:"+Ae+"|"+S+")",ae=je+"(?:-"+we+")?(?:-"+ce+")?(?:-"+Y+")*(?:-"+U+")*(?:-"+B+")?",oe=RegExp("^(?:"+ae+"|"+B+"|"+k+")$","i"),le=RegExp("^(?!x).*?-("+Y+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),K=RegExp("^(?!x).*?-("+V+")-(?:\\w+-(?!x-))*\\1\\b","i"),P=RegExp("-"+U,"ig"),T=void 0;function $(Ge){T=Ge}var se={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}};function ke(Ge){for(var ne=Ge.length;ne--;){var te=Ge.charAt(ne);te>="a"&&te<="z"&&(Ge=Ge.slice(0,ne)+te.toUpperCase()+Ge.slice(ne+1))}return Ge}function ve(Ge){return oe.test(Ge)?le.test(Ge)?!1:!K.test(Ge):!1}function Be(Ge){var ne=void 0,te=void 0;Ge=Ge.toLowerCase(),te=Ge.split("-");for(var Ie=1,ze=te.length;Ie1&&(ne.sort(),Ge=Ge.replace(RegExp("(?:"+P.source+")+","i"),Ue.call(ne,""))),F.call(se.tags,Ge)&&(Ge=se.tags[Ge]),te=Ge.split("-");for(var mt=1,Ot=te.length;mt-1)return te;var Ie=te.lastIndexOf("-");if(Ie<0)return;Ie>=2&&te.charAt(Ie-2)==="-"&&(Ie-=2),te=te.substring(0,Ie)}}function tn(Ge,ne){for(var te=0,Ie=ne.length,ze=void 0,mt=void 0,Ot=void 0;te2){var or=he[Cn+1],er=xn.call(kt,or);er!==-1&&(Xt=or,Jt="-"+Vt+"-"+Xt)}else{var sr=xn(kt,"true");sr!==-1&&(Xt="true")}}if(F.call(te,"[["+Vt+"]]")){var ir=te["[["+Vt+"]]"];xn.call(kt,ir)!==-1&&(ir!==Xt&&(Xt=ir,Jt=""))}yt["[["+Vt+"]]"]=Xt,wt+=Jt,Lt++}if(wt.length>2){var gr=Rt.indexOf("-x-");if(gr===-1)Rt=Rt+wt;else{var Vr=Rt.substring(0,gr),$r=Rt.substring(gr);Rt=Vr+wt+$r}Rt=Be(Rt)}return yt["[[locale]]"]=Rt,yt}function an(Ge,ne){for(var te=ne.length,Ie=new fe,ze=0;zeIe)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(mt)}return ze}var vn={};function Rn(Ge){var ne=Ht(Ge);{for(var te=[],Ie=ne.length,ze=0;zemt;mt++){var Ot=te[mt],Rt={};Rt.type=Ot["[[type]]"],Rt.value=Ot["[[value]]"],Ie[ze]=Rt,ze+=1}return Ie}function be(Ge,ne){var te=ge(Ge),Ie=te["[[dataLocale]]"],ze=te["[[numberingSystem]]"],mt=ie.NumberFormat["[[localeData]]"][Ie],Ot=mt.symbols[ze]||mt.symbols.latn,Rt=void 0;!isNaN(ne)&&ne<0?(ne=-ne,Rt=te["[[negativePattern]]"]):Rt=te["[[positivePattern]]"];for(var he=new fe,Re=Rt.indexOf("{",0),I=0,ut=0,yt=Rt.length;Re>-1&&Reut){var wt=Rt.substring(ut,Re);$e.call(he,{"[[type]]":"literal","[[value]]":wt})}var Lt=Rt.substring(Re+1,I);if(Lt==="number")if(isNaN(ne)){var Nt=Ot.nan;$e.call(he,{"[[type]]":"nan","[[value]]":Nt})}else if(isFinite(ne)){te["[[style]]"]==="percent"&&isFinite(ne)&&(ne*=100);var pn=void 0;F.call(te,"[[minimumSignificantDigits]]")&&F.call(te,"[[maximumSignificantDigits]]")?pn=Fe(ne,te["[[minimumSignificantDigits]]"],te["[[maximumSignificantDigits]]"]):pn=dt(ne,te["[[minimumIntegerDigits]]"],te["[[minimumFractionDigits]]"],te["[[maximumFractionDigits]]"]),Pe[ze]?function(){var qr=Pe[ze];pn=String(pn).replace(/\d/g,function(ra){return qr[ra]})}():pn=String(pn);var kt=void 0,Xt=void 0,Jt=pn.indexOf(".",0);if(Jt>0?(kt=pn.substring(0,Jt),Xt=pn.substring(Jt+1,Jt.length)):(kt=pn,Xt=void 0),te["[[useGrouping]]"]===!0){var xn=Ot.group,Cn=[],or=mt.patterns.primaryGroupSize||3,er=mt.patterns.secondaryGroupSize||or;if(kt.length>or){var sr=kt.length-or,ir=sr%er,gr=kt.slice(0,ir);for(gr.length&&$e.call(Cn,gr);irze;ze++){var mt=te[ze];Ie+=mt["[[value]]"]}return Ie}function Fe(Ge,ne,te){var Ie=te,ze=void 0,mt=void 0;if(Ge===0)ze=Ue.call(Array(Ie+1),"0"),mt=0;else{mt=de(Math.abs(Ge));var Ot=Math.round(Math.exp(Math.abs(mt-Ie+1)*Math.LN10));ze=String(Math.round(mt-Ie+1<0?Ge*Ot:Ge/Ot))}if(mt>=Ie)return ze+Ue.call(Array(mt-Ie+1+1),"0");if(mt===Ie-1)return ze;if(mt>=0?ze=ze.slice(0,mt+1)+"."+ze.slice(mt+1):mt<0&&(ze="0."+Ue.call(Array(-(mt+1)+1),"0")+ze),ze.indexOf(".")>=0&&te>ne){for(var Rt=te-ne;Rt>0&&ze.charAt(ze.length-1)==="0";)ze=ze.slice(0,-1),Rt--;ze.charAt(ze.length-1)==="."&&(ze=ze.slice(0,-1))}return ze}function dt(Ge,ne,te,Ie){var ze=Ie,mt=Math.pow(10,ze)*Ge,Ot=mt===0?"0":mt.toFixed(0);{var Rt=void 0,he=(Rt=Ot.indexOf("e"))>-1?Ot.slice(Rt+1):0;he&&(Ot=Ot.slice(0,Rt).replace(".",""),Ot+=Ue.call(Array(he-(Ot.length-1)+1),"0"))}var Re=void 0;if(ze!==0){var I=Ot.length;if(I<=ze){var ut=Ue.call(Array(ze+1-I+1),"0");Ot=ut+Ot,I=ze+1}var yt=Ot.substring(0,I-ze),wt=Ot.substring(I-ze,Ot.length);Ot=yt+"."+wt,Re=yt.length}else Re=Ot.length;for(var Lt=Ie-te;Lt>0&&Ot.slice(-1)==="0";)Ot=Ot.slice(0,-1),Lt--;if(Ot.slice(-1)==="."&&(Ot=Ot.slice(0,-1)),Rehe&&(he=wt,Re=yt),I++}return Re}function qn(Ge,ne){{var te=[];for(var Ie in Mn){if(!F.call(Mn,Ie))continue;Ge["[["+Ie+"]]"]!==void 0&&te.push(Ie)}if(te.length===1){var ze=bn(te[0],Ge["[["+te[0]+"]]"]);if(ze)return ze}}for(var mt=120,Ot=20,Rt=8,he=6,Re=6,I=3,ut=2,yt=1,wt=-Infinity,Lt=void 0,Nt=0,Vt=ne.length;Nt=2||sr>=2&&er<=1?ir>0?kt-=he:ir<0&&(kt-=Rt):ir>1?kt-=I:ir<-1&&(kt-=Re)}}pn._.hour12!==Ge.hour12&&(kt-=yt),kt>wt&&(wt=kt,Lt=pn),Nt++}return Lt}ie.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},Q(vn.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:me.call(function(Ge){if(!F.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var ne=rt(),te=arguments[1],Ie=this["[[availableLocales]]"],ze=Ht(Ge);return ne(),on(Ie,ze,te)},ie.NumberFormat)}),Q(vn.DateTimeFormat.prototype,"format",{configurable:!0,get:Hn});function Hn(){var Ge=this!==null&&re.typeof(this)==="object"&&ge(this);if(!Ge||!Ge["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(Ge["[[boundFormat]]"]===void 0){var ne=function(){var ze=arguments.length<=0||arguments[0]===void 0?void 0:arguments[0],mt=ze===void 0?Date.now():Ve(ze);return br(this,mt)},te=me.call(ne,this);Ge["[[boundFormat]]"]=te}return Ge["[[boundFormat]]"]}function ar(){var Ge=arguments.length<=0||arguments[0]===void 0?void 0:arguments[0],ne=this!==null&&re.typeof(this)==="object"&&ge(this);if(!ne||!ne["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");var te=Ge===void 0?Date.now():Ve(Ge);return jr(this,te)}Object.defineProperty(vn.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:ar});function dr(Ge,ne){if(!isFinite(ne))throw new RangeError("Invalid valid date passed to format");var te=Ge.__getInternalProperties(W);rt();for(var Ie=te["[[locale]]"],ze=new vn.NumberFormat([Ie],{useGrouping:!1}),mt=new vn.NumberFormat([Ie],{minimumIntegerDigits:2,useGrouping:!1}),Ot=Hr(ne,te["[[calendar]]"],te["[[timeZone]]"]),Rt=te["[[pattern]]"],he=new fe,Re=0,I=Rt.indexOf("{"),ut=0,yt=te["[[dataLocale]]"],wt=ie.DateTimeFormat["[[localeData]]"][yt].calendars,Lt=te["[[calendar]]"];I!==-1;){var Nt=void 0;if(ut=Rt.indexOf("}",I),ut===-1)throw new Error("Unclosed pattern");I>Re&&$e.call(he,{type:"literal",value:Rt.substring(Re,I)});var Vt=Rt.substring(I+1,ut);if(Mn.hasOwnProperty(Vt)){var pn=te["[["+Vt+"]]"],kt=Ot["[["+Vt+"]]"];if(Vt==="year"&&kt<=0?kt=1-kt:Vt==="month"?kt++:Vt==="hour"&&te["[[hour12]]"]===!0&&(kt=kt%12,kt===0&&te["[[hourNo0]]"]===!0&&(kt=12)),pn==="numeric")Nt=Ne(ze,kt);else if(pn==="2-digit")Nt=Ne(mt,kt),Nt.length>2&&(Nt=Nt.slice(-2));else if(pn in Ke)switch(Vt){case"month":Nt=_e(wt,Lt,"months",pn,Ot["[["+Vt+"]]"]);break;case"weekday":try{Nt=_e(wt,Lt,"days",pn,Ot["[["+Vt+"]]"])}catch(Jt){throw new Error("Could not find weekday data for locale "+Ie)}break;case"timeZoneName":Nt="";break;case"era":try{Nt=_e(wt,Lt,"eras",pn,Ot["[["+Vt+"]]"])}catch(Jt){throw new Error("Could not find era data for locale "+Ie)}break;default:Nt=Ot["[["+Vt+"]]"]}$e.call(he,{type:Vt,value:Nt})}else if(Vt==="ampm"){var Xt=Ot["[[hour]]"];Nt=_e(wt,Lt,"dayPeriods",Xt>11?"pm":"am",null),$e.call(he,{type:"dayPeriod",value:Nt})}else $e.call(he,{type:"literal",value:Rt.substring(I,ut+1)});Re=ut+1,I=Rt.indexOf("{",Re)}return utze;ze++){var mt=te[ze];Ie+=mt.value}return Ie}function jr(Ge,ne){for(var te=dr(Ge,ne),Ie=[],ze=0;te.length>ze;ze++){var mt=te[ze];Ie.push({type:mt.type,value:mt.value})}return Ie}function Hr(Ge,ne,te){var Ie=new Date(Ge),ze="get"+(te||"");return new Ye({"[[weekday]]":Ie[ze+"Day"](),"[[era]]":+(Ie[ze+"FullYear"]()>=0),"[[year]]":Ie[ze+"FullYear"](),"[[month]]":Ie[ze+"Month"](),"[[day]]":Ie[ze+"Date"](),"[[hour]]":Ie[ze+"Hours"](),"[[minute]]":Ie[ze+"Minutes"](),"[[second]]":Ie[ze+"Seconds"](),"[[inDST]]":!1})}Q(vn.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var ne=void 0,te=new Ye,Ie=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],ze=this!==null&&re.typeof(this)==="object"&&ge(this);if(!ze||!ze["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var mt=0,Ot=Ie.length;mt2&&ze[1].length===4&&$e.call(Ie,ze[0]+"-"+ze[2]);te=X.call(Ie);)$e.call(ie.NumberFormat["[[availableLocales]]"],te),ie.NumberFormat["[[localeData]]"][te]=Ge.number,Ge.date&&(Ge.date.nu=Ge.number.nu,$e.call(ie.DateTimeFormat["[[availableLocales]]"],te),ie.DateTimeFormat["[[localeData]]"][te]=Ge.date);T===void 0&&$(ne)}Q(vn,"__disableRegExpRestore",{value:function(){ie.disableRegExpRestore=!0}}),x.exports=vn}).call(this,e("IyRk"))},fQri:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("Z+8a");a({target:"Set",proto:!0,real:!0,forced:n},{addAll:function(){return r.apply(this,arguments)}})},fWQN:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},fZJM:function(x,g,e){var a=g;a.utils=e("w8CP"),a.common=e("7ckf"),a.sha=e("WRkp"),a.ripemd=e("u0Sq"),a.hmac=e("ITfd"),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},foSv:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(n)}},"g+eg":function(x,g,e){"use strict";e.d(g,"b",function(){return t}),e.d(g,"a",function(){return u});var a=e("2qtc"),n=e("kLXV"),r=e("xKgJ"),t=function(m){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";n.a.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i,onOk:m})},u={setItem:function(m,i){var s,d=m+"-engineering"+((s=Object(r.x)())===null||s===void 0?void 0:s.school_id),l=JSON.stringify(i);localStorage.setItem(d,l)},getItem:function(m){var i,s=m+"-engineering"+((i=Object(r.x)())===null||i===void 0?void 0:i.school_id),d=localStorage.getItem(s),l=d!==null&&d!=="[object Object]"?JSON.parse(d):[];return l},clear:function(m){var i,s=m+"-engineering"+((i=Object(r.x)())===null||i===void 0?void 0:i.school_id);localStorage.removeItem(s)}}},g1ZG:function(x,g,e){var a=e("f1E4"),n=e("JS3A");x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,t={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(t,[]),r=t instanceof Array}catch(v){}return function(m,i){return a(m),n(i),r?u.call(m,i):m.__proto__=i,m}}():void 0)},g8rt:function(x,g,e){var a=e("tny8"),n=e("e3V2"),r=e("HhvW"),t=e("0qr0"),u=e("gFfw"),v=e("jtLI"),m=e("/yC2"),i=Object.getOwnPropertyDescriptor;g.f=a?i:function(d,l){if(d=t(d),l=u(l,!0),m)try{return i(d,l)}catch(f){}if(v(d,l))return r(!n.f.call(d,l),d[l])}},gFfw:function(x,g,e){var a=e("tSXo");x.exports=function(n,r){if(!a(n))return n;var t,u;if(r&&typeof(t=n.toString)=="function"&&!a(u=t.call(n)))return u;if(typeof(t=n.valueOf)=="function"&&!a(u=t.call(n)))return u;if(!r&&typeof(t=n.toString)=="function"&&!a(u=t.call(n)))return u;throw TypeError("Can't convert object to primitive value")}},gVIt:function(x,g,e){"use strict";var a=e("FVwB"),n=e("AmH5"),r=a.aTypedArray,t=a.exportTypedArrayMethod;t("copyWithin",function(v,m){return n.call(r(this),v,m,arguments.length>2?arguments[2]:void 0)})},ggIM:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("qdXH"),u={namespace:"video",state:{name:"\u8D44\u6E90",loading:!0,actionTabs:{},videoStatisticsList:{},newVideoStatisticsList:{},videoDurationStatics:{},StudentvideoStatistics:{},videoPeopleStatics:{},videoStatistics:{},oneVideoStatisticsList:{}},effects:{getVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getNewVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{newVideoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoPeopleStatics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoPeopleStatics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoDurationStatics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoDurationStatics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoStatistics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoStatistics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getOneVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{oneVideoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)}),getStudentVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{StudentvideoStatistics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},gweS:function(x,g,e){var a=e("Mi8B");a("Uint16",function(n){return function(t,u,v){return n(this,t,u,v)}})},"h+Ho":function(x,g,e){"use strict";e.d(g,"c",function(){return v}),e.d(g,"g",function(){return i}),e.d(g,"m",function(){return d}),e.d(g,"b",function(){return f}),e.d(g,"f",function(){return h}),e.d(g,"e",function(){return b}),e.d(g,"j",function(){return O}),e.d(g,"n",function(){return M}),e.d(g,"d",function(){return A}),e.d(g,"o",function(){return z}),e.d(g,"a",function(){return D}),e.d(g,"l",function(){return Oe}),e.d(g,"i",function(){return re}),e.d(g,"k",function(){return J}),e.d(g,"h",function(){return Q});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(He){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),m.apply(this,arguments)}function i(He){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/forum_discusses.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),s.apply(this,arguments)}function d(He){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/sticky_or_cancel.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),l.apply(this,arguments)}function f(He){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"delete",body:Ze}));case 1:case"end":return $e.stop()}},He)})),o.apply(this,arguments)}function h(He){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/new.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),c.apply(this,arguments)}function b(He){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/edit.json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),E.apply(this,arguments)}function O(He){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos.json",{method:"post",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),C.apply(this,arguments)}function M(He){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"put",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),w.apply(this,arguments)}function A(He){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),L.apply(this,arguments)}function z(He){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/users/".concat(Ze.user_id,"/watch.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),G.apply(this,arguments)}function D(He){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/users/".concat(Ze.user_id,"/watch.json"),{method:"delete",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),N.apply(this,arguments)}function Oe(He){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/".concat(Ze.id,"/reward_code.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),ue.apply(this,arguments)}function re(He){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/".concat(Ze.id,"/plus.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),ee.apply(this,arguments)}function J(He){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/reply.json",{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),F.apply(this,arguments)}function Q(He){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/more_reply.json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),q.apply(this,arguments)}},h0XC:function(x,g){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + */var a=e("MgzW"),n=e("q1tI");g.useSubscription=function(r){var t=r.getCurrentValue,u=r.subscribe,v=n.useState(function(){return{getCurrentValue:t,subscribe:u,value:t()}});r=v[0];var m=v[1];return v=r.value,(r.getCurrentValue!==t||r.subscribe!==u)&&(v=t(),m({getCurrentValue:t,subscribe:u,value:v})),n.useDebugValue(v),n.useEffect(function(){function i(){if(!s){var l=t();m(function(f){return f.getCurrentValue!==t||f.subscribe!==u||f.value===l?f:a({},f,{value:l})})}}var s=!1,d=u(i);return i(),function(){s=!0,d()}},[t,u]),v}},f1E4:function(x,g,e){var a=e("tSXo");x.exports=function(n){if(!a(n))throw TypeError(String(n)+" is not an object");return n}},fDrP:function(x,g,e){"use strict";var a=e("MMxC"),n=e("bIKR"),r=e("m0kY"),t=e("oa35"),u=e("cTDu"),v=e("nMuc"),m=e("arQb"),i=e("jMDO"),s=e("kGMc"),d=i("splice"),l=s("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,o=Math.min,h=9007199254740991,c="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d||!l},{splice:function(E,O){var C=u(this),M=t(C.length),w=n(E,M),A=arguments.length,L,z,G,D,N,Oe;if(A===0?L=z=0:A===1?(L=0,z=M-w):(L=A-2,z=o(f(r(O),0),M-w)),M+L-z>h)throw TypeError(c);for(G=v(C,z),D=0;DM-z+L;D--)delete C[D-1]}else if(L>z)for(D=M-z;D>w;D--)N=D+z-1,Oe=D+L-1,N in C?C[Oe]=C[N]:delete C[Oe];for(D=0;D1?arguments[1]:void 0)}}),r("includes")},fIMf:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("m47v"),u={namespace:"virtualSpaces",state:{showMenu:!0,actionTabs:{key:"",params:{},module_id:""},virtualSpacesDetails:{},menus:[]},effects:{setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)}),setShowMenu:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{showMenu:s}});case 4:case"end":return o.stop()}},v)}),getVirtualSpacesDetails:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.c,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{virtualSpacesDetails:Object(a.a)({},f)}});case 7:case"end":return h.stop()}},v)}),getVirtualSpacesMenus:r.a.mark(function v(m,i){var s,d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=m.payload,d=i.call,l=i.put,h.next=4,d(t.d,s);case 4:return f=h.sent,h.next=7,l({type:"save",payload:{menus:f}});case 7:return h.abrupt("return",f);case 8:case"end":return h.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history;return s.listen(function(d){var l=d.pathname;l==="/"&&i({type:"query"})})}}};g.a=u},fL0r:function(x,g,e){"use strict";(function(a){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ge){return typeof Ge}:function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol?"symbol":typeof Ge},r=function(){var Ge=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103;return function(te,Ie,ze,mt){var Ot=te&&te.defaultProps,Rt=arguments.length-3;if(!Ie&&Rt!==0&&(Ie={}),Ie&&Ot)for(var he in Ot)Ie[he]===void 0&&(Ie[he]=Ot[he]);else Ie||(Ie=Ot||{});if(Rt===1)Ie.children=mt;else if(Rt>1){for(var Re=Array(Rt),I=0;I=0)continue;if(!Object.prototype.hasOwnProperty.call(Ge,Ie))continue;te[Ie]=Ge[Ie]}return te},C=function(Ge,ne){if(!Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:Ge},M=typeof a=="undefined"?self:a,w=function Ge(ne,te,Ie,ze){var mt=Object.getOwnPropertyDescriptor(ne,te);if(mt===void 0){var Ot=Object.getPrototypeOf(ne);Ot!==null&&Ge(Ot,te,Ie,ze)}else if("value"in mt&&mt.writable)mt.value=Ie;else{var Rt=mt.set;Rt!==void 0&&Rt.call(ze,Ie)}return Ie},A=function(){function Ge(ne,te){var Ie=[],ze=!0,mt=!1,Ot=void 0;try{for(var Rt=ne[Symbol.iterator](),he;!(ze=(he=Rt.next()).done)&&!(Ie.push(he.value),te&&Ie.length===te);ze=!0);}catch(Re){mt=!0,Ot=Re}finally{try{!ze&&Rt.return&&Rt.return()}finally{if(mt)throw Ot}}return Ie}return function(ne,te){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return Ge(ne,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),L=function(Ge,ne){if(Array.isArray(Ge))return Ge;if(Symbol.iterator in Object(Ge)){for(var te=[],Ie=Ge[Symbol.iterator](),ze;!(ze=Ie.next()).done&&!(te.push(ze.value),ne&&te.length===ne););return te}else throw new TypeError("Invalid attempt to destructure non-iterable instance")},z=function(Ge,ne){return Object.freeze(Object.defineProperties(Ge,{raw:{value:Object.freeze(ne)}}))},G=function(Ge,ne){return Ge.raw=ne,Ge},D=function(Ge,ne,te){if(Ge===te)throw new ReferenceError(ne+" is not defined - temporal dead zone");return Ge},N={},Oe=function(Ge){return Array.isArray(Ge)?Ge:Array.from(Ge)},ue=function(Ge){if(Array.isArray(Ge)){for(var ne=0,te=Array(Ge.length);neGe)}function Ye(Ge){for(var ne in Ge)(Ge instanceof Ye||F.call(Ge,ne))&&Q(this,ne,{value:Ge[ne],enumerable:!0,writable:!0,configurable:!0})}Ye.prototype=He(null);function fe(){Q(this,"length",{writable:!0,value:0}),arguments.length&&$e.apply(this,Ze.call(arguments))}fe.prototype=He(null);function rt(){if(ie.disableRegExpRestore)return function(){};for(var Ge={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},ne=!1,te=1;te<=9;te++)ne=(Ge["$"+te]=RegExp["$"+te])||ne;return function(){var Ie=/[.?*+^$[\]\\(){}|-]/g,ze=Ge.lastMatch.replace(Ie,"\\$&"),mt=new fe;if(ne)for(var Ot=1;Ot<=9;Ot++){var Rt=Ge["$"+Ot];Rt?(Rt=Rt.replace(Ie,"\\$&"),ze=ze.replace(Rt,"("+Rt+")")):ze="()"+ze,$e.call(mt,ze.slice(0,ze.indexOf("(")+1)),ze=ze.slice(ze.indexOf("(")+1)}var he=Ue.call(mt,"")+ze;he=he.replace(/(\\\(|\\\)|[^()])+/g,function(I){return"[\\s\\S]{"+I.replace("\\","").length+"}"});var Re=new RegExp(he,Ge.multiline?"gm":"g");Re.lastIndex=Ge.leftContext.length,Re.exec(Ge.input)}}function Te(Ge){if(Ge===null)throw new TypeError("Cannot convert null or undefined to object");return(typeof Ge=="undefined"?"undefined":re.typeof(Ge))==="object"?Ge:Object(Ge)}function Ve(Ge){return typeof Ge=="number"?Ge:Number(Ge)}function tt(Ge){var ne=Ve(Ge);return isNaN(ne)?0:ne===0||ne===-0||ne===Infinity||ne===-Infinity?ne:ne<0?Math.floor(Math.abs(ne))*-1:Math.floor(Math.abs(ne))}function ht(Ge){var ne=tt(Ge);return ne<=0?0:ne===Infinity?Math.pow(2,53)-1:Math.min(ne,Math.pow(2,53)-1)}function ge(Ge){return F.call(Ge,"__getInternalProperties")?Ge.__getInternalProperties(W):He(null)}var ye="[a-z]{3}(?:-[a-z]{3}){0,2}",je="(?:[a-z]{2,3}(?:-"+ye+")?|[a-z]{4}|[a-z]{5,8})",we="[a-z]{4}",ce="(?:[a-z]{2}|\\d{3})",Y="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",V="[0-9a-wy-z]",U=V+"(?:-[a-z0-9]{2,8})+",B="x(?:-[a-z0-9]{1,8})+",Ae="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",S="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",k="(?:"+Ae+"|"+S+")",ae=je+"(?:-"+we+")?(?:-"+ce+")?(?:-"+Y+")*(?:-"+U+")*(?:-"+B+")?",oe=RegExp("^(?:"+ae+"|"+B+"|"+k+")$","i"),le=RegExp("^(?!x).*?-("+Y+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),K=RegExp("^(?!x).*?-("+V+")-(?:\\w+-(?!x-))*\\1\\b","i"),P=RegExp("-"+U,"ig"),T=void 0;function $(Ge){T=Ge}var se={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}};function ke(Ge){for(var ne=Ge.length;ne--;){var te=Ge.charAt(ne);te>="a"&&te<="z"&&(Ge=Ge.slice(0,ne)+te.toUpperCase()+Ge.slice(ne+1))}return Ge}function ve(Ge){return oe.test(Ge)?le.test(Ge)?!1:!K.test(Ge):!1}function Be(Ge){var ne=void 0,te=void 0;Ge=Ge.toLowerCase(),te=Ge.split("-");for(var Ie=1,ze=te.length;Ie1&&(ne.sort(),Ge=Ge.replace(RegExp("(?:"+P.source+")+","i"),Ue.call(ne,""))),F.call(se.tags,Ge)&&(Ge=se.tags[Ge]),te=Ge.split("-");for(var mt=1,Ot=te.length;mt-1)return te;var Ie=te.lastIndexOf("-");if(Ie<0)return;Ie>=2&&te.charAt(Ie-2)==="-"&&(Ie-=2),te=te.substring(0,Ie)}}function tn(Ge,ne){for(var te=0,Ie=ne.length,ze=void 0,mt=void 0,Ot=void 0;te2){var or=he[Cn+1],er=xn.call(kt,or);er!==-1&&(Xt=or,Jt="-"+Vt+"-"+Xt)}else{var sr=xn(kt,"true");sr!==-1&&(Xt="true")}}if(F.call(te,"[["+Vt+"]]")){var ir=te["[["+Vt+"]]"];xn.call(kt,ir)!==-1&&(ir!==Xt&&(Xt=ir,Jt=""))}yt["[["+Vt+"]]"]=Xt,wt+=Jt,Lt++}if(wt.length>2){var gr=Rt.indexOf("-x-");if(gr===-1)Rt=Rt+wt;else{var Vr=Rt.substring(0,gr),$r=Rt.substring(gr);Rt=Vr+wt+$r}Rt=Be(Rt)}return yt["[[locale]]"]=Rt,yt}function an(Ge,ne){for(var te=ne.length,Ie=new fe,ze=0;zeIe)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(mt)}return ze}var vn={};function Rn(Ge){var ne=Ht(Ge);{for(var te=[],Ie=ne.length,ze=0;zemt;mt++){var Ot=te[mt],Rt={};Rt.type=Ot["[[type]]"],Rt.value=Ot["[[value]]"],Ie[ze]=Rt,ze+=1}return Ie}function be(Ge,ne){var te=ge(Ge),Ie=te["[[dataLocale]]"],ze=te["[[numberingSystem]]"],mt=ie.NumberFormat["[[localeData]]"][Ie],Ot=mt.symbols[ze]||mt.symbols.latn,Rt=void 0;!isNaN(ne)&&ne<0?(ne=-ne,Rt=te["[[negativePattern]]"]):Rt=te["[[positivePattern]]"];for(var he=new fe,Re=Rt.indexOf("{",0),I=0,ut=0,yt=Rt.length;Re>-1&&Reut){var wt=Rt.substring(ut,Re);$e.call(he,{"[[type]]":"literal","[[value]]":wt})}var Lt=Rt.substring(Re+1,I);if(Lt==="number")if(isNaN(ne)){var Nt=Ot.nan;$e.call(he,{"[[type]]":"nan","[[value]]":Nt})}else if(isFinite(ne)){te["[[style]]"]==="percent"&&isFinite(ne)&&(ne*=100);var pn=void 0;F.call(te,"[[minimumSignificantDigits]]")&&F.call(te,"[[maximumSignificantDigits]]")?pn=Ne(ne,te["[[minimumSignificantDigits]]"],te["[[maximumSignificantDigits]]"]):pn=dt(ne,te["[[minimumIntegerDigits]]"],te["[[minimumFractionDigits]]"],te["[[maximumFractionDigits]]"]),Pe[ze]?function(){var qr=Pe[ze];pn=String(pn).replace(/\d/g,function(ra){return qr[ra]})}():pn=String(pn);var kt=void 0,Xt=void 0,Jt=pn.indexOf(".",0);if(Jt>0?(kt=pn.substring(0,Jt),Xt=pn.substring(Jt+1,Jt.length)):(kt=pn,Xt=void 0),te["[[useGrouping]]"]===!0){var xn=Ot.group,Cn=[],or=mt.patterns.primaryGroupSize||3,er=mt.patterns.secondaryGroupSize||or;if(kt.length>or){var sr=kt.length-or,ir=sr%er,gr=kt.slice(0,ir);for(gr.length&&$e.call(Cn,gr);irze;ze++){var mt=te[ze];Ie+=mt["[[value]]"]}return Ie}function Ne(Ge,ne,te){var Ie=te,ze=void 0,mt=void 0;if(Ge===0)ze=Ue.call(Array(Ie+1),"0"),mt=0;else{mt=de(Math.abs(Ge));var Ot=Math.round(Math.exp(Math.abs(mt-Ie+1)*Math.LN10));ze=String(Math.round(mt-Ie+1<0?Ge*Ot:Ge/Ot))}if(mt>=Ie)return ze+Ue.call(Array(mt-Ie+1+1),"0");if(mt===Ie-1)return ze;if(mt>=0?ze=ze.slice(0,mt+1)+"."+ze.slice(mt+1):mt<0&&(ze="0."+Ue.call(Array(-(mt+1)+1),"0")+ze),ze.indexOf(".")>=0&&te>ne){for(var Rt=te-ne;Rt>0&&ze.charAt(ze.length-1)==="0";)ze=ze.slice(0,-1),Rt--;ze.charAt(ze.length-1)==="."&&(ze=ze.slice(0,-1))}return ze}function dt(Ge,ne,te,Ie){var ze=Ie,mt=Math.pow(10,ze)*Ge,Ot=mt===0?"0":mt.toFixed(0);{var Rt=void 0,he=(Rt=Ot.indexOf("e"))>-1?Ot.slice(Rt+1):0;he&&(Ot=Ot.slice(0,Rt).replace(".",""),Ot+=Ue.call(Array(he-(Ot.length-1)+1),"0"))}var Re=void 0;if(ze!==0){var I=Ot.length;if(I<=ze){var ut=Ue.call(Array(ze+1-I+1),"0");Ot=ut+Ot,I=ze+1}var yt=Ot.substring(0,I-ze),wt=Ot.substring(I-ze,Ot.length);Ot=yt+"."+wt,Re=yt.length}else Re=Ot.length;for(var Lt=Ie-te;Lt>0&&Ot.slice(-1)==="0";)Ot=Ot.slice(0,-1),Lt--;if(Ot.slice(-1)==="."&&(Ot=Ot.slice(0,-1)),Rehe&&(he=wt,Re=yt),I++}return Re}function qn(Ge,ne){{var te=[];for(var Ie in Mn){if(!F.call(Mn,Ie))continue;Ge["[["+Ie+"]]"]!==void 0&&te.push(Ie)}if(te.length===1){var ze=bn(te[0],Ge["[["+te[0]+"]]"]);if(ze)return ze}}for(var mt=120,Ot=20,Rt=8,he=6,Re=6,I=3,ut=2,yt=1,wt=-Infinity,Lt=void 0,Nt=0,Vt=ne.length;Nt=2||sr>=2&&er<=1?ir>0?kt-=he:ir<0&&(kt-=Rt):ir>1?kt-=I:ir<-1&&(kt-=Re)}}pn._.hour12!==Ge.hour12&&(kt-=yt),kt>wt&&(wt=kt,Lt=pn),Nt++}return Lt}ie.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},Q(vn.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:me.call(function(Ge){if(!F.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var ne=rt(),te=arguments[1],Ie=this["[[availableLocales]]"],ze=Ht(Ge);return ne(),on(Ie,ze,te)},ie.NumberFormat)}),Q(vn.DateTimeFormat.prototype,"format",{configurable:!0,get:Hn});function Hn(){var Ge=this!==null&&re.typeof(this)==="object"&&ge(this);if(!Ge||!Ge["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(Ge["[[boundFormat]]"]===void 0){var ne=function(){var ze=arguments.length<=0||arguments[0]===void 0?void 0:arguments[0],mt=ze===void 0?Date.now():Ve(ze);return br(this,mt)},te=me.call(ne,this);Ge["[[boundFormat]]"]=te}return Ge["[[boundFormat]]"]}function ar(){var Ge=arguments.length<=0||arguments[0]===void 0?void 0:arguments[0],ne=this!==null&&re.typeof(this)==="object"&&ge(this);if(!ne||!ne["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");var te=Ge===void 0?Date.now():Ve(Ge);return jr(this,te)}Object.defineProperty(vn.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:ar});function dr(Ge,ne){if(!isFinite(ne))throw new RangeError("Invalid valid date passed to format");var te=Ge.__getInternalProperties(W);rt();for(var Ie=te["[[locale]]"],ze=new vn.NumberFormat([Ie],{useGrouping:!1}),mt=new vn.NumberFormat([Ie],{minimumIntegerDigits:2,useGrouping:!1}),Ot=Hr(ne,te["[[calendar]]"],te["[[timeZone]]"]),Rt=te["[[pattern]]"],he=new fe,Re=0,I=Rt.indexOf("{"),ut=0,yt=te["[[dataLocale]]"],wt=ie.DateTimeFormat["[[localeData]]"][yt].calendars,Lt=te["[[calendar]]"];I!==-1;){var Nt=void 0;if(ut=Rt.indexOf("}",I),ut===-1)throw new Error("Unclosed pattern");I>Re&&$e.call(he,{type:"literal",value:Rt.substring(Re,I)});var Vt=Rt.substring(I+1,ut);if(Mn.hasOwnProperty(Vt)){var pn=te["[["+Vt+"]]"],kt=Ot["[["+Vt+"]]"];if(Vt==="year"&&kt<=0?kt=1-kt:Vt==="month"?kt++:Vt==="hour"&&te["[[hour12]]"]===!0&&(kt=kt%12,kt===0&&te["[[hourNo0]]"]===!0&&(kt=12)),pn==="numeric")Nt=Fe(ze,kt);else if(pn==="2-digit")Nt=Fe(mt,kt),Nt.length>2&&(Nt=Nt.slice(-2));else if(pn in Ke)switch(Vt){case"month":Nt=_e(wt,Lt,"months",pn,Ot["[["+Vt+"]]"]);break;case"weekday":try{Nt=_e(wt,Lt,"days",pn,Ot["[["+Vt+"]]"])}catch(Jt){throw new Error("Could not find weekday data for locale "+Ie)}break;case"timeZoneName":Nt="";break;case"era":try{Nt=_e(wt,Lt,"eras",pn,Ot["[["+Vt+"]]"])}catch(Jt){throw new Error("Could not find era data for locale "+Ie)}break;default:Nt=Ot["[["+Vt+"]]"]}$e.call(he,{type:Vt,value:Nt})}else if(Vt==="ampm"){var Xt=Ot["[[hour]]"];Nt=_e(wt,Lt,"dayPeriods",Xt>11?"pm":"am",null),$e.call(he,{type:"dayPeriod",value:Nt})}else $e.call(he,{type:"literal",value:Rt.substring(I,ut+1)});Re=ut+1,I=Rt.indexOf("{",Re)}return utze;ze++){var mt=te[ze];Ie+=mt.value}return Ie}function jr(Ge,ne){for(var te=dr(Ge,ne),Ie=[],ze=0;te.length>ze;ze++){var mt=te[ze];Ie.push({type:mt.type,value:mt.value})}return Ie}function Hr(Ge,ne,te){var Ie=new Date(Ge),ze="get"+(te||"");return new Ye({"[[weekday]]":Ie[ze+"Day"](),"[[era]]":+(Ie[ze+"FullYear"]()>=0),"[[year]]":Ie[ze+"FullYear"](),"[[month]]":Ie[ze+"Month"](),"[[day]]":Ie[ze+"Date"](),"[[hour]]":Ie[ze+"Hours"](),"[[minute]]":Ie[ze+"Minutes"](),"[[second]]":Ie[ze+"Seconds"](),"[[inDST]]":!1})}Q(vn.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var ne=void 0,te=new Ye,Ie=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],ze=this!==null&&re.typeof(this)==="object"&&ge(this);if(!ze||!ze["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var mt=0,Ot=Ie.length;mt2&&ze[1].length===4&&$e.call(Ie,ze[0]+"-"+ze[2]);te=X.call(Ie);)$e.call(ie.NumberFormat["[[availableLocales]]"],te),ie.NumberFormat["[[localeData]]"][te]=Ge.number,Ge.date&&(Ge.date.nu=Ge.number.nu,$e.call(ie.DateTimeFormat["[[availableLocales]]"],te),ie.DateTimeFormat["[[localeData]]"][te]=Ge.date);T===void 0&&$(ne)}Q(vn,"__disableRegExpRestore",{value:function(){ie.disableRegExpRestore=!0}}),x.exports=vn}).call(this,e("IyRk"))},fQri:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("Z+8a");a({target:"Set",proto:!0,real:!0,forced:n},{addAll:function(){return r.apply(this,arguments)}})},fWQN:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}},fZJM:function(x,g,e){var a=g;a.utils=e("w8CP"),a.common=e("7ckf"),a.sha=e("WRkp"),a.ripemd=e("u0Sq"),a.hmac=e("ITfd"),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},foSv:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(n)}},"g+eg":function(x,g,e){"use strict";e.d(g,"b",function(){return t}),e.d(g,"a",function(){return u});var a=e("2qtc"),n=e("kLXV"),r=e("xKgJ"),t=function(m){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";n.a.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i,onOk:m})},u={setItem:function(m,i){var s,d=m+"-engineering"+((s=Object(r.x)())===null||s===void 0?void 0:s.school_id),l=JSON.stringify(i);localStorage.setItem(d,l)},getItem:function(m){var i,s=m+"-engineering"+((i=Object(r.x)())===null||i===void 0?void 0:i.school_id),d=localStorage.getItem(s),l=d!==null&&d!=="[object Object]"?JSON.parse(d):[];return l},clear:function(m){var i,s=m+"-engineering"+((i=Object(r.x)())===null||i===void 0?void 0:i.school_id);localStorage.removeItem(s)}}},g1ZG:function(x,g,e){var a=e("f1E4"),n=e("JS3A");x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,t={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(t,[]),r=t instanceof Array}catch(v){}return function(m,i){return a(m),n(i),r?u.call(m,i):m.__proto__=i,m}}():void 0)},g8rt:function(x,g,e){var a=e("tny8"),n=e("e3V2"),r=e("HhvW"),t=e("0qr0"),u=e("gFfw"),v=e("jtLI"),m=e("/yC2"),i=Object.getOwnPropertyDescriptor;g.f=a?i:function(d,l){if(d=t(d),l=u(l,!0),m)try{return i(d,l)}catch(f){}if(v(d,l))return r(!n.f.call(d,l),d[l])}},gFfw:function(x,g,e){var a=e("tSXo");x.exports=function(n,r){if(!a(n))return n;var t,u;if(r&&typeof(t=n.toString)=="function"&&!a(u=t.call(n)))return u;if(typeof(t=n.valueOf)=="function"&&!a(u=t.call(n)))return u;if(!r&&typeof(t=n.toString)=="function"&&!a(u=t.call(n)))return u;throw TypeError("Can't convert object to primitive value")}},gVIt:function(x,g,e){"use strict";var a=e("FVwB"),n=e("AmH5"),r=a.aTypedArray,t=a.exportTypedArrayMethod;t("copyWithin",function(v,m){return n.call(r(this),v,m,arguments.length>2?arguments[2]:void 0)})},ggIM:function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("qdXH"),u={namespace:"video",state:{name:"\u8D44\u6E90",loading:!0,actionTabs:{},videoStatisticsList:{},newVideoStatisticsList:{},videoDurationStatics:{},StudentvideoStatistics:{},videoPeopleStatics:{},videoStatistics:{},oneVideoStatisticsList:{}},effects:{getVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.k,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getNewVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{newVideoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoPeopleStatics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.i,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoPeopleStatics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoDurationStatics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.f,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoDurationStatics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getVideoStatistics:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.j,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{videoStatistics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),getOneVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.b,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{oneVideoStatisticsList:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)}),setActionTabs:r.a.mark(function v(m,i){var s,d,l;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return s=m.payload,d=i.call,l=i.put,o.next=4,l({type:"save",payload:{actionTabs:Object(a.a)({},s)}});case 4:case"end":return o.stop()}},v)}),getStudentVideoStatisticsList:r.a.mark(function v(m,i){var s,d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=m.payload,d=m.callback,l=i.call,f=i.put,c.next=4,l(t.d,s);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{StudentvideoStatistics:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},v)})},reducers:{save:function(m,i){return Object(a.a)(Object(a.a)({},m),i.payload)}},subscriptions:{setup:function(m){var i=m.dispatch,s=m.history}}};g.a=u},gweS:function(x,g,e){var a=e("Mi8B");a("Uint16",function(n){return function(t,u,v){return n(this,t,u,v)}})},"h+Ho":function(x,g,e){"use strict";e.d(g,"c",function(){return v}),e.d(g,"g",function(){return i}),e.d(g,"m",function(){return d}),e.d(g,"b",function(){return f}),e.d(g,"f",function(){return h}),e.d(g,"e",function(){return b}),e.d(g,"j",function(){return O}),e.d(g,"n",function(){return M}),e.d(g,"d",function(){return A}),e.d(g,"o",function(){return z}),e.d(g,"a",function(){return D}),e.d(g,"l",function(){return Oe}),e.d(g,"i",function(){return re}),e.d(g,"k",function(){return J}),e.d(g,"h",function(){return Q});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(He){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),m.apply(this,arguments)}function i(He){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/forum_discusses.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),s.apply(this,arguments)}function d(He){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/sticky_or_cancel.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),l.apply(this,arguments)}function f(He){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"delete",body:Ze}));case 1:case"end":return $e.stop()}},He)})),o.apply(this,arguments)}function h(He){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/new.json",{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),c.apply(this,arguments)}function b(He){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/edit.json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),E.apply(this,arguments)}function O(He){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos.json",{method:"post",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),C.apply(this,arguments)}function M(He){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"put",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),w.apply(this,arguments)}function A(He){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,".json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),L.apply(this,arguments)}function z(He){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/users/".concat(Ze.user_id,"/watch.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),G.apply(this,arguments)}function D(He){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/users/".concat(Ze.user_id,"/watch.json"),{method:"delete",body:Object(a.a)({},Ze)}));case 1:case"end":return $e.stop()}},He)})),N.apply(this,arguments)}function Oe(He){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/".concat(Ze.id,"/reward_code.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),ue.apply(this,arguments)}function re(He){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/discusses/".concat(Ze.id,"/plus.json"),{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),ee.apply(this,arguments)}function J(He){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/reply.json",{method:"post",body:Ze}));case 1:case"end":return $e.stop()}},He)})),F.apply(this,arguments)}function Q(He){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function He(Ze){return t.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.abrupt("return",Object(u.a)("/api/memos/".concat(Ze.id,"/more_reply.json"),{method:"get",params:Ze}));case 1:case"end":return $e.stop()}},He)})),q.apply(this,arguments)}},h0XC:function(x,g){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.`)}x.exports=e},hD9M:function(x,g,e){"use strict";e.d(g,"g",function(){return v}),e.d(g,"l",function(){return i}),e.d(g,"b",function(){return d}),e.d(g,"h",function(){return f}),e.d(g,"i",function(){return h}),e.d(g,"c",function(){return b}),e.d(g,"a",function(){return O}),e.d(g,"k",function(){return A}),e.d(g,"f",function(){return z}),e.d(g,"d",function(){return D}),e.d(g,"j",function(){return Oe}),e.d(g,"e",function(){return re});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(J){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/online_learning.json"),{method:"get"}));case 1:case"end":return q.stop()}},J)})),m.apply(this,arguments)}function i(J){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,".json"),{method:"put",body:F}));case 1:case"end":return q.stop()}},J)})),s.apply(this,arguments)}function d(J){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/course_stages.json"),{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),l.apply(this,arguments)}function f(J){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/add_shixun_to_stage.json"),{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),o.apply(this,arguments)}function h(J){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/select_shixun_to_stage.json"),{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),c.apply(this,arguments)}function b(J){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/add_video_to_stage.json"),{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),E.apply(this,arguments)}function O(J){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/add_attachment_to_stage.json"),{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),C.apply(this,arguments)}function M(J){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/paths/add_shixun_to_stage.json",{method:"post",body:F}));case 1:case"end":return q.stop()}},J)})),w.apply(this,arguments)}function A(J){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/up_position.json"),{method:"post"}));case 1:case"end":return q.stop()}},J)})),L.apply(this,arguments)}function z(J){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,"/down_position.json"),{method:"post"}));case 1:case"end":return q.stop()}},J)})),G.apply(this,arguments)}function D(J){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.id,".json"),{method:"delete"}));case 1:case"end":return q.stop()}},J)})),N.apply(this,arguments)}function Oe(J){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.stage_id,"/items/move_position.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),ue.apply(this,arguments)}function re(J){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/course_stages/".concat(F.stage_id,"/items/").concat(F.id),{method:"delete"}));case 1:case"end":return q.stop()}},J)})),ee.apply(this,arguments)}},hJwl:function(x,g,e){"use strict";e.d(g,"v",function(){return v}),e.d(g,"r",function(){return i}),e.d(g,"s",function(){return d}),e.d(g,"A",function(){return f}),e.d(g,"x",function(){return h}),e.d(g,"y",function(){return b}),e.d(g,"H",function(){return O}),e.d(g,"E",function(){return M}),e.d(g,"D",function(){return A}),e.d(g,"q",function(){return z}),e.d(g,"h",function(){return D}),e.d(g,"f",function(){return Oe}),e.d(g,"b",function(){return re}),e.d(g,"i",function(){return J}),e.d(g,"C",function(){return Q}),e.d(g,"B",function(){return He}),e.d(g,"o",function(){return ft}),e.d(g,"n",function(){return Ue}),e.d(g,"d",function(){return me}),e.d(g,"e",function(){return W}),e.d(g,"m",function(){return Ye}),e.d(g,"p",function(){return rt}),e.d(g,"k",function(){return Ve}),e.d(g,"a",function(){return ht}),e.d(g,"F",function(){return ye}),e.d(g,"j",function(){return we}),e.d(g,"g",function(){return Y}),e.d(g,"l",function(){return U}),e.d(g,"c",function(){return Ae}),e.d(g,"G",function(){return k}),e.d(g,"z",function(){return oe}),e.d(g,"w",function(){return K}),e.d(g,"t",function(){return T}),e.d(g,"u",function(){return se});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(ve){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions.json",{method:"Get",params:Object(a.a)({},Be)}));case 1:case"end":return We.stop()}},ve)})),m.apply(this,arguments)}function i(ve){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/courses/apply_to_join_course.json",{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),s.apply(this,arguments)}function d(ve){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams.json"),{method:"post"}));case 1:case"end":return We.stop()}},ve)})),l.apply(this,arguments)}function f(ve){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_staff.json"),{method:"get"}));case 1:case"end":return We.stop()}},ve)})),o.apply(this,arguments)}function h(ve){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/common_header.json"),{method:"get"}));case 1:case"end":return We.stop()}},ve)})),c.apply(this,arguments)}function b(ve){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/".concat(Be.url),{method:"get",params:Object(a.a)({},Be)}));case 1:case"end":return We.stop()}},ve)})),E.apply(this,arguments)}function O(ve){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/update_md_content.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),C.apply(this,arguments)}function M(ve){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams.json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),w.apply(this,arguments)}function A(ve){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.Teannameid,"/edit.json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),L.apply(this,arguments)}function z(ve){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.Teannameid,".json"),{method:"put",body:Be}));case 1:case"end":return We.stop()}},ve)})),G.apply(this,arguments)}function D(ve){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.id,"/leave.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),N.apply(this,arguments)}function Oe(ve){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.id,".json"),{method:"delete"}));case 1:case"end":return We.stop()}},ve)})),ue.apply(this,arguments)}function re(ve){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),ee.apply(this,arguments)}function J(ve){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/join.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),F.apply(this,arguments)}function Q(ve){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/teachers.json?"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),q.apply(this,arguments)}function He(ve){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/students.json?"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),Ze.apply(this,arguments)}function ft(ve){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.teamid,"/crud_team_members.json?"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),$e.apply(this,arguments)}function Ue(ve){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/competition_reward.json?",{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),X.apply(this,arguments)}function me(ve){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/chart_rules.json?"),{method:"get"}));case 1:case"end":return We.stop()}},ve)})),ie.apply(this,arguments)}function W(ve){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/charts.json?"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),de.apply(this,arguments)}function Ye(ve){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/results.json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),fe.apply(this,arguments)}function rt(ve){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/md_tab_rules.json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),Te.apply(this,arguments)}function Ve(ve){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/prize.json?"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),tt.apply(this,arguments)}function ht(ve){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/accounts/".concat(Be.id,".json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),ge.apply(this,arguments)}function ye(ve){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/accounts/get_verification_code.json",{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),je.apply(this,arguments)}function we(ve){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/accounts/".concat(Be.userid,"/phone_bind.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),ce.apply(this,arguments)}function Y(ve){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/accounts/".concat(Be.userid,"/email_bind.json"),{method:"post",body:Be}));case 1:case"end":return We.stop()}},ve)})),V.apply(this,arguments)}function U(ve){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/accounts/".concat(Be.userid,"/professional_auth_apply.json"),{method:"delete"}));case 1:case"end":return We.stop()}},ve)})),B.apply(this,arguments)}function Ae(ve){return S.apply(this,arguments)}function S(){return S=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/users/accounts/".concat(Be.userid,"/authentication_apply.json"),{method:"delete"}));case 1:case"end":return We.stop()}},ve)})),S.apply(this,arguments)}function k(ve){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/prize_leader_account.json"),{method:"patch",body:Be}));case 1:case"end":return We.stop()}},ve)})),ae.apply(this,arguments)}function oe(ve){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.teamid,"/shixun_detail.json"),{method:"get"}));case 1:case"end":return We.stop()}},ve)})),le.apply(this,arguments)}function K(ve){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.identifier,"/competition_teams/").concat(Be.teamid,"/course_detail.json"),{method:"get"}));case 1:case"end":return We.stop()}},ve)})),P.apply(this,arguments)}function T(ve){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/attachments/".concat(Be.id,".json"),{method:"delete"}));case 1:case"end":return We.stop()}},ve)})),$.apply(this,arguments)}function se(ve){return ke.apply(this,arguments)}function ke(){return ke=Object(n.a)(t.a.mark(function ve(Be){return t.a.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.abrupt("return",Object(u.a)("/api/competitions/".concat(Be.id,"/get_certificate_info.json"),{method:"get",params:Be}));case 1:case"end":return We.stop()}},ve)})),ke.apply(this,arguments)}},hKmx:function(x,g,e){"use strict";var a=e("Un+d"),n=e("oa35"),r=e("7BAe"),t=function(u,v,m,i,s,d,l,f){for(var o=s,h=0,c=l?r(l,f,3):!1,b;h0&&a(b))o=t(u,v,b,n(b.length),o,d-1)-1;else{if(o>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[o]=b}o++}h++}return o};x.exports=t},"hOG+":function(x,g){(function(e){x.exports=function(){var a={311:function(t){t.exports=function(u){return u.webpackPolyfill||(u.deprecate=function(){},u.paths=[],u.children||(u.children=[]),Object.defineProperty(u,"loaded",{enumerable:!0,get:function(){return u.l}}),Object.defineProperty(u,"id",{enumerable:!0,get:function(){return u.i}}),u.webpackPolyfill=1),u}}},n={};function r(t){if(n[t])return n[t].exports;var u=n[t]={exports:{}},v=!0;try{a[t](u,u.exports,r),v=!1}finally{v&&delete n[t]}return u.exports}return r.ab=e+"/",r(311)}()}).call(this,"/")},hRxt:function(x,g,e){var a=e("ukPv"),n=e("Qlla"),r=a.process,t=r&&r.versions,u=t&&t.v8,v,m;u?(v=u.split("."),m=v[0]+v[1]):n&&(v=n.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=n.match(/Chrome\/(\d+)/),v&&(m=v[1]))),x.exports=m&&+m},hYqy:function(x,g,e){var a=e("MMxC"),n=180/Math.PI;a({target:"Math",stat:!0},{degrees:function(t){return t*n}})},haHa:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("cT1L"),u=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:function(m){var i=r(this),s=t(i.has);return!u(m,function(d){if(s.call(i,d)===!0)return u.stop()}).stopped}})},hh8c:function(x,g,e){},hilM:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tSXo"),r=e("Un+d"),t=e("bIKR"),u=e("oa35"),v=e("0qr0"),m=e("arQb"),i=e("2kyd"),s=e("jMDO"),d=e("kGMc"),l=s("slice"),f=d("slice",{ACCESSORS:!0,0:0,1:2}),o=i("species"),h=[].slice,c=Math.max;a({target:"Array",proto:!0,forced:!l||!f},{slice:function(E,O){var C=v(this),M=u(C.length),w=t(E,M),A=t(O===void 0?M:O,M),L,z,G;if(r(C)&&(L=C.constructor,typeof L=="function"&&(L===Array||r(L.prototype))?L=void 0:n(L)&&(L=L[o],L===null&&(L=void 0)),L===Array||L===void 0))return h.call(C,w,A);for(z=new(L===void 0?Array:L)(c(A-w,0)),G=0;w1?arguments[1]:void 0,3);return!v(d,function(f){if(!l(f,f,s))return v.stop()},void 0,!1,!0).stopped}})},"iUp/":function(x,g,e){"use strict";var a=e("oBTY"),n=e("k1fw"),r=e("WmNS"),t=e.n(r),u=e("qdXH"),v=e("Mgx3"),m=e("hD9M"),i=function(){var l,f,o,h,c,b=window.location.href.split("/");if(!b.includes("video"))return;var E=(l=b[b.length-1])===null||l===void 0?void 0:l.split("?")[0];E=Number(E);var O=(f=b[b.length-1])===null||f===void 0||((o=f.split("?")[1])===null||o===void 0)?void 0:o.split("=")[1];return((h=b[b.length-1])===null||h===void 0||((c=h.split("?")[1])===null||c===void 0)?void 0:c.split("=")[0])==="subject_id"?{videoId:E,subject_id:O}:{videoId:E,course_id:O}},s={namespace:"videoDetail",state:{detail:{},actionTabs:{key:"",params:{}},stages:[],cust_seq:0,queryParams:i(),videoList:[],attachmentList:[],selectParams:{checkBoxValue:!1,radioValue:1},active:{}},effects:{getVideoDetail:t.a.mark(function d(l,f){var o,h,c,b,E;return t.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return o=l.payload,h=l.callback,c=f.call,b=f.put,C.next=4,c(u.e,o);case 4:if(E=C.sent,!h){C.next=9;break}h(E),C.next=11;break;case 9:return C.next=11,b({type:"save",payload:{detail:Object(n.a)({},E)}});case 11:return C.abrupt("return",E);case 12:case"end":return C.stop()}},d)}),setActionTabs:t.a.mark(function d(l,f){var o,h,c;return t.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,c({type:"save",payload:{actionTabs:Object(n.a)({},o)}});case 4:case"end":return E.stop()}},d)}),setSelectValue:t.a.mark(function d(l,f){var o,h,c;return t.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return o=l.payload,h=f.call,c=f.put,E.next=4,c({type:"save",payload:{selectParams:Object(n.a)({},o)}});case 4:case"end":return E.stop()}},d)}),getStageData:t.a.mark(function d(l,f){var o,h,c,b,E,O,C,M,w,A,L,z,G;return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return o=l.payload,h=f.call,c=f.put,b=f.select,N.next=4,h(u.c,o);case 4:return E=N.sent,N.next=7,h(v.D,{id:o.subject_id});case 7:return O=N.sent,N.next=10,b(function(Oe){return Oe.videoDetail});case 10:return C=N.sent,M=C.queryParams,w=E.stages,A=w===void 0?[]:w,L=[],z=[],G={},A==null||A.forEach(function(Oe){Oe.items.forEach(function(ue){String(ue.id)===String(M.videoId)&&(G=ue),ue.item_type==="VideoItem"?L.push(ue):ue.item_type==="Attachment"&&z.push(ue),ue.children&&!!ue.children.length&&ue.children.forEach(function(re){String(re.id)===String(M.videoId)&&(G=re),re.item_type==="VideoItem"?L.push(re):re.item_type==="Attachment"&&z.push(re)})})}),window.filterVideoSign=[].concat(L),N.next=20,c({type:"save",payload:{stages:A,active:G,cust_seq:O.cust_seq,videoList:L,attachmentList:z}});case 20:case"end":return N.stop()}},d)}),getCourseStageData:t.a.mark(function d(l,f){var o,h,c,b,E,O,C,M,w,A,L;return t.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return o=l.payload,h=f.call,c=f.put,b=f.select,G.next=4,h(m.g,o);case 4:return E=G.sent,G.next=7,b(function(D){return D.videoDetail});case 7:return O=G.sent,C=O.queryParams,M=E.stages,w=[],A=[],L={},M==null||M.forEach(function(D){D.items.forEach(function(N){String(N.id)===String(C.videoId)&&(L=N),N.item_type==="VideoItem"?w.push(N):N.item_type==="Attachment"&&A.push(N),N.children&&!!N.children.length&&N.children.forEach(function(Oe){String(Oe.id)===String(C.videoId)&&(L=Oe),Oe.item_type==="VideoItem"?w.push(Oe):Oe.item_type==="Attachment"&&A.push(Oe)})})}),window.filterVideoSign=[].concat(w),G.next=17,c({type:"save",payload:{active:L,stages:M,cust_seq:!0,videoList:w,attachmentList:A}});case 17:case"end":return G.stop()}},d)})},reducers:{save:function(l,f){return Object(n.a)(Object(n.a)({},l),f.payload)},handleListItemClick:function(l,f){var o=l.videoList,h=l.attachmentList,c=f.payload.videoId||f.payload.attachmentId,b=[].concat(Object(a.a)(o),Object(a.a)(h)).find(function(E){return"".concat(E.id)==="".concat(c)});return Object(n.a)(Object(n.a)({},l),{},{active:b,queryParams:Object(n.a)(Object(n.a)({},i()),f.payload)})}},subscriptions:{setup:function(l){var f=l.dispatch,o=l.history;return o.listen(function(h){var c=h.pathname;c==="/"&&f({type:"query"})})}}};g.a=s},igoe:function(x,g){x.exports=function(e,a,n){if(!(e instanceof a))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},izsi:function(x,g,e){var a=e("MMxC"),n=e("rn5R");a({target:"Number",stat:!0,forced:Number.parseFloat!=n},{parseFloat:n})},jGFG:function(x,g,e){"use strict";var a=e("FVwB"),n=e("/dTS"),r=e("MVys"),t=a.aTypedArray,u=a.aTypedArrayConstructor,v=a.exportTypedArrayMethod,m=[].slice,i=r(function(){new Int8Array(1).slice()});v("slice",function(d,l){for(var f=m.call(t(this),d,l),o=n(this,this.constructor),h=0,c=f.length,b=new(u(o))(c);c>h;)b[h]=f[h++];return b},i)},jHRr:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("7BAe"),u=e("PPXv"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{find:function(i){var s=r(this),d=u(s),l=t(i,arguments.length>1?arguments[1]:void 0,3);return v(d,function(f,o){if(l(o,f,s))return v.stop(o)},void 0,!0,!0).result}})},jIZW:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("+X1D");a({target:"Map",proto:!0,real:!0,forced:n},{deleteAll:function(){return r.apply(this,arguments)}})},jMDO:function(x,g,e){var a=e("MVys"),n=e("2kyd"),r=e("hRxt"),t=n("species");x.exports=function(u){return r>=51||!a(function(){var v=[],m=v.constructor={};return m[t]=function(){return{foo:1}},v[u](Boolean).foo!==1})}},"jb+D":function(x,g,e){"use strict";e.d(g,"b",function(){return v}),e.d(g,"c",function(){return i}),e.d(g,"t",function(){return d}),e.d(g,"m",function(){return f}),e.d(g,"s",function(){return h}),e.d(g,"k",function(){return b}),e.d(g,"B",function(){return O}),e.d(g,"i",function(){return M}),e.d(g,"r",function(){return A}),e.d(g,"n",function(){return z}),e.d(g,"o",function(){return D}),e.d(g,"x",function(){return Oe}),e.d(g,"q",function(){return re}),e.d(g,"h",function(){return J}),e.d(g,"y",function(){return Q}),e.d(g,"p",function(){return He}),e.d(g,"F",function(){return ft}),e.d(g,"E",function(){return Ue}),e.d(g,"C",function(){return me}),e.d(g,"D",function(){return W}),e.d(g,"l",function(){return Ye}),e.d(g,"g",function(){return rt}),e.d(g,"d",function(){return Ve}),e.d(g,"e",function(){return ht}),e.d(g,"j",function(){return ye}),e.d(g,"v",function(){return Y}),e.d(g,"u",function(){return U}),e.d(g,"G",function(){return Ae}),e.d(g,"w",function(){return S}),e.d(g,"z",function(){return k}),e.d(g,"f",function(){return oe}),e.d(g,"A",function(){return le}),e.d(g,"a",function(){return K});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(P){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/accounts/login.json",{method:"post",body:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),m.apply(this,arguments)}function i(P){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/accounts/logout.json",{method:"get"}));case 1:case"end":return se.stop()}},P)})),s.apply(this,arguments)}function d(P){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/get_user_info.json",{method:"get",params:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),l.apply(this,arguments)}function f(P){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/get_navigation_info.json",{method:"get",params:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),o.apply(this,arguments)}function h(){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function P(){return t.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",Object(u.a)("/api/users/system_update.json",{method:"get"}));case 1:case"end":return $.stop()}},P)})),c.apply(this,arguments)}function b(P){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/homepage_info.json"),{method:"get"}));case 1:case"end":return se.stop()}},P)})),E.apply(this,arguments)}function O(P){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/attendance.json",{method:"post"}));case 1:case"end":return se.stop()}},P)})),C.apply(this,arguments)}function M(P){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/courses.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),w.apply(this,arguments)}function A(P){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/shixuns.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),L.apply(this,arguments)}function z(P){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/subjects.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),G.apply(this,arguments)}function D(P){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/projects.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),N.apply(this,arguments)}function Oe(P){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/videos.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),ue.apply(this,arguments)}function re(P){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/videos/review.json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),ee.apply(this,arguments)}function J(P){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/videos/").concat(T.id,".json"),{method:"delete"}));case 1:case"end":return se.stop()}},P)})),F.apply(this,arguments)}function Q(P){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/watch_video_histories.json",{method:"post",body:T}));case 1:case"end":return se.stop()}},P)})),q.apply(this,arguments)}function He(P){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/question_banks.json",{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),Ze.apply(this,arguments)}function ft(P){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/question_banks/multi_public.json",{method:"post",body:T}));case 1:case"end":return se.stop()}},P)})),$e.apply(this,arguments)}function Ue(P){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/question_banks/multi_delete.json",{method:"delete",body:T}));case 1:case"end":return se.stop()}},P)})),X.apply(this,arguments)}function me(P){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/question_banks/my_courses.json",{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),ie.apply(this,arguments)}function W(P){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/question_banks/send_to_course.json",{method:"post",body:T}));case 1:case"end":return se.stop()}},P)})),de.apply(this,arguments)}function Ye(P){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/homework_banks/".concat(T.topicId,".json"),{method:"get",params:T}));case 1:case"end":return se.stop()}},P)})),fe.apply(this,arguments)}function rt(P){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/question_banks/multi_delete.json",{method:"delete",body:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),Te.apply(this,arguments)}function Ve(P){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/users/".concat(T.username,"/videos/batch_publish.json"),{method:"post",body:T}));case 1:case"end":return se.stop()}},P)})),tt.apply(this,arguments)}function ht(P){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/myshixuns/".concat(T.identifier,"/cancel.json"),{method:"delete",body:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),ge.apply(this,arguments)}function ye(){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function P(){return t.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",Object(u.a)("/api/users/get_engineer_url.json",{method:"get"}));case 1:case"end":return $.stop()}},P)})),je.apply(this,arguments)}function we(P){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function P(T){return t.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.abrupt("return",Object(u.a)("/api/intelligent_recommendations/user_choice_learn_path.json",{method:"post",body:Object(a.a)({},T)}));case 1:case"end":return se.stop()}},P)})),ce.apply(this,arguments)}function Y(){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function P(){return t.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",Object(u.a)("/api/intelligent_recommendations/persona.json",{method:"get"}));case 1:case"end":return $.stop()}},P)})),V.apply(this,arguments)}function U(){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function P(){return t.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",Object(u.a)("/api/intelligent_recommendations/user_learn_path.json",{method:"get"}));case 1:case"end":return $.stop()}},P)})),B.apply(this,arguments)}function Ae(P){return Object(u.a)("/api/accounts/valid_email_and_phone.json",{method:"get",params:P})}function S(P){return Object(u.a)("/api/accounts/get_verification_code.json",{method:"get",params:P})}function k(P){return Object(u.a)("/api/accounts/register.json",{method:"post",body:Object(a.a)({},P)})}function ae(P){return Object(u.a)("/api/weapps/register.json",{method:"post",body:Object(a.a)({},P)})}function oe(P){return Object(u.a)("/api/users/accounts/".concat(P.login,"/password.json"),{method:"put",body:Object(a.a)({},P)})}function le(P){return Object(u.a)("/api/accounts/reset_password.json",{method:"post",body:Object(a.a)({},P)})}function K(P){return Object(u.a)("/api/accounts/login_for_phone.json",{method:"get",params:Object(a.a)({},P)})}},jbR1:function(x,g,e){var a=e("Zcjx"),n=e("qcmB");x.exports=a?n:function(r){return Set.prototype.values.call(r)}},"jdp+":function(x,g,e){var a=e("u93E"),n=Math.abs,r=Math.pow,t=r(2,-52),u=r(2,-23),v=r(2,127)*(2-u),m=r(2,-126),i=function(s){return s+1/t-1/t};x.exports=Math.fround||function(d){var l=n(d),f=a(d),o,h;return lv||h!=h?f*Infinity:f*h)}},jhyg:function(x,g,e){var a=e("MMxC"),n=e("tSXo"),r=e("a5mf").onFreeze,t=e("R/Zn"),u=e("MVys"),v=Object.seal,m=u(function(){v(1)});a({target:"Object",stat:!0,forced:m,sham:!t},{seal:function(s){return v&&n(s)?v(r(s)):s}})},jksQ:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("29mP"),t=e("f1E4"),u=e("cT1L"),v=e("7BAe"),m=e("/dTS"),i=e("jbR1"),s=e("IuhT");a({target:"Set",proto:!0,real:!0,forced:n},{map:function(l){var f=t(this),o=i(f),h=v(l,arguments.length>1?arguments[1]:void 0,3),c=new(m(f,r("Set"))),b=u(c.add);return s(o,function(E){b.call(c,h(E,E,f))},void 0,!1,!0),c}})},joe6:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("q1tI"),n=e.n(a),r=n.a.createContext(null),t=r},jrin:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}},jtLI:function(x,g){var e={}.hasOwnProperty;x.exports=function(a,n){return e.call(a,n)}},"k/J9":function(x,g,e){"use strict";var a=e("f1E4");x.exports=function(){var n=a(this),r="";return n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.sticky&&(r+="y"),r}},k1fw:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("jrin");function n(t,u){var v=Object.keys(t);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(t);u&&(m=m.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),v.push.apply(v,m)}return v}function r(t){for(var u=1;u1?arguments[1]:void 0)})},leS6:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,u=new Array(r);t0?a:e)(n)}},m3pO:function(x,g,e){var a=e("ukPv"),n=e("g8rt").f,r=e("UwrT"),t=e("C3pJ").set,u=e("xRZI"),v=a.MutationObserver||a.WebKitMutationObserver,m=a.process,i=a.Promise,s=r(m)=="process",d=n(a,"queueMicrotask"),l=d&&d.value,f,o,h,c,b,E,O,C;l||(f=function(){var M,w;for(s&&(M=m.domain)&&M.exit();o;){w=o.fn,o=o.next;try{w()}catch(A){throw o?c():h=void 0,A}}h=void 0,M&&M.enter()},s?c=function(){m.nextTick(f)}:v&&!u?(b=!0,E=document.createTextNode(""),new v(f).observe(E,{characterData:!0}),c=function(){E.data=b=!b}):i&&i.resolve?(O=i.resolve(void 0),C=O.then,c=function(){C.call(O,f)}):c=function(){t.call(a,f)}),x.exports=l||function(M){var w={fn:M,next:void 0};h&&(h.next=w),o||(o=w,c()),h=w}},m3rI:function(x,g,e){"use strict";var a={PROXY_SERVER:"http://39.106.5.207",API_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"http://47.111.130.18:51234",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},n=a,r={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},dev:a,newReactTest:{API_SERVER:function(){var u="https://test-data.educoder.net";return u}(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:"https://new-testali-cdn.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net")},preNewBuild:{API_SERVER:"https://pre-data.educoder.net",IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net")},newBuild:{API_SERVER:function(){var u="https://data.educoder.net",v=document.domain;return v==="kepukehuan.educoder.net"?u="https://kepukehuan-data.educoder.net":(document.domain==="www.tokcoder.com"||document.domain==="tokcoder.com")&&(u="https://data.tokcoder.com"),u}(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net")},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net")},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net")},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net")}},t=g.a=r[window.ENV||"dev"]},m47v:function(x,g,e){"use strict";e.d(g,"c",function(){return u}),e.d(g,"d",function(){return m}),e.d(g,"e",function(){return s}),e.d(g,"a",function(){return l}),e.d(g,"b",function(){return o});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(c){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/virtual_classrooms/".concat(b==null?void 0:b.id,".json"),{method:"get"}));case 1:case"end":return O.stop()}},c)})),v.apply(this,arguments)}function m(c){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/virtual_classrooms/".concat(b==null?void 0:b.id,"/modules.json"),{method:"get"}));case 1:case"end":return O.stop()}},c)})),i.apply(this,arguments)}function s(c){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/virtual_classrooms/".concat(b.id,"/videos/batch_publish.json"),{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),d.apply(this,arguments)}function l(c){return f.apply(this,arguments)}function f(){return f=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/members.json"),{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),f.apply(this,arguments)}function o(c){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function c(b){return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",Object(t.a)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/members/").concat(b.id,"/change_creator.json"),{method:"post",body:b}));case 1:case"end":return O.stop()}},c)})),h.apply(this,arguments)}},m71J:function(x,g,e){"use strict";var a=e("MMxC"),n=e("eYKs").codeAt;a({target:"String",proto:!0},{codePointAt:function(t){return n(this,t)}})},mGKP:function(x,g,e){var a=e("EdiO");function n(r,t){if(!r)return;if(typeof r=="string")return a(r,t);var u=Object.prototype.toString.call(r).slice(8,-1);if(u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set")return Array.from(r);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(r,t)}x.exports=n},mLN8:function(x,g,e){"use strict";var a=e("MMxC"),n=e("hKmx"),r=e("cTDu"),t=e("oa35"),u=e("m0kY"),v=e("nMuc");a({target:"Array",proto:!0},{flat:function(){var i=arguments.length?arguments[0]:void 0,s=r(this),d=t(s.length),l=v(s,0);return l.length=n(l,s,s,d,0,i===void 0?1:u(i)),l}})},mMun:function(x,g,e){"use strict";var a=e("tny8"),n=e("ukPv"),r=e("kkxG"),t=e("NMFW"),u=e("jtLI"),v=e("UwrT"),m=e("+vfm"),i=e("gFfw"),s=e("MVys"),d=e("u+7+"),l=e("uGHk").f,f=e("g8rt").f,o=e("YfKC").f,h=e("mTKU").trim,c="Number",b=n[c],E=b.prototype,O=v(d(E))==c,C=function(z){var G=i(z,!1),D,N,Oe,ue,re,ee,J,F;if(typeof G=="string"&&G.length>2){if(G=h(G),D=G.charCodeAt(0),D===43||D===45){if(N=G.charCodeAt(2),N===88||N===120)return NaN}else if(D===48){switch(G.charCodeAt(1)){case 66:case 98:Oe=2,ue=49;break;case 79:case 111:Oe=8,ue=55;break;default:return+G}for(re=G.slice(2),ee=re.length,J=0;Jue)return NaN;return parseInt(re,Oe)}}return+G};if(r(c,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var M=function(G){var D=arguments.length<1?0:G,N=this;return N instanceof M&&(O?s(function(){E.valueOf.call(N)}):v(N)!=c)?m(new b(C(D)),N,M):C(D)},w=a?l(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0,L;w.length>A;A++)u(b,L=w[A])&&!u(M,L)&&o(M,L,f(b,L));M.prototype=E,E.constructor=M,t(n,c,M)}},mTKU:function(x,g,e){var a=e("FCfD"),n=e("Tfd0"),r="["+n+"]",t=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),v=function(m){return function(i){var s=String(a(i));return m&1&&(s=s.replace(t,"")),m&2&&(s=s.replace(u,"")),s}};x.exports={start:v(1),end:v(2),trim:v(3)}},maeH:function(x,g,e){var a=e("tny8"),n=e("YfKC").f,r=Function.prototype,t=r.toString,u=/^\s*function ([^ (]*)/,v="name";a&&!(v in r)&&n(r,v,{configurable:!0,get:function(){try{return t.call(this).match(u)[1]}catch(m){return""}}})},mcGr:function(x,g,e){"use strict";var a=e("MMxC"),n=e("2FZw").start,r=e("y9mK");a({target:"String",proto:!0,forced:r},{padStart:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},md7G:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("U8pU"),n=e("JX7q");function r(t,u){if(u&&(Object(a.a)(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Object(n.a)(t)}},mmNF:function(x,g){var e={utf8:{stringToBytes:function(a){return e.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(e.bin.bytesToString(a)))}},bin:{stringToBytes:function(a){for(var n=[],r=0;r=E.student_data.goal_score?D:null),M.min.push(D>=E.student_data.goal_score?null:D),w.push(z.name),A.push(z.student_id),L.push(z.clazz)}),b[O+1]={name:O+1,average_score:E.student_data.average_score,goal_score:E.student_data.goal_score,xData:C,yData:M,name_data:w,student_ids:A,class_data:L,goal_scoreData:new Array(E.student_data.detail.length).fill(E.student_data.goal_score),average_scoreData:new Array(E.student_data.detail.length).fill(E.student_data.average_score)}}),o.history.forEach(function(E){c=Object(n.a)(Object(n.a)({},c),{},{xData:[].concat(Object(a.a)(c.xData),[E.year]),seriesData:[].concat(Object(a.a)(c.seriesData),[E.total_score])})}),Object(n.a)(Object(n.a)({},l),{},{name:o.course_name||"",tabListData:o.ec_course_target,echartsData:{barData:h,lineData:c,scatterData:b}})}},subscriptions:{setup:function(l){var f=l.dispatch,o=l.history;return o.listen(function(h){var c=h.pathname;c==="/"&&f({type:"query"})})}}};g.a=s},nkhd:function(x,g,e){"use strict";var a=e("MMxC"),n=e("tny8"),r=e("Acmb"),t=e("g1ZG"),u=e("u+7+"),v=e("YfKC"),m=e("HhvW"),i=e("IuhT"),s=e("lz10"),d=e("1aI8"),l=d.set,f=d.getterFor("AggregateError"),o=function(c,b){var E=this;if(!(E instanceof o))return new o(c,b);t&&(E=t(new Error(b),r(E)));var O=[];return i(c,O.push,O),n?l(E,{errors:O,type:"AggregateError"}):E.errors=O,b!==void 0&&s(E,"message",String(b)),E};o.prototype=u(Error.prototype,{constructor:m(5,o),message:m(5,""),name:m(5,"AggregateError")}),n&&v.f(o.prototype,"errors",{get:function(){return f(this).errors},configurable:!0}),a({global:!0},{AggregateError:o})},nlPz:function(x,g,e){"use strict";var a=e("MMxC"),n=e("NcLc");a({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},nmq7:function(x,g,e){"use strict";var a=e("0jNN"),n=Object.prototype.hasOwnProperty,r=Array.isArray,t={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(o){return o.replace(/&#(\d+);/g,function(h,c){return String.fromCharCode(parseInt(c,10))})},v=function(o,h){return o&&typeof o=="string"&&h.comma&&o.indexOf(",")>-1?o.split(","):o},m="utf8=%26%2310003%3B",i="utf8=%E2%9C%93",s=function(h,c){var b={},E=c.ignoreQueryPrefix?h.replace(/^\?/,""):h,O=c.parameterLimit===Infinity?void 0:c.parameterLimit,C=E.split(c.delimiter,O),M=-1,w,A=c.charset;if(c.charsetSentinel)for(w=0;w-1&&(N=r(N)?[N]:N),n.call(b,D)?b[D]=a.combine(b[D],N):b[D]=N}return b},d=function(o,h,c,b){for(var E=b?h:v(h,c),O=o.length-1;O>=0;--O){var C,M=o[O];if(M==="[]"&&c.parseArrays)C=[].concat(E);else{C=c.plainObjects?Object.create(null):{};var w=M.charAt(0)==="["&&M.charAt(M.length-1)==="]"?M.slice(1,-1):M,A=parseInt(w,10);!c.parseArrays&&w===""?C={0:E}:!isNaN(A)&&M!==w&&String(A)===w&&A>=0&&c.parseArrays&&A<=c.arrayLimit?(C=[],C[A]=E):w!=="__proto__"&&(C[w]=E)}E=C}return E},l=function(h,c,b,E){if(!h)return;var O=b.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,C=/(\[[^[\]]*])/,M=/(\[[^[\]]*])/g,w=b.depth>0&&C.exec(O),A=w?O.slice(0,w.index):O,L=[];if(A){if(!b.plainObjects&&n.call(Object.prototype,A)&&!b.allowPrototypes)return;L.push(A)}for(var z=0;b.depth>0&&(w=M.exec(O))!==null&&z1?arguments[1]:void 0,3);return!v(d,function(f,o){if(!l(o,f,s))return v.stop()},void 0,!0,!0).stopped}})},oZsa:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(n)}},oa35:function(x,g,e){var a=e("m0kY"),n=Math.min;x.exports=function(r){return r>0?n(a(r),9007199254740991):0}},oat3:function(x,g,e){"use strict";var a=e("FVwB"),n=e("QQ4S"),r=a.aTypedArray,t=a.exportTypedArrayMethod;t("lastIndexOf",function(v){return n.apply(r(this),arguments)})},"p/G/":function(x,g,e){"use strict";var a=e("FVwB"),n=a.aTypedArray,r=a.exportTypedArrayMethod,t=[].join;r("join",function(v){return t.apply(n(this),arguments)})},p1ln:function(x,g,e){var a=e("MMxC"),n=e("qitQ");a({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},p5yU:function(x,g,e){var a=e("MMxC"),n=e("ukPv"),r=e("m3pO"),t=e("UwrT"),u=n.process,v=t(u)=="process";a({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(i){var s=v&&u.domain;r(s?s.bind(i):i)}})},p6E5:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("+X1D");a({target:"WeakSet",proto:!0,real:!0,forced:n},{deleteAll:function(){return r.apply(this,arguments)}})},pVnL:function(x,g){function e(){return x.exports=e=Object.assign||function(a){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return[{name:"\u5185\u5BB9\u5BA1\u6838\u60C5\u51B5",id:"Content",status:b==null||((d=b.content_info)===null||d===void 0)?void 0:d.status,username:b==null||((l=b.content_info)===null||l===void 0)?void 0:l.username,time:b==null||((f=b.content_info)===null||f===void 0)?void 0:f.time},{name:"\u6027\u80FD\u5BA1\u6838\u60C5\u51B5",id:"Performance",status:b==null||((o=b.perference_info)===null||o===void 0)?void 0:o.status,username:b==null||((h=b.perference_info)===null||h===void 0)?void 0:h.username,time:b==null||((c=b.perference_info)===null||c===void 0)?void 0:c.time}]},v=e("1vsH"),m={namespace:"shixunsDetail",state:{detail:void 0,rightData:void 0,challenges:void 0,auditSituationData:void 0,setting:void 0,challengesNew:{},challengesEdit:{},editChallengesQuestion:{},fileContent:{},repository:{},mirrorApplies:{},infoWithJupyterLab:{},actionTabs:{key:"",params:{}}},effects:{getShixunsDetail:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.mb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{detail:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getMirrorApplies:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.Y,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{mirrorApplies:Object(a.a)({},(c==null?void 0:c.data)||{})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getRightData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.gb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{rightData:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.J,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challenges:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),execJupyter:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.D,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),execShixun:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.E,f);case 4:return c=E.sent,(c==null?void 0:c.status)===-3&&Object(v.q)(),E.abrupt("return",c);case 7:case"end":return E.stop()}},s)}),openChallenge:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.yb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),challengeMoveUp:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.n,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),challengeMoveDown:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.m,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelCollect:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.j,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),collect:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.q,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),searchUserCourses:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Eb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),sendToCourse:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Fb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelRelease:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.l,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelPublic:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.k,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),applyPublic:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.h,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),release:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ab,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateAuditSituation:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Jb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getCollaboratorsData:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.N,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addCollaborator:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.d,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addTeachGroupMember:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.g,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getChangeManager:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.M,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),changeManager:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.o,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteCollaborators:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.x,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRankingList:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.cb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getMirrorScript:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Z,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getScriptContent:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.hb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getCustomScript:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.O,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateSettingBasicInfo:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Vb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getShixunQuote:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.lb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteShixun:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.B,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),permanentClose:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.zb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getDepartments:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.P,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updatePermissionSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Rb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateLearnSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Qb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ub,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getSetData:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.jb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteDataSet:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.y,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteGitFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.z,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteGitFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.A,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),moveGitFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.wb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),moveGitFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.xb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRepository:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.db,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{repository:Object(a.a)({},c)}});case 7:return E.abrupt("return",Object(a.a)({},c));case 8:case"end":return E.stop()}},s)}),getRepositorys:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.fb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{repository:Object(a.a)({},c)}});case 7:return E.abrupt("return",Object(a.a)({},c));case 8:case"end":return E.stop()}},s)}),getSecretRepository:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.ib,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{secretRepository:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),addRepositoryFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.e,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addRepositoryFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.f,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRepositoryCommit:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.eb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getFileContent:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.T,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{fileContent:Object(a.a)(Object(a.a)({},c),{},{params:f})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getFileContents:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.U,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{fileContent:Object(a.a)(Object(a.a)({},c),{},{params:f})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),updateRepositoryFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Sb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateRepositoryFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Tb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),uploadGitFolder:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Wb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateCollaboratorEditable:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ob,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getSettingsData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.kb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{setting:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesNew:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.L,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challengesNew:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesEdit:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.K,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challengesEdit:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getAuditSituationData:r.a.mark(function s(d,l){var f,o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return f=d.payload,o=l.call,h=l.put,O.next=4,o(t.G,f);case 4:return c=O.sent,b=u(c),O.next=8,h({type:"save",payload:{auditSituationData:b}});case 8:case"end":return O.stop()}},s)}),getEditChallengesQuestion:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.Q,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{editChallengesQuestion:c}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getInfoWithJupyterLab:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.W,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{infoWithJupyterLab:c}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),setActionTabs:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,h({type:"save",payload:{actionTabs:Object(a.a)({},f)}});case 4:case"end":return b.stop()}},s)})},reducers:{save:function(d,l){return console.log("reducers:",d,l),Object(a.a)(Object(a.a)({},d),l.payload)}},subscriptions:{setup:function(d){var l=d.dispatch,f=d.history;return f.listen(function(o){var h=o.pathname;h==="/"&&l({type:"query"})})}}},i=g.a=m},q1tI:function(x,g,e){"use strict";x.exports=e("viRO")},qA1w:function(x,g,e){"use strict";x.exports=function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];return new this(r)}},qDJ8:function(x,g,e){"use strict";/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(m){return n(m)||Object(r.a)(m)||Object(t.a)(m)||u()}},oJGl:function(x,g,e){var a=e("MMxC"),n=e("aF2d");a({target:"WeakMap",stat:!0},{from:n})},oLb5:function(x,g,e){var a=e("MMxC");a({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},oNMB:function(x,g,e){"use strict";var a=e("MMxC"),n=e("EzR6"),r=e("0qr0"),t=e("R8iy"),u=[].join,v=n!=Object,m=t("join",",");a({target:"Array",proto:!0,forced:v||!m},{join:function(s){return u.call(r(this),s===void 0?",":s)}})},oNNP:function(x,g,e){"use strict";var a=e("D3zA");x.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},oUNq:function(x,g,e){"use strict";e.d(g,"R",function(){return v}),e.d(g,"pb",function(){return i}),e.d(g,"V",function(){return f}),e.d(g,"Q",function(){return h}),e.d(g,"T",function(){return b}),e.d(g,"U",function(){return O}),e.d(g,"P",function(){return M}),e.d(g,"O",function(){return A}),e.d(g,"N",function(){return z}),e.d(g,"S",function(){return D}),e.d(g,"M",function(){return Oe}),e.d(g,"Z",function(){return re}),e.d(g,"K",function(){return J}),e.d(g,"L",function(){return Q}),e.d(g,"H",function(){return He}),e.d(g,"F",function(){return ft}),e.d(g,"G",function(){return Ue}),e.d(g,"rb",function(){return me}),e.d(g,"jb",function(){return W}),e.d(g,"gb",function(){return Ye}),e.d(g,"J",function(){return rt}),e.d(g,"ab",function(){return Ve}),e.d(g,"db",function(){return ht}),e.d(g,"cb",function(){return ye}),e.d(g,"eb",function(){return we}),e.d(g,"W",function(){return Y}),e.d(g,"qb",function(){return U}),e.d(g,"ib",function(){return Ae}),e.d(g,"j",function(){return k}),e.d(g,"h",function(){return oe}),e.d(g,"fb",function(){return K}),e.d(g,"g",function(){return T}),e.d(g,"nb",function(){return se}),e.d(g,"ob",function(){return ve}),e.d(g,"Eb",function(){return it}),e.d(g,"c",function(){return Et}),e.d(g,"Ab",function(){return Ht}),e.d(g,"C",function(){return tn}),e.d(g,"B",function(){return gn}),e.d(g,"zb",function(){return Tn}),e.d(g,"b",function(){return En}),e.d(g,"a",function(){return vn}),e.d(g,"Cb",function(){return Pn}),e.d(g,"Bb",function(){return bt}),e.d(g,"p",function(){return Ft}),e.d(g,"l",function(){return Ct}),e.d(g,"X",function(){return Fe}),e.d(g,"Ib",function(){return dt}),e.d(g,"t",function(){return Ce}),e.d(g,"r",function(){return qe}),e.d(g,"v",function(){return Z}),e.d(g,"s",function(){return gt}),e.d(g,"z",function(){return xt}),e.d(g,"u",function(){return ln}),e.d(g,"x",function(){return Ln}),e.d(g,"w",function(){return Ke}),e.d(g,"n",function(){return Ut}),e.d(g,"k",function(){return Mn}),e.d(g,"Db",function(){return kn}),e.d(g,"sb",function(){return qn}),e.d(g,"lb",function(){return ar}),e.d(g,"I",function(){return br}),e.d(g,"bb",function(){return Hr}),e.d(g,"Hb",function(){return Fr}),e.d(g,"A",function(){return ne}),e.d(g,"y",function(){return Ie}),e.d(g,"mb",function(){return mt}),e.d(g,"Kb",function(){return Ot}),e.d(g,"Fb",function(){return he}),e.d(g,"E",function(){return I}),e.d(g,"Lb",function(){return yt}),e.d(g,"d",function(){return Lt}),e.d(g,"D",function(){return Vt}),e.d(g,"Y",function(){return kt}),e.d(g,"yb",function(){return Jt}),e.d(g,"m",function(){return Cn}),e.d(g,"tb",function(){return er}),e.d(g,"Gb",function(){return ir}),e.d(g,"o",function(){return Vr}),e.d(g,"ub",function(){return na}),e.d(g,"q",function(){return _r}),e.d(g,"f",function(){return Br}),e.d(g,"kb",function(){return Gr}),e.d(g,"i",function(){return ra}),e.d(g,"Jb",function(){return Ir}),e.d(g,"wb",function(){return aa}),e.d(g,"xb",function(){return ea}),e.d(g,"hb",function(){return mn}),e.d(g,"vb",function(){return Un}),e.d(g,"e",function(){return An});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(nt){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses.json",{method:"Get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),m.apply(this,arguments)}function i(nt){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),s.apply(this,arguments)}function d(nt){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/disciplines.json",{method:"Get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),l.apply(this,arguments)}function f(nt){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/top_banner.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),o.apply(this,arguments)}function h(nt){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id||pt.coursesId,"/left_banner.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),c.apply(this,arguments)}function b(nt){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/homework_commons.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),E.apply(this,arguments)}function O(nt){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/homework_commons/list.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),C.apply(this,arguments)}function M(nt){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/graduation_topics.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),w.apply(this,arguments)}function A(nt){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/graduation_tasks.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),L.apply(this,arguments)}function z(nt){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/exercises.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),G.apply(this,arguments)}function D(nt){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/polls.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),N.apply(this,arguments)}function Oe(nt){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/homework_commons.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ue.apply(this,arguments)}function re(nt){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/course_groups.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ee.apply(this,arguments)}function J(nt){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/attendances.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),F.apply(this,arguments)}function Q(nt){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/weapps/courses/".concat(pt.coursesId,"/attendances.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),q.apply(this,arguments)}function He(nt){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/attendances/".concat(pt.id,"/edit.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),Ze.apply(this,arguments)}function ft(nt){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/informs.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),$e.apply(this,arguments)}function Ue(nt){return X.apply(this,arguments)}function X(){return X=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/files.json",{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),X.apply(this,arguments)}function me(nt){return ie.apply(this,arguments)}function ie(){return ie=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/course_videos.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ie.apply(this,arguments)}function W(nt){return de.apply(this,arguments)}function de(){return de=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/live_links.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),de.apply(this,arguments)}function Ye(nt){return fe.apply(this,arguments)}function fe(){return fe=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/mine.json",{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),fe.apply(this,arguments)}function rt(nt){return Te.apply(this,arguments)}function Te(){return Te=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/boards/".concat(pt.categoryId,"/messages.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),Te.apply(this,arguments)}function Ve(nt){return tt.apply(this,arguments)}function tt(){return tt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/course_groups.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),tt.apply(this,arguments)}function ht(nt){return ge.apply(this,arguments)}function ge(){return ge=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/students.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ge.apply(this,arguments)}function ye(nt){return je.apply(this,arguments)}function je(){return je=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/statistics.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),je.apply(this,arguments)}function we(nt){return ce.apply(this,arguments)}function ce(){return ce=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/work_score.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ce.apply(this,arguments)}function Y(nt){return V.apply(this,arguments)}function V(){return V=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/act_score.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),V.apply(this,arguments)}function U(nt){return B.apply(this,arguments)}function B(){return B=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/shixun_lists.json",{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),B.apply(this,arguments)}function Ae(nt){return S.apply(this,arguments)}function S(){return S=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt==null?void 0:pt.course_id,"/homework_commons/impersonal_list.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),S.apply(this,arguments)}function k(nt){return ae.apply(this,arguments)}function ae(){return ae=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/homework_commons/create_shixun_homework.json"),{method:"post",body:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),ae.apply(this,arguments)}function oe(nt){return le.apply(this,arguments)}function le(){return le=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt==null?void 0:pt.course_id,"/homework_commons/create_collaborators.json"),{method:"post",body:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),le.apply(this,arguments)}function K(nt){return P.apply(this,arguments)}function P(){return P=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/subject_lists.json",{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),P.apply(this,arguments)}function T(nt){return $.apply(this,arguments)}function $(){return $=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/homework_commons/create_subject_homework.json"),{method:"post",body:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),$.apply(this,arguments)}function se(nt){return ke.apply(this,arguments)}function ke(){return ke=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/schools/school_list.json",{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),ke.apply(this,arguments)}function ve(nt){return Be.apply(this,arguments)}function Be(){return Be=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/search_course_list.json",{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Be.apply(this,arguments)}function it(nt){return We.apply(this,arguments)}function We(){return We=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses.json",{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),We.apply(this,arguments)}function Et(nt){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/add_school_applies.json",{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Tt.apply(this,arguments)}function Ht(nt){return It.apply(this,arguments)}function It(){return It=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/users/member_search.json",{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),It.apply(this,arguments)}function tn(){return qt.apply(this,arguments)}function qt(){return qt=Object(n.a)(t.a.mark(function nt(){return t.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.abrupt("return",Object(u.a)("/api/student_groups.json",{method:"get",params:{page:1,limit:1e3}}));case 1:case"end":return Yt.stop()}},nt)})),qt.apply(this,arguments)}function gn(nt){return an.apply(this,arguments)}function an(){return an=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.identifier,"/add_student_groups.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),an.apply(this,arguments)}function Tn(nt){return on.apply(this,arguments)}function on(){return on=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/search_all.json",{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),on.apply(this,arguments)}function En(nt){return yn.apply(this,arguments)}function yn(){return yn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/add_teacher.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),yn.apply(this,arguments)}function vn(nt){return Rn.apply(this,arguments)}function Rn(){return Rn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/add_students_by_search.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Rn.apply(this,arguments)}function Pn(nt){return St.apply(this,arguments)}function St(){return St=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/set_public_or_private.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),St.apply(this,arguments)}function bt(nt){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/set_invite_code_halt.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Pt.apply(this,arguments)}function Ft(nt){return De.apply(this,arguments)}function De(){return De=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/duplicate_course.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),De.apply(this,arguments)}function Ct(nt){return be.apply(this,arguments)}function be(){return be=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,".json"),{method:"delete",body:pt}));case 1:case"end":return Se.stop()}},nt)})),be.apply(this,arguments)}function Fe(nt){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/settings.json"),{method:"get",params:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),Ne.apply(this,arguments)}function dt(nt){return Pe.apply(this,arguments)}function Pe(){return Pe=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,".json"),{method:"put",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Pe.apply(this,arguments)}function Ce(nt){return ct.apply(this,arguments)}function ct(){return ct=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_couser_info.json"),{method:"get",params:{export:!0}}));case 1:case"end":return Se.stop()}},nt)})),ct.apply(this,arguments)}function qe(nt){return Me.apply(this,arguments)}function Me(){return Me=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_member_act_score_async.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),Me.apply(this,arguments)}function Z(nt){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_total_homework_commons_score.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),Xe.apply(this,arguments)}function gt(nt){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_total_exercises_and_other_score.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),Mt.apply(this,arguments)}function xt(nt){return Gt.apply(this,arguments)}function Gt(){return Gt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_mooc_records.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),Gt.apply(this,arguments)}function ln(nt){return nn.apply(this,arguments)}function nn(){return nn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/export_total_course_score.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),nn.apply(this,arguments)}function Ln(nt){return bn.apply(this,arguments)}function bn(){return bn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/homework_commons/".concat(pt.categoryId,"/export_scores.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),bn.apply(this,arguments)}function Ke(nt){return _e.apply(this,arguments)}function _e(){return _e=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/homework_commons/".concat(pt.categoryId,"/works_list.zip"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),_e.apply(this,arguments)}function Ut(nt){return _.apply(this,arguments)}function _(){return _=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api//course_second_categories/".concat(pt.id,".json"),{method:"delete",params:{export:!0}}));case 1:case"end":return Se.stop()}},nt)})),_.apply(this,arguments)}function Mn(nt){return Wn.apply(this,arguments)}function Wn(){return Wn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api//boards/".concat(pt.id,".json"),{method:"delete",params:{export:!0}}));case 1:case"end":return Se.stop()}},nt)})),Wn.apply(this,arguments)}function kn(nt){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/course_modules/".concat(pt.id,"/sticky_module.json"),{method:"get"}));case 1:case"end":return Se.stop()}},nt)})),Fn.apply(this,arguments)}function qn(nt){return Hn.apply(this,arguments)}function Hn(){return Hn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/course_modules/".concat(pt.id,"/hidden_module.json"),{method:"get"}));case 1:case"end":return Se.stop()}},nt)})),Hn.apply(this,arguments)}function ar(nt){return dr.apply(this,arguments)}function dr(){return dr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/new.json",{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),dr.apply(this,arguments)}function br(nt){return jr.apply(this,arguments)}function jr(){return jr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/weapps/attendances/".concat(pt.id,".json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),jr.apply(this,arguments)}function Hr(nt){return _n.apply(this,arguments)}function _n(){return _n=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/weapps/course_member_attendances.json",{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),_n.apply(this,arguments)}function Fr(nt){return Ge.apply(this,arguments)}function Ge(){return Ge=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/weapps/course_member_attendances/update_status.json",{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Ge.apply(this,arguments)}function ne(nt){return te.apply(this,arguments)}function te(){return te=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/polls/".concat(pt.categoryId,"/commit_result.xlsx"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),te.apply(this,arguments)}function Ie(nt){return ze.apply(this,arguments)}function ze(){return ze=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/exercises/".concat(pt.categoryId,"/export_scores.json"),{method:"get",params:Object(a.a)({export:!0},pt)}));case 1:case"end":return Se.stop()}},nt)})),ze.apply(this,arguments)}function mt(nt){return Object(u.a)("/api/polls/".concat(nt.categoryId,"/start_answer.json"),{method:"get",params:Object(a.a)({},nt)})}function Ot(nt){return Rt.apply(this,arguments)}function Rt(){return Rt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/poll_questions/".concat(pt.questionId,"/poll_votes.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Rt.apply(this,arguments)}function he(nt){return Re.apply(this,arguments)}function Re(){return Re=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/polls/".concat(pt.categoryId,"/commit_poll.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Re.apply(this,arguments)}function I(nt){return ut.apply(this,arguments)}function ut(){return ut=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.courseId,"/tasks_list.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),ut.apply(this,arguments)}function yt(nt){return wt.apply(this,arguments)}function wt(){return wt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.courseId,"/update_task_position.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),wt.apply(this,arguments)}function Lt(nt){return Nt.apply(this,arguments)}function Nt(){return Nt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/calculate_all_shixun_scores.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),Nt.apply(this,arguments)}function Vt(nt){return pn.apply(this,arguments)}function pn(){return pn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/all_course_groups.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),pn.apply(this,arguments)}function kt(nt){return Xt.apply(this,arguments)}function Xt(){return Xt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/students.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),Xt.apply(this,arguments)}function Jt(nt){return xn.apply(this,arguments)}function xn(){return xn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/course_groups/".concat(pt.categoryId,"/rename_group.json"),{method:"POST",body:pt}));case 1:case"end":return Se.stop()}},nt)})),xn.apply(this,arguments)}function Cn(nt){return or.apply(this,arguments)}function or(){return or=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/course_groups/".concat(pt.categoryId,".json"),{method:"delete",body:pt}));case 1:case"end":return Se.stop()}},nt)})),or.apply(this,arguments)}function er(nt){return sr.apply(this,arguments)}function sr(){return sr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/join_course_group.json"),{method:"POST",body:pt}));case 1:case"end":return Se.stop()}},nt)})),sr.apply(this,arguments)}function ir(nt){return gr.apply(this,arguments)}function gr(){return gr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/transfer_to_course_group.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),gr.apply(this,arguments)}function Vr(nt){return $r.apply(this,arguments)}function $r(){return $r=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/delete_from_course.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),$r.apply(this,arguments)}function na(nt){return Zr.apply(this,arguments)}function Zr(){return Zr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/join_course_group.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Zr.apply(this,arguments)}function _r(nt){return Dr.apply(this,arguments)}function Dr(){return Dr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/exit_course.json"),{method:"post"}));case 1:case"end":return Se.stop()}},nt)})),Dr.apply(this,arguments)}function Br(nt){return Pr.apply(this,arguments)}function Pr(){return Pr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/weapps/course_member_attendances.json",{method:"post",body:Object(a.a)({},pt)}));case 1:case"end":return Se.stop()}},nt)})),Pr.apply(this,arguments)}function Gr(nt){return qr.apply(this,arguments)}function qr(){return qr=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/mooc_users/").concat(pt.user_id,"/edit.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),qr.apply(this,arguments)}function ra(nt){return ca.apply(this,arguments)}function ca(){return ca=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/mooc_users.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),ca.apply(this,arguments)}function Ir(nt){return Ar.apply(this,arguments)}function Ar(){return Ar=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.coursesId,"/mooc_users/").concat(pt.user_id,".json"),{method:"put",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Ar.apply(this,arguments)}function aa(nt){return oa.apply(this,arguments)}function oa(){return oa=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/course_second_categories/".concat(pt.id,"/move_category.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),oa.apply(this,arguments)}function ea(nt){return Qt.apply(this,arguments)}function Qt(){return Qt=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/boards/".concat(pt.id,"/move_category.json"),{method:"post",body:pt}));case 1:case"end":return Se.stop()}},nt)})),Qt.apply(this,arguments)}function mn(nt){return fn.apply(this,arguments)}function fn(){return fn=Object(n.a)(t.a.mark(function nt(pt){return t.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.abrupt("return",Object(u.a)("/api/courses/".concat(pt.id,"/courseware.json"),{method:"get",params:pt}));case 1:case"end":return Se.stop()}},nt)})),fn.apply(this,arguments)}function Un(nt,pt){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(n.a)(t.a.mark(function nt(pt,Yt){return t.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.abrupt("return",Object(u.a)("/api/exercises/".concat(pt,"/mark_wrong_topic.json"),{method:"get",params:Yt}));case 1:case"end":return vr.stop()}},nt)})),Dn.apply(this,arguments)}function An(nt,pt){return jn.apply(this,arguments)}function jn(){return jn=Object(n.a)(t.a.mark(function nt(pt,Yt){return t.a.wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:return vr.abrupt("return",Object(u.a)("/api/exercises/".concat(pt,"/cancel_wrong_topic.json"),{method:"get",params:Yt}));case 1:case"end":return vr.stop()}},nt)})),jn.apply(this,arguments)}},oXNe:function(x,g,e){"use strict";e.d(g,"d",function(){return v}),e.d(g,"e",function(){return i}),e.d(g,"i",function(){return d}),e.d(g,"c",function(){return f}),e.d(g,"f",function(){return h}),e.d(g,"a",function(){return b}),e.d(g,"g",function(){return O}),e.d(g,"h",function(){return M}),e.d(g,"b",function(){return A});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(z){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/courses/board_list.json",{method:"get",params:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),m.apply(this,arguments)}function i(z){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/messages/".concat(G.boardId,".json"),{method:"get",params:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),s.apply(this,arguments)}function d(z){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/messages/".concat(G.id,"/sticky_top.json"),{method:"put",body:{course_id:G.coursesId}}));case 1:case"end":return N.stop()}},z)})),l.apply(this,arguments)}function f(z){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/messages/".concat(G.id,"/sticky_top.json"),{method:"put",body:{course_id:G.coursesId}}));case 1:case"end":return N.stop()}},z)})),o.apply(this,arguments)}function h(z){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/messages/".concat(G.boardId,"/reply_list.json"),{method:"get",params:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),c.apply(this,arguments)}function b(z){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/messages/".concat(G.boardId,"/reply.json"),{method:"post",body:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),E.apply(this,arguments)}function O(z){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/praise_tread/like.json",{method:"post",body:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),C.apply(this,arguments)}function M(z){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/praise_tread/unlike.json",{method:"delete",body:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),w.apply(this,arguments)}function A(z){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function z(G){return t.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",Object(u.a)("/api/commons/delete.json",{method:"delete",body:Object(a.a)({},G)}));case 1:case"end":return N.stop()}},z)})),L.apply(this,arguments)}},oYEA:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("f1E4"),t=e("7BAe"),u=e("PPXv"),v=e("IuhT");a({target:"Map",proto:!0,real:!0,forced:n},{every:function(i){var s=r(this),d=u(s),l=t(i,arguments.length>1?arguments[1]:void 0,3);return!v(d,function(f,o){if(!l(o,f,s))return v.stop()},void 0,!0,!0).stopped}})},oZsa:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(n)}},oa35:function(x,g,e){var a=e("m0kY"),n=Math.min;x.exports=function(r){return r>0?n(a(r),9007199254740991):0}},oat3:function(x,g,e){"use strict";var a=e("FVwB"),n=e("QQ4S"),r=a.aTypedArray,t=a.exportTypedArrayMethod;t("lastIndexOf",function(v){return n.apply(r(this),arguments)})},"p/G/":function(x,g,e){"use strict";var a=e("FVwB"),n=a.aTypedArray,r=a.exportTypedArrayMethod,t=[].join;r("join",function(v){return t.apply(n(this),arguments)})},p1ln:function(x,g,e){var a=e("MMxC"),n=e("qitQ");a({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},p5yU:function(x,g,e){var a=e("MMxC"),n=e("ukPv"),r=e("m3pO"),t=e("UwrT"),u=n.process,v=t(u)=="process";a({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(i){var s=v&&u.domain;r(s?s.bind(i):i)}})},p6E5:function(x,g,e){"use strict";var a=e("MMxC"),n=e("Zcjx"),r=e("+X1D");a({target:"WeakSet",proto:!0,real:!0,forced:n},{deleteAll:function(){return r.apply(this,arguments)}})},pVnL:function(x,g){function e(){return x.exports=e=Object.assign||function(a){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return[{name:"\u5185\u5BB9\u5BA1\u6838\u60C5\u51B5",id:"Content",status:b==null||((d=b.content_info)===null||d===void 0)?void 0:d.status,username:b==null||((l=b.content_info)===null||l===void 0)?void 0:l.username,time:b==null||((f=b.content_info)===null||f===void 0)?void 0:f.time},{name:"\u6027\u80FD\u5BA1\u6838\u60C5\u51B5",id:"Performance",status:b==null||((o=b.perference_info)===null||o===void 0)?void 0:o.status,username:b==null||((h=b.perference_info)===null||h===void 0)?void 0:h.username,time:b==null||((c=b.perference_info)===null||c===void 0)?void 0:c.time}]},v=e("1vsH"),m={namespace:"shixunsDetail",state:{detail:void 0,rightData:void 0,challenges:void 0,auditSituationData:void 0,setting:void 0,challengesNew:{},challengesEdit:{},editChallengesQuestion:{},fileContent:{},repository:{},mirrorApplies:{},infoWithJupyterLab:{},actionTabs:{key:"",params:{}}},effects:{getShixunsDetail:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.mb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{detail:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getMirrorApplies:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.Y,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{mirrorApplies:Object(a.a)({},(c==null?void 0:c.data)||{})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getRightData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.gb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{rightData:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.J,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challenges:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),execJupyter:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.D,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),execShixun:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.E,f);case 4:return c=E.sent,(c==null?void 0:c.status)===-3&&Object(v.q)(),E.abrupt("return",c);case 7:case"end":return E.stop()}},s)}),openChallenge:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.yb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),challengeMoveUp:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.n,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),challengeMoveDown:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.m,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelCollect:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.j,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),collect:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.q,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),searchUserCourses:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Eb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),sendToCourse:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Fb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelRelease:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.l,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),cancelPublic:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.k,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),applyPublic:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.h,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),release:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ab,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateAuditSituation:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Jb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getCollaboratorsData:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.N,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addCollaborator:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.d,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addTeachGroupMember:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.g,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getChangeManager:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.M,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),changeManager:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.o,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteCollaborators:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.x,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRankingList:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.cb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getMirrorScript:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Z,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getScriptContent:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.hb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getCustomScript:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.O,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateSettingBasicInfo:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Vb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getShixunQuote:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.lb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteShixun:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.B,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),permanentClose:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.zb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getDepartments:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.P,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updatePermissionSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Rb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateLearnSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Qb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateSetting:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ub,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getSetData:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.jb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteDataSet:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.y,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteGitFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.z,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),deleteGitFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.A,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),moveGitFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.wb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),moveGitFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.xb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRepository:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.db,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{repository:Object(a.a)({},c)}});case 7:return E.abrupt("return",Object(a.a)({},c));case 8:case"end":return E.stop()}},s)}),getRepositorys:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.fb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{repository:Object(a.a)({},c)}});case 7:return E.abrupt("return",Object(a.a)({},c));case 8:case"end":return E.stop()}},s)}),getSecretRepository:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.ib,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{secretRepository:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),addRepositoryFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.e,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),addRepositoryFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.f,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getRepositoryCommit:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.eb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getFileContent:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.T,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{fileContent:Object(a.a)(Object(a.a)({},c),{},{params:f})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getFileContents:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.U,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{fileContent:Object(a.a)(Object(a.a)({},c),{},{params:f})}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),updateRepositoryFile:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Sb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateRepositoryFiles:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Tb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),uploadGitFolder:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Wb,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),updateCollaboratorEditable:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,o(t.Ob,f);case 4:return b.abrupt("return",b.sent);case 5:case"end":return b.stop()}},s)}),getSettingsData:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.kb,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{setting:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesNew:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.L,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challengesNew:Object(a.a)({},c)}});case 7:case"end":return E.stop()}},s)}),getChallengesEdit:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.K,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{challengesEdit:Object(a.a)({},c)}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getAuditSituationData:r.a.mark(function s(d,l){var f,o,h,c,b;return r.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return f=d.payload,o=l.call,h=l.put,O.next=4,o(t.G,f);case 4:return c=O.sent,b=u(c),O.next=8,h({type:"save",payload:{auditSituationData:b}});case 8:case"end":return O.stop()}},s)}),getEditChallengesQuestion:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.Q,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{editChallengesQuestion:c}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),getInfoWithJupyterLab:r.a.mark(function s(d,l){var f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return f=d.payload,o=l.call,h=l.put,E.next=4,o(t.W,f);case 4:return c=E.sent,E.next=7,h({type:"save",payload:{infoWithJupyterLab:c}});case 7:return E.abrupt("return",c);case 8:case"end":return E.stop()}},s)}),setActionTabs:r.a.mark(function s(d,l){var f,o,h;return r.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return f=d.payload,o=l.call,h=l.put,b.next=4,h({type:"save",payload:{actionTabs:Object(a.a)({},f)}});case 4:case"end":return b.stop()}},s)})},reducers:{save:function(d,l){return console.log("reducers:",d,l),Object(a.a)(Object(a.a)({},d),l.payload)}},subscriptions:{setup:function(d){var l=d.dispatch,f=d.history;return f.listen(function(o){var h=o.pathname;h==="/"&&l({type:"query"})})}}},i=g.a=m},q1tI:function(x,g,e){"use strict";x.exports=e("viRO")},qA1w:function(x,g,e){"use strict";x.exports=function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];return new this(r)}},qDJ8:function(x,g,e){"use strict";/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. @@ -100,7 +100,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,t=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,v=a?Symbol.for("react.profiler"):60114,m=a?Symbol.for("react.provider"):60109,i=a?Symbol.for("react.context"):60110,s=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,l=a?Symbol.for("react.forward_ref"):60112,f=a?Symbol.for("react.suspense"):60113,o=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,c=a?Symbol.for("react.lazy"):60116,b=a?Symbol.for("react.block"):60121,E=a?Symbol.for("react.fundamental"):60117,O=a?Symbol.for("react.responder"):60118,C=a?Symbol.for("react.scope"):60119;function M(A){if(typeof A=="object"&&A!==null){var L=A.$$typeof;switch(L){case n:switch(A=A.type,A){case s:case d:case t:case v:case u:case f:return A;default:switch(A=A&&A.$$typeof,A){case i:case l:case c:case h:case m:return A;default:return L}}case r:return L}}}function w(A){return M(A)===d}g.AsyncMode=s,g.ConcurrentMode=d,g.ContextConsumer=i,g.ContextProvider=m,g.Element=n,g.ForwardRef=l,g.Fragment=t,g.Lazy=c,g.Memo=h,g.Portal=r,g.Profiler=v,g.StrictMode=u,g.Suspense=f,g.isAsyncMode=function(A){return w(A)||M(A)===s},g.isConcurrentMode=w,g.isContextConsumer=function(A){return M(A)===i},g.isContextProvider=function(A){return M(A)===m},g.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===n},g.isForwardRef=function(A){return M(A)===l},g.isFragment=function(A){return M(A)===t},g.isLazy=function(A){return M(A)===c},g.isMemo=function(A){return M(A)===h},g.isPortal=function(A){return M(A)===r},g.isProfiler=function(A){return M(A)===v},g.isStrictMode=function(A){return M(A)===u},g.isSuspense=function(A){return M(A)===f},g.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===t||A===d||A===v||A===u||A===f||A===o||typeof A=="object"&&A!==null&&(A.$$typeof===c||A.$$typeof===h||A.$$typeof===m||A.$$typeof===i||A.$$typeof===l||A.$$typeof===E||A.$$typeof===O||A.$$typeof===C||A.$$typeof===b)},g.typeOf=M},qcmB:function(x,g,e){var a=e("f1E4"),n=e("9SZg");x.exports=function(r){var t=n(r);if(typeof t!="function")throw TypeError(String(r)+" is not iterable");return a(t.call(r))}},qdXH:function(x,g,e){"use strict";e.d(g,"k",function(){return v}),e.d(g,"j",function(){return i}),e.d(g,"b",function(){return d}),e.d(g,"d",function(){return f}),e.d(g,"e",function(){return h}),e.d(g,"g",function(){return M}),e.d(g,"l",function(){return A}),e.d(g,"m",function(){return D}),e.d(g,"h",function(){return Oe}),e.d(g,"n",function(){return re}),e.d(g,"a",function(){return J}),e.d(g,"i",function(){return Q}),e.d(g,"f",function(){return He}),e.d(g,"c",function(){return ft});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(Ue){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/courses/".concat(X.coursesId,"/watch_video_histories.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),m.apply(this,arguments)}function i(Ue){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/courses/".concat(X.coursesId,"/watch_statics.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),s.apply(this,arguments)}function d(Ue){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/course_videos/".concat(X.videoId,"/watch_histories.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),l.apply(this,arguments)}function f(Ue){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/courses/".concat(X.coursesId,"/own_watch_histories.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),o.apply(this,arguments)}function h(Ue){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,".json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),c.apply(this,arguments)}function b(Ue){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items.json",{method:"post",body:X}));case 1:case"end":return ie.stop()}},Ue)})),E.apply(this,arguments)}function O(Ue){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,"/edit.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),C.apply(this,arguments)}function M(Ue){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/stage_shixuns/".concat(X.id,"/edit.json"),{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),w.apply(this,arguments)}function A(Ue){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,"/star.json"),{method:"post",body:X}));case 1:case"end":return ie.stop()}},Ue)})),L.apply(this,arguments)}function z(Ue){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,".json"),{method:"put",body:X}));case 1:case"end":return ie.stop()}},Ue)})),G.apply(this,arguments)}function D(Ue){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,"/send_to_course.json"),{method:"post",body:X}));case 1:case"end":return ie.stop()}},Ue)})),N.apply(this,arguments)}function Oe(Ue){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/users/my_courses.json",{method:"Get",params:Object(a.a)({},X)}));case 1:case"end":return ie.stop()}},Ue)})),ue.apply(this,arguments)}function re(Ue){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,"/view_video.json"),{method:"post",body:X}));case 1:case"end":return ie.stop()}},Ue)})),ee.apply(this,arguments)}function J(Ue){return F.apply(this,arguments)}function F(){return F=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/video_items/".concat(X.id,"/add_school.json"),{method:"post",body:X}));case 1:case"end":return ie.stop()}},Ue)})),F.apply(this,arguments)}function Q(Ue){return q.apply(this,arguments)}function q(){return q=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/courses/".concat(X.course_id,"/video_people_statics.json"),{method:"get",params:X}));case 1:case"end":return ie.stop()}},Ue)})),q.apply(this,arguments)}function He(Ue){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/courses/".concat(X.course_id,"/video_duration_statics.json"),{method:"get",params:X}));case 1:case"end":return ie.stop()}},Ue)})),Ze.apply(this,arguments)}function ft(Ue){return $e.apply(this,arguments)}function $e(){return $e=Object(n.a)(t.a.mark(function Ue(X){return t.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Object(u.a)("/api/stages.json",{method:"get",params:X}));case 1:case"end":return ie.stop()}},Ue)})),$e.apply(this,arguments)}},qhky:function(x,g,e){"use strict";(function(a){var n=e("17x9"),r=e.n(n),t=e("8+s/"),u=e.n(t),v=e("bmMU"),m=e.n(v),i=e("q1tI"),s=e.n(i),d=e("MgzW"),l=e.n(d),f={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},o={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},h=Object.keys(o).map(function(Ae){return o[Ae]}),c={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},b={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},E={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},O=Object.keys(b).reduce(function(Ae,S){return Ae[b[S]]=S,Ae},{}),C=[o.NOSCRIPT,o.SCRIPT,o.STYLE],M="data-react-helmet",w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},A=function(Ae,S){if(!(Ae instanceof S))throw new TypeError("Cannot call a class as a function")},L=function(){function Ae(S,k){for(var ae=0;ae=0)continue;if(!Object.prototype.hasOwnProperty.call(Ae,ae))continue;k[ae]=Ae[ae]}return k},N=function(Ae,S){if(!Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:Ae},Oe=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return k===!1?String(S):String(S).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},ue=function(S){var k=Q(S,o.TITLE),ae=Q(S,E.TITLE_TEMPLATE);if(ae&&k)return ae.replace(/%s/g,function(){return Array.isArray(k)?k.join(""):k});var oe=Q(S,E.DEFAULT_TITLE);return k||oe||void 0},re=function(S){return Q(S,E.ON_CHANGE_CLIENT_STATE)||function(){}},ee=function(S,k){return k.filter(function(ae){return typeof ae[S]!="undefined"}).map(function(ae){return ae[S]}).reduce(function(ae,oe){return z({},ae,oe)},{})},J=function(S,k){return k.filter(function(ae){return typeof ae[o.BASE]!="undefined"}).map(function(ae){return ae[o.BASE]}).reverse().reduce(function(ae,oe){if(!ae.length)for(var le=Object.keys(oe),K=0;K=0;ae--){var oe=S[ae];if(oe.hasOwnProperty(k))return oe[k]}return null},q=function(S){return{baseTag:J([c.HREF,c.TARGET],S),bodyAttributes:ee(f.BODY,S),defer:Q(S,E.DEFER),encode:Q(S,E.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ee(f.HTML,S),linkTags:F(o.LINK,[c.REL,c.HREF],S),metaTags:F(o.META,[c.NAME,c.CHARSET,c.HTTPEQUIV,c.PROPERTY,c.ITEM_PROP],S),noscriptTags:F(o.NOSCRIPT,[c.INNER_HTML],S),onChangeClientState:re(S),scriptTags:F(o.SCRIPT,[c.SRC,c.INNER_HTML],S),styleTags:F(o.STYLE,[c.CSS_TEXT],S),title:ue(S),titleAttributes:ee(f.TITLE,S)}},He=function(){var Ae=Date.now();return function(S){var k=Date.now();k-Ae>16?(Ae=k,S(k)):setTimeout(function(){He(S)},0)}}(),Ze=function(S){return clearTimeout(S)},ft=typeof window!="undefined"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||He:a.requestAnimationFrame||He,$e=typeof window!="undefined"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ze:a.cancelAnimationFrame||Ze,Ue=function(S){return console&&typeof console.warn=="function"&&console.warn(S)},X=null,me=function(S){X&&$e(X),S.defer?X=ft(function(){ie(S,function(){X=null})}):(ie(S),X=null)},ie=function(S,k){var ae=S.baseTag,oe=S.bodyAttributes,le=S.htmlAttributes,K=S.linkTags,P=S.metaTags,T=S.noscriptTags,$=S.onChangeClientState,se=S.scriptTags,ke=S.styleTags,ve=S.title,Be=S.titleAttributes;Ye(o.BODY,oe),Ye(o.HTML,le),de(ve,Be);var it={baseTag:fe(o.BASE,ae),linkTags:fe(o.LINK,K),metaTags:fe(o.META,P),noscriptTags:fe(o.NOSCRIPT,T),scriptTags:fe(o.SCRIPT,se),styleTags:fe(o.STYLE,ke)},We={},Et={};Object.keys(it).forEach(function(Tt){var Ht=it[Tt],It=Ht.newTags,tn=Ht.oldTags;It.length&&(We[Tt]=It),tn.length&&(Et[Tt]=it[Tt].oldTags)}),k&&k(),$(S,We,Et)},W=function(S){return Array.isArray(S)?S.join(""):S},de=function(S,k){typeof S!="undefined"&&document.title!==S&&(document.title=W(S)),Ye(o.TITLE,k)},Ye=function(S,k){var ae=document.getElementsByTagName(S)[0];if(!ae)return;for(var oe=ae.getAttribute(M),le=oe?oe.split(","):[],K=[].concat(le),P=Object.keys(k),T=0;T=0;ve--)ae.removeAttribute(K[ve]);le.length===K.length?ae.removeAttribute(M):ae.getAttribute(M)!==P.join(",")&&ae.setAttribute(M,P.join(","))},fe=function(S,k){var ae=document.head||document.querySelector(o.HEAD),oe=ae.querySelectorAll(S+"["+M+"]"),le=Array.prototype.slice.call(oe),K=[],P=void 0;return k&&k.length&&k.forEach(function(T){var $=document.createElement(S);for(var se in T)if(T.hasOwnProperty(se))if(se===c.INNER_HTML)$.innerHTML=T.innerHTML;else if(se===c.CSS_TEXT)$.styleSheet?$.styleSheet.cssText=T.cssText:$.appendChild(document.createTextNode(T.cssText));else{var ke=typeof T[se]=="undefined"?"":T[se];$.setAttribute(se,ke)}$.setAttribute(M,"true"),le.some(function(ve,Be){return P=Be,$.isEqualNode(ve)})?le.splice(P,1):K.push($)}),le.forEach(function(T){return T.parentNode.removeChild(T)}),K.forEach(function(T){return ae.appendChild(T)}),{oldTags:le,newTags:K}},rt=function(S){return Object.keys(S).reduce(function(k,ae){var oe=typeof S[ae]!="undefined"?ae+'="'+S[ae]+'"':""+ae;return k?k+" "+oe:oe},"")},Te=function(S,k,ae,oe){var le=rt(ae),K=W(k);return le?"<"+S+" "+M+'="true" '+le+">"+Oe(K,oe)+"":"<"+S+" "+M+'="true">'+Oe(K,oe)+""},Ve=function(S,k,ae){return k.reduce(function(oe,le){var K=Object.keys(le).filter(function($){return!($===c.INNER_HTML||$===c.CSS_TEXT)}).reduce(function($,se){var ke=typeof le[se]=="undefined"?se:se+'="'+Oe(le[se],ae)+'"';return $?$+" "+ke:ke},""),P=le.innerHTML||le.cssText||"",T=C.indexOf(S)===-1;return oe+"<"+S+" "+M+'="true" '+K+(T?"/>":">"+P+"")},"")},tt=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(S).reduce(function(ae,oe){return ae[b[oe]||oe]=S[oe],ae},k)},ht=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(S).reduce(function(ae,oe){return ae[O[oe]||oe]=S[oe],ae},k)},ge=function(S,k,ae){var oe,le=(oe={key:k},oe[M]=!0,oe),K=tt(ae,le);return[s.a.createElement(o.TITLE,K,k)]},ye=function(S,k){return k.map(function(ae,oe){var le,K=(le={key:oe},le[M]=!0,le);return Object.keys(ae).forEach(function(P){var T=b[P]||P;if(T===c.INNER_HTML||T===c.CSS_TEXT){var $=ae.innerHTML||ae.cssText;K.dangerouslySetInnerHTML={__html:$}}else K[T]=ae[P]}),s.a.createElement(S,K)})},je=function(S,k,ae){switch(S){case o.TITLE:return{toComponent:function(){return ge(S,k.title,k.titleAttributes,ae)},toString:function(){return Te(S,k.title,k.titleAttributes,ae)}};case f.BODY:case f.HTML:return{toComponent:function(){return tt(k)},toString:function(){return rt(k)}};default:return{toComponent:function(){return ye(S,k)},toString:function(){return Ve(S,k,ae)}}}},we=function(S){var k=S.baseTag,ae=S.bodyAttributes,oe=S.encode,le=S.htmlAttributes,K=S.linkTags,P=S.metaTags,T=S.noscriptTags,$=S.scriptTags,se=S.styleTags,ke=S.title,ve=ke===void 0?"":ke,Be=S.titleAttributes;return{base:je(o.BASE,k,oe),bodyAttributes:je(f.BODY,ae,oe),htmlAttributes:je(f.HTML,le,oe),link:je(o.LINK,K,oe),meta:je(o.META,P,oe),noscript:je(o.NOSCRIPT,T,oe),script:je(o.SCRIPT,$,oe),style:je(o.STYLE,se,oe),title:je(o.TITLE,{title:ve,titleAttributes:Be},oe)}},ce=function(S){var k,ae;return ae=k=function(oe){G(le,oe);function le(){return A(this,le),N(this,oe.apply(this,arguments))}return le.prototype.shouldComponentUpdate=function(P){return!m()(this.props,P)},le.prototype.mapNestedChildrenToProps=function(P,T){if(!T)return null;switch(P.type){case o.SCRIPT:case o.NOSCRIPT:return{innerHTML:T};case o.STYLE:return{cssText:T}}throw new Error("<"+P.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},le.prototype.flattenArrayTypeChildren=function(P){var T,$=P.child,se=P.arrayTypeChildren,ke=P.newChildProps,ve=P.nestedChildren;return z({},se,(T={},T[$.type]=[].concat(se[$.type]||[],[z({},ke,this.mapNestedChildrenToProps($,ve))]),T))},le.prototype.mapObjectTypeChildren=function(P){var T,$,se=P.child,ke=P.newProps,ve=P.newChildProps,Be=P.nestedChildren;switch(se.type){case o.TITLE:return z({},ke,(T={},T[se.type]=Be,T.titleAttributes=z({},ve),T));case o.BODY:return z({},ke,{bodyAttributes:z({},ve)});case o.HTML:return z({},ke,{htmlAttributes:z({},ve)})}return z({},ke,($={},$[se.type]=z({},ve),$))},le.prototype.mapArrayTypeChildrenToProps=function(P,T){var $=z({},T);return Object.keys(P).forEach(function(se){var ke;$=z({},$,(ke={},ke[se]=P[se],ke))}),$},le.prototype.warnOnInvalidChildren=function(P,T){return!0},le.prototype.mapChildrenToProps=function(P,T){var $=this,se={};return s.a.Children.forEach(P,function(ke){if(!ke||!ke.props)return;var ve=ke.props,Be=ve.children,it=D(ve,["children"]),We=ht(it);$.warnOnInvalidChildren(ke,Be);switch(ke.type){case o.LINK:case o.META:case o.NOSCRIPT:case o.SCRIPT:case o.STYLE:se=$.flattenArrayTypeChildren({child:ke,arrayTypeChildren:se,newChildProps:We,nestedChildren:Be});break;default:T=$.mapObjectTypeChildren({child:ke,newProps:T,newChildProps:We,nestedChildren:Be});break}}),T=this.mapArrayTypeChildrenToProps(se,T),T},le.prototype.render=function(){var P=this.props,T=P.children,$=D(P,["children"]),se=z({},$);return T&&(se=this.mapChildrenToProps(T,se)),s.a.createElement(S,se)},L(le,null,[{key:"canUseDOM",set:function(P){S.canUseDOM=P}}]),le}(s.a.Component),k.propTypes={base:r.a.object,bodyAttributes:r.a.object,children:r.a.oneOfType([r.a.arrayOf(r.a.node),r.a.node]),defaultTitle:r.a.string,defer:r.a.bool,encodeSpecialCharacters:r.a.bool,htmlAttributes:r.a.object,link:r.a.arrayOf(r.a.object),meta:r.a.arrayOf(r.a.object),noscript:r.a.arrayOf(r.a.object),onChangeClientState:r.a.func,script:r.a.arrayOf(r.a.object),style:r.a.arrayOf(r.a.object),title:r.a.string,titleAttributes:r.a.object,titleTemplate:r.a.string},k.defaultProps={defer:!0,encodeSpecialCharacters:!0},k.peek=S.peek,k.rewind=function(){var oe=S.rewind();return oe||(oe=we({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),oe},ae},Y=function(){return null},V=u()(q,me,we)(Y),U=ce(V);U.renderStatic=U.rewind;var B=U}).call(this,e("IyRk"))},qitQ:function(x,g,e){"use strict";var a=e("tny8"),n=e("MVys"),r=e("P0e2"),t=e("kyO0"),u=e("e3V2"),v=e("cTDu"),m=e("EzR6"),i=Object.assign,s=Object.defineProperty;x.exports=!i||n(function(){if(a&&i({b:1},i(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},l={},f=Symbol(),o="abcdefghijklmnopqrst";return d[f]=7,o.split("").forEach(function(h){l[h]=h}),i({},d)[f]!=7||r(i({},l)).join("")!=o})?function(l,f){for(var o=v(l),h=arguments.length,c=1,b=t.f,E=u.f;h>c;)for(var O=m(arguments[c++]),C=b?r(O).concat(b(O)):r(O),M=C.length,w=0,A;M>w;)A=C[w++],(!a||E.call(O,A))&&(o[A]=O[A]);return o}:i},qkSU:function(x,g,e){"use strict";var a=e("MMxC"),n=e("LUyE"),r=e("WJ3H");a({target:"Promise",stat:!0},{try:function(t){var u=n.f(this),v=r(t);return(v.error?u.reject:u.resolve)(v.value),u.promise}})},qlaj:function(x,g,e){"use strict";var a=e("w8CP"),n=a.rotr32;function r(l,f,o,h){if(l===0)return t(f,o,h);if(l===1||l===3)return v(f,o,h);if(l===2)return u(f,o,h)}g.ft_1=r;function t(l,f,o){return l&f^~l&o}g.ch32=t;function u(l,f,o){return l&f^l&o^f&o}g.maj32=u;function v(l,f,o){return l^f^o}g.p32=v;function m(l){return n(l,2)^n(l,13)^n(l,22)}g.s0_256=m;function i(l){return n(l,6)^n(l,11)^n(l,25)}g.s1_256=i;function s(l){return n(l,7)^n(l,18)^l>>>3}g.g0_256=s;function d(l){return n(l,17)^n(l,19)^l>>>10}g.g1_256=d},qtVS:function(x,g,e){"use strict";e.d(g,"i",function(){return v}),e.d(g,"g",function(){return i}),e.d(g,"h",function(){return d}),e.d(g,"f",function(){return f}),e.d(g,"l",function(){return h}),e.d(g,"k",function(){return b}),e.d(g,"c",function(){return O}),e.d(g,"e",function(){return M}),e.d(g,"d",function(){return A}),e.d(g,"b",function(){return z}),e.d(g,"a",function(){return D}),e.d(g,"m",function(){return Oe}),e.d(g,"j",function(){return re});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(J){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/teachers.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),m.apply(this,arguments)}function i(J){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/apply_teachers.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),s.apply(this,arguments)}function d(J){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/graduation_group_list.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),l.apply(this,arguments)}function f(J){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/all_course_groups.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),o.apply(this,arguments)}function h(J){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/set_course_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),c.apply(this,arguments)}function b(J){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/join_graduation_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),E.apply(this,arguments)}function O(J){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/create_graduation_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),C.apply(this,arguments)}function M(J){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/delete_course_teacher.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),w.apply(this,arguments)}function A(J){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/delete_from_course.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),L.apply(this,arguments)}function z(J){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/change_member_role.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),G.apply(this,arguments)}function D(J){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/change_course_admin.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),N.apply(this,arguments)}function Oe(J){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/teacher_application_review.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),ue.apply(this,arguments)}function re(J){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/students.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),ee.apply(this,arguments)}},quHW:function(x,g,e){var a=e("MMxC"),n=e("29mP"),r=e("cT1L"),t=e("f1E4"),u=e("MVys"),v=n("Reflect","apply"),m=Function.apply,i=!u(function(){v(function(){})});a({target:"Reflect",stat:!0,forced:i},{apply:function(d,l,f){return r(d),t(f),v?v(d,l,f):m.call(d,l,f)}})},qx4F:function(x,g,e){"use strict";e.d(g,"a",function(){return n});var a;function n(u){if(typeof document=="undefined")return 0;if(u||a===void 0){var v=document.createElement("div");v.style.width="100%",v.style.height="200px";var m=document.createElement("div"),i=m.style;i.position="absolute",i.top="0",i.left="0",i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",m.appendChild(v),document.body.appendChild(m);var s=v.offsetWidth;m.style.overflow="scroll";var d=v.offsetWidth;s===d&&(d=m.clientWidth),document.body.removeChild(m),a=s-d}return a}function r(u){var v=u.match(/^(.*)px$/),m=Number(v==null?void 0:v[1]);return Number.isNaN(m)?n():m}function t(u){if(typeof document=="undefined"||!u||!(u instanceof Element))return{width:0,height:0};var v=getComputedStyle(u,"::-webkit-scrollbar"),m=v.width,i=v.height;return{width:r(m),height:r(i)}}},rE4C:function(x,g,e){var a=e("MMxC"),n=e("MVys"),r=e("tSXo"),t=Object.isFrozen,u=n(function(){t(1)});a({target:"Object",stat:!0,forced:u},{isFrozen:function(m){return r(m)?t?t(m):!1:!0}})},rS2G:function(x,g,e){var a=e("MMxC"),n=e("8Cw2");a({target:"Number",stat:!0},{isFinite:n})},rUU2:function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("cTDu"),t=e("oa35"),u=e("m0kY"),v=e("FCfD"),m=e("xH5X"),i=e("dagG"),s=Math.max,d=Math.min,l=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,o=/\$([$&'`]|\d\d?)/g,h=function(c){return c===void 0?c:String(c)};a("replace",2,function(c,b,E,O){var C=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=O.REPLACE_KEEPS_$0,w=C?"$":"$0";return[function(z,G){var D=v(this),N=z==null?void 0:z[c];return N!==void 0?N.call(z,D,G):b.call(String(D),z,G)},function(L,z){if(!C&&M||typeof z=="string"&&z.indexOf(w)===-1){var G=E(b,L,this,z);if(G.done)return G.value}var D=n(L),N=String(this),Oe=typeof z=="function";Oe||(z=String(z));var ue=D.global;if(ue){var re=D.unicode;D.lastIndex=0}for(var ee=[];;){var J=i(D,N);if(J===null)break;if(ee.push(J),!ue)break;var F=String(J[0]);F===""&&(D.lastIndex=m(N,t(D.lastIndex),re))}for(var Q="",q=0,He=0;He=q&&(Q+=N.slice(q,ft)+ie,q=ft+Ze.length)}return Q+N.slice(q)}];function A(L,z,G,D,N,Oe){var ue=G+L.length,re=D.length,ee=o;return N!==void 0&&(N=r(N),ee=f),b.call(Oe,ee,function(J,F){var Q;switch(F.charAt(0)){case"$":return"$";case"&":return L;case"`":return z.slice(0,G);case"'":return z.slice(ue);case"<":Q=N[F.slice(1,-1)];break;default:var q=+F;if(q===0)return J;if(q>re){var He=l(q/10);return He===0?J:He<=re?D[He-1]===void 0?F.charAt(1):D[He-1]+F.charAt(1):J}Q=D[q-1]}return Q===void 0?"":Q})}})},rVgK:function(x,g,e){"use strict";var a=e("MMxC"),n=e("eYKs").charAt;a({target:"String",proto:!0},{at:function(t){return n(this,t)}})},rYFv:function(x,g,e){"use strict";var a=e("CiB2"),n=e("k1fw"),r=e("jrin"),t=e("WmNS"),u=e.n(t),v=e("rbmi"),m=e("7KHo"),i=e("g+eg"),s,d={namespace:"engineeringNavigtion",state:{actionTabs:{key:"",params:{}},headerData:{title:"\u8BA4\u8BC1\u5BFC\u822A",dataSource:(s={},Object(r.a)(s,m.b[0],{width:235,placeholder:"\u8BF7\u9009\u62E9".concat(m.b[0]),loading:"engineeringNavigtion/getMajorList",dataList:[]}),Object(r.a)(s,m.b[1],{width:138,placeholder:"\u8BF7\u9009\u62E9".concat(m.b[1]),loading:"engineeringNavigtion/getYearList",dataList:[]}),s),active:{},name:"",tabBarContent:{user_name:"",user_school:"",user_type:""}},cardListData:{appraiseData:{norm:{title:"\u6307\u6807\u8BC4\u4EF7",result:"-",tabBarContent:[{icon:"icon-biyezhibiao",label:"\u6BD5\u4E1A\u6307\u6807",value:"/engineering/graduationindex"},{icon:"icon-biyejuzhen",label:"\u6BD5\u4E1A\u77E9\u9635",value:"/engineering/graduatedMatrix"}],listData:[{key:"graduation_count",icon:"icon-biyeyaoqiu1",backgroundColor:"#F2EBFB",textColor:"#713BDB",label:"\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"},{key:"graduation_subitem_count",icon:"icon-zhibiaodian",backgroundColor:"#FEF3EF",textColor:"#FF8B58",label:"\u6307\u6807\u70B9",value:"-",unit:"\u9879"},{key:"graduation_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"\u5DF2\u8FBE\u6210\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"},{key:"graduation_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"\u672A\u8FBE\u6210\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"}]},course:{title:"\u8BFE\u7A0B\u8BC4\u4EF7",result:"-",tabBarContent:[{icon:"icon-kechengliebiao",label:"\u8BFE\u7A0B\u5217\u8868",value:"/engineering/courseList"},{icon:"icon-kechengjuzhen",label:"\u8BFE\u7A0B\u77E9\u9635",value:"/engineering/courseMatrix"}],listData:[{key:"course_count",icon:"icon-kechengshuliang",backgroundColor:"#E2F5FF",textColor:"#007AFF",label:"\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"},{key:"course_target_count",icon:"icon-mubiao",backgroundColor:"#FEF8EF",textColor:"#FEB315",label:"\u8BFE\u7A0B\u76EE\u6807",value:"-",unit:"\u9879"},{key:"course_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"\u5DF2\u8FBE\u6210\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"},{key:"course_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"\u672A\u8FBE\u6210\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"}]}},teamData:{teach:{title:"\u6388\u8BFE\u56E2\u961F",tabBarContent:"0\u4EBA",listData:[]},work:{title:"\u5DE5\u4F5C\u56E2\u961F",tabBarContent:"0\u4EBA",listData:[]}}},totalListData:[{key:"student_count",title:"\u5F53\u524D\u5B66\u751F\u603B\u6570",value:0,icon:"icon-xuesheng1",backgroundColor:"rgba(201,236,255,0.51)",textColor:"#007AFF"},{key:"student_in_count",title:"\u8F6C\u5165\u5B66\u751F\u603B\u6570",value:0,icon:"icon-zhuanru",backgroundColor:"rgba(119,241,174,0.4)",textColor:"#1FA363"},{key:"student_out_count",title:"\u8F6C\u51FA\u5B66\u751F\u603B\u6570",value:0,icon:"icon-zhuanchu",backgroundColor:"rgba(255,197,147,0.44)",textColor:"#FA6400"}]},effects:{setActionTabs:u.a.mark(function l(f,o){var h,c,b;return u.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return h=f.payload,c=o.call,b=o.put,O.next=4,b({type:"save",payload:{actionTabs:Object(n.a)({},h)}});case 4:case"end":return O.stop()}},l)}),getMajorList:u.a.mark(function l(f,o){var h,c,b,E,O,C,M;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Object(a.a)(f),h=o.call,c=o.put,b=o.select,A.next=4,b(function(L){return L.user});case 4:if(E=A.sent,O=E.userInfo,!(O!=null&&O.school_id)){A.next=14;break}return A.next=9,h(v.i,O.school_id);case 9:if(C=A.sent,!(C&&C.data)){A.next=14;break}return M=i.a.getItem(O==null?void 0:O.login),A.next=14,c({type:"setMajorOrYearDataSource",payload:{key:m.b[0],value:C.data.map(function(L){return{label:L.name,value:L.ec_major_school_id}}),active:C.data.length>0?M[0]||C.data[0].ec_major_school_id:void 0}});case 14:case"end":return A.stop()}},l)}),getYearList:u.a.mark(function l(f,o){var h,c,b,E,O,C,M,w;return u.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return h=f.payload,c=o.call,b=o.put,E=o.select,L.next=4,c(v.k,h.id);case 4:return O=L.sent,L.next=7,E(function(z){return z.user});case 7:if(C=L.sent,M=C.userInfo,!(O&&O.data)){L.next=13;break}return w=i.a.getItem(M==null?void 0:M.login),L.next=13,b({type:"setMajorOrYearDataSource",payload:{key:m.b[1],value:O.data.map(function(z){return{label:z.year,value:z.ec_year_id}}),active:O.data.length>0?h.firstEnter?w[1]:O.data[0].ec_year_id:void 0}});case 13:case"end":return L.stop()}},l)}),getTopPage:u.a.mark(function l(f,o){var h,c,b,E,O,C,M,w,A,L;return u.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return Object(a.a)(f),h=o.call,c=o.put,b=o.select,G.next=4,b(function(D){return D.engineeringNavigtion});case 4:return E=G.sent,O=E.headerData,G.next=8,b(function(D){return D.user});case 8:if(C=G.sent,M=C.userInfo,w={},!(O.active[m.b[1]]&&M.school_id)){G.next=20;break}return A=[O.active[m.b[0]],O.active[m.b[1]]],i.a.setItem(M==null?void 0:M.login,A),G.next=16,h(v.j,{ec_year_id:O.active[m.b[1]],school_id:M.school_id});case 16:return L=G.sent,L&&L.data&&(w=L.data),G.next=20,c({type:"setTopPage",payload:w});case 20:case"end":return G.stop()}},l)}),putTopPageName:u.a.mark(function l(f,o){var h,c,b,E,O,C;return u.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return h=f.payload,c=f.callback,b=o.call,E=o.put,w.prev=2,w.next=5,b(v.r,h);case 5:O=w.sent,c(O),w.next=14;break;case 9:w.prev=9,w.t0=w.catch(2),C="",w.t0&&(C=JSON.stringify(w.t0),w.t0.message&&(C=w.t0.message)),c({message:C,status:999});case 14:case"end":return w.stop()}},l,null,[[2,9]])})},reducers:{save:function(f,o){return Object(n.a)(Object(n.a)({},f),o.payload)},setMajorOrYearDataSource:function(f,o){var h=o.payload,c=f.headerData.active;return h.active&&(c=Object(n.a)(Object(n.a)({},c),{},Object(r.a)({},h.key,h.active))),Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{dataSource:Object(n.a)(Object(n.a)({},f.headerData.dataSource),{},Object(r.a)({},h.key,Object(n.a)(Object(n.a)({},f.headerData.dataSource[h.key]),{},{dataList:h.value}))),active:c})})},setMajorOrYearActive:function(f,o){var h=o.payload;return Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{active:Object(n.a)(Object(n.a)({},f.headerData.active),{},Object(r.a)({},h.key,h.value))})})},setTopPage:function(f,o){var h=o.payload;return Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{name:h.name,tabBarContent:{user_name:h.user_name,user_school:h.user_school,user_type:h.user_type}}),cardListData:Object(n.a)(Object(n.a)({},f.cardListData),{},{appraiseData:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData),{},{norm:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData.norm),{},{result:h.graduaiton_result,listData:f.cardListData.appraiseData.norm.listData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})}),course:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData.course),{},{result:h.course_result,listData:f.cardListData.appraiseData.course.listData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})})}),teamData:{teach:Object(n.a)(Object(n.a)({},f.cardListData.teamData.teach),{},{tabBarContent:"".concat(h.course_teachers?h.course_teachers.length:0,"\u4EBA"),listData:h.course_teachers||[]}),work:Object(n.a)(Object(n.a)({},f.cardListData.teamData.work),{},{tabBarContent:"".concat(h.work_teachers?h.work_teachers.length:0,"\u4EBA"),listData:h.work_teachers||[]})}}),totalListData:f.totalListData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})})}},subscriptions:{setup:function(f){var o=f.dispatch,h=f.history;return h.listen(function(c){var b=c.pathname;b==="/"&&o({type:"query"})})}}};g.a=d},rbmi:function(x,g,e){"use strict";e.d(g,"e",function(){return m}),e.d(g,"a",function(){return i}),e.d(g,"c",function(){return s}),e.d(g,"d",function(){return d}),e.d(g,"m",function(){return l}),e.d(g,"n",function(){return f}),e.d(g,"b",function(){return o}),e.d(g,"l",function(){return h}),e.d(g,"o",function(){return c}),e.d(g,"h",function(){return b}),e.d(g,"f",function(){return E}),e.d(g,"p",function(){return O}),e.d(g,"g",function(){return C}),e.d(g,"q",function(){return M}),e.d(g,"i",function(){return w}),e.d(g,"k",function(){return A}),e.d(g,"j",function(){return L}),e.d(g,"r",function(){return z});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA"),u=e("k1fw"),v=e("PpiC"),m=function(){var G=Object(a.a)(r.a.mark(function D(N){var Oe,ue;return r.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return Oe=N.id,ue=Object(v.a)(N,["id"]),ee.abrupt("return",Object(t.a)("/api/ec_years/".concat(Oe,"/course_results.json"),{method:"get",params:ue}));case 2:case"end":return ee.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),i=function(D){var N=document.createElement("iframe");N.src="/api/ec_years/".concat(D,"/course_results.xlsx"),N.style.display="none",document.body.appendChild(N)},s=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_years/".concat(N,"/course_results/get_class.json"),{method:"get"})},d=function(D){var N=D.ec_year_id,Oe=D.id,ue=D.class_name,re=ue===void 0?null:ue;return Object(t.a)("/api/ec_years/".concat(N,"/course_results/").concat(Oe,".json"),{method:"get",params:{class_name:re}})},l=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_courses/1/evaluations/compute_all_courses_data?ec_year_id=".concat(N),{method:"post"})},f=function(D){var N=D.ec_course_id;return Object(t.a)("/api/ec_courses/".concat(N,"/evaluations/evaluation_data"),{method:"POST"})},o=function(D){var N=document.createElement("iframe");N.src="/api/ec_years/".concat(D,"/ec_graduation_results.xlsx"),N.style.display="none",document.body.appendChild(N)},h=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/compute_all"),{method:"post"})},c=function(D){var N=D.ec_year_id,Oe=D.id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/compute_single?id=").concat(Oe),{method:"POST"})},b=function(D){return Object(t.a)("/api/ec_years/".concat(D,"/ec_graduation_results.json"),{method:"get"})},E=function(D){return Object(t.a)("/api/ec_years/".concat(D,"/ec_graduation_results/get_formulas.json"),{method:"get"})},O=function(D){var N=D.ec_year_id,Oe=D.formula_one,ue=D.formula_two,re=D.formula_three;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/set_formulas.json?formula_one_id=").concat(Oe,"&formula_two_id=").concat(ue,"&formula_three_id=").concat(re),{method:"PUT"})},C=function(D){var N=D.ec_year_id,Oe=D.id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/").concat(Oe,".json"),{method:"get"})},M=function(D){var N=D.ec_year_id,Oe=D.type,ue=D.goal_value,re=Object(v.a)(D,["ec_year_id","type","goal_value"]),ee="?type=".concat(Oe),J={method:"PUT"};return Oe==="all"&&(ee+="&goal_value=".concat(ue)),Oe==="each"&&(J=Object(u.a)(Object(u.a)({},J),{},{body:re})),Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/set_goal_value").concat(ee),J)},w=function(){var G=Object(a.a)(r.a.mark(function D(N){return r.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",Object(t.a)("/api/schools/".concat(N,"/ec_majors/get_major_list.json"),{method:"get"}));case 1:case"end":return ue.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),A=function(){var G=Object(a.a)(r.a.mark(function D(N){return r.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",Object(t.a)("/api/ec_major_schools/".concat(N,"/ec_years/get_year_list.json"),{method:"get"}));case 1:case"end":return ue.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),L=function(D){var N=D.ec_year_id,Oe=D.school_id;return Object(t.a)("/api/ec_years/".concat(N,"/top_pages.json"),{method:"get",params:{school_id:Oe}})},z=function(D){var N=D.id,Oe=D.name;return Object(t.a)("/api/ec_years/1/top_pages/".concat(N,"?name=").concat(Oe),{method:"PUT"})}},rePB:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}},"rhT+":function(x,g){function e(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}x.exports=e},rjJZ:function(x,g,e){var a=e("YON3");x.exports=function(n){if(a(n))throw TypeError("The method doesn't accept regular expressions");return n}},rn5R:function(x,g,e){var a=e("ukPv"),n=e("mTKU").trim,r=e("Tfd0"),t=a.parseFloat,u=1/t(r+"-0")!==-Infinity;x.exports=u?function(m){var i=n(String(m)),s=t(i);return s===0&&i.charAt(0)=="-"?-0:s}:t},rpUR:function(x,g,e){"use strict";var a=e("MMxC"),n=e("g8rt").f,r=e("oa35"),t=e("rjJZ"),u=e("FCfD"),v=e("C7V6"),m=e("Zcjx"),i="".endsWith,s=Math.min,d=v("endsWith"),l=!m&&!d&&!!function(){var f=n(String.prototype,"endsWith");return f&&!f.writable}();a({target:"String",proto:!0,forced:!l&&!d},{endsWith:function(o){var h=String(u(this));t(o);var c=arguments.length>1?arguments[1]:void 0,b=r(h.length),E=c===void 0?b:s(r(c),b),O=String(o);return i?i.call(h,O,E):h.slice(E-O.length,E)===O}})},rtIu:function(x,g,e){"use strict";var a=e("FVwB"),n=e("oa35"),r=e("nCqj"),t=e("cTDu"),u=e("MVys"),v=a.aTypedArray,m=a.exportTypedArrayMethod,i=u(function(){new Int8Array(1).set({})});m("set",function(d){v(this);var l=r(arguments.length>1?arguments[1]:void 0,1),f=this.length,o=t(d),h=n(o.length),c=0;if(h+l>f)throw RangeError("Wrong length");for(;c=51&&/native code/.test(F))return!1;var ae=F.resolve(1),oe=function(K){K(function(){},function(){})},le=ae.constructor={};return le[Oe]=oe,!(ae.then(function(){})instanceof oe)}),ye=ge||!b(function(k){F.all(k).catch(function(){})}),je=function(k){var ae;return d(k)&&typeof(ae=k.then)=="function"?ae:!1},we=function(k,ae,oe){if(ae.notified)return;ae.notified=!0;var le=ae.reactions;C(function(){for(var K=ae.value,P=ae.state==de,T=0;le.length>T;){var $=le[T++],se=P?$.ok:$.fail,ke=$.resolve,ve=$.reject,Be=$.domain,it,We,Et;try{se?(P||(ae.rejection===rt&&U(k,ae),ae.rejection=fe),se===!0?it=K:(Be&&Be.enter(),it=se(K),Be&&(Be.exit(),Et=!0)),it===$.promise?ve(Q("Promise-chain cycle")):(We=je(it))?We.call(it,ke,ve):ke(it)):ve(K)}catch(Tt){Be&&!Et&&Be.exit(),ve(Tt)}}ae.reactions=[],ae.notified=!1,oe&&!ae.rejection&&Y(k,ae)})},ce=function(k,ae,oe){var le,K;X?(le=q.createEvent("Event"),le.promise=ae,le.reason=oe,le.initEvent(k,!1,!0),r.dispatchEvent(le)):le={promise:ae,reason:oe},(K=r["on"+k])?K(le):k===me&&w("Unhandled promise rejection",oe)},Y=function(k,ae){O.call(r,function(){var oe=ae.value,le=V(ae),K;if(le&&(K=L(function(){Ue?He.emit("unhandledRejection",oe,k):ce(me,k,oe)}),ae.rejection=Ue||V(ae)?rt:fe,K.error))throw K.value})},V=function(k){return k.rejection!==fe&&!k.parent},U=function(k,ae){O.call(r,function(){Ue?He.emit("rejectionHandled",k):ce(ie,k,ae.value)})},B=function(k,ae,oe,le){return function(K){k(ae,oe,K,le)}},Ae=function(k,ae,oe,le){if(ae.done)return;ae.done=!0,le&&(ae=le),ae.value=oe,ae.state=Ye,we(k,ae,!0)},S=function(k,ae,oe,le){if(ae.done)return;ae.done=!0,le&&(ae=le);try{if(k===oe)throw Q("Promise can't be resolved itself");var K=je(oe);K?C(function(){var P={done:!1};try{K.call(oe,B(S,k,P,ae),B(Ae,k,P,ae))}catch(T){Ae(k,P,T,ae)}}):(ae.value=oe,ae.state=de,we(k,ae,!1))}catch(P){Ae(k,{done:!1},P,ae)}};ge&&(F=function(ae){f(this,F,ue),l(ae),Te.call(this);var oe=re(this);try{ae(B(S,this,oe),B(Ae,this,oe))}catch(le){Ae(this,oe,le)}},Te=function(ae){ee(this,{type:ue,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:W,value:void 0})},Te.prototype=m(F.prototype,{then:function(ae,oe){var le=J(this),K=ft(E(this,F));return K.ok=typeof ae=="function"?ae:!0,K.fail=typeof oe=="function"&&oe,K.domain=Ue?He.domain:void 0,le.parent=!0,le.reactions.push(K),le.state!=W&&we(this,le,!1),K.promise},catch:function(k){return this.then(void 0,k)}}),Ve=function(){var k=new Te,ae=re(k);this.promise=k,this.resolve=B(S,k,ae),this.reject=B(Ae,k,ae)},A.f=ft=function(k){return k===F||k===tt?new Ve(k):$e(k)},!n&&typeof u=="function"&&(ht=u.prototype.then,v(u.prototype,"then",function(ae,oe){var le=this;return new F(function(K,P){ht.call(le,K,P)}).then(ae,oe)},{unsafe:!0}),typeof Ze=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(ae){return M(F,Ze.apply(r,arguments))}}))),a({global:!0,wrap:!0,forced:ge},{Promise:F}),i(F,ue,!1,!0),s(ue),tt=t(ue),a({target:ue,stat:!0,forced:ge},{reject:function(ae){var oe=ft(this);return oe.reject.call(void 0,ae),oe.promise}}),a({target:ue,stat:!0,forced:n||ge},{resolve:function(ae){return M(n&&this===tt?F:this,ae)}}),a({target:ue,stat:!0,forced:ye},{all:function(ae){var oe=this,le=ft(oe),K=le.resolve,P=le.reject,T=L(function(){var $=l(oe.resolve),se=[],ke=0,ve=1;c(ae,function(Be){var it=ke++,We=!1;se.push(void 0),ve++,$.call(oe,Be).then(function(Et){if(We)return;We=!0,se[it]=Et,--ve||K(se)},P)}),--ve||K(se)});return T.error&&P(T.value),le.promise},race:function(ae){var oe=this,le=ft(oe),K=le.reject,P=L(function(){var T=l(oe.resolve);c(ae,function($){T.call(oe,$).then(le.resolve,K)})});return P.error&&K(P.value),le.promise}})},s4An:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){return a=Object.setPrototypeOf||function(u,v){return u.__proto__=v,u},a(n,r)}},s7vb:function(x,g,e){"use strict";e.d(g,"b",function(){return u}),e.d(g,"c",function(){return m}),e.d(g,"a",function(){return s});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(l){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls.json",{method:"get",params:f}));case 1:case"end":return h.stop()}},l)})),v.apply(this,arguments)}function m(l){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls/".concat(f.id,".json"),{method:"get",params:f}));case 1:case"end":return h.stop()}},l)})),i.apply(this,arguments)}function s(l){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls/".concat(f.id,".json"),{method:"delete",params:f}));case 1:case"end":return h.stop()}},l)})),d.apply(this,arguments)}},s8TD:function(x,g,e){"use strict";e.d(g,"a",function(){return l});var a=e("Pv/L"),n=e("14J3"),r=e("BMrR"),t=e("jCWc"),u=e("kPKH"),v=e("2qtc"),m=e("kLXV"),i=e("q1tI"),s=e.n(i),d=e("dfu6"),l=function(o){return new Promise(function(h,c){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return c("WebRTC not supported by browser");var b=new RTCPeerConnection,E=[];b.createDataChannel(""),b.createOffer().then(function(O){return b.setLocalDescription(O)}).catch(function(O){return c(O)}),b.onicecandidate=function(O){console.log("event:",O);var C=[];if(!O||!O.candidate){if(console.log("ips",E),E.length==0||!Object(d.a)(E[0])){var M=m.a.info({title:s.a.createElement(r.a,null,s.a.createElement(u.a,{flex:"1"},"\u63D0\u793A"),s.a.createElement(u.a,null,s.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return M.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:s.a.createElement(r.a,null,s.a.createElement(u.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(o.ip_limit==="inner"||o.ip_bind)&&s.a.createElement(s.a.Fragment,null,s.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),s.a.createElement("br",null),s.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return c("WebRTC disabled or restricted by browser")}var w=E.filter(function(Q){return Object(d.a)(Q)});return!w||!w.length?c("IP\u83B7\u53D6\u5931\u8D25"):h(w.join(""))}var A=O.candidate.candidate.split(" "),L=Object(a.a)(A),z=L[0],G=L[1],D=L[2],N=L[3],Oe=L[4],ue=L[5],re=L[7],ee=L.slice(8),J=["rtp","rtpc"];if(console.log("event:",O),E.some(function(Q){return Q==Oe})||E.push(Oe),console.log(" candidate: "+z.split(":")[1]),console.log(" component: "+J[G-1]),console.log(" protocol: "+D),console.log(" priority: "+N),console.log(" ip: "+Oe),console.log(" port: "+ue),console.log(" type: "+re),ee.length){console.log("attributes: ");for(var F=0;F "+ee[F]+": "+ee[F+1])}}})}},sFpY:function(x,g,e){"use strict";function a(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(l){return typeof l}:a=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},a(s)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var n=t(e("q1tI"));function r(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return r=function(){return s},s}function t(s){if(s&&s.__esModule)return s;if(s===null||a(s)!=="object"&&typeof s!="function")return{default:s};var d=r();if(d&&d.has(s))return d.get(s);var l={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in s)if(Object.prototype.hasOwnProperty.call(s,o)){var h=f?Object.getOwnPropertyDescriptor(s,o):null;h&&(h.get||h.set)?Object.defineProperty(l,o,h):l[o]=s[o]}return l.default=s,d&&d.set(s,l),l}function u(s,d){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);d&&(f=f.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),l.push.apply(l,f)}return l}function v(s){for(var d=1;d0?(h=o/f,s+=h*h):s+=o;return f===Infinity?Infinity:f*t(s)}})},sgqd:function(x,g,e){var a=e("MMxC"),n=e("f1E4"),r=e("g8rt").f;a({target:"Reflect",stat:!0},{deleteProperty:function(u,v){var m=r(n(u),v);return m&&!m.configurable?!1:delete u[v]}})},ssJt:function(x,g,e){"use strict";var a=e("29mP"),n=e("YfKC"),r=e("2kyd"),t=e("tny8"),u=r("species");x.exports=function(v){var m=a(v),i=n.f;t&&m&&!m[u]&&i(m,u,{configurable:!0,get:function(){return this}})}},sxOR:function(x,g,e){"use strict";var a=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};x.exports={default:r.RFC3986,formatters:{RFC1738:function(t){return a.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},tB8F:function(x,g,e){"use strict";e.r(g);var a={};e.r(a),e.d(a,"dva",function(){return Qo});var n={};e.r(n),e.d(n,"rootContainer",function(){return xi});var r={};e.r(r),e.d(r,"rootContainer",function(){return Po});var t={};e.r(t),e.d(t,"rootContainer",function(){return At});var u=e("Xn8V"),v=e("6spV"),m=e("wpse"),i=e("KUpu"),s=e("8OGu"),d=e("LtxK"),l=e("n7Qr"),f=e("VQRL"),o=e("SGZ1"),h=e("nEGZ"),c=e("IC/V"),b=e("H8Ov"),E=e("aHGi"),O=e("M5u2"),C=e("0O5u"),M=e("Xf/b"),w=e("QpGB"),A=e("NYJX"),L=e("CWID"),z=e("ehAy"),G=e("mLN8"),D=e("YJpY"),N=e("dLjG"),Oe=e("fF/C"),ue=e("FbcW"),re=e("oNMB"),ee=e("+l9e"),J=e("yxVd"),F=e("vnQr"),Q=e("5Blz"),q=e("hilM"),He=e("v/6r"),Ze=e("fDrP"),ft=e("1vuE"),$e=e("Q3OH"),Ue=e("IyrG"),X=e("4rKd"),me=e("X5kU"),ie=e("maeH"),W=e("4Mzw"),de=e("Pp3M"),Ye=e("v0/P"),fe=e("CkqQ"),rt=e("5QGz"),Te=e("66pj"),Ve=e("JDCn"),tt=e("ls3p"),ht=e("sPVm"),ge=e("AGcU"),ye=e("sdAH"),je=e("CSFr"),we=e("GYRj"),ce=e("Bnwu"),Y=e("kP48"),V=e("NEdc"),U=e("JnaH"),B=e("MRpI"),Ae=e("EgRx"),S=e("/8Wl"),k=e("mMun"),ae=e("oLb5"),oe=e("rS2G"),le=e("bDgo"),K=e("eCOq"),P=e("uVHs"),T=e("ReSd"),$=e("pkYH"),se=e("izsi"),ke=e("lSoN"),ve=e("xtlo"),Be=e("p1ln"),it=e("ZahQ"),We=e("nZC5"),Et=e("HjuX"),Tt=e("pZem"),Ht=e("A9H8"),It=e("DMUC"),tn=e("B/G0"),qt=e("DVom"),gn=e("v3oe"),an=e("9zP7"),Tn=e("T/5g"),on=e("rE4C"),En=e("Sb5z"),yn=e("Pq08"),vn=e("Dyhc"),Rn=e("WQuA"),Pn=e("y4z8"),St=e("jhyg"),bt=e("Qqe/"),Pt=e("J428"),Ft=e("s1ay"),De=e("Rw1i"),Ct=e("quHW"),be=e("YjZU"),Ne=e("uln6"),Fe=e("sgqd"),dt=e("zsCH"),Pe=e("WIyh"),Ce=e("cnT9"),ct=e("D1Ff"),qe=e("WlFw"),Me=e("QxII"),Z=e("NHo6"),Xe=e("O9az"),gt=e("b8+j"),Mt=e("yIAO"),xt=e("nlPz"),Gt=e("2KAr"),ln=e("3dhw"),nn=e("zTPR"),Ln=e("m71J"),bn=e("rpUR"),Ke=e("EnLX"),_e=e("9/ry"),Ut=e("KvPC"),_=e("z9fm"),Mn=e("43iI"),Wn=e("mcGr"),kn=e("8DXf"),Fn=e("OmS+"),qn=e("rUU2"),Hn=e("6cL7"),ar=e("ZDb2"),dr=e("EOz7"),br=e("JI6M"),jr=e("beyn"),Hr=e("A+b4"),_n=e("Yanh"),Fr=e("Rbmm"),Ge=e("M1bg"),ne=e("9Y4n"),te=e("yZgL"),Ie=e("hwEt"),ze=e("xxWa"),mt=e("R3M+"),Ot=e("bkVK"),Rt=e("aKgm"),he=e("PDVC"),Re=e("P84e"),I=e("AQ/w"),ut=e("3Us1"),yt=e("eP3D"),wt=e("Mn2j"),Lt=e("BtTS"),Nt=e("yiTY"),Vt=e("Uc1W"),pn=e("y36+"),kt=e("gweS"),Xt=e("URK0"),Jt=e("gVIt"),xn=e("lV6h"),Cn=e("waHm"),or=e("RVXi"),er=e("Lj+q"),sr=e("IVhM"),ir=e("WU/Z"),gr=e("1jPx"),Vr=e("8Lo7"),$r=e("Iw+M"),na=e("FIIH"),Zr=e("p/G/"),_r=e("oat3"),Dr=e("BLTA"),Br=e("I5+W"),Pr=e("PaaY"),Gr=e("JO4c"),qr=e("eDW+"),ra=e("rtIu"),ca=e("jGFG"),Ir=e("NId1"),Ar=e("IUJg"),aa=e("F1NP"),oa=e("ti1D"),ea=e("NQz/"),Qt=e("UHn5"),mn=e("/vMi"),fn=e("nkhd"),Un=e("+u1y"),Dn=e("9BQv"),An=e("Tz1E"),jn=e("U9fH"),nt=e("+4le"),pt=e("jIZW"),Yt=e("oYEA"),Se=e("7yTQ"),vr=e("jHRr"),Kr=e("Rka6"),sa=e("8Ubs"),lr=e("FK48"),ja=e("Auwt"),$o=e("KAxK"),mo=e("/0sN"),ho=e("VvX1"),Ta=e("2aV/"),Bo=e("aKtI"),Ga=e("VUky"),is=e("9bAj"),za=e("xF6R"),Wo=e("Dbv2"),xa=e("KHCi"),ls=e("i/DM"),ro=e("hYqy"),ko=e("JXee"),go=e("+Hw1"),vo=e("FBts"),Ka=e("3UWB"),ia=e("S5nV"),Aa=e("xD7I"),ot=e("aNdP"),at=e("UIoa"),_t=e("Osgv"),pe=e("FKIO"),ao=e("Sf9Y"),la=e("VuYY"),yo=e("ue5M"),bo=e("80Z6"),Ho=e("qkSU"),Xr=e("xaQh"),Eo=e("GPZX"),us=e("eCow"),Fs=e("/R3g"),cs=e("0pSW"),ds=e("85tw"),mi=e("UvYY"),oo=e("DVoG"),$s=e("aLaE"),ps=e("fQri"),Ra=e("RDHo"),Vo=e("9Rzw"),jo=e("iMhB"),xo=e("/mKc"),Oo=e("u6Ie"),wa=e("9znl"),Go=e("+GPJ"),La=e("haHa"),fs=e("RhWa"),et=e("PUJJ"),Qn=e("YceZ"),zo=e("jksQ"),da=e("FuvP"),ms=e("Uq4z"),Zt=e("+2a4"),Da=e("Gw+j"),Bs=e("CO2k"),Ko=e("rVgK"),hi=e("ecuC"),pa=e("HQPm"),xr=e("IbaC"),Oa=e("s00F"),Ws=e("V0Bj"),so=e("hwEL"),zr=e("d/5L"),ks=e("oJGl"),Co=e("6FCX"),hn=e("OAmA"),Hs=e("p6E5"),hs=e("Xxk+"),gs=e("L5O0"),Xa=e("bcvT"),io=e("CRpX"),vs=e("aRU8"),Xo=e("p5yU"),gi=e("dnZx"),ys=e("NMu4"),bs=e("5JgN"),Es=e("VWci"),Vs=e("FoZm"),fa=e("bCY9"),vi=e("miYZ"),Gs=e("tsqr"),js=e("wd/R"),Qa=e.n(js),xs=e("/EoS"),yi=e("4MGa"),bi=e("22qN"),Ya=e("YdpX"),Ei=e("T5T7"),So=e("58Ye"),ji=e("OIXA");Qa.a.locale("ZH-cn");var Qo={config:{onError:function(xe){Gs.b.error(xe.message,3)}}},Ia=e("L874"),Mr=e("q1tI"),mr=e.n(Mr),zn=e("I5X1");if(typeof zn.a!="function")throw new Error("[plugin-initial-state]: useModel is not a function, @umijs/plugin-model is required.");var Yo=function(Wt){var xe=Wt.children,en=Object(Mr.useRef)(!1),cn=Object(zn.a)("@@initialState")||{},Sn=cn.loading,In=Sn===void 0?!1:Sn;return Object(Mr.useEffect)(function(){In||(en.current=!0)},[In]),In&&!en.current?null:xe};function xi(Wt){return mr.a.createElement(Yo,null,Wt)}var Ua=e("ZW6p");function Po(Wt){return mr.a.createElement(Ua.b,null,Wt)}var Na=e("tJVT"),Er=function(){return{loading:!1,refresh:function(){}}},pr=e("7xWI"),ma=e.n(pr),Rr=e("sFpY"),yr=e.n(Rr),Fa=e("FMtG"),$a={"@@initialState":Er},ur=new ma.a,Ee=yr.a,lt=function(Wt){var xe=Wt.children;return mr.a.createElement(Fa.UmiContext.Provider,{value:ur},Object.entries($a).map(function(en){return mr.a.createElement(Ee,{key:en[0],namespace:en[0],hook:en[1],onUpdate:function(Sn){var In=en,Nn=Object(Na.a)(In,1),tr=Nn[0];ur.data[tr]=Sn,ur.update(tr)}})}),xe)};function At(Wt){return mr.a.createElement(lt,null,Wt)}fa.a.register({apply:a,path:"/root/workspace/ppte5yg23_local_v8/src/app.tsx"}),fa.a.register({apply:Ia,path:"/root/workspace/ppte5yg23_local_v8/src/.umi-production/plugin-dva/runtime.tsx"}),fa.a.register({apply:n,path:"../plugin-initial-state/runtime"}),fa.a.register({apply:r,path:"/root/workspace/ppte5yg23_local_v8/src/.umi-production/plugin-locale/runtime.tsx"}),fa.a.register({apply:t,path:"../plugin-model/runtime"});var zt=1,un=e("FfOG"),Le=e("LtsZ"),Yn=e("Ty5D"),Gn=e("i8i4"),Ur=e("wx14");function Kn(Wt,xe,en){return en===void 0&&(en=[]),Wt.some(function(cn){var Sn=cn.path?Object(Yn.f)(xe,cn):en.length?en[en.length-1].match:Yn.c.computeRootMatch(xe);return Sn&&(en.push({route:cn,match:Sn}),cn.routes&&Kn(cn.routes,xe,en)),Sn}),en}function hr(Wt,xe,en){return xe===void 0&&(xe={}),en===void 0&&(en={}),Wt?mr.a.createElement(Yn.d,en,Wt.map(function(cn,Sn){return mr.a.createElement(Yn.b,{key:cn.key||Sn,path:cn.path,exact:cn.exact,strict:cn.strict,render:function(Nn){return cn.render?cn.render(Object(Ur.a)({},Nn,{},xe,{route:cn})):mr.a.createElement(cn.component,Object(Ur.a)({},Nn,xe,{route:cn}))}})})):null}function Xn(Wt,xe){var en=Object.keys(Wt);if(Object.getOwnPropertySymbols){var cn=Object.getOwnPropertySymbols(Wt);xe&&(cn=cn.filter(function(Sn){return Object.getOwnPropertyDescriptor(Wt,Sn).enumerable})),en.push.apply(en,cn)}return en}function Vn(Wt){for(var xe=1;xe=0)continue;en[Sn]=Wt[Sn]}return en}function Os(Wt,xe){if(Wt==null)return{};var en=Oi(Wt,xe),cn,Sn;if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(Wt);for(Sn=0;Sn=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Wt,cn))continue;en[cn]=Wt[cn]}}return en}function nl(Wt,xe){return Ba(Wt)||Cs(Wt,xe)||Ss(Wt,xe)||ha()}function Ba(Wt){if(Array.isArray(Wt))return Wt}function Cs(Wt,xe){var en=Wt==null?null:typeof Symbol!="undefined"&&Wt[Symbol.iterator]||Wt["@@iterator"];if(en==null)return;var cn=[],Sn=!0,In=!1,Nn,tr;try{for(en=en.call(Wt);!(Sn=(Nn=en.next()).done)&&!(cn.push(Nn.value),xe&&cn.length===xe);Sn=!0);}catch(Zn){In=!0,tr=Zn}finally{try{!Sn&&en.return!=null&&en.return()}finally{if(In)throw tr}}return cn}function Ss(Wt,xe){if(!Wt)return;if(typeof Wt=="string")return zs(Wt,xe);var en=Object.prototype.toString.call(Wt).slice(8,-1);if(en==="Object"&&Wt.constructor&&(en=Wt.constructor.name),en==="Map"||en==="Set")return Array.from(Wt);if(en==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(en))return zs(Wt,xe)}function zs(Wt,xe){(xe==null||xe>Wt.length)&&(xe=Wt.length);for(var en=0,cn=new Array(xe);en=0)continue;if(!Object.prototype.hasOwnProperty.call(Ae,ae))continue;k[ae]=Ae[ae]}return k},N=function(Ae,S){if(!Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:Ae},Oe=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return k===!1?String(S):String(S).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},ue=function(S){var k=Q(S,o.TITLE),ae=Q(S,E.TITLE_TEMPLATE);if(ae&&k)return ae.replace(/%s/g,function(){return Array.isArray(k)?k.join(""):k});var oe=Q(S,E.DEFAULT_TITLE);return k||oe||void 0},re=function(S){return Q(S,E.ON_CHANGE_CLIENT_STATE)||function(){}},ee=function(S,k){return k.filter(function(ae){return typeof ae[S]!="undefined"}).map(function(ae){return ae[S]}).reduce(function(ae,oe){return z({},ae,oe)},{})},J=function(S,k){return k.filter(function(ae){return typeof ae[o.BASE]!="undefined"}).map(function(ae){return ae[o.BASE]}).reverse().reduce(function(ae,oe){if(!ae.length)for(var le=Object.keys(oe),K=0;K=0;ae--){var oe=S[ae];if(oe.hasOwnProperty(k))return oe[k]}return null},q=function(S){return{baseTag:J([c.HREF,c.TARGET],S),bodyAttributes:ee(f.BODY,S),defer:Q(S,E.DEFER),encode:Q(S,E.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ee(f.HTML,S),linkTags:F(o.LINK,[c.REL,c.HREF],S),metaTags:F(o.META,[c.NAME,c.CHARSET,c.HTTPEQUIV,c.PROPERTY,c.ITEM_PROP],S),noscriptTags:F(o.NOSCRIPT,[c.INNER_HTML],S),onChangeClientState:re(S),scriptTags:F(o.SCRIPT,[c.SRC,c.INNER_HTML],S),styleTags:F(o.STYLE,[c.CSS_TEXT],S),title:ue(S),titleAttributes:ee(f.TITLE,S)}},He=function(){var Ae=Date.now();return function(S){var k=Date.now();k-Ae>16?(Ae=k,S(k)):setTimeout(function(){He(S)},0)}}(),Ze=function(S){return clearTimeout(S)},ft=typeof window!="undefined"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||He:a.requestAnimationFrame||He,$e=typeof window!="undefined"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ze:a.cancelAnimationFrame||Ze,Ue=function(S){return console&&typeof console.warn=="function"&&console.warn(S)},X=null,me=function(S){X&&$e(X),S.defer?X=ft(function(){ie(S,function(){X=null})}):(ie(S),X=null)},ie=function(S,k){var ae=S.baseTag,oe=S.bodyAttributes,le=S.htmlAttributes,K=S.linkTags,P=S.metaTags,T=S.noscriptTags,$=S.onChangeClientState,se=S.scriptTags,ke=S.styleTags,ve=S.title,Be=S.titleAttributes;Ye(o.BODY,oe),Ye(o.HTML,le),de(ve,Be);var it={baseTag:fe(o.BASE,ae),linkTags:fe(o.LINK,K),metaTags:fe(o.META,P),noscriptTags:fe(o.NOSCRIPT,T),scriptTags:fe(o.SCRIPT,se),styleTags:fe(o.STYLE,ke)},We={},Et={};Object.keys(it).forEach(function(Tt){var Ht=it[Tt],It=Ht.newTags,tn=Ht.oldTags;It.length&&(We[Tt]=It),tn.length&&(Et[Tt]=it[Tt].oldTags)}),k&&k(),$(S,We,Et)},W=function(S){return Array.isArray(S)?S.join(""):S},de=function(S,k){typeof S!="undefined"&&document.title!==S&&(document.title=W(S)),Ye(o.TITLE,k)},Ye=function(S,k){var ae=document.getElementsByTagName(S)[0];if(!ae)return;for(var oe=ae.getAttribute(M),le=oe?oe.split(","):[],K=[].concat(le),P=Object.keys(k),T=0;T=0;ve--)ae.removeAttribute(K[ve]);le.length===K.length?ae.removeAttribute(M):ae.getAttribute(M)!==P.join(",")&&ae.setAttribute(M,P.join(","))},fe=function(S,k){var ae=document.head||document.querySelector(o.HEAD),oe=ae.querySelectorAll(S+"["+M+"]"),le=Array.prototype.slice.call(oe),K=[],P=void 0;return k&&k.length&&k.forEach(function(T){var $=document.createElement(S);for(var se in T)if(T.hasOwnProperty(se))if(se===c.INNER_HTML)$.innerHTML=T.innerHTML;else if(se===c.CSS_TEXT)$.styleSheet?$.styleSheet.cssText=T.cssText:$.appendChild(document.createTextNode(T.cssText));else{var ke=typeof T[se]=="undefined"?"":T[se];$.setAttribute(se,ke)}$.setAttribute(M,"true"),le.some(function(ve,Be){return P=Be,$.isEqualNode(ve)})?le.splice(P,1):K.push($)}),le.forEach(function(T){return T.parentNode.removeChild(T)}),K.forEach(function(T){return ae.appendChild(T)}),{oldTags:le,newTags:K}},rt=function(S){return Object.keys(S).reduce(function(k,ae){var oe=typeof S[ae]!="undefined"?ae+'="'+S[ae]+'"':""+ae;return k?k+" "+oe:oe},"")},Te=function(S,k,ae,oe){var le=rt(ae),K=W(k);return le?"<"+S+" "+M+'="true" '+le+">"+Oe(K,oe)+"":"<"+S+" "+M+'="true">'+Oe(K,oe)+""},Ve=function(S,k,ae){return k.reduce(function(oe,le){var K=Object.keys(le).filter(function($){return!($===c.INNER_HTML||$===c.CSS_TEXT)}).reduce(function($,se){var ke=typeof le[se]=="undefined"?se:se+'="'+Oe(le[se],ae)+'"';return $?$+" "+ke:ke},""),P=le.innerHTML||le.cssText||"",T=C.indexOf(S)===-1;return oe+"<"+S+" "+M+'="true" '+K+(T?"/>":">"+P+"")},"")},tt=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(S).reduce(function(ae,oe){return ae[b[oe]||oe]=S[oe],ae},k)},ht=function(S){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(S).reduce(function(ae,oe){return ae[O[oe]||oe]=S[oe],ae},k)},ge=function(S,k,ae){var oe,le=(oe={key:k},oe[M]=!0,oe),K=tt(ae,le);return[s.a.createElement(o.TITLE,K,k)]},ye=function(S,k){return k.map(function(ae,oe){var le,K=(le={key:oe},le[M]=!0,le);return Object.keys(ae).forEach(function(P){var T=b[P]||P;if(T===c.INNER_HTML||T===c.CSS_TEXT){var $=ae.innerHTML||ae.cssText;K.dangerouslySetInnerHTML={__html:$}}else K[T]=ae[P]}),s.a.createElement(S,K)})},je=function(S,k,ae){switch(S){case o.TITLE:return{toComponent:function(){return ge(S,k.title,k.titleAttributes,ae)},toString:function(){return Te(S,k.title,k.titleAttributes,ae)}};case f.BODY:case f.HTML:return{toComponent:function(){return tt(k)},toString:function(){return rt(k)}};default:return{toComponent:function(){return ye(S,k)},toString:function(){return Ve(S,k,ae)}}}},we=function(S){var k=S.baseTag,ae=S.bodyAttributes,oe=S.encode,le=S.htmlAttributes,K=S.linkTags,P=S.metaTags,T=S.noscriptTags,$=S.scriptTags,se=S.styleTags,ke=S.title,ve=ke===void 0?"":ke,Be=S.titleAttributes;return{base:je(o.BASE,k,oe),bodyAttributes:je(f.BODY,ae,oe),htmlAttributes:je(f.HTML,le,oe),link:je(o.LINK,K,oe),meta:je(o.META,P,oe),noscript:je(o.NOSCRIPT,T,oe),script:je(o.SCRIPT,$,oe),style:je(o.STYLE,se,oe),title:je(o.TITLE,{title:ve,titleAttributes:Be},oe)}},ce=function(S){var k,ae;return ae=k=function(oe){G(le,oe);function le(){return A(this,le),N(this,oe.apply(this,arguments))}return le.prototype.shouldComponentUpdate=function(P){return!m()(this.props,P)},le.prototype.mapNestedChildrenToProps=function(P,T){if(!T)return null;switch(P.type){case o.SCRIPT:case o.NOSCRIPT:return{innerHTML:T};case o.STYLE:return{cssText:T}}throw new Error("<"+P.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},le.prototype.flattenArrayTypeChildren=function(P){var T,$=P.child,se=P.arrayTypeChildren,ke=P.newChildProps,ve=P.nestedChildren;return z({},se,(T={},T[$.type]=[].concat(se[$.type]||[],[z({},ke,this.mapNestedChildrenToProps($,ve))]),T))},le.prototype.mapObjectTypeChildren=function(P){var T,$,se=P.child,ke=P.newProps,ve=P.newChildProps,Be=P.nestedChildren;switch(se.type){case o.TITLE:return z({},ke,(T={},T[se.type]=Be,T.titleAttributes=z({},ve),T));case o.BODY:return z({},ke,{bodyAttributes:z({},ve)});case o.HTML:return z({},ke,{htmlAttributes:z({},ve)})}return z({},ke,($={},$[se.type]=z({},ve),$))},le.prototype.mapArrayTypeChildrenToProps=function(P,T){var $=z({},T);return Object.keys(P).forEach(function(se){var ke;$=z({},$,(ke={},ke[se]=P[se],ke))}),$},le.prototype.warnOnInvalidChildren=function(P,T){return!0},le.prototype.mapChildrenToProps=function(P,T){var $=this,se={};return s.a.Children.forEach(P,function(ke){if(!ke||!ke.props)return;var ve=ke.props,Be=ve.children,it=D(ve,["children"]),We=ht(it);$.warnOnInvalidChildren(ke,Be);switch(ke.type){case o.LINK:case o.META:case o.NOSCRIPT:case o.SCRIPT:case o.STYLE:se=$.flattenArrayTypeChildren({child:ke,arrayTypeChildren:se,newChildProps:We,nestedChildren:Be});break;default:T=$.mapObjectTypeChildren({child:ke,newProps:T,newChildProps:We,nestedChildren:Be});break}}),T=this.mapArrayTypeChildrenToProps(se,T),T},le.prototype.render=function(){var P=this.props,T=P.children,$=D(P,["children"]),se=z({},$);return T&&(se=this.mapChildrenToProps(T,se)),s.a.createElement(S,se)},L(le,null,[{key:"canUseDOM",set:function(P){S.canUseDOM=P}}]),le}(s.a.Component),k.propTypes={base:r.a.object,bodyAttributes:r.a.object,children:r.a.oneOfType([r.a.arrayOf(r.a.node),r.a.node]),defaultTitle:r.a.string,defer:r.a.bool,encodeSpecialCharacters:r.a.bool,htmlAttributes:r.a.object,link:r.a.arrayOf(r.a.object),meta:r.a.arrayOf(r.a.object),noscript:r.a.arrayOf(r.a.object),onChangeClientState:r.a.func,script:r.a.arrayOf(r.a.object),style:r.a.arrayOf(r.a.object),title:r.a.string,titleAttributes:r.a.object,titleTemplate:r.a.string},k.defaultProps={defer:!0,encodeSpecialCharacters:!0},k.peek=S.peek,k.rewind=function(){var oe=S.rewind();return oe||(oe=we({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),oe},ae},Y=function(){return null},V=u()(q,me,we)(Y),U=ce(V);U.renderStatic=U.rewind;var B=U}).call(this,e("IyRk"))},qitQ:function(x,g,e){"use strict";var a=e("tny8"),n=e("MVys"),r=e("P0e2"),t=e("kyO0"),u=e("e3V2"),v=e("cTDu"),m=e("EzR6"),i=Object.assign,s=Object.defineProperty;x.exports=!i||n(function(){if(a&&i({b:1},i(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},l={},f=Symbol(),o="abcdefghijklmnopqrst";return d[f]=7,o.split("").forEach(function(h){l[h]=h}),i({},d)[f]!=7||r(i({},l)).join("")!=o})?function(l,f){for(var o=v(l),h=arguments.length,c=1,b=t.f,E=u.f;h>c;)for(var O=m(arguments[c++]),C=b?r(O).concat(b(O)):r(O),M=C.length,w=0,A;M>w;)A=C[w++],(!a||E.call(O,A))&&(o[A]=O[A]);return o}:i},qkSU:function(x,g,e){"use strict";var a=e("MMxC"),n=e("LUyE"),r=e("WJ3H");a({target:"Promise",stat:!0},{try:function(t){var u=n.f(this),v=r(t);return(v.error?u.reject:u.resolve)(v.value),u.promise}})},qlaj:function(x,g,e){"use strict";var a=e("w8CP"),n=a.rotr32;function r(l,f,o,h){if(l===0)return t(f,o,h);if(l===1||l===3)return v(f,o,h);if(l===2)return u(f,o,h)}g.ft_1=r;function t(l,f,o){return l&f^~l&o}g.ch32=t;function u(l,f,o){return l&f^l&o^f&o}g.maj32=u;function v(l,f,o){return l^f^o}g.p32=v;function m(l){return n(l,2)^n(l,13)^n(l,22)}g.s0_256=m;function i(l){return n(l,6)^n(l,11)^n(l,25)}g.s1_256=i;function s(l){return n(l,7)^n(l,18)^l>>>3}g.g0_256=s;function d(l){return n(l,17)^n(l,19)^l>>>10}g.g1_256=d},qtVS:function(x,g,e){"use strict";e.d(g,"i",function(){return v}),e.d(g,"g",function(){return i}),e.d(g,"h",function(){return d}),e.d(g,"f",function(){return f}),e.d(g,"l",function(){return h}),e.d(g,"k",function(){return b}),e.d(g,"c",function(){return O}),e.d(g,"e",function(){return M}),e.d(g,"d",function(){return A}),e.d(g,"b",function(){return z}),e.d(g,"a",function(){return D}),e.d(g,"m",function(){return Oe}),e.d(g,"j",function(){return re});var a=e("k1fw"),n=e("9og8"),r=e("WmNS"),t=e.n(r),u=e("ErOA");function v(J){return m.apply(this,arguments)}function m(){return m=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/teachers.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),m.apply(this,arguments)}function i(J){return s.apply(this,arguments)}function s(){return s=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/apply_teachers.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),s.apply(this,arguments)}function d(J){return l.apply(this,arguments)}function l(){return l=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/graduation_group_list.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),l.apply(this,arguments)}function f(J){return o.apply(this,arguments)}function o(){return o=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/all_course_groups.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),o.apply(this,arguments)}function h(J){return c.apply(this,arguments)}function c(){return c=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/set_course_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),c.apply(this,arguments)}function b(J){return E.apply(this,arguments)}function E(){return E=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/join_graduation_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),E.apply(this,arguments)}function O(J){return C.apply(this,arguments)}function C(){return C=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/create_graduation_group.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),C.apply(this,arguments)}function M(J){return w.apply(this,arguments)}function w(){return w=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/delete_course_teacher.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),w.apply(this,arguments)}function A(J){return L.apply(this,arguments)}function L(){return L=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/delete_from_course.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),L.apply(this,arguments)}function z(J){return G.apply(this,arguments)}function G(){return G=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/change_member_role.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),G.apply(this,arguments)}function D(J){return N.apply(this,arguments)}function N(){return N=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/change_course_admin.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),N.apply(this,arguments)}function Oe(J){return ue.apply(this,arguments)}function ue(){return ue=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/teacher_application_review.json"),{method:"post",body:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),ue.apply(this,arguments)}function re(J){return ee.apply(this,arguments)}function ee(){return ee=Object(n.a)(t.a.mark(function J(F){return t.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.abrupt("return",Object(u.a)("/api/courses/".concat(F.coursesId,"/students.json"),{method:"get",params:Object(a.a)({},F)}));case 1:case"end":return q.stop()}},J)})),ee.apply(this,arguments)}},quHW:function(x,g,e){var a=e("MMxC"),n=e("29mP"),r=e("cT1L"),t=e("f1E4"),u=e("MVys"),v=n("Reflect","apply"),m=Function.apply,i=!u(function(){v(function(){})});a({target:"Reflect",stat:!0,forced:i},{apply:function(d,l,f){return r(d),t(f),v?v(d,l,f):m.call(d,l,f)}})},qx4F:function(x,g,e){"use strict";e.d(g,"a",function(){return n});var a;function n(u){if(typeof document=="undefined")return 0;if(u||a===void 0){var v=document.createElement("div");v.style.width="100%",v.style.height="200px";var m=document.createElement("div"),i=m.style;i.position="absolute",i.top="0",i.left="0",i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",m.appendChild(v),document.body.appendChild(m);var s=v.offsetWidth;m.style.overflow="scroll";var d=v.offsetWidth;s===d&&(d=m.clientWidth),document.body.removeChild(m),a=s-d}return a}function r(u){var v=u.match(/^(.*)px$/),m=Number(v==null?void 0:v[1]);return Number.isNaN(m)?n():m}function t(u){if(typeof document=="undefined"||!u||!(u instanceof Element))return{width:0,height:0};var v=getComputedStyle(u,"::-webkit-scrollbar"),m=v.width,i=v.height;return{width:r(m),height:r(i)}}},rE4C:function(x,g,e){var a=e("MMxC"),n=e("MVys"),r=e("tSXo"),t=Object.isFrozen,u=n(function(){t(1)});a({target:"Object",stat:!0,forced:u},{isFrozen:function(m){return r(m)?t?t(m):!1:!0}})},rS2G:function(x,g,e){var a=e("MMxC"),n=e("8Cw2");a({target:"Number",stat:!0},{isFinite:n})},rUU2:function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("cTDu"),t=e("oa35"),u=e("m0kY"),v=e("FCfD"),m=e("xH5X"),i=e("dagG"),s=Math.max,d=Math.min,l=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,o=/\$([$&'`]|\d\d?)/g,h=function(c){return c===void 0?c:String(c)};a("replace",2,function(c,b,E,O){var C=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=O.REPLACE_KEEPS_$0,w=C?"$":"$0";return[function(z,G){var D=v(this),N=z==null?void 0:z[c];return N!==void 0?N.call(z,D,G):b.call(String(D),z,G)},function(L,z){if(!C&&M||typeof z=="string"&&z.indexOf(w)===-1){var G=E(b,L,this,z);if(G.done)return G.value}var D=n(L),N=String(this),Oe=typeof z=="function";Oe||(z=String(z));var ue=D.global;if(ue){var re=D.unicode;D.lastIndex=0}for(var ee=[];;){var J=i(D,N);if(J===null)break;if(ee.push(J),!ue)break;var F=String(J[0]);F===""&&(D.lastIndex=m(N,t(D.lastIndex),re))}for(var Q="",q=0,He=0;He=q&&(Q+=N.slice(q,ft)+ie,q=ft+Ze.length)}return Q+N.slice(q)}];function A(L,z,G,D,N,Oe){var ue=G+L.length,re=D.length,ee=o;return N!==void 0&&(N=r(N),ee=f),b.call(Oe,ee,function(J,F){var Q;switch(F.charAt(0)){case"$":return"$";case"&":return L;case"`":return z.slice(0,G);case"'":return z.slice(ue);case"<":Q=N[F.slice(1,-1)];break;default:var q=+F;if(q===0)return J;if(q>re){var He=l(q/10);return He===0?J:He<=re?D[He-1]===void 0?F.charAt(1):D[He-1]+F.charAt(1):J}Q=D[q-1]}return Q===void 0?"":Q})}})},rVgK:function(x,g,e){"use strict";var a=e("MMxC"),n=e("eYKs").charAt;a({target:"String",proto:!0},{at:function(t){return n(this,t)}})},rYFv:function(x,g,e){"use strict";var a=e("CiB2"),n=e("k1fw"),r=e("jrin"),t=e("WmNS"),u=e.n(t),v=e("rbmi"),m=e("7KHo"),i=e("g+eg"),s,d={namespace:"engineeringNavigtion",state:{actionTabs:{key:"",params:{}},headerData:{title:"\u8BA4\u8BC1\u5BFC\u822A",dataSource:(s={},Object(r.a)(s,m.b[0],{width:235,placeholder:"\u8BF7\u9009\u62E9".concat(m.b[0]),loading:"engineeringNavigtion/getMajorList",dataList:[]}),Object(r.a)(s,m.b[1],{width:138,placeholder:"\u8BF7\u9009\u62E9".concat(m.b[1]),loading:"engineeringNavigtion/getYearList",dataList:[]}),s),active:{},name:"",tabBarContent:{user_name:"",user_school:"",user_type:""}},cardListData:{appraiseData:{norm:{title:"\u6307\u6807\u8BC4\u4EF7",result:"-",tabBarContent:[{icon:"icon-biyezhibiao",label:"\u6BD5\u4E1A\u6307\u6807",value:"/engineering/graduationindex"},{icon:"icon-biyejuzhen",label:"\u6BD5\u4E1A\u77E9\u9635",value:"/engineering/graduatedMatrix"}],listData:[{key:"graduation_count",icon:"icon-biyeyaoqiu1",backgroundColor:"#F2EBFB",textColor:"#713BDB",label:"\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"},{key:"graduation_subitem_count",icon:"icon-zhibiaodian",backgroundColor:"#FEF3EF",textColor:"#FF8B58",label:"\u6307\u6807\u70B9",value:"-",unit:"\u9879"},{key:"graduation_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"\u5DF2\u8FBE\u6210\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"},{key:"graduation_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"\u672A\u8FBE\u6210\u6BD5\u4E1A\u8981\u6C42",value:"-",unit:"\u9879"}]},course:{title:"\u8BFE\u7A0B\u8BC4\u4EF7",result:"-",tabBarContent:[{icon:"icon-kechengliebiao",label:"\u8BFE\u7A0B\u5217\u8868",value:"/engineering/courseList"},{icon:"icon-kechengjuzhen",label:"\u8BFE\u7A0B\u77E9\u9635",value:"/engineering/courseMatrix"}],listData:[{key:"course_count",icon:"icon-kechengshuliang",backgroundColor:"#E2F5FF",textColor:"#007AFF",label:"\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"},{key:"course_target_count",icon:"icon-mubiao",backgroundColor:"#FEF8EF",textColor:"#FEB315",label:"\u8BFE\u7A0B\u76EE\u6807",value:"-",unit:"\u9879"},{key:"course_achieve_count",icon:"icon-dacheng",backgroundColor:"#D7F5E6",textColor:"#07C160",label:"\u5DF2\u8FBE\u6210\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"},{key:"course_not_achieve_count",icon:"icon-weidacheng",backgroundColor:"#F5F5F5",textColor:"#7C8184",label:"\u672A\u8FBE\u6210\u8BFE\u7A0B\u6570\u91CF",value:"-",unit:"\u95E8"}]}},teamData:{teach:{title:"\u6388\u8BFE\u56E2\u961F",tabBarContent:"0\u4EBA",listData:[]},work:{title:"\u5DE5\u4F5C\u56E2\u961F",tabBarContent:"0\u4EBA",listData:[]}}},totalListData:[{key:"student_count",title:"\u5F53\u524D\u5B66\u751F\u603B\u6570",value:0,icon:"icon-xuesheng1",backgroundColor:"rgba(201,236,255,0.51)",textColor:"#007AFF"},{key:"student_in_count",title:"\u8F6C\u5165\u5B66\u751F\u603B\u6570",value:0,icon:"icon-zhuanru",backgroundColor:"rgba(119,241,174,0.4)",textColor:"#1FA363"},{key:"student_out_count",title:"\u8F6C\u51FA\u5B66\u751F\u603B\u6570",value:0,icon:"icon-zhuanchu",backgroundColor:"rgba(255,197,147,0.44)",textColor:"#FA6400"}]},effects:{setActionTabs:u.a.mark(function l(f,o){var h,c,b;return u.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return h=f.payload,c=o.call,b=o.put,O.next=4,b({type:"save",payload:{actionTabs:Object(n.a)({},h)}});case 4:case"end":return O.stop()}},l)}),getMajorList:u.a.mark(function l(f,o){var h,c,b,E,O,C,M;return u.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return Object(a.a)(f),h=o.call,c=o.put,b=o.select,A.next=4,b(function(L){return L.user});case 4:if(E=A.sent,O=E.userInfo,!(O!=null&&O.school_id)){A.next=14;break}return A.next=9,h(v.i,O.school_id);case 9:if(C=A.sent,!(C&&C.data)){A.next=14;break}return M=i.a.getItem(O==null?void 0:O.login),A.next=14,c({type:"setMajorOrYearDataSource",payload:{key:m.b[0],value:C.data.map(function(L){return{label:L.name,value:L.ec_major_school_id}}),active:C.data.length>0?M[0]||C.data[0].ec_major_school_id:void 0}});case 14:case"end":return A.stop()}},l)}),getYearList:u.a.mark(function l(f,o){var h,c,b,E,O,C,M,w;return u.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return h=f.payload,c=o.call,b=o.put,E=o.select,L.next=4,c(v.k,h.id);case 4:return O=L.sent,L.next=7,E(function(z){return z.user});case 7:if(C=L.sent,M=C.userInfo,!(O&&O.data)){L.next=13;break}return w=i.a.getItem(M==null?void 0:M.login),L.next=13,b({type:"setMajorOrYearDataSource",payload:{key:m.b[1],value:O.data.map(function(z){return{label:z.year,value:z.ec_year_id}}),active:O.data.length>0?h.firstEnter?w[1]:O.data[0].ec_year_id:void 0}});case 13:case"end":return L.stop()}},l)}),getTopPage:u.a.mark(function l(f,o){var h,c,b,E,O,C,M,w,A,L;return u.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return Object(a.a)(f),h=o.call,c=o.put,b=o.select,G.next=4,b(function(D){return D.engineeringNavigtion});case 4:return E=G.sent,O=E.headerData,G.next=8,b(function(D){return D.user});case 8:if(C=G.sent,M=C.userInfo,w={},!(O.active[m.b[1]]&&M.school_id)){G.next=20;break}return A=[O.active[m.b[0]],O.active[m.b[1]]],i.a.setItem(M==null?void 0:M.login,A),G.next=16,h(v.j,{ec_year_id:O.active[m.b[1]],school_id:M.school_id});case 16:return L=G.sent,L&&L.data&&(w=L.data),G.next=20,c({type:"setTopPage",payload:w});case 20:case"end":return G.stop()}},l)}),putTopPageName:u.a.mark(function l(f,o){var h,c,b,E,O,C;return u.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return h=f.payload,c=f.callback,b=o.call,E=o.put,w.prev=2,w.next=5,b(v.r,h);case 5:O=w.sent,c(O),w.next=14;break;case 9:w.prev=9,w.t0=w.catch(2),C="",w.t0&&(C=JSON.stringify(w.t0),w.t0.message&&(C=w.t0.message)),c({message:C,status:999});case 14:case"end":return w.stop()}},l,null,[[2,9]])})},reducers:{save:function(f,o){return Object(n.a)(Object(n.a)({},f),o.payload)},setMajorOrYearDataSource:function(f,o){var h=o.payload,c=f.headerData.active;return h.active&&(c=Object(n.a)(Object(n.a)({},c),{},Object(r.a)({},h.key,h.active))),Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{dataSource:Object(n.a)(Object(n.a)({},f.headerData.dataSource),{},Object(r.a)({},h.key,Object(n.a)(Object(n.a)({},f.headerData.dataSource[h.key]),{},{dataList:h.value}))),active:c})})},setMajorOrYearActive:function(f,o){var h=o.payload;return Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{active:Object(n.a)(Object(n.a)({},f.headerData.active),{},Object(r.a)({},h.key,h.value))})})},setTopPage:function(f,o){var h=o.payload;return Object(n.a)(Object(n.a)({},f),{},{headerData:Object(n.a)(Object(n.a)({},f.headerData),{},{name:h.name,tabBarContent:{user_name:h.user_name,user_school:h.user_school,user_type:h.user_type}}),cardListData:Object(n.a)(Object(n.a)({},f.cardListData),{},{appraiseData:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData),{},{norm:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData.norm),{},{result:h.graduaiton_result,listData:f.cardListData.appraiseData.norm.listData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})}),course:Object(n.a)(Object(n.a)({},f.cardListData.appraiseData.course),{},{result:h.course_result,listData:f.cardListData.appraiseData.course.listData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})})}),teamData:{teach:Object(n.a)(Object(n.a)({},f.cardListData.teamData.teach),{},{tabBarContent:"".concat(h.course_teachers?h.course_teachers.length:0,"\u4EBA"),listData:h.course_teachers||[]}),work:Object(n.a)(Object(n.a)({},f.cardListData.teamData.work),{},{tabBarContent:"".concat(h.work_teachers?h.work_teachers.length:0,"\u4EBA"),listData:h.work_teachers||[]})}}),totalListData:f.totalListData.map(function(c){return Object(n.a)(Object(n.a)({},c),{},{value:h[c.key]||0})})})}},subscriptions:{setup:function(f){var o=f.dispatch,h=f.history;return h.listen(function(c){var b=c.pathname;b==="/"&&o({type:"query"})})}}};g.a=d},rbmi:function(x,g,e){"use strict";e.d(g,"e",function(){return m}),e.d(g,"a",function(){return i}),e.d(g,"c",function(){return s}),e.d(g,"d",function(){return d}),e.d(g,"m",function(){return l}),e.d(g,"n",function(){return f}),e.d(g,"b",function(){return o}),e.d(g,"l",function(){return h}),e.d(g,"o",function(){return c}),e.d(g,"h",function(){return b}),e.d(g,"f",function(){return E}),e.d(g,"p",function(){return O}),e.d(g,"g",function(){return C}),e.d(g,"q",function(){return M}),e.d(g,"i",function(){return w}),e.d(g,"k",function(){return A}),e.d(g,"j",function(){return L}),e.d(g,"r",function(){return z});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA"),u=e("k1fw"),v=e("PpiC"),m=function(){var G=Object(a.a)(r.a.mark(function D(N){var Oe,ue;return r.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return Oe=N.id,ue=Object(v.a)(N,["id"]),ee.abrupt("return",Object(t.a)("/api/ec_years/".concat(Oe,"/course_results.json"),{method:"get",params:ue}));case 2:case"end":return ee.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),i=function(D){var N=document.createElement("iframe");N.src="/api/ec_years/".concat(D,"/course_results.xlsx"),N.style.display="none",document.body.appendChild(N)},s=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_years/".concat(N,"/course_results/get_class.json"),{method:"get"})},d=function(D){var N=D.ec_year_id,Oe=D.id,ue=D.class_name,re=ue===void 0?null:ue;return Object(t.a)("/api/ec_years/".concat(N,"/course_results/").concat(Oe,".json"),{method:"get",params:{class_name:re}})},l=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_courses/1/evaluations/compute_all_courses_data?ec_year_id=".concat(N),{method:"post"})},f=function(D){var N=D.ec_course_id;return Object(t.a)("/api/ec_courses/".concat(N,"/evaluations/evaluation_data"),{method:"POST"})},o=function(D){var N=document.createElement("iframe");N.src="/api/ec_years/".concat(D,"/ec_graduation_results.xlsx"),N.style.display="none",document.body.appendChild(N)},h=function(D){var N=D.ec_year_id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/compute_all"),{method:"post"})},c=function(D){var N=D.ec_year_id,Oe=D.id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/compute_single?id=").concat(Oe),{method:"POST"})},b=function(D){return Object(t.a)("/api/ec_years/".concat(D,"/ec_graduation_results.json"),{method:"get"})},E=function(D){return Object(t.a)("/api/ec_years/".concat(D,"/ec_graduation_results/get_formulas.json"),{method:"get"})},O=function(D){var N=D.ec_year_id,Oe=D.formula_one,ue=D.formula_two,re=D.formula_three;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/set_formulas.json?formula_one_id=").concat(Oe,"&formula_two_id=").concat(ue,"&formula_three_id=").concat(re),{method:"PUT"})},C=function(D){var N=D.ec_year_id,Oe=D.id;return Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/").concat(Oe,".json"),{method:"get"})},M=function(D){var N=D.ec_year_id,Oe=D.type,ue=D.goal_value,re=Object(v.a)(D,["ec_year_id","type","goal_value"]),ee="?type=".concat(Oe),J={method:"PUT"};return Oe==="all"&&(ee+="&goal_value=".concat(ue)),Oe==="each"&&(J=Object(u.a)(Object(u.a)({},J),{},{body:re})),Object(t.a)("/api/ec_years/".concat(N,"/ec_graduation_results/set_goal_value").concat(ee),J)},w=function(){var G=Object(a.a)(r.a.mark(function D(N){return r.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",Object(t.a)("/api/schools/".concat(N,"/ec_majors/get_major_list.json"),{method:"get"}));case 1:case"end":return ue.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),A=function(){var G=Object(a.a)(r.a.mark(function D(N){return r.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",Object(t.a)("/api/ec_major_schools/".concat(N,"/ec_years/get_year_list.json"),{method:"get"}));case 1:case"end":return ue.stop()}},D)}));return function(N){return G.apply(this,arguments)}}(),L=function(D){var N=D.ec_year_id,Oe=D.school_id;return Object(t.a)("/api/ec_years/".concat(N,"/top_pages.json"),{method:"get",params:{school_id:Oe}})},z=function(D){var N=D.id,Oe=D.name;return Object(t.a)("/api/ec_years/1/top_pages/".concat(N,"?name=").concat(Oe),{method:"PUT"})}},rePB:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r,t){return r in n?Object.defineProperty(n,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[r]=t,n}},"rhT+":function(x,g){function e(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}x.exports=e},rjJZ:function(x,g,e){var a=e("YON3");x.exports=function(n){if(a(n))throw TypeError("The method doesn't accept regular expressions");return n}},rn5R:function(x,g,e){var a=e("ukPv"),n=e("mTKU").trim,r=e("Tfd0"),t=a.parseFloat,u=1/t(r+"-0")!==-Infinity;x.exports=u?function(m){var i=n(String(m)),s=t(i);return s===0&&i.charAt(0)=="-"?-0:s}:t},rpUR:function(x,g,e){"use strict";var a=e("MMxC"),n=e("g8rt").f,r=e("oa35"),t=e("rjJZ"),u=e("FCfD"),v=e("C7V6"),m=e("Zcjx"),i="".endsWith,s=Math.min,d=v("endsWith"),l=!m&&!d&&!!function(){var f=n(String.prototype,"endsWith");return f&&!f.writable}();a({target:"String",proto:!0,forced:!l&&!d},{endsWith:function(o){var h=String(u(this));t(o);var c=arguments.length>1?arguments[1]:void 0,b=r(h.length),E=c===void 0?b:s(r(c),b),O=String(o);return i?i.call(h,O,E):h.slice(E-O.length,E)===O}})},rtIu:function(x,g,e){"use strict";var a=e("FVwB"),n=e("oa35"),r=e("nCqj"),t=e("cTDu"),u=e("MVys"),v=a.aTypedArray,m=a.exportTypedArrayMethod,i=u(function(){new Int8Array(1).set({})});m("set",function(d){v(this);var l=r(arguments.length>1?arguments[1]:void 0,1),f=this.length,o=t(d),h=n(o.length),c=0;if(h+l>f)throw RangeError("Wrong length");for(;c=51&&/native code/.test(F))return!1;var ae=F.resolve(1),oe=function(K){K(function(){},function(){})},le=ae.constructor={};return le[Oe]=oe,!(ae.then(function(){})instanceof oe)}),ye=ge||!b(function(k){F.all(k).catch(function(){})}),je=function(k){var ae;return d(k)&&typeof(ae=k.then)=="function"?ae:!1},we=function(k,ae,oe){if(ae.notified)return;ae.notified=!0;var le=ae.reactions;C(function(){for(var K=ae.value,P=ae.state==de,T=0;le.length>T;){var $=le[T++],se=P?$.ok:$.fail,ke=$.resolve,ve=$.reject,Be=$.domain,it,We,Et;try{se?(P||(ae.rejection===rt&&U(k,ae),ae.rejection=fe),se===!0?it=K:(Be&&Be.enter(),it=se(K),Be&&(Be.exit(),Et=!0)),it===$.promise?ve(Q("Promise-chain cycle")):(We=je(it))?We.call(it,ke,ve):ke(it)):ve(K)}catch(Tt){Be&&!Et&&Be.exit(),ve(Tt)}}ae.reactions=[],ae.notified=!1,oe&&!ae.rejection&&Y(k,ae)})},ce=function(k,ae,oe){var le,K;X?(le=q.createEvent("Event"),le.promise=ae,le.reason=oe,le.initEvent(k,!1,!0),r.dispatchEvent(le)):le={promise:ae,reason:oe},(K=r["on"+k])?K(le):k===me&&w("Unhandled promise rejection",oe)},Y=function(k,ae){O.call(r,function(){var oe=ae.value,le=V(ae),K;if(le&&(K=L(function(){Ue?He.emit("unhandledRejection",oe,k):ce(me,k,oe)}),ae.rejection=Ue||V(ae)?rt:fe,K.error))throw K.value})},V=function(k){return k.rejection!==fe&&!k.parent},U=function(k,ae){O.call(r,function(){Ue?He.emit("rejectionHandled",k):ce(ie,k,ae.value)})},B=function(k,ae,oe,le){return function(K){k(ae,oe,K,le)}},Ae=function(k,ae,oe,le){if(ae.done)return;ae.done=!0,le&&(ae=le),ae.value=oe,ae.state=Ye,we(k,ae,!0)},S=function(k,ae,oe,le){if(ae.done)return;ae.done=!0,le&&(ae=le);try{if(k===oe)throw Q("Promise can't be resolved itself");var K=je(oe);K?C(function(){var P={done:!1};try{K.call(oe,B(S,k,P,ae),B(Ae,k,P,ae))}catch(T){Ae(k,P,T,ae)}}):(ae.value=oe,ae.state=de,we(k,ae,!1))}catch(P){Ae(k,{done:!1},P,ae)}};ge&&(F=function(ae){f(this,F,ue),l(ae),Te.call(this);var oe=re(this);try{ae(B(S,this,oe),B(Ae,this,oe))}catch(le){Ae(this,oe,le)}},Te=function(ae){ee(this,{type:ue,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:W,value:void 0})},Te.prototype=m(F.prototype,{then:function(ae,oe){var le=J(this),K=ft(E(this,F));return K.ok=typeof ae=="function"?ae:!0,K.fail=typeof oe=="function"&&oe,K.domain=Ue?He.domain:void 0,le.parent=!0,le.reactions.push(K),le.state!=W&&we(this,le,!1),K.promise},catch:function(k){return this.then(void 0,k)}}),Ve=function(){var k=new Te,ae=re(k);this.promise=k,this.resolve=B(S,k,ae),this.reject=B(Ae,k,ae)},A.f=ft=function(k){return k===F||k===tt?new Ve(k):$e(k)},!n&&typeof u=="function"&&(ht=u.prototype.then,v(u.prototype,"then",function(ae,oe){var le=this;return new F(function(K,P){ht.call(le,K,P)}).then(ae,oe)},{unsafe:!0}),typeof Ze=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(ae){return M(F,Ze.apply(r,arguments))}}))),a({global:!0,wrap:!0,forced:ge},{Promise:F}),i(F,ue,!1,!0),s(ue),tt=t(ue),a({target:ue,stat:!0,forced:ge},{reject:function(ae){var oe=ft(this);return oe.reject.call(void 0,ae),oe.promise}}),a({target:ue,stat:!0,forced:n||ge},{resolve:function(ae){return M(n&&this===tt?F:this,ae)}}),a({target:ue,stat:!0,forced:ye},{all:function(ae){var oe=this,le=ft(oe),K=le.resolve,P=le.reject,T=L(function(){var $=l(oe.resolve),se=[],ke=0,ve=1;c(ae,function(Be){var it=ke++,We=!1;se.push(void 0),ve++,$.call(oe,Be).then(function(Et){if(We)return;We=!0,se[it]=Et,--ve||K(se)},P)}),--ve||K(se)});return T.error&&P(T.value),le.promise},race:function(ae){var oe=this,le=ft(oe),K=le.reject,P=L(function(){var T=l(oe.resolve);c(ae,function($){T.call(oe,$).then(le.resolve,K)})});return P.error&&K(P.value),le.promise}})},s4An:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){return a=Object.setPrototypeOf||function(u,v){return u.__proto__=v,u},a(n,r)}},s7vb:function(x,g,e){"use strict";e.d(g,"b",function(){return u}),e.d(g,"c",function(){return m}),e.d(g,"a",function(){return s});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(l){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls.json",{method:"get",params:f}));case 1:case"end":return h.stop()}},l)})),v.apply(this,arguments)}function m(l){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls/".concat(f.id,".json"),{method:"get",params:f}));case 1:case"end":return h.stop()}},l)})),i.apply(this,arguments)}function s(l){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function l(f){return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",Object(t.a)("/api/restfuls/".concat(f.id,".json"),{method:"delete",params:f}));case 1:case"end":return h.stop()}},l)})),d.apply(this,arguments)}},s8TD:function(x,g,e){"use strict";e.d(g,"a",function(){return l});var a=e("Pv/L"),n=e("14J3"),r=e("BMrR"),t=e("jCWc"),u=e("kPKH"),v=e("2qtc"),m=e("kLXV"),i=e("q1tI"),s=e.n(i),d=e("dfu6"),l=function(o){return new Promise(function(h,c){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return c("WebRTC not supported by browser");var b=new RTCPeerConnection,E=[];b.createDataChannel(""),b.createOffer().then(function(O){return b.setLocalDescription(O)}).catch(function(O){return c(O)}),b.onicecandidate=function(O){console.log("event:",O);var C=[];if(!O||!O.candidate){if(console.log("ips",E),E.length==0||!Object(d.a)(E[0])){var M=m.a.info({title:s.a.createElement(r.a,null,s.a.createElement(u.a,{flex:"1"},"\u63D0\u793A"),s.a.createElement(u.a,null,s.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return M.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:s.a.createElement(r.a,null,s.a.createElement(u.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(o.ip_limit==="inner"||o.ip_bind)&&s.a.createElement(s.a.Fragment,null,s.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),s.a.createElement("br",null),s.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return c("WebRTC disabled or restricted by browser")}var w=E.filter(function(Q){return Object(d.a)(Q)});return!w||!w.length?c("IP\u83B7\u53D6\u5931\u8D25"):h(w.join(""))}var A=O.candidate.candidate.split(" "),L=Object(a.a)(A),z=L[0],G=L[1],D=L[2],N=L[3],Oe=L[4],ue=L[5],re=L[7],ee=L.slice(8),J=["rtp","rtpc"];if(console.log("event:",O),E.some(function(Q){return Q==Oe})||E.push(Oe),console.log(" candidate: "+z.split(":")[1]),console.log(" component: "+J[G-1]),console.log(" protocol: "+D),console.log(" priority: "+N),console.log(" ip: "+Oe),console.log(" port: "+ue),console.log(" type: "+re),ee.length){console.log("attributes: ");for(var F=0;F "+ee[F]+": "+ee[F+1])}}})}},sFpY:function(x,g,e){"use strict";function a(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(l){return typeof l}:a=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},a(s)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var n=t(e("q1tI"));function r(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return r=function(){return s},s}function t(s){if(s&&s.__esModule)return s;if(s===null||a(s)!=="object"&&typeof s!="function")return{default:s};var d=r();if(d&&d.has(s))return d.get(s);var l={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in s)if(Object.prototype.hasOwnProperty.call(s,o)){var h=f?Object.getOwnPropertyDescriptor(s,o):null;h&&(h.get||h.set)?Object.defineProperty(l,o,h):l[o]=s[o]}return l.default=s,d&&d.set(s,l),l}function u(s,d){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);d&&(f=f.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),l.push.apply(l,f)}return l}function v(s){for(var d=1;d0?(h=o/f,s+=h*h):s+=o;return f===Infinity?Infinity:f*t(s)}})},sgqd:function(x,g,e){var a=e("MMxC"),n=e("f1E4"),r=e("g8rt").f;a({target:"Reflect",stat:!0},{deleteProperty:function(u,v){var m=r(n(u),v);return m&&!m.configurable?!1:delete u[v]}})},ssJt:function(x,g,e){"use strict";var a=e("29mP"),n=e("YfKC"),r=e("2kyd"),t=e("tny8"),u=r("species");x.exports=function(v){var m=a(v),i=n.f;t&&m&&!m[u]&&i(m,u,{configurable:!0,get:function(){return this}})}},sxOR:function(x,g,e){"use strict";var a=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};x.exports={default:r.RFC3986,formatters:{RFC1738:function(t){return a.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},tB8F:function(x,g,e){"use strict";e.r(g);var a={};e.r(a),e.d(a,"dva",function(){return Qo});var n={};e.r(n),e.d(n,"rootContainer",function(){return xi});var r={};e.r(r),e.d(r,"rootContainer",function(){return Po});var t={};e.r(t),e.d(t,"rootContainer",function(){return At});var u=e("Xn8V"),v=e("6spV"),m=e("wpse"),i=e("KUpu"),s=e("8OGu"),d=e("LtxK"),l=e("n7Qr"),f=e("VQRL"),o=e("SGZ1"),h=e("nEGZ"),c=e("IC/V"),b=e("H8Ov"),E=e("aHGi"),O=e("M5u2"),C=e("0O5u"),M=e("Xf/b"),w=e("QpGB"),A=e("NYJX"),L=e("CWID"),z=e("ehAy"),G=e("mLN8"),D=e("YJpY"),N=e("dLjG"),Oe=e("fF/C"),ue=e("FbcW"),re=e("oNMB"),ee=e("+l9e"),J=e("yxVd"),F=e("vnQr"),Q=e("5Blz"),q=e("hilM"),He=e("v/6r"),Ze=e("fDrP"),ft=e("1vuE"),$e=e("Q3OH"),Ue=e("IyrG"),X=e("4rKd"),me=e("X5kU"),ie=e("maeH"),W=e("4Mzw"),de=e("Pp3M"),Ye=e("v0/P"),fe=e("CkqQ"),rt=e("5QGz"),Te=e("66pj"),Ve=e("JDCn"),tt=e("ls3p"),ht=e("sPVm"),ge=e("AGcU"),ye=e("sdAH"),je=e("CSFr"),we=e("GYRj"),ce=e("Bnwu"),Y=e("kP48"),V=e("NEdc"),U=e("JnaH"),B=e("MRpI"),Ae=e("EgRx"),S=e("/8Wl"),k=e("mMun"),ae=e("oLb5"),oe=e("rS2G"),le=e("bDgo"),K=e("eCOq"),P=e("uVHs"),T=e("ReSd"),$=e("pkYH"),se=e("izsi"),ke=e("lSoN"),ve=e("xtlo"),Be=e("p1ln"),it=e("ZahQ"),We=e("nZC5"),Et=e("HjuX"),Tt=e("pZem"),Ht=e("A9H8"),It=e("DMUC"),tn=e("B/G0"),qt=e("DVom"),gn=e("v3oe"),an=e("9zP7"),Tn=e("T/5g"),on=e("rE4C"),En=e("Sb5z"),yn=e("Pq08"),vn=e("Dyhc"),Rn=e("WQuA"),Pn=e("y4z8"),St=e("jhyg"),bt=e("Qqe/"),Pt=e("J428"),Ft=e("s1ay"),De=e("Rw1i"),Ct=e("quHW"),be=e("YjZU"),Fe=e("uln6"),Ne=e("sgqd"),dt=e("zsCH"),Pe=e("WIyh"),Ce=e("cnT9"),ct=e("D1Ff"),qe=e("WlFw"),Me=e("QxII"),Z=e("NHo6"),Xe=e("O9az"),gt=e("b8+j"),Mt=e("yIAO"),xt=e("nlPz"),Gt=e("2KAr"),ln=e("3dhw"),nn=e("zTPR"),Ln=e("m71J"),bn=e("rpUR"),Ke=e("EnLX"),_e=e("9/ry"),Ut=e("KvPC"),_=e("z9fm"),Mn=e("43iI"),Wn=e("mcGr"),kn=e("8DXf"),Fn=e("OmS+"),qn=e("rUU2"),Hn=e("6cL7"),ar=e("ZDb2"),dr=e("EOz7"),br=e("JI6M"),jr=e("beyn"),Hr=e("A+b4"),_n=e("Yanh"),Fr=e("Rbmm"),Ge=e("M1bg"),ne=e("9Y4n"),te=e("yZgL"),Ie=e("hwEt"),ze=e("xxWa"),mt=e("R3M+"),Ot=e("bkVK"),Rt=e("aKgm"),he=e("PDVC"),Re=e("P84e"),I=e("AQ/w"),ut=e("3Us1"),yt=e("eP3D"),wt=e("Mn2j"),Lt=e("BtTS"),Nt=e("yiTY"),Vt=e("Uc1W"),pn=e("y36+"),kt=e("gweS"),Xt=e("URK0"),Jt=e("gVIt"),xn=e("lV6h"),Cn=e("waHm"),or=e("RVXi"),er=e("Lj+q"),sr=e("IVhM"),ir=e("WU/Z"),gr=e("1jPx"),Vr=e("8Lo7"),$r=e("Iw+M"),na=e("FIIH"),Zr=e("p/G/"),_r=e("oat3"),Dr=e("BLTA"),Br=e("I5+W"),Pr=e("PaaY"),Gr=e("JO4c"),qr=e("eDW+"),ra=e("rtIu"),ca=e("jGFG"),Ir=e("NId1"),Ar=e("IUJg"),aa=e("F1NP"),oa=e("ti1D"),ea=e("NQz/"),Qt=e("UHn5"),mn=e("/vMi"),fn=e("nkhd"),Un=e("+u1y"),Dn=e("9BQv"),An=e("Tz1E"),jn=e("U9fH"),nt=e("+4le"),pt=e("jIZW"),Yt=e("oYEA"),Se=e("7yTQ"),vr=e("jHRr"),Kr=e("Rka6"),sa=e("8Ubs"),lr=e("FK48"),ja=e("Auwt"),$o=e("KAxK"),mo=e("/0sN"),ho=e("VvX1"),Ta=e("2aV/"),Bo=e("aKtI"),Ga=e("VUky"),is=e("9bAj"),za=e("xF6R"),Wo=e("Dbv2"),xa=e("KHCi"),ls=e("i/DM"),ro=e("hYqy"),ko=e("JXee"),go=e("+Hw1"),vo=e("FBts"),Ka=e("3UWB"),ia=e("S5nV"),Aa=e("xD7I"),ot=e("aNdP"),at=e("UIoa"),_t=e("Osgv"),pe=e("FKIO"),ao=e("Sf9Y"),la=e("VuYY"),yo=e("ue5M"),bo=e("80Z6"),Ho=e("qkSU"),Xr=e("xaQh"),Eo=e("GPZX"),us=e("eCow"),Fs=e("/R3g"),cs=e("0pSW"),ds=e("85tw"),mi=e("UvYY"),oo=e("DVoG"),$s=e("aLaE"),ps=e("fQri"),Ra=e("RDHo"),Vo=e("9Rzw"),jo=e("iMhB"),xo=e("/mKc"),Oo=e("u6Ie"),wa=e("9znl"),Go=e("+GPJ"),La=e("haHa"),fs=e("RhWa"),et=e("PUJJ"),Qn=e("YceZ"),zo=e("jksQ"),da=e("FuvP"),ms=e("Uq4z"),Zt=e("+2a4"),Da=e("Gw+j"),Bs=e("CO2k"),Ko=e("rVgK"),hi=e("ecuC"),pa=e("HQPm"),xr=e("IbaC"),Oa=e("s00F"),Ws=e("V0Bj"),so=e("hwEL"),zr=e("d/5L"),ks=e("oJGl"),Co=e("6FCX"),hn=e("OAmA"),Hs=e("p6E5"),hs=e("Xxk+"),gs=e("L5O0"),Xa=e("bcvT"),io=e("CRpX"),vs=e("aRU8"),Xo=e("p5yU"),gi=e("dnZx"),ys=e("NMu4"),bs=e("5JgN"),Es=e("VWci"),Vs=e("FoZm"),fa=e("bCY9"),vi=e("miYZ"),Gs=e("tsqr"),js=e("wd/R"),Qa=e.n(js),xs=e("/EoS"),yi=e("4MGa"),bi=e("22qN"),Ya=e("YdpX"),Ei=e("T5T7"),So=e("58Ye"),ji=e("OIXA");Qa.a.locale("ZH-cn");var Qo={config:{onError:function(xe){Gs.b.error(xe.message,3)}}},Ia=e("L874"),Mr=e("q1tI"),mr=e.n(Mr),zn=e("I5X1");if(typeof zn.a!="function")throw new Error("[plugin-initial-state]: useModel is not a function, @umijs/plugin-model is required.");var Yo=function(Wt){var xe=Wt.children,en=Object(Mr.useRef)(!1),cn=Object(zn.a)("@@initialState")||{},Sn=cn.loading,In=Sn===void 0?!1:Sn;return Object(Mr.useEffect)(function(){In||(en.current=!0)},[In]),In&&!en.current?null:xe};function xi(Wt){return mr.a.createElement(Yo,null,Wt)}var Ua=e("ZW6p");function Po(Wt){return mr.a.createElement(Ua.b,null,Wt)}var Na=e("tJVT"),Er=function(){return{loading:!1,refresh:function(){}}},pr=e("7xWI"),ma=e.n(pr),Rr=e("sFpY"),yr=e.n(Rr),Fa=e("FMtG"),$a={"@@initialState":Er},ur=new ma.a,Ee=yr.a,lt=function(Wt){var xe=Wt.children;return mr.a.createElement(Fa.UmiContext.Provider,{value:ur},Object.entries($a).map(function(en){return mr.a.createElement(Ee,{key:en[0],namespace:en[0],hook:en[1],onUpdate:function(Sn){var In=en,Nn=Object(Na.a)(In,1),tr=Nn[0];ur.data[tr]=Sn,ur.update(tr)}})}),xe)};function At(Wt){return mr.a.createElement(lt,null,Wt)}fa.a.register({apply:a,path:"/root/workspace/ppte5yg23_local_v8/src/app.tsx"}),fa.a.register({apply:Ia,path:"/root/workspace/ppte5yg23_local_v8/src/.umi-production/plugin-dva/runtime.tsx"}),fa.a.register({apply:n,path:"../plugin-initial-state/runtime"}),fa.a.register({apply:r,path:"/root/workspace/ppte5yg23_local_v8/src/.umi-production/plugin-locale/runtime.tsx"}),fa.a.register({apply:t,path:"../plugin-model/runtime"});var zt=1,un=e("FfOG"),Le=e("LtsZ"),Yn=e("Ty5D"),Gn=e("i8i4"),Ur=e("wx14");function Kn(Wt,xe,en){return en===void 0&&(en=[]),Wt.some(function(cn){var Sn=cn.path?Object(Yn.f)(xe,cn):en.length?en[en.length-1].match:Yn.c.computeRootMatch(xe);return Sn&&(en.push({route:cn,match:Sn}),cn.routes&&Kn(cn.routes,xe,en)),Sn}),en}function hr(Wt,xe,en){return xe===void 0&&(xe={}),en===void 0&&(en={}),Wt?mr.a.createElement(Yn.d,en,Wt.map(function(cn,Sn){return mr.a.createElement(Yn.b,{key:cn.key||Sn,path:cn.path,exact:cn.exact,strict:cn.strict,render:function(Nn){return cn.render?cn.render(Object(Ur.a)({},Nn,{},xe,{route:cn})):mr.a.createElement(cn.component,Object(Ur.a)({},Nn,xe,{route:cn}))}})})):null}function Xn(Wt,xe){var en=Object.keys(Wt);if(Object.getOwnPropertySymbols){var cn=Object.getOwnPropertySymbols(Wt);xe&&(cn=cn.filter(function(Sn){return Object.getOwnPropertyDescriptor(Wt,Sn).enumerable})),en.push.apply(en,cn)}return en}function Vn(Wt){for(var xe=1;xe=0)continue;en[Sn]=Wt[Sn]}return en}function Os(Wt,xe){if(Wt==null)return{};var en=Oi(Wt,xe),cn,Sn;if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(Wt);for(Sn=0;Sn=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Wt,cn))continue;en[cn]=Wt[cn]}}return en}function nl(Wt,xe){return Ba(Wt)||Cs(Wt,xe)||Ss(Wt,xe)||ha()}function Ba(Wt){if(Array.isArray(Wt))return Wt}function Cs(Wt,xe){var en=Wt==null?null:typeof Symbol!="undefined"&&Wt[Symbol.iterator]||Wt["@@iterator"];if(en==null)return;var cn=[],Sn=!0,In=!1,Nn,tr;try{for(en=en.call(Wt);!(Sn=(Nn=en.next()).done)&&!(cn.push(Nn.value),xe&&cn.length===xe);Sn=!0);}catch(Zn){In=!0,tr=Zn}finally{try{!Sn&&en.return!=null&&en.return()}finally{if(In)throw tr}}return cn}function Ss(Wt,xe){if(!Wt)return;if(typeof Wt=="string")return zs(Wt,xe);var en=Object.prototype.toString.call(Wt).slice(8,-1);if(en==="Object"&&Wt.constructor&&(en=Wt.constructor.name),en==="Map"||en==="Set")return Array.from(Wt);if(en==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(en))return zs(Wt,xe)}function zs(Wt,xe){(xe==null||xe>Wt.length)&&(xe=Wt.length);for(var en=0,cn=new Array(xe);en=Wt.length?{done:!0}:{done:!1,value:Wt[cn++]}},e:function(Zn){throw Zn},f:Sn}}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 In=!0,Nn=!1,tr;return{s:function(){en=en.call(Wt)},n:function(){var Zn=en.next();return In=Zn.done,Zn},e:function(Zn){Nn=!0,tr=Zn},f:function(){try{!In&&en.return!=null&&en.return()}finally{if(Nn)throw tr}}}}function Ci(Wt){return mr.a.createElement(Yn.e.Consumer,null,function(xe){var en=Wt.location||xe.location,cn=Wt.computedMatch,Sn=Vn(Vn({},xe),{},{location:en,match:cn}),In=Wt.render;return mr.a.createElement(Yn.e.Provider,{value:Sn},Sn.match?In(Vn(Vn({},Wt.layoutProps),Sn)):null)})}var Ao=["children"];function Si(Wt){return mr.a.createElement(Yn.e.Consumer,null,function(xe){var en=Wt.children,cn=Os(Wt,Ao),Sn=Wt.location||xe.location,In,Nn=null;return Mr.Children.forEach(en,function(tr){if(Nn===null&&Object(Mr.isValidElement)(tr)){In=tr;var Zn=tr.props.path||tr.props.from;Nn=Zn?Object(Yn.f)(Sn.pathname,Vn(Vn({},tr.props),{},{path:Zn})):xe.match}}),Nn?Object(Mr.cloneElement)(In,{location:Sn,computedMatch:Nn,layoutProps:cn}):null})}var Pi=["component"];function Ca(Wt,xe){var en=Wt.component,cn=Os(Wt,Pi),Sn=Wt.component;function In(Nn){var tr=Object(Mr.useState)(function(){return window.g_initialProps}),Zn=nl(tr,2),Nr=Zn[0],Sa=Zn[1];return Object(Mr.useEffect)(function(){var Qs=function(){var fr=Qr(regeneratorRuntime.mark(function Ys(){var wo,Pa,Ms,Js,Zs;return regeneratorRuntime.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:if(Pa=Sn,!Sn.preload){Yr.next=6;break}return Yr.next=4,Sn.preload();case 4:Pa=Yr.sent,Pa=Pa.default||Pa;case 6:if(Ms=Vn(Vn({isServer:!1,match:Nn==null?void 0:Nn.match,history:Nn==null?void 0:Nn.history,route:Wt},xe.getInitialPropsCtx||{}),cn),!((wo=Pa)===null||wo===void 0?void 0:wo.getInitialProps)){Yr.next=15;break}return Yr.next=10,xe.plugin.applyPlugins({key:"ssr.modifyGetInitialPropsCtx",type:Le.a.modify,initialValue:Ms,async:!0});case 10:return Js=Yr.sent,Yr.next=13,Pa.getInitialProps(Js||Ms);case 13:Zs=Yr.sent,Sa(Zs);case 15:case"end":return Yr.stop()}},Ys)}));return function(){return fr.apply(this,arguments)}}();window.g_initialProps||Qs()},[window.location.pathname,window.location.search]),mr.a.createElement(Sn,To({},Nn,Nr))}return In.wrapInitialPropsLoaded=!0,In.displayName="ComponentWithInitialPropsFetch",In}function Mi(Wt){var xe=Wt.route,en=Wt.opts,cn=Wt.props,Sn=Jo(Vn(Vn({},en),{},{routes:xe.routes||[],rootRoutes:en.rootRoutes}),{location:cn.location}),In=xe.component,Nn=xe.wrappers;if(In){var tr=en.isServer?{}:window.g_initialProps,Zn=Vn(Vn(Vn(Vn({},cn),en.extraProps),en.pageInitialProps||tr),{},{route:xe,routes:en.rootRoutes}),Nr=mr.a.createElement(In,Zn,Sn);if(Nn)for(var Sa=Nn.length-1;Sa>=0;)Nr=Object(Mr.createElement)(Nn[Sa],Zn,Nr),Sa-=1;return Nr}else return Sn}function rl(Wt){var xe=Wt.route,en=Wt.index,cn=Wt.opts,Sn={key:xe.key||en,exact:xe.exact,strict:xe.strict,sensitive:xe.sensitive,path:xe.path};if(xe.redirect)return mr.a.createElement(Yn.a,To({},Sn,{from:xe.path,to:xe.redirect}));var In,Nn,tr;return cn.ssrProps&&!cn.isServer&&!((In=xe.component)===null||In===void 0?void 0:In.wrapInitialPropsLoaded)&&(((Nn=xe.component)===null||Nn===void 0?void 0:Nn.getInitialProps)||((tr=xe.component)===null||tr===void 0?void 0:tr.preload))&&(xe.component=Ca(xe,cn)),mr.a.createElement(Ci,To({},Sn,{render:function(Nr){return Mi({route:xe,opts:cn,props:Nr})}}))}function Jo(Wt){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Wt.routes?mr.a.createElement(Si,xe,Wt.routes.map(function(en,cn){return rl({route:en,index:cn,opts:Vn(Vn({},Wt),{},{rootRoutes:Wt.rootRoutes||Wt.routes})})})):null}var ga=["history"];function Xs(Wt){var xe=Wt.history,en=Os(Wt,ga);return Object(Mr.useEffect)(function(){window.g_useSSR&&(window.g_initialProps=null);function cn(Sn,In){var Nn=Kn(Wt.routes,Sn.pathname);typeof document!="undefined"&&en.defaultTitle!==void 0&&(document.title=Nn.length&&Nn[Nn.length-1].route.title||en.defaultTitle||""),Wt.plugin.applyPlugins({key:"onRouteChange",type:Le.a.event,args:{routes:Wt.routes,matchedRoutes:Nn,location:Sn,action:In}})}return cn(xe.location,"POP"),xe.listen(cn)},[xe]),mr.a.createElement(Yn.c,{history:xe},Jo(en))}function Zo(Wt){return Ja.apply(this,arguments)}function Ja(){return Ja=Qr(regeneratorRuntime.mark(function Wt(xe){var en,cn,Sn,In,Nn,tr,Zn,Nr,Sa=arguments;return regeneratorRuntime.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:en=Sa.length>1&&Sa[1]!==void 0?Sa[1]:window.location.pathname,cn=Kn(xe,en),Sn=Ks(cn),fr.prev=3,Sn.s();case 5:if((In=Sn.n()).done){fr.next=19;break}if(tr=In.value,Zn=tr.route,!(typeof Zn.component!="string"&&((Nn=Zn.component)===null||Nn===void 0?void 0:Nn.preload))){fr.next=13;break}return fr.next=11,Zn.component.preload();case 11:Nr=fr.sent,Zn.component=Nr.default||Nr;case 13:if(!Zn.routes){fr.next=17;break}return fr.next=16,Zo(Zn.routes,en);case 16:Zn.routes=fr.sent;case 17:fr.next=5;break;case 19:fr.next=24;break;case 21:fr.prev=21,fr.t0=fr.catch(3),Sn.e(fr.t0);case 24:return fr.prev=24,Sn.f(),fr.finish(24);case 27:return fr.abrupt("return",xe);case 28:case"end":return fr.stop()}},Wt,null,[[3,21,24,27]])})),Ja.apply(this,arguments)}function Ps(Wt){var xe=Wt.plugin.applyPlugins({type:Le.a.modify,key:"rootContainer",initialValue:mr.a.createElement(Xs,{history:Wt.history,routes:Wt.routes,plugin:Wt.plugin,ssrProps:Wt.ssrProps,defaultTitle:Wt.defaultTitle}),args:{history:Wt.history,routes:Wt.routes,plugin:Wt.plugin}});if(Wt.rootElement){var en=typeof Wt.rootElement=="string"?document.getElementById(Wt.rootElement):Wt.rootElement,cn=Wt.callback||function(){};window.g_useSSR?Wt.dynamicImport?Zo(Wt.routes).then(function(){Object(Gn.hydrate)(xe,en,cn)}):Object(Gn.hydrate)(xe,en,cn):Object(Gn.render)(xe,en,cn)}else return xe}var Je=e("ltSN");function Ti(){var Wt=[{path:"/",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(14),e.e(13),e.e(25)]).then(e.bind(null,"+ego"))},loading:Je.a}),routes:[{path:"/paperlibrary",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/paperlibrary",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(201)]).then(e.bind(null,"Ynr3"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(21),e.e(193)]).then(e.bind(null,"VYcG"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/add/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(21),e.e(193)]).then(e.bind(null,"VYcG"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/edit/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(194)]).then(e.bind(null,"a99f"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/see/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(200)]).then(e.bind(null,"VN4U"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/edit_select/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0},{path:"/paperlibrary/exchangequestion",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(197)]).then(e.bind(null,"KMxT"))},loading:Je.a}),exact:!0}]},{path:"/paths",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/paths",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(10),e.e(205)]).then(e.bind(null,"fEdH"))},loading:Je.a}),exact:!0},{path:"/paths/higherVocationalEducation",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(204)]).then(e.bind(null,"aPPP"))},loading:Je.a}),exact:!0},{path:"/paths/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(206)]).then(e.bind(null,"X8EC"))},loading:Je.a}),exact:!0},{path:"/paths/guidance",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(165)]).then(e.bind(null,"ObO0"))},loading:Je.a}),exact:!0},{path:"/paths/:pathId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(203)]).then(e.bind(null,"AZ8Y"))},loading:Je.a}),exact:!0},{path:"/paths/:pathId/statistics",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(202)]).then(e.bind(null,"NLfx"))},loading:Je.a}),exact:!0},{path:"/paths/:pathId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(206)]).then(e.bind(null,"X8EC"))},loading:Je.a}),exact:!0}]},{path:"/classrooms",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/classrooms",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(10),e.e(39)]).then(e.bind(null,"OLqU"))},loading:Je.a}),exact:!0},{path:"/classrooms/examList",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(38)]).then(e.bind(null,"KBoB"))},loading:Je.a}),exact:!0},{path:"/classrooms/classicCases",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(37)]).then(e.bind(null,"VHPi"))},loading:Je.a}),exact:!0},{path:"/classrooms/index",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(10),e.e(39)]).then(e.bind(null,"OLqU"))},loading:Je.a}),exact:!0},{path:"/classrooms/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(132)]).then(e.bind(null,"PDLG"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(132)]).then(e.bind(null,"PDLG"))},loading:Je.a}),exact:!0},{path:"/classrooms/news/:subjectid/newgold/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(133)]).then(e.bind(null,"GpDF"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/newgolds/settings",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(133)]).then(e.bind(null,"GpDF"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(110)]).then(e.bind(null,"OipY"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(49)]).then(e.bind(null,"8Tee"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(105)]).then(e.bind(null,"uKw0"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(111)]).then(e.bind(null,"TS7/"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(108)]).then(e.bind(null,"5gs/"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(109)]).then(e.bind(null,"Q16u"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(84)]).then(e.bind(null,"gbAR"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(50)]).then(e.bind(null,"J44v"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(53)]).then(e.bind(null,"isY5"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(87)]).then(e.bind(null,"Sdqs"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(88)]).then(e.bind(null,"Yoi/"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(85)]).then(e.bind(null,"5K9Z"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(65)]).then(e.bind(null,"1h7y"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(66)]).then(e.bind(null,"JNOM"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(63)]).then(e.bind(null,"MvOs"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(70)]).then(e.bind(null,"cQPA"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(68)]).then(e.bind(null,"E7pt"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(198)]).then(e.bind(null,"zytX"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(199)]).then(e.bind(null,"sDPU"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(61)]).then(e.bind(null,"0yVv"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(71)]).then(e.bind(null,"E2MH"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(72)]).then(e.bind(null,"zrbX"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/export/:userId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(69)]).then(e.bind(null,"mrIW"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(69)]).then(e.bind(null,"mrIW"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(67)]).then(e.bind(null,"Eis4"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(67)]).then(e.bind(null,"Eis4"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(64)]).then(e.bind(null,"CVpU"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(64)]).then(e.bind(null,"CVpU"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(80)]).then(e.bind(null,"b7x8"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(79)]).then(e.bind(null,"3Rgl"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(81)]).then(e.bind(null,"vKdk"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(75)]).then(e.bind(null,"/P1P"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(77)]).then(e.bind(null,"c5ks"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(76)]).then(e.bind(null,"6UeF"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(48)]).then(e.bind(null,"gnOq"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(52)]).then(e.bind(null,"to1l"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(54)]).then(e.bind(null,"qduV"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(51)]).then(e.bind(null,"yBfY"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(83)]).then(e.bind(null,"tt94"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(86)]).then(e.bind(null,"99tC"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(93)]).then(e.bind(null,"pFvy"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(96)]).then(e.bind(null,"0eFd"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(95)]).then(e.bind(null,"JHUA"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(94)]).then(e.bind(null,"5b1O"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/board/:categoryId/Add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(44)]).then(e.bind(null,"KI3f"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(46)]).then(e.bind(null,"5aFj"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(45)]).then(e.bind(null,"0A3i"))},loading:Je.a}),exact:!0},{path:"/classrooms/:courseId/template/:templateId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(126)]).then(e.bind(null,"saVb"))},loading:Je.a}),exact:!0},{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(125)]).then(e.bind(null,"rrYs"))},loading:Je.a}),exact:!0},{path:"/classrooms/guidance",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(165)]).then(e.bind(null,"ObO0"))},loading:Je.a}),exact:!0},{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(123)]).then(e.bind(null,"65Jc"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(6),e.e(16),e.e(62)]).then(e.bind(null,"gctT"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/Studentdetail/:login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(114)]).then(e.bind(null,"TljI"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(115)]).then(e.bind(null,"24z8"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/engineering/datail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(59)]).then(e.bind(null,"l03X"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/ranking",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(107)]).then(e.bind(null,"6H5o"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(106)]).then(e.bind(null,"OH33"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(100)]).then(e.bind(null,"mauG"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(99)]).then(e.bind(null,"FJUb"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(101)]).then(e.bind(null,"kUb9"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(102)]).then(e.bind(null,"dXIc"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(104)]).then(e.bind(null,"zWVI"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(103)]).then(e.bind(null,"YCFy"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(23)]).then(e.bind(null,"NRst"))},loading:Je.a}),routes:[{path:"/classrooms/:coursesId/shixun_homework/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(112)]).then(e.bind(null,"cgge"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/shixun_homework",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(112)]).then(e.bind(null,"cgge"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_topics/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(82)]).then(e.bind(null,"xBOz"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(78)]).then(e.bind(null,"qAxr"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(78)]).then(e.bind(null,"qAxr"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(73)]).then(e.bind(null,"NO2p"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exercise",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(73)]).then(e.bind(null,"NO2p"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(97)]).then(e.bind(null,"A06Q"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/poll",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(97)]).then(e.bind(null,"A06Q"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(55)]).then(e.bind(null,"hIhZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/common_homework",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(55)]).then(e.bind(null,"hIhZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(89)]).then(e.bind(null,"2doZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/group_homework",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(89)]).then(e.bind(null,"2doZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/teachers",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(122)]).then(e.bind(null,"L/F1"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/students",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(121)]).then(e.bind(null,"KsYo"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(98)]).then(e.bind(null,"PF3X"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/program_homework/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(98)]).then(e.bind(null,"PF3X"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/engineering",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(60)]).then(e.bind(null,"Uv9F"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/attendance",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(43)]).then(e.bind(null,"VmvX"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/attendance/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(43)]).then(e.bind(null,"VmvX"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(42)]).then(e.bind(null,"kvwo"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/announcement",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(40)]).then(e.bind(null,"kHcA"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/announcement/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(40)]).then(e.bind(null,"kHcA"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/online_learning",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(91)]).then(e.bind(null,"ADTG"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/online_learning/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(91)]).then(e.bind(null,"ADTG"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/attachment/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(41)]).then(e.bind(null,"QGk1"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/attachment",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(41)]).then(e.bind(null,"QGk1"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(131)]).then(e.bind(null,"iVQj"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(131)]).then(e.bind(null,"iVQj"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video/:categoryId/statistics",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(129)]).then(e.bind(null,"5vIh"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video/:username/upload",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(11),e.e(130)]).then(e.bind(null,"1v2r"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(127)]).then(e.bind(null,"XeVE"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/live_video/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(90)]).then(e.bind(null,"dxBZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/live_video",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(90)]).then(e.bind(null,"dxBZ"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(128)]).then(e.bind(null,"QLuO"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/board/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(47)]).then(e.bind(null,"KRdP"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/board",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(47)]).then(e.bind(null,"KRdP"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/course_group",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(57)]).then(e.bind(null,"VQsq"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/course_group/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(57)]).then(e.bind(null,"VQsq"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/course_group/:categoryId/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(56)]).then(e.bind(null,"zr3n"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/not_course_group/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(58)]).then(e.bind(null,"sl2e"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/not_course_group",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(58)]).then(e.bind(null,"sl2e"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/statistics/",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(120)]).then(e.bind(null,"bTuv"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/statistics/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(120)]).then(e.bind(null,"bTuv"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/statistics_video/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(119)]).then(e.bind(null,"CQHe"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/statistics_quality/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(113)]).then(e.bind(null,"CfqN"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/student_statistics/:categoryId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(117)]).then(e.bind(null,"G1O7"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(116)]).then(e.bind(null,"w+VK"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(118)]).then(e.bind(null,"cfGd"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId/exportlist/:type",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(74)]).then(e.bind(null,"9Bz6"))},loading:Je.a}),exact:!0},{path:"/classrooms/:courseId/template",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(124)]).then(e.bind(null,"aQrL"))},loading:Je.a}),exact:!0},{path:"/classrooms/:coursesId",component:Object(Le.c)({loader:function(){return e.e(92).then(e.bind(null,"gb4D"))},loading:Je.a}),exact:!0}]}]},{path:"/competitions",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/competitions/index",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(139)]).then(e.bind(null,"QgcY"))},loading:Je.a}),exact:!0},{path:"/competitions/exports",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(9),e.e(18),e.e(138)]).then(e.bind(null,"tYMO"))},loading:Je.a}),exact:!0},{path:"/competitions",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(139)]).then(e.bind(null,"QgcY"))},loading:Je.a}),exact:!0},{path:"/competitions/index/:identifier",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(135)]).then(e.bind(null,"GRO8"))},loading:Je.a}),exact:!0},{path:"/competitions/index/:identifier/enroll",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(136)]).then(e.bind(null,"Hm3h"))},loading:Je.a}),exact:!0},{path:"/competitions/index/:identifier/UpdateTeanname/:Teannameid",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(17),e.e(140)]).then(e.bind(null,"jmm4"))},loading:Je.a}),exact:!0},{path:"/competitions/index/:identifier/teamDetail/:Teamid",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(137)]).then(e.bind(null,"mKwH"))},loading:Je.a}),exact:!0}]},{path:"/forums",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/forums",component:Object(Le.c)({loader:function(){return e.e(163).then(e.bind(null,"Ij5S"))},loading:Je.a}),exact:!0},{path:"/forums/categories/:memoType",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(162)]).then(e.bind(null,"IeBn"))},loading:Je.a}),exact:!0},{path:"/forums/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(164)]).then(e.bind(null,"CKgm"))},loading:Je.a}),exact:!0},{path:"/forums/:memoId/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(164)]).then(e.bind(null,"CKgm"))},loading:Je.a}),exact:!0},{path:"/forums/:memoId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(161)]).then(e.bind(null,"JkjM"))},loading:Je.a}),exact:!0}]},{path:"/problemset",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/problemset",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0},{path:"/problemset/newitem",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(208)]).then(e.bind(null,"0dNJ"))},loading:Je.a}),exact:!0},{path:"/problemset/:type/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(208)]).then(e.bind(null,"0dNJ"))},loading:Je.a}),exact:!0},{path:"/problemset/preview",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(210)]).then(e.bind(null,"DaK5"))},loading:Je.a}),exact:!0},{path:"/problemset/preview_new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(21),e.e(209)]).then(e.bind(null,"JA47"))},loading:Je.a}),exact:!0},{path:"/problemset/preview_select",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(211)]).then(e.bind(null,"JUtD"))},loading:Je.a}),exact:!0}]},{path:"/shixuns",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/shixuns",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(10),e.e(250)]).then(e.bind(null,"VgI9"))},loading:Je.a}),exact:!0},{path:"/shixuns/exports",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(18),e.e(249)]).then(e.bind(null,"kzkF"))},loading:Je.a}),exact:!0},{path:"/shixuns/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(251)]).then(e.bind(null,"dugo"))},loading:Je.a}),exact:!0},{path:"/shixuns/new/CreateImg",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(252)]).then(e.bind(null,"qK93"))},loading:Je.a}),exact:!0},{path:"/shixuns/new/:id/imagepreview",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(253)]).then(e.bind(null,"iJb0"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/Merge",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(233)]).then(e.bind(null,"U2tx"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(241)]).then(e.bind(null,"WO9J"))},loading:Je.a}),routes:[{path:"/shixuns/:id/edit/shixuns/:id/edit/warehouse",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(248)]).then(e.bind(null,"ch0t"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/newquestion",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(246)]).then(e.bind(null,"5v/u"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/editquestion",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(244)]).then(e.bind(null,"UeE2"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(244)]).then(e.bind(null,"UeE2"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(245)]).then(e.bind(null,"Ly88"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(245)]).then(e.bind(null,"Ly88"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/tab=2",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(243)]).then(e.bind(null,"xdT8"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/tab=3",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(242)]).then(e.bind(null,"389U"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/edit/:challengesId/tab=4",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(247)]).then(e.bind(null,"/hLF"))},loading:Je.a}),exact:!0}]},{path:"/shixuns/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(240)]).then(e.bind(null,"Nv+3"))},loading:Je.a}),routes:[{path:"/shixuns/:id/challenges",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(5),e.e(6),e.e(228)]).then(e.bind(null,"HTtE"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/newquestion",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(226)]).then(e.bind(null,"wxaI"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/editquestion",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(224)]).then(e.bind(null,"kvPc"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/editquestion/:questionId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(224)]).then(e.bind(null,"kvPc"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/new",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(225)]).then(e.bind(null,"dNgX"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/editcheckpoint",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(225)]).then(e.bind(null,"dNgX"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/tab=2",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(9),e.e(223)]).then(e.bind(null,"Yczt"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/tab=3",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(222)]).then(e.bind(null,"5EEG"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/challenges/:challengesId/tab=4",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(9),e.e(227)]).then(e.bind(null,"mWt4"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/repository",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(5),e.e(238)]).then(e.bind(null,"C8/M"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/secret_repository",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(5),e.e(238)]).then(e.bind(null,"C8/M"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/collaborators",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(229)]).then(e.bind(null,"FMhn"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/dataset",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(230)]).then(e.bind(null,"SYY+"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/shixun_discuss",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(231)]).then(e.bind(null,"cx3v"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/ranking_list",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(6),e.e(9),e.e(234)]).then(e.bind(null,"LiYo"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/settings",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(239)]).then(e.bind(null,"2WWx"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/repository/:repoId/commits",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(6),e.e(9),e.e(236)]).then(e.bind(null,"gCRP"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/secret_repository/:repoId/commits",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(6),e.e(9),e.e(236)]).then(e.bind(null,"gCRP"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/repository/upload_file",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(237)]).then(e.bind(null,"wXW8"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/secret_repository/upload_file",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(237)]).then(e.bind(null,"wXW8"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/repository/add_file",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(235)]).then(e.bind(null,"baNF"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/secret_repository/add_file",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(235)]).then(e.bind(null,"baNF"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(5),e.e(238)]).then(e.bind(null,"C8/M"))},loading:Je.a})},{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(5),e.e(238)]).then(e.bind(null,"C8/M"))},loading:Je.a})},{path:"/shixuns/:id/audit_situation",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(221)]).then(e.bind(null,"VllQ"))},loading:Je.a}),exact:!0},{path:"/shixuns/:id/fork_list",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(232)]).then(e.bind(null,"e2kQ"))},loading:Je.a}),exact:!0}]}]},{path:"/users",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/users/:username/videos/protocol",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(282)]).then(e.bind(null,"MvYd"))},loading:Je.a}),exact:!0},{path:"/users/:username/videos/success",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(283)]).then(e.bind(null,"p0R4"))},loading:Je.a}),exact:!0},{path:"/users/:username/topicbank/:topicstype",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(272)]).then(e.bind(null,"PQl6"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/normal/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(273)]).then(e.bind(null,"VdzU"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/group/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(273)]).then(e.bind(null,"VdzU"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/normal/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(277)]).then(e.bind(null,"R7cW"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/group/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(276)]).then(e.bind(null,"6xqJ"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(275)]).then(e.bind(null,"pr0Y"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(274)]).then(e.bind(null,"NcEG"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/poll/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(279)]).then(e.bind(null,"VSi8"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicId/:topictype/poll/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(278)]).then(e.bind(null,"/OCd"))},loading:Je.a}),exact:!0},{path:"/users/:username",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(286)]).then(e.bind(null,"bp/9"))},loading:Je.a}),routes:[{path:"/users/:username",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(259)]).then(e.bind(null,"NQ7k"))},loading:Je.a}),exact:!0},{path:"/users/:username/classrooms",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(259)]).then(e.bind(null,"NQ7k"))},loading:Je.a}),exact:!0},{path:"/users/:username/shixuns",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(270)]).then(e.bind(null,"0eau"))},loading:Je.a}),exact:!0},{path:"/users/:username/userPortrait",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(9),e.e(281)]).then(e.bind(null,"Yej6"))},loading:Je.a}),exact:!0},{path:"/users/:username/learningPath",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(262)]).then(e.bind(null,"NFd+"))},loading:Je.a}),exact:!0},{path:"/users/:username/teach-group",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(271)]).then(e.bind(null,"UK/q"))},loading:Je.a}),exact:!0},{path:"/users/:username/experiment-img",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(261)]).then(e.bind(null,"03Vo"))},loading:Je.a}),exact:!0},{path:"/users/:username/experiment-img/:experid/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(260)]).then(e.bind(null,"CF0a"))},loading:Je.a}),exact:!0},{path:"/users/:username/certificate",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(256)]).then(e.bind(null,"Oe6r"))},loading:Je.a}),exact:!0},{path:"/users/:username/otherResources",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(267)]).then(e.bind(null,"epD4"))},loading:Je.a}),exact:!0},{path:"/users/:username/classmanagement",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(258)]).then(e.bind(null,"K8gV"))},loading:Je.a}),exact:!0},{path:"/users/:username/classmanagement/:couserid",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(257)]).then(e.bind(null,"smot"))},loading:Je.a}),exact:!0},{path:"/users/:username/paths",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(268)]).then(e.bind(null,"2nTg"))},loading:Je.a}),exact:!0},{path:"/users/:username/projects",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(269)]).then(e.bind(null,"T+0Y"))},loading:Je.a}),exact:!0},{path:"/users/:username/videos",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(285)]).then(e.bind(null,"XxMO"))},loading:Je.a}),exact:!0},{path:"/users/:username/videos/upload",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(6),e.e(11),e.e(284)]).then(e.bind(null,"kryb"))},loading:Je.a}),exact:!0},{path:"/users/:username/topics/:topicstype",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(280)]).then(e.bind(null,"ZgjG"))},loading:Je.a}),exact:!0},{path:"/users/:username/vspaces",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(287)]).then(e.bind(null,"jjXQ"))},loading:Je.a}),exact:!0}]}]},{path:"/problems",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(14),e.e(13),e.e(25)]).then(e.bind(null,"+ego"))},loading:Je.a}),routes:[{path:"/problems/:id/edit",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(207)]).then(e.bind(null,"PHyj"))},loading:Je.a})},{path:"/problems/new",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(207)]).then(e.bind(null,"PHyj"))},loading:Je.a})},{path:"/problems/:id/oj/:save_identifier",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(215)]).then(e.bind(null,"W7jJ"))},loading:Je.a}),exact:!0},{path:"/problems/:id/record-detail/:submitId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(20),e.e(216)]).then(e.bind(null,"OPwS"))},loading:Je.a}),exact:!0},{path:"/problems/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(212)]).then(e.bind(null,"rWjI"))},loading:Je.a}),exact:!0},{path:"/problems/:id/ojedit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(212)]).then(e.bind(null,"rWjI"))},loading:Je.a}),exact:!0},{path:"/problems",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/problems",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(214)]).then(e.bind(null,"y3Jh"))},loading:Je.a}),exact:!0},{path:"/problems/batchAdd",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(213)]).then(e.bind(null,"pSk9"))},loading:Je.a}),exact:!0}]}]},{path:"/engineering",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/engineering",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(143)]).then(e.bind(null,"as6h"))},loading:Je.a}),routes:[{path:"/engineering/teacherList",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(153)]).then(e.bind(null,"dRIv"))},loading:Je.a}),exact:!0},{path:"/engineering/studentList",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(152)]).then(e.bind(null,"FAcQ"))},loading:Je.a}),exact:!0},{path:"/engineering/trainingProgram",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(155)]).then(e.bind(null,"mUbb"))},loading:Je.a}),exact:!0},{path:"/engineering/trainingProgram/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(156)]).then(e.bind(null,"BfvP"))},loading:Je.a}),exact:!0},{path:"/engineering/trainingProgram/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(157)]).then(e.bind(null,"AG+i"))},loading:Je.a}),exact:!0},{path:"/engineering/trainingObjectives",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(154)]).then(e.bind(null,"bnOO"))},loading:Je.a}),exact:!0},{path:"/engineering/graduationindex",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(151)]).then(e.bind(null,"g9Gb"))},loading:Je.a}),exact:!0},{path:"/engineering/graduatedMatrix",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(14),e.e(150)]).then(e.bind(null,"DAqD"))},loading:Je.a}),exact:!0},{path:"/engineering/courseList",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(146)]).then(e.bind(null,"mMz9"))},loading:Je.a}),exact:!0},{path:"/engineering/cursesetting",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(148)]).then(e.bind(null,"5hVI"))},loading:Je.a}),exact:!0},{path:"/engineering/courseMatrix",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(147)]).then(e.bind(null,"3ICd"))},loading:Je.a}),exact:!0},{path:"/engineering/navigation",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(158)]).then(e.bind(null,"zOaB"))},loading:Je.a}),exact:!0},{path:"/engineering/evaluate/course",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(145)]).then(e.bind(null,"b8A+"))},loading:Je.a}),exact:!0},{path:"/engineering/evaluate/course/:ec_year_id/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(144)]).then(e.bind(null,"3+U2"))},loading:Je.a}),exact:!0},{path:"/engineering/evaluate/norm",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(160)]).then(e.bind(null,"M7eO"))},loading:Je.a}),exact:!0},{path:"/engineering/evaluate/document",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(149)]).then(e.bind(null,"vFAl"))},loading:Je.a}),exact:!0},{path:"/engineering/evaluate/norm/:ec_year_id/:id",component:Object(Le.c)({loader:function(){return e.e(159).then(e.bind(null,"4rn5"))},loading:Je.a}),exact:!0},{path:"/engineering/*",redirect:"/404",exact:!0}]}]},{path:"/vspaces",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/vspaces",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(298)]).then(e.bind(null,"A0re"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/syllabuses/add",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(306)]).then(e.bind(null,"gHQ5"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/syllabuses/:id/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(306)]).then(e.bind(null,"gHQ5"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(15),e.e(27)]).then(e.bind(null,"GY4K"))},loading:Je.a}),routes:[{path:"/vspaces/:virtual_spacesId/syllabuses",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(308)]).then(e.bind(null,"Zxkz"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/syllabuses/:id/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(307)]).then(e.bind(null,"sUF3"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/courses",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(300)]).then(e.bind(null,"vJub"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/shixuns",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(305)]).then(e.bind(null,"khc3"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/videos",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(310)]).then(e.bind(null,"+Ee2"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/videos/:username/upload",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(11),e.e(309)]).then(e.bind(null,"/heT"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/members",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(303)]).then(e.bind(null,"1QoP"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/notices",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(304)]).then(e.bind(null,"s/Zd"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/managements",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(15),e.e(302)]).then(e.bind(null,"v6re"))},loading:Je.a}),exact:!0},{path:"/vspaces/:virtual_spacesId/graphs",component:Object(Le.c)({loader:function(){return e.e(301).then(e.bind(null,"XCmm"))},loading:Je.a}),exact:!0},{path:"/vspaces/*",component:Object(Le.c)({loader:function(){return e.e(299).then(e.bind(null,"1iAk"))},loading:Je.a}),exact:!0}]}]},{path:"/innovation",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/innovation/tasks/:taskId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(183)]).then(e.bind(null,"4pCv"))},loading:Je.a}),exact:!0},{path:"/innovation",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(174)]).then(e.bind(null,"qLCv"))},loading:Je.a}),routes:[{path:"/innovation/project",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(182)]).then(e.bind(null,"vYR1"))},loading:Je.a}),exact:!0},{path:"/innovation/dataset",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(180)]).then(e.bind(null,"aWJQ"))},loading:Je.a}),exact:!0},{path:"/innovation/mirror",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(181)]).then(e.bind(null,"cVrb"))},loading:Je.a}),exact:!0},{path:"/innovation/my-project",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(179)]).then(e.bind(null,"2b0W"))},loading:Je.a}),exact:!0},{path:"/innovation/my-dataset",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(177)]).then(e.bind(null,"KFWQ"))},loading:Je.a}),exact:!0},{path:"/innovation/my-mirror",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(178)]).then(e.bind(null,"AzlG"))},loading:Je.a}),exact:!0},{path:"/innovation/project/create",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(176)]).then(e.bind(null,"A8hF"))},loading:Je.a}),exact:!0},{path:"/innovation/project/edit/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(176)]).then(e.bind(null,"A8hF"))},loading:Je.a}),exact:!0},{path:"/innovation/project/detail/:taskId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(175)]).then(e.bind(null,"zXvr"))},loading:Je.a}),exact:!0}]}]},{path:"/educoder-demo",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(141)]).then(e.bind(null,"4K8j"))},loading:Je.a})},{path:"/otherlogin",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(12),e.e(289)]).then(e.bind(null,"6y+p"))},loading:Je.a})},{path:"/otherloginqq",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(290)]).then(e.bind(null,"/pIo"))},loading:Je.a})},{path:"/otherloginstart",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(293)]).then(e.bind(null,"o5Na"))},loading:Je.a})},{path:"/tasks/:taskId",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(297)]).then(e.bind(null,"yi/R"))},loading:Je.a})},{path:"/tasks/:identifier/jupyter/",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(5),e.e(7),e.e(296)]).then(e.bind(null,"sUu2"))},loading:Je.a})},{path:"/myproblems/:id/record-detail/:submitId",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(20),e.e(191)]).then(e.bind(null,"xTsT"))},loading:Je.a})},{path:"/myproblems/:id",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(192)]).then(e.bind(null,"QUZ3"))},loading:Je.a})},{path:"/login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(13),e.e(26)]).then(e.bind(null,"zCei"))},loading:Je.a}),routes:[{path:"/login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(288)]).then(e.bind(null,"8orJ"))},loading:Je.a}),exact:!0}]},{path:"/user",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(13),e.e(26)]).then(e.bind(null,"zCei"))},loading:Je.a}),routes:[{path:"/user/login",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(288)]).then(e.bind(null,"8orJ"))},loading:Je.a}),exact:!0},{path:"/user/register",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(12),e.e(291)]).then(e.bind(null,"7rcX"))},loading:Je.a}),exact:!0},{path:"/user/reset-password",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(12),e.e(292)]).then(e.bind(null,"LsG1"))},loading:Je.a}),exact:!0}]},{path:"/account",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/account/:username",component:Object(Le.c)({loader:function(){return Promise.all([e.e(17),e.e(29)]).then(e.bind(null,"m3a9"))},loading:Je.a}),routes:[{path:"/account/profile",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(33)]).then(e.bind(null,"4w5S"))},loading:Je.a}),exact:!0},{path:"/account/profile/edit",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(32)]).then(e.bind(null,"Z3SC"))},loading:Je.a}),exact:!0},{path:"/account/certification",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(6),e.e(31)]).then(e.bind(null,"doOU"))},loading:Je.a}),exact:!0},{path:"/account/secure",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(35)]).then(e.bind(null,"0NIp"))},loading:Je.a}),exact:!0},{path:"/account/binding",component:Object(Le.c)({loader:function(){return e.e(30).then(e.bind(null,"JMrj"))},loading:Je.a}),exact:!0},{path:"/account/Results",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(34)]).then(e.bind(null,"a90+"))},loading:Je.a}),exact:!0}]}]},{path:"/ch/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/ch/rest/edit/:categoryId/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(219)]).then(e.bind(null,"VwnK"))},loading:Je.a}),exact:!0},{path:"/ch/rest/",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(218)]).then(e.bind(null,"Etsf"))},loading:Je.a})},{path:"/ch/rest/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(218)]).then(e.bind(null,"Etsf"))},loading:Je.a}),exact:!0}]},{path:"/order",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/order",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(263)]).then(e.bind(null,"udqy"))},loading:Je.a}),exact:!0},{path:"/order/:courseId/information",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(264)]).then(e.bind(null,"kpVO"))},loading:Je.a}),exact:!0},{path:"/order/:courseId/pay",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(265)]).then(e.bind(null,"EiJb"))},loading:Je.a}),exact:!0},{path:"/order/:orderNum/result",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(266)]).then(e.bind(null,"Mcyw"))},loading:Je.a}),exact:!0}]},{path:"/colleges",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/colleges/:id/statistics",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(134)]).then(e.bind(null,"hk80"))},loading:Je.a}),exact:!0}]},{path:"/help",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/help/:id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(166)]).then(e.bind(null,"TNY5"))},loading:Je.a}),exact:!0}]},{path:"/messages",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/messages/:userId/user_tidings",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(186)]).then(e.bind(null,"YmwD"))},loading:Je.a}),exact:!0},{path:"/messages/:userId/private_messages",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(185)]).then(e.bind(null,"EjUQ"))},loading:Je.a}),exact:!0},{path:"/messages/:userId/message_detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(184)]).then(e.bind(null,"fB9n"))},loading:Je.a}),exact:!0}]},{path:"/video",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/video/:videoId",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(294)]).then(e.bind(null,"96GE"))},loading:Je.a}),exact:!0}]},{path:"/terminal",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(6),e.e(19),e.e(254)]).then(e.bind(null,"PYMJ"))},loading:Je.a}),exact:!0},{path:"/report/:taskId/:game_report_id",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(217)]).then(e.bind(null,"bUpz"))},loading:Je.a}),exact:!0},{path:"/detail",component:Object(Le.c)({loader:function(){return Promise.all([e.e(4),e.e(19),e.e(142)]).then(e.bind(null,"6xWC"))},loading:Je.a}),exact:!0},{path:"/",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(5),e.e(7),e.e(24)]).then(e.bind(null,"H8y1"))},loading:Je.a}),routes:[{path:"/",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(4),e.e(1),e.e(2),e.e(295)]).then(e.bind(null,"QeBL"))},loading:Je.a})},{path:"/api/*",component:Object(Le.c)({loader:function(){return e.e(36).then(e.bind(null,"y3wM"))},loading:Je.a}),exact:!0},{path:"/search",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(220)]).then(e.bind(null,"XQ9l"))},loading:Je.a})},{path:"/moop_cases",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(190)]).then(e.bind(null,"9Oz4"))},loading:Je.a})},{path:"/moop_cases/new",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(187)]).then(e.bind(null,"nojB"))},loading:Je.a})},{path:"/moop_cases/:caseId",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(5),e.e(7),e.e(188)]).then(e.bind(null,"ymAh"))},loading:Je.a})},{path:"/moop_cases/:caseId/edit",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(187)]).then(e.bind(null,"nojB"))},loading:Je.a})},{path:"/moop_cases/:caseId/publish-success",exact:!0,component:Object(Le.c)({loader:function(){return e.e(189).then(e.bind(null,"NbJ3"))},loading:Je.a})},{path:"/randompaper",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(195)]).then(e.bind(null,"Dvv+"))},loading:Je.a})},{path:"/randompaper/edit/:id",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(195)]).then(e.bind(null,"Dvv+"))},loading:Je.a})},{path:"/randompaper/detail/:id",exact:!0,component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(196)]).then(e.bind(null,"MpT9"))},loading:Je.a})},{path:"/403",component:Object(Le.c)({loader:function(){return e.e(167).then(e.bind(null,"BqfQ"))},loading:Je.a}),exact:!0},{path:"/500",component:Object(Le.c)({loader:function(){return e.e(169).then(e.bind(null,"IKT+"))},loading:Je.a}),exact:!0},{path:"/404",component:Object(Le.c)({loader:function(){return e.e(168).then(e.bind(null,"Qgpj"))},loading:Je.a}),exact:!0},{path:"/iwce",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(170)]).then(e.bind(null,"gkVt"))},loading:Je.a}),exact:!0},{path:"/Activities",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(3),e.e(171)]).then(e.bind(null,"KLXD"))},loading:Je.a}),exact:!0},{path:"/iwce/:itemname",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(170)]).then(e.bind(null,"gkVt"))},loading:Je.a}),exact:!0},{path:"/hpc-course",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(5),e.e(170)]).then(e.bind(null,"gkVt"))},loading:Je.a}),exact:!0},{path:"/user_agents",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(8),e.e(172)]).then(e.bind(null,"CRnD"))},loading:Je.a}),exact:!0},{path:"/three",component:Object(Le.c)({loader:function(){return Promise.all([e.e(0),e.e(1),e.e(2),e.e(3),e.e(255)]).then(e.bind(null,"T+//"))},loading:Je.a}),exact:!0},{path:"/introduction",component:Object(Le.c)({loader:function(){return e.e(173).then(e.bind(null,"YnX2"))},loading:Je.a}),exact:!0},{component:Object(Le.c)({loader:function(){return e.e(168).then(e.bind(null,"Qgpj"))},loading:Je.a}),exact:!0},{component:Object(Le.c)({loader:function(){return e.e(168).then(e.bind(null,"Qgpj"))},loading:Je.a})}]}]}];return fa.a.applyPlugins({key:"patchRoutes",type:Le.a.event,args:{routes:Wt}}),Wt}var Ai=e("hh8c");Object(Ua.c)();var Ri=function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return fa.a.applyPlugins({key:"render",type:Le.a.compose,initialValue:function(){var cn=fa.a.applyPlugins({key:"modifyClientRenderOpts",type:Le.a.modify,initialValue:{routes:xe.routes||Ti(),plugin:fa.a,history:Object(un.a)(xe.hot),isServer:Object({NODE_ENV:"production"}).__IS_SERVER,dynamicImport:!0,rootElement:"root",defaultTitle:" "}});return Ps(cn)},args:xe})},Ro=Ri(),Wa=g.default=Ro();window.g_umi={version:"3.5.23"}},tEiQ:function(x,g,e){"use strict";(function(a){var n=e("q1tI"),r=e.n(n),t=e("dI71"),u=e("17x9"),v=e.n(u),m=1073741823,i=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof a!="undefined"?a:{};function s(){var c="__global_unique_id__";return i[c]=(i[c]||0)+1}function d(c,b){return c===b?c!==0||1/c===1/b:c!==c&&b!==b}function l(c){var b=[];return{on:function(O){b.push(O)},off:function(O){b=b.filter(function(C){return C!==O})},get:function(){return c},set:function(O,C){c=O,b.forEach(function(M){return M(c,C)})}}}function f(c){return Array.isArray(c)?c[0]:c}function o(c,b){var E,O,C="__create-react-context-"+s()+"__",M=function(A){Object(t.a)(L,A);function L(){var G;return G=A.apply(this,arguments)||this,G.emitter=l(G.props.value),G}var z=L.prototype;return z.getChildContext=function(){var D;return D={},D[C]=this.emitter,D},z.componentWillReceiveProps=function(D){if(this.props.value!==D.value){var N=this.props.value,Oe=D.value,ue;d(N,Oe)?ue=0:(ue=typeof b=="function"?b(N,Oe):m,ue|=0,ue!==0&&this.emitter.set(D.value,ue))}},z.render=function(){return this.props.children},L}(n.Component);M.childContextTypes=(E={},E[C]=v.a.object.isRequired,E);var w=function(A){Object(t.a)(L,A);function L(){var G;return G=A.apply(this,arguments)||this,G.state={value:G.getValue()},G.onUpdate=function(D,N){var Oe=G.observedBits|0;(Oe&N)!==0&&G.setState({value:G.getValue()})},G}var z=L.prototype;return z.componentWillReceiveProps=function(D){var N=D.observedBits;this.observedBits=N==null?m:N},z.componentDidMount=function(){this.context[C]&&this.context[C].on(this.onUpdate);var D=this.props.observedBits;this.observedBits=D==null?m:D},z.componentWillUnmount=function(){this.context[C]&&this.context[C].off(this.onUpdate)},z.getValue=function(){return this.context[C]?this.context[C].get():c},z.render=function(){return f(this.props.children)(this.state.value)},L}(n.Component);return w.contextTypes=(O={},O[C]=v.a.object,O),{Provider:M,Consumer:w}}var h=r.a.createContext||o;g.a=h}).call(this,e("IyRk"))},tJVT:function(x,g,e){"use strict";e.d(g,"a",function(){return u});var a=e("+kx5");function n(v,m){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(v)))return;var i=[],s=!0,d=!1,l=void 0;try{for(var f=v[Symbol.iterator](),o;!(s=(o=f.next()).done)&&!(i.push(o.value),m&&i.length===m);s=!0);}catch(h){d=!0,l=h}finally{try{!s&&f.return!=null&&f.return()}finally{if(d)throw l}}return i}var r=e("Qw5x"),t=e("u6e6");function u(v,m){return Object(a.a)(v)||n(v,m)||Object(r.a)(v,m)||Object(t.a)()}},tRgb:function(x,g,e){"use strict";var a=e("AU/w");function n(m){return u(m)||t(m)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function t(m){if(Symbol.iterator in Object(m)||Object.prototype.toString.call(m)==="[object Arguments]")return Array.from(m)}function u(m){if(Array.isArray(m)){for(var i=0,s=new Array(m.length);i",s="<",d="prototype",l="script",f=m("IE_PROTO"),o=function(){},h=function(C){return s+l+i+C+s+"/"+l+i},c=function(C){C.write(h("")),C.close();var M=C.parentWindow.Object;return C=null,M},b=function(){var C=v("iframe"),M="java"+l+":",w;return C.style.display="none",u.appendChild(C),C.src=String(M),w=C.contentWindow.document,w.open(),w.write(h("document.F=Object")),w.close(),w.F},E,O=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch(M){}O=E?c(E):b();for(var C=r.length;C--;)delete O[d][r[C]];return O()};t[f]=!0,x.exports=Object.create||function(M,w){var A;return M!==null?(o[d]=a(M),A=new o,o[d]=null,A[f]=M):A=O(),w===void 0?A:n(A,w)}},u0Sq:function(x,g,e){"use strict";var a=e("w8CP"),n=e("7ckf"),r=a.rotl32,t=a.sum32,u=a.sum32_3,v=a.sum32_4,m=n.BlockHash;function i(){if(!(this instanceof i))return new i;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}a.inherits(i,m),g.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(E,O){for(var C=this.h[0],M=this.h[1],w=this.h[2],A=this.h[3],L=this.h[4],z=C,G=M,D=w,N=A,Oe=L,ue=0;ue<80;ue++){var re=t(r(v(C,s(ue,M,w,A),E[f[ue]+O],d(ue)),h[ue]),L);C=L,L=A,A=r(w,10),w=M,M=re,re=t(r(v(z,s(79-ue,G,D,N),E[o[ue]+O],l(ue)),c[ue]),Oe),z=Oe,Oe=N,N=r(D,10),D=G,G=re}re=u(this.h[1],w,N),this.h[1]=u(this.h[2],A,Oe),this.h[2]=u(this.h[3],L,z),this.h[3]=u(this.h[4],C,G),this.h[4]=u(this.h[0],M,D),this.h[0]=re},i.prototype._digest=function(E){return E==="hex"?a.toHex32(this.h,"little"):a.split32(this.h,"little")};function s(b,E,O,C){return b<=15?E^O^C:b<=31?E&O|~E&C:b<=47?(E|~O)^C:b<=63?E&C|O&~C:E^(O|~C)}function d(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function l(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var f=[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],o=[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],h=[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],c=[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]},u4tm:function(x,g,e){"use strict";e.d(g,"a",function(){return J});var a=e("q1tI"),n=e.n(a),r=e("17x9"),t=e.n(r),u=e("/MKj"),v=e("Ty5D"),m=e("AU/w");function i($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(X){return typeof X}:i=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},i($e)}var s=function(Ue){var X=Ue.getIn,me=Ue.toJS,ie=function(tt){return tt!=null&&i(tt)==="object"&&X(tt,["location"])&&X(tt,["action"])},W=function(tt){var ht=me(X(tt,["router"]));if(!ie(ht))throw'Could not find router reducer in state tree, it must be mounted under "router"';return ht},de=function(tt){return me(X(W(tt),["location"]))},Ye=function(tt){return me(X(W(tt),["action"]))},fe=function(tt){return me(X(W(tt),["location","search"]))},rt=function(tt){return me(X(W(tt),["location","hash"]))},Te=function(tt){var ht=null,ge=null;return function(ye){var je=de(ye)||{},we=je.pathname;if(we===ht)return ge;ht=we;var ce=Object(v.f)(we,tt);return(!ce||!ge||ce.url!==ge.url)&&(ge=ce),ge}};return{getLocation:de,getAction:Ye,getRouter:W,getSearch:fe,getHash:rt,createMatchSelector:Te}},d=s;function l($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(X){return typeof X}:l=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},l($e)}function f(){return f=Object.assign||function($e){for(var Ue=1;Ue2&&arguments[2]!==void 0?arguments[2]:!1;Te.inTimeTravelling?Te.inTimeTravelling=!1:ht(je,we,ce)};return Te.unlisten=tt.listen(ge),ge(tt.location,tt.action,!0),Te}return c(fe,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var Te=this.props,Ve=Te.history,tt=Te.children;return n.a.createElement(v.c,{history:Ve},tt)}}]),fe}(a.PureComponent);ie.propTypes={store:t.a.shape({getState:t.a.func.isRequired,subscribe:t.a.func.isRequired}).isRequired,history:t.a.shape({action:t.a.string.isRequired,listen:t.a.func.isRequired,location:t.a.object.isRequired,push:t.a.func.isRequired}).isRequired,basename:t.a.string,children:t.a.oneOfType([t.a.func,t.a.node]),onLocationChanged:t.a.func.isRequired};var W=function(fe){return{onLocationChanged:function(Te,Ve,tt){return fe(Object(m.c)(Te,Ve,tt))}}},de=function(fe){var rt=fe.context||u.b;if(rt==null)throw"Please upgrade to react-redux v6";return n.a.createElement(rt.Consumer,null,function(Te){var Ve=Te.store;return n.a.createElement(ie,f({store:Ve},fe))})};return de.propTypes={context:t.a.object},Object(u.c)(null,W)(de)},A=w,L=function(Ue){var X=Ue.fromJS,me=Ue.merge,ie=function(de){var Ye=X({location:de.location,action:de.action});return function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye,rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=rt.type,Ve=rt.payload;if(Te===m.b){var tt=Ve.location,ht=Ve.action,ge=Ve.isFirstRendering;return ge?fe:me(fe,{location:X(tt),action:ht})}return fe}};return ie},z=L,G=function(Ue,X){if(!Ue)return Ue;var me=X.length;if(!me)return;for(var ie=Ue,W=0;W1?arguments[1]:void 0,3);return v(d,function(f){if(l(f,f,s))return v.stop(f)},void 0,!1,!0).result}})},u6e6:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}},u93E:function(x,g){x.exports=Math.sign||function(a){return(a=+a)==0||a!=a?a:a<0?-1:1}},uGHk:function(x,g,e){var a=e("Srjj"),n=e("De94"),r=n.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(u){return a(u,r)}},uMwj:function(x,g,e){"use strict";var a=e("MMxC"),n=e("uoF6"),r=e("Acmb"),t=e("g1ZG"),u=e("kiNa"),v=e("lz10"),m=e("NMFW"),i=e("2kyd"),s=e("Zcjx"),d=e("5yw/"),l=e("JXem"),f=l.IteratorPrototype,o=l.BUGGY_SAFARI_ITERATORS,h=i("iterator"),c="keys",b="values",E="entries",O=function(){return this};x.exports=function(C,M,w,A,L,z,G){n(w,M,A);var D=function(He){if(He===L&&ee)return ee;if(!o&&He in ue)return ue[He];switch(He){case c:return function(){return new w(this,He)};case b:return function(){return new w(this,He)};case E:return function(){return new w(this,He)}}return function(){return new w(this)}},N=M+" Iterator",Oe=!1,ue=C.prototype,re=ue[h]||ue["@@iterator"]||L&&ue[L],ee=!o&&re||D(L),J=M=="Array"&&ue.entries||re,F,Q,q;if(J&&(F=r(J.call(new C)),f!==Object.prototype&&F.next&&(!s&&r(F)!==f&&(t?t(F,f):typeof F[h]!="function"&&v(F,h,O)),u(F,N,!0,!0),s&&(d[N]=O))),L==b&&re&&re.name!==b&&(Oe=!0,ee=function(){return re.call(this)}),(!s||G)&&ue[h]!==ee&&v(ue,h,ee),d[M]=ee,L)if(Q={values:D(b),keys:z?ee:D(c),entries:D(E)},G)for(q in Q)(o||Oe||!(q in ue))&&m(ue,q,Q[q]);else a({target:M,proto:!0,forced:o||Oe},Q);return Q}},uVHs:function(x,g,e){var a=e("MMxC"),n=e("M3b6"),r=Math.abs;a({target:"Number",stat:!0},{isSafeInteger:function(u){return n(u)&&r(u)<=9007199254740991}})},uciX:function(x,g,e){"use strict";var a=e("VTBJ"),n=e("1OyB"),r=e("vuIU"),t=e("JX7q"),u=e("Ji7U"),v=e("LK+K"),m=e("q1tI"),i=e.n(m),s=e("i8i4"),d=e.n(s),l=e("l4aY"),f=e("m+aA"),o=e("c+Xe"),h=e("zT1h"),c=e("QC+M"),b=e("TSYQ"),E=e.n(b);function O(X,me,ie){return ie?X[0]===me[0]:X[0]===me[0]&&X[1]===me[1]}function C(X,me,ie){var W=X[me]||{};return Object(a.a)(Object(a.a)({},W),ie)}function M(X,me,ie,W){for(var de=ie.points,Ye=Object.keys(X),fe=0;fe1&&(ht=m.createElement("div",{className:"".concat(W,"-content")},fe)),m.createElement("div",{ref:ie,className:de,onMouseEnter:rt,onMouseLeave:Te,onMouseDown:Ve,onTouchStart:tt,style:Ye},ht)},N=m.forwardRef(D);N.displayName="PopupInner";var Oe=N;function ue(X){var me=X.prefixCls,ie=X.motion,W=X.animation,de=X.transitionName;return ie||(W?{motionName:"".concat(me,"-").concat(W)}:de?{motionName:de}:null)}function re(X){return X&&X.motionName}var ee=function(X){Object(u.a)(ie,X);var me=Object(v.a)(ie);function ie(){var W;return Object(n.a)(this,ie),W=me.apply(this,arguments),W.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},W.popupRef=i.a.createRef(),W.alignRef=i.a.createRef(),W.nextFrameState=null,W.nextFrameId=null,W.onAlign=function(de,Ye){var fe=W.state.status,rt=W.props,Te=rt.getClassNameFromAlign,Ve=rt.onAlign,tt=Te(Ye);fe==="align"?W.setState({alignClassName:tt,status:"aligned"},function(){W.alignRef.current.forceAlign()}):fe==="aligned"?(W.setState({alignClassName:tt,status:"afterAlign"}),Ve(de,Ye)):W.setState({alignClassName:tt})},W.onMotionEnd=function(){var de=W.props.visible;W.setState({status:de?"AfterMotion":"stable",inMotion:!1})},W.setStateOnNextFrame=function(de){W.cancelFrameState(),W.nextFrameState=Object(a.a)(Object(a.a)({},W.nextFrameState),de),W.nextFrameId=L()(function(){var Ye=Object(a.a)({},W.nextFrameState);W.nextFrameState=null,W.setState(Ye)})},W.getMotion=function(){return Object(a.a)({},ue(W.props))},W.getAlignTarget=function(){var de=W.props,Ye=de.point,fe=de.getRootDomNode;return Ye||fe},W.cancelFrameState=function(){L.a.cancel(W.nextFrameId)},W.renderPopupElement=function(){var de=W.state,Ye=de.status,fe=de.targetHeight,rt=de.targetWidth,Te=de.alignClassName,Ve=W.props,tt=Ve.prefixCls,ht=Ve.className,ge=Ve.style,ye=Ve.stretch,je=Ve.visible,we=Ve.align,ce=Ve.destroyPopupOnHide,Y=Ve.onMouseEnter,V=Ve.onMouseLeave,U=Ve.onMouseDown,B=Ve.onTouchStart,Ae=Ve.children,S=E()(tt,ht,Te),k="".concat(tt,"-hidden"),ae={};ye&&(ye.indexOf("height")!==-1?ae.height=fe:ye.indexOf("minHeight")!==-1&&(ae.minHeight=fe),ye.indexOf("width")!==-1?ae.width=rt:ye.indexOf("minWidth")!==-1&&(ae.minWidth=rt));var oe=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},ae),W.getZIndexStyle()),ge),{},{opacity:Ye==="stable"||!je?void 0:0,pointerEvents:Ye==="stable"||!je?void 0:"none"}),le=W.getMotion(),K=je;je&&Ye!=="beforeMotion"&&Ye!=="motion"&&Ye!=="stable"&&(le.motionAppear=!1,le.motionEnter=!1,le.motionLeave=!1),(Ye==="afterAlign"||Ye==="beforeMotion")&&(K=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function($){var se=le==null?void 0:le[$];le[$]=function(){for(var ke=arguments.length,ve=new Array(ke),Be=0;Be9490626562425156e-8?t(s)+v:n(s-1+u(s-1)*u(s+1))}})},v3oe:function(x,g,e){var a=e("MMxC"),n=e("MVys"),r=e("cTDu"),t=e("Acmb"),u=e("SprQ"),v=n(function(){t(1)});a({target:"Object",stat:!0,forced:v,sham:!u},{getPrototypeOf:function(i){return t(r(i))}})},vCeJ:function(x,g,e){"use strict";e.d(g,"k",function(){return u}),e.d(g,"j",function(){return m}),e.d(g,"o",function(){return s}),e.d(g,"w",function(){return l}),e.d(g,"v",function(){return o}),e.d(g,"q",function(){return c}),e.d(g,"i",function(){return E}),e.d(g,"u",function(){return C}),e.d(g,"n",function(){return w}),e.d(g,"x",function(){return L}),e.d(g,"r",function(){return N}),e.d(g,"d",function(){return ue}),e.d(g,"b",function(){return ee}),e.d(g,"a",function(){return F}),e.d(g,"A",function(){return q}),e.d(g,"p",function(){return Ze}),e.d(g,"c",function(){return $e}),e.d(g,"e",function(){return X}),e.d(g,"z",function(){return ie}),e.d(g,"l",function(){return de}),e.d(g,"f",function(){return Te}),e.d(g,"y",function(){return tt}),e.d(g,"g",function(){return ge}),e.d(g,"t",function(){return je}),e.d(g,"h",function(){return ce}),e.d(g,"m",function(){return V}),e.d(g,"s",function(){return B});var a=e("9og8"),n=e("WmNS"),r=e.n(n),t=e("ErOA");function u(S){return v.apply(this,arguments)}function v(){return v=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/disciplines.json",{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),v.apply(this,arguments)}function m(S){return i.apply(this,arguments)}function i(){return i=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/disciplines/by_examination_banks.json",{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),i.apply(this,arguments)}function s(S){return d.apply(this,arguments)}function d(){return d=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks.json",{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),d.apply(this,arguments)}function l(S){return f.apply(this,arguments)}function f(){return f=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/set_public.json"),{method:"post"}));case 1:case"end":return oe.stop()}},S)})),f.apply(this,arguments)}function o(S){return h.apply(this,arguments)}function h(){return h=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/set_private.json"),{method:"post"}));case 1:case"end":return oe.stop()}},S)})),h.apply(this,arguments)}function c(S){return b.apply(this,arguments)}function b(){return b=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,".json"),{method:"delete"}));case 1:case"end":return oe.stop()}},S)})),b.apply(this,arguments)}function E(S){return O.apply(this,arguments)}function O(){return O=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/question_banks/my_courses.json",{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),O.apply(this,arguments)}function C(S){return M.apply(this,arguments)}function M(){return M=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/send_to_course.json"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),M.apply(this,arguments)}function w(S){return A.apply(this,arguments)}function A(){return A=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,".json"),{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),A.apply(this,arguments)}function L(S){return z.apply(this,arguments)}function z(){return z=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/").concat(k.itemId,"/set_score"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),z.apply(this,arguments)}function G(S){return D.apply(this,arguments)}function D(){return D=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/").concat(k.itemId,"/set_shixun_score.json"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),D.apply(this,arguments)}function N(S){return Oe.apply(this,arguments)}function Oe(){return Oe=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/").concat(k.itemId,".json"),{method:"delete"}));case 1:case"end":return oe.stop()}},S)})),Oe.apply(this,arguments)}function ue(S){return re.apply(this,arguments)}function re(){return re=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/batch_set_score.json"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),re.apply(this,arguments)}function ee(S){return J.apply(this,arguments)}function J(){return J=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/destroy_by_item_type.json"),{method:"delete",body:k}));case 1:case"end":return oe.stop()}},S)})),J.apply(this,arguments)}function F(S){return Q.apply(this,arguments)}function Q(){return Q=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/").concat(k.itemId,"/adjust_position.json"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),Q.apply(this,arguments)}function q(S){return He.apply(this,arguments)}function He(){return He=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,".json"),{method:"put",body:k}));case 1:case"end":return oe.stop()}},S)})),He.apply(this,arguments)}function Ze(S){return ft.apply(this,arguments)}function ft(){return ft=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/teach_group_shares.json",{method:"get",params:k}));case 1:case"end":return oe.stop()}},S)})),ft.apply(this,arguments)}function $e(S){return Ue.apply(this,arguments)}function Ue(){return Ue=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/set_batch_public.json",{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),Ue.apply(this,arguments)}function X(S){return me.apply(this,arguments)}function me(){return me=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/create_exam.json",{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),me.apply(this,arguments)}function ie(S){return W.apply(this,arguments)}function W(){return W=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/update_exam.json"),{method:"put",body:k}));case 1:case"end":return oe.stop()}},S)})),W.apply(this,arguments)}function de(S){return Ye.apply(this,arguments)}function Ye(){return Ye=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/edit_exam.json"),{method:"get"}));case 1:case"end":return oe.stop()}},S)})),Ye.apply(this,arguments)}function fe(S,k){return rt.apply(this,arguments)}function rt(){return rt=Object(a.a)(r.a.mark(function S(k,ae){return r.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/examination_banks_item_banks.json"),{method:"post",body:ae}));case 1:case"end":return le.stop()}},S)})),rt.apply(this,arguments)}function Te(S){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.id,"/examination_banks_item_banks/create_item_bank.json"),{method:"post",body:k}));case 1:case"end":return oe.stop()}},S)})),Ve.apply(this,arguments)}function tt(S,k){return ht.apply(this,arguments)}function ht(){return ht=Object(a.a)(r.a.mark(function S(k,ae){return r.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/sort_question_type.json"),{method:"post",body:ae}));case 1:case"end":return le.stop()}},S)})),ht.apply(this,arguments)}function ge(S){return ye.apply(this,arguments)}function ye(){return ye=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k.exam_id,"/examination_banks_item_banks/").concat(k.question_id,".json"),{method:"delete"}));case 1:case"end":return oe.stop()}},S)})),ye.apply(this,arguments)}function je(S,k){return we.apply(this,arguments)}function we(){return we=Object(a.a)(r.a.mark(function S(k,ae){return r.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/batch_set_score.json"),{method:"post",body:ae}));case 1:case"end":return le.stop()}},S)})),we.apply(this,arguments)}function ce(S){return Y.apply(this,arguments)}function Y(){return Y=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/simulate_exercise.json"),{method:"post"}));case 1:case"end":return oe.stop()}},S)})),Y.apply(this,arguments)}function V(S){return U.apply(this,arguments)}function U(){return U=Object(a.a)(r.a.mark(function S(k){return r.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/exercise_header.json"),{method:"get"}));case 1:case"end":return oe.stop()}},S)})),U.apply(this,arguments)}function B(S,k){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(a.a)(r.a.mark(function S(k,ae){var oe;return r.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return oe=new FormData,oe.append("file",ae),K.abrupt("return",Object(t.a)("/api/examination_banks/".concat(k,"/import_item_banks.json"),{method:"post",body:oe},!0));case 3:case"end":return K.stop()}},S)})),Ae.apply(this,arguments)}},vO0A:function(x,g,e){"use strict";var a=e("YfKC").f,n=e("u+7+"),r=e("ujhg"),t=e("7BAe"),u=e("igoe"),v=e("IuhT"),m=e("uMwj"),i=e("ssJt"),s=e("tny8"),d=e("a5mf").fastKey,l=e("1aI8"),f=l.set,o=l.getterFor;x.exports={getConstructor:function(h,c,b,E){var O=h(function(A,L){u(A,O,c),f(A,{type:c,index:n(null),first:void 0,last:void 0,size:0}),s||(A.size=0),L!=null&&v(L,A[E],A,b)}),C=o(c),M=function(A,L,z){var G=C(A),D=w(A,L),N,Oe;return D?D.value=z:(G.last=D={index:Oe=d(L,!0),key:L,value:z,previous:N=G.last,next:void 0,removed:!1},G.first||(G.first=D),N&&(N.next=D),s?G.size++:A.size++,Oe!=="F"&&(G.index[Oe]=D)),A},w=function(A,L){var z=C(A),G=d(L),D;if(G!=="F")return z.index[G];for(D=z.first;D;D=D.next)if(D.key==L)return D};return r(O.prototype,{clear:function(){for(var L=this,z=C(L),G=z.index,D=z.first;D;)D.removed=!0,D.previous&&(D.previous=D.previous.next=void 0),delete G[D.index],D=D.next;z.first=z.last=void 0,s?z.size=0:L.size=0},delete:function(A){var L=this,z=C(L),G=w(L,A);if(G){var D=G.next,N=G.previous;delete z.index[G.index],G.removed=!0,N&&(N.next=D),D&&(D.previous=N),z.first==G&&(z.first=D),z.last==G&&(z.last=N),s?z.size--:L.size--}return!!G},forEach:function(L){for(var z=C(this),G=t(L,arguments.length>1?arguments[1]:void 0,3),D;D=D?D.next:z.first;)for(G(D.value,D.key,this);D&&D.removed;)D=D.previous},has:function(L){return!!w(this,L)}}),r(O.prototype,b?{get:function(L){var z=w(this,L);return z&&z.value},set:function(L,z){return M(this,L===0?0:L,z)}}:{add:function(L){return M(this,L=L===0?0:L,L)}}),s&&a(O.prototype,"size",{get:function(){return C(this).size}}),O},setStrong:function(h,c,b){var E=c+" Iterator",O=o(c),C=o(E);m(h,c,function(M,w){f(this,{type:E,target:M,state:O(M),kind:w,last:void 0})},function(){for(var M=C(this),w=M.kind,A=M.last;A&&A.removed;)A=A.previous;return!M.target||!(M.last=A=A?A.next:M.state.first)?(M.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:A.key,done:!1}:w=="values"?{value:A.value,done:!1}:{value:[A.key,A.value],done:!1}},b?"entries":"values",!b,!0),i(c)}}},vRGJ:function(x,g,e){var a=e("AqCL");x.exports=b,x.exports.parse=r,x.exports.compile=t,x.exports.tokensToFunction=m,x.exports.tokensToRegExp=c;var n=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(E,O){for(var C=[],M=0,w=0,A="",L=O&&O.delimiter||"/",z;(z=n.exec(E))!=null;){var G=z[0],D=z[1],N=z.index;if(A+=E.slice(w,N),w=N+G.length,D){A+=D[1];continue}var Oe=E[w],ue=z[2],re=z[3],ee=z[4],J=z[5],F=z[6],Q=z[7];A&&(C.push(A),A="");var q=ue!=null&&Oe!=null&&Oe!==ue,He=F==="+"||F==="*",Ze=F==="?"||F==="*",ft=z[2]||L,$e=ee||J;C.push({name:re||M++,prefix:ue||"",delimiter:ft,optional:Ze,repeat:He,partial:q,asterisk:!!Q,pattern:$e?s($e):Q?".*":"[^"+i(ft)+"]+?"})}return wy}return!1}function ve(p,y,j,R,H,Qe){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=R,this.attributeNamespace=H,this.mustUseProperty=j,this.propertyName=p,this.type=y,this.sanitizeURL=Qe}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){Be[p]=new ve(p,0,!1,p,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];Be[y]=new ve(y,1,!1,p[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){Be[p]=new ve(p,2,!1,p.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){Be[p]=new ve(p,2,!1,p,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){Be[p]=new ve(p,3,!1,p.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(p){Be[p]=new ve(p,3,!0,p,null,!1)}),["capture","download"].forEach(function(p){Be[p]=new ve(p,4,!1,p,null,!1)}),["cols","rows","size","span"].forEach(function(p){Be[p]=new ve(p,6,!1,p,null,!1)}),["rowSpan","start"].forEach(function(p){Be[p]=new ve(p,5,!1,p.toLowerCase(),null,!1)});var it=/[\-:]([a-z])/g;function We(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(p){Be[p]=new ve(p,1,!1,p.toLowerCase(),null,!1)}),Be.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(p){Be[p]=new ve(p,1,!1,p.toLowerCase(),null,!0)});function Et(p){switch(typeof p){case"boolean":case"number":case"object":case"string":case"undefined":return p;default:return""}}function Tt(p,y,j,R){var H=Be.hasOwnProperty(y)?Be[y]:null,Qe=H!==null?H.type===0:R?!1:!(!(2=y.length))throw Error(t(93));y=y[0]}j=y}j==null&&(j="")}p._wrapperState={initialValue:Et(j)}}function Pt(p,y){var j=Et(y.value),R=Et(y.defaultValue);j!=null&&(j=""+j,j!==p.value&&(p.value=j),y.defaultValue==null&&p.defaultValue!==j&&(p.defaultValue=j)),R!=null&&(p.defaultValue=""+R)}function Ft(p){var y=p.textContent;y===p._wrapperState.initialValue&&y!==""&&y!==null&&(p.value=y)}var De={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ct(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function be(p,y){return p==null||p==="http://www.w3.org/1999/xhtml"?Ct(y):p==="http://www.w3.org/2000/svg"&&y==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var Ne,Fe=function(p){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(y,j,R,H){MSApp.execUnsafeLocalFunction(function(){return p(y,j,R,H)})}:p}(function(p,y){if(p.namespaceURI!==De.svg||"innerHTML"in p)p.innerHTML=y;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML=""+y.valueOf().toString()+"",y=Ne.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;y.firstChild;)p.appendChild(y.firstChild)}});function dt(p,y){if(y){var j=p.firstChild;if(j&&j===p.lastChild&&j.nodeType===3){j.nodeValue=y;return}}p.textContent=y}function Pe(p,y){var j={};return j[p.toLowerCase()]=y.toLowerCase(),j["Webkit"+p]="webkit"+y,j["Moz"+p]="moz"+y,j}var Ce={animationend:Pe("Animation","AnimationEnd"),animationiteration:Pe("Animation","AnimationIteration"),animationstart:Pe("Animation","AnimationStart"),transitionend:Pe("Transition","TransitionEnd")},ct={},qe={};ge&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ce.animationend.animation,delete Ce.animationiteration.animation,delete Ce.animationstart.animation),"TransitionEvent"in window||delete Ce.transitionend.transition);function Me(p){if(ct[p])return ct[p];if(!Ce[p])return p;var y=Ce[p],j;for(j in y)if(y.hasOwnProperty(j)&&j in qe)return ct[p]=y[j];return p}var Z=Me("animationend"),Xe=Me("animationiteration"),gt=Me("animationstart"),Mt=Me("transitionend"),xt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function Gt(p){var y=p,j=p;if(p.alternate)for(;y.return;)y=y.return;else{p=y;do y=p,(y.effectTag&1026)!==0&&(j=y.return),p=y.return;while(p)}return y.tag===3?j:null}function ln(p){if(p.tag===13){var y=p.memoizedState;if(y===null&&(p=p.alternate,p!==null&&(y=p.memoizedState)),y!==null)return y.dehydrated}return null}function nn(p){if(Gt(p)!==p)throw Error(t(188))}function Ln(p){var y=p.alternate;if(!y){if(y=Gt(p),y===null)throw Error(t(188));return y!==p?null:p}for(var j=p,R=y;;){var H=j.return;if(H===null)break;var Qe=H.alternate;if(Qe===null){if(R=H.return,R!==null){j=R;continue}break}if(H.child===Qe.child){for(Qe=H.child;Qe;){if(Qe===j)return nn(H),p;if(Qe===R)return nn(H),y;Qe=Qe.sibling}throw Error(t(188))}if(j.return!==R.return)j=H,R=Qe;else{for(var st=!1,vt=H.child;vt;){if(vt===j){st=!0,j=H,R=Qe;break}if(vt===R){st=!0,R=H,j=Qe;break}vt=vt.sibling}if(!st){for(vt=Qe.child;vt;){if(vt===j){st=!0,j=Qe,R=H;break}if(vt===R){st=!0,R=Qe,j=H;break}vt=vt.sibling}if(!st)throw Error(t(189))}}if(j.alternate!==R)throw Error(t(190))}if(j.tag!==3)throw Error(t(188));return j.stateNode.current===j?p:y}function bn(p){if(p=Ln(p),!p)return null;for(var y=p;;){if(y.tag===5||y.tag===6)return y;if(y.child)y.child.return=y,y=y.child;else{if(y===p)break;for(;!y.sibling;){if(!y.return||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}}return null}var Ke,_e,Ut,_=!1,Mn=[],Wn=null,kn=null,Fn=null,qn=new Map,Hn=new Map,ar=[],dr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),br="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function jr(p){var y=za(p);dr.forEach(function(j){Wo(j,p,y)}),br.forEach(function(j){Wo(j,p,y)})}function Hr(p,y,j,R){return{blockedOn:p,topLevelType:y,eventSystemFlags:j|32,nativeEvent:R}}function _n(p,y){switch(p){case"focus":case"blur":Wn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":qn.delete(y.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(y.pointerId)}}function Fr(p,y,j,R,H){return p===null||p.nativeEvent!==H?(p=Hr(y,j,R,H),y!==null&&(y=Oo(y),y!==null&&_e(y)),p):(p.eventSystemFlags|=R,p)}function Ge(p,y,j,R){switch(y){case"focus":return Wn=Fr(Wn,p,y,j,R),!0;case"dragenter":return kn=Fr(kn,p,y,j,R),!0;case"mouseover":return Fn=Fr(Fn,p,y,j,R),!0;case"pointerover":var H=R.pointerId;return qn.set(H,Fr(qn.get(H)||null,p,y,j,R)),!0;case"gotpointercapture":return H=R.pointerId,Hn.set(H,Fr(Hn.get(H)||null,p,y,j,R)),!0}return!1}function ne(p){var y=xo(p.target);if(y!==null){var j=Gt(y);if(j!==null){if(y=j.tag,y===13){if(y=ln(j),y!==null){p.blockedOn=y,r.unstable_runWithPriority(p.priority,function(){Ut(j)});return}}else if(y===3&&j.stateNode.hydrate){p.blockedOn=j.tag===3?j.stateNode.containerInfo:null;return}}}p.blockedOn=null}function te(p){if(p.blockedOn!==null)return!1;var y=Bo(p.topLevelType,p.eventSystemFlags,p.nativeEvent);if(y!==null){var j=Oo(y);return j!==null&&_e(j),p.blockedOn=y,!1}return!0}function Ie(p,y,j){te(p)&&j.delete(y)}function ze(){for(_=!1;0this.eventPool.length&&this.eventPool.push(p)}function Xt(p){p.eventPool=[],p.getPooled=pn,p.release=kt}var Jt=Vt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),xn=Vt.extend({clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),Cn=Vt.extend({view:null,detail:null}),or=Cn.extend({relatedTarget:null});function er(p){var y=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&y===13&&(p=13)):p=y,p===10&&(p=13),32<=p||p===13?p:0}var sr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ir={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vr(p){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(p):(p=gr[p])?!!y[p]:!1}function $r(){return Vr}for(var na=Cn.extend({key:function(p){if(p.key){var y=sr[p.key]||p.key;if(y!=="Unidentified")return y}return p.type==="keypress"?(p=er(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?ir[p.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$r,charCode:function(p){return p.type==="keypress"?er(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?er(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),Zr=0,_r=0,Dr=!1,Br=!1,Pr=Cn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$r,button:null,buttons:null,relatedTarget:function(p){return p.relatedTarget||(p.fromElement===p.srcElement?p.toElement:p.fromElement)},movementX:function(p){if("movementX"in p)return p.movementX;var y=Zr;return Zr=p.screenX,Dr?p.type==="mousemove"?p.screenX-y:0:(Dr=!0,0)},movementY:function(p){if("movementY"in p)return p.movementY;var y=_r;return _r=p.screenY,Br?p.type==="mousemove"?p.screenY-y:0:(Br=!0,0)}}),Gr=Pr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),qr=Pr.extend({dataTransfer:null}),ra=Cn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$r}),ca=Vt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Ir=Pr.extend({deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:null,deltaMode:null}),Ar=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Z,"animationEnd",2],[Xe,"animationIteration",2],[gt,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Mt,"transitionEnd",2],["waiting","waiting",2]],aa={},oa={},ea=0;ea=y)return{node:j,offset:y-p};p=R}e:{for(;j;){if(j.nextSibling){j=j.nextSibling;break e}j=j.parentNode}j=void 0}j=at(j)}}function pe(p,y){return p&&y?p===y?!0:p&&p.nodeType===3?!1:y&&y.nodeType===3?pe(p,y.parentNode):"contains"in p?p.contains(y):p.compareDocumentPosition?!!(p.compareDocumentPosition(y)&16):!1:!1}function ao(){for(var p=window,y=ot();y instanceof p.HTMLIFrameElement;){try{var j=typeof y.contentWindow.location.href=="string"}catch(R){j=!1}if(j)p=y.contentWindow;else break;y=ot(p.document)}return y}function la(p){var y=p&&p.nodeName&&p.nodeName.toLowerCase();return y&&(y==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||y==="textarea"||p.contentEditable==="true")}var yo="$",bo="/$",Ho="$?",Xr="$!",Eo=null,us=null;function Fs(p,y){switch(p){case"button":case"input":case"select":case"textarea":return!!y.autoFocus}return!1}function cs(p,y){return p==="textarea"||p==="option"||p==="noscript"||typeof y.children=="string"||typeof y.children=="number"||typeof y.dangerouslySetInnerHTML=="object"&&y.dangerouslySetInnerHTML!==null&&y.dangerouslySetInnerHTML.__html!=null}var ds=typeof setTimeout=="function"?setTimeout:void 0,mi=typeof clearTimeout=="function"?clearTimeout:void 0;function oo(p){for(;p!=null;p=p.nextSibling){var y=p.nodeType;if(y===1||y===3)break}return p}function $s(p){p=p.previousSibling;for(var y=0;p;){if(p.nodeType===8){var j=p.data;if(j===yo||j===Xr||j===Ho){if(y===0)return p;y--}else j===bo&&y++}p=p.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Ra="__reactInternalInstance$"+ps,Vo="__reactEventHandlers$"+ps,jo="__reactContainere$"+ps;function xo(p){var y=p[Ra];if(y)return y;for(var j=p.parentNode;j;){if(y=j[jo]||j[Ra]){if(j=y.alternate,y.child!==null||j!==null&&j.child!==null)for(p=$s(p);p!==null;){if(j=p[Ra])return j;p=$s(p)}return y}p=j,j=p.parentNode}return null}function Oo(p){return p=p[Ra]||p[jo],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function wa(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(t(33))}function Go(p){return p[Vo]||null}var La=null,fs=null,et=null;function Qn(){if(et)return et;var p,y=fs,j=y.length,R,H="value"in La?La.value:La.textContent,Qe=H.length;for(p=0;p=Da),hi=String.fromCharCode(32),pa={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xr=!1;function Oa(p,y){switch(p){case"keyup":return ms.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ws(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var so=!1;function zr(p,y){switch(p){case"compositionend":return Ws(y);case"keypress":return y.which!==32?null:(xr=!0,hi);case"textInput":return p=y.data,p===hi&&xr?null:p;default:return null}}function ks(p,y){if(so)return p==="compositionend"||!Zt&&Oa(p,y)?(p=Qn(),et=fs=La=null,so=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=document.documentMode,Qo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ia=null,Mr=null,mr=null,zn=!1;function Yo(p,y){var j=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;return zn||Ia==null||Ia!==ot(j)?null:(j=Ia,"selectionStart"in j&&la(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),mr&&So(mr,j)?null:(mr=j,p=Vt.getPooled(Qo.select,Mr,p,y),p.type="select",p.target=Ia,wt(p),p))}var xi={eventTypes:Qo,extractEvents:function(p,y,j,R){var H=R.window===R?R.document:R.nodeType===9?R:R.ownerDocument,Qe;if(!(Qe=!H)){e:{H=za(H),Qe=f.onSelect;for(var st=0;stNa||(p.current=Po[Na],Po[Na]=null,Na--)}function pr(p,y){Na++,Po[Na]=p.current,p.current=y}var ma={},Rr={current:ma},yr={current:!1},Fa=ma;function $a(p,y){var j=p.type.contextTypes;if(!j)return ma;var R=p.stateNode;if(R&&R.__reactInternalMemoizedUnmaskedChildContext===y)return R.__reactInternalMemoizedMaskedChildContext;var H={},Qe;for(Qe in j)H[Qe]=y[Qe];return R&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=y,p.__reactInternalMemoizedMaskedChildContext=H),H}function ur(p){return p=p.childContextTypes,p!=null}function Ee(p){Er(yr,p),Er(Rr,p)}function lt(p){Er(yr,p),Er(Rr,p)}function At(p,y,j){if(Rr.current!==ma)throw Error(t(168));pr(Rr,y,p),pr(yr,j,p)}function zt(p,y,j){var R=p.stateNode;if(p=y.childContextTypes,typeof R.getChildContext!="function")return j;R=R.getChildContext();for(var H in R)if(!(H in p))throw Error(t(108,tt(y)||"Unknown",H));return n({},j,{},R)}function un(p){var y=p.stateNode;return y=y&&y.__reactInternalMemoizedMergedChildContext||ma,Fa=Rr.current,pr(Rr,y,p),pr(yr,yr.current,p),!0}function Le(p,y,j){var R=p.stateNode;if(!R)throw Error(t(169));j?(y=zt(p,y,Fa),R.__reactInternalMemoizedMergedChildContext=y,Er(yr,p),Er(Rr,p),pr(Rr,y,p)):Er(yr,p),pr(yr,j,p)}var Yn=r.unstable_runWithPriority,Gn=r.unstable_scheduleCallback,Ur=r.unstable_cancelCallback,Kn=r.unstable_shouldYield,hr=r.unstable_requestPaint,Xn=r.unstable_now,Vn=r.unstable_getCurrentPriorityLevel,wr=r.unstable_ImmediatePriority,Qr=r.unstable_UserBlockingPriority,Mo=r.unstable_NormalPriority,To=r.unstable_LowPriority,Oi=r.unstable_IdlePriority,Os={},nl=hr!==void 0?hr:function(){},Ba=null,Cs=null,Ss=!1,zs=Xn(),ha=1e4>zs?Xn:function(){return Xn()-zs};function Ks(){switch(Vn()){case wr:return 99;case Qr:return 98;case Mo:return 97;case To:return 96;case Oi:return 95;default:throw Error(t(332))}}function Ci(p){switch(p){case 99:return wr;case 98:return Qr;case 97:return Mo;case 96:return To;case 95:return Oi;default:throw Error(t(332))}}function Ao(p,y){return p=Ci(p),Yn(p,y)}function Si(p,y,j){return p=Ci(p),Gn(p,y,j)}function Pi(p){return Ba===null?(Ba=[p],Cs=Gn(wr,Mi)):Ba.push(p),Os}function Ca(){if(Cs!==null){var p=Cs;Cs=null,Ur(p)}Mi()}function Mi(){if(!Ss&&Ba!==null){Ss=!0;var p=0;try{var y=Ba;Ao(99,function(){for(;p=y&&(eo=!0),p.firstContext=null)}function Wa(p,y){if(Ps!==p&&y!==!1&&y!==0)if((typeof y!="number"||y===1073741823)&&(Ps=p,y=1073741823),y={context:p,observedBits:y,next:null},Ja===null){if(Zo===null)throw Error(t(308));Ja=y,Zo.dependencies={expirationTime:0,firstContext:y,responders:null}}else Ja=Ja.next=y;return p._currentValue}var Wt=!1;function xe(p){return{baseState:p,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function en(p){return{baseState:p.baseState,firstUpdate:p.firstUpdate,lastUpdate:p.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function cn(p,y){return{expirationTime:p,suspenseConfig:y,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Sn(p,y){p.lastUpdate===null?p.firstUpdate=p.lastUpdate=y:(p.lastUpdate.next=y,p.lastUpdate=y)}function In(p,y){var j=p.alternate;if(j===null){var R=p.updateQueue,H=null;R===null&&(R=p.updateQueue=xe(p.memoizedState))}else R=p.updateQueue,H=j.updateQueue,R===null?H===null?(R=p.updateQueue=xe(p.memoizedState),H=j.updateQueue=xe(j.memoizedState)):R=p.updateQueue=en(H):H===null&&(H=j.updateQueue=en(R));H===null||R===H?Sn(R,y):R.lastUpdate===null||H.lastUpdate===null?(Sn(R,y),Sn(H,y)):(Sn(R,y),H.lastUpdate=y)}function Nn(p,y){var j=p.updateQueue;j=j===null?p.updateQueue=xe(p.memoizedState):tr(p,j),j.lastCapturedUpdate===null?j.firstCapturedUpdate=j.lastCapturedUpdate=y:(j.lastCapturedUpdate.next=y,j.lastCapturedUpdate=y)}function tr(p,y){var j=p.alternate;return j!==null&&y===j.updateQueue&&(y=p.updateQueue=en(y)),y}function Zn(p,y,j,R,H,Qe){switch(j.tag){case 1:return p=j.payload,typeof p=="function"?p.call(Qe,R,H):p;case 3:p.effectTag=p.effectTag&-4097|64;case 0:if(p=j.payload,H=typeof p=="function"?p.call(Qe,R,H):p,H==null)break;return n({},R,H);case 2:Wt=!0}return R}function Nr(p,y,j,R,H){Wt=!1,y=tr(p,y);for(var Qe=y.baseState,st=null,vt=0,jt=y.firstUpdate,$t=Qe;jt!==null;){var dn=jt.expirationTime;dnrr?(Or=$n,$n=null):Or=$n.sibling;var nr=cr(Bt,$n,Kt[rr],rn);if(nr===null){$n===null&&($n=Or);break}p&&$n&&nr.alternate===null&&y(Bt,$n),Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr,$n=Or}if(rr===Kt.length)return j(Bt,$n),sn;if($n===null){for(;rrrr?(Or=$n,$n=null):Or=$n.sibling;var Va=cr(Bt,$n,nr.value,rn);if(Va===null){$n===null&&($n=Or);break}p&&$n&&Va.alternate===null&&y(Bt,$n),Dt=Qe(Va,Dt,rr),On===null?sn=Va:On.sibling=Va,On=Va,$n=Or}if(nr.done)return j(Bt,$n),sn;if($n===null){for(;!nr.done;rr++,nr=Kt.next())nr=Sr(Bt,nr.value,rn),nr!==null&&(Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr);return sn}for($n=R(Bt,$n);!nr.done;rr++,nr=Kt.next())nr=Lr($n,Bt,rr,nr.value,rn),nr!==null&&(p&&nr.alternate!==null&&$n.delete(nr.key===null?rr:nr.key),Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr);return p&&$n.forEach(function(el){return y(Bt,el)}),sn}return function(Bt,Dt,Kt,rn){var sn=typeof Kt=="object"&&Kt!==null&&Kt.type===Ze&&Kt.key===null;sn&&(Kt=Kt.props.children);var On=typeof Kt=="object"&&Kt!==null;if(On)switch(Kt.$$typeof){case q:e:{for(On=Kt.key,sn=Dt;sn!==null;){if(sn.key===On)if(sn.tag===7?Kt.type===Ze:sn.elementType===Kt.type){j(Bt,sn.sibling),Dt=H(sn,Kt.type===Ze?Kt.props.children:Kt.props,rn),Dt.ref=_s(Bt,sn,Kt),Dt.return=Bt,Bt=Dt;break e}else{j(Bt,sn);break}else y(Bt,sn);sn=sn.sibling}Kt.type===Ze?(Dt=Fo(Kt.props.children,Bt.mode,rn,Kt.key),Dt.return=Bt,Bt=Dt):(rn=Zi(Kt.type,Kt.key,Kt.props,null,Bt.mode,rn),rn.ref=_s(Bt,Dt,Kt),rn.return=Bt,Bt=rn)}return st(Bt);case He:e:{for(sn=Kt.key;Dt!==null;){if(Dt.key===sn)if(Dt.tag===4&&Dt.stateNode.containerInfo===Kt.containerInfo&&Dt.stateNode.implementation===Kt.implementation){j(Bt,Dt.sibling),Dt=H(Dt,Kt.children||[],rn),Dt.return=Bt,Bt=Dt;break e}else{j(Bt,Dt);break}else y(Bt,Dt);Dt=Dt.sibling}Dt=Ul(Kt,Bt.mode,rn),Dt.return=Bt,Bt=Dt}return st(Bt)}if(typeof Kt=="string"||typeof Kt=="number")return Kt=""+Kt,Dt!==null&&Dt.tag===6?(j(Bt,Dt.sibling),Dt=H(Dt,Kt,rn),Dt.return=Bt,Bt=Dt):(j(Bt,Dt),Dt=Il(Kt,Bt.mode,rn),Dt.return=Bt,Bt=Dt),st(Bt);if(Yr(Kt))return Tr(Bt,Dt,Kt,rn);if(Te(Kt))return fo(Bt,Dt,Kt,rn);if(On&&Li(Bt,Kt),typeof Kt=="undefined"&&!sn)switch(Bt.tag){case 1:case 0:throw Bt=Bt.type,Error(t(152,Bt.displayName||Bt.name||"Component"))}return j(Bt,Dt)}}var Ts=Wl(!0),al=Wl(!1),qs={},Za={current:qs},ei={current:qs},ti={current:qs};function _o(p){if(p===qs)throw Error(t(174));return p}function ol(p,y){pr(ti,y,p),pr(ei,p,p),pr(Za,qs,p);var j=y.nodeType;switch(j){case 9:case 11:y=(y=y.documentElement)?y.namespaceURI:be(null,"");break;default:j=j===8?y.parentNode:y,y=j.namespaceURI||null,j=j.tagName,y=be(y,j)}Er(Za,p),pr(Za,y,p)}function As(p){Er(Za,p),Er(ei,p),Er(ti,p)}function kl(p){_o(ti.current);var y=_o(Za.current),j=be(y,p.type);y!==j&&(pr(ei,p,p),pr(Za,j,p))}function sl(p){ei.current===p&&(Er(Za,p),Er(ei,p))}var Cr={current:0};function Di(p){for(var y=p;y!==null;){if(y.tag===13){var j=y.memoizedState;if(j!==null&&(j=j.dehydrated,j===null||j.data===Ho||j.data===Xr))return y}else if(y.tag===19&&y.memoizedProps.revealOrder!==void 0){if((y.effectTag&64)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===p)break;for(;y.sibling===null;){if(y.return===null||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}function Hl(p,y){return{responder:p,props:y}}var Ii=J.ReactCurrentDispatcher,Ma=J.ReactCurrentBatchConfig,ni=0,Lo=null,Jr=null,_a=null,Rs=null,ua=null,ws=null,Ls=0,qa=null,ri=0,ai=!1,lo=null,oi=0;function va(){throw Error(t(321))}function il(p,y){if(y===null)return!1;for(var j=0;jLs&&(Ls=dn,Ji(Ls))):(Lu(dn,jt.suspenseConfig),Qe=jt.eagerReducer===p?jt.eagerState:p(Qe,jt.action)),st=jt,jt=jt.next}while(jt!==null&&jt!==R);$t||(vt=st,H=Qe),Ya(Qe,y.memoizedState)||(eo=!0),y.memoizedState=Qe,y.baseUpdate=vt,y.baseState=H,j.lastRenderedState=Qe}return[y.memoizedState,j.dispatch]}function ul(p){var y=Ds();return typeof p=="function"&&(p=p()),y.memoizedState=y.baseState=p,p=y.queue={last:null,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:p},p=p.dispatch=_l.bind(null,Lo,p),[y.memoizedState,p]}function cl(p){return zl(Gl,p)}function dl(p,y,j,R){return p={tag:p,create:y,destroy:j,deps:R,next:null},qa===null?(qa={lastEffect:null},qa.lastEffect=p.next=p):(y=qa.lastEffect,y===null?qa.lastEffect=p.next=p:(j=y.next,y.next=p,p.next=j,qa.lastEffect=p)),p}function pl(p,y,j,R){var H=Ds();ri|=p,H.memoizedState=dl(y,j,void 0,R===void 0?null:R)}function fl(p,y,j,R){var H=si();R=R===void 0?null:R;var Qe=void 0;if(Jr!==null){var st=Jr.memoizedState;if(Qe=st.destroy,R!==null&&il(R,st.deps)){dl(0,j,Qe,R);return}}ri|=p,H.memoizedState=dl(y,j,Qe,R)}function Kl(p,y){return pl(516,192,p,y)}function Xl(p,y){return fl(516,192,p,y)}function Ql(p,y){if(typeof y=="function")return p=p(),y(p),function(){y(null)};if(y!=null)return p=p(),y.current=p,function(){y.current=null}}function Yl(){}function Jl(p,y){return Ds().memoizedState=[p,y===void 0?null:y],p}function Zl(p,y){var j=si();y=y===void 0?null:y;var R=j.memoizedState;return R!==null&&y!==null&&il(y,R[1])?R[0]:(j.memoizedState=[p,y],p)}function _l(p,y,j){if(!(25>oi))throw Error(t(301));var R=p.alternate;if(p===Lo||R!==null&&R===Lo)if(ai=!0,p={expirationTime:ni,suspenseConfig:null,action:j,eagerReducer:null,eagerState:null,next:null},lo===null&&(lo=new Map),j=lo.get(y),j===void 0)lo.set(y,p);else{for(y=j;y.next!==null;)y=y.next;y.next=p}else{var H=Ha(),Qe=fr.suspense;H=ns(H,p,Qe),Qe={expirationTime:H,suspenseConfig:Qe,action:j,eagerReducer:null,eagerState:null,next:null};var st=y.last;if(st===null)Qe.next=Qe;else{var vt=st.next;vt!==null&&(Qe.next=vt),st.next=Qe}if(y.last=Qe,p.expirationTime===0&&(R===null||R.expirationTime===0)&&(R=y.lastRenderedReducer,R!==null))try{var jt=y.lastRenderedState,$t=R(jt,j);if(Qe.eagerReducer=R,Qe.eagerState=$t,Ya($t,jt))return}catch(dn){}finally{}Uo(p,H)}}var Ui={readContext:Wa,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useLayoutEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useResponder:va,useDeferredValue:va,useTransition:va},Qu={readContext:Wa,useCallback:Jl,useContext:Wa,useEffect:Kl,useImperativeHandle:function(p,y,j){return j=j!=null?j.concat([p]):null,pl(4,36,Ql.bind(null,y,p),j)},useLayoutEffect:function(p,y){return pl(4,36,p,y)},useMemo:function(p,y){var j=Ds();return y=y===void 0?null:y,p=p(),j.memoizedState=[p,y],p},useReducer:function(p,y,j){var R=Ds();return y=j!==void 0?j(y):y,R.memoizedState=R.baseState=y,p=R.queue={last:null,dispatch:null,lastRenderedReducer:p,lastRenderedState:y},p=p.dispatch=_l.bind(null,Lo,p),[R.memoizedState,p]},useRef:function(p){var y=Ds();return p={current:p},y.memoizedState=p},useState:ul,useDebugValue:Yl,useResponder:Hl,useDeferredValue:function(p,y){var j=ul(p),R=j[0],H=j[1];return Kl(function(){r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=y===void 0?null:y;try{H(p)}finally{Ma.suspense=Qe}})},[p,y]),R},useTransition:function(p){var y=ul(!1),j=y[0],R=y[1];return[Jl(function(H){R(!0),r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=p===void 0?null:p;try{R(!1),H()}finally{Ma.suspense=Qe}})},[p,j]),j]}},ql={readContext:Wa,useCallback:Zl,useContext:Wa,useEffect:Xl,useImperativeHandle:function(p,y,j){return j=j!=null?j.concat([p]):null,fl(4,36,Ql.bind(null,y,p),j)},useLayoutEffect:function(p,y){return fl(4,36,p,y)},useMemo:function(p,y){var j=si();y=y===void 0?null:y;var R=j.memoizedState;return R!==null&&y!==null&&il(y,R[1])?R[0]:(p=p(),j.memoizedState=[p,y],p)},useReducer:zl,useRef:function(){return si().memoizedState},useState:cl,useDebugValue:Yl,useResponder:Hl,useDeferredValue:function(p,y){var j=cl(p),R=j[0],H=j[1];return Xl(function(){r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=y===void 0?null:y;try{H(p)}finally{Ma.suspense=Qe}})},[p,y]),R},useTransition:function(p){var y=cl(!1),j=y[0],R=y[1];return[Zl(function(H){R(!0),r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=p===void 0?null:p;try{R(!1),H()}finally{Ma.suspense=Qe}})},[p,j]),j]}},uo=null,Do=null,qo=!1;function eu(p,y){var j=no(5,null,null,0);j.elementType="DELETED",j.type="DELETED",j.stateNode=y,j.return=p,j.effectTag=8,p.lastEffect!==null?(p.lastEffect.nextEffect=j,p.lastEffect=j):p.firstEffect=p.lastEffect=j}function tu(p,y){switch(p.tag){case 5:var j=p.type;return y=y.nodeType!==1||j.toLowerCase()!==y.nodeName.toLowerCase()?null:y,y!==null?(p.stateNode=y,!0):!1;case 6:return y=p.pendingProps===""||y.nodeType!==3?null:y,y!==null?(p.stateNode=y,!0):!1;case 13:return!1;default:return!1}}function ml(p){if(qo){var y=Do;if(y){var j=y;if(!tu(p,y)){if(y=oo(j.nextSibling),!y||!tu(p,y)){p.effectTag=p.effectTag&-1025|2,qo=!1,uo=p;return}eu(uo,j)}uo=p,Do=oo(y.firstChild)}else p.effectTag=p.effectTag&-1025|2,qo=!1,uo=p}}function nu(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;uo=p}function Ni(p){if(p!==uo)return!1;if(!qo)return nu(p),qo=!0,!1;var y=p.type;if(p.tag!==5||y!=="head"&&y!=="body"&&!cs(y,p.memoizedProps))for(y=Do;y;)eu(p,y),y=oo(y.nextSibling);if(nu(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(t(317));e:{for(p=p.nextSibling,y=0;p;){if(p.nodeType===8){var j=p.data;if(j===bo){if(y===0){Do=oo(p.nextSibling);break e}y--}else j!==yo&&j!==Xr&&j!==Ho||y++}p=p.nextSibling}Do=null}}else Do=uo?oo(p.stateNode.nextSibling):null;return!0}function hl(){Do=uo=null,qo=!1}var Yu=J.ReactCurrentOwner,eo=!1;function ya(p,y,j,R){y.child=p===null?al(y,null,j,R):Ts(y,p.child,j,R)}function ru(p,y,j,R,H){j=j.render;var Qe=y.ref;return Ro(y,H),R=ll(p,y,j,R,Qe,H),p!==null&&!eo?(y.updateQueue=p.updateQueue,y.effectTag&=-517,p.expirationTime<=H&&(p.expirationTime=0),co(p,y,H)):(y.effectTag|=1,ya(p,y,R,H),y.child)}function au(p,y,j,R,H,Qe){if(p===null){var st=j.type;return typeof st=="function"&&!Dl(st)&&st.defaultProps===void 0&&j.compare===null&&j.defaultProps===void 0?(y.tag=15,y.type=st,ou(p,y,st,R,H,Qe)):(p=Zi(j.type,null,R,null,y.mode,Qe),p.ref=y.ref,p.return=y,y.child=p)}return st=p.child,Hy)&&ts.set(p,y)))}}function Qi(p,y){p.expirationTimep?y:p):y)}function Ea(p){if(p.lastExpiredTime!==0)p.callbackExpirationTime=1073741823,p.callbackPriority=99,p.callbackNode=Pi(Al.bind(null,p));else{var y=Yi(p),j=p.callbackNode;if(y===0)j!==null&&(p.callbackNode=null,p.callbackExpirationTime=0,p.callbackPriority=90);else{var R=Ha();if(y===1073741823?R=99:y===1||y===2?R=95:(R=10*(1073741821-y)-10*(1073741821-R),R=0>=R?99:250>=R?98:5250>=R?97:95),j!==null){var H=p.callbackPriority;if(p.callbackExpirationTime===y&&H>=R)return;j!==Os&&Ur(j)}p.callbackExpirationTime=y,p.callbackPriority=R,y=y===1073741823?Pi(Al.bind(null,p)):Si(R,Mu.bind(null,p),{timeout:10*(1073741821-y)-ha()}),p.callbackNode=y}}}function Mu(p,y){if(Xi=0,y)return y=Ha(),Nl(p,y),Ea(p),null;var j=Yi(p);if(j!==0){if(y=p.callbackNode,(Bn&(ka|to))!==Wr)throw Error(t(327));if(Us(),p===ba&&j===ta||rs(p,j),Jn!==null){var R=Bn;Bn|=ka;var H=wu(p);do try{ac();break}catch(vt){Ru(p,vt)}while(1);if(Je(),Bn=R,$i.current=H,kr===Bi)throw y=Hi,rs(p,j),ss(p,j),Ea(p),y;if(Jn===null)switch(H=p.finishedWork=p.current.alternate,p.finishedExpirationTime=j,R=kr,ba=null,R){case es:case Bi:throw Error(t(345));case Su:Nl(p,2=j){p.lastPingedTime=j,rs(p,j);break}}if(Qe=Yi(p),Qe!==0&&Qe!==j)break;if(R!==0&&R!==j){p.lastPingedTime=R;break}p.timeoutHandle=ds(No.bind(null,p),H);break}No(p);break;case ki:if(ss(p,j),R=p.lastSuspendedTime,j===R&&(p.nextKnownPendingLevel=Rl(H)),Gi&&(H=p.lastPingedTime,H===0||H>=j)){p.lastPingedTime=j,rs(p,j);break}if(H=Yi(p),H!==0&&H!==j)break;if(R!==0&&R!==j){p.lastPingedTime=R;break}if(li!==1073741823?R=10*(1073741821-li)-ha():po===1073741823?R=0:(R=10*(1073741821-po)-5e3,H=ha(),j=10*(1073741821-j)-H,R=H-R,0>R&&(R=0),R=(120>R?120:480>R?480:1080>R?1080:1920>R?1920:3e3>R?3e3:4320>R?4320:1960*tc(R/1960))-R,j=R?R=0:(H=st.busyDelayMs|0,Qe=ha()-(10*(1073741821-Qe)-(st.timeoutMs|0||5e3)),R=Qe<=H?0:H+R-Qe),10y}return!1}function ve(p,y,j,R,H,Qe){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=R,this.attributeNamespace=H,this.mustUseProperty=j,this.propertyName=p,this.type=y,this.sanitizeURL=Qe}var Be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){Be[p]=new ve(p,0,!1,p,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];Be[y]=new ve(y,1,!1,p[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){Be[p]=new ve(p,2,!1,p.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){Be[p]=new ve(p,2,!1,p,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){Be[p]=new ve(p,3,!1,p.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(p){Be[p]=new ve(p,3,!0,p,null,!1)}),["capture","download"].forEach(function(p){Be[p]=new ve(p,4,!1,p,null,!1)}),["cols","rows","size","span"].forEach(function(p){Be[p]=new ve(p,6,!1,p,null,!1)}),["rowSpan","start"].forEach(function(p){Be[p]=new ve(p,5,!1,p.toLowerCase(),null,!1)});var it=/[\-:]([a-z])/g;function We(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(it,We);Be[y]=new ve(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(p){Be[p]=new ve(p,1,!1,p.toLowerCase(),null,!1)}),Be.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(p){Be[p]=new ve(p,1,!1,p.toLowerCase(),null,!0)});function Et(p){switch(typeof p){case"boolean":case"number":case"object":case"string":case"undefined":return p;default:return""}}function Tt(p,y,j,R){var H=Be.hasOwnProperty(y)?Be[y]:null,Qe=H!==null?H.type===0:R?!1:!(!(2=y.length))throw Error(t(93));y=y[0]}j=y}j==null&&(j="")}p._wrapperState={initialValue:Et(j)}}function Pt(p,y){var j=Et(y.value),R=Et(y.defaultValue);j!=null&&(j=""+j,j!==p.value&&(p.value=j),y.defaultValue==null&&p.defaultValue!==j&&(p.defaultValue=j)),R!=null&&(p.defaultValue=""+R)}function Ft(p){var y=p.textContent;y===p._wrapperState.initialValue&&y!==""&&y!==null&&(p.value=y)}var De={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ct(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function be(p,y){return p==null||p==="http://www.w3.org/1999/xhtml"?Ct(y):p==="http://www.w3.org/2000/svg"&&y==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var Fe,Ne=function(p){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(y,j,R,H){MSApp.execUnsafeLocalFunction(function(){return p(y,j,R,H)})}:p}(function(p,y){if(p.namespaceURI!==De.svg||"innerHTML"in p)p.innerHTML=y;else{for(Fe=Fe||document.createElement("div"),Fe.innerHTML=""+y.valueOf().toString()+"",y=Fe.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;y.firstChild;)p.appendChild(y.firstChild)}});function dt(p,y){if(y){var j=p.firstChild;if(j&&j===p.lastChild&&j.nodeType===3){j.nodeValue=y;return}}p.textContent=y}function Pe(p,y){var j={};return j[p.toLowerCase()]=y.toLowerCase(),j["Webkit"+p]="webkit"+y,j["Moz"+p]="moz"+y,j}var Ce={animationend:Pe("Animation","AnimationEnd"),animationiteration:Pe("Animation","AnimationIteration"),animationstart:Pe("Animation","AnimationStart"),transitionend:Pe("Transition","TransitionEnd")},ct={},qe={};ge&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ce.animationend.animation,delete Ce.animationiteration.animation,delete Ce.animationstart.animation),"TransitionEvent"in window||delete Ce.transitionend.transition);function Me(p){if(ct[p])return ct[p];if(!Ce[p])return p;var y=Ce[p],j;for(j in y)if(y.hasOwnProperty(j)&&j in qe)return ct[p]=y[j];return p}var Z=Me("animationend"),Xe=Me("animationiteration"),gt=Me("animationstart"),Mt=Me("transitionend"),xt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function Gt(p){var y=p,j=p;if(p.alternate)for(;y.return;)y=y.return;else{p=y;do y=p,(y.effectTag&1026)!==0&&(j=y.return),p=y.return;while(p)}return y.tag===3?j:null}function ln(p){if(p.tag===13){var y=p.memoizedState;if(y===null&&(p=p.alternate,p!==null&&(y=p.memoizedState)),y!==null)return y.dehydrated}return null}function nn(p){if(Gt(p)!==p)throw Error(t(188))}function Ln(p){var y=p.alternate;if(!y){if(y=Gt(p),y===null)throw Error(t(188));return y!==p?null:p}for(var j=p,R=y;;){var H=j.return;if(H===null)break;var Qe=H.alternate;if(Qe===null){if(R=H.return,R!==null){j=R;continue}break}if(H.child===Qe.child){for(Qe=H.child;Qe;){if(Qe===j)return nn(H),p;if(Qe===R)return nn(H),y;Qe=Qe.sibling}throw Error(t(188))}if(j.return!==R.return)j=H,R=Qe;else{for(var st=!1,vt=H.child;vt;){if(vt===j){st=!0,j=H,R=Qe;break}if(vt===R){st=!0,R=H,j=Qe;break}vt=vt.sibling}if(!st){for(vt=Qe.child;vt;){if(vt===j){st=!0,j=Qe,R=H;break}if(vt===R){st=!0,R=Qe,j=H;break}vt=vt.sibling}if(!st)throw Error(t(189))}}if(j.alternate!==R)throw Error(t(190))}if(j.tag!==3)throw Error(t(188));return j.stateNode.current===j?p:y}function bn(p){if(p=Ln(p),!p)return null;for(var y=p;;){if(y.tag===5||y.tag===6)return y;if(y.child)y.child.return=y,y=y.child;else{if(y===p)break;for(;!y.sibling;){if(!y.return||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}}return null}var Ke,_e,Ut,_=!1,Mn=[],Wn=null,kn=null,Fn=null,qn=new Map,Hn=new Map,ar=[],dr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),br="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function jr(p){var y=za(p);dr.forEach(function(j){Wo(j,p,y)}),br.forEach(function(j){Wo(j,p,y)})}function Hr(p,y,j,R){return{blockedOn:p,topLevelType:y,eventSystemFlags:j|32,nativeEvent:R}}function _n(p,y){switch(p){case"focus":case"blur":Wn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":qn.delete(y.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(y.pointerId)}}function Fr(p,y,j,R,H){return p===null||p.nativeEvent!==H?(p=Hr(y,j,R,H),y!==null&&(y=Oo(y),y!==null&&_e(y)),p):(p.eventSystemFlags|=R,p)}function Ge(p,y,j,R){switch(y){case"focus":return Wn=Fr(Wn,p,y,j,R),!0;case"dragenter":return kn=Fr(kn,p,y,j,R),!0;case"mouseover":return Fn=Fr(Fn,p,y,j,R),!0;case"pointerover":var H=R.pointerId;return qn.set(H,Fr(qn.get(H)||null,p,y,j,R)),!0;case"gotpointercapture":return H=R.pointerId,Hn.set(H,Fr(Hn.get(H)||null,p,y,j,R)),!0}return!1}function ne(p){var y=xo(p.target);if(y!==null){var j=Gt(y);if(j!==null){if(y=j.tag,y===13){if(y=ln(j),y!==null){p.blockedOn=y,r.unstable_runWithPriority(p.priority,function(){Ut(j)});return}}else if(y===3&&j.stateNode.hydrate){p.blockedOn=j.tag===3?j.stateNode.containerInfo:null;return}}}p.blockedOn=null}function te(p){if(p.blockedOn!==null)return!1;var y=Bo(p.topLevelType,p.eventSystemFlags,p.nativeEvent);if(y!==null){var j=Oo(y);return j!==null&&_e(j),p.blockedOn=y,!1}return!0}function Ie(p,y,j){te(p)&&j.delete(y)}function ze(){for(_=!1;0this.eventPool.length&&this.eventPool.push(p)}function Xt(p){p.eventPool=[],p.getPooled=pn,p.release=kt}var Jt=Vt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),xn=Vt.extend({clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),Cn=Vt.extend({view:null,detail:null}),or=Cn.extend({relatedTarget:null});function er(p){var y=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&y===13&&(p=13)):p=y,p===10&&(p=13),32<=p||p===13?p:0}var sr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ir={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vr(p){var y=this.nativeEvent;return y.getModifierState?y.getModifierState(p):(p=gr[p])?!!y[p]:!1}function $r(){return Vr}for(var na=Cn.extend({key:function(p){if(p.key){var y=sr[p.key]||p.key;if(y!=="Unidentified")return y}return p.type==="keypress"?(p=er(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?ir[p.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$r,charCode:function(p){return p.type==="keypress"?er(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?er(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),Zr=0,_r=0,Dr=!1,Br=!1,Pr=Cn.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$r,button:null,buttons:null,relatedTarget:function(p){return p.relatedTarget||(p.fromElement===p.srcElement?p.toElement:p.fromElement)},movementX:function(p){if("movementX"in p)return p.movementX;var y=Zr;return Zr=p.screenX,Dr?p.type==="mousemove"?p.screenX-y:0:(Dr=!0,0)},movementY:function(p){if("movementY"in p)return p.movementY;var y=_r;return _r=p.screenY,Br?p.type==="mousemove"?p.screenY-y:0:(Br=!0,0)}}),Gr=Pr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),qr=Pr.extend({dataTransfer:null}),ra=Cn.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$r}),ca=Vt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Ir=Pr.extend({deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:null,deltaMode:null}),Ar=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Z,"animationEnd",2],[Xe,"animationIteration",2],[gt,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Mt,"transitionEnd",2],["waiting","waiting",2]],aa={},oa={},ea=0;ea=y)return{node:j,offset:y-p};p=R}e:{for(;j;){if(j.nextSibling){j=j.nextSibling;break e}j=j.parentNode}j=void 0}j=at(j)}}function pe(p,y){return p&&y?p===y?!0:p&&p.nodeType===3?!1:y&&y.nodeType===3?pe(p,y.parentNode):"contains"in p?p.contains(y):p.compareDocumentPosition?!!(p.compareDocumentPosition(y)&16):!1:!1}function ao(){for(var p=window,y=ot();y instanceof p.HTMLIFrameElement;){try{var j=typeof y.contentWindow.location.href=="string"}catch(R){j=!1}if(j)p=y.contentWindow;else break;y=ot(p.document)}return y}function la(p){var y=p&&p.nodeName&&p.nodeName.toLowerCase();return y&&(y==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||y==="textarea"||p.contentEditable==="true")}var yo="$",bo="/$",Ho="$?",Xr="$!",Eo=null,us=null;function Fs(p,y){switch(p){case"button":case"input":case"select":case"textarea":return!!y.autoFocus}return!1}function cs(p,y){return p==="textarea"||p==="option"||p==="noscript"||typeof y.children=="string"||typeof y.children=="number"||typeof y.dangerouslySetInnerHTML=="object"&&y.dangerouslySetInnerHTML!==null&&y.dangerouslySetInnerHTML.__html!=null}var ds=typeof setTimeout=="function"?setTimeout:void 0,mi=typeof clearTimeout=="function"?clearTimeout:void 0;function oo(p){for(;p!=null;p=p.nextSibling){var y=p.nodeType;if(y===1||y===3)break}return p}function $s(p){p=p.previousSibling;for(var y=0;p;){if(p.nodeType===8){var j=p.data;if(j===yo||j===Xr||j===Ho){if(y===0)return p;y--}else j===bo&&y++}p=p.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Ra="__reactInternalInstance$"+ps,Vo="__reactEventHandlers$"+ps,jo="__reactContainere$"+ps;function xo(p){var y=p[Ra];if(y)return y;for(var j=p.parentNode;j;){if(y=j[jo]||j[Ra]){if(j=y.alternate,y.child!==null||j!==null&&j.child!==null)for(p=$s(p);p!==null;){if(j=p[Ra])return j;p=$s(p)}return y}p=j,j=p.parentNode}return null}function Oo(p){return p=p[Ra]||p[jo],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function wa(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(t(33))}function Go(p){return p[Vo]||null}var La=null,fs=null,et=null;function Qn(){if(et)return et;var p,y=fs,j=y.length,R,H="value"in La?La.value:La.textContent,Qe=H.length;for(p=0;p=Da),hi=String.fromCharCode(32),pa={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xr=!1;function Oa(p,y){switch(p){case"keyup":return ms.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ws(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var so=!1;function zr(p,y){switch(p){case"compositionend":return Ws(y);case"keypress":return y.which!==32?null:(xr=!0,hi);case"textInput":return p=y.data,p===hi&&xr?null:p;default:return null}}function ks(p,y){if(so)return p==="compositionend"||!Zt&&Oa(p,y)?(p=Qn(),et=fs=La=null,so=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=document.documentMode,Qo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ia=null,Mr=null,mr=null,zn=!1;function Yo(p,y){var j=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;return zn||Ia==null||Ia!==ot(j)?null:(j=Ia,"selectionStart"in j&&la(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),mr&&So(mr,j)?null:(mr=j,p=Vt.getPooled(Qo.select,Mr,p,y),p.type="select",p.target=Ia,wt(p),p))}var xi={eventTypes:Qo,extractEvents:function(p,y,j,R){var H=R.window===R?R.document:R.nodeType===9?R:R.ownerDocument,Qe;if(!(Qe=!H)){e:{H=za(H),Qe=f.onSelect;for(var st=0;stNa||(p.current=Po[Na],Po[Na]=null,Na--)}function pr(p,y){Na++,Po[Na]=p.current,p.current=y}var ma={},Rr={current:ma},yr={current:!1},Fa=ma;function $a(p,y){var j=p.type.contextTypes;if(!j)return ma;var R=p.stateNode;if(R&&R.__reactInternalMemoizedUnmaskedChildContext===y)return R.__reactInternalMemoizedMaskedChildContext;var H={},Qe;for(Qe in j)H[Qe]=y[Qe];return R&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=y,p.__reactInternalMemoizedMaskedChildContext=H),H}function ur(p){return p=p.childContextTypes,p!=null}function Ee(p){Er(yr,p),Er(Rr,p)}function lt(p){Er(yr,p),Er(Rr,p)}function At(p,y,j){if(Rr.current!==ma)throw Error(t(168));pr(Rr,y,p),pr(yr,j,p)}function zt(p,y,j){var R=p.stateNode;if(p=y.childContextTypes,typeof R.getChildContext!="function")return j;R=R.getChildContext();for(var H in R)if(!(H in p))throw Error(t(108,tt(y)||"Unknown",H));return n({},j,{},R)}function un(p){var y=p.stateNode;return y=y&&y.__reactInternalMemoizedMergedChildContext||ma,Fa=Rr.current,pr(Rr,y,p),pr(yr,yr.current,p),!0}function Le(p,y,j){var R=p.stateNode;if(!R)throw Error(t(169));j?(y=zt(p,y,Fa),R.__reactInternalMemoizedMergedChildContext=y,Er(yr,p),Er(Rr,p),pr(Rr,y,p)):Er(yr,p),pr(yr,j,p)}var Yn=r.unstable_runWithPriority,Gn=r.unstable_scheduleCallback,Ur=r.unstable_cancelCallback,Kn=r.unstable_shouldYield,hr=r.unstable_requestPaint,Xn=r.unstable_now,Vn=r.unstable_getCurrentPriorityLevel,wr=r.unstable_ImmediatePriority,Qr=r.unstable_UserBlockingPriority,Mo=r.unstable_NormalPriority,To=r.unstable_LowPriority,Oi=r.unstable_IdlePriority,Os={},nl=hr!==void 0?hr:function(){},Ba=null,Cs=null,Ss=!1,zs=Xn(),ha=1e4>zs?Xn:function(){return Xn()-zs};function Ks(){switch(Vn()){case wr:return 99;case Qr:return 98;case Mo:return 97;case To:return 96;case Oi:return 95;default:throw Error(t(332))}}function Ci(p){switch(p){case 99:return wr;case 98:return Qr;case 97:return Mo;case 96:return To;case 95:return Oi;default:throw Error(t(332))}}function Ao(p,y){return p=Ci(p),Yn(p,y)}function Si(p,y,j){return p=Ci(p),Gn(p,y,j)}function Pi(p){return Ba===null?(Ba=[p],Cs=Gn(wr,Mi)):Ba.push(p),Os}function Ca(){if(Cs!==null){var p=Cs;Cs=null,Ur(p)}Mi()}function Mi(){if(!Ss&&Ba!==null){Ss=!0;var p=0;try{var y=Ba;Ao(99,function(){for(;p=y&&(eo=!0),p.firstContext=null)}function Wa(p,y){if(Ps!==p&&y!==!1&&y!==0)if((typeof y!="number"||y===1073741823)&&(Ps=p,y=1073741823),y={context:p,observedBits:y,next:null},Ja===null){if(Zo===null)throw Error(t(308));Ja=y,Zo.dependencies={expirationTime:0,firstContext:y,responders:null}}else Ja=Ja.next=y;return p._currentValue}var Wt=!1;function xe(p){return{baseState:p,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function en(p){return{baseState:p.baseState,firstUpdate:p.firstUpdate,lastUpdate:p.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function cn(p,y){return{expirationTime:p,suspenseConfig:y,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Sn(p,y){p.lastUpdate===null?p.firstUpdate=p.lastUpdate=y:(p.lastUpdate.next=y,p.lastUpdate=y)}function In(p,y){var j=p.alternate;if(j===null){var R=p.updateQueue,H=null;R===null&&(R=p.updateQueue=xe(p.memoizedState))}else R=p.updateQueue,H=j.updateQueue,R===null?H===null?(R=p.updateQueue=xe(p.memoizedState),H=j.updateQueue=xe(j.memoizedState)):R=p.updateQueue=en(H):H===null&&(H=j.updateQueue=en(R));H===null||R===H?Sn(R,y):R.lastUpdate===null||H.lastUpdate===null?(Sn(R,y),Sn(H,y)):(Sn(R,y),H.lastUpdate=y)}function Nn(p,y){var j=p.updateQueue;j=j===null?p.updateQueue=xe(p.memoizedState):tr(p,j),j.lastCapturedUpdate===null?j.firstCapturedUpdate=j.lastCapturedUpdate=y:(j.lastCapturedUpdate.next=y,j.lastCapturedUpdate=y)}function tr(p,y){var j=p.alternate;return j!==null&&y===j.updateQueue&&(y=p.updateQueue=en(y)),y}function Zn(p,y,j,R,H,Qe){switch(j.tag){case 1:return p=j.payload,typeof p=="function"?p.call(Qe,R,H):p;case 3:p.effectTag=p.effectTag&-4097|64;case 0:if(p=j.payload,H=typeof p=="function"?p.call(Qe,R,H):p,H==null)break;return n({},R,H);case 2:Wt=!0}return R}function Nr(p,y,j,R,H){Wt=!1,y=tr(p,y);for(var Qe=y.baseState,st=null,vt=0,jt=y.firstUpdate,$t=Qe;jt!==null;){var dn=jt.expirationTime;dnrr?(Or=$n,$n=null):Or=$n.sibling;var nr=cr(Bt,$n,Kt[rr],rn);if(nr===null){$n===null&&($n=Or);break}p&&$n&&nr.alternate===null&&y(Bt,$n),Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr,$n=Or}if(rr===Kt.length)return j(Bt,$n),sn;if($n===null){for(;rrrr?(Or=$n,$n=null):Or=$n.sibling;var Va=cr(Bt,$n,nr.value,rn);if(Va===null){$n===null&&($n=Or);break}p&&$n&&Va.alternate===null&&y(Bt,$n),Dt=Qe(Va,Dt,rr),On===null?sn=Va:On.sibling=Va,On=Va,$n=Or}if(nr.done)return j(Bt,$n),sn;if($n===null){for(;!nr.done;rr++,nr=Kt.next())nr=Sr(Bt,nr.value,rn),nr!==null&&(Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr);return sn}for($n=R(Bt,$n);!nr.done;rr++,nr=Kt.next())nr=Lr($n,Bt,rr,nr.value,rn),nr!==null&&(p&&nr.alternate!==null&&$n.delete(nr.key===null?rr:nr.key),Dt=Qe(nr,Dt,rr),On===null?sn=nr:On.sibling=nr,On=nr);return p&&$n.forEach(function(el){return y(Bt,el)}),sn}return function(Bt,Dt,Kt,rn){var sn=typeof Kt=="object"&&Kt!==null&&Kt.type===Ze&&Kt.key===null;sn&&(Kt=Kt.props.children);var On=typeof Kt=="object"&&Kt!==null;if(On)switch(Kt.$$typeof){case q:e:{for(On=Kt.key,sn=Dt;sn!==null;){if(sn.key===On)if(sn.tag===7?Kt.type===Ze:sn.elementType===Kt.type){j(Bt,sn.sibling),Dt=H(sn,Kt.type===Ze?Kt.props.children:Kt.props,rn),Dt.ref=_s(Bt,sn,Kt),Dt.return=Bt,Bt=Dt;break e}else{j(Bt,sn);break}else y(Bt,sn);sn=sn.sibling}Kt.type===Ze?(Dt=Fo(Kt.props.children,Bt.mode,rn,Kt.key),Dt.return=Bt,Bt=Dt):(rn=Zi(Kt.type,Kt.key,Kt.props,null,Bt.mode,rn),rn.ref=_s(Bt,Dt,Kt),rn.return=Bt,Bt=rn)}return st(Bt);case He:e:{for(sn=Kt.key;Dt!==null;){if(Dt.key===sn)if(Dt.tag===4&&Dt.stateNode.containerInfo===Kt.containerInfo&&Dt.stateNode.implementation===Kt.implementation){j(Bt,Dt.sibling),Dt=H(Dt,Kt.children||[],rn),Dt.return=Bt,Bt=Dt;break e}else{j(Bt,Dt);break}else y(Bt,Dt);Dt=Dt.sibling}Dt=Ul(Kt,Bt.mode,rn),Dt.return=Bt,Bt=Dt}return st(Bt)}if(typeof Kt=="string"||typeof Kt=="number")return Kt=""+Kt,Dt!==null&&Dt.tag===6?(j(Bt,Dt.sibling),Dt=H(Dt,Kt,rn),Dt.return=Bt,Bt=Dt):(j(Bt,Dt),Dt=Il(Kt,Bt.mode,rn),Dt.return=Bt,Bt=Dt),st(Bt);if(Yr(Kt))return Tr(Bt,Dt,Kt,rn);if(Te(Kt))return fo(Bt,Dt,Kt,rn);if(On&&Li(Bt,Kt),typeof Kt=="undefined"&&!sn)switch(Bt.tag){case 1:case 0:throw Bt=Bt.type,Error(t(152,Bt.displayName||Bt.name||"Component"))}return j(Bt,Dt)}}var Ts=Wl(!0),al=Wl(!1),qs={},Za={current:qs},ei={current:qs},ti={current:qs};function _o(p){if(p===qs)throw Error(t(174));return p}function ol(p,y){pr(ti,y,p),pr(ei,p,p),pr(Za,qs,p);var j=y.nodeType;switch(j){case 9:case 11:y=(y=y.documentElement)?y.namespaceURI:be(null,"");break;default:j=j===8?y.parentNode:y,y=j.namespaceURI||null,j=j.tagName,y=be(y,j)}Er(Za,p),pr(Za,y,p)}function As(p){Er(Za,p),Er(ei,p),Er(ti,p)}function kl(p){_o(ti.current);var y=_o(Za.current),j=be(y,p.type);y!==j&&(pr(ei,p,p),pr(Za,j,p))}function sl(p){ei.current===p&&(Er(Za,p),Er(ei,p))}var Cr={current:0};function Di(p){for(var y=p;y!==null;){if(y.tag===13){var j=y.memoizedState;if(j!==null&&(j=j.dehydrated,j===null||j.data===Ho||j.data===Xr))return y}else if(y.tag===19&&y.memoizedProps.revealOrder!==void 0){if((y.effectTag&64)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===p)break;for(;y.sibling===null;){if(y.return===null||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}function Hl(p,y){return{responder:p,props:y}}var Ii=J.ReactCurrentDispatcher,Ma=J.ReactCurrentBatchConfig,ni=0,Lo=null,Jr=null,_a=null,Rs=null,ua=null,ws=null,Ls=0,qa=null,ri=0,ai=!1,lo=null,oi=0;function va(){throw Error(t(321))}function il(p,y){if(y===null)return!1;for(var j=0;jLs&&(Ls=dn,Ji(Ls))):(Lu(dn,jt.suspenseConfig),Qe=jt.eagerReducer===p?jt.eagerState:p(Qe,jt.action)),st=jt,jt=jt.next}while(jt!==null&&jt!==R);$t||(vt=st,H=Qe),Ya(Qe,y.memoizedState)||(eo=!0),y.memoizedState=Qe,y.baseUpdate=vt,y.baseState=H,j.lastRenderedState=Qe}return[y.memoizedState,j.dispatch]}function ul(p){var y=Ds();return typeof p=="function"&&(p=p()),y.memoizedState=y.baseState=p,p=y.queue={last:null,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:p},p=p.dispatch=_l.bind(null,Lo,p),[y.memoizedState,p]}function cl(p){return zl(Gl,p)}function dl(p,y,j,R){return p={tag:p,create:y,destroy:j,deps:R,next:null},qa===null?(qa={lastEffect:null},qa.lastEffect=p.next=p):(y=qa.lastEffect,y===null?qa.lastEffect=p.next=p:(j=y.next,y.next=p,p.next=j,qa.lastEffect=p)),p}function pl(p,y,j,R){var H=Ds();ri|=p,H.memoizedState=dl(y,j,void 0,R===void 0?null:R)}function fl(p,y,j,R){var H=si();R=R===void 0?null:R;var Qe=void 0;if(Jr!==null){var st=Jr.memoizedState;if(Qe=st.destroy,R!==null&&il(R,st.deps)){dl(0,j,Qe,R);return}}ri|=p,H.memoizedState=dl(y,j,Qe,R)}function Kl(p,y){return pl(516,192,p,y)}function Xl(p,y){return fl(516,192,p,y)}function Ql(p,y){if(typeof y=="function")return p=p(),y(p),function(){y(null)};if(y!=null)return p=p(),y.current=p,function(){y.current=null}}function Yl(){}function Jl(p,y){return Ds().memoizedState=[p,y===void 0?null:y],p}function Zl(p,y){var j=si();y=y===void 0?null:y;var R=j.memoizedState;return R!==null&&y!==null&&il(y,R[1])?R[0]:(j.memoizedState=[p,y],p)}function _l(p,y,j){if(!(25>oi))throw Error(t(301));var R=p.alternate;if(p===Lo||R!==null&&R===Lo)if(ai=!0,p={expirationTime:ni,suspenseConfig:null,action:j,eagerReducer:null,eagerState:null,next:null},lo===null&&(lo=new Map),j=lo.get(y),j===void 0)lo.set(y,p);else{for(y=j;y.next!==null;)y=y.next;y.next=p}else{var H=Ha(),Qe=fr.suspense;H=ns(H,p,Qe),Qe={expirationTime:H,suspenseConfig:Qe,action:j,eagerReducer:null,eagerState:null,next:null};var st=y.last;if(st===null)Qe.next=Qe;else{var vt=st.next;vt!==null&&(Qe.next=vt),st.next=Qe}if(y.last=Qe,p.expirationTime===0&&(R===null||R.expirationTime===0)&&(R=y.lastRenderedReducer,R!==null))try{var jt=y.lastRenderedState,$t=R(jt,j);if(Qe.eagerReducer=R,Qe.eagerState=$t,Ya($t,jt))return}catch(dn){}finally{}Uo(p,H)}}var Ui={readContext:Wa,useCallback:va,useContext:va,useEffect:va,useImperativeHandle:va,useLayoutEffect:va,useMemo:va,useReducer:va,useRef:va,useState:va,useDebugValue:va,useResponder:va,useDeferredValue:va,useTransition:va},Qu={readContext:Wa,useCallback:Jl,useContext:Wa,useEffect:Kl,useImperativeHandle:function(p,y,j){return j=j!=null?j.concat([p]):null,pl(4,36,Ql.bind(null,y,p),j)},useLayoutEffect:function(p,y){return pl(4,36,p,y)},useMemo:function(p,y){var j=Ds();return y=y===void 0?null:y,p=p(),j.memoizedState=[p,y],p},useReducer:function(p,y,j){var R=Ds();return y=j!==void 0?j(y):y,R.memoizedState=R.baseState=y,p=R.queue={last:null,dispatch:null,lastRenderedReducer:p,lastRenderedState:y},p=p.dispatch=_l.bind(null,Lo,p),[R.memoizedState,p]},useRef:function(p){var y=Ds();return p={current:p},y.memoizedState=p},useState:ul,useDebugValue:Yl,useResponder:Hl,useDeferredValue:function(p,y){var j=ul(p),R=j[0],H=j[1];return Kl(function(){r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=y===void 0?null:y;try{H(p)}finally{Ma.suspense=Qe}})},[p,y]),R},useTransition:function(p){var y=ul(!1),j=y[0],R=y[1];return[Jl(function(H){R(!0),r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=p===void 0?null:p;try{R(!1),H()}finally{Ma.suspense=Qe}})},[p,j]),j]}},ql={readContext:Wa,useCallback:Zl,useContext:Wa,useEffect:Xl,useImperativeHandle:function(p,y,j){return j=j!=null?j.concat([p]):null,fl(4,36,Ql.bind(null,y,p),j)},useLayoutEffect:function(p,y){return fl(4,36,p,y)},useMemo:function(p,y){var j=si();y=y===void 0?null:y;var R=j.memoizedState;return R!==null&&y!==null&&il(y,R[1])?R[0]:(p=p(),j.memoizedState=[p,y],p)},useReducer:zl,useRef:function(){return si().memoizedState},useState:cl,useDebugValue:Yl,useResponder:Hl,useDeferredValue:function(p,y){var j=cl(p),R=j[0],H=j[1];return Xl(function(){r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=y===void 0?null:y;try{H(p)}finally{Ma.suspense=Qe}})},[p,y]),R},useTransition:function(p){var y=cl(!1),j=y[0],R=y[1];return[Zl(function(H){R(!0),r.unstable_next(function(){var Qe=Ma.suspense;Ma.suspense=p===void 0?null:p;try{R(!1),H()}finally{Ma.suspense=Qe}})},[p,j]),j]}},uo=null,Do=null,qo=!1;function eu(p,y){var j=no(5,null,null,0);j.elementType="DELETED",j.type="DELETED",j.stateNode=y,j.return=p,j.effectTag=8,p.lastEffect!==null?(p.lastEffect.nextEffect=j,p.lastEffect=j):p.firstEffect=p.lastEffect=j}function tu(p,y){switch(p.tag){case 5:var j=p.type;return y=y.nodeType!==1||j.toLowerCase()!==y.nodeName.toLowerCase()?null:y,y!==null?(p.stateNode=y,!0):!1;case 6:return y=p.pendingProps===""||y.nodeType!==3?null:y,y!==null?(p.stateNode=y,!0):!1;case 13:return!1;default:return!1}}function ml(p){if(qo){var y=Do;if(y){var j=y;if(!tu(p,y)){if(y=oo(j.nextSibling),!y||!tu(p,y)){p.effectTag=p.effectTag&-1025|2,qo=!1,uo=p;return}eu(uo,j)}uo=p,Do=oo(y.firstChild)}else p.effectTag=p.effectTag&-1025|2,qo=!1,uo=p}}function nu(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;uo=p}function Ni(p){if(p!==uo)return!1;if(!qo)return nu(p),qo=!0,!1;var y=p.type;if(p.tag!==5||y!=="head"&&y!=="body"&&!cs(y,p.memoizedProps))for(y=Do;y;)eu(p,y),y=oo(y.nextSibling);if(nu(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(t(317));e:{for(p=p.nextSibling,y=0;p;){if(p.nodeType===8){var j=p.data;if(j===bo){if(y===0){Do=oo(p.nextSibling);break e}y--}else j!==yo&&j!==Xr&&j!==Ho||y++}p=p.nextSibling}Do=null}}else Do=uo?oo(p.stateNode.nextSibling):null;return!0}function hl(){Do=uo=null,qo=!1}var Yu=J.ReactCurrentOwner,eo=!1;function ya(p,y,j,R){y.child=p===null?al(y,null,j,R):Ts(y,p.child,j,R)}function ru(p,y,j,R,H){j=j.render;var Qe=y.ref;return Ro(y,H),R=ll(p,y,j,R,Qe,H),p!==null&&!eo?(y.updateQueue=p.updateQueue,y.effectTag&=-517,p.expirationTime<=H&&(p.expirationTime=0),co(p,y,H)):(y.effectTag|=1,ya(p,y,R,H),y.child)}function au(p,y,j,R,H,Qe){if(p===null){var st=j.type;return typeof st=="function"&&!Dl(st)&&st.defaultProps===void 0&&j.compare===null&&j.defaultProps===void 0?(y.tag=15,y.type=st,ou(p,y,st,R,H,Qe)):(p=Zi(j.type,null,R,null,y.mode,Qe),p.ref=y.ref,p.return=y,y.child=p)}return st=p.child,Hy)&&ts.set(p,y)))}}function Qi(p,y){p.expirationTimep?y:p):y)}function Ea(p){if(p.lastExpiredTime!==0)p.callbackExpirationTime=1073741823,p.callbackPriority=99,p.callbackNode=Pi(Al.bind(null,p));else{var y=Yi(p),j=p.callbackNode;if(y===0)j!==null&&(p.callbackNode=null,p.callbackExpirationTime=0,p.callbackPriority=90);else{var R=Ha();if(y===1073741823?R=99:y===1||y===2?R=95:(R=10*(1073741821-y)-10*(1073741821-R),R=0>=R?99:250>=R?98:5250>=R?97:95),j!==null){var H=p.callbackPriority;if(p.callbackExpirationTime===y&&H>=R)return;j!==Os&&Ur(j)}p.callbackExpirationTime=y,p.callbackPriority=R,y=y===1073741823?Pi(Al.bind(null,p)):Si(R,Mu.bind(null,p),{timeout:10*(1073741821-y)-ha()}),p.callbackNode=y}}}function Mu(p,y){if(Xi=0,y)return y=Ha(),Nl(p,y),Ea(p),null;var j=Yi(p);if(j!==0){if(y=p.callbackNode,(Bn&(ka|to))!==Wr)throw Error(t(327));if(Us(),p===ba&&j===ta||rs(p,j),Jn!==null){var R=Bn;Bn|=ka;var H=wu(p);do try{ac();break}catch(vt){Ru(p,vt)}while(1);if(Je(),Bn=R,$i.current=H,kr===Bi)throw y=Hi,rs(p,j),ss(p,j),Ea(p),y;if(Jn===null)switch(H=p.finishedWork=p.current.alternate,p.finishedExpirationTime=j,R=kr,ba=null,R){case es:case Bi:throw Error(t(345));case Su:Nl(p,2=j){p.lastPingedTime=j,rs(p,j);break}}if(Qe=Yi(p),Qe!==0&&Qe!==j)break;if(R!==0&&R!==j){p.lastPingedTime=R;break}p.timeoutHandle=ds(No.bind(null,p),H);break}No(p);break;case ki:if(ss(p,j),R=p.lastSuspendedTime,j===R&&(p.nextKnownPendingLevel=Rl(H)),Gi&&(H=p.lastPingedTime,H===0||H>=j)){p.lastPingedTime=j,rs(p,j);break}if(H=Yi(p),H!==0&&H!==j)break;if(R!==0&&R!==j){p.lastPingedTime=R;break}if(li!==1073741823?R=10*(1073741821-li)-ha():po===1073741823?R=0:(R=10*(1073741821-po)-5e3,H=ha(),j=10*(1073741821-j)-H,R=H-R,0>R&&(R=0),R=(120>R?120:480>R?480:1080>R?1080:1920>R?1920:3e3>R?3e3:4320>R?4320:1960*tc(R/1960))-R,j=R?R=0:(H=st.busyDelayMs|0,Qe=ha()-(10*(1073741821-Qe)-(st.timeoutMs|0||5e3)),R=Qe<=H?0:H+R-Qe),10 component higher in the tree to provide a loading indicator or placeholder to display.`+ht(H))}kr!==Sl&&(kr=Su),Qe=jl(Qe,H),jt=R;do{switch(jt.tag){case 3:st=Qe,jt.effectTag|=4096,jt.expirationTime=y;var Dt=xu(jt,st,y);Nn(jt,Dt);break e;case 1:st=Qe;var Kt=jt.type,rn=jt.stateNode;if((jt.effectTag&64)===0&&(typeof Kt.getDerivedStateFromError=="function"||rn!==null&&typeof rn.componentDidCatch=="function"&&(Io===null||!Io.has(rn)))){jt.effectTag|=4096,jt.expirationTime=y;var sn=Ou(jt,st,y);Nn(jt,sn);break e}}jt=jt.return}while(jt!==null)}Jn=Iu(Jn)}catch(On){y=On;continue}break}while(1)}function wu(){var p=$i.current;return $i.current=Ui,p===null?Ui:p}function Lu(p,y){pui&&(ui=p)}function rc(){for(;Jn!==null;)Jn=Du(Jn)}function ac(){for(;Jn!==null&&!Kn();)Jn=Du(Jn)}function Du(p){var y=Nu(p.alternate,p,ta);return p.memoizedProps=p.pendingProps,y===null&&(y=Iu(p)),Cu.current=null,y}function Iu(p){Jn=p;do{var y=Jn.alternate;if(p=Jn.return,(Jn.effectTag&2048)===0){e:{var j=y;y=Jn;var R=ta,H=y.pendingProps;switch(y.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:ur(y.type)&&Ee(y);break;case 3:As(y),lt(y),H=y.stateNode,H.pendingContext&&(H.context=H.pendingContext,H.pendingContext=null),(j===null||j.child===null)&&Ni(y)&&Is(y),El(y);break;case 5:sl(y),R=_o(ti.current);var Qe=y.type;if(j!==null&&y.stateNode!=null)fu(j,y,Qe,H,R),j.ref!==y.ref&&(y.effectTag|=128);else if(H){var st=_o(Za.current);if(Ni(y)){H=y;var vt=H.stateNode;j=H.type;var jt=H.memoizedProps,$t=R;vt[Ra]=H,vt[Vo]=jt,Qe=void 0,R=vt;switch(j){case"iframe":case"object":case"embed":lr("load",R);break;case"video":case"audio":for(vt=0;vt",vt=jt.removeChild(jt.firstChild)):typeof jt.is=="string"?vt=vt.createElement($t,{is:jt.is}):(vt=vt.createElement($t),$t==="select"&&($t=vt,jt.multiple?$t.multiple=!0:jt.size&&($t.size=jt.size))):vt=vt.createElementNS(st,$t),jt=vt,jt[Ra]=j,jt[Vo]=H,pu(jt,y,!1,!1),y.stateNode=jt,$t=Qe,j=H;var dn=R,Sr=Ka($t,j);switch($t){case"iframe":case"object":case"embed":lr("load",jt),R=j;break;case"video":case"audio":for(R=0;RH.tailExpiration&&1Qe&&(Qe=j),jt>Qe&&(Qe=jt),R=R.sibling;H.childExpirationTime=Qe}if(y!==null)return y;p!==null&&(p.effectTag&2048)===0&&(p.firstEffect===null&&(p.firstEffect=Jn.firstEffect),Jn.lastEffect!==null&&(p.lastEffect!==null&&(p.lastEffect.nextEffect=Jn.firstEffect),p.lastEffect=Jn.lastEffect),1p?y:p}function No(p){var y=Ks();return Ao(99,oc.bind(null,p,y)),null}function oc(p,y){do Us();while(ci!==null);if((Bn&(ka|to))!==Wr)throw Error(t(327));var j=p.finishedWork,R=p.finishedExpirationTime;if(j===null)return null;if(p.finishedWork=null,p.finishedExpirationTime=0,j===p.current)throw Error(t(177));p.callbackNode=null,p.callbackExpirationTime=0,p.callbackPriority=90,p.nextKnownPendingLevel=0;var H=Rl(j);if(p.firstPendingTime=H,R<=p.lastSuspendedTime?p.firstSuspendedTime=p.lastSuspendedTime=p.nextKnownPendingLevel=0:R<=p.firstSuspendedTime&&(p.firstSuspendedTime=R-1),R<=p.lastPingedTime&&(p.lastPingedTime=0),R<=p.lastExpiredTime&&(p.lastExpiredTime=0),p===ba&&(Jn=ba=null,ta=0),1vt&&($t=vt,vt=st,st=$t),$t=_t(rn,st),dn=_t(rn,vt),$t&&dn&&(On.rangeCount!==1||On.anchorNode!==$t.node||On.anchorOffset!==$t.offset||On.focusNode!==dn.node||On.focusOffset!==dn.offset)&&(sn=sn.createRange(),sn.setStart($t.node,$t.offset),On.removeAllRanges(),st>vt?(On.addRange(sn),On.extend(dn.node,dn.offset)):(sn.setEnd(dn.node,dn.offset),On.addRange(sn)))))),sn=[],On=rn;On=On.parentNode;)On.nodeType===1&&sn.push({element:On,left:On.scrollLeft,top:On.scrollTop});for(typeof rn.focus=="function"&&rn.focus(),rn=0;rn=j?uu(p,y,j):(pr(Cr,Cr.current&1,y),y=co(p,y,j),y!==null?y.sibling:null);pr(Cr,Cr.current&1,y);break;case 19:if(R=y.childExpirationTime>=j,(p.effectTag&64)!==0){if(R)return du(p,y,j);y.effectTag|=64}if(H=y.memoizedState,H!==null&&(H.rendering=null,H.tail=null),pr(Cr,Cr.current,y),!R)return null}return co(p,y,j)}eo=!1}}else eo=!1;y.expirationTime=0;switch(y.tag){case 2:if(R=y.type,p!==null&&(p.alternate=null,y.alternate=null,y.effectTag|=2),p=y.pendingProps,H=$a(y,Rr.current),Ro(y,j),H=ll(null,y,R,p,H,j),y.effectTag|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0){if(y.tag=1,Vl(),ur(R)){var Qe=!0;un(y)}else Qe=!1;y.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;var st=R.getDerivedStateFromProps;typeof st=="function"&&wo(y,R,st,p),H.updater=Pa,y.stateNode=H,H._reactInternalFiber=y,wi(y,R,p,j),y=vl(null,y,R,!0,Qe,j)}else y.tag=0,ya(null,y,H,j),y=y.child;return y;case 16:if(H=y.elementType,p!==null&&(p.alternate=null,y.alternate=null,y.effectTag|=2),p=y.pendingProps,Ve(H),H._status!==1)throw H._result;H=H._result,y.type=H,Qe=y.tag=pc(H),p=ga(H,p);switch(Qe){case 0:y=gl(null,y,H,p,j);break;case 1:y=iu(null,y,H,p,j);break;case 11:y=ru(null,y,H,p,j);break;case 14:y=au(null,y,H,ga(H.type,p),R,j);break;default:throw Error(t(306,H,""))}return y;case 0:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),gl(p,y,R,H,j);case 1:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),iu(p,y,R,H,j);case 3:if(lu(y),R=y.updateQueue,R===null)throw Error(t(282));if(H=y.memoizedState,H=H!==null?H.element:null,Nr(y,R,y.pendingProps,null,j),R=y.memoizedState.element,R===H)hl(),y=co(p,y,j);else{if((H=y.stateNode.hydrate)&&(Do=oo(y.stateNode.containerInfo.firstChild),uo=y,H=qo=!0),H)for(j=al(y,null,R,j),y.child=j;j;)j.effectTag=j.effectTag&-3|1024,j=j.sibling;else ya(p,y,R,j),hl();y=y.child}return y;case 5:return kl(y),p===null&&ml(y),R=y.type,H=y.pendingProps,Qe=p!==null?p.memoizedProps:null,st=H.children,cs(R,H)?st=null:Qe!==null&&cs(R,Qe)&&(y.effectTag|=16),su(p,y),y.mode&4&&j!==1&&H.hidden?(y.expirationTime=y.childExpirationTime=1,y=null):(ya(p,y,st,j),y=y.child),y;case 6:return p===null&&ml(y),null;case 13:return uu(p,y,j);case 4:return ol(y,y.stateNode.containerInfo),R=y.pendingProps,p===null?y.child=Ts(y,null,R,j):ya(p,y,R,j),y.child;case 11:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),ru(p,y,R,H,j);case 7:return ya(p,y,y.pendingProps,j),y.child;case 8:return ya(p,y,y.pendingProps.children,j),y.child;case 12:return ya(p,y,y.pendingProps.children,j),y.child;case 10:e:{if(R=y.type._context,H=y.pendingProps,st=y.memoizedProps,Qe=H.value,Ti(y,Qe),st!==null){var vt=st.value;if(Qe=Ya(vt,Qe)?0:(typeof R._calculateChangedBits=="function"?R._calculateChangedBits(vt,Qe):1073741823)|0,Qe===0){if(st.children===H.children&&!yr.current){y=co(p,y,j);break e}}else for(vt=y.child,vt!==null&&(vt.return=y);vt!==null;){var jt=vt.dependencies;if(jt!==null){st=vt.child;for(var $t=jt.firstContext;$t!==null;){if($t.context===R&&($t.observedBits&Qe)!==0){vt.tag===1&&($t=cn(j,null),$t.tag=2,In(vt,$t)),vt.expirationTime=y&&p<=y}function ss(p,y){var j=p.firstSuspendedTime,R=p.lastSuspendedTime;jy||j===0)&&(p.lastSuspendedTime=y),y<=p.lastPingedTime&&(p.lastPingedTime=0),y<=p.lastExpiredTime&&(p.lastExpiredTime=0)}function $u(p,y){y>p.firstPendingTime&&(p.firstPendingTime=y);var j=p.firstSuspendedTime;j!==0&&(y>=j?p.firstSuspendedTime=p.lastSuspendedTime=p.nextKnownPendingLevel=0:y>=p.lastSuspendedTime&&(p.lastSuspendedTime=y+1),y>p.nextKnownPendingLevel&&(p.nextKnownPendingLevel=y))}function Nl(p,y){var j=p.lastExpiredTime;(j===0||j>y)&&(p.lastExpiredTime=y)}function _i(p,y,j,R){var H=y.current,Qe=Ha(),st=fr.suspense;Qe=ns(Qe,H,st);e:if(j){j=j._reactInternalFiber;t:{if(Gt(j)!==j||j.tag!==1)throw Error(t(170));var vt=j;do{switch(vt.tag){case 3:vt=vt.stateNode.context;break t;case 1:if(ur(vt.type)){vt=vt.stateNode.__reactInternalMemoizedMergedChildContext;break t}}vt=vt.return}while(vt!==null);throw Error(t(171))}if(j.tag===1){var jt=j.type;if(ur(jt)){j=zt(j,jt,vt);break e}}j=vt}else j=ma;return y.context===null?y.context=j:y.pendingContext=j,y=cn(Qe,st),y.payload={element:p},R=R===void 0?null:R,R!==null&&(y.callback=R),In(H,y),Uo(H,Qe),Qe}function Fl(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function Bu(p,y){p=p.memoizedState,p!==null&&p.dehydrated!==null&&p.retryTimev;)r(i,v,arguments[v++]);return i.length=m,i}})},z9fm:function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("oa35"),t=e("FCfD"),u=e("xH5X"),v=e("dagG");a("match",1,function(m,i,s){return[function(l){var f=t(this),o=l==null?void 0:l[m];return o!==void 0?o.call(l,f):new RegExp(l)[m](String(f))},function(d){var l=s(i,d,this);if(l.done)return l.value;var f=n(d),o=String(this);if(!f.global)return v(f,o);var h=f.unicode;f.lastIndex=0;for(var c=[],b=0,E;(E=v(f,o))!==null;){var O=String(E[0]);c[b]=O,O===""&&(f.lastIndex=u(o,r(f.lastIndex),h)),b++}return b===0?null:c}]})},zLVn:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(n==null)return{};var t={},u=Object.keys(n),v,m;for(m=0;m=0)continue;t[v]=n[v]}return t}},zT1h:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("i8i4"),n=e.n(a);function r(t,u,v,m){var i=n.a.unstable_batchedUpdates?function(d){n.a.unstable_batchedUpdates(v,d)}:v;return t.addEventListener&&t.addEventListener(u,i,m),{remove:function(){t.removeEventListener&&t.removeEventListener(u,i)}}}},zTPR:function(x,g,e){"use strict";var a=e("/gva"),n=e("vO0A");x.exports=a("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"zU+Z":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("WCUW"),u=e("6fQ5"),v={namespace:"problemset",state:{disciplinesData:void 0,courseOptions:[],basketData:void 0,editData:void 0,groupData:void 0,teachGroupData:void 0,actionTabs:{key:"",params:{}}},effects:{getDisciplines:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.v,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{disciplinesData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getEditDisciplines:r.a.mark(function m(i,s){var d,l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(t.v,d);case 4:return o=E.sent,h=o==null?void 0:o.disciplines,c=Object(u.a)(h),E.next=9,f({type:"save",payload:{courseOptions:c,disciplinesData:Object(a.a)({},o)}});case 9:return E.abrupt("return",o);case 10:case"end":return E.stop()}},m)}),getBasketList:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.u,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{basketData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getTeachGroupData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.C,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{teachGroupData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getEditData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.w,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getGroupData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.x,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{groupData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getItemBanks:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.y,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setPrivate:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.Q,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setPublic:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.R,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),handleDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.E,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),startExperience:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.T,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),cancel:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.m,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),select:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.N,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),examUnselectAll:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.s,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),basketDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.d,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),unselectAll:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.U,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),addKnowledge:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.a,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),editProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.r,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),addProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.b,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setActionTabs:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(a.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(a.a)(Object(a.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},zsCH:function(x,g,e){var a=e("MMxC"),n=e("tSXo"),r=e("f1E4"),t=e("jtLI"),u=e("g8rt"),v=e("Acmb");function m(i,s){var d=arguments.length<3?i:arguments[2],l,f;if(r(i)===d)return i[s];if(l=u.f(i,s))return t(l,"value")?l.value:l.get===void 0?void 0:l.get.call(d);if(n(f=v(i)))return m(f,s,d)}a({target:"Reflect",stat:!0},{get:m})},zv1X:function(x,g,e){var a=e("7BAe"),n=e("EzR6"),r=e("cTDu"),t=e("oa35"),u=e("nMuc"),v=[].push,m=function(i){var s=i==1,d=i==2,l=i==3,f=i==4,o=i==6,h=i==5||o;return function(c,b,E,O){for(var C=r(c),M=n(C),w=a(b,E,3),A=t(M.length),L=0,z=O||u,G=s?z(c,A):d?z(c,0):void 0,D,N;A>L;L++)if((h||L in M)&&(D=M[L],N=w(D,L,C),i)){if(s)G[L]=N;else if(N)switch(i){case 3:return!0;case 5:return D;case 6:return L;case 2:v.call(G,D)}else if(f)return!1}return o?-1:l||f?f:G}};x.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6)}}}); +Add a component higher in the tree to provide a loading indicator or placeholder to display.`+ht(H))}kr!==Sl&&(kr=Su),Qe=jl(Qe,H),jt=R;do{switch(jt.tag){case 3:st=Qe,jt.effectTag|=4096,jt.expirationTime=y;var Dt=xu(jt,st,y);Nn(jt,Dt);break e;case 1:st=Qe;var Kt=jt.type,rn=jt.stateNode;if((jt.effectTag&64)===0&&(typeof Kt.getDerivedStateFromError=="function"||rn!==null&&typeof rn.componentDidCatch=="function"&&(Io===null||!Io.has(rn)))){jt.effectTag|=4096,jt.expirationTime=y;var sn=Ou(jt,st,y);Nn(jt,sn);break e}}jt=jt.return}while(jt!==null)}Jn=Iu(Jn)}catch(On){y=On;continue}break}while(1)}function wu(){var p=$i.current;return $i.current=Ui,p===null?Ui:p}function Lu(p,y){pui&&(ui=p)}function rc(){for(;Jn!==null;)Jn=Du(Jn)}function ac(){for(;Jn!==null&&!Kn();)Jn=Du(Jn)}function Du(p){var y=Nu(p.alternate,p,ta);return p.memoizedProps=p.pendingProps,y===null&&(y=Iu(p)),Cu.current=null,y}function Iu(p){Jn=p;do{var y=Jn.alternate;if(p=Jn.return,(Jn.effectTag&2048)===0){e:{var j=y;y=Jn;var R=ta,H=y.pendingProps;switch(y.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:ur(y.type)&&Ee(y);break;case 3:As(y),lt(y),H=y.stateNode,H.pendingContext&&(H.context=H.pendingContext,H.pendingContext=null),(j===null||j.child===null)&&Ni(y)&&Is(y),El(y);break;case 5:sl(y),R=_o(ti.current);var Qe=y.type;if(j!==null&&y.stateNode!=null)fu(j,y,Qe,H,R),j.ref!==y.ref&&(y.effectTag|=128);else if(H){var st=_o(Za.current);if(Ni(y)){H=y;var vt=H.stateNode;j=H.type;var jt=H.memoizedProps,$t=R;vt[Ra]=H,vt[Vo]=jt,Qe=void 0,R=vt;switch(j){case"iframe":case"object":case"embed":lr("load",R);break;case"video":case"audio":for(vt=0;vt",vt=jt.removeChild(jt.firstChild)):typeof jt.is=="string"?vt=vt.createElement($t,{is:jt.is}):(vt=vt.createElement($t),$t==="select"&&($t=vt,jt.multiple?$t.multiple=!0:jt.size&&($t.size=jt.size))):vt=vt.createElementNS(st,$t),jt=vt,jt[Ra]=j,jt[Vo]=H,pu(jt,y,!1,!1),y.stateNode=jt,$t=Qe,j=H;var dn=R,Sr=Ka($t,j);switch($t){case"iframe":case"object":case"embed":lr("load",jt),R=j;break;case"video":case"audio":for(R=0;RH.tailExpiration&&1Qe&&(Qe=j),jt>Qe&&(Qe=jt),R=R.sibling;H.childExpirationTime=Qe}if(y!==null)return y;p!==null&&(p.effectTag&2048)===0&&(p.firstEffect===null&&(p.firstEffect=Jn.firstEffect),Jn.lastEffect!==null&&(p.lastEffect!==null&&(p.lastEffect.nextEffect=Jn.firstEffect),p.lastEffect=Jn.lastEffect),1p?y:p}function No(p){var y=Ks();return Ao(99,oc.bind(null,p,y)),null}function oc(p,y){do Us();while(ci!==null);if((Bn&(ka|to))!==Wr)throw Error(t(327));var j=p.finishedWork,R=p.finishedExpirationTime;if(j===null)return null;if(p.finishedWork=null,p.finishedExpirationTime=0,j===p.current)throw Error(t(177));p.callbackNode=null,p.callbackExpirationTime=0,p.callbackPriority=90,p.nextKnownPendingLevel=0;var H=Rl(j);if(p.firstPendingTime=H,R<=p.lastSuspendedTime?p.firstSuspendedTime=p.lastSuspendedTime=p.nextKnownPendingLevel=0:R<=p.firstSuspendedTime&&(p.firstSuspendedTime=R-1),R<=p.lastPingedTime&&(p.lastPingedTime=0),R<=p.lastExpiredTime&&(p.lastExpiredTime=0),p===ba&&(Jn=ba=null,ta=0),1vt&&($t=vt,vt=st,st=$t),$t=_t(rn,st),dn=_t(rn,vt),$t&&dn&&(On.rangeCount!==1||On.anchorNode!==$t.node||On.anchorOffset!==$t.offset||On.focusNode!==dn.node||On.focusOffset!==dn.offset)&&(sn=sn.createRange(),sn.setStart($t.node,$t.offset),On.removeAllRanges(),st>vt?(On.addRange(sn),On.extend(dn.node,dn.offset)):(sn.setEnd(dn.node,dn.offset),On.addRange(sn)))))),sn=[],On=rn;On=On.parentNode;)On.nodeType===1&&sn.push({element:On,left:On.scrollLeft,top:On.scrollTop});for(typeof rn.focus=="function"&&rn.focus(),rn=0;rn=j?uu(p,y,j):(pr(Cr,Cr.current&1,y),y=co(p,y,j),y!==null?y.sibling:null);pr(Cr,Cr.current&1,y);break;case 19:if(R=y.childExpirationTime>=j,(p.effectTag&64)!==0){if(R)return du(p,y,j);y.effectTag|=64}if(H=y.memoizedState,H!==null&&(H.rendering=null,H.tail=null),pr(Cr,Cr.current,y),!R)return null}return co(p,y,j)}eo=!1}}else eo=!1;y.expirationTime=0;switch(y.tag){case 2:if(R=y.type,p!==null&&(p.alternate=null,y.alternate=null,y.effectTag|=2),p=y.pendingProps,H=$a(y,Rr.current),Ro(y,j),H=ll(null,y,R,p,H,j),y.effectTag|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0){if(y.tag=1,Vl(),ur(R)){var Qe=!0;un(y)}else Qe=!1;y.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;var st=R.getDerivedStateFromProps;typeof st=="function"&&wo(y,R,st,p),H.updater=Pa,y.stateNode=H,H._reactInternalFiber=y,wi(y,R,p,j),y=vl(null,y,R,!0,Qe,j)}else y.tag=0,ya(null,y,H,j),y=y.child;return y;case 16:if(H=y.elementType,p!==null&&(p.alternate=null,y.alternate=null,y.effectTag|=2),p=y.pendingProps,Ve(H),H._status!==1)throw H._result;H=H._result,y.type=H,Qe=y.tag=pc(H),p=ga(H,p);switch(Qe){case 0:y=gl(null,y,H,p,j);break;case 1:y=iu(null,y,H,p,j);break;case 11:y=ru(null,y,H,p,j);break;case 14:y=au(null,y,H,ga(H.type,p),R,j);break;default:throw Error(t(306,H,""))}return y;case 0:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),gl(p,y,R,H,j);case 1:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),iu(p,y,R,H,j);case 3:if(lu(y),R=y.updateQueue,R===null)throw Error(t(282));if(H=y.memoizedState,H=H!==null?H.element:null,Nr(y,R,y.pendingProps,null,j),R=y.memoizedState.element,R===H)hl(),y=co(p,y,j);else{if((H=y.stateNode.hydrate)&&(Do=oo(y.stateNode.containerInfo.firstChild),uo=y,H=qo=!0),H)for(j=al(y,null,R,j),y.child=j;j;)j.effectTag=j.effectTag&-3|1024,j=j.sibling;else ya(p,y,R,j),hl();y=y.child}return y;case 5:return kl(y),p===null&&ml(y),R=y.type,H=y.pendingProps,Qe=p!==null?p.memoizedProps:null,st=H.children,cs(R,H)?st=null:Qe!==null&&cs(R,Qe)&&(y.effectTag|=16),su(p,y),y.mode&4&&j!==1&&H.hidden?(y.expirationTime=y.childExpirationTime=1,y=null):(ya(p,y,st,j),y=y.child),y;case 6:return p===null&&ml(y),null;case 13:return uu(p,y,j);case 4:return ol(y,y.stateNode.containerInfo),R=y.pendingProps,p===null?y.child=Ts(y,null,R,j):ya(p,y,R,j),y.child;case 11:return R=y.type,H=y.pendingProps,H=y.elementType===R?H:ga(R,H),ru(p,y,R,H,j);case 7:return ya(p,y,y.pendingProps,j),y.child;case 8:return ya(p,y,y.pendingProps.children,j),y.child;case 12:return ya(p,y,y.pendingProps.children,j),y.child;case 10:e:{if(R=y.type._context,H=y.pendingProps,st=y.memoizedProps,Qe=H.value,Ti(y,Qe),st!==null){var vt=st.value;if(Qe=Ya(vt,Qe)?0:(typeof R._calculateChangedBits=="function"?R._calculateChangedBits(vt,Qe):1073741823)|0,Qe===0){if(st.children===H.children&&!yr.current){y=co(p,y,j);break e}}else for(vt=y.child,vt!==null&&(vt.return=y);vt!==null;){var jt=vt.dependencies;if(jt!==null){st=vt.child;for(var $t=jt.firstContext;$t!==null;){if($t.context===R&&($t.observedBits&Qe)!==0){vt.tag===1&&($t=cn(j,null),$t.tag=2,In(vt,$t)),vt.expirationTime=y&&p<=y}function ss(p,y){var j=p.firstSuspendedTime,R=p.lastSuspendedTime;jy||j===0)&&(p.lastSuspendedTime=y),y<=p.lastPingedTime&&(p.lastPingedTime=0),y<=p.lastExpiredTime&&(p.lastExpiredTime=0)}function $u(p,y){y>p.firstPendingTime&&(p.firstPendingTime=y);var j=p.firstSuspendedTime;j!==0&&(y>=j?p.firstSuspendedTime=p.lastSuspendedTime=p.nextKnownPendingLevel=0:y>=p.lastSuspendedTime&&(p.lastSuspendedTime=y+1),y>p.nextKnownPendingLevel&&(p.nextKnownPendingLevel=y))}function Nl(p,y){var j=p.lastExpiredTime;(j===0||j>y)&&(p.lastExpiredTime=y)}function _i(p,y,j,R){var H=y.current,Qe=Ha(),st=fr.suspense;Qe=ns(Qe,H,st);e:if(j){j=j._reactInternalFiber;t:{if(Gt(j)!==j||j.tag!==1)throw Error(t(170));var vt=j;do{switch(vt.tag){case 3:vt=vt.stateNode.context;break t;case 1:if(ur(vt.type)){vt=vt.stateNode.__reactInternalMemoizedMergedChildContext;break t}}vt=vt.return}while(vt!==null);throw Error(t(171))}if(j.tag===1){var jt=j.type;if(ur(jt)){j=zt(j,jt,vt);break e}}j=vt}else j=ma;return y.context===null?y.context=j:y.pendingContext=j,y=cn(Qe,st),y.payload={element:p},R=R===void 0?null:R,R!==null&&(y.callback=R),In(H,y),Uo(H,Qe),Qe}function Fl(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function Bu(p,y){p=p.memoizedState,p!==null&&p.dehydrated!==null&&p.retryTimev;)r(i,v,arguments[v++]);return i.length=m,i}})},z9fm:function(x,g,e){"use strict";var a=e("ENif"),n=e("f1E4"),r=e("oa35"),t=e("FCfD"),u=e("xH5X"),v=e("dagG");a("match",1,function(m,i,s){return[function(l){var f=t(this),o=l==null?void 0:l[m];return o!==void 0?o.call(l,f):new RegExp(l)[m](String(f))},function(d){var l=s(i,d,this);if(l.done)return l.value;var f=n(d),o=String(this);if(!f.global)return v(f,o);var h=f.unicode;f.lastIndex=0;for(var c=[],b=0,E;(E=v(f,o))!==null;){var O=String(E[0]);c[b]=O,O===""&&(f.lastIndex=u(o,r(f.lastIndex),h)),b++}return b===0?null:c}]})},zLVn:function(x,g,e){"use strict";e.d(g,"a",function(){return a});function a(n,r){if(n==null)return{};var t={},u=Object.keys(n),v,m;for(m=0;m=0)continue;t[v]=n[v]}return t}},zT1h:function(x,g,e){"use strict";e.d(g,"a",function(){return r});var a=e("i8i4"),n=e.n(a);function r(t,u,v,m){var i=n.a.unstable_batchedUpdates?function(d){n.a.unstable_batchedUpdates(v,d)}:v;return t.addEventListener&&t.addEventListener(u,i,m),{remove:function(){t.removeEventListener&&t.removeEventListener(u,i)}}}},zTPR:function(x,g,e){"use strict";var a=e("/gva"),n=e("vO0A");x.exports=a("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},n)},"zU+Z":function(x,g,e){"use strict";var a=e("k1fw"),n=e("WmNS"),r=e.n(n),t=e("WCUW"),u=e("6fQ5"),v={namespace:"problemset",state:{disciplinesData:void 0,courseOptions:[],basketData:void 0,editData:void 0,groupData:void 0,teachGroupData:void 0,actionTabs:{key:"",params:{}}},effects:{getDisciplines:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.v,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{disciplinesData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getEditDisciplines:r.a.mark(function m(i,s){var d,l,f,o,h,c;return r.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=i.payload,l=s.call,f=s.put,E.next=4,l(t.v,d);case 4:return o=E.sent,h=o==null?void 0:o.disciplines,c=Object(u.a)(h),E.next=9,f({type:"save",payload:{courseOptions:c,disciplinesData:Object(a.a)({},o)}});case 9:return E.abrupt("return",o);case 10:case"end":return E.stop()}},m)}),getBasketList:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.u,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{basketData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getTeachGroupData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.C,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{teachGroupData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getEditData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.w,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{editData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getGroupData:r.a.mark(function m(i,s){var d,l,f,o;return r.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return d=i.payload,l=s.call,f=s.put,c.next=4,l(t.x,d);case 4:return o=c.sent,c.next=7,f({type:"save",payload:{groupData:Object(a.a)({},o)}});case 7:return c.abrupt("return",o);case 8:case"end":return c.stop()}},m)}),getItemBanks:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.y,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setPrivate:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.Q,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setPublic:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.R,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),handleDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.E,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),startExperience:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.T,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),cancel:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.m,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),select:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.N,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),examUnselectAll:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.s,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),basketDelete:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.d,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),unselectAll:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.U,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),addKnowledge:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.a,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),editProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.r,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),addProblemset:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,l(t.b,d);case 4:return h.abrupt("return",h.sent);case 5:case"end":return h.stop()}},m)}),setActionTabs:r.a.mark(function m(i,s){var d,l,f;return r.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=i.payload,l=s.call,f=s.put,h.next=4,f({type:"save",payload:{actionTabs:Object(a.a)({},d)}});case 4:case"end":return h.stop()}},m)})},reducers:{save:function(i,s){return Object(a.a)(Object(a.a)({},i),s.payload)}},subscriptions:{setup:function(i){var s=i.dispatch,d=i.history;return d.listen(function(l){var f=l.pathname;f==="/"&&s({type:"query"})})}}};g.a=v},zsCH:function(x,g,e){var a=e("MMxC"),n=e("tSXo"),r=e("f1E4"),t=e("jtLI"),u=e("g8rt"),v=e("Acmb");function m(i,s){var d=arguments.length<3?i:arguments[2],l,f;if(r(i)===d)return i[s];if(l=u.f(i,s))return t(l,"value")?l.value:l.get===void 0?void 0:l.get.call(d);if(n(f=v(i)))return m(f,s,d)}a({target:"Reflect",stat:!0},{get:m})},zv1X:function(x,g,e){var a=e("7BAe"),n=e("EzR6"),r=e("cTDu"),t=e("oa35"),u=e("nMuc"),v=[].push,m=function(i){var s=i==1,d=i==2,l=i==3,f=i==4,o=i==6,h=i==5||o;return function(c,b,E,O){for(var C=r(c),M=n(C),w=a(b,E,3),A=t(M.length),L=0,z=O||u,G=s?z(c,A):d?z(c,0):void 0,D,N;A>L;L++)if((h||L in M)&&(D=M[L],N=w(D,L,C),i)){if(s)G[L]=N;else if(N)switch(i){case 3:return!0;case 5:return D;case 6:return L;case 2:v.call(G,D)}else if(f)return!1}return o?-1:l||f?f:G}};x.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6)}}});