@cocalc/static
Version:
CoCalc's static frontend Webpack-based build system and framework
2 lines • 186 kB
JavaScript
/*! For license information please see a342f5ea87373364d3ce.js.LICENSE.txt */
(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[9883],{40847:(t,e,i)=>{"use strict";i.r(e),i.d(e,{CONTROL_COMM_PROTOCOL_VERSION:()=>V,CONTROL_COMM_TARGET:()=>I,CONTROL_COMM_TIMEOUT:()=>B,DOMWidgetModel:()=>it,DOMWidgetView:()=>st,IJupyterWidgetRegistry:()=>mt,JUPYTER_WIDGETS_VERSION:()=>k,JupyterPhosphorPanelWidget:()=>rt,JupyterPhosphorWidget:()=>ot,LayoutModel:()=>ut,LayoutView:()=>dt,ManagerBase:()=>W,PROTOCOL_VERSION:()=>j,StyleModel:()=>ct,StyleView:()=>pt,ViewList:()=>_t,WidgetModel:()=>et,WidgetView:()=>nt,WrappedError:()=>v,assign:()=>_,base64ToBuffer:()=>O,bufferToBase64:()=>S,bufferToHex:()=>C,difference:()=>p,hexToBuffer:()=>M,isEqual:()=>f,put_buffers:()=>b,reject:()=>y,remove_buffers:()=>w,resolvePromisesDict:()=>g,serialize_state:()=>D,shims:()=>tt,unpack_models:()=>Z,uuid:()=>m});var n=i(68478),o=i(99040),r=i(82650),s=i.n(r),a=i(58413),l=i.n(a);function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var d,h=(d=function(t,e){return d=Object.setPrototypeOf||u({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},d(t,e)},function(t,e){var i=function(){this.constructor=t};d(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(){return c=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},c.apply(this,arguments)};function p(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))}function f(t,e){return s()(t,e)}var _=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function m(){return o.UUID.uuid4()}var v=function(t){function e(i,n){var o=t.call(this,i)||this;return console.warn("WrappedError has been deprecated!"),u(n,e)?o.error_stack=n.error_stack:o.error_stack=[n],o.error_stack.push(o),o}return h(e,t),e}(Error);function g(t){var e=Object.keys(t),i=[];return e.forEach((function(e){i.push(t[e])})),Promise.all(i).then((function(t){for(var i={},n=0;n<e.length;n++)i[e[n]]=t[n];return i}))}function y(t,e){return function(i){throw e&&console.error(new Error(t)),i}}function b(t,e,i){for(var n=0;n<e.length;n++){for(var o=e[n],r=t,s=0;s<o.length-1;s++)r=r[o[s]];r[o[o.length-1]]=i[n]}}function w(t){var e=[],i=[];return{state:function t(n,o){if(n.toJSON&&(n=n.toJSON()),Array.isArray(n))for(var r=!1,s=0;s<n.length;s++)(d=n[s])&&(u(d,ArrayBuffer)||ArrayBuffer.isView(d)?(r||(n=n.slice(),r=!0),e.push(ArrayBuffer.isView(d)?d.buffer:d),i.push(o.concat([s])),n[s]=null):(h=t(d,o.concat([s])))!==d&&(r||(n=n.slice(),r=!0),n[s]=h));else if(l()(n))for(var a in n){var d,h;r=!1,n.hasOwnProperty(a)&&(d=n[a])&&(u(d,ArrayBuffer)||ArrayBuffer.isView(d)?(r||(n=c({},n),r=!0),e.push(ArrayBuffer.isView(d)?d.buffer:d),i.push(o.concat([a])),delete n[a]):(h=t(d,o.concat([a])))!==d&&(r||(n=c({},n),r=!0),n[a]=h))}return n}(t,[]),buffers:e,buffer_paths:i}}var x=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"];function C(t){for(var e=new Uint8Array(t),i=[],n=0;n<e.length;n++)i.push(x[e[n]]);return i.join("")}function M(t){for(var e=new Uint8Array(t.length/2),i=0;i<t.length;i+=2)e[i/2]=parseInt(t.slice(i,i+2),16);return e.buffer}function S(t){return(0,n.fromByteArray)(new Uint8Array(t))}function O(t){return(0,n.toByteArray)(t).buffer}var k="1.2.0",j="2.1.0";function L(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var E=function(){return E=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},E.apply(this,arguments)},P=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){var s=function(t){try{l(n.next(t))}catch(t){r(t)}},a=function(t){try{l(n.throw(t))}catch(t){r(t)}},l=function(t){var e;t.done?o(t.value):(e=t.value,L(e,i)?e:new i((function(t){t(e)}))).then(s,a)};l((n=n.apply(t,e||[])).next())}))},T=function(t,e){var i,n,o,r,s=function(t){return function(e){return a([t,e])}},a=function(r){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,n=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){l.label=r[1];break}if(6===r[0]&&l.label<o[1]){l.label=o[1],o=r;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(r);break}o[2]&&l.ops.pop(),l.trys.pop();continue}r=e.call(t,l)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}},l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r},A=j.split(".",1)[0],I="jupyter.widget.control",V="1.0.0",B=4e3,W=function(){var t=function(){this.comm_target_name="jupyter.widget",this._models=Object.create(null)};return t.prototype.display_model=function(t,e,i){var n=this;return void 0===i&&(i={}),this.create_view(e,i).then((function(e){return n.display_view(t,e,i)})).catch(y("Could not create view",!0))},t.prototype.setViewOptions=function(t){return void 0===t&&(t={}),t},t.prototype.create_view=function(t,e){var i=this;void 0===e&&(e={});var n=t.state_change=t.state_change.then((function(){return i.loadClass(t.get("_view_name"),t.get("_view_module"),t.get("_view_module_version")).then((function(n){var o=new n({model:t,options:i.setViewOptions(e)});return o.listenTo(t,"destroy",o.remove),Promise.resolve(o.render()).then((function(){return o}))})).catch(y("Could not create a view for model id "+t.model_id,!0))})),o=m();return t.views[o]=n,n.then((function(t){t.once("remove",(function(){delete t.model.views[o]}),i)})),t.state_change},t.prototype.callbacks=function(t){return{}},t.prototype.get_model=function(t){return this._models[t]},t.prototype.has_model=function(t){return void 0!==this._models[t]},t.prototype.handle_comm_open=function(t,e){var i=(e.metadata||{}).version||"";if(i.split(".",1)[0]!==A){var n="Wrong widget protocol version: received protocol version '"+i+"', but was expecting major version '"+A+"'";return console.error(n),Promise.reject(n)}var o=e.content.data,r=o.buffer_paths||[],s=(e.buffers||[]).map((function(t){return L(t,DataView)?t:new DataView(L(t,ArrayBuffer)?t:t.buffer)}));return b(o.state,r,s),this.new_model({model_name:o.state._model_name,model_module:o.state._model_module,model_module_version:o.state._model_module_version,comm:t},o.state).catch(y("Could not create a model.",!0))},t.prototype.new_widget=function(t,e){var i,n=this;if(void 0===e&&(e={}),void 0===t.view_name||void 0===t.view_module||void 0===t.view_module_version)return Promise.reject("new_widget(...) must be given view information in the options.");i=t.comm?Promise.resolve(t.comm):this._create_comm(this.comm_target_name,t.model_id,{state:{_model_module:t.model_module,_model_module_version:t.model_module_version,_model_name:t.model_name,_view_module:t.view_module,_view_module_version:t.view_module_version,_view_name:t.view_name}},{version:j});var o=E({},t);return i.then((function(t){return o.comm=t,n.new_model(o,e).then((function(t){return t.sync("create",t),t}))}),(function(){return o.model_id||(o.model_id=m()),n.new_model(o,e)}))},t.prototype.register_model=function(t,e){var i=this;this._models[t]=e,e.then((function(e){e.once("comm:close",(function(){delete i._models[t]}))}))},t.prototype.new_model=function(t,e){return void 0===e&&(e={}),P(this,void 0,void 0,(function(){var i,n;return T(this,(function(o){switch(o.label){case 0:if(t.model_id)i=t.model_id;else{if(!t.comm)throw new Error("Neither comm nor model_id provided in options object. At least one must exist.");i=t.model_id=t.comm.comm_id}return n=this._make_model(t,e),this.register_model(i,n),[4,n];case 1:return[2,o.sent()]}}))}))},t.prototype._make_model=function(t,e){return void 0===e&&(e={}),P(this,void 0,void 0,(function(){var i,n,o,r,s,a,l;return T(this,(function(u){switch(u.label){case 0:i=t.model_id,n=this.loadClass(t.model_name,t.model_module,t.model_module_version),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,n];case 2:return o=u.sent(),[3,4];case 3:throw r=u.sent(),console.error("Could not instantiate widget"),r;case 4:if(!o)throw new Error("Cannot find model module "+t.model_module+"@"+t.model_module_version+", "+t.model_name);return[4,o._deserialize_state(e,this)];case 5:return s=u.sent(),a={widget_manager:this,model_id:i,comm:t.comm},(l=new o(s,a)).name=t.model_name,l.module=t.model_module,[2,l]}}))}))},t.prototype._loadFromKernel=function(){return P(this,void 0,void 0,(function(){var t,e,i,n,o,r,s,a,l,u,d,h,c,p=this;return T(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),[4,this._create_comm(I,m(),{},{version:V})];case 1:return i=f.sent(),[4,new Promise((function(n,o){i.on_msg((function(i){"update_states"===(t=i.content.data).method?(e=(i.buffers||[]).map((function(t){return L(t,DataView)?t:new DataView(L(t,ArrayBuffer)?t:t.buffer)})),n(null)):console.warn("\n Unknown "+t.method+" message on the Control channel\n ")})),i.on_close((function(){return o("Control comm was closed too early")})),i.send({method:"request_states"},{}),setTimeout((function(){return o("Control comm did not respond in time")}),B)}))];case 2:return f.sent(),i.close(),[3,4];case 3:return n=f.sent(),console.warn('Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason:',n),[2,this._loadFromKernelModels()];case 4:for(o=t.states,r={},s={},a=0;a<t.buffer_paths.length;a++)l=t.buffer_paths[a],u=l[0],d=l.slice(1),h=e[a],r[u]||(r[u]=[],s[u]=[]),r[u].push(d),s[u].push(h);return[4,Promise.all(Object.keys(o).map((function(t){return P(p,void 0,void 0,(function(){var e;return T(this,(function(i){switch(i.label){case 0:return this.has_model(t)?(e=void 0,[3,3]):[3,1];case 1:return[4,this._create_comm("jupyter.widget",t)];case 2:e=i.sent(),i.label=3;case 3:return[2,{widget_id:t,comm:e}]}}))}))})))];case 5:return c=f.sent(),[4,Promise.all(c.map((function(t){var e=t.widget_id,i=t.comm;return P(p,void 0,void 0,(function(){var t,n;return T(this,(function(a){switch(a.label){case 0:t=o[e],e in r&&b(t,r[e],s[e]),a.label=1;case 1:return a.trys.push([1,6,,7]),i?[4,this.new_model({model_name:t.model_name,model_module:t.model_module,model_module_version:t.model_module_version,model_id:e,comm:i},t.state)]:[3,3];case 2:return a.sent(),[3,5];case 3:return[4,this.get_model(e)];case 4:a.sent().set_state(t.state),a.label=5;case 5:return[3,7];case 6:return n=a.sent(),console.error(n),[3,7];case 7:return[2]}}))}))})))];case 6:return f.sent(),[2]}}))}))},t.prototype._loadFromKernelModels=function(){return P(this,void 0,void 0,(function(){var t,e,i=this;return T(this,(function(n){switch(n.label){case 0:return[4,this._get_comm_info()];case 1:return t=n.sent(),[4,Promise.all(Object.keys(t).map((function(t){return P(i,void 0,void 0,(function(){var e,i,n;return T(this,(function(r){switch(r.label){case 0:return this.has_model(t)?[2]:[4,this._create_comm(this.comm_target_name,t)];case 1:return e=r.sent(),i="",n=new o.PromiseDelegate,e.on_msg((function(t){if(t.parent_header.msg_id===i&&"comm_msg"===t.header.msg_type&&"update"===t.content.data.method){var o=t.content.data,r=o.buffer_paths||[],s=t.buffers||[];b(o.state,r,s),n.resolve({comm:e,msg:t})}})),i=e.send({method:"request_state"},this.callbacks(void 0)),[2,n.promise]}}))}))})))];case 2:return e=n.sent(),[4,Promise.all(e.map((function(t){return P(i,void 0,void 0,(function(){var e;return T(this,(function(i){switch(i.label){case 0:return t?(e=t.msg.content,[4,this.new_model({model_name:e.data.state._model_name,model_module:e.data.state._model_module,model_module_version:e.data.state._model_module_version,comm:t.comm},e.data.state)]):[2];case 1:return i.sent(),[2]}}))}))})))];case 3:return n.sent(),[2]}}))}))},t.prototype.clear_state=function(){var t=this;return g(this._models).then((function(e){Object.keys(e).forEach((function(t){return e[t].close()})),t._models=Object.create(null)}))},t.prototype.get_state=function(t){var e=this;void 0===t&&(t={});var i=Object.keys(this._models).map((function(t){return e._models[t]}));return Promise.all(i).then((function(e){return D(e,t)}))},t.prototype.set_state=function(t){var e=this;if(!(t.version_major&&t.version_major<=2))throw"Unsupported widget state format";var i=t.state;return this._get_comm_info().then((function(t){return Promise.all(Object.keys(i).map((function(n){var o={base64:O,hex:M},r=i[n],s=r.state;if(r.buffers){var a=r.buffers.map((function(t){return t.path})),l=r.buffers.map((function(t){return new DataView(o[t.encoding](t.data))}));b(r.state,a,l)}if(e.has_model(n))return e.get_model(n).then((function(t){return t.constructor._deserialize_state(s||{},e).then((function(e){return t.set_state(e),t}))}));var u={model_id:n,model_name:r.model_name,model_module:r.model_module,model_module_version:r.model_module_version};return t.hasOwnProperty(n)?e._create_comm(e.comm_target_name,n).then((function(t){return u.comm=t,e.new_model(u)})):e.new_model(u,s)})))}))},t.prototype.disconnect=function(){var t=this;Object.keys(this._models).forEach((function(e){t._models[e].then((function(t){t.comm_live=!1}))}))},t.prototype.resolveUrl=function(t){return Promise.resolve(t)},t.prototype.filterExistingModelState=function(t){var e=this,i=t.state;return i=Object.keys(i).filter((function(t){return!e.has_model(t)})).reduce((function(t,e){return t[e]=i[e],t}),{}),E(E({},t),{state:i})},t}();function D(t,e){void 0===e&&(e={});var i={};return t.forEach((function(t){var n=t.model_id,o=w(t.serialize(t.get_state(e.drop_defaults))),r=o.buffers.map((function(t,e){return{data:S(t),path:o.buffer_paths[e],encoding:"base64"}}));i[n]={model_name:t.name,model_module:t.module,model_module_version:t.get("_model_module_version"),state:o.state},r.length>0&&(i[n].buffers=r)})),{version_major:2,version_minor:0,state:i}}var z=function(){return z=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},z.apply(this,arguments)};function R(t,e,i){if(null==t)return this;var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,i||(i={}),!this._validate(n,i))return!1;var o=i.unset,r=i.silent,s=[],a=this._changing;this._changing=!0;try{a||(this._previousAttributes=z({},this.attributes),this.changed={});var l=this.attributes,u=this.changed,d=this._previousAttributes;for(var h in n)e=n[h],f(l[h],e)||s.push(h),f(d[h],e)?delete u[h]:u[h]=e,o?delete l[h]:l[h]=e;if(this.id=this.get(this.idAttribute),!r){s.length&&(this._pending=i);for(var c=0;c<s.length;c++)this.trigger("change:"+s[c],this,l[s[c]],i)}if(a)return this;if(!r)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i)}finally{this._pending=!1,this._changing=!1}return this}var F=i(19172),N=i(23040),U=i.n(N),$=function(){var t=function(e,i){var n,o;return t=Object.setPrototypeOf||(n={__proto__:[]},(null!=(o=Array)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),H=Element.prototype,q=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.msMatchesSelector||H.oMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=e.length;--i>=0&&e.item(i)!==this;);return i>-1},J=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return $(e,t),e.prototype._removeElement=function(){this.undelegateEvents(),this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype._setElement=function(t){this.el=t},e.prototype._setAttributes=function(t){for(var e in t)e in this.el?this.el[e]=t[e]:this.el.setAttribute(e,t[e])},e.prototype.delegate=function(t,e,i){"string"!=typeof e&&(i=e,e=null),void 0===this._domEvents&&(this._domEvents=[]);var n=this.el,o=e?function(t){for(var o=t.target||t.srcElement;o&&o!==n;o=o.parentNode)if(q.call(o,e))return t.delegateTarget=o,i.handleEvent?i.handleEvent(t):i(t)}:i;return this.el.addEventListener(t,o,!1),this._domEvents.push({eventName:t,handler:o,listener:i,selector:e}),o},e.prototype.undelegate=function(t,e,i){if("function"==typeof e&&(i=e,e=null),this.el&&this._domEvents)for(var n=this._domEvents.slice(),o=n.length;o--;){var r=n[o];!(r.eventName!==t||i&&r.listener!==i||e&&r.selector!==e)&&(this.el.removeEventListener(r.eventName,r.handler,!1),this._domEvents.splice(o,1))}return this},e.prototype.undelegateEvents=function(){if(this.el&&this._domEvents){for(var t=this._domEvents.length,e=0;e<t;e++){var i=this._domEvents[e];this.el.removeEventListener(i.eventName,i.handler,!1)}this._domEvents.length=0}return this},e}(F.View),K=i(61297),G=i(61198);function Y(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var X=function(){var t=function(e,i){return t=Object.setPrototypeOf||Y({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Q=function(){return Q=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Q.apply(this,arguments)};function Z(t,e){if(Array.isArray(t)){var i=[];return t.forEach((function(t,n){i.push(Z(t,e))})),Promise.all(i)}if(Y(t,Object)){var n={};return Object.keys(t).forEach((function(i){n[i]=Z(t[i],e)})),g(n)}return"string"==typeof t&&"IPY_MODEL_"===t.slice(0,10)?e.get_model(t.slice(10,t.length)):Promise.resolve(t)}var tt,et=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return X(e,t),e.prototype.defaults=function(){return{_model_module:"@jupyter-widgets/base",_model_name:"WidgetModel",_model_module_version:k,_view_module:"@jupyter-widgets/base",_view_name:null,_view_module_version:k,_view_count:null}},e.prototype.isNew=function(){return!1},e.prototype.initialize=function(e,i){this._expectedEchoMsgIds={},this._attrsToUpdate={},t.prototype.initialize.call(this,e,i),this.widget_manager=i.widget_manager,this.model_id=i.model_id;var n=i.comm;this.views=Object.create(null),this.state_change=Promise.resolve(),this._closed=!1,this._state_lock=null,this._msg_buffer=null,this._msg_buffer_callbacks=null,this._pending_msgs=0,this._buffered_state_diff={},n?(this.comm=n,n.on_close(this._handle_comm_closed.bind(this)),n.on_msg(this._handle_comm_msg.bind(this)),this.comm_live=!0):this.comm_live=!1},Object.defineProperty(e.prototype,"comm_live",{get:function(){return this._comm_live},set:function(t){this._comm_live=t,this.trigger("comm_live_update")},enumerable:!0,configurable:!0}),e.prototype.send=function(t,e,i){if(void 0!==this.comm){var n={method:"custom",content:t};this.comm.send(n,e,{},i)}},e.prototype.close=function(t){var e=this;if(void 0===t&&(t=!1),!this._closed){this._closed=!0,this.comm&&!t&&this.comm.close(),this.stopListening(),this.trigger("destroy",this),this.comm&&delete this.comm;var i=Object.keys(this.views).map((function(t){return e.views[t].then((function(t){return t.remove()}))}));return delete this.views,Promise.all(i).then((function(){}))}},e.prototype._handle_comm_closed=function(t){this.trigger("comm:close"),this.close(!0)},e.prototype._handle_comm_msg=function(t){var e=this,i=t.content.data,n=i.method;switch(n){case"update":case"echo_update":return this.state_change=this.state_change.then((function(){var o,r,s,a=i.state,l=null!=(o=i.buffer_paths)?o:[],u=(s=null===(r=t.buffers)||void 0===r?void 0:r.slice(0,l.length),null!=s?s:[]).map((function(t){return Y(t,DataView)?t:new DataView(Y(t,ArrayBuffer)?t:t.buffer)}));if(b(a,l,u),t.parent_header&&"echo_update"===n){var d=t.parent_header.msg_id;Object.keys(a).filter((function(t){return e._expectedEchoMsgIds.hasOwnProperty(t)})).forEach((function(t){e._expectedEchoMsgIds[t]!==d?delete a[t]:(delete e._expectedEchoMsgIds[t],null!==e._msg_buffer&&Object.prototype.hasOwnProperty.call(e._msg_buffer,t)&&delete a[t])}))}return e.constructor._deserialize_state(a,e.widget_manager)})).then((function(t){e.set_state(t)})).catch(y("Could not process update msg for model id: "+this.model_id,!0)),this.state_change;case"custom":return this.trigger("msg:custom",i.content,t.buffers),Promise.resolve()}},e.prototype.set_state=function(t){this._state_lock=t;try{this.set(t)}catch(t){console.error("Error setting state: "+t.message)}finally{this._state_lock=null}},e.prototype.get_state=function(t){var e=this.attributes;if(t){var i=this.defaults,n="function"==typeof i?i.call(this):i,o={};return Object.keys(e).forEach((function(t){f(e[t],n[t])||(o[t]=e[t])})),o}return Q({},e)},e.prototype._handle_status=function(t){if(void 0!==this.comm&&"idle"===t.content.execution_state&&(this._pending_msgs--,this._pending_msgs<0&&(console.error("Jupyter Widgets message throttle: Pending messages < 0 (="+this._pending_msgs+"), which is unexpected. Resetting to 0 to continue."),this._pending_msgs=0),null!==this._msg_buffer&&this._pending_msgs<1)){var e=this.send_sync_message(this._msg_buffer,this._msg_buffer_callbacks);this.rememberLastUpdateFor(e),this._msg_buffer=null,this._msg_buffer_callbacks=null}},e.prototype.callbacks=function(t){return this.widget_manager.callbacks(t)},e.prototype.set=function(t,e,i){var n=R.call(this,t,e,i);if(void 0!==this._buffered_state_diff){var o=this.changedAttributes()||{};if(this._state_lock)for(var r=0,s=Object.keys(this._state_lock);r<s.length;r++){var a=s[r];o[a]===this._state_lock[a]&&delete o[a]}this._buffered_state_diff=_(this._buffered_state_diff,o)}return n},e.prototype.sync=function(t,e,i){var n=this;if(void 0===i&&(i={}),void 0===this.comm)throw"Syncing error: no comm channel defined";var o="patch"===t?i.attrs:e.get_state(i.drop_defaults);if(this._state_lock)for(var r=0,s=Object.keys(this._state_lock);r<s.length;r++){var a=s[r];o[a]===this._state_lock[a]&&delete o[a]}Object.keys(o).forEach((function(t){n._attrsToUpdate[t]=!0}));var l=this.serialize(o);if(Object.keys(l).length>0){var u=i.callbacks||this.callbacks();if(this._pending_msgs>=1){switch(t){case"patch":this._msg_buffer=_(this._msg_buffer||{},l);break;case"update":case"create":this._msg_buffer=l;break;default:throw"unrecognized syncing method"}this._msg_buffer_callbacks=u}else{var d=this.send_sync_message(o,u);this.rememberLastUpdateFor(d)}}},e.prototype.rememberLastUpdateFor=function(t){var e=this;Object.keys(this._attrsToUpdate).forEach((function(i){e._expectedEchoMsgIds[i]=t})),this._attrsToUpdate={}},e.prototype.serialize=function(t){for(var e=this.constructor.serializers||{},i=0,n=Object.keys(t);i<n.length;i++){var o=n[i];try{e[o]&&e[o].serialize?t[o]=e[o].serialize(t[o],this):t[o]=JSON.parse(JSON.stringify(t[o])),t[o]&&t[o].toJSON&&(t[o]=t[o].toJSON())}catch(t){throw console.error("Error serializing widget state attribute: ",o),t}}return t},e.prototype.send_sync_message=function(t,e){var i=this;if(void 0===e&&(e={}),!this.comm)return"";try{var n=(e={shell:Q({},e.shell),iopub:Q({},e.iopub),input:e.input}).iopub.status;e.iopub.status=function(t){i._handle_status(t),n&&n(t)};var o=w(t),r=this.comm.send({method:"update",state:o.state,buffer_paths:o.buffer_paths},e,{},o.buffers);return this._pending_msgs++,r}catch(t){console.error("Could not send widget sync message",t)}return""},e.prototype.save_changes=function(t){if(this.comm_live){var e={patch:!0};t&&(e.callbacks=t),this.save(this._buffered_state_diff,e),this._buffered_state_diff={}}},e.prototype.on_some_change=function(t,e,i){var n=this;this.on("change",(function(){t.some(n.hasChanged,n)&&e.apply(i,arguments)}),this)},e.prototype.toJSON=function(t){return"IPY_MODEL_"+this.model_id},e._deserialize_state=function(t,e){var i,n=this.serializers;if(n)for(var o in i={},t)n[o]&&n[o].deserialize?i[o]=n[o].deserialize(t[o],e):i[o]=t[o];else i=t;return g(i)},e}(F.Model),it=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return X(e,t),e.prototype.defaults=function(){return _(t.prototype.defaults.call(this),{_dom_classes:[]})},e.serializers=Q(Q({},et.serializers),{layout:{deserialize:Z},style:{deserialize:Z}}),e}(et),nt=function(t){var e=function(e){return t.call(this,e)||this};return X(e,t),e.prototype.initialize=function(t){var e=this;this.listenTo(this.model,"change",(function(){var t=Object.keys(e.model.changedAttributes()||{});"_view_count"===t[0]&&1===t.length||e.update()})),this.options=t.options,this.once("remove",(function(){"number"==typeof e.model.get("_view_count")&&(e.model.set("_view_count",e.model.get("_view_count")-1),e.model.save_changes())})),this.once("displayed",(function(){"number"==typeof e.model.get("_view_count")&&(e.model.set("_view_count",e.model.get("_view_count")+1),e.model.save_changes())})),this.displayed=new Promise((function(t,i){e.once("displayed",t)}))},e.prototype.update=function(t){},e.prototype.render=function(){},e.prototype.create_child_view=function(t,e){return void 0===e&&(e={}),e=Q({parent:this},e),this.model.widget_manager.create_view(t,e).catch(y("Could not create child view",!0))},e.prototype.callbacks=function(){return this.model.callbacks(this)},e.prototype.send=function(t,e){this.model.send(t,this.callbacks(),e)},e.prototype.touch=function(){this.model.save_changes(this.callbacks())},e.prototype.remove=function(){return t.prototype.remove.call(this),this.trigger("remove"),this},e}(J),ot=function(t){var e=function(e){var i=this,n=e.view;return delete e.view,(i=t.call(this,e)||this)._view=n,i};return X(e,t),e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e.prototype.processMessage=function(e){t.prototype.processMessage.call(this,e),this._view.processPhosphorMessage(e)},e}(K.$L),rt=function(t){var e=function(e){var i=this,n=e.view;return delete e.view,(i=t.call(this,e)||this)._view=n,i};return X(e,t),e.prototype.processMessage=function(e){t.prototype.processMessage.call(this,e),this._view.processPhosphorMessage(e)},e.prototype.dispose=function(){this.isDisposed||(t.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},e}(K.s_),st=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return X(e,t),e.prototype.initialize=function(e){var i=this;t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:_dom_classes",(function(t,e){var n=t.previous("_dom_classes");i.update_classes(n,e)})),this.layoutPromise=Promise.resolve(),this.listenTo(this.model,"change:layout",(function(t,e){i.setLayout(e,t.previous("layout"))})),this.stylePromise=Promise.resolve(),this.listenTo(this.model,"change:style",(function(t,e){i.setStyle(e,t.previous("style"))})),this.displayed.then((function(){i.update_classes([],i.model.get("_dom_classes")),i.setLayout(i.model.get("layout")),i.setStyle(i.model.get("style"))})),this._comm_live_update(),this.listenTo(this.model,"comm_live_update",(function(){i._comm_live_update()}))},e.prototype.setLayout=function(t,e){var i=this;t&&(this.layoutPromise=this.layoutPromise.then((function(e){return e&&(e.unlayout(),i.stopListening(e.model),e.remove()),i.create_child_view(t).then((function(t){return i.displayed.then((function(){return t.trigger("displayed"),i.listenTo(t.model,"change",(function(){G.pB.postMessage(i.pWidget,K.$L.ResizeMessage.UnknownSize)})),G.pB.postMessage(i.pWidget,K.$L.ResizeMessage.UnknownSize),t}))})).catch(y("Could not add LayoutView to DOMWidgetView",!0))})))},e.prototype.setStyle=function(t,e){var i=this;t&&(this.stylePromise=this.stylePromise.then((function(e){return e&&(e.unstyle(),i.stopListening(e.model),e.remove()),i.create_child_view(t).then((function(t){return i.displayed.then((function(){return t.trigger("displayed"),t}))})).catch(y("Could not add styleView to DOMWidgetView",!0))})))},e.prototype.update_classes=function(t,e,i){void 0===i&&(i=this.el),p(t,e).map((function(t){i.classList?i.classList.remove(t):i.setAttribute("class",i.getAttribute("class").replace(t,""))})),p(e,t).map((function(t){i.classList?i.classList.add(t):i.setAttribute("class",i.getAttribute("class").concat(" ",t))}))},e.prototype.update_mapped_classes=function(t,e,i){var n=this.model.previous(e),o=t[n]?t[n]:[],r=t[n=this.model.get(e)]?t[n]:[];this.update_classes(o,r,i||this.el)},e.prototype.set_mapped_classes=function(t,e,i){var n=this.model.get(e),o=t[n]?t[n]:[];this.update_classes([],o,i||this.el)},e.prototype._setElement=function(t){this.pWidget&&this.pWidget.dispose(),this.$el=Y(t,U())?t:U()(t),this.el=this.$el[0],this.pWidget=new ot({node:t,view:this})},e.prototype.remove=function(){return this.pWidget&&this.pWidget.dispose(),t.prototype.remove.call(this)},e.prototype.processPhosphorMessage=function(t){"after-attach"===t.type&&this.trigger("displayed")},e.prototype._comm_live_update=function(){this.model.comm_live?this.pWidget.removeClass("jupyter-widgets-disconnected"):this.pWidget.addClass("jupyter-widgets-disconnected")},e}(nt),at=function(){var t=function(e,i){var n,o;return t=Object.setPrototypeOf||(n={__proto__:[]},(null!=(o=Array)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),lt={align_content:null,align_items:null,align_self:null,border:null,bottom:null,display:null,flex:null,flex_flow:null,height:null,justify_content:null,justify_items:null,left:null,margin:null,max_height:null,max_width:null,min_height:null,min_width:null,overflow:null,overflow_x:null,overflow_y:null,order:null,padding:null,right:null,top:null,visibility:null,width:null,object_fit:null,object_position:null,grid_auto_columns:null,grid_auto_flow:null,grid_auto_rows:null,grid_gap:null,grid_template_rows:null,grid_template_columns:null,grid_template_areas:null,grid_row:null,grid_column:null,grid_area:null},ut=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return at(e,t),e.prototype.defaults=function(){return _(t.prototype.defaults.call(this),{_model_name:"LayoutModel",_view_name:"LayoutView"},lt)},e}(et),dt=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return at(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var i=0,n=Object.keys(lt);i<n.length;i++){var o=n[i];this.registerTrait(o)}},e.prototype.registerTrait=function(t){var e=this;if(this._traitNames.push(t),"overflow_x"===t||"overflow_y"===t)return this.listenTo(this.model,"change:"+t,(function(i,n){e.handleOverflowChange(t,n)})),void this.handleOverflowChange(t,this.model.get(t));this.listenTo(this.model,"change:"+t,(function(i,n){e.handleChange(t,n)})),this.handleChange(t,this.model.get(t))},e.prototype.css_name=function(t){return t.replace(/_/g,"-")},e.prototype.handleChange=function(t,e){var i=this.options.parent;i?null===e?i.el.style.removeProperty(this.css_name(t)):i.el.style[this.css_name(t)]=e:console.warn("Style not applied because a parent view does not exist")},e.prototype.handleOverflowChange=function(t,e){var i=this.options.parent;i?null===e?null===this.model.get("overflow")&&i.el.style.removeProperty(this.css_name(t)):i.el.style[this.css_name(t)]=e:console.warn("Style not applied because a parent view does not exist")},e.prototype.unlayout=function(){var t=this,e=this.options.parent;this._traitNames.forEach((function(i){e?e.el.style.removeProperty(t.css_name(i)):console.warn("Style not removed because a parent view does not exist")}),this)},e}(nt),ht=function(){var t=function(e,i){var n,o;return t=Object.setPrototypeOf||(n={__proto__:[]},(null!=(o=Array)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ct=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return ht(e,t),e.prototype.defaults=function(){var e=this.constructor;return _(t.prototype.defaults.call(this),{_model_name:"StyleModel",_view_name:"StyleView"},Object.keys(e.styleProperties).reduce((function(t,i){return t[i]=e.styleProperties[i].default,t}),{}))},e.styleProperties={},e}(et),pt=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return ht(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var i=this.model.constructor,n=0,o=Object.keys(i.styleProperties);n<o.length;n++){var r=o[n];this.registerTrait(r)}this.style()},e.prototype.registerTrait=function(t){var e=this;this._traitNames.push(t),this.listenTo(this.model,"change:"+t,(function(i,n){e.handleChange(t,n)}))},e.prototype.handleChange=function(t,e){var i=this.options.parent;if(i){var n=this.model.constructor.styleProperties,o=n[t].attribute,r=n[t].selector,s=r?i.el.querySelectorAll(r):[i.el];if(null===e)for(var a=0;a!==s.length;++a)s[a].style.removeProperty(o);else for(a=0;a!==s.length;++a)s[a].style[o]=e}else console.warn("Style not applied because a parent view does not exist")},e.prototype.style=function(){for(var t=0,e=this._traitNames;t<e.length;t++){var i=e[t];this.handleChange(i,this.model.get(i))}},e.prototype.unstyle=function(){var t=this.options.parent,e=this.model.constructor.styleProperties;this._traitNames.forEach((function(i){if(t)for(var n=e[i].attribute,o=e[i].selector,r=o?t.el.querySelectorAll(o):[t.el],s=0;s!==r.length;++s)r[s].style.removeProperty(n);else console.warn("Style not removed because a parent view does not exist")}),this)},e}(nt),ft=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){var s=function(t){try{l(n.next(t))}catch(t){r(t)}},a=function(t){try{l(n.throw(t))}catch(t){r(t)}},l=function(t){var e,n,r;t.done?o(t.value):(e=t.value,n=e,(null!=(r=i)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)?e:new i((function(t){t(e)}))).then(s,a)};l((n=n.apply(t,e||[])).next())}))};!function(t){!function(t){var e=function(){var t=function(t){this.targets=Object.create(null),this.comms=Object.create(null),this.kernel=null,this.jsServicesKernel=null,this.init_kernel(t)};return t.prototype.init_kernel=function(t){this.kernel=t,this.jsServicesKernel=t},t.prototype.new_comm=function(t,e,n,o,r,s){return ft(this,void 0,void 0,(function(){var a,l,u,d,h,c,p,f,_,m,v;return u=this,d=function(u){return a=this.jsServicesKernel.createComm(t,r),l=new i(a),this.register_comm(l),l.open(e,n,o,s),[2,l]},_=function(t){return function(e){return m([t,e])}},m=function(t){if(h)throw new TypeError("Generator is already executing.");for(;v;)try{if(h=1,c&&(p=2&t[0]?c.return:t[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,t[1])).done)return p;switch(c=0,p&&(t=[2&t[0],p.value]),t[0]){case 0:case 1:p=t;break;case 4:return v.label++,{value:t[1],done:!1};case 5:v.label++,c=t[1],t=[0];continue;case 7:t=v.ops.pop(),v.trys.pop();continue;default:if(!((p=(p=v.trys).length>0&&p[p.length-1])||6!==t[0]&&2!==t[0])){v=0;continue}if(3===t[0]&&(!p||t[1]>p[0]&&t[1]<p[3])){v.label=t[1];break}if(6===t[0]&&v.label<p[1]){v.label=p[1],p=t;break}if(p&&v.label<p[2]){v.label=p[2],v.ops.push(t);break}p[2]&&v.ops.pop(),v.trys.pop();continue}t=d.call(u,v)}catch(e){t=[6,e],c=0}finally{h=p=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}},v={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]},f={next:_(0),throw:_(1),return:_(2)},"function"==typeof Symbol&&(f[Symbol.iterator]=function(){return this}),f}))},t.prototype.register_target=function(t,e){var n=this,o=this.jsServicesKernel.registerCommTarget(t,(function(t,o){var r=new i(t);n.register_comm(r);try{return e(r,o)}catch(t){r.close(),console.error(t),console.error(new Error("Exception opening new comm"))}}));this.targets[t]=o},t.prototype.unregister_target=function(t,e){this.targets[t].dispose(),delete this.targets[t]},t.prototype.register_comm=function(t){return this.comms[t.comm_id]=Promise.resolve(t),t.kernel=this.kernel,t.comm_id},t}();t.CommManager=e;var i=function(){var t=function(t){this.jsServicesComm=null,this.kernel=null,this.jsServicesComm=t};return Object.defineProperty(t.prototype,"comm_id",{get:function(){return this.jsServicesComm.commId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target_name",{get:function(){return this.jsServicesComm.targetName},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e,i,n){var o=this.jsServicesComm.open(t,i,n);return this._hookupCallbacks(o,e),o.msg.header.msg_id},t.prototype.send=function(t,e,i,n){var o=this.jsServicesComm.send(t,i,n);return this._hookupCallbacks(o,e),o.msg.header.msg_id},t.prototype.close=function(t,e,i,n){var o=this.jsServicesComm.close(t,i,n);return this._hookupCallbacks(o,e),o.msg.header.msg_id},t.prototype.on_msg=function(t){this.jsServicesComm.onMsg=t.bind(this)},t.prototype.on_close=function(t){this.jsServicesComm.onClose=t.bind(this)},t.prototype._hookupCallbacks=function(t,e){e&&(t.onReply=function(t){e.shell&&e.shell.reply&&e.shell.reply(t)},t.onStdin=function(t){e.input&&e.input(t)},t.onIOPub=function(t){if(e.iopub)if(e.iopub.status&&"status"===t.header.msg_type)e.iopub.status(t);else if(e.iopub.clear_output&&"clear_output"===t.header.msg_type)e.iopub.clear_output(t);else if(e.iopub.output)switch(t.header.msg_type){case"display_data":case"execute_result":case"stream":case"error":e.iopub.output(t)}})},t}();t.Comm=i}(t.services||(t.services={}))}(tt||(tt={}));var _t=function(){var t=function(t,e,i){this.initialize(t,e,i)};return t.prototype.initialize=function(t,e,i){this._handler_context=i||this,this._models=[],this.views=[],this._create_view=t,this._remove_view=e||function(t){t.remove()}},t.prototype.update=function(t,e,i,n){var o=i||this._remove_view,r=e||this._create_view;n=n||this._handler_context;for(var s=0;s<t.length&&!(s>=this._models.length||t[s]!==this._models[s]);s++);for(var a=s,l=this.views.splice(a,this.views.length-a),u=0;u<l.length;u++)l[u].then((function(t){o.call(n,t)}));for(;s<t.length;s++)this.views.push(Promise.resolve(r.call(n,t[s],s)));return this._models=t.slice(),Promise.all(this.views)},t.prototype.remove=function(){var t=this;return Promise.all(this.views).then((function(e){e.forEach((function(e){return t._remove_view.call(t._handler_context,e)})),t.views=[],t._models=[]}))},t.prototype.dispose=function(){this.views=null,this._models=null},t}(),mt=new o.Token("jupyter.extensions.jupyterWidgetRegistry")},94656:(t,e,i)=>{"use strict";i.r(e),i.d(e,{AccordionModel:()=>Ge,AccordionView:()=>Xe,AudioModel:()=>lt,AudioView:()=>ut,BaseIntSliderView:()=>zt,BoolModel:()=>O,BoundedFloatModel:()=>Qt,BoundedFloatTextModel:()=>se,BoundedIntModel:()=>Vt,BoundedIntTextModel:()=>Ut,BoxModel:()=>$,BoxView:()=>J,ButtonModel:()=>V,ButtonStyleModel:()=>I,ButtonView:()=>B,CheckboxModel:()=>k,CheckboxView:()=>j,ColorPickerModel:()=>ht,ColorPickerView:()=>ct,ComboboxModel:()=>mi,ComboboxView:()=>vi,ControllerAxisModel:()=>pe,ControllerAxisView:()=>fe,ControllerButtonModel:()=>he,ControllerButtonView:()=>ce,ControllerModel:()=>_e,ControllerView:()=>me,DatePickerModel:()=>gt,DatePickerView:()=>yt,DescriptionModel:()=>c,DescriptionStyleModel:()=>h,DescriptionView:()=>p,DirectionalLinkModel:()=>C,DropdownModel:()=>be,DropdownView:()=>we,FileUploadModel:()=>bi,FileUploadView:()=>wi,FloatLogSliderModel:()=>te,FloatLogSliderView:()=>ne,FloatModel:()=>Xt,FloatProgressModel:()=>le,FloatRangeSliderModel:()=>ee,FloatRangeSliderView:()=>oe,FloatSliderModel:()=>Zt,FloatSliderView:()=>ie,FloatTextModel:()=>re,FloatTextView:()=>ae,GridBoxModel:()=>X,GridBoxView:()=>Y,HBoxModel:()=>H,HBoxView:()=>K,HTMLMathModel:()=>si,HTMLMathView:()=>ai,HTMLModel:()=>oi,HTMLView:()=>ri,ImageModel:()=>tt,ImageView:()=>et,IntModel:()=>It,IntProgressModel:()=>qt,IntRangeSliderModel:()=>Dt,IntRangeSliderView:()=>Rt,IntSliderModel:()=>Wt,IntSliderView:()=>Ft,IntTextModel:()=>Nt,IntTextView:()=>$t,JUPYTER_CONTROLS_VERSION:()=>l,JupyterPhosphorAccordionWidget:()=>Ye,JupyterPhosphorTabPanelWidget:()=>Ze,LabelModel:()=>li,LabelView:()=>ui,LabeledDOMWidgetModel:()=>f,LabeledDOMWidgetView:()=>_,LinkModel:()=>M,MultipleSelectionModel:()=>Pe,PasswordModel:()=>fi,PasswordView:()=>_i,PlayModel:()=>Kt,PlayView:()=>Gt,ProgressStyleModel:()=>Ht,ProgressView:()=>Jt,RadioButtonsModel:()=>Me,RadioButtonsView:()=>Se,SelectModel:()=>xe,SelectMultipleModel:()=>Te,SelectMultipleView:()=>Ae,SelectView:()=>Ce,SelectionContainerModel:()=>Ke,SelectionModel:()=>ye,SelectionRangeSliderModel:()=>Ie,SelectionRangeSliderView:()=>Ve,SelectionSliderModel:()=>Le,SelectionSliderView:()=>Ee,SliderStyleModel:()=>Bt,StringModel:()=>ni,TabModel:()=>Qe,TabView:()=>ti,TextModel:()=>ci,TextView:()=>pi,TextareaModel:()=>di,TextareaView:()=>hi,ToggleButtonModel:()=>L,ToggleButtonView:()=>E,ToggleButtonsModel:()=>ke,ToggleButtonsStyleModel:()=>Oe,ToggleButtonsView:()=>je,VBoxModel:()=>q,VBoxView:()=>G,ValidModel:()=>P,ValidView:()=>T,VideoModel:()=>ot,VideoView:()=>rt,WrappedError:()=>n.WrappedError,deserialize_date:()=>vt,escape_html:()=>s,reject:()=>o,resolvePromisesDict:()=>n.resolvePromisesDict,serialize_date:()=>mt,typeset:()=>r,uuid:()=>n.uuid,version:()=>xi});var n=i(40847);function o(t,e){return function(i){var o=new n.WrappedError(t,i);return e&&console.error(o),Promise.reject(o)}}function r(t,e){void 0!==e&&(t.textContent=e),void 0!==window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,t])}function s(t){var e=document.createElement("div");return e.textContent=t,e.innerHTML}var a,l="1.5.0",u=(a=function(t,e){var i,n;return a=Object.setPrototypeOf||(i={__proto__:[]},(null!=(n=Array)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](i):i instanceof n)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},a(t,e)},function(t,e){var i=function(){this.constructor=t};a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=function(){return d=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},d.apply(this,arguments)},h=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return u(e,t),e.prototype.defaults=function(){return d(d({},t.prototype.defaults.call(this)),{_model_name:"DescriptionStyleModel",_model_module:"@jupyter-widgets/controls",_model_module_version:l})},e.styleProperties={description_width:{selector:".widget-label",attribute:"width",default:null}},e}(n.StyleModel),c=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return u(e,t),e.prototype.defaults=function(){return d(d({},t.prototype.defaults.call(this)),{_model_name:"DescriptionModel",_view_name:"DescriptionView",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l,description:"",description_tooltip:null})},e}(n.DOMWidgetModel),p=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return u(e,t),e.prototype.render=function(){this.label=document.createElement("label"),this.el.appendChild(this.label),this.label.className="widget-label",this.label.style.display="none",this.listenTo(this.model,"change:description",this.updateDescription),this.listenTo(this.model,"change:description_tooltip",this.updateDescription),this.updateDescription()},e.prototype.typeset=function(t,e){this.displayed.then((function(){return r(t,e)}))},e.prototype.updateDescription=function(){var t=this.model.get("description"),e=this.model.get("description_tooltip");null===e&&(e=t),0===t.length?this.label.style.display="none":(this.label.innerHTML=t,this.typeset(this.label),this.label.style.display=""),this.label.title=e},e}(n.DOMWidgetView),f=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return u(e,t),e}(c),_=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return u(e,t),e}(p),m=i(44965),v=function(){var t=function(e,i){var n,o;return t=Object.setPrototypeOf||(n={__proto__:[]},(null!=(o=Array)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),g=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return v(e,t),e.prototype.defaults=function(){return m.l7(t.prototype.defaults.call(this),{_model_name:"CoreWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(n.WidgetModel),y=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return v(e,t),e.prototype.defaults=function(){return m.l7(t.prototype.defaults.call(this),{_model_name:"CoreDOMWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(n.DOMWidgetModel),b=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return v(e,t),e.prototype.defaults=function(){return m.l7(t.prototype.defaults.call(this),{_model_name:"CoreDescriptionModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:l,_model_module_version:l})},e}(c),w=function(){var t=function(e,i){var n,o;return t=Object.setPrototypeOf||(n={__proto__:[]},(null!=(o=Array)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o)&&function(t,e){t.__proto__=e})||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){var n=function(){this.constructor=e};t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),x=function(){return x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},x.apply(this,arguments)},C=function(t){var e=function(){return null!==t&&t.apply(this,arguments)||this};return w(e,t),e.prototype.defaults=function(){return m.l7(t.prototype.defaults.call(this),{target:void 0,source:void 0,_model_name:"DirectionalLinkModel"})},e.prototype.initialize=function(e,i){t.prototype.initialize.call(this,e,i),this.on("change",this.updateBindings,this),this.updateBindings()},e.prototype.updateValue=function(t,e,i,n){if(!this._updating){this._updating=!0;try{i&&(i.set(n,t.get(e)),i.save_changes())}finally{this._updating=!1}}},e.prototype.updateBindings=function(){var t,e,i=this;this.cleanup(),t=this.get("source")||[null,null],this.sourceModel=t[0],this.sourceAttr=t[1],e=this.get("target")||[null,null],this.targetModel=e[0],this.targetAttr=e[1],this.sourceModel&&(this.listenTo(this.sourceModel,"change:"+this.sourceAttr,(function(){i.updateValue(i.sourceModel,i.sourceAttr,i.targetModel,i.targetAttr)})),this.updateValue(this.sourceModel,this.sourceAttr,this.targetModel,this.targetAttr),this.listenToOnce(this.sourceModel,"destroy",this.cleanup)),this.targetModel&&this.listenToOnce(this.targetModel,"destroy",this.cleanup)},e.prototype.cleanup=function(){this.sourceModel&&(this.stopListening(this.sourceModel,"change:"+this.sourceAttr,null),this.stopListening(this.sourceModel,"destroy",null)),this.targetModel&&this.stopListening(this.targetModel,"destroy",null)},e.serializers=x(x({},g.serializers),{target:{deserialize:n.unpack_models},source:{deserialize:n.unpack_