text: (self.webpackChunkluxwidget=self.webpackChunkluxwidget||[]).push([[534],{3534:(t,e,r)=>{"use strict";r.r(e),r.d(e,{DOMWidgetModel:()=>Y,DOMWidgetView:()=>tt,IJupyterWidgetRegistry:()=>ct,JUPYTER_WIDGETS_VERSION:()=>A,JupyterPhosphorPanelWidget:()=>Z,JupyterPhosphorWidget:()=>X,LayoutModel:()=>nt,LayoutView:()=>it,ManagerBase:()=>T,PROTOCOL_VERSION:()=>k,StyleModel:()=>st,StyleView:()=>at,ViewList:()=>ut,WidgetModel:()=>K,WidgetView:()=>Q,WrappedError:()=>_,assign:()=>d,base64ToBuffer:()=>E,bufferToBase64:()=>O,bufferToHex:()=>x,difference:()=>f,hexToBuffer:()=>j,isEqual:()=>p,put_buffers:()=>y,reject:()=>g,remove_buffers:()=>b,resolvePromisesDict:()=>m,serialize_state:()=>B,shims:()=>G,unpack_models:()=>q,uuid:()=>v});var n,i=r(9742),o=r(1797),s=r(8446),a=r.n(s),u=r(8630),c=r.n(u),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=function(){return(h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function f(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))}function p(t,e){return a()(t,e)}var d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function v(){return o.UUID.uuid4()}var _=function(t){function e(r,n){var i=t.call(this,r)||this;return console.warn("WrappedError has been deprecated!"),i.error_stack=n instanceof e?n.error_stack:[n],i.error_stack.push(i),i}return l(e,t),e}(Error);function m(t){var e=Object.keys(t),r=[];return e.forEach((function(e){r.push(t[e])})),Promise.all(r).then((function(t){for(var r={},n=0;n<e.length;n++)r[e[n]]=t[n];return r}))}function g(t,e){return function(r){throw e&&console.error(new Error(t)),r}}function y(t,e,r){for(var n=0;n<e.length;n++){for(var i=e[n],o=t,s=0;s<i.length-1;s++)o=o[i[s]];o[i[i.length-1]]=r[n]}}function b(t){var e=[],r=[];return{state:function t(n,i){if(n.toJSON&&(n=n.toJSON()),Array.isArray(n))for(var o=!1,s=0;s<n.length;s++)(u=n[s])&&(u instanceof ArrayBuffer||ArrayBuffer.isView(u)?(o||(n=n.slice(),o=!0),e.push(ArrayBuffer.isView(u)?u.buffer:u),r.push(i.concat([s])),n[s]=null):(l=t(u,i.concat([s])))!==u&&(o||(n=n.slice(),o=!0),n[s]=l));else if(c()(n))for(var a in n){var u,l;o=!1,n.hasOwnProperty(a)&&(u=n[a])&&(u instanceof ArrayBuffer||ArrayBuffer.isView(u)?(o||(n=h({},n),o=!0),e.push(ArrayBuffer.isView(u)?u.buffer:u),r.push(i.concat([a])),delete n[a]):(l=t(u,i.concat([a])))!==u&&(o||(n=h({},n),o=!0),n[a]=l))}return n}(t,[]),buffers:e,buffer_paths:r}}var w=["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 x(t){for(var e=new Uint8Array(t),r=[],n=0;n<e.length;n++)r.push(w[e[n]]);return r.join("")}function j(t){for(var e=new Uint8Array(t.length/2),r=0;r<t.length;r+=2)e[r/2]=parseInt(t.slice(r,r+2),16);return e.buffer}function O(t){return(0,i.JQ)(new Uint8Array(t))}function E(t){return(0,i.b$)(t).buffer}var A="1.2.0",k="2.0.0",S=function(){return(S=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},P=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},C=function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},M=k.split(".",1)[0],T=function(){function t(){this.comm_target_name="jupyter.widget",this._models=Object.create(null)}return t.prototype.display_model=function(t,e,r){var n=this;return void 0===r&&(r={}),this.create_view(e,r).then((function(e){return n.display_view(t,e,r)})).catch(g("Could not create view",!0))},t.prototype.setViewOptions=function(t){return void 0===t&&(t={}),t},t.prototype.create_view=function(t,e){var r=this;void 0===e&&(e={});var n=t.state_change=t.state_change.then((function(){return r.loadClass(t.get("_view_name"),t.get("_view_module"),t.get("_view_module_version")).then((function(n){var i=new n({model:t,options:r.setViewOptions(e)});return i.listenTo(t,"destroy",i.remove),Promise.resolve(i.render()).then((function(){return i}))})).catch(g("Could not create a view for model id "+t.model_id,!0))})),i=v();return t.views[i]=n,n.then((function(t){t.once("remove",(function(){delete t.model.views[i]}),r)})),t.state_change},t.prototype.callbacks=function(t){return{}},t.prototype.get_model=function(t){return this._models[t]},t.prototype.handle_comm_open=function(t,e){var r=(e.metadata||{}).version||"";if(r.split(".",1)[0]!==M){var n="Wrong widget protocol version: received protocol version '"+r+"', but was expecting major version '"+M+"'";return console.error(n),Promise.reject(n)}var i=e.content.data,o=i.buffer_paths||[],s=(e.buffers||[]).map((function(t){return t instanceof DataView?t:new DataView(t instanceof ArrayBuffer?t:t.buffer)}));return y(i.state,o,s),this.new_model({model_name:i.state._model_name,model_module:i.state._model_module,model_module_version:i.state._model_module_version,comm:t},i.state).catch(g("Could not create a model.",!0))},t.prototype.new_widget=function(t,e){var r,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.");r=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:k});var i=S({},t);return r.then((function(t){return i.comm=t,n.new_model(i,e).then((function(t){return t.sync("create",t),t}))}),(function(){return i.model_id||(i.model_id=v()),n.new_model(i,e)}))},t.prototype.register_model=function(t,e){var r=this;this._models[t]=e,e.then((function(e){e.once("comm:close",(function(){delete r._models[t]}))}))},t.prototype.new_model=function(t,e){return void 0===e&&(e={}),P(this,void 0,void 0,(function(){var r,n;return C(this,(function(i){switch(i.label){case 0:if(t.model_id)r=t.model_id;else{if(!t.comm)throw new Error("Neither comm nor model_id provided in options object. At least one must exist.");r=t.model_id=t.comm.comm_id}return n=this._make_model(t,e),this.register_model(r,n),[4,n];case 1:return[2,i.sent()]}}))}))},t.prototype._make_model=function(t,e){return void 0===e&&(e={}),P(this,void 0,void 0,(function(){var r,n,i,o,s,a,u;return C(this,(function(c){switch(c.label){case 0:r=t.model_id,n=this.loadClass(t.model_name,t.model_module,t.model_module_version),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n];case 2:return i=c.sent(),[3,4];case 3:throw o=c.sent(),console.error("Could not instantiate widget"),o;case 4:if(!i)throw new Error("Cannot find model module "+t.model_module+"@"+t.model_module_version+", "+t.model_name);return[4,i._deserialize_state(e,this)];case 5:return s=c.sent(),a={widget_manager:this,model_id:r,comm:t.comm},(u=new i(s,a)).name=t.model_name,u.module=t.model_module,[2,u]}}))}))},t.prototype.clear_state=function(){var t=this;return m(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 r=Object.keys(this._models).map((function(t){return e._models[t]}));return Promise.all(r).then((function(e){return B(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 r=t.state;return this._get_comm_info().then((function(t){return Promise.all(Object.keys(r).map((function(n){var i={base64:E,hex:j},o=r[n],s=o.state;if(o.buffers){var a=o.buffers.map((function(t){return t.path})),u=o.buffers.map((function(t){return new DataView(i[t.encoding](t.data))}));y(o.state,a,u)}if(e._models[n])return e._models[n].then((function(t){return t.constructor._deserialize_state(s||{},e).then((function(e){return t.set_state(e),t}))}));var c={model_id:n,model_name:o.model_name,model_module:o.model_module,model_module_version:o.model_module_version};return t.hasOwnProperty(n)?e._create_comm(e.comm_target_name,n).then((function(t){return c.comm=t,e.new_model(c)})):e.new_model(c,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,r=t.state;return r=Object.keys(r).filter((function(t){return!e._models[t]})).reduce((function(t,e){return t[e]=r[e],t}),{}),S(S({},t),{state:r})},t}();function B(t,e){void 0===e&&(e={});var r={};return t.forEach((function(t){var n=t.model_id,i=b(t.serialize(t.get_state(e.drop_defaults))),o=i.buffers.map((function(t,e){return{data:O(t),path:i.buffer_paths[e],encoding:"base64"}}));r[n]={model_name:t.name,model_module:t.module,model_module_version:t.get("_model_module_version"),state:i.state},o.length>0&&(r[n].buffers=o)})),{version_major:2,version_minor:0,state:r}}var z=function(){return(z=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function I(t,e,r){if(null==t)return this;var n;if("object"==typeof t?(n=t,r=e):(n={})[t]=e,r||(r={}),!this._validate(n,r))return!1;var i=r.unset,o=r.silent,s=[],a=this._changing;this._changing=!0,a||(this._previousAttributes=z({},this.attributes),this.changed={});var u=this.attributes,c=this.changed,l=this._previousAttributes;for(var h in n)e=n[h],p(u[h],e)||s.push(h),p(l[h],e)?delete c[h]:c[h]=e,i?delete u[h]:u[h]=e;if(this.id=this.get(this.idAttribute),!o){s.length&&(this._pending=r);for(var f=0;f<s.length;f++)this.trigger("change:"+s[f],this,u[s[f]],r)}if(a)return this;if(!o)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this}var D=r(2316),N=r(7190),F=r.n(N),R=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),U=Element.prototype,$=U.matches||U.webkitMatchesSelector||U.mozMatchesSelector||U.msMatchesSelector||U.oMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),r=e.length;--r>=0&&e.item(r)!==this;);return r>-1},L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(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,r){"string"!=typeof e&&(r=e,e=null),void 0===this._domEvents&&(this._domEvents=[]);var n=this.el,i=e?function(t){for(var i=t.target||t.srcElement;i&&i!==n;i=i.parentNode)if($.call(i,e))return t.delegateTarget=i,r.handleEvent?r.handleEvent(t):r(t)}:r;return this.el.addEventListener(t,i,!1),this._domEvents.push({eventName:t,handler:i,listener:r,selector:e}),i},e.prototype.undelegate=function(t,e,r){if("function"==typeof e&&(r=e,e=null),this.el&&this._domEvents)for(var n=this._domEvents.slice(),i=n.length;i--;){var o=n[i];!(o.eventName!==t||r&&o.listener!==r||e&&o.selector!==e)&&(this.el.removeEventListener(o.eventName,o.handler,!1),this._domEvents.splice(i,1))}return this},e.prototype.undelegateEvents=function(){if(this.el&&this._domEvents){for(var t=this._domEvents.length,e=0;e<t;e++){var r=this._domEvents[e];this.el.removeEventListener(r.eventName,r.handler,!1)}this._domEvents.length=0}return this},e}(D.View),V=r(6510),W=r(3211),H=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),J=function(){return(J=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function q(t,e){if(Array.isArray(t)){var r=[];return t.forEach((function(t,n){r.push(q(t,e))})),Promise.all(r)}if(t instanceof Object){var n={};return Object.keys(t).forEach((function(r){n[r]=q(t[r],e)})),m(n)}return"string"==typeof t&&"IPY_MODEL_"===t.slice(0,10)?e.get_model(t.slice(10,t.length)):Promise.resolve(t)}var G,K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return{_model_module:"@jupyter-widgets/base",_model_name:"WidgetModel",_model_module_version:A,_view_module:"@jupyter-widgets/base",_view_name:null,_view_module_version:A,_view_count:null}},e.prototype.isNew=function(){return!1},e.prototype.initialize=function(e,r){t.prototype.initialize.call(this,e,r),this.widget_manager=r.widget_manager,this.model_id=r.model_id;var n=r.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,r){if(void 0!==this.comm){var n={method:"custom",content:t};this.comm.send(n,e,{},r)}},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 r=Object.keys(this.views).map((function(t){return e.views[t].then((function(t){return t.remove()}))}));return delete this.views,Promise.all(r).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,r=t.content.data;switch(r.method){case"update":return this.state_change=this.state_change.then((function(){var n=r.state;return y(n,r.buffer_paths||[],(t.buffers||[]).map((function(t){return t instanceof DataView?t:new DataView(t instanceof ArrayBuffer?t:t.buffer)}))),e.constructor._deserialize_state(n,e.widget_manager)})).then((function(t){e.set_state(t)})).catch(g("Could not process update msg for model id: "+this.model_id,!0)),this.state_change;case"custom":return this.trigger("msg:custom",r.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 r=this.defaults,n="function"==typeof r?r.call(this):r,i={};return Object.keys(e).forEach((function(t){p(e[t],n[t])||(i[t]=e[t])})),i}return J({},e)},e.prototype._handle_status=function(t){void 0!==this.comm&&"idle"===t.content.execution_state&&(this._pending_msgs--,null!==this._msg_buffer&&this._pending_msgs<1&&(this.send_sync_message(this._msg_buffer,this._msg_buffer_callbacks),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,r){var n=I.call(this,t,e,r);if(void 0!==this._buffered_state_diff){var i=this.changedAttributes()||{};if(this._state_lock)for(var o=0,s=Object.keys(this._state_lock);o<s.length;o++){var a=s[o];i[a]===this._state_lock[a]&&delete i[a]}this._buffered_state_diff=d(this._buffered_state_diff,i)}return n},e.prototype.sync=function(t,e,r){if(void 0===r&&(r={}),void 0===this.comm)throw"Syncing error: no comm channel defined";var n="patch"===t?r.attrs:e.get_state(r.drop_defaults);if(this._state_lock)for(var i=0,o=Object.keys(this._state_lock);i<o.length;i++){var s=o[i];n[s]===this._state_lock[s]&&delete n[s]}var a=this.serialize(n);if(Object.keys(a).length>0){var u=r.callbacks||this.callbacks();if(this._pending_msgs>=1){switch(t){case"patch":this._msg_buffer=d(this._msg_buffer||{},a);break;case"update":case"create":this._msg_buffer=a;break;default:throw"unrecognized syncing method"}this._msg_buffer_callbacks=u}else this.send_sync_message(n,u)}},e.prototype.serialize=function(t){for(var e=this.constructor.serializers||{},r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];try{e[i]&&e[i].serialize?t[i]=e[i].serialize(t[i],this):t[i]=JSON.parse(JSON.stringify(t[i])),t[i]&&t[i].toJSON&&(t[i]=t[i].toJSON())}catch(t){throw console.error("Error serializing widget state attribute: ",i),t}}return t},e.prototype.send_sync_message=function(t,e){var r=this;void 0===e&&(e={});try{e.iopub=e.iopub||{};var n=e.iopub.status;e.iopub.status=function(t){r._handle_status(t),n&&n(t)};var i=b(t);this.comm.send({method:"update",state:i.state,buffer_paths:i.buffer_paths},e,{},i.buffers),this._pending_msgs++}catch(t){console.error("Could not send widget sync message",t)}},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,r){var n=this;this.on("change",(function(){t.some(n.hasChanged,n)&&e.apply(r,arguments)}),this)},e.prototype.toJSON=function(t){return"IPY_MODEL_"+this.model_id},e._deserialize_state=function(t,e){var r,n=this.serializers;if(n)for(var i in r={},t)n[i]&&n[i].deserialize?r[i]=n[i].deserialize(t[i],e):r[i]=t[i];else r=t;return m(r)},e}(D.Model),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.defaults=function(){return d(t.prototype.defaults.call(this),{_dom_classes:[]})},e.serializers=J(J({},K.serializers),{layout:{deserialize:q},style:{deserialize:q}}),e}(K),Q=function(t){function e(e){return t.call(this,e)||this}return H(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,r){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=J({parent:this},e),this.model.widget_manager.create_view(t,e).catch(g("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}(L),X=function(t){function e(e){var r=this,n=e.view;return delete e.view,(r=t.call(this,e)||this)._view=n,r}return H(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}(V.Widget),Z=function(t){function e(e){var r=this,n=e.view;return delete e.view,(r=t.call(this,e)||this)._view=n,r}return H(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}(V.Panel),tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H(e,t),e.prototype.initialize=function(e){var r=this;t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:_dom_classes",(function(t,e){var n=t.previous("_dom_classes");r.update_classes(n,e)})),this.layoutPromise=Promise.resolve(),this.listenTo(this.model,"change:layout",(function(t,e){r.setLayout(e,t.previous("layout"))})),this.stylePromise=Promise.resolve(),this.listenTo(this.model,"change:style",(function(t,e){r.setStyle(e,t.previous("style"))})),this.displayed.then((function(){r.update_classes([],r.model.get("_dom_classes")),r.setLayout(r.model.get("layout")),r.setStyle(r.model.get("style"))})),this._comm_live_update(),this.listenTo(this.model,"comm_live_update",(function(){r._comm_live_update()}))},e.prototype.setLayout=function(t,e){var r=this;t&&(this.layoutPromise=this.layoutPromise.then((function(e){return e&&(e.unlayout(),r.stopListening(e.model),e.remove()),r.create_child_view(t).then((function(t){return r.displayed.then((function(){return t.trigger("displayed"),r.listenTo(t.model,"change",(function(){W.MessageLoop.postMessage(r.pWidget,V.Widget.ResizeMessage.UnknownSize)})),W.MessageLoop.postMessage(r.pWidget,V.Widget.ResizeMessage.UnknownSize),t}))})).catch(g("Could not add LayoutView to DOMWidgetView",!0))})))},e.prototype.setStyle=function(t,e){var r=this;t&&(this.stylePromise=this.stylePromise.then((function(e){return e&&(e.unstyle(),r.stopListening(e.model),e.remove()),r.create_child_view(t).then((function(t){return r.displayed.then((function(){return t.trigger("displayed"),t}))})).catch(g("Could not add styleView to DOMWidgetView",!0))})))},e.prototype.update_classes=function(t,e,r){void 0===r&&(r=this.el),f(t,e).map((function(t){r.classList?r.classList.remove(t):r.setAttribute("class",r.getAttribute("class").replace(t,""))})),f(e,t).map((function(t){r.classList?r.classList.add(t):r.setAttribute("class",r.getAttribute("class").concat(" ",t))}))},e.prototype.update_mapped_classes=function(t,e,r){var n=this.model.previous(e),i=t[n]?t[n]:[],o=t[n=this.model.get(e)]?t[n]:[];this.update_classes(i,o,r||this.el)},e.prototype.set_mapped_classes=function(t,e,r){var n=this.model.get(e),i=t[n]?t[n]:[];this.update_classes([],i,r||this.el)},e.prototype._setElement=function(t){this.pWidget&&this.pWidget.dispose(),this.$el=t instanceof F()?t:F()(t),this.el=this.$el[0],this.pWidget=new X({node:t,view:this})},e.prototype.remove=function(){return this.pWidget&&this.pWidget.dispose(),t.prototype.remove.call(this)},e.prototype.processPhosphorMessage=function(t){switch(t.type){case"after-attach":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}(Q),et=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),rt={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},nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.defaults=function(){return d(t.prototype.defaults.call(this),{_model_name:"LayoutModel",_view_name:"LayoutView"},rt)},e}(K),it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var r=0,n=Object.keys(rt);r<n.length;r++){var i=n[r];this.registerTrait(i)}},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(r,n){e.handleOverflowChange(t,n)})),void this.handleOverflowChange(t,this.model.get(t));this.listenTo(this.model,"change:"+t,(function(r,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 r=this.options.parent;r?null===e?r.el.style.removeProperty(this.css_name(t)):r.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 r=this.options.parent;r?null===e?null===this.model.get("overflow")&&r.el.style.removeProperty(this.css_name(t)):r.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(r){e?e.el.style.removeProperty(t.css_name(r)):console.warn("Style not removed because a parent view does not exist")}),this)},e}(Q),ot=function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ot(e,t),e.prototype.defaults=function(){var e=this.constructor;return d(t.prototype.defaults.call(this),{_model_name:"StyleModel",_view_name:"StyleView"},Object.keys(e.styleProperties).reduce((function(t,r){return t[r]=e.styleProperties[r].default,t}),{}))},e.styleProperties={},e}(K),at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ot(e,t),e.prototype.initialize=function(e){this._traitNames=[],t.prototype.initialize.call(this,e);for(var r=this.model.constructor,n=0,i=Object.keys(r.styleProperties);n<i.length;n++){var o=i[n];this.registerTrait(o)}this.style()},e.prototype.registerTrait=function(t){var e=this;this._traitNames.push(t),this.listenTo(this.model,"change:"+t,(function(r,n){e.handleChange(t,n)}))},e.prototype.handleChange=function(t,e){var r=this.options.parent;if(r){var n=this.model.constructor.styleProperties,i=n[t].attribute,o=n[t].selector,s=o?r.el.querySelectorAll(o):[r.el];if(null===e)for(var a=0;a!==s.length;++a)s[a].style.removeProperty(i);else for(a=0;a!==s.length;++a)s[a].style[i]=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 r=e[t];this.handleChange(r,this.model.get(r))}},e.prototype.unstyle=function(){var t=this.options.parent,e=this.model.constructor.styleProperties;this._traitNames.forEach((function(r){if(t)for(var n=e[r].attribute,i=e[r].selector,o=i?t.el.querySelectorAll(i):[t.el],s=0;s!==o.length;++s)o[s].style.removeProperty(n);else console.warn("Style not removed because a parent view does not exist")}),this)},e}(Q);!function(t){!function(t){var e=function(){function t(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,i,o,s){return a=this,u=void 0,l=function(){var a,u;return function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}(this,(function(c){return a=this.jsServicesKernel.createComm(t,o),u=new r(a),this.register_comm(u),u.open(e,n,i,s),[2,u]}))},new((c=void 0)||(c=Promise))((function(t,e){function r(t){try{i(l.next(t))}catch(t){e(t)}}function n(t){try{i(l.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):(i=e.value,i instanceof c?i:new c((function(t){t(i)}))).then(r,n)}i((l=l.apply(a,u||[])).next())}));var a,u,c,l},t.prototype.register_target=function(t,e){var n=this,i=this.jsServicesKernel.registerCommTarget(t,(function(t,i){var o=new r(t);n.register_comm(o);try{return e(o,i)}catch(t){o.close(),console.error(t),console.error(new Error("Exception opening new comm"))}}));this.targets[t]=i},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 r=function(){function t(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,r,n){var i=this.jsServicesComm.open(t,r,n);return this._hookupCallbacks(i,e),i.msg.header.msg_id},t.prototype.send=function(t,e,r,n){var i=this.jsServicesComm.send(t,r,n);return this._hookupCallbacks(i,e),i.msg.header.msg_id},t.prototype.close=function(t,e,r,n){var i=this.jsServicesComm.close(t,r,n);return this._hookupCallbacks(i,e),i.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=r}(t.services||(t.services={}))}(G||(G={}));var ut=function(){function t(t,e,r){this.initialize(t,e,r)}return t.prototype.initialize=function(t,e,r){this._handler_context=r||this,this._models=[],this.views=[],this._create_view=t,this._remove_view=e||function(t){t.remove()}},t.prototype.update=function(t,e,r,n){var i=r||this._remove_view,o=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,u=this.views.splice(a,this.views.length-a),c=0;c<u.length;c++)u[c].then((function(t){i.call(n,t)}));for(;s<t.length;s++)this.views.push(Promise.resolve(o.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}(),ct=new o.Token("jupyter.extensions.jupyterWidgetRegistry")},2316:(t,e,r)=>{var n,i,o;o="object"==typeof self&&self.self==self&&self||"object"==typeof r.g&&r.g.global==r.g&&r.g,n=[r(1311),r(445),e],void 0===(i=function(t,e,r){o.Backbone=function(t,e,r,n){var i=t.Backbone,o=Array.prototype.slice;e.VERSION="1.2.3",e.$=n,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s=function(t,e,n){r.each(e,(function(e,i){r[i]&&(t.prototype[i]=function(t,e,n){switch(t){case 1:return function(){return r[e](this[n])};case 2:return function(t){return r[e](this[n],t)};case 3:return function(t,i){return r[e](this[n],a(t,this),i)};case 4:return function(t,i,o){return r[e](this[n],a(t,this),i,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[n]),r[e].apply(r,t)}}}(e,i,n))}))},a=function(t,e){return r.isFunction(t)?t:r.isObject(t)&&!e._isModel(t)?u(t):r.isString(t)?function(e){return e.get(t)}:t},u=function(t){var e=r.matches(t);return function(t){return e(t.attributes)}},c=e.Events={},l=/\s+/,h=function(t,e,n,i,o){var s,a=0;if(n&&"object"==typeof n){void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(s=r.keys(n);a<s.length;a++)e=h(t,e,s[a],n[s[a]],o)}else if(n&&l.test(n))for(s=n.split(l);a<s.length;a++)e=t(e,s[a],i,o);else e=t(e,n,i,o);return e};c.on=function(t,e,r){return f(this,t,e,r)};var f=function(t,e,r,n,i){return t._events=h(p,t._events||{},e,r,{context:n,ctx:t,listening:i}),i&&((t._listeners||(t._listeners={}))[i.id]=i),t};c.listenTo=function(t,e,n){if(!t)return this;var i=t._listenId||(t._listenId=r.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[i];if(!s){var a=this._listenId||(this._listenId=r.uniqueId("l"));s=o[i]={obj:t,objId:i,id:a,listeningTo:o,count:0}}return f(t,e,n,this,s),this};var p=function(t,e,r,n){if(r){var i=t[e]||(t[e]=[]),o=n.context,s=n.ctx,a=n.listening;a&&a.count++,i.push({callback:r,context:o,ctx:o||s,listening:a})}return t};c.off=function(t,e,r){return this._events?(this._events=h(d,this._events,t,e,{context:r,listeners:this._listeners}),this):this},c.stopListening=function(t,e,n){var i=this._listeningTo;if(!i)return this;for(var o=t?[t._listenId]:r.keys(i),s=0;s<o.length;s++){var a=i[o[s]];if(!a)break;a.obj.off(e,n,this)}return r.isEmpty(i)&&(this._listeningTo=void 0),this};var d=function(t,e,n,i){if(t){var o,s=0,a=i.context,u=i.listeners;if(e||n||a){for(var c=e?[e]:r.keys(t);s<c.length;s++){var l=t[e=c[s]];if(!l)break;for(var h=[],f=0;f<l.length;f++){var p=l[f];n&&n!==p.callback&&n!==p.callback._callback||a&&a!==p.context?h.push(p):(o=p.listening)&&0==--o.count&&(delete u[o.id],delete o.listeningTo[o.objId])}h.length?t[e]=h:delete t[e]}return r.size(t)?t:void 0}for(var d=r.keys(u);s<d.length;s++)delete u[(o=u[d[s]]).id],delete o.listeningTo[o.objId]}};c.once=function(t,e,n){var i=h(v,{},t,e,r.bind(this.off,this));return this.on(i,void 0,n)},c.listenToOnce=function(t,e,n){var i=h(v,{},e,n,r.bind(this.stopListening,this,t));return this.listenTo(t,i)};var v=function(t,e,n,i){if(n){var o=t[e]=r.once((function(){i(e,o),n.apply(this,arguments)}));o._callback=n}return t};c.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),r=Array(e),n=0;n<e;n++)r[n]=arguments[n+1];return h(_,this._events,t,void 0,r),this};var _=function(t,e,r,n){if(t){var i=t[e],o=t.all;i&&o&&(o=o.slice()),i&&m(i,n),o&&m(o,[e].concat(n))}return t},m=function(t,e){var r,n=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++n<i;)(r=t[n]).callback.call(r.ctx);return;case 1:for(;++n<i;)(r=t[n]).callback.call(r.ctx,o);return;case 2:for(;++n<i;)(r=t[n]).callback.call(r.ctx,o,s);return;case 3:for(;++n<i;)(r=t[n]).callback.call(r.ctx,o,s,a);return;default:for(;++n<i;)(r=t[n]).callback.apply(r.ctx,e);return}};c.bind=c.on,c.unbind=c.off,r.extend(e,c);var g=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=r.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=r.defaults({},n,r.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};r.extend(g.prototype,c,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return r.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return r.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!r.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(null==t)return this;var i;if("object"==typeof t?(i=t,n=e):(i={})[t]=e,n||(n={}),!this._validate(i,n))return!1;var o=n.unset,s=n.silent,a=[],u=this._changing;this._changing=!0,u||(this._previousAttributes=r.clone(this.attributes),this.changed={});var c=this.attributes,l=this.changed,h=this._previousAttributes;for(var f in i)e=i[f],r.isEqual(c[f],e)||a.push(f),r.isEqual(h[f],e)?delete l[f]:l[f]=e,o?delete c[f]:c[f]=e;if(this.id=this.get(this.idAttribute),!s){a.length&&(this._pending=n);for(var p=0;p<a.length;p++)this.trigger("change:"+a[p],this,c[a[p]],n)}if(u)return this;if(!s)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,r.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,r.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!r.isEmpty(this.changed):r.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&r.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,n={};for(var i in t){var o=t[i];r.isEqual(e[i],o)||(n[i]=o)}return!!r.size(n)&&n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return r.clone(this._previousAttributes)},fetch:function(t){t=r.extend({parse:!0},t);var e=this,n=t.success;return t.success=function(r){var i=t.parse?e.parse(r,t):r;if(!e.set(i,t))return!1;n&&n.call(t.context,e,r,t),e.trigger("sync",e,r,t)},N(this,t),this.sync("read",this,t)},save:function(t,e,n){var i;null==t||"object"==typeof t?(i=t,n=e):(i={})[t]=e;var o=(n=r.extend({validate:!0,parse:!0},n)).wait;if(i&&!o){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;var s=this,a=n.success,u=this.attributes;n.success=function(t){s.attributes=u;var e=n.parse?s.parse(t,n):t;if(o&&(e=r.extend({},i,e)),e&&!s.set(e,n))return!1;a&&a.call(n.context,s,t,n),s.trigger("sync",s,t,n)},N(this,n),i&&o&&(this.attributes=r.extend({},u,i));var c=this.isNew()?"create":n.patch?"patch":"update";"patch"!==c||n.attrs||(n.attrs=i);var l=this.sync(c,this,n);return this.attributes=u,l},destroy:function(t){t=t?r.clone(t):{};var e=this,n=t.success,i=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(r){i&&o(),n&&n.call(t.context,e,r,t),e.isNew()||e.trigger("sync",e,r,t)};var s=!1;return this.isNew()?r.defer(t.success):(N(this,t),s=this.sync("delete",this,t)),i||o(),s},url:function(){var t=r.result(this,"urlRoot")||r.result(this.collection,"url")||D();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},r.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=r.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,r.extend(e,{validationError:n})),!1)}}),s(g,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var y=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,r.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},x=function(t,e,r){r=Math.min(Math.max(r,0),t.length);for(var n=Array(t.length-r),i=e.length,o=0;o<n.length;o++)n[o]=t[o+r];for(o=0;o<i;o++)t[o+r]=e[o];for(o=0;o<n.length;o++)t[o+i+r]=n[o]};r.extend(y.prototype,c,{model:g,initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,r.extend({merge:!1},e,w))},remove:function(t,e){e=r.extend({},e);var n=!r.isArray(t);t=n?[t]:r.clone(t);var i=this._removeModels(t,e);return!e.silent&&i&&this.trigger("update",this,e),n?i[0]:i},set:function(t,e){if(null!=t){(e=r.defaults({},e,b)).parse&&!this._isModel(t)&&(t=this.parse(t,e));var n=!r.isArray(t);t=n?[t]:t.slice();var i=e.at;null!=i&&(i=+i),i<0&&(i+=this.length+1);for(var o,s=[],a=[],u=[],c={},l=e.add,h=e.merge,f=e.remove,p=!1,d=this.comparator&&null==i&&!1!==e.sort,v=r.isString(this.comparator)?this.comparator:null,_=0;_<t.length;_++){o=t[_];var m=this.get(o);if(m){if(h&&o!==m){var g=this._isModel(o)?o.attributes:o;e.parse&&(g=m.parse(g,e)),m.set(g,e),d&&!p&&(p=m.hasChanged(v))}c[m.cid]||(c[m.cid]=!0,s.push(m)),t[_]=m}else l&&(o=t[_]=this._prepareModel(o,e))&&(a.push(o),this._addReference(o,e),c[o.cid]=!0,s.push(o))}if(f){for(_=0;_<this.length;_++)c[(o=this.models[_]).cid]||u.push(o);u.length&&this._removeModels(u,e)}var y=!1,w=!d&&l&&f;if(s.length&&w?(y=this.length!=s.length||r.some(this.models,(function(t,e){return t!==s[e]})),this.models.length=0,x(this.models,s,0),this.length=this.models.length):a.length&&(d&&(p=!0),x(this.models,a,null==i?this.length:i),this.length=this.models.length),p&&this.sort({silent:!0}),!e.silent){for(_=0;_<a.length;_++)null!=i&&(e.index=i+_),(o=a[_]).trigger("add",o,this,e);(p||y)&&this.trigger("sort",this,e),(a.length||u.length)&&this.trigger("update",this,e)}return n?t[0]:t}},reset:function(t,e){e=e?r.clone(e):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,r.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,r.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,r.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t){var e=this.modelId(this._isModel(t)?t.attributes:t);return this._byId[t]||this._byId[e]||this._byId[t.cid]}},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var n=e.length;return r.isFunction(e)&&(e=r.bind(e,this)),1===n||r.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return r.invoke(this.models,"get",t)},fetch:function(t){var e=(t=r.extend({parse:!0},t)).success,n=this;return t.success=function(r){var i=t.reset?"reset":"set";n[i](r,t),e&&e.call(t.context,n,r,t),n.trigger("sync",n,r,t)},N(this,t),this.sync("read",this,t)},create:function(t,e){var n=(e=e?r.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var i=this,o=e.success;return e.success=function(t,e,r){n&&i.add(t,r),o&&o.call(r.context,t,e,r)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;(e=e?r.clone(e):{}).collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_removeModels:function(t,e){for(var r=[],n=0;n<t.length;n++){var i=this.get(t[n]);if(i){var o=this.indexOf(i);this.models.splice(o,1),this.length--,e.silent||(e.index=o,i.trigger("remove",i,this,e)),r.push(i),this._removeReference(i,e)}}return!!r.length&&r},_isModel:function(t){return t instanceof g},_addReference:function(t,e){this._byId[t.cid]=t;var r=this.modelId(t.attributes);null!=r&&(this._byId[r]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var r=this.modelId(t.attributes);null!=r&&delete this._byId[r],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,r,n){if("add"!==t&&"remove"!==t||r===this){if("destroy"===t&&this.remove(e,n),"change"===t){var i=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);i!==o&&(null!=i&&delete this._byId[i],null!=o&&(this._byId[o]=e))}this.trigger.apply(this,arguments)}}}),s(y,{forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3},"models");var j=e.View=function(t){this.cid=r.uniqueId("view"),r.extend(this,r.pick(t,E)),this._ensureElement(),this.initialize.apply(this,arguments)},O=/^(\S+)\s*(.*)$/,E=["model","collection","el","id","attributes","className","tagName","events"];r.extend(j.prototype,c,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=r.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(r.isFunction(n)||(n=this[n]),n){var i=e.match(O);this.delegate(i[1],i[2],r.bind(n,this))}}return this},delegate:function(t,e,r){return this.$el.on(t+".delegateEvents"+this.cid,e,r),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,r){return this.$el.off(t+".delegateEvents"+this.cid,e,r),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(r.result(this,"el"));else{var t=r.extend({},r.result(this,"attributes"));this.id&&(t.id=r.result(this,"id")),this.className&&(t.class=r.result(this,"className")),this.setElement(this._createElement(r.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,n,i){var o=A[t];r.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=r.result(n,"url")||D()),null!=i.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||n.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||i.emulateJSON||(s.processData=!1);var u=i.error;i.error=function(t,e,r){i.textStatus=e,i.errorThrown=r,u&&u.call(i.context,t,e,r)};var c=i.xhr=e.ajax(r.extend(s,i));return n.trigger("request",n,c,i),c};var A={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var k=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},S=/\((.*?)\)/g,P=/(\(\?)?:\w+/g,C=/\*\w+/g,M=/[\-{}\[\]+?.,\\\^$|#\s]/g;r.extend(k.prototype,c,{initialize:function(){},route:function(t,n,i){r.isRegExp(t)||(t=this._routeToRegExp(t)),r.isFunction(n)&&(i=n,n=""),i||(i=this[n]);var o=this;return e.history.route(t,(function(r){var s=o._extractParameters(t,r);!1!==o.execute(i,s,n)&&(o.trigger.apply(o,["route:"+n].concat(s)),o.trigger("route",n,s),e.history.trigger("route",o,n,s))})),this},execute:function(t,e,r){t&&t.apply(this,e)},navigate:function(t,r){return e.history.navigate(t,r),this},_bindRoutes:function(){if(this.routes){this.routes=r.result(this,"routes");for(var t,e=r.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(M,"\\$&").replace(S,"(?:$1)?").replace(P,(function(t,e){return e?t:"([^/?]+)"})).replace(C,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return r.map(n,(function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null}))}});var T=e.History=function(){this.handlers=[],this.checkUrl=r.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,z=/^\/+|\/+$/g,I=/#.*$/;T.started=!1,r.extend(T.prototype,c,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(B,"")},start:function(t){if(T.started)throw new Error("Backbone.history has already been started");if(T.started=!0,this.options=r.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(z,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,i=n.insertBefore(this.iframe,n.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),T.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),r.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!T.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var r=this.root;""!==t&&"?"!==t.charAt(0)||(r=r.slice(0,-1)||"/");var n=r+t;if(t=this.decodeFragment(t.replace(I,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,r){if(r){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new T;g.extend=y.extend=k.extend=j.extend=T.extend=function(t,e){var n,i=this;n=t&&r.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},r.extend(n,i,e);var o=function(){this.constructor=n};return o.prototype=i.prototype,n.prototype=new o,t&&r.extend(n.prototype,t),n.__super__=i.prototype,n};var D=function(){throw new Error('A "url" property or function must be specified')},N=function(t,e){var r=e.error;e.error=function(n){r&&r.call(e.context,t,n,e),t.trigger("error",t,n,e)}};return e}(o,r,t,e)}.apply(e,n))||(t.exports=i)},9742:(t,e)=>{"use strict";e.b$=function(t){var e,r,o=function(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}(t),s=o[0],a=o[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),c=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.JQ=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),i=r(401),o=r(7667),s=r(1327),a=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,r)=>{var n=r(7040),i=r(4125),o=r(2117),s=r(7518),a=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),i=r(1285),o=r(6e3),s=r(9916),a=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),i=r(619),o=r(2385);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:(t,e,r)=>{var n=r(8407),i=r(7465),o=r(3779),s=r(7599),a=r(4758),u=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},4636:(t,e,r)=>{var n=r(2545),i=r(5694),o=r(1469),s=r(4144),a=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),h=!r&&!l&&s(t),f=!r&&!l&&!h&&u(t),p=r||l||h||f,d=p?n(t.length,String):[],v=d.length;for(var _ in t)!e&&!c.call(t,_)||p&&("length"==_||h&&("offset"==_||"parent"==_)||f&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,v))||d.push(_);return d}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8866:(t,e,r)=>{var n=r(2488),i=r(1469);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},4239:(t,e,r)=>{var n=r(2705),i=r(9607),o=r(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},9454:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),i=r(7005);t.exports=function t(e,r,o,s,a){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,s,t,a))}},2492:(t,e,r)=>{var n=r(6384),i=r(7114),o=r(8351),s=r(6096),a=r(4160),u=r(1469),c=r(4144),l=r(6719),h="[object Arguments]",f="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,_,m){var g=u(t),y=u(e),b=g?f:a(t),w=y?f:a(e),x=(b=b==h?p:b)==p,j=(w=w==h?p:w)==p,O=b==w;if(O&&c(t)){if(!c(e))return!1;g=!0,x=!1}if(O&&!x)return m||(m=new n),g||l(t)?i(t,e,r,v,_,m):o(t,e,b,r,v,_,m);if(!(1&r)){var E=x&&d.call(t,"__wrapped__"),A=j&&d.call(e,"__wrapped__");if(E||A){var k=E?t.value():t,S=A?e.value():e;return m||(m=new n),_(k,S,r,v,m)}}return!!O&&(m||(m=new n),s(t,e,r,v,_,m))}},8458:(t,e,r)=>{var n=r(3560),i=r(5346),o=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,h=c.hasOwnProperty,f=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?f:a).test(s(t))}},8749:(t,e,r)=>{var n=r(4239),i=r(1780),o=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},280:(t,e,r)=>{var n=r(5726),i=r(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},7114:(t,e,r)=>{var n=r(8668),i=r(2908),o=r(4757);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t),p=u.get(e);if(f&&p)return f==e&&p==t;var d=-1,v=!0,_=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<l;){var m=t[d],g=e[d];if(s)var y=c?s(g,m,d,e,t,u):s(m,g,d,t,e,u);if(void 0!==y){if(y)continue;v=!1;break}if(_){if(!i(e,(function(t,e){if(!o(_,e)&&(m===t||a(m,t,r,s,u)))return _.push(e)}))){v=!1;break}}else if(m!==g&&!a(m,g,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,r)=>{var n=r(2705),i=r(1149),o=r(7813),s=r(7114),a=r(8776),u=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,h,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var d=1&n;if(p||(p=u),t.size!=e.size&&!d)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var _=s(p(t),p(e),n,c,h,f);return f.delete(t),_;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in e:i.call(e,f)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var v=!0;a.set(t,e),a.set(e,t);for(var _=u;++h<l;){var m=t[f=c[h]],g=e[f];if(o)var y=u?o(g,m,f,e,t,a):o(m,g,f,t,e,a);if(!(void 0===y?m===g||s(m,g,r,o,a):y)){v=!1;break}_||(_="constructor"==f)}if(v&&!_){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(v=!1)}return a.delete(t),a.delete(e),v}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),i=r(9551),o=r(3674);t.exports=function(t){return n(t,o,i)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},852:(t,e,r)=>{var n=r(8458),i=r(7801);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},9551:(t,e,r)=>{var n=r(4963),i=r(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},4160:(t,e,r)=>{var n=r(8552),i=r(7071),o=r(3818),s=r(8525),a=r(577),u=r(4239),c=r(346),l="[object Map]",h="[object Promise]",f="[object Set]",p="[object WeakMap]",d="[object DataView]",v=c(n),_=c(i),m=c(o),g=c(s),y=c(a),b=u;(n&&b(new n(new ArrayBuffer(1)))!=d||i&&b(new i)!=l||o&&b(o.resolve())!=h||s&&b(new s)!=f||a&&b(new a)!=p)&&(b=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return d;case _:return l;case m:return h;case g:return f;case y:return p}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,i=r(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),i=r(8407),o=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5639:(t,e,r)=>{var n=r(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),i=r(7071),o=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5694:(t,e,r)=>{var n=r(9454),i=r(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),i=r(1780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),i=r(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),i=r(3218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),i=r(5924),o=r(7005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},6719:(t,e,r)=>{var n=r(8749),i=r(1717),o=r(1167),s=o&&o.isTypedArray,a=s?i(s):n;t.exports=a},3674:(t,e,r)=>{var n=r(4636),i=r(280),o=r(8612);t.exports=function(t){return o(t)?n(t):i(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},1311:function(t,e,r){t.exports=function(){var t="1.13.1",e="object"==typeof self&&self.self===self&&self||"object"==typeof r.g&&r.g.global===r.g&&r.g||Function("return this")()||{},n=Array.prototype,i=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,s=n.push,a=n.slice,u=i.toString,c=i.hasOwnProperty,l="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,f=Array.isArray,p=Object.keys,d=Object.create,v=l&&ArrayBuffer.isView,_=isNaN,m=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],b=Math.pow(2,53)-1;function w(t,e){return e=null==e?t.length-1:+e,function(){for(var r=Math.max(arguments.length-e,0),n=Array(r),i=0;i<r;i++)n[i]=arguments[i+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=n,t.apply(this,o)}}function x(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function j(t){return void 0===t}function O(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function E(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var A=E("String"),k=E("Number"),S=E("Date"),P=E("RegExp"),C=E("Error"),M=E("Symbol"),T=E("ArrayBuffer"),B=E("Function"),z=e.document&&e.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof z&&(B=function(t){return"function"==typeof t||!1});var I=B,D=E("Object"),N=h&&D(new DataView(new ArrayBuffer(8))),F="undefined"!=typeof Map&&D(new Map),R=E("DataView"),U=N?function(t){return null!=t&&I(t.getInt8)&&T(t.buffer)}:R,$=f||E("Array");function L(t,e){return null!=t&&c.call(t,e)}var V=E("Arguments");!function(){V(arguments)||(V=function(t){return L(t,"callee")})}();var W=V;function H(t){return k(t)&&_(t)}function J(t){return function(){return t}}function q(t){return function(e){var r=t(e);return"number"==typeof r&&r>=0&&r<=b}}function G(t){return function(e){return null==e?void 0:e[t]}}var K=G("byteLength"),Y=q(K),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,X=l?function(t){return v?v(t)&&!U(t):Y(t)&&Q.test(u.call(t))}:J(!1),Z=G("length");function tt(t,e){e=function(t){for(var e={},r=t.length,n=0;n<r;++n)e[t[n]]=!0;return{contains:function(t){return e[t]},push:function(r){return e[r]=!0,t.push(r)}}}(e);var r=y.length,n=t.constructor,o=I(n)&&n.prototype||i,s="constructor";for(L(t,s)&&!e.contains(s)&&e.push(s);r--;)(s=y[r])in t&&t[s]!==o[s]&&!e.contains(s)&&e.push(s)}function et(t){if(!x(t))return[];if(p)return p(t);var e=[];for(var r in t)L(t,r)&&e.push(r);return g&&tt(t,e),e}function rt(t,e){var r=et(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var s=r[o];if(e[s]!==i[s]||!(s in i))return!1}return!0}function nt(t){return t instanceof nt?t:this instanceof nt?void(this._wrapped=t):new nt(t)}function it(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,K(t))}nt.VERSION=t,nt.prototype.value=function(){return this._wrapped},nt.prototype.valueOf=nt.prototype.toJSON=nt.prototype.value,nt.prototype.toString=function(){return String(this._wrapped)};var ot="[object DataView]";function st(t,e,r,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&function t(e,r,n,i){e instanceof nt&&(e=e._wrapped),r instanceof nt&&(r=r._wrapped);var s=u.call(e);if(s!==u.call(r))return!1;if(N&&"[object Object]"==s&&U(e)){if(!U(r))return!1;s=ot}switch(s){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:0==+e?1/+e==1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return o.valueOf.call(e)===o.valueOf.call(r);case"[object ArrayBuffer]":case ot:return t(it(e),it(r),n,i)}var a="[object Array]"===s;if(!a&&X(e)){if(K(e)!==K(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof r)return!1;var c=e.constructor,l=r.constructor;if(c!==l&&!(I(c)&&c instanceof c&&I(l)&&l instanceof l)&&"constructor"in e&&"constructor"in r)return!1}i=i||[];for(var h=(n=n||[]).length;h--;)if(n[h]===e)return i[h]===r;if(n.push(e),i.push(r),a){if((h=e.length)!==r.length)return!1;for(;h--;)if(!st(e[h],r[h],n,i))return!1}else{var f,p=et(e);if(h=p.length,et(r).length!==h)return!1;for(;h--;)if(!L(r,f=p[h])||!st(e[f],r[f],n,i))return!1}return n.pop(),i.pop(),!0}(t,e,r,n)}function at(t){if(!x(t))return[];var e=[];for(var r in t)e.push(r);return g&&tt(t,e),e}function ut(t){var e=Z(t);return function(r){if(null==r)return!1;var n=at(r);if(Z(n))return!1;for(var i=0;i<e;i++)if(!I(r[t[i]]))return!1;return t!==pt||!I(r[ct])}}var ct="forEach",lt=["clear","delete"],ht=["get","has","set"],ft=lt.concat(ct,ht),pt=lt.concat(ht),dt=["add"].concat(lt,ct,"has"),vt=F?ut(ft):E("Map"),_t=F?ut(pt):E("WeakMap"),mt=F?ut(dt):E("Set"),gt=E("WeakSet");function yt(t){for(var e=et(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n}function bt(t){for(var e={},r=et(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e}function wt(t){var e=[];for(var r in t)I(t[r])&&e.push(r);return e.sort()}function xt(t,e){return function(r){var n=arguments.length;if(e&&(r=Object(r)),n<2||null==r)return r;for(var i=1;i<n;i++)for(var o=arguments[i],s=t(o),a=s.length,u=0;u<a;u++){var c=s[u];e&&void 0!==r[c]||(r[c]=o[c])}return r}}var jt=xt(at),Ot=xt(et),Et=xt(at,!0);function At(t){if(!x(t))return{};if(d)return d(t);var e=function(){};e.prototype=t;var r=new e;return e.prototype=null,r}function kt(t){return x(t)?$(t)?t.slice():jt({},t):t}function St(t){return $(t)?t:[t]}function Pt(t){return nt.toPath(t)}function Ct(t,e){for(var r=e.length,n=0;n<r;n++){if(null==t)return;t=t[e[n]]}return r?t:void 0}function Mt(t,e,r){var n=Ct(t,Pt(e));return j(n)?r:n}function Tt(t){return t}function Bt(t){return t=Ot({},t),function(e){return rt(e,t)}}function zt(t){return t=Pt(t),function(e){return Ct(e,t)}}function It(t,e,r){if(void 0===e)return t;switch(null==r?3:r){case 1:return function(r){return t.call(e,r)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,o){return t.call(e,r,n,i,o)}}return function(){return t.apply(e,arguments)}}function Dt(t,e,r){return null==t?Tt:I(t)?It(t,e,r):x(t)&&!$(t)?Bt(t):zt(t)}function Nt(t,e){return Dt(t,e,1/0)}function Ft(t,e,r){return nt.iteratee!==Nt?nt.iteratee(t,e):Dt(t,e,r)}function Rt(){}function Ut(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}nt.toPath=St,nt.iteratee=Nt;var $t=Date.now||function(){return(new Date).getTime()};function Lt(t){var e=function(e){return t[e]},r="(?:"+et(t).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,e):t}}var Vt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Wt=Lt(Vt),Ht=Lt(bt(Vt)),Jt=nt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},qt=/(.)^/,Gt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Kt=/\\|'|\r|\n|\u2028|\u2029/g;function Yt(t){return"\\"+Gt[t]}var Qt=/^\s*(\w|\$)+\s*$/,Xt=0;function Zt(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=At(t.prototype),s=t.apply(o,i);return x(s)?s:o}var te=w((function(t,e){var r=te.placeholder,n=function(){for(var i=0,o=e.length,s=Array(o),a=0;a<o;a++)s[a]=e[a]===r?arguments[i++]:e[a];for(;i<arguments.length;)s.push(arguments[i++]);return Zt(t,n,this,this,s)};return n}));te.placeholder=nt;var ee=w((function(t,e,r){if(!I(t))throw new TypeError("Bind must be called on a function");var n=w((function(i){return Zt(t,n,e,this,r.concat(i))}));return n})),re=q(Z);function ne(t,e,r,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var i=n.length,o=0,s=Z(t);o<s;o++){var a=t[o];if(re(a)&&($(a)||W(a)))if(e>1)ne(a,e-1,r,n),i=n.length;else for(var u=0,c=a.length;u<c;)n[i++]=a[u++];else r||(n[i++]=a)}return n}var ie=w((function(t,e){var r=(e=ne(e,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=e[r];t[n]=ee(t[n],t)}return t})),oe=w((function(t,e,r){return setTimeout((function(){return t.apply(null,r)}),e)})),se=te(oe,nt,1);function ae(t){return function(){return!t.apply(this,arguments)}}function ue(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}}var ce=te(ue,2);function le(t,e,r){e=Ft(e,r);for(var n,i=et(t),o=0,s=i.length;o<s;o++)if(e(t[n=i[o]],n,t))return n}function he(t){return function(e,r,n){r=Ft(r,n);for(var i=Z(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(r(e[o],o,e))return o;return-1}}var fe=he(1),pe=he(-1);function de(t,e,r,n){for(var i=(r=Ft(r,n,1))(e),o=0,s=Z(t);o<s;){var a=Math.floor((o+s)/2);r(t[a])<i?o=a+1:s=a}return o}function ve(t,e,r){return function(n,i,o){var s=0,u=Z(n);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return n[o=r(n,i)]===i?o:-1;if(i!=i)return(o=e(a.call(n,s,u),H))>=0?o+s:-1;for(o=t>0?s:u-1;o>=0&&o<u;o+=t)if(n[o]===i)return o;return-1}}var _e=ve(1,fe,de),me=ve(-1,pe);function ge(t,e,r){var n=(re(t)?fe:le)(t,e,r);if(void 0!==n&&-1!==n)return t[n]}function ye(t,e,r){var n,i;if(e=It(e,r),re(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=et(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t}function be(t,e,r){e=Ft(e,r);for(var n=!re(t)&&et(t),i=(n||t).length,o=Array(i),s=0;s<i;s++){var a=n?n[s]:s;o[s]=e(t[a],a,t)}return o}function we(t){var e=function(e,r,n,i){var o=!re(e)&&et(e),s=(o||e).length,a=t>0?0:s-1;for(i||(n=e[o?o[a]:a],a+=t);a>=0&&a<s;a+=t){var u=o?o[a]:a;n=r(n,e[u],u,e)}return n};return function(t,r,n,i){var o=arguments.length>=3;return e(t,It(r,i,4),n,o)}}var xe=we(1),je=we(-1);function Oe(t,e,r){var n=[];return e=Ft(e,r),ye(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Ee(t,e,r){e=Ft(e,r);for(var n=!re(t)&&et(t),i=(n||t).length,o=0;o<i;o++){var s=n?n[o]:o;if(!e(t[s],s,t))return!1}return!0}function Ae(t,e,r){e=Ft(e,r);for(var n=!re(t)&&et(t),i=(n||t).length,o=0;o<i;o++){var s=n?n[o]:o;if(e(t[s],s,t))return!0}return!1}function ke(t,e,r,n){return re(t)||(t=yt(t)),("number"!=typeof r||n)&&(r=0),_e(t,e,r)>=0}var Se=w((function(t,e,r){var n,i;return I(e)?i=e:(e=Pt(e),n=e.slice(0,-1),e=e[e.length-1]),be(t,(function(t){var o=i;if(!o){if(n&&n.length&&(t=Ct(t,n)),null==t)return;o=t[e]}return null==o?o:o.apply(t,r)}))}));function Pe(t,e){return be(t,zt(e))}function Ce(t,e,r){var n,i,o=-1/0,s=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,u=(t=re(t)?t:yt(t)).length;a<u;a++)null!=(n=t[a])&&n>o&&(o=n);else e=Ft(e,r),ye(t,(function(t,r,n){((i=e(t,r,n))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o}function Me(t,e,r){if(null==e||r)return re(t)||(t=yt(t)),t[Ut(t.length-1)];var n=re(t)?kt(t):yt(t),i=Z(n);e=Math.max(Math.min(e,i),0);for(var o=i-1,s=0;s<e;s++){var a=Ut(s,o),u=n[s];n[s]=n[a],n[a]=u}return n.slice(0,e)}function Te(t,e){return function(r,n,i){var o=e?[[],[]]:{};return n=Ft(n,i),ye(r,(function(e,i){var s=n(e,i,r);t(o,e,s)})),o}}var Be=Te((function(t,e,r){L(t,r)?t[r].push(e):t[r]=[e]})),ze=Te((function(t,e,r){t[r]=e})),Ie=Te((function(t,e,r){L(t,r)?t[r]++:t[r]=1})),De=Te((function(t,e,r){t[r?0:1].push(e)}),!0),Ne=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Fe(t,e,r){return e in r}var Re=w((function(t,e){var r={},n=e[0];if(null==t)return r;I(n)?(e.length>1&&(n=It(n,e[1])),e=at(t)):(n=Fe,e=ne(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var s=e[i],a=t[s];n(a,s,t)&&(r[s]=a)}return r})),Ue=w((function(t,e){var r,n=e[0];return I(n)?(n=ae(n),e.length>1&&(r=e[1])):(e=be(ne(e,!1,!1),String),n=function(t,r){return!ke(e,r)}),Re(t,n,r)}));function $e(t,e,r){return a.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))}function Le(t,e,r){return null==t||t.length<1?null==e||r?void 0:[]:null==e||r?t[0]:$e(t,t.length-e)}function Ve(t,e,r){return a.call(t,null==e||r?1:e)}var We=w((function(t,e){return e=ne(e,!0,!0),Oe(t,(function(t){return!ke(e,t)}))})),He=w((function(t,e){return We(t,e)}));function Je(t,e,r,n){O(e)||(n=r,r=e,e=!1),null!=r&&(r=Ft(r,n));for(var i=[],o=[],s=0,a=Z(t);s<a;s++){var u=t[s],c=r?r(u,s,t):u;e&&!r?(s&&o===c||i.push(u),o=c):r?ke(o,c)||(o.push(c),i.push(u)):ke(i,u)||i.push(u)}return i}var qe=w((function(t){return Je(ne(t,!0,!0))}));function Ge(t){for(var e=t&&Ce(t,Z).length||0,r=Array(e),n=0;n<e;n++)r[n]=Pe(t,n);return r}var Ke=w(Ge);function Ye(t,e){return t._chain?nt(e).chain():e}function Qe(t){return ye(wt(t),(function(e){var r=nt[e]=t[e];nt.prototype[e]=function(){var t=[this._wrapped];return s.apply(t,arguments),Ye(this,r.apply(nt,t))}})),nt}ye(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=n[t];nt.prototype[t]=function(){var r=this._wrapped;return null!=r&&(e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0]),Ye(this,r)}})),ye(["concat","join","slice"],(function(t){var e=n[t];nt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ye(this,t)}}));var Xe=Qe({__proto__:null,VERSION:t,restArguments:w,isObject:x,isNull:function(t){return null===t},isUndefined:j,isBoolean:O,isElement:function(t){return!(!t||1!==t.nodeType)},isString:A,isNumber:k,isDate:S,isRegExp:P,isError:C,isSymbol:M,isArrayBuffer:T,isDataView:U,isArray:$,isFunction:I,isArguments:W,isFinite:function(t){return!M(t)&&m(t)&&!isNaN(parseFloat(t))},isNaN:H,isTypedArray:X,isEmpty:function(t){if(null==t)return!0;var e=Z(t);return"number"==typeof e&&($(t)||A(t)||W(t))?0===e:0===Z(et(t))},isMatch:rt,isEqual:function(t,e){return st(t,e)},isMap:vt,isWeakMap:_t,isSet:mt,isWeakSet:gt,keys:et,allKeys:at,values:yt,pairs:function(t){for(var e=et(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},invert:bt,functions:wt,methods:wt,extend:jt,extendOwn:Ot,assign:Ot,defaults:Et,create:function(t,e){var r=At(t);return e&&Ot(r,e),r},clone:kt,tap:function(t,e){return e(t),t},get:Mt,has:function(t,e){for(var r=(e=Pt(e)).length,n=0;n<r;n++){var i=e[n];if(!L(t,i))return!1;t=t[i]}return!!r},mapObject:function(t,e,r){e=Ft(e,r);for(var n=et(t),i=n.length,o={},s=0;s<i;s++){var a=n[s];o[a]=e(t[a],a,t)}return o},identity:Tt,constant:J,noop:Rt,toPath:St,property:zt,propertyOf:function(t){return null==t?Rt:function(e){return Mt(t,e)}},matcher:Bt,matches:Bt,times:function(t,e,r){var n=Array(Math.max(0,t));e=It(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},random:Ut,now:$t,escape:Wt,unescape:Ht,templateSettings:Jt,template:function(t,e,r){!e&&r&&(e=r),e=Et({},e,nt.templateSettings);var n=RegExp([(e.escape||qt).source,(e.interpolate||qt).source,(e.evaluate||qt).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(n,(function(e,r,n,s,a){return o+=t.slice(i,a).replace(Kt,Yt),i=a+e.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e})),o+="';\n";var s,a=e.variable;if(a){if(!Qt.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(t){throw t.source=o,t}var u=function(t){return s.call(this,t,nt)};return u.source="function("+a+"){\n"+o+"}",u},result:function(t,e,r){var n=(e=Pt(e)).length;if(!n)return I(r)?r.call(t):r;for(var i=0;i<n;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=r,i=n),t=I(o)?o.call(t):o}return t},uniqueId:function(t){var e=++Xt+"";return t?t+e:e},chain:function(t){var e=nt(t);return e._chain=!0,e},iteratee:Nt,partial:te,bind:ee,bindAll:ie,memoize:function(t,e){var r=function(n){var i=r.cache,o=""+(e?e.apply(this,arguments):n);return L(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return r.cache={},r},delay:oe,defer:se,throttle:function(t,e,r){var n,i,o,s,a=0;r||(r={});var u=function(){a=!1===r.leading?0:$t(),n=null,s=t.apply(i,o),n||(i=o=null)},c=function(){var c=$t();a||!1!==r.leading||(a=c);var l=e-(c-a);return i=this,o=arguments,l<=0||l>e?(n&&(clearTimeout(n),n=null),a=c,s=t.apply(i,o),n||(i=o=null)):n||!1===r.trailing||(n=setTimeout(u,l)),s};return c.cancel=function(){clearTimeout(n),a=0,n=i=o=null},c},debounce:function(t,e,r){var n,i,o,s,a,u=function(){var c=$t()-i;e>c?n=setTimeout(u,e-c):(n=null,r||(s=t.apply(a,o)),n||(o=a=null))},c=w((function(c){return a=this,o=c,i=$t(),n||(n=setTimeout(u,e),r&&(s=t.apply(a,o))),s}));return c.cancel=function(){clearTimeout(n),n=o=a=null},c},wrap:function(t,e){return te(e,t)},negate:ae,compose:function(){var t=arguments,e=t.length-1;return function(){for(var r=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);return n}},after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},before:ue,once:ce,findKey:le,findIndex:fe,findLastIndex:pe,sortedIndex:de,indexOf:_e,lastIndexOf:me,find:ge,detect:ge,findWhere:function(t,e){return ge(t,Bt(e))},each:ye,forEach:ye,map:be,collect:be,reduce:xe,foldl:xe,inject:xe,reduceRight:je,foldr:je,filter:Oe,select:Oe,reject:function(t,e,r){return Oe(t,ae(Ft(e)),r)},every:Ee,all:Ee,some:Ae,any:Ae,contains:ke,includes:ke,include:ke,invoke:Se,pluck:Pe,where:function(t,e){return Oe(t,Bt(e))},max:Ce,min:function(t,e,r){var n,i,o=1/0,s=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,u=(t=re(t)?t:yt(t)).length;a<u;a++)null!=(n=t[a])&&n<o&&(o=n);else e=Ft(e,r),ye(t,(function(t,r,n){((i=e(t,r,n))<s||i===1/0&&o===1/0)&&(o=t,s=i)}));return o},shuffle:function(t){return Me(t,1/0)},sample:Me,sortBy:function(t,e,r){var n=0;return e=Ft(e,r),Pe(be(t,(function(t,r,i){return{value:t,index:n++,criteria:e(t,r,i)}})).sort((function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index})),"value")},groupBy:Be,indexBy:ze,countBy:Ie,partition:De,toArray:function(t){return t?$(t)?a.call(t):A(t)?t.match(Ne):re(t)?be(t,Tt):yt(t):[]},size:function(t){return null==t?0:re(t)?t.length:et(t).length},pick:Re,omit:Ue,first:Le,head:Le,take:Le,initial:$e,last:function(t,e,r){return null==t||t.length<1?null==e||r?void 0:[]:null==e||r?t[t.length-1]:Ve(t,Math.max(0,t.length-e))},rest:Ve,tail:Ve,drop:Ve,compact:function(t){return Oe(t,Boolean)},flatten:function(t,e){return ne(t,e,!1)},without:He,uniq:Je,unique:Je,union:qe,intersection:function(t){for(var e=[],r=arguments.length,n=0,i=Z(t);n<i;n++){var o=t[n];if(!ke(e,o)){var s;for(s=1;s<r&&ke(arguments[s],o);s++);s===r&&e.push(o)}}return e},difference:We,unzip:Ge,transpose:Ge,zip:Ke,object:function(t,e){for(var r={},n=0,i=Z(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r},range:function(t,e,r){null==e&&(e=t||0,t=0),r||(r=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i},chunk:function(t,e){if(null==e||e<1)return[];for(var r=[],n=0,i=t.length;n<i;)r.push(a.call(t,n,n+=e));return r},mixin:Qe,default:nt});return Xe._=Xe,Xe}()}}]);