notebook 7.2.3__py3-none-any.whl → 7.3.0a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of notebook might be problematic. Click here for more details.
- notebook/_version.py +1 -1
- notebook/app.py +6 -0
- notebook/static/113.bundle.js +1 -1
- notebook/static/1198.bundle.js +1 -1
- notebook/static/1226.bundle.js +1 -0
- notebook/static/131.bundle.js +1 -1
- notebook/static/134.bundle.js +1 -1
- notebook/static/1408.bundle.js +1 -1
- notebook/static/1496.bundle.js +1 -1
- notebook/static/1584.bundle.js +1 -1
- notebook/static/1601.bundle.js +1 -0
- notebook/static/1647.bundle.js +1 -1
- notebook/static/1650.bundle.js +1 -1
- notebook/static/1684.bundle.js +1 -1
- notebook/static/1750.bundle.js +1 -0
- notebook/static/1809.bundle.js +1 -1
- notebook/static/1827.bundle.js +1 -1
- notebook/static/1833.bundle.js +1 -1
- notebook/static/1884.bundle.js +386 -0
- notebook/static/1958.bundle.js +1 -1
- notebook/static/1962.bundle.js +1 -1
- notebook/static/2007.bundle.js +1 -1
- notebook/static/2088.bundle.js +1 -1
- notebook/static/2089.bundle.js +1 -1
- notebook/static/2122.bundle.js +1 -1
- notebook/static/2167.bundle.js +1 -1
- notebook/static/2184.bundle.js +1 -1
- notebook/static/2311.bundle.js +1 -1
- notebook/static/2401.bundle.js +1 -1
- notebook/static/2479.bundle.js +1 -1
- notebook/static/2489.bundle.js +1 -1
- notebook/static/2552.bundle.js +1 -1
- notebook/static/2607.bundle.js +1 -1
- notebook/static/2615.bundle.js +1 -1
- notebook/static/2636.bundle.js +1 -1
- notebook/static/{6593.bundle.js → 2756.bundle.js} +1 -1
- notebook/static/2924.bundle.js +1 -1
- notebook/static/2944.bundle.js +1 -1
- notebook/static/3129.bundle.js +1 -1
- notebook/static/3146.bundle.js +1 -1
- notebook/static/3187.bundle.js +1 -1
- notebook/static/3213.bundle.js +1 -1
- notebook/static/3340.bundle.js +1 -1
- notebook/static/3360.bundle.js +1 -1
- notebook/static/3420.bundle.js +1 -1
- notebook/static/3466.bundle.js +1 -1
- notebook/static/3512.bundle.js +1 -1
- notebook/static/3676.bundle.js +1 -1
- notebook/static/3680.bundle.js +1 -1
- notebook/static/374.bundle.js +1 -1
- notebook/static/3768.bundle.js +1 -1
- notebook/static/377.bundle.js +1 -1
- notebook/static/3863.bundle.js +1 -1
- notebook/static/3881.bundle.js +1 -1
- notebook/static/4042.bundle.js +1 -1
- notebook/static/4045.bundle.js +1 -0
- notebook/static/4212.bundle.js +1 -1
- notebook/static/4382.bundle.js +1 -1
- notebook/static/{7674.bundle.js → 4427.bundle.js} +1 -1
- notebook/static/4434.bundle.js +1 -0
- notebook/static/4588.bundle.js +1 -1
- notebook/static/4645.bundle.js +1 -1
- notebook/static/4811.bundle.js +1 -1
- notebook/static/4837.bundle.js +1 -1
- notebook/static/5018.bundle.js +1 -0
- notebook/static/5099.bundle.js +1 -1
- notebook/static/5135.bundle.js +1 -1
- notebook/static/5254.bundle.js +1 -1
- notebook/static/5261.bundle.js +1 -1
- notebook/static/5313.bundle.js +1 -1
- notebook/static/5325.bundle.js +1 -1
- notebook/static/5346.bundle.js +1 -1
- notebook/static/5426.bundle.js +1 -1
- notebook/static/545.bundle.js +1 -1
- notebook/static/5573.bundle.js +1 -1
- notebook/static/5601.bundle.js +1 -1
- notebook/static/5712.bundle.js +1 -0
- notebook/static/5733.bundle.js +1 -1
- notebook/static/5828.bundle.js +1 -1
- notebook/static/5850.bundle.js +1 -1
- notebook/static/5912.bundle.js +1 -1
- notebook/static/5921.bundle.js +1 -1
- notebook/static/6017.bundle.js +1 -1
- notebook/static/6139.bundle.js +1 -1
- notebook/static/6164.bundle.js +1 -0
- notebook/static/62.bundle.js +1 -1
- notebook/static/6271.bundle.js +1 -1
- notebook/static/6281.bundle.js +1 -1
- notebook/static/6318.bundle.js +1 -0
- notebook/static/6345.bundle.js +1 -1
- notebook/static/6604.bundle.js +1 -1
- notebook/static/6619.bundle.js +1 -0
- notebook/static/6621.bundle.js +1 -1
- notebook/static/6627.bundle.js +1 -1
- notebook/static/6748.bundle.js +1 -1
- notebook/static/677.bundle.js +1 -1
- notebook/static/6815.bundle.js +1 -1
- notebook/static/6853.bundle.js +1 -1
- notebook/static/6893.bundle.js +1 -1
- notebook/static/6898.bundle.js +1 -0
- notebook/static/690.bundle.js +1 -1
- notebook/static/6962.bundle.js +1 -1
- notebook/static/6999.bundle.js +1 -1
- notebook/static/7226.bundle.js +1 -1
- notebook/static/7252.bundle.js +1 -1
- notebook/static/7259.bundle.js +1 -1
- notebook/static/7302.bundle.js +1 -1
- notebook/static/7386.bundle.js +1 -1
- notebook/static/7391.bundle.js +1 -1
- notebook/static/7450.bundle.js +1 -1
- notebook/static/7506.bundle.js +703 -0
- notebook/static/7543.bundle.js +1 -1
- notebook/static/755.bundle.js +1 -1
- notebook/static/7579.bundle.js +1 -0
- notebook/static/7603.bundle.js +1 -1
- notebook/static/7639.bundle.js +1 -1
- notebook/static/7655.bundle.js +1 -1
- notebook/static/7684.bundle.js +1 -1
- notebook/static/7812.bundle.js +1 -1
- notebook/static/7819.bundle.js +1 -1
- notebook/static/7854.bundle.js +1 -1
- notebook/static/7900.bundle.js +1 -1
- notebook/static/7906.bundle.js +1 -1
- notebook/static/7995.bundle.js +1 -1
- notebook/static/8010.bundle.js +1 -1
- notebook/static/8054.bundle.js +1 -0
- notebook/static/8471.bundle.js +1 -1
- notebook/static/85.bundle.js +1 -1
- notebook/static/8579.bundle.js +1 -1
- notebook/static/8633.bundle.js +1 -1
- notebook/static/8647.bundle.js +1 -0
- notebook/static/8723.bundle.js +1 -0
- notebook/static/8771.bundle.js +1 -1
- notebook/static/8781.bundle.js +1 -1
- notebook/static/8875.bundle.js +1 -1
- notebook/static/8907.bundle.js +1 -1
- notebook/static/8928.bundle.js +1 -1
- notebook/static/893.bundle.js +1 -1
- notebook/static/901.bundle.js +1 -1
- notebook/static/9068.bundle.js +1 -1
- notebook/static/9092.bundle.js +1 -0
- notebook/static/9136.bundle.js +1 -1
- notebook/static/9151.bundle.js +1 -1
- notebook/static/9161.bundle.js +1 -1
- notebook/static/9268.bundle.js +1 -1
- notebook/static/9335.bundle.js +1 -1
- notebook/static/9341.bundle.js +1 -1
- notebook/static/9380.bundle.js +1 -1
- notebook/static/9605.bundle.js +1 -1
- notebook/static/9638.bundle.js +1 -1
- notebook/static/9680.bundle.js +1 -1
- notebook/static/9685.bundle.js +1 -1
- notebook/static/9734.bundle.js +1 -0
- notebook/static/9752.bundle.js +1 -1
- notebook/static/9821.bundle.js +1 -1
- notebook/static/9852.bundle.js +1 -1
- notebook/static/9906.bundle.js +1 -0
- notebook/static/bundle.js +1 -1
- notebook/static/third-party-licenses.json +107 -107
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +4 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +14 -14
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +4 -4
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +9 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +9 -9
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +15 -15
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +11 -11
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +10 -10
- notebook-7.2.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.0e9bcd74ae36ad68f70e.js → notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.6d49b092e49dc147dc54.js +1 -1
- notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/646.57a345a80ce9f0e64830.js +1 -0
- notebook-7.2.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.768a77db06802599fa5d.js → notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.7bcc163b9139ecb2b25b.js +1 -1
- notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.9381fdb35e72f41d8af1.js +1 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
- {notebook-7.2.3.dist-info → notebook-7.3.0a0.dist-info}/METADATA +4 -3
- {notebook-7.2.3.dist-info → notebook-7.3.0a0.dist-info}/RECORD +197 -185
- {notebook-7.2.3.dist-info → notebook-7.3.0a0.dist-info}/WHEEL +1 -1
- notebook/static/1718.bundle.js +0 -1
- notebook/static/2955.bundle.js +0 -1
- notebook/static/5263.bundle.js +0 -1
- notebook/static/6743.bundle.js +0 -1
- notebook/static/7866.bundle.js +0 -1
- notebook/static/8787.bundle.js +0 -1
- notebook/static/8896.bundle.js +0 -6025
- notebook/static/9799.bundle.js +0 -1
- notebook-7.2.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/804.2cd86c0d29e544a308c0.js +0 -1
- notebook-7.2.3.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.8cdb5c12db85ac589ef4.js +0 -1
- /notebook/static/{8896.bundle.js.LICENSE.txt → 7506.bundle.js.LICENSE.txt} +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/applications/jupyter-notebook.desktop +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
- {notebook-7.2.3.data → notebook-7.3.0a0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
- {notebook-7.2.3.dist-info → notebook-7.3.0a0.dist-info}/entry_points.txt +0 -0
- {notebook-7.2.3.dist-info → notebook-7.3.0a0.dist-info}/licenses/LICENSE +0 -0
notebook/static/7543.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7543],{37543:(e,t,s)=>{s.r(t),s.d(t,{DocumentManager:()=>M,DocumentWidgetManager:()=>x,IDocumentManager:()=>A,IDocumentWidgetOpener:()=>E,IRecentsManager:()=>I,PathStatus:()=>F,RecentsManager:()=>N,SaveHandler:()=>f,SavingStatus:()=>W,isValidFileName:()=>d,renameDialog:()=>c,renameFile:()=>l,shouldOverwrite:()=>h});var n,i=s(20005),a=s(64145),o=s(90646),r=s(63485);function c(e,t,s){const n=(s=s||o.nullTranslator).load("jupyterlab"),a=t.localPath.split("/").pop()||t.localPath;return(0,i.showDialog)({title:n.__("Rename File"),body:new g(a),focusNodeSelector:"input",buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:n.__("Rename"),ariaLabel:n.__("Rename File")})]}).then((e=>e.value?d(e.value)?t.rename(e.value):((0,i.showErrorMessage)(n.__("Rename Error"),Error(n.__('"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',e.value))),null):null))}function l(e,t,s){return e.rename(t,s).catch((n=>{if(409!==n.response.status)throw n;return h(s).then((n=>n?e.overwrite(t,s):Promise.reject("File not renamed")))}))}function h(e,t){const s=(t=t||o.nullTranslator).load("jupyterlab"),n={title:s.__("Overwrite file?"),body:s.__('"%1" already exists, overwrite?',e),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:s.__("Overwrite"),ariaLabel:s.__("Overwrite Existing File")})]};return(0,i.showDialog)(n).then((e=>Promise.resolve(e.button.accept)))}function d(e){return e.length>0&&!/[\/\\:]/.test(e)}class g extends r.Widget{constructor(e){super({node:n.createRenameNode(e)}),this.addClass("jp-FileDialog");const t=a.PathExt.extname(e),s=this.inputNode.value=a.PathExt.basename(e);this.inputNode.setSelectionRange(0,s.length-t.length)}get inputNode(){return this.node.getElementsByTagName("input")[0]}getValue(){return this.inputNode.value}}!function(e){e.createRenameNode=function(e,t){const s=(t=t||o.nullTranslator).load("jupyterlab"),n=document.createElement("div"),i=document.createElement("label");i.textContent=s.__("File Path");const a=document.createElement("span");a.textContent=e;const r=document.createElement("label");r.textContent=s.__("New Name"),r.className="jp-new-name-title";const c=document.createElement("input");return n.appendChild(i),n.appendChild(a),n.appendChild(r),n.appendChild(c),n}}(n||(n={}));var _=s(87973),u=s(33625),m=s(20998),p=s(14421),v=s(81997);class f{constructor(e){this._autosaveTimer=-1,this._minInterval=-1,this._interval=-1,this._isActive=!1,this._inDialog=!1,this._isDisposed=!1,this._multiplier=10,this._context=e.context,this._isConnectedCallback=e.isConnectedCallback||(()=>!0);const t=e.saveInterval||120;this._minInterval=1e3*t,this._interval=this._minInterval,this._context.fileChanged.connect(this._setTimer,this),this._context.disposed.connect(this.dispose,this)}get saveInterval(){return this._interval/1e3}set saveInterval(e){this._minInterval=this._interval=1e3*e,this._isActive&&this._setTimer()}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,clearTimeout(this._autosaveTimer),v.Signal.clearData(this))}start(){this._isActive=!0,this._setTimer()}stop(){this._isActive=!1,clearTimeout(this._autosaveTimer)}_setTimer(){clearTimeout(this._autosaveTimer),this._isActive&&(this._autosaveTimer=window.setTimeout((()=>{this._isConnectedCallback()&&this._save()}),this._interval))}_save(){const e=this._context;if(this._setTimer(),!e)return;if(!e.contentsModel||!e.contentsModel.writable||!e.model.dirty||this._inDialog)return;const t=(new Date).getTime();e.save().then((()=>{if(this.isDisposed)return;const e=(new Date).getTime()-t;this._interval=Math.max(this._multiplier*e,this._minInterval),this._setTimer()})).catch((e=>{const{name:t}=e;"ModalCancelError"!==t&&"ModalDuplicateError"!==t&&console.error("Error in Auto-Save",e.message)}))}}var w,y,C=s(2549),D=s(49503);class x{constructor(e){this._activateRequested=new v.Signal(this),this._confirmClosingTab=!1,this._isDisposed=!1,this._stateChanged=new v.Signal(this),this._registry=e.registry,this.translator=e.translator||o.nullTranslator,this._recentsManager=e.recentsManager||null}get activateRequested(){return this._activateRequested}get confirmClosingDocument(){return this._confirmClosingTab}set confirmClosingDocument(e){if(this._confirmClosingTab!==e){const t=this._confirmClosingTab;this._confirmClosingTab=e,this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.disconnectReceiver(this))}createWidget(e,t){const s=e.createNew(t);return this._initializeWidget(s,e,t),s}_initializeWidget(e,t,s){w.factoryProperty.set(e,t);const n=new C.DisposableSet;for(const i of this._registry.widgetExtensions(t.name)){const t=i.createNew(e,s);t&&n.add(t)}w.disposablesProperty.set(e,n),e.disposed.connect(this._onWidgetDisposed,this),this.adoptWidget(s,e),s.fileChanged.connect(this._onFileChanged,this),s.pathChanged.connect(this._onPathChanged,this),s.ready.then((()=>{this.setCaption(e)}))}adoptWidget(e,t){w.widgetsProperty.get(e).push(t),D.MessageLoop.installMessageHook(t,this),t.addClass("jp-Document"),t.title.closable=!0,t.disposed.connect(this._widgetDisposed,this),w.contextProperty.set(t,e)}findWidget(e,t){const s=w.widgetsProperty.get(e);if(s)return(0,u.find)(s,(e=>{const s=w.factoryProperty.get(e);return!!s&&s.name===t}))}contextForWidget(e){return w.contextProperty.get(e)}cloneWidget(e){const t=w.contextProperty.get(e);if(!t)return;const s=w.factoryProperty.get(e);if(!s)return;const n=s.createNew(t,e);return this._initializeWidget(n,s,t),n}closeWidgets(e){const t=w.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onClose(e)))).then((()=>{}))}deleteWidgets(e){const t=w.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onDelete(e)))).then((()=>{}))}messageHook(e,t){switch(t.type){case"close-request":return this.onClose(e),!1;case"activate-request":{const t=e,s=this.contextForWidget(t);s&&(s.ready.then((()=>{this._recordAsRecentlyOpened(t,s.contentsModel)})).catch((()=>{console.warn("Could not record the recents status for",s)})),this._activateRequested.emit(s.path));break}}return!0}async setCaption(e){const t=this.translator.load("jupyterlab"),s=w.contextProperty.get(e);if(!s)return;const n=s.contentsModel;if(n)return s.listCheckpoints().then((i=>{if(e.isDisposed)return;const o=i[i.length-1],r=o?a.Time.format(o.last_modified):"None";let c=t.__("Name: %1\nPath: %2\n",n.name,n.path);s.model.readOnly?c+=t.__("Read-only"):c+=t.__("Last Saved: %1\n",a.Time.format(n.last_modified))+t.__("Last Checkpoint: %1",r),e.title.caption=c}));e.title.caption=""}async onClose(e){var t;const[s,n]=await this._maybeClose(e,this.translator);if(e.isDisposed)return!0;if(s){const s=w.contextProperty.get(e);if(!n){if(!s)return!0;(null===(t=s.contentsModel)||void 0===t?void 0:t.writable)?await s.save():await s.saveAs()}if(s&&("timeout"===await Promise.race([s.ready,new Promise((e=>setTimeout(e,3e3,"timeout")))])?console.warn("Could not record the widget as recently closed because the context did not become ready in 3 seconds"):this._recordAsRecentlyClosed(e,s.contentsModel)),e.isDisposed)return!0;e.dispose()}return s}onDelete(e){return e.dispose(),Promise.resolve(void 0)}_recordAsRecentlyOpened(e,t){var s;const n=this._recentsManager;if(!n)return;const i=t.path,a=this._registry.getFileTypeForModel(t).contentType,o=null===(s=w.factoryProperty.get(e))||void 0===s?void 0:s.name;if(n.addRecent({path:i,contentType:a,factory:o},"opened"),"directory"!==a){const e=i.lastIndexOf("/")>0?i.slice(0,i.lastIndexOf("/")):"";n.addRecent({path:e,contentType:"directory"},"opened")}}_recordAsRecentlyClosed(e,t){var s;const n=this._recentsManager;if(!n)return;const i=t.path,a=this._registry.getFileTypeForModel(t).contentType,o=null===(s=w.factoryProperty.get(e))||void 0===s?void 0:s.name;n.addRecent({path:i,contentType:a,factory:o},"closed")}async _maybeClose(e,t){var s,n;const a=(t=t||o.nullTranslator).load("jupyterlab"),r=w.contextProperty.get(e);if(!r)return Promise.resolve([!0,!0]);let c=w.widgetsProperty.get(r);if(!c)return Promise.resolve([!0,!0]);c=c.filter((e=>{const t=w.factoryProperty.get(e);return!!t&&!1===t.readOnly}));const l=e.title.label,h=w.factoryProperty.get(e),d=r.model.dirty&&c.length<=1&&!(null===(s=null==h?void 0:h.readOnly)||void 0===s||s);if(this.confirmClosingDocument){const e=[i.Dialog.cancelButton(),i.Dialog.okButton({label:d?a.__("Close and save"):a.__("Close"),ariaLabel:d?a.__("Close and save Document"):a.__("Close Document")})];d&&e.splice(1,0,i.Dialog.warnButton({label:a.__("Close without saving"),ariaLabel:a.__("Close Document without saving")}));const t=await(0,i.showDialog)({title:a.__("Confirmation"),body:a.__('Please confirm you want to close "%1".',l),checkbox:d?null:{label:a.__("Do not ask me again."),caption:a.__("If checked, no confirmation to close a document will be asked in the future.")},buttons:e});return t.isChecked&&(this.confirmClosingDocument=!1),Promise.resolve([t.button.accept,!d||"warn"===t.button.displayType])}{if(!d)return Promise.resolve([!0,!0]);const e=(null===(n=r.contentsModel)||void 0===n?void 0:n.writable)?a.__("Save"):a.__("Save as"),t=await(0,i.showDialog)({title:a.__("Save your work"),body:a.__('Save changes in "%1" before closing?',l),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:a.__("Discard"),ariaLabel:a.__("Discard changes to file")}),i.Dialog.okButton({label:e})]});return[t.button.accept,"warn"===t.button.displayType]}}_widgetDisposed(e){const t=w.contextProperty.get(e);if(!t)return;const s=w.widgetsProperty.get(t);s&&(u.ArrayExt.removeFirstOf(s,e),s.length||t.dispose())}_onWidgetDisposed(e){w.disposablesProperty.get(e).dispose()}_onFileChanged(e){const t=w.widgetsProperty.get(e);for(const e of t)this.setCaption(e)}_onPathChanged(e){const t=w.widgetsProperty.get(e);for(const e of t)this.setCaption(e)}}!function(e){e.contextProperty=new p.AttachedProperty({name:"context",create:()=>{}}),e.factoryProperty=new p.AttachedProperty({name:"factory",create:()=>{}}),e.widgetsProperty=new p.AttachedProperty({name:"widgets",create:()=>[]}),e.disposablesProperty=new p.AttachedProperty({name:"disposables",create:()=>new C.DisposableSet})}(w||(w={}));class M{constructor(e){var t;this._activateRequested=new v.Signal(this),this._contexts=[],this._isDisposed=!1,this._autosave=!0,this._autosaveInterval=120,this._lastModifiedCheckMargin=500,this._renameUntitledFileOnSave=!0,this._stateChanged=new v.Signal(this),this.translator=e.translator||o.nullTranslator,this.registry=e.registry,this.services=e.manager,this._dialogs=null!==(t=e.sessionDialogs)&&void 0!==t?t:new i.SessionContextDialogs({translator:e.translator}),this._isConnectedCallback=e.isConnectedCallback||(()=>!0),this._opener=e.opener,this._when=e.when||e.manager.ready;const s=new x({registry:this.registry,translator:this.translator,recentsManager:e.recentsManager});s.activateRequested.connect(this._onActivateRequested,this),s.stateChanged.connect(this._onWidgetStateChanged,this),this._widgetManager=s,this._setBusy=e.setBusy}get activateRequested(){return this._activateRequested}get autosave(){return this._autosave}set autosave(e){if(this._autosave!==e){const t=this._autosave;this._autosave=e,this._contexts.forEach((t=>{const s=y.saveHandlerProperty.get(t);s&&(!0!==e||s.isActive?!1===e&&s.isActive&&s.stop():s.start())})),this._stateChanged.emit({name:"autosave",oldValue:t,newValue:e})}}get autosaveInterval(){return this._autosaveInterval}set autosaveInterval(e){if(this._autosaveInterval!==e){const t=this._autosaveInterval;this._autosaveInterval=e,this._contexts.forEach((t=>{const s=y.saveHandlerProperty.get(t);s&&(s.saveInterval=e||120)})),this._stateChanged.emit({name:"autosaveInterval",oldValue:t,newValue:e})}}get confirmClosingDocument(){return this._widgetManager.confirmClosingDocument}set confirmClosingDocument(e){if(this._widgetManager.confirmClosingDocument!==e){const t=this._widgetManager.confirmClosingDocument;this._widgetManager.confirmClosingDocument=e,this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){if(this._lastModifiedCheckMargin!==e){const t=this._lastModifiedCheckMargin;this._lastModifiedCheckMargin=e,this._contexts.forEach((t=>{t.lastModifiedCheckMargin=e})),this._stateChanged.emit({name:"lastModifiedCheckMargin",oldValue:t,newValue:e})}}get renameUntitledFileOnSave(){return this._renameUntitledFileOnSave}set renameUntitledFileOnSave(e){if(this._renameUntitledFileOnSave!==e){const t=this._renameUntitledFileOnSave;this._renameUntitledFileOnSave=e,this._stateChanged.emit({name:"renameUntitledFileOnSave",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.clearData(this),this._contexts.forEach((e=>this._widgetManager.closeWidgets(e))),this._widgetManager.dispose(),this._contexts.length=0)}cloneWidget(e){return this._widgetManager.cloneWidget(e)}closeAll(){return Promise.all(this._contexts.map((e=>this._widgetManager.closeWidgets(e)))).then((()=>{}))}closeFile(e){const t=this._contextsForPath(e).map((e=>this._widgetManager.closeWidgets(e)));return Promise.all(t).then((e=>{}))}contextForWidget(e){return this._widgetManager.contextForWidget(e)}copy(e,t){return this.services.contents.copy(e,t)}createNew(e,t="default",s){return this._createOrOpenDocument("create",e,t,s)}deleteFile(e){return this.services.sessions.stopIfNeeded(e).then((()=>this.services.contents.delete(e))).then((()=>(this._contextsForPath(e).forEach((e=>this._widgetManager.deleteWidgets(e))),Promise.resolve(void 0))))}duplicate(e){const t=a.PathExt.dirname(e);return this.services.contents.copy(e,t)}findWidget(e,t="default"){const s=a.PathExt.normalize(e);let n=[t];if("default"===t){const e=this.registry.defaultWidgetFactory(s);if(!e)return;n=[e.name]}else null===t&&(n=this.registry.preferredWidgetFactories(s).map((e=>e.name)));for(const e of this._contextsForPath(s))for(const t of n)if(null!==t){const s=this._widgetManager.findWidget(e,t);if(s)return s}}newUntitled(e){return"file"===e.type&&(e.ext=e.ext||".txt"),this.services.contents.newUntitled(e)}open(e,t="default",s,n){return this._createOrOpenDocument("open",e,t,s,n)}openOrReveal(e,t="default",s,n){const i=this.findWidget(e,t);return i?(this._opener.open(i,{type:t,...n}),i):this.open(e,t,s,null!=n?n:{})}overwrite(e,t){const s=`${t}.${m.UUID.uuid4()}`,n=()=>this.rename(s,t);return this.rename(e,s).then((()=>this.deleteFile(t))).then(n,n)}rename(e,t){return this.services.contents.rename(e,t)}_findContext(e,t){const s=this.services.contents.normalize(e);return(0,u.find)(this._contexts,(e=>e.path===s&&e.factoryName===t))}_contextsForPath(e){const t=this.services.contents.normalize(e);return this._contexts.filter((e=>e.path===t))}_createContext(e,t,s){const n=new _.Context({opener:(e,t)=>{this._widgetManager.adoptWidget(n,e),this._opener.open(e,t)},manager:this.services,factory:t,path:e,kernelPreference:s,setBusy:this._setBusy,sessionDialogs:this._dialogs,lastModifiedCheckMargin:this._lastModifiedCheckMargin,translator:this.translator}),i=new f({context:n,isConnectedCallback:this._isConnectedCallback,saveInterval:this.autosaveInterval});return y.saveHandlerProperty.set(n,i),n.ready.then((()=>{this.autosave&&i.start()})),n.disposed.connect(this._onContextDisposed,this),this._contexts.push(n),n}_onContextDisposed(e){u.ArrayExt.removeFirstOf(this._contexts,e)}_widgetFactoryFor(e,t){const{registry:s}=this;if("default"===t){const n=s.defaultWidgetFactory(e);if(!n)return;t=n.name}return s.getWidgetFactory(t)}_createOrOpenDocument(e,t,s="default",n,i){const a=this._widgetFactoryFor(t,s);if(!a)return;const o=a.modelName||"text",r=this.registry.getModelFactory(o);if(!r)return;const c=this.registry.getKernelPreference(t,a.name,n);let l,h=Promise.resolve(void 0);if("open"===e)l=this._findContext(t,r.name)||null,l||(l=this._createContext(t,r,c),h=this._when.then((()=>l.initialize(!1))));else{if("create"!==e)throw new Error(`Invalid argument 'which': ${e}`);l=this._createContext(t,r,c),h=this._when.then((()=>l.initialize(!0)))}const d=this._widgetManager.createWidget(a,l);return this._opener.open(d,{type:a.name,...i}),h.catch((e=>{console.error(`Failed to initialize the context with '${r.name}' for ${t}`,e),d.close()})),d}_onActivateRequested(e,t){this._activateRequested.emit(t)}_onWidgetStateChanged(e,t){"confirmClosingDocument"===t.name&&this._stateChanged.emit(t)}}!function(e){e.saveHandlerProperty=new p.AttachedProperty({name:"saveHandler",create:()=>{}})}(y||(y={}));var P=s(47652),b=s(14576),R=s(78156),S=s.n(R);function T(e){return S().createElement(P.TextItem,{source:e.name,title:e.fullPath})}class F extends b.VDomRenderer{constructor(e){super(new F.Model(e.docManager)),this.node.title=this.model.path}render(){return S().createElement(T,{fullPath:this.model.path,name:this.model.name})}}function k(e){return S().createElement(P.TextItem,{source:e.fileStatus})}!function(e){class t extends b.VDomModel{constructor(e){super(),this._onTitleChange=e=>{const t=this._getAllState();this._name=e.label,this._triggerChange(t,this._getAllState())},this._onPathChange=(e,t)=>{const s=this._getAllState();this._path=t,this._name=a.PathExt.basename(t),this._triggerChange(s,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=e}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(e){const t=this._widget;if(null!==t){const e=this._docManager.contextForWidget(t);e?e.pathChanged.disconnect(this._onPathChange):t.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=e,null===this._widget)this._path="",this._name="";else{const e=this._docManager.contextForWidget(this._widget);e?(this._path=e.path,this._name=a.PathExt.basename(e.path),e.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(e,t){e[0]===t[0]&&e[1]===t[1]||this.stateChanged.emit(void 0)}}e.Model=t}(F||(F={}));class W extends b.VDomRenderer{constructor(e){super(new W.Model(e.docManager));const t=(e.translator||o.nullTranslator).load("jupyterlab");this._statusMap={completed:t.__("Saving completed"),started:t.__("Saving started"),failed:t.__("Saving failed")}}render(){return null===this.model||null===this.model.status?null:S().createElement(k,{fileStatus:this._statusMap[this.model.status]})}}!function(e){class t extends b.VDomModel{constructor(e){super(),this._onStatusChange=(e,t)=>{this._status=t,"completed"===this._status?(setTimeout((()=>{this._status=null,this.stateChanged.emit(void 0)}),2e3),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=e}get status(){return this._status}get widget(){return this._widget}set widget(e){var t,s;const n=this._widget;if(null!==n){const e=this._docManager.contextForWidget(n);e?e.saveState.disconnect(this._onStatusChange):(null===(t=this._widget.content)||void 0===t?void 0:t.saveStateChanged)&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=e,null===this._widget)this._status=null;else{const e=this._docManager.contextForWidget(this._widget);e?e.saveState.connect(this._onStatusChange):(null===(s=this._widget.content)||void 0===s?void 0:s.saveStateChanged)&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}e.Model=t}(W||(W={}));const A=new m.Token("@jupyterlab/docmanager:IDocumentManager","A service for the manager for all\n documents used by the application. Use this if you want to open and close documents,\n create and delete files, and otherwise interact with the file system."),E=new m.Token("@jupyterlab/docmanager:IDocumentWidgetOpener","A service to open a widget."),I=new m.Token("@jupyterlab/docmanager:IRecentsManager","A service providing information about recently opened and closed documents");var O,B=s(97934);class N{constructor(e){this._recentsChanged=new v.Signal(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new B.Debouncer(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch((e=>{console.error(`Failed to load recent list from state:\n${e}`)}))}get isDisposed(){return this._isDisposed}get recentlyOpened(){return(this._recents.opened||[]).filter((e=>e.root===this._serverRoot))}get recentlyClosed(){return(this._recents.closed||[]).filter((e=>e.root===this._serverRoot))}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=!1;for(const e of["opened","closed"])this._recents[e].length>this._maxRecentsLength&&(this._recents[e].length=this._maxRecentsLength,t=!0);t&&this._recentsChanged.emit(void 0)}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.clearData(this),this._saveDebouncer.dispose())}addRecent(e,t){const s={...e,root:this._serverRoot},n=this._recents[t],i=n.findIndex((t=>t.path===e.path));i>=0&&n.splice(i,1),n.unshift(s),this._setRecents(n,t),this._recentsChanged.emit(void 0)}clearRecents(){this._setRecents([],"opened"),this._setRecents([],"closed"),this._recentsChanged.emit(void 0)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);return t||this._removeRecent(e.path),t}updateRootDir(){this._serverRoot=a.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let s=!1;for(const n of t){const t=this._recents[n],i=t.filter((t=>e!==t.path));t.length!==i.length&&(this._setRecents(i,n),s=!0)}s&&this._recentsChanged.emit(void 0)}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:!1})}catch(e){if(404===(null===(t=e.response)||void 0===t?void 0:t.status))return!1}return!0}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort(((e,t)=>e.root===t.root?0:e.root!==this._serverRoot?1:-1)),this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(O.stateDBKey)||{opened:[],closed:[]},t=[...e.opened,...e.closed],s=new Set(await this._getInvalidPaths(t));for(const t of["opened","closed"])this._setRecents(e[t].filter((e=>!s.has(e.path))),t);this._recentsChanged.emit(void 0)}async _getInvalidPaths(e){return(await Promise.all(e.map((async e=>await this._isValid(e)?null:e.path)))).filter((e=>"string"==typeof e))}async _save(){try{await this._stateDB.save(O.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}!function(e){e.stateDBKey="docmanager:recents"}(O||(O={}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7543],{37543:(e,t,s)=>{s.r(t),s.d(t,{DocumentManager:()=>M,DocumentWidgetManager:()=>x,IDocumentManager:()=>A,IDocumentWidgetOpener:()=>E,IRecentsManager:()=>I,PathStatus:()=>F,RecentsManager:()=>N,SaveHandler:()=>f,SavingStatus:()=>W,isValidFileName:()=>d,renameDialog:()=>c,renameFile:()=>l,shouldOverwrite:()=>h});var n,i=s(72703),a=s(65848),o=s(70858),r=s(63485);function c(e,t,s){const n=(s=s||o.nullTranslator).load("jupyterlab"),a=t.localPath.split("/").pop()||t.localPath;return(0,i.showDialog)({title:n.__("Rename File"),body:new g(a),focusNodeSelector:"input",buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:n.__("Rename"),ariaLabel:n.__("Rename File")})]}).then((e=>e.value?d(e.value)?t.rename(e.value):((0,i.showErrorMessage)(n.__("Rename Error"),Error(n.__('"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',e.value))),null):null))}function l(e,t,s){return e.rename(t,s).catch((n=>{if(409!==n.response.status)throw n;return h(s).then((n=>n?e.overwrite(t,s):Promise.reject("File not renamed")))}))}function h(e,t){const s=(t=t||o.nullTranslator).load("jupyterlab"),n={title:s.__("Overwrite file?"),body:s.__('"%1" already exists, overwrite?',e),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:s.__("Overwrite"),ariaLabel:s.__("Overwrite Existing File")})]};return(0,i.showDialog)(n).then((e=>Promise.resolve(e.button.accept)))}function d(e){return e.length>0&&!/[\/\\:]/.test(e)}class g extends r.Widget{constructor(e){super({node:n.createRenameNode(e)}),this.addClass("jp-FileDialog");const t=a.PathExt.extname(e),s=this.inputNode.value=a.PathExt.basename(e);this.inputNode.setSelectionRange(0,s.length-t.length)}get inputNode(){return this.node.getElementsByTagName("input")[0]}getValue(){return this.inputNode.value}}!function(e){e.createRenameNode=function(e,t){const s=(t=t||o.nullTranslator).load("jupyterlab"),n=document.createElement("div"),i=document.createElement("label");i.textContent=s.__("File Path");const a=document.createElement("span");a.textContent=e;const r=document.createElement("label");r.textContent=s.__("New Name"),r.className="jp-new-name-title";const c=document.createElement("input");return n.appendChild(i),n.appendChild(a),n.appendChild(r),n.appendChild(c),n}}(n||(n={}));var _=s(89945),u=s(33625),m=s(20998),p=s(14421),v=s(81997);class f{constructor(e){this._autosaveTimer=-1,this._minInterval=-1,this._interval=-1,this._isActive=!1,this._inDialog=!1,this._isDisposed=!1,this._multiplier=10,this._context=e.context,this._isConnectedCallback=e.isConnectedCallback||(()=>!0);const t=e.saveInterval||120;this._minInterval=1e3*t,this._interval=this._minInterval,this._context.fileChanged.connect(this._setTimer,this),this._context.disposed.connect(this.dispose,this)}get saveInterval(){return this._interval/1e3}set saveInterval(e){this._minInterval=this._interval=1e3*e,this._isActive&&this._setTimer()}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,clearTimeout(this._autosaveTimer),v.Signal.clearData(this))}start(){this._isActive=!0,this._setTimer()}stop(){this._isActive=!1,clearTimeout(this._autosaveTimer)}_setTimer(){clearTimeout(this._autosaveTimer),this._isActive&&(this._autosaveTimer=window.setTimeout((()=>{this._isConnectedCallback()&&this._save()}),this._interval))}_save(){const e=this._context;if(this._setTimer(),!e)return;if(!e.contentsModel||!e.contentsModel.writable||!e.model.dirty||this._inDialog)return;const t=(new Date).getTime();e.save().then((()=>{if(this.isDisposed)return;const e=(new Date).getTime()-t;this._interval=Math.max(this._multiplier*e,this._minInterval),this._setTimer()})).catch((e=>{const{name:t}=e;"ModalCancelError"!==t&&"ModalDuplicateError"!==t&&console.error("Error in Auto-Save",e.message)}))}}var w,y,C=s(2549),D=s(49503);class x{constructor(e){this._activateRequested=new v.Signal(this),this._confirmClosingTab=!1,this._isDisposed=!1,this._stateChanged=new v.Signal(this),this._registry=e.registry,this.translator=e.translator||o.nullTranslator,this._recentsManager=e.recentsManager||null}get activateRequested(){return this._activateRequested}get confirmClosingDocument(){return this._confirmClosingTab}set confirmClosingDocument(e){if(this._confirmClosingTab!==e){const t=this._confirmClosingTab;this._confirmClosingTab=e,this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.disconnectReceiver(this))}createWidget(e,t){const s=e.createNew(t);return this._initializeWidget(s,e,t),s}_initializeWidget(e,t,s){w.factoryProperty.set(e,t);const n=new C.DisposableSet;for(const i of this._registry.widgetExtensions(t.name)){const t=i.createNew(e,s);t&&n.add(t)}w.disposablesProperty.set(e,n),e.disposed.connect(this._onWidgetDisposed,this),this.adoptWidget(s,e),s.fileChanged.connect(this._onFileChanged,this),s.pathChanged.connect(this._onPathChanged,this),s.ready.then((()=>{this.setCaption(e)}))}adoptWidget(e,t){w.widgetsProperty.get(e).push(t),D.MessageLoop.installMessageHook(t,this),t.addClass("jp-Document"),t.title.closable=!0,t.disposed.connect(this._widgetDisposed,this),w.contextProperty.set(t,e)}findWidget(e,t){const s=w.widgetsProperty.get(e);if(s)return(0,u.find)(s,(e=>{const s=w.factoryProperty.get(e);return!!s&&s.name===t}))}contextForWidget(e){return w.contextProperty.get(e)}cloneWidget(e){const t=w.contextProperty.get(e);if(!t)return;const s=w.factoryProperty.get(e);if(!s)return;const n=s.createNew(t,e);return this._initializeWidget(n,s,t),n}closeWidgets(e){const t=w.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onClose(e)))).then((()=>{}))}deleteWidgets(e){const t=w.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onDelete(e)))).then((()=>{}))}messageHook(e,t){switch(t.type){case"close-request":return this.onClose(e),!1;case"activate-request":{const t=e,s=this.contextForWidget(t);s&&(s.ready.then((()=>{this._recordAsRecentlyOpened(t,s.contentsModel)})).catch((()=>{console.warn("Could not record the recents status for",s)})),this._activateRequested.emit(s.path));break}}return!0}async setCaption(e){const t=this.translator.load("jupyterlab"),s=w.contextProperty.get(e);if(!s)return;const n=s.contentsModel;if(n)return s.listCheckpoints().then((i=>{if(e.isDisposed)return;const o=i[i.length-1],r=o?a.Time.format(o.last_modified):"None";let c=t.__("Name: %1\nPath: %2\n",n.name,n.path);s.model.readOnly?c+=t.__("Read-only"):c+=t.__("Last Saved: %1\n",a.Time.format(n.last_modified))+t.__("Last Checkpoint: %1",r),e.title.caption=c}));e.title.caption=""}async onClose(e){var t;const[s,n]=await this._maybeClose(e,this.translator);if(e.isDisposed)return!0;if(s){const s=w.contextProperty.get(e);if(!n){if(!s)return!0;(null===(t=s.contentsModel)||void 0===t?void 0:t.writable)?await s.save():await s.saveAs()}if(s&&("timeout"===await Promise.race([s.ready,new Promise((e=>setTimeout(e,3e3,"timeout")))])?console.warn("Could not record the widget as recently closed because the context did not become ready in 3 seconds"):this._recordAsRecentlyClosed(e,s.contentsModel)),e.isDisposed)return!0;e.dispose()}return s}onDelete(e){return e.dispose(),Promise.resolve(void 0)}_recordAsRecentlyOpened(e,t){var s;const n=this._recentsManager;if(!n)return;const i=t.path,a=this._registry.getFileTypeForModel(t).contentType,o=null===(s=w.factoryProperty.get(e))||void 0===s?void 0:s.name;if(n.addRecent({path:i,contentType:a,factory:o},"opened"),"directory"!==a){const e=i.lastIndexOf("/")>0?i.slice(0,i.lastIndexOf("/")):"";n.addRecent({path:e,contentType:"directory"},"opened")}}_recordAsRecentlyClosed(e,t){var s;const n=this._recentsManager;if(!n)return;const i=t.path,a=this._registry.getFileTypeForModel(t).contentType,o=null===(s=w.factoryProperty.get(e))||void 0===s?void 0:s.name;n.addRecent({path:i,contentType:a,factory:o},"closed")}async _maybeClose(e,t){var s,n;const a=(t=t||o.nullTranslator).load("jupyterlab"),r=w.contextProperty.get(e);if(!r)return Promise.resolve([!0,!0]);let c=w.widgetsProperty.get(r);if(!c)return Promise.resolve([!0,!0]);c=c.filter((e=>{const t=w.factoryProperty.get(e);return!!t&&!1===t.readOnly}));const l=e.title.label,h=w.factoryProperty.get(e),d=r.model.dirty&&c.length<=1&&!(null===(s=null==h?void 0:h.readOnly)||void 0===s||s);if(this.confirmClosingDocument){const e=[i.Dialog.cancelButton(),i.Dialog.okButton({label:d?a.__("Close and save"):a.__("Close"),ariaLabel:d?a.__("Close and save Document"):a.__("Close Document")})];d&&e.splice(1,0,i.Dialog.warnButton({label:a.__("Close without saving"),ariaLabel:a.__("Close Document without saving")}));const t=await(0,i.showDialog)({title:a.__("Confirmation"),body:a.__('Please confirm you want to close "%1".',l),checkbox:d?null:{label:a.__("Do not ask me again."),caption:a.__("If checked, no confirmation to close a document will be asked in the future.")},buttons:e});return t.isChecked&&(this.confirmClosingDocument=!1),Promise.resolve([t.button.accept,!d||"warn"===t.button.displayType])}{if(!d)return Promise.resolve([!0,!0]);const e=(null===(n=r.contentsModel)||void 0===n?void 0:n.writable)?a.__("Save"):a.__("Save as"),t=await(0,i.showDialog)({title:a.__("Save your work"),body:a.__('Save changes in "%1" before closing?',l),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:a.__("Discard"),ariaLabel:a.__("Discard changes to file")}),i.Dialog.okButton({label:e})]});return[t.button.accept,"warn"===t.button.displayType]}}_widgetDisposed(e){const t=w.contextProperty.get(e);if(!t)return;const s=w.widgetsProperty.get(t);s&&(u.ArrayExt.removeFirstOf(s,e),s.length||t.dispose())}_onWidgetDisposed(e){w.disposablesProperty.get(e).dispose()}_onFileChanged(e){const t=w.widgetsProperty.get(e);for(const e of t)this.setCaption(e)}_onPathChanged(e){const t=w.widgetsProperty.get(e);for(const e of t)this.setCaption(e)}}!function(e){e.contextProperty=new p.AttachedProperty({name:"context",create:()=>{}}),e.factoryProperty=new p.AttachedProperty({name:"factory",create:()=>{}}),e.widgetsProperty=new p.AttachedProperty({name:"widgets",create:()=>[]}),e.disposablesProperty=new p.AttachedProperty({name:"disposables",create:()=>new C.DisposableSet})}(w||(w={}));class M{constructor(e){var t;this._activateRequested=new v.Signal(this),this._contexts=[],this._isDisposed=!1,this._autosave=!0,this._autosaveInterval=120,this._lastModifiedCheckMargin=500,this._renameUntitledFileOnSave=!0,this._stateChanged=new v.Signal(this),this.translator=e.translator||o.nullTranslator,this.registry=e.registry,this.services=e.manager,this._dialogs=null!==(t=e.sessionDialogs)&&void 0!==t?t:new i.SessionContextDialogs({translator:e.translator}),this._isConnectedCallback=e.isConnectedCallback||(()=>!0),this._opener=e.opener,this._when=e.when||e.manager.ready;const s=new x({registry:this.registry,translator:this.translator,recentsManager:e.recentsManager});s.activateRequested.connect(this._onActivateRequested,this),s.stateChanged.connect(this._onWidgetStateChanged,this),this._widgetManager=s,this._setBusy=e.setBusy}get activateRequested(){return this._activateRequested}get autosave(){return this._autosave}set autosave(e){if(this._autosave!==e){const t=this._autosave;this._autosave=e,this._contexts.forEach((t=>{const s=y.saveHandlerProperty.get(t);s&&(!0!==e||s.isActive?!1===e&&s.isActive&&s.stop():s.start())})),this._stateChanged.emit({name:"autosave",oldValue:t,newValue:e})}}get autosaveInterval(){return this._autosaveInterval}set autosaveInterval(e){if(this._autosaveInterval!==e){const t=this._autosaveInterval;this._autosaveInterval=e,this._contexts.forEach((t=>{const s=y.saveHandlerProperty.get(t);s&&(s.saveInterval=e||120)})),this._stateChanged.emit({name:"autosaveInterval",oldValue:t,newValue:e})}}get confirmClosingDocument(){return this._widgetManager.confirmClosingDocument}set confirmClosingDocument(e){if(this._widgetManager.confirmClosingDocument!==e){const t=this._widgetManager.confirmClosingDocument;this._widgetManager.confirmClosingDocument=e,this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){if(this._lastModifiedCheckMargin!==e){const t=this._lastModifiedCheckMargin;this._lastModifiedCheckMargin=e,this._contexts.forEach((t=>{t.lastModifiedCheckMargin=e})),this._stateChanged.emit({name:"lastModifiedCheckMargin",oldValue:t,newValue:e})}}get renameUntitledFileOnSave(){return this._renameUntitledFileOnSave}set renameUntitledFileOnSave(e){if(this._renameUntitledFileOnSave!==e){const t=this._renameUntitledFileOnSave;this._renameUntitledFileOnSave=e,this._stateChanged.emit({name:"renameUntitledFileOnSave",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.clearData(this),this._contexts.forEach((e=>this._widgetManager.closeWidgets(e))),this._widgetManager.dispose(),this._contexts.length=0)}cloneWidget(e){return this._widgetManager.cloneWidget(e)}closeAll(){return Promise.all(this._contexts.map((e=>this._widgetManager.closeWidgets(e)))).then((()=>{}))}closeFile(e){const t=this._contextsForPath(e).map((e=>this._widgetManager.closeWidgets(e)));return Promise.all(t).then((e=>{}))}contextForWidget(e){return this._widgetManager.contextForWidget(e)}copy(e,t){return this.services.contents.copy(e,t)}createNew(e,t="default",s){return this._createOrOpenDocument("create",e,t,s)}deleteFile(e){return this.services.sessions.stopIfNeeded(e).then((()=>this.services.contents.delete(e))).then((()=>(this._contextsForPath(e).forEach((e=>this._widgetManager.deleteWidgets(e))),Promise.resolve(void 0))))}duplicate(e){const t=a.PathExt.dirname(e);return this.services.contents.copy(e,t)}findWidget(e,t="default"){const s=a.PathExt.normalize(e);let n=[t];if("default"===t){const e=this.registry.defaultWidgetFactory(s);if(!e)return;n=[e.name]}else null===t&&(n=this.registry.preferredWidgetFactories(s).map((e=>e.name)));for(const e of this._contextsForPath(s))for(const t of n)if(null!==t){const s=this._widgetManager.findWidget(e,t);if(s)return s}}newUntitled(e){return"file"===e.type&&(e.ext=e.ext||".txt"),this.services.contents.newUntitled(e)}open(e,t="default",s,n){return this._createOrOpenDocument("open",e,t,s,n)}openOrReveal(e,t="default",s,n){const i=this.findWidget(e,t);return i?(this._opener.open(i,{type:t,...n}),i):this.open(e,t,s,null!=n?n:{})}overwrite(e,t){const s=`${t}.${m.UUID.uuid4()}`,n=()=>this.rename(s,t);return this.rename(e,s).then((()=>this.deleteFile(t))).then(n,n)}rename(e,t){return this.services.contents.rename(e,t)}_findContext(e,t){const s=this.services.contents.normalize(e);return(0,u.find)(this._contexts,(e=>e.path===s&&e.factoryName===t))}_contextsForPath(e){const t=this.services.contents.normalize(e);return this._contexts.filter((e=>e.path===t))}_createContext(e,t,s){const n=new _.Context({opener:(e,t)=>{this._widgetManager.adoptWidget(n,e),this._opener.open(e,t)},manager:this.services,factory:t,path:e,kernelPreference:s,setBusy:this._setBusy,sessionDialogs:this._dialogs,lastModifiedCheckMargin:this._lastModifiedCheckMargin,translator:this.translator}),i=new f({context:n,isConnectedCallback:this._isConnectedCallback,saveInterval:this.autosaveInterval});return y.saveHandlerProperty.set(n,i),n.ready.then((()=>{this.autosave&&i.start()})),n.disposed.connect(this._onContextDisposed,this),this._contexts.push(n),n}_onContextDisposed(e){u.ArrayExt.removeFirstOf(this._contexts,e)}_widgetFactoryFor(e,t){const{registry:s}=this;if("default"===t){const n=s.defaultWidgetFactory(e);if(!n)return;t=n.name}return s.getWidgetFactory(t)}_createOrOpenDocument(e,t,s="default",n,i){const a=this._widgetFactoryFor(t,s);if(!a)return;const o=a.modelName||"text",r=this.registry.getModelFactory(o);if(!r)return;const c=this.registry.getKernelPreference(t,a.name,n);let l,h=Promise.resolve(void 0);if("open"===e)l=this._findContext(t,r.name)||null,l||(l=this._createContext(t,r,c),h=this._when.then((()=>l.initialize(!1))));else{if("create"!==e)throw new Error(`Invalid argument 'which': ${e}`);l=this._createContext(t,r,c),h=this._when.then((()=>l.initialize(!0)))}const d=this._widgetManager.createWidget(a,l);return this._opener.open(d,{type:a.name,...i}),h.catch((e=>{console.error(`Failed to initialize the context with '${r.name}' for ${t}`,e),d.close()})),d}_onActivateRequested(e,t){this._activateRequested.emit(t)}_onWidgetStateChanged(e,t){"confirmClosingDocument"===t.name&&this._stateChanged.emit(t)}}!function(e){e.saveHandlerProperty=new p.AttachedProperty({name:"saveHandler",create:()=>{}})}(y||(y={}));var P=s(58515),b=s(95291),R=s(78156),S=s.n(R);function T(e){return S().createElement(P.TextItem,{source:e.name,title:e.fullPath})}class F extends b.VDomRenderer{constructor(e){super(new F.Model(e.docManager)),this.node.title=this.model.path}render(){return S().createElement(T,{fullPath:this.model.path,name:this.model.name})}}function k(e){return S().createElement(P.TextItem,{source:e.fileStatus})}!function(e){class t extends b.VDomModel{constructor(e){super(),this._onTitleChange=e=>{const t=this._getAllState();this._name=e.label,this._triggerChange(t,this._getAllState())},this._onPathChange=(e,t)=>{const s=this._getAllState();this._path=t,this._name=a.PathExt.basename(t),this._triggerChange(s,this._getAllState())},this._path="",this._name="",this._widget=null,this._docManager=e}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(e){const t=this._widget;if(null!==t){const e=this._docManager.contextForWidget(t);e?e.pathChanged.disconnect(this._onPathChange):t.title.changed.disconnect(this._onTitleChange)}const s=this._getAllState();if(this._widget=e,null===this._widget)this._path="",this._name="";else{const e=this._docManager.contextForWidget(this._widget);e?(this._path=e.path,this._name=a.PathExt.basename(e.path),e.pathChanged.connect(this._onPathChange)):(this._path="",this._name=this._widget.title.label,this._widget.title.changed.connect(this._onTitleChange))}this._triggerChange(s,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(e,t){e[0]===t[0]&&e[1]===t[1]||this.stateChanged.emit(void 0)}}e.Model=t}(F||(F={}));class W extends b.VDomRenderer{constructor(e){super(new W.Model(e.docManager));const t=(e.translator||o.nullTranslator).load("jupyterlab");this._statusMap={completed:t.__("Saving completed"),started:t.__("Saving started"),failed:t.__("Saving failed")}}render(){return null===this.model||null===this.model.status?null:S().createElement(k,{fileStatus:this._statusMap[this.model.status]})}}!function(e){class t extends b.VDomModel{constructor(e){super(),this._onStatusChange=(e,t)=>{this._status=t,"completed"===this._status?(setTimeout((()=>{this._status=null,this.stateChanged.emit(void 0)}),2e3),this.stateChanged.emit(void 0)):this.stateChanged.emit(void 0)},this._status=null,this._widget=null,this._status=null,this.widget=null,this._docManager=e}get status(){return this._status}get widget(){return this._widget}set widget(e){var t,s;const n=this._widget;if(null!==n){const e=this._docManager.contextForWidget(n);e?e.saveState.disconnect(this._onStatusChange):(null===(t=this._widget.content)||void 0===t?void 0:t.saveStateChanged)&&this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}if(this._widget=e,null===this._widget)this._status=null;else{const e=this._docManager.contextForWidget(this._widget);e?e.saveState.connect(this._onStatusChange):(null===(s=this._widget.content)||void 0===s?void 0:s.saveStateChanged)&&this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}e.Model=t}(W||(W={}));const A=new m.Token("@jupyterlab/docmanager:IDocumentManager","A service for the manager for all\n documents used by the application. Use this if you want to open and close documents,\n create and delete files, and otherwise interact with the file system."),E=new m.Token("@jupyterlab/docmanager:IDocumentWidgetOpener","A service to open a widget."),I=new m.Token("@jupyterlab/docmanager:IRecentsManager","A service providing information about recently opened and closed documents");var O,B=s(97934);class N{constructor(e){this._recentsChanged=new v.Signal(this),this._recents={opened:[],closed:[]},this._isDisposed=!1,this._maxRecentsLength=10,this._saveDebouncer=new B.Debouncer(this._save.bind(this),500),this._stateDB=e.stateDB,this._contentsManager=e.contents,this.updateRootDir(),this._loadRecents().catch((e=>{console.error(`Failed to load recent list from state:\n${e}`)}))}get isDisposed(){return this._isDisposed}get recentlyOpened(){return(this._recents.opened||[]).filter((e=>e.root===this._serverRoot))}get recentlyClosed(){return(this._recents.closed||[]).filter((e=>e.root===this._serverRoot))}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=!1;for(const e of["opened","closed"])this._recents[e].length>this._maxRecentsLength&&(this._recents[e].length=this._maxRecentsLength,t=!0);t&&this._recentsChanged.emit(void 0)}dispose(){this.isDisposed||(this._isDisposed=!0,v.Signal.clearData(this),this._saveDebouncer.dispose())}addRecent(e,t){const s={...e,root:this._serverRoot},n=this._recents[t],i=n.findIndex((t=>t.path===e.path));i>=0&&n.splice(i,1),n.unshift(s),this._setRecents(n,t),this._recentsChanged.emit(void 0)}clearRecents(){this._setRecents([],"opened"),this._setRecents([],"closed"),this._recentsChanged.emit(void 0)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);return t||this._removeRecent(e.path),t}updateRootDir(){this._serverRoot=a.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let s=!1;for(const n of t){const t=this._recents[n],i=t.filter((t=>e!==t.path));t.length!==i.length&&(this._setRecents(i,n),s=!0)}s&&this._recentsChanged.emit(void 0)}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:!1})}catch(e){if(404===(null===(t=e.response)||void 0===t?void 0:t.status))return!1}return!0}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort(((e,t)=>e.root===t.root?0:e.root!==this._serverRoot?1:-1)),this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(O.stateDBKey)||{opened:[],closed:[]},t=[...e.opened,...e.closed],s=new Set(await this._getInvalidPaths(t));for(const t of["opened","closed"])this._setRecents(e[t].filter((e=>!s.has(e.path))),t);this._recentsChanged.emit(void 0)}async _getInvalidPaths(e){return(await Promise.all(e.map((async e=>await this._isValid(e)?null:e.path)))).filter((e=>"string"==typeof e))}async _save(){try{await this._stateDB.save(O.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}!function(e){e.stateDBKey="docmanager:recents"}(O||(O={}))}}]);
|
notebook/static/755.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[755],{82545:(t,r,e)=>{var o=e(81822)(e(77400),"DataView");t.exports=o},96586:(t,r,e)=>{var o=e(57753),n=e(82452),a=e(22115),s=e(38256),i=e(67426);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},36301:(t,r,e)=>{var o=e(69417),n=e(72470),a=e(66165),s=e(71873),i=e(52556);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},44538:(t,r,e)=>{var o=e(81822)(e(77400),"Map");t.exports=o},74554:(t,r,e)=>{var o=e(39448),n=e(7738),a=e(66575),s=e(7238),i=e(38738);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},64825:(t,r,e)=>{var o=e(81822)(e(77400),"Promise");t.exports=o},46151:(t,r,e)=>{var o=e(81822)(e(77400),"Set");t.exports=o},23694:(t,r,e)=>{var o=e(36301),n=e(7354),a=e(5863),s=e(12367),i=e(90748),u=e(97569);function c(t){var r=this.__data__=new o(t);this.size=r.size}c.prototype.clear=n,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=i,c.prototype.set=u,t.exports=c},96539:(t,r,e)=>{var o=e(77400).Symbol;t.exports=o},59942:(t,r,e)=>{var o=e(77400).Uint8Array;t.exports=o},66902:(t,r,e)=>{var o=e(81822)(e(77400),"WeakMap");t.exports=o},10263:t=>{t.exports=function(t,r){for(var e=-1,o=null==t?0:t.length,n=0,a=[];++e<o;){var s=t[e];r(s,e,t)&&(a[n++]=s)}return a}},98213:(t,r,e)=>{var o=e(24701),n=e(2900),a=e(19785),s=e(43854),i=e(42383),u=e(48519),c=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=a(t),p=!e&&n(t),f=!e&&!p&&s(t),l=!e&&!p&&!f&&u(t),v=e||p||f||l,h=v?o(t.length,String):[],_=h.length;for(var y in t)!r&&!c.call(t,y)||v&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,_))||h.push(y);return h}},66070:t=>{t.exports=function(t,r){for(var e=-1,o=null==t?0:t.length,n=Array(o);++e<o;)n[e]=r(t[e],e,t);return n}},97141:t=>{t.exports=function(t,r){for(var e=-1,o=r.length,n=t.length;++e<o;)t[n+e]=r[e];return t}},93382:(t,r,e)=>{var o=e(85638);t.exports=function(t,r){for(var e=t.length;e--;)if(o(t[e][0],r))return e;return-1}},79867:(t,r,e)=>{var o=e(76747),n=e(37948);t.exports=function(t,r){for(var e=0,a=(r=o(r,t)).length;null!=t&&e<a;)t=t[n(r[e++])];return e&&e==a?t:void 0}},11324:(t,r,e)=>{var o=e(97141),n=e(19785);t.exports=function(t,r,e){var a=r(t);return n(t)?a:o(a,e(t))}},99736:(t,r,e)=>{var o=e(96539),n=e(34840),a=e(21258),s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?n(t):a(t)}},55829:(t,r,e)=>{var o=e(99736),n=e(92360);t.exports=function(t){return n(t)&&"[object Arguments]"==o(t)}},46729:(t,r,e)=>{var o=e(28338),n=e(99678),a=e(11611),s=e(76532),i=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,p=u.toString,f=c.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||n(t))&&(o(t)?l:i).test(s(t))}},26972:(t,r,e)=>{var o=e(99736),n=e(84194),a=e(92360),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 a(t)&&n(t.length)&&!!s[o(t)]}},20186:(t,r,e)=>{var o=e(56016),n=e(50962),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return n(t);var r=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&r.push(e);return r}},24701:t=>{t.exports=function(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o}},34282:(t,r,e)=>{var o=e(96539),n=e(66070),a=e(19785),s=e(55193),i=o?o.prototype:void 0,u=i?i.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(a(r))return n(r,t)+"";if(s(r))return u?u.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},39334:t=>{t.exports=function(t){return function(r){return t(r)}}},76747:(t,r,e)=>{var o=e(19785),n=e(40318),a=e(23419),s=e(65567);t.exports=function(t,r){return o(t)?t:n(t,r)?[t]:a(s(t))}},64937:(t,r,e)=>{var o=e(77400)["__core-js_shared__"];t.exports=o},39120:(t,r,e)=>{var o="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=o},51385:(t,r,e)=>{var o=e(11324),n=e(83080),a=e(50098);t.exports=function(t){return o(t,a,n)}},95899:(t,r,e)=>{var o=e(54479);t.exports=function(t,r){var e=t.__data__;return o(r)?e["string"==typeof r?"string":"hash"]:e.map}},81822:(t,r,e)=>{var o=e(46729),n=e(15371);t.exports=function(t,r){var e=n(t,r);return o(e)?e:void 0}},34840:(t,r,e)=>{var o=e(96539),n=Object.prototype,a=n.hasOwnProperty,s=n.toString,i=o?o.toStringTag:void 0;t.exports=function(t){var r=a.call(t,i),e=t[i];try{t[i]=void 0;var o=!0}catch(t){}var n=s.call(t);return o&&(r?t[i]=e:delete t[i]),n}},83080:(t,r,e)=>{var o=e(10263),n=e(15937),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(t){return null==t?[]:(t=Object(t),o(s(t),(function(r){return a.call(t,r)})))}:n;t.exports=i},3533:(t,r,e)=>{var o=e(82545),n=e(44538),a=e(64825),s=e(46151),i=e(66902),u=e(99736),c=e(76532),p="[object Map]",f="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",_=c(o),y=c(n),x=c(a),b=c(s),d=c(i),j=u;(o&&j(new o(new ArrayBuffer(1)))!=h||n&&j(new n)!=p||a&&j(a.resolve())!=f||s&&j(new s)!=l||i&&j(new i)!=v)&&(j=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,o=e?c(e):"";if(o)switch(o){case _:return h;case y:return p;case x:return f;case b:return l;case d:return v}return r}),t.exports=j},15371:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},57753:(t,r,e)=>{var o=e(35718);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},82452:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},22115:(t,r,e)=>{var o=e(35718),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(o){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return n.call(r,t)?r[t]:void 0}},38256:(t,r,e)=>{var o=e(35718),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return o?void 0!==r[t]:n.call(r,t)}},67426:(t,r,e)=>{var o=e(35718);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=o&&void 0===r?"__lodash_hash_undefined__":r,this}},42383:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},40318:(t,r,e)=>{var o=e(19785),n=e(55193),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,r){if(o(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!n(t))||s.test(t)||!a.test(t)||null!=r&&t in Object(r)}},54479:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},99678:(t,r,e)=>{var o,n=e(64937),a=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!a&&a in t}},56016:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},69417:t=>{t.exports=function(){this.__data__=[],this.size=0}},72470:(t,r,e)=>{var o=e(93382),n=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=o(r,t);return!(e<0||(e==r.length-1?r.pop():n.call(r,e,1),--this.size,0))}},66165:(t,r,e)=>{var o=e(93382);t.exports=function(t){var r=this.__data__,e=o(r,t);return e<0?void 0:r[e][1]}},71873:(t,r,e)=>{var o=e(93382);t.exports=function(t){return o(this.__data__,t)>-1}},52556:(t,r,e)=>{var o=e(93382);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},39448:(t,r,e)=>{var o=e(96586),n=e(36301),a=e(44538);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||n),string:new o}}},7738:(t,r,e)=>{var o=e(95899);t.exports=function(t){var r=o(this,t).delete(t);return this.size-=r?1:0,r}},66575:(t,r,e)=>{var o=e(95899);t.exports=function(t){return o(this,t).get(t)}},7238:(t,r,e)=>{var o=e(95899);t.exports=function(t){return o(this,t).has(t)}},38738:(t,r,e)=>{var o=e(95899);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}},2941:(t,r,e)=>{var o=e(16651);t.exports=function(t){var r=o(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r}},35718:(t,r,e)=>{var o=e(81822)(Object,"create");t.exports=o},50962:(t,r,e)=>{var o=e(58023)(Object.keys,Object);t.exports=o},18125:(t,r,e)=>{t=e.nmd(t);var o=e(39120),n=r&&!r.nodeType&&r,a=n&&t&&!t.nodeType&&t,s=a&&a.exports===n&&o.process,i=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=i},21258:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},58023:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},77400:(t,r,e)=>{var o=e(39120),n="object"==typeof self&&self&&self.Object===Object&&self,a=o||n||Function("return this")();t.exports=a},7354:(t,r,e)=>{var o=e(36301);t.exports=function(){this.__data__=new o,this.size=0}},5863:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},12367:t=>{t.exports=function(t){return this.__data__.get(t)}},90748:t=>{t.exports=function(t){return this.__data__.has(t)}},97569:(t,r,e)=>{var o=e(36301),n=e(44538),a=e(74554);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var s=e.__data__;if(!n||s.length<199)return s.push([t,r]),this.size=++e.size,this;e=this.__data__=new a(s)}return e.set(t,r),this.size=e.size,this}},23419:(t,r,e)=>{var o=e(2941),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(n,(function(t,e,o,n){r.push(o?n.replace(a,"$1"):e||t)})),r}));t.exports=s},37948:(t,r,e)=>{var o=e(55193);t.exports=function(t){if("string"==typeof t||o(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},76532:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},85638:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},99729:(t,r,e)=>{var o=e(79867);t.exports=function(t,r,e){var n=null==t?void 0:o(t,r);return void 0===n?e:n}},2900:(t,r,e)=>{var o=e(55829),n=e(92360),a=Object.prototype,s=a.hasOwnProperty,i=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(t){return n(t)&&s.call(t,"callee")&&!i.call(t,"callee")};t.exports=u},19785:t=>{var r=Array.isArray;t.exports=r},80068:(t,r,e)=>{var o=e(28338),n=e(84194);t.exports=function(t){return null!=t&&n(t.length)&&!o(t)}},43854:(t,r,e)=>{t=e.nmd(t);var o=e(77400),n=e(57714),a=r&&!r.nodeType&&r,s=a&&t&&!t.nodeType&&t,i=s&&s.exports===a?o.Buffer:void 0,u=(i?i.isBuffer:void 0)||n;t.exports=u},28338:(t,r,e)=>{var o=e(99736),n=e(11611);t.exports=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},84194:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},11611:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},92360:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},55193:(t,r,e)=>{var o=e(99736),n=e(92360);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==o(t)}},48519:(t,r,e)=>{var o=e(26972),n=e(39334),a=e(18125),s=a&&a.isTypedArray,i=s?n(s):o;t.exports=i},50098:(t,r,e)=>{var o=e(98213),n=e(20186),a=e(80068);t.exports=function(t){return a(t)?o(t):n(t)}},16651:(t,r,e)=>{var o=e(74554);function n(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var o=arguments,n=r?r.apply(this,o):o[0],a=e.cache;if(a.has(n))return a.get(n);var s=t.apply(this,o);return e.cache=a.set(n,s)||a,s};return e.cache=new(n.Cache||o),e}n.Cache=o,t.exports=n},15937:t=>{t.exports=function(){return[]}},57714:t=>{t.exports=function(){return!1}},65567:(t,r,e)=>{var o=e(34282);t.exports=function(t){return null==t?"":o(t)}}}]);
|
|
1
|
+
(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[755],{82545:(t,r,e)=>{var o=e(81822)(e(77400),"DataView");t.exports=o},96586:(t,r,e)=>{var o=e(57753),n=e(82452),a=e(22115),s=e(38256),i=e(67426);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},36301:(t,r,e)=>{var o=e(69417),n=e(72470),a=e(66165),s=e(71873),i=e(52556);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},44538:(t,r,e)=>{var o=e(81822)(e(77400),"Map");t.exports=o},74554:(t,r,e)=>{var o=e(39448),n=e(7738),a=e(66575),s=e(7238),i=e(38738);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=s,u.prototype.set=i,t.exports=u},64825:(t,r,e)=>{var o=e(81822)(e(77400),"Promise");t.exports=o},46151:(t,r,e)=>{var o=e(81822)(e(77400),"Set");t.exports=o},23694:(t,r,e)=>{var o=e(36301),n=e(7354),a=e(5863),s=e(12367),i=e(90748),u=e(97569);function c(t){var r=this.__data__=new o(t);this.size=r.size}c.prototype.clear=n,c.prototype.delete=a,c.prototype.get=s,c.prototype.has=i,c.prototype.set=u,t.exports=c},96539:(t,r,e)=>{var o=e(77400).Symbol;t.exports=o},59942:(t,r,e)=>{var o=e(77400).Uint8Array;t.exports=o},66902:(t,r,e)=>{var o=e(81822)(e(77400),"WeakMap");t.exports=o},10263:t=>{t.exports=function(t,r){for(var e=-1,o=null==t?0:t.length,n=0,a=[];++e<o;){var s=t[e];r(s,e,t)&&(a[n++]=s)}return a}},98213:(t,r,e)=>{var o=e(24701),n=e(2900),a=e(19785),s=e(43854),i=e(42383),u=e(48519),c=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=a(t),p=!e&&n(t),f=!e&&!p&&s(t),l=!e&&!p&&!f&&u(t),v=e||p||f||l,h=v?o(t.length,String):[],_=h.length;for(var y in t)!r&&!c.call(t,y)||v&&("length"==y||f&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,_))||h.push(y);return h}},66070:t=>{t.exports=function(t,r){for(var e=-1,o=null==t?0:t.length,n=Array(o);++e<o;)n[e]=r(t[e],e,t);return n}},97141:t=>{t.exports=function(t,r){for(var e=-1,o=r.length,n=t.length;++e<o;)t[n+e]=r[e];return t}},65041:(t,r,e)=>{var o=e(85638);t.exports=function(t,r){for(var e=t.length;e--;)if(o(t[e][0],r))return e;return-1}},79867:(t,r,e)=>{var o=e(76747),n=e(37948);t.exports=function(t,r){for(var e=0,a=(r=o(r,t)).length;null!=t&&e<a;)t=t[n(r[e++])];return e&&e==a?t:void 0}},11324:(t,r,e)=>{var o=e(97141),n=e(19785);t.exports=function(t,r,e){var a=r(t);return n(t)?a:o(a,e(t))}},99736:(t,r,e)=>{var o=e(96539),n=e(34840),a=e(21258),s=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?n(t):a(t)}},55829:(t,r,e)=>{var o=e(99736),n=e(92360);t.exports=function(t){return n(t)&&"[object Arguments]"==o(t)}},46729:(t,r,e)=>{var o=e(28338),n=e(99678),a=e(11611),s=e(76532),i=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,p=u.toString,f=c.hasOwnProperty,l=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||n(t))&&(o(t)?l:i).test(s(t))}},26972:(t,r,e)=>{var o=e(99736),n=e(84194),a=e(92360),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 a(t)&&n(t.length)&&!!s[o(t)]}},20186:(t,r,e)=>{var o=e(56016),n=e(50962),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return n(t);var r=[];for(var e in Object(t))a.call(t,e)&&"constructor"!=e&&r.push(e);return r}},24701:t=>{t.exports=function(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o}},34282:(t,r,e)=>{var o=e(96539),n=e(66070),a=e(19785),s=e(55193),i=o?o.prototype:void 0,u=i?i.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(a(r))return n(r,t)+"";if(s(r))return u?u.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},39334:t=>{t.exports=function(t){return function(r){return t(r)}}},76747:(t,r,e)=>{var o=e(19785),n=e(40318),a=e(23419),s=e(65567);t.exports=function(t,r){return o(t)?t:n(t,r)?[t]:a(s(t))}},64937:(t,r,e)=>{var o=e(77400)["__core-js_shared__"];t.exports=o},39120:(t,r,e)=>{var o="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=o},51385:(t,r,e)=>{var o=e(11324),n=e(83080),a=e(50098);t.exports=function(t){return o(t,a,n)}},95899:(t,r,e)=>{var o=e(54479);t.exports=function(t,r){var e=t.__data__;return o(r)?e["string"==typeof r?"string":"hash"]:e.map}},81822:(t,r,e)=>{var o=e(46729),n=e(15371);t.exports=function(t,r){var e=n(t,r);return o(e)?e:void 0}},34840:(t,r,e)=>{var o=e(96539),n=Object.prototype,a=n.hasOwnProperty,s=n.toString,i=o?o.toStringTag:void 0;t.exports=function(t){var r=a.call(t,i),e=t[i];try{t[i]=void 0;var o=!0}catch(t){}var n=s.call(t);return o&&(r?t[i]=e:delete t[i]),n}},83080:(t,r,e)=>{var o=e(10263),n=e(15937),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,i=s?function(t){return null==t?[]:(t=Object(t),o(s(t),(function(r){return a.call(t,r)})))}:n;t.exports=i},3533:(t,r,e)=>{var o=e(82545),n=e(44538),a=e(64825),s=e(46151),i=e(66902),u=e(99736),c=e(76532),p="[object Map]",f="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",_=c(o),y=c(n),x=c(a),b=c(s),d=c(i),j=u;(o&&j(new o(new ArrayBuffer(1)))!=h||n&&j(new n)!=p||a&&j(a.resolve())!=f||s&&j(new s)!=l||i&&j(new i)!=v)&&(j=function(t){var r=u(t),e="[object Object]"==r?t.constructor:void 0,o=e?c(e):"";if(o)switch(o){case _:return h;case y:return p;case x:return f;case b:return l;case d:return v}return r}),t.exports=j},15371:t=>{t.exports=function(t,r){return null==t?void 0:t[r]}},57753:(t,r,e)=>{var o=e(35718);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},82452:t=>{t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},22115:(t,r,e)=>{var o=e(35718),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(o){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return n.call(r,t)?r[t]:void 0}},38256:(t,r,e)=>{var o=e(35718),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return o?void 0!==r[t]:n.call(r,t)}},67426:(t,r,e)=>{var o=e(35718);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=o&&void 0===r?"__lodash_hash_undefined__":r,this}},42383:t=>{var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},40318:(t,r,e)=>{var o=e(19785),n=e(55193),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,r){if(o(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!n(t))||s.test(t)||!a.test(t)||null!=r&&t in Object(r)}},54479:t=>{t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},99678:(t,r,e)=>{var o,n=e(64937),a=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!a&&a in t}},56016:t=>{var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},69417:t=>{t.exports=function(){this.__data__=[],this.size=0}},72470:(t,r,e)=>{var o=e(65041),n=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=o(r,t);return!(e<0||(e==r.length-1?r.pop():n.call(r,e,1),--this.size,0))}},66165:(t,r,e)=>{var o=e(65041);t.exports=function(t){var r=this.__data__,e=o(r,t);return e<0?void 0:r[e][1]}},71873:(t,r,e)=>{var o=e(65041);t.exports=function(t){return o(this.__data__,t)>-1}},52556:(t,r,e)=>{var o=e(65041);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},39448:(t,r,e)=>{var o=e(96586),n=e(36301),a=e(44538);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(a||n),string:new o}}},7738:(t,r,e)=>{var o=e(95899);t.exports=function(t){var r=o(this,t).delete(t);return this.size-=r?1:0,r}},66575:(t,r,e)=>{var o=e(95899);t.exports=function(t){return o(this,t).get(t)}},7238:(t,r,e)=>{var o=e(95899);t.exports=function(t){return o(this,t).has(t)}},38738:(t,r,e)=>{var o=e(95899);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}},2941:(t,r,e)=>{var o=e(16651);t.exports=function(t){var r=o(t,(function(t){return 500===e.size&&e.clear(),t})),e=r.cache;return r}},35718:(t,r,e)=>{var o=e(81822)(Object,"create");t.exports=o},50962:(t,r,e)=>{var o=e(58023)(Object.keys,Object);t.exports=o},18125:(t,r,e)=>{t=e.nmd(t);var o=e(39120),n=r&&!r.nodeType&&r,a=n&&t&&!t.nodeType&&t,s=a&&a.exports===n&&o.process,i=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=i},21258:t=>{var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},58023:t=>{t.exports=function(t,r){return function(e){return t(r(e))}}},77400:(t,r,e)=>{var o=e(39120),n="object"==typeof self&&self&&self.Object===Object&&self,a=o||n||Function("return this")();t.exports=a},7354:(t,r,e)=>{var o=e(36301);t.exports=function(){this.__data__=new o,this.size=0}},5863:t=>{t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},12367:t=>{t.exports=function(t){return this.__data__.get(t)}},90748:t=>{t.exports=function(t){return this.__data__.has(t)}},97569:(t,r,e)=>{var o=e(36301),n=e(44538),a=e(74554);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var s=e.__data__;if(!n||s.length<199)return s.push([t,r]),this.size=++e.size,this;e=this.__data__=new a(s)}return e.set(t,r),this.size=e.size,this}},23419:(t,r,e)=>{var o=e(2941),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(n,(function(t,e,o,n){r.push(o?n.replace(a,"$1"):e||t)})),r}));t.exports=s},37948:(t,r,e)=>{var o=e(55193);t.exports=function(t){if("string"==typeof t||o(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},76532:t=>{var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},85638:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},99729:(t,r,e)=>{var o=e(79867);t.exports=function(t,r,e){var n=null==t?void 0:o(t,r);return void 0===n?e:n}},2900:(t,r,e)=>{var o=e(55829),n=e(92360),a=Object.prototype,s=a.hasOwnProperty,i=a.propertyIsEnumerable,u=o(function(){return arguments}())?o:function(t){return n(t)&&s.call(t,"callee")&&!i.call(t,"callee")};t.exports=u},19785:t=>{var r=Array.isArray;t.exports=r},80068:(t,r,e)=>{var o=e(28338),n=e(84194);t.exports=function(t){return null!=t&&n(t.length)&&!o(t)}},43854:(t,r,e)=>{t=e.nmd(t);var o=e(77400),n=e(57714),a=r&&!r.nodeType&&r,s=a&&t&&!t.nodeType&&t,i=s&&s.exports===a?o.Buffer:void 0,u=(i?i.isBuffer:void 0)||n;t.exports=u},28338:(t,r,e)=>{var o=e(99736),n=e(11611);t.exports=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},84194:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},11611:t=>{t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},92360:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},55193:(t,r,e)=>{var o=e(99736),n=e(92360);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==o(t)}},48519:(t,r,e)=>{var o=e(26972),n=e(39334),a=e(18125),s=a&&a.isTypedArray,i=s?n(s):o;t.exports=i},50098:(t,r,e)=>{var o=e(98213),n=e(20186),a=e(80068);t.exports=function(t){return a(t)?o(t):n(t)}},16651:(t,r,e)=>{var o=e(74554);function n(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var o=arguments,n=r?r.apply(this,o):o[0],a=e.cache;if(a.has(n))return a.get(n);var s=t.apply(this,o);return e.cache=a.set(n,s)||a,s};return e.cache=new(n.Cache||o),e}n.Cache=o,t.exports=n},15937:t=>{t.exports=function(){return[]}},57714:t=>{t.exports=function(){return!1}},65567:(t,r,e)=>{var o=e(34282);t.exports=function(t){return null==t?"":o(t)}}}]);
|