define(["gpui-style-inject","react","mobx"],(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=r(e),a=r(t),l=o(t);
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
function d(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}i.default("html, body, #root {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: hidden; }\n\n.g__index {\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  height: 100%; }\n");var c={main:"index-module_main__5MRku",table:"index-module_table__UD3nt",thead:"index-module_thead__VeAFs",tbody:"index-module_tbody__mCyfP",tr:"index-module_tr__DUaAc",statistics:"index-module_statistics__S9yqf",item:"index-module_item__ONntU",data:"index-module_data__f0lkk"};if(i.default(".index-module_main__5MRku {\n  display: flex;\n  flex-direction: column;\n  flex-wrap: wrap;\n  justify-content: space-between;\n  align-content: space-around;\n  width: 100%;\n  height: 100%; }\n  .index-module_main__5MRku .index-module_table__UD3nt {\n    flex: 1;\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    font-size: 3.5vh;\n    overflow: hidden; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs {\n      display: flex;\n      align-items: center;\n      height: 16.7%;\n      background: #28356f;\n      color: #40a6ed; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_tbody__mCyfP {\n      flex: 1;\n      display: flex;\n      flex-direction: column;\n      background: transparent;\n      color: #cde0ff; }\n      .index-module_main__5MRku .index-module_table__UD3nt .index-module_tbody__mCyfP .index-module_tr__DUaAc {\n        display: flex;\n        align-items: center;\n        height: 20%;\n        border-bottom: 1px solid #2B3873; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :nth-child(n), .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :nth-child(n) {\n      padding: 1vh;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      word-break: break-all;\n      overflow: hidden; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :first-child, .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :first-child {\n      width: 50%; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :nth-child(2), .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :nth-child(2) {\n      width: 32%; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :last-child, .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :last-child {\n      width: 18%; }\n  .index-module_main__5MRku .index-module_statistics__S9yqf {\n    display: flex;\n    justify-content: space-around;\n    width: 100%; }\n    .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      box-sizing: border-box; }\n      .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU > span {\n        font-size: 6vh;\n        color: #cde0ff; }\n      .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU .index-module_data__f0lkk {\n        font-size: 14vh;\n        font-weight: 600;\n        text-align: right;\n        -webkit-text-fill-color: transparent;\n        -webkit-background-clip: text; }\n        .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU .index-module_data__f0lkk > span {\n          font-size: 6vh;\n          font-weight: 400; }\n"),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!n.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(){var e=t.useState(0)[1];return t.useCallback((function(){e((function(e){return e+1}))}),[])}function m(e){return n.getDependencyTree(e)}var f,_=1e4,p=1e4,h=new Set;function b(){void 0===f&&(f=setTimeout(v,p))}function v(){f=void 0;var e=Date.now();h.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,h.delete(t))})),h.size>0&&b()}var y={};function x(e){return"observer"+e}function w(e,t,r){void 0===t&&(t="observed"),void 0===r&&(r=y);var o,i=(r.useForceUpdate||s)(),l=a.default.useRef(null);if(!l.current){var d=new n.Reaction(x(t),(function(){c.mounted?i():(d.dispose(),l.current=null)})),c=function(e){return{cleanAt:Date.now()+_,reaction:e}}(d);l.current=c,o=l,h.add(o),b()}var u,f,p=l.current.reaction;if(a.default.useDebugValue(p,m),a.default.useEffect((function(){var e;return e=l,h.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new n.Reaction(x(t),(function(){i()})),cleanAt:1/0},i()),function(){l.current.reaction.dispose(),l.current=null}}),[]),p.track((function(){try{u=e()}catch(e){f=e}})),f)throw f;return u}function g(e,n){var r,o,i,a=u({forwardRef:!1},n),l=e.displayName||e.name,d=function(t,n){return w((function(){return e(t,n)}),l)};return d.displayName=l,r=a.forwardRef?t.memo(t.forwardRef(d)):t.memo(d),o=e,i=r,Object.keys(o).forEach((function(e){k[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),r.displayName=l,r}var k={$$typeof:!0,render:!0,compare:!0,type:!0};function E(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:w(r)}function R(e,t,n,r,o){var i="children"===t?"render":"children",a="function"==typeof e[t],l="function"==typeof e[i];return a&&l?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||l?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}E.propTypes={children:R,render:R},E.displayName="Observer";var O=0;var D={};function U(e){return D[e]||(D[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+O+")";return O++,t}(e)),D[e]}function j(e,t){if(N(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!N(e[n[o]],t[n[o]]))return!1;return!0}function N(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function M(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var P=U("patchMixins"),S=U("patchedDefinition");function A(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.locks++;try{var a;return null!=e&&(a=e.apply(this,o)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function C(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];A.call.apply(A,[this,e,t].concat(r))}}function F(e,t,n){var r=function(e,t){var n=e[P]=e[P]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[S]){var i=e[t],a=$(e,t,o?o.enumerable:void 0,r,i);Object.defineProperty(e,t,a)}}function $(e,t,n,r,o){var i,a=C(o,r);return(i={})[S]=!0,i.get=function(){return a},i.set=function(o){if(this===e)a=C(o,r);else{var i=$(this,t,n,r,o);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=n,i}var q=n.$mobx||"$mobx",z=U("isUnmounted"),I=U("skipRender"),V=U("isForcingUpdate");function T(e){var n=e.prototype;if(n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==t.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==W)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=W;Y(n,"props"),Y(n,"state");var r=n.render;return n.render=function(){return H.call(this,r)},F(n,"componentWillUnmount",(function(){this.render[q]&&this.render[q].dispose(),this[z]=!0})),e}function H(e){var r=this;M(this,I,!1),M(this,V,!1);var o,i=(o=this).displayName||o.name||o.constructor&&(o.constructor.displayName||o.constructor.name)||"<component>",a=e.bind(this),l=!1,d=new n.Reaction(i+".render()",(function(){if(!l&&(l=!0,!0!==r[z])){var e=!0;try{M(r,V,!0),r[I]||t.Component.prototype.forceUpdate.call(r),e=!1}finally{M(r,V,!1),e&&d.dispose()}}}));function c(){l=!1;var e=void 0,t=void 0;if(d.track((function(){try{t=n._allowStateChanges(!1,a)}catch(t){e=t}})),e)throw e;return t}return d.reactComponent=this,c[q]=d,this.render=c,c.call(this)}function W(e,t){return this.state!==t||!j(this.props,e)}function Y(e,t){var r=U("reactProp_"+t+"_valueHolder"),o=U("reactProp_"+t+"_atomHolder");function i(){return this[o]||M(this,o,n.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return n._allowStateReadsStart&&n._allowStateReadsEnd&&(e=n._allowStateReadsStart(!0)),i.call(this).reportObserved(),n._allowStateReadsStart&&n._allowStateReadsEnd&&n._allowStateReadsEnd(e),this[r]},set:function(e){this[V]||j(this[r],e)?M(this,r,e):(M(this,r,e),M(this,I,!0),i.call(this).reportChanged(),M(this,I,!1))}})}var B="function"==typeof Symbol&&Symbol.for,G=B?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,X=B?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;if(!t.Component)throw new Error("mobx-react requires React to be available");if(!n.observable)throw new Error("mobx-react requires mobx to be available");var J={tableData:[{name:"飞行时间二次离子质谱仪应用",location:"18号楼副楼分测中心18-5002",time:"2023年2月28日"},{name:"超高效凝胶渗透色谱仪应用技术培训会",location:"线上会议",time:"2023年3月2日"},{name:"稳态瞬态荧光光谱仪培训",location:"兴庆校区分析测试中心",time:"2023年3月9日"},{name:"Amira/Avizo/PerGeos三维图像分析软件技术交流研讨会",location:"18号楼副楼分测中心18-5001",time:"2023年3月10日"},{name:"冷冻制样技术和应用培训",location:"18号楼副楼分测中心18-5001",time:"2023年3月28日"},{name:"圆二色谱仪应用技术培训会",location:"18号楼副楼分测中心18-5001",time:"2023年3月29日"}],numberOfEvent:72,numberOfInvitedExpert:204,numberOfParticipants:15e3};let K=class extends l.Component{constructor(e){super(e),this.padding="14vh 4vh 4vh",n.reaction((()=>e.gpui.params.padding),(e=>{this.padding=e||"14vh 4vh 4vh"}),{fireImmediately:!0})}render(){return l.createElement("div",{className:"g__index",style:{padding:this.padding}},l.createElement("div",{className:c.main},l.createElement("div",{className:c.statistics},l.createElement("div",{className:c.item},l.createElement("span",null,"累计举办次数"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #0096FF, #00D8FF)"}},J.numberOfEvent,l.createElement("span",null,"期"))),l.createElement("div",{className:c.item},l.createElement("span",null,"累计邀请专家人次"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #009EFD, #2AF598)"}},J.numberOfInvitedExpert,l.createElement("span",null,"人次"))),l.createElement("div",{className:c.item},l.createElement("span",null,"累计参与人数"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #D596F6, #4481F5)"}},J.numberOfParticipants,l.createElement("span",null,"人次")))),l.createElement("div",{className:c.table},l.createElement("div",{className:c.thead},l.createElement("div",{className:c.td},"论坛名称"),l.createElement("div",{className:c.td},"地点"),l.createElement("div",{className:c.td},"时间")),l.createElement("div",{className:c.tbody},J.tableData.map((e=>l.createElement("div",{className:c.tr},l.createElement("div",{className:c.td},e.name),l.createElement("div",{className:c.td},e.location),l.createElement("div",{className:c.td},e.time))))))))}};return d([n.observable],K.prototype,"padding",void 0),K=d([function(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),X&&e.$$typeof===X)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(G&&e.$$typeof===G){var n=e.render;if("function"!=typeof n)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(E,null,(function(){return n.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?T(e):g(e)}],K),K}));
