jupytergis-core 0.6.0__py3-none-any.whl → 0.6.2__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.
- jupytergis_core/_version.py +1 -1
- jupytergis_core/schema/__init__.py +1 -1
- jupytergis_core/schema/interfaces/__init__.py +2 -2
- jupytergis_core/schema/interfaces/export/__init__.py +2 -2
- jupytergis_core/schema/interfaces/export/exportGeoJson.py +1 -1
- jupytergis_core/schema/interfaces/export/exportGeoTiff.py +1 -1
- jupytergis_core/schema/interfaces/geojson.py +1 -1
- jupytergis_core/schema/interfaces/processing/__init__.py +2 -2
- jupytergis_core/schema/interfaces/processing/boundingBoxes.py +1 -1
- jupytergis_core/schema/interfaces/processing/buffer.py +1 -1
- jupytergis_core/schema/interfaces/processing/centroids.py +1 -1
- jupytergis_core/schema/interfaces/processing/concaveHull.py +1 -1
- jupytergis_core/schema/interfaces/processing/convexHull.py +1 -1
- jupytergis_core/schema/interfaces/processing/dissolve.py +1 -1
- jupytergis_core/schema/interfaces/project/__init__.py +2 -2
- jupytergis_core/schema/interfaces/project/jgis.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/__init__.py +2 -2
- jupytergis_core/schema/interfaces/project/layers/heatmapLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/hillshadeLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/imageLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/rasterLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/stacLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/vectorLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/vectorTileLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/webGlLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/__init__.py +2 -2
- jupytergis_core/schema/interfaces/{geoJsonSource.py → project/sources/geoJsonSource.py} +3 -3
- jupytergis_core/schema/interfaces/project/sources/geoTiffSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/imageSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/rasterDemSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/rasterSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/shapefileSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/vectorTileSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/videoSource.py +1 -1
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/package.json +4 -4
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/schemas/@jupytergis/jupytergis-core/package.json.orig +3 -3
- jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/229.ee0310f26253b45fe462.js +8 -0
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/397.a6fa5a4d29479f45b270.js → jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/397.60274eedc66443d2b6fc.js +1 -1
- jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/432.b81aa01fd224321ff376.js +1 -0
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/671.b8a4f9c5fd02e51ec026.js → jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/671.8da90f680f4c1d71b5fb.js +1 -1
- jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.347021da09be0d178782.js +1 -0
- jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.9d9d71140699a8998c5a.js +1 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/third-party-licenses.json +12 -6
- {jupytergis_core-0.6.0.dist-info → jupytergis_core-0.6.2.dist-info}/METADATA +1 -1
- {jupytergis_core-0.6.0.dist-info → jupytergis_core-0.6.2.dist-info}/RECORD +114 -114
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/432.48d67c4273f9195419e3.js +0 -1
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/634.2747a436e7df0c53f51b.js +0 -8
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.35a1ef3613255bda4218.js +0 -1
- jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.0d09a4d6aa378d4b27c2.js +0 -1
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/etc/jupyter/jupyter_server_config.d/jupytergis_core.json +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/schemas/@jupytergis/jupytergis-core/jupytergis-settings.json +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/026680ab0cd1523edc87.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/02ff7d503bbd90b21fc4.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/062a9554f6b4caac9713.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/064f37cecb8130ad66e8.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/08da2741746ddab81d04.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/0c6a0352b82839119f95.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/13c485bb93f5567f02fd.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1474207a6b3ca1001e78.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/14b98240613d5256c621.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/154.0d16fbe1d1182d138b2c.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1b97ea0f2b3af717cffa.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1d440270da19a2f22fee.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1ed164e010f3c0306d15.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2218dfba22fc2b08e948.png +0 -0
- /jupytergis_core-0.6.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/634.2747a436e7df0c53f51b.js.LICENSE.txt → /jupytergis_core-0.6.2.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/229.ee0310f26253b45fe462.js.LICENSE.txt +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/234.2f0fc49f516ad354aa18.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.6ee794baeb00791424c2.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.6ee794baeb00791424c2.js.LICENSE.txt +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2ab791b60c4058e664f8.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2b24b6a745c11511f055.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2d676bc0a01c2cd2fccb.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2f02309ea499725612ea.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/32c7a73662cceb5bb1d7.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/350eec4ce9ae4bc10bca.wasm +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/363ca7c5f78deb6fd033.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/376.58a6410b7089dea5b0d5.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3ae0bf244442de7efc35.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3d48be10ffea86eb15de.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/407.da5d00862f4879fe3c9c.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/415edc3fa381260cf31e.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/42cbddf5e883673bc4e2.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/472.b2ea9ebc35d5ad4e1fcc.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/527ef171d5df15dc7da5.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/542.477a73b8682de0e8d45e.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/552.0936beb209d3ea5a1229.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/555.be80e60305924af2e139.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5bb02252f243f8c7494f.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5d181edc3c046e1454a1.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5f32ad48aefe00e51312.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/618.86523276f857e0a3362e.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/6e4f6b4d0dfca3bd4450.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/71d436fb44627b6bfbd7.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/7b225dc2d37cd3582156.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.5f3759c98814aa602705.js +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.5f3759c98814aa602705.js.LICENSE.txt +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/843ab141e62516b9df5c.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/8814e17f6b110e8f3e42.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/88b2ae0d29edb684eae5.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/971a42d174dd17b9451a.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a3c609f5bff95a7a53be.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a86d626c9ed2e222d190.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a9e286b0c0264a9fc737.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/ab309078b494f850430a.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/b15e3989b7b90b5a8d9d.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/b36717fbb06f21d53b01.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/ba4b6e82fe5a816c40a5.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/bb2b310570da7a3587e9.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/be92bcf7bb99753b4b3d.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c2ffa011d7f52a0ddf45.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/d83457b1b925c1718f6d.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/e473e1e9f20af114bbb4.data +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/f2617180c6907263a7ff.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/fe99a6dbf5a71d308989.png +0 -0
- {jupytergis_core-0.6.0.data → jupytergis_core-0.6.2.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/style.js +0 -0
- {jupytergis_core-0.6.0.dist-info → jupytergis_core-0.6.2.dist-info}/WHEEL +0 -0
- {jupytergis_core-0.6.0.dist-info → jupytergis_core-0.6.2.dist-info}/entry_points.txt +0 -0
- {jupytergis_core-0.6.0.dist-info → jupytergis_core-0.6.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_jupytergis_jupytergis_core=self.webpackChunk_jupytergis_jupytergis_core||[]).push([[397],{67397:(e,t,r)=>{r.r(t),r.d(t,{IAnnotationToken:()=>_,IJGISExternalCommandRegistryToken:()=>p,IJGISFormSchemaRegistryToken:()=>c,IJGISLayerBrowserRegistryToken:()=>m,IJupyterGISDocTracker:()=>y,JupyterGISDoc:()=>l,JupyterGISModel:()=>g,ProcessingCommandIDs:()=>T,ProcessingLogicType:()=>S,ProcessingMerge:()=>f,SCHEMA_VERSION:()=>d,processingList:()=>v});var s=r(74602),a=r(26803),i=r.n(a),o=r(28e3),n=r(67262);const d="0.5.0";class l extends o.YDocument{constructor(){super(),this.editable=!0,this._optionsObserver=e=>{this._optionsChanged.emit(e.keys)},this._metaObserver=e=>{this._metadataChanged.emit(e.keys)},this._optionsChanged=new s.Signal(this),this._layersChanged=new s.Signal(this),this._layerTreeChanged=new s.Signal(this),this._sourcesChanged=new s.Signal(this),this._metadataChanged=new s.Signal(this),this._options=this.ydoc.getMap("options"),this._layers=this.ydoc.getMap("layers"),this._layerTree=this.ydoc.getArray("layerTree"),this._sources=this.ydoc.getMap("sources"),this._metadata=this.ydoc.getMap("metadata"),this.undoManager.addToScope(this._layers),this.undoManager.addToScope(this._sources),this.undoManager.addToScope(this._layerTree),this._layers.observeDeep(this._layersObserver.bind(this)),this._layerTree.observe(this._layerTreeObserver.bind(this)),this._sources.observeDeep(this._sourcesObserver.bind(this)),this._options.observe(this._optionsObserver.bind(this)),this._metadata.observe(this._metaObserver.bind(this))}getSource(){const e=this._layers.toJSON(),t=this._layerTree.toJSON(),r=this._options.toJSON();return{layers:e,layerTree:t,sources:this._sources.toJSON(),options:r,metadata:this._metadata.toJSON()}}setSource(e){e&&("string"==typeof e&&(e=JSON.parse(e)),this.transact(()=>{var t,r,s,a,i;const o=null!==(t=e.layers)&&void 0!==t?t:{};Object.entries(o).forEach(([e,t])=>this._layers.set(e,t)),(null!==(r=e.layerTree)&&void 0!==r?r:[]).forEach(e=>{this._layerTree.push([e])});const n=null!==(s=e.options)&&void 0!==s?s:{};Object.entries(n).forEach(([e,t])=>this._options.set(e,t));const d=null!==(a=e.sources)&&void 0!==a?a:{};Object.entries(d).forEach(([e,t])=>this._sources.set(e,t));const l=null!==(i=e.metadata)&&void 0!==i?i:{};Object.entries(l).forEach(([e,t])=>this._metadata.set(e,t))}))}dispose(){super.dispose()}get version(){return d}get layers(){return n.JSONExt.deepCopy(this._layers.toJSON())}set layers(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._layers.set(t,r)})}set sources(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._sources.set(t,r)})}get sources(){return n.JSONExt.deepCopy(this._sources.toJSON())}get layerTree(){return n.JSONExt.deepCopy(this._layerTree.toJSON())}set layerTree(e){this.transact(()=>{this._layerTree.delete(0,this._layerTree.length),this._layerTree.push(e)})}getLayer(e){if(this._layers.has(e))return n.JSONExt.deepCopy(this._layers.get(e))}getLayerSource(e){if(this._sources.has(e))return n.JSONExt.deepCopy(this._sources.get(e))}set options(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._options.set(t,r)})}get options(){return n.JSONExt.deepCopy(this._options.toJSON())}get layersChanged(){return this._layersChanged}get layerTreeChanged(){return this._layerTreeChanged}get sourcesChanged(){return this._sourcesChanged}get optionsChanged(){return this._optionsChanged}layerExists(e){return Boolean(this._getLayerAsYMap(e))}removeLayer(e){this.transact(()=>{this._layers.delete(e)})}addLayer(e,t){this.transact(()=>{this._layers.set(e,t)})}updateLayer(e,t){this.transact(()=>{this._layers.set(e,t)})}addLayerTreeItem(e,t){this.transact(()=>{this._layerTree.insert(e,[t])})}updateLayerTreeItem(e,t){this.transact(()=>{this._layerTree.delete(e),t&&this._layerTree.insert(e,[t])})}getObject(e){const t=this.getLayer(e);if(t)return t;return this.getLayerSource(e)||void 0}updateObjectParameters(e,t){const r=this.getLayer(e);r&&(r.parameters=Object.assign(Object.assign({},r.parameters),t),this.updateLayer(e,r));const s=this.getLayerSource(e);s&&(s.parameters=Object.assign(Object.assign({},s.parameters),t),this.updateSource(e,s))}sourceExists(e){return Boolean(this._getSourceAsYMap(e))}removeSource(e){this.transact(()=>{this._sources.delete(e)})}addSource(e,t){this.transact(()=>{this._sources.set(e,t)})}updateSource(e,t){this.transact(()=>this._sources.set(e,t))}getOption(e){const t=this._options.get(e);if(t)return n.JSONExt.deepCopy(t)}setOption(e,t){this.transact(()=>{this._options.set(e,t)})}getMetadata(e){return this._metadata.get(e)}setMetadata(e,t){this.transact(()=>{this._metadata.set(e,t)})}removeMetadata(e){this._metadata.has(e)&&this._metadata.delete(e)}get metadata(){return n.JSONExt.deepCopy(this._metadata.toJSON())}set metadata(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._metadata.set(t,r)})}get metadataChanged(){return this._metadataChanged}static create(){return new l}_getLayerAsYMap(e){if(this._layers.has(e))return this._layers.get(e)}_getSourceAsYMap(e){if(this._sources.has(e))return this._sources.get(e)}_layersObserver(e){const t=[];let r=!1;e.forEach(e=>{e.keys.forEach((s,a)=>{r||(r=!0),t.push({id:a,oldValue:s.oldValue,newValue:n.JSONExt.deepCopy(e.target.toJSON()[a])})})}),r=0===t.length||r,r&&this._layersChanged.emit({layerChange:t})}_layerTreeObserver(e){const t=e.delta;this._layerTreeChanged.emit({layerTreeChange:t})}_sourcesObserver(e){const t=[];let r=!1;e.forEach(e=>{e.keys.forEach((s,a)=>{r||(r=!0),t.push({id:a,newValue:n.JSONExt.deepCopy(e.target.toJSON()[a])})})}),r=0===t.length||r,r&&this._sourcesChanged.emit({sourceChange:t})}}const h=JSON.parse('{"type":"object","title":"IJGISContent","required":["layers","sources"],"additionalProperties":false,"properties":{"schemaVersion":{"type":"string","default":"0.5.0"},"layers":{"$ref":"#/definitions/jGISLayers"},"sources":{"$ref":"#/definitions/jGISSources"},"layerTree":{"$ref":"#/definitions/jGISLayerTree"},"options":{"$ref":"#/definitions/jGISOptions"},"metadata":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false}},"definitions":{"layerType":{"type":"string","enum":["RasterLayer","VectorLayer","VectorTileLayer","HillshadeLayer","WebGlLayer","ImageLayer","HeatmapLayer","StacLayer"]},"sourceType":{"type":"string","enum":["RasterSource","VectorTileSource","GeoJSONSource","RasterDemSource","VideoSource","ImageSource","ShapefileSource","GeoTiffSource"]},"jGISLayer":{"title":"IJGISLayer","type":"object","additionalProperties":false,"required":["name","type","visible"],"properties":{"name":{"type":"string"},"type":{"$ref":"#/definitions/layerType"},"visible":{"type":"boolean","default":true},"parameters":{"type":"object"},"filters":{"$ref":"#/definitions/jGISFilter"}}},"jGISSource":{"title":"IJGISSource","type":"object","additionalProperties":false,"required":["name","type"],"properties":{"name":{"type":"string"},"type":{"$ref":"#/definitions/sourceType"},"parameters":{"type":"object"}}},"jGISLayerGroup":{"title":"IJGISLayerGroup","type":"object","additionalProperties":false,"required":["name","layers"],"properties":{"name":{"type":"string"},"layers":{"type":"array","default":[],"items":{"$ref":"#/definitions/jGISLayerItem"}},"visible":{"type":"boolean","default":true},"parameters":{"type":"object"}}},"jGISLayerItem":{"title":"IJGISLayerItem","oneOf":[{"type":"string"},{"$ref":"#/definitions/jGISLayerGroup"}]},"jGISLayers":{"title":"IJGISLayers","type":"object","default":{},"additionalProperties":{"$ref":"#/definitions/jGISLayer"}},"jGISSources":{"title":"IJGISSources","type":"object","default":{},"additionalProperties":{"$ref":"#/definitions/jGISSource"}},"jGISLayerTree":{"title":"IJGISLayerTree","type":"array","default":[],"items":{"$ref":"#/definitions/jGISLayerItem"}},"jGISOptions":{"title":"IJGISOptions","type":"object","default":{},"required":[],"additionalProperties":false,"properties":{"latitude":{"type":"number","default":0},"longitude":{"type":"number","default":0},"zoom":{"type":"number","default":0},"bearing":{"type":"number","default":0},"pitch":{"type":"number","default":0},"extent":{"type":"array","default":null,"items":{"type":"number"}},"projection":{"type":"string","default":"EPSG:3857"},"useExtent":{"type":"boolean","default":false}}},"jGISFilterItem":{"title":"IJGISFilterItem","type":"object","default":{},"required":["operator","feature","value"],"additionalProperties":false,"properties":{"operator":{"type":"string","enum":["==","!=",">","<",">=","<=","between"],"default":"=="},"feature":{"type":"string","default":""},"value":{"type":["string","number"]},"betweenMin":{"type":["number"]},"betweenMax":{"type":["number"]}}},"jGISFilter":{"title":"IJGISFilter","type":"object","required":["logicalOp","appliedFilters"],"additionalProperties":false,"properties":{"logicalOp":{"type":"string","default":"all"},"appliedFilters":{"type":"array","default":[],"items":{"$ref":"#/definitions/jGISFilterItem"}}}}}}');class g{constructor(e){this._onSharedModelChanged=(e,t)=>{var r;t&&(null===(r=null==t?void 0:t.objectChange)||void 0===r?void 0:r.length)&&(this._contentChanged.emit(void 0),this.dirty=!0)},this.collaborative=void 0===document.querySelectorAll("[data-jupyter-lite-root]")[0],this.flyToGeometrySignal=new s.Signal(this),this.highlightFeatureSignal=new s.Signal(this),this.updateBboxSignal=new s.Signal(this),this._onClientStateChanged=e=>{const t=this.sharedModel.awareness.getStates();this._clientStateChanged.emit(t),(e.added.length||e.removed.length)&&this._userChanged.emit(this.users)},this.addFeatureAsMs=(e,t)=>{this.addFeatureAsMsSignal.emit(JSON.stringify({id:e,selectedFeature:t}))},this.triggerLayerUpdate=(e,t)=>{this.updateLayerSignal.emit(JSON.stringify({layerId:e,layer:t}))},this.defaultKernelName="",this.defaultKernelLanguage="",this._dirty=!1,this._readOnly=!1,this._isDisposed=!1,this._userChanged=new s.Signal(this),this._disposed=new s.Signal(this),this._contentChanged=new s.Signal(this),this._stateChanged=new s.Signal(this),this._themeChanged=new s.Signal(this),this._clientStateChanged=new s.Signal(this),this._sharedMetadataChanged=new s.Signal(this),this._zoomToPositionSignal=new s.Signal(this),this._addFeatureAsMsSignal=new s.Signal(this),this._updateLayerSignal=new s.Signal(this),this._isIdentifying=!1,this._isTemporalControllerActive=!1,this._geolocationChanged=new s.Signal(this);const{annotationModel:t,sharedModel:r,settingRegistry:a}=e;r?this._sharedModel=r:(this._sharedModel=l.create(),this._sharedModel.changed.connect(this._onSharedModelChanged)),this.sharedModel.awareness.on("change",this._onClientStateChanged),this._sharedModel.metadataChanged.connect(this._metadataChangedHandler,this),this.annotationModel=t,this.settingRegistry=a,this._pathChanged=new s.Signal(this)}async initSettings(){if(this.settingRegistry){const e=await this.settingRegistry.load("@jupytergis/jupytergis-core:jupytergis-settings");this._settings=e.composite,e.changed.connect(()=>{this._settings=e.composite,console.log("JupyterGIS Settings updated:",this._settings)})}}getSettings(){return this._settings}get sharedModel(){return this._sharedModel}get isDisposed(){return this._isDisposed}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get pathChanged(){return this._pathChanged}get themeChanged(){return this._themeChanged}get currentUserId(){var e;return null===(e=this.sharedModel)||void 0===e?void 0:e.awareness.clientID}get users(){var e;this._usersMap=null===(e=this._sharedModel)||void 0===e?void 0:e.awareness.getStates();const t=[];return this._usersMap&&this._usersMap.forEach((e,r)=>{t.push({userId:r,userData:e.user})}),t}get userChanged(){return this._userChanged}get dirty(){return this._dirty}set dirty(e){this._dirty=e}get readOnly(){return this._readOnly}set readOnly(e){this._readOnly=e}get localState(){return this.sharedModel.awareness.getLocalState()}get clientStateChanged(){return this._clientStateChanged}get sharedOptionsChanged(){return this.sharedModel.optionsChanged}get sharedLayersChanged(){return this.sharedModel.layersChanged}get sharedLayerTreeChanged(){return this.sharedModel.layerTreeChanged}get sharedSourcesChanged(){return this.sharedModel.sourcesChanged}get disposed(){return this._disposed}get sharedMetadataChanged(){return this._sharedMetadataChanged}get zoomToPositionSignal(){return this._zoomToPositionSignal}set isIdentifying(e){this._isIdentifying=e}get isIdentifying(){return this._isIdentifying}set isTemporalControllerActive(e){this._isTemporalControllerActive=e}get isTemporalControllerActive(){return this._isTemporalControllerActive}centerOnPosition(e){this._zoomToPositionSignal.emit(e)}_metadataChangedHandler(e,t){this._sharedMetadataChanged.emit(t)}addMetadata(e,t){this.sharedModel.setMetadata(e,t)}removeMetadata(e){this.sharedModel.removeMetadata(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._sharedModel.dispose(),this._disposed.emit(),s.Signal.clearData(this))}toString(){return JSON.stringify(this.getContent(),null,2)}fromString(e){const t=JSON.parse(e),r=(new(i())).compile(h);if(!r(t)){let e="JupyterGIS format errors:\n";for(const t of r.errors||[])e=`${e}- ${t.instancePath} ${t.message}\n`;console.warn(e)}this.sharedModel.transact(()=>{var e,r,s,a,i;this.sharedModel.sources=null!==(e=t.sources)&&void 0!==e?e:{},this.sharedModel.layers=null!==(r=t.layers)&&void 0!==r?r:{},this.sharedModel.layerTree=null!==(s=t.layerTree)&&void 0!==s?s:[],this.sharedModel.options=null!==(a=t.options)&&void 0!==a?a:{latitude:0,longitude:0,zoom:0,bearing:0,pitch:0,projection:"EPSG:3857"},this.sharedModel.metadata=null!==(i=t.metadata)&&void 0!==i?i:{}}),this.dirty=!0}toJSON(){return JSON.parse(this.toString())}fromJSON(e){}initialize(){}getWorker(){return g.worker}getContent(){return{sources:this.sharedModel.sources,layers:this.sharedModel.layers,layerTree:this.sharedModel.layerTree,options:this.sharedModel.options,metadata:this.sharedModel.metadata}}get contentsManager(){return this._contentsManager}set contentsManager(e){this._contentsManager=e}get filePath(){return this._filePath}set filePath(e){this._filePath=e,this._pathChanged.emit(e)}getLayers(){return this.sharedModel.layers}getSources(){return this.sharedModel.sources}getLayerTree(){return this.sharedModel.layerTree}getLayer(e){return this.sharedModel.getLayer(e)}getSource(e){return this.sharedModel.getLayerSource(e)}getSourcesByType(e){const t={};for(const r of Object.keys(this.getSources()||{})){const s=this.getSource(r);(null==s?void 0:s.type)===e&&(t[r]=s.name)}return t}getLayersBySource(e){const t=[];return Object.entries(this.getLayers()||{}).forEach(([r,s])=>{var a;(null===(a=s.parameters)||void 0===a?void 0:a.source)===e&&t.push(r)}),t}addGroup(e,t,r){if(u.findItemPath(this.getLayerTree(),e).length)return void console.warn(`The group "${t}" already exist in the layer tree`);const s={name:e,layers:[]};this._addLayerTreeItem(s,t,r)}addLayer(e,t,r,s){this.getLayer(e)||this.sharedModel.addLayer(e,t),this._addLayerTreeItem(e,r,s)}removeLayer(e){var t;const r=this._sharedModel.getLayer(e),s=null===(t=null==r?void 0:r.parameters)||void 0===t?void 0:t.source;this._removeLayerTreeLayer(this.getLayerTree(),e),this.sharedModel.removeLayer(e),this.sharedModel.removeSource(s)}setOptions(e){this._sharedModel.options=e}getOptions(){return this._sharedModel.options}syncViewport(e,t){this.sharedModel.awareness.setLocalStateField("viewportState",{value:e,emitter:t})}syncPointer(e,t){this.sharedModel.awareness.setLocalStateField("pointer",{value:e,emitter:t})}syncSelected(e,t){this.sharedModel.awareness.setLocalStateField("selected",{value:e,emitter:t})}syncIdentifiedFeatures(e,t){this.sharedModel.awareness.setLocalStateField("identifiedFeatures",{value:e,emitter:t})}setUserToFollow(e){this._sharedModel&&this._sharedModel.awareness.setLocalStateField("remoteUser",e)}getClientId(){return this.sharedModel.awareness.clientID}_addLayerTreeItem(e,t,r){if(t){const s=this._getLayerTreeInfo(t);s&&(s.workingGroup.layers.splice(null!=r?r:s.workingGroup.layers.length,0,e),this._sharedModel.updateLayerTreeItem(s.mainGroupIndex,s.mainGroup))}else this.sharedModel.addLayerTreeItem(null!=r?r:this.getLayerTree().length,e)}moveItemsToGroup(e,t,r){const s=this.getLayerTree();for(const a of e)if(this.getLayer(a))this._removeLayerTreeLayer(s,a),this._addLayerTreeItem(a,t,r);else{const e=this._getLayerTreeInfo(a);if(void 0===e)continue;const i=Object.assign({},e.workingGroup);this._removeLayerTreeGroup(s,a),this._addLayerTreeItem(i,t,r)}}moveItemRelatedTo(e,t,r){var s;const a=this.getLayerTree();let i;if(this.getLayer(e))this._removeLayerTreeLayer(a,e),i=e;else{const t=this._getLayerTreeInfo(e);if(void 0===t)return;i=Object.assign({},t.workingGroup),this._removeLayerTreeGroup(a,e)}const o=u.findItemPath(a,t),n=(null!==(s=o.pop())&&void 0!==s?s:0)+(r?1:0);let d="",l=o.shift();if(void 0!==l){let e=a[l];for(;o.length&&(l=o.shift(),void 0!==l);)e=e.layers[l];d=e.name}this._addLayerTreeItem(i,d,n)}addNewLayerGroup(e,t){const r=this.getLayerTree();for(const t in e)this._removeLayerTreeLayer(r,t);this._addLayerTreeItem(t)}_removeLayerTreeLayer(e,t){this._removeLayerTreeItem(e,t,!0),this.sharedModel.layerTree=e}_removeLayerTreeGroup(e,t){this._removeLayerTreeItem(e,t,!1),this.sharedModel.layerTree=e}_removeLayerTreeItem(e,t,r){for(let s=0;s<e.length;s++){const a=e[s];(r?"string"==typeof a&&a===t:"string"!=typeof a&&a.name===t)?(e.splice(s,1),s--):"string"!=typeof a&&"layers"in a&&this._removeLayerTreeItem(a.layers,t,r)}}renameLayerGroup(e,t){const r=this._getLayerTreeInfo(e);r?(r.workingGroup.name=t,this._sharedModel.updateLayerTreeItem(r.mainGroupIndex,r.mainGroup)):console.log("Something went wrong when renaming layer")}removeLayerGroup(e){const t=this.getLayerTree(),r=this._getLayerTreeInfo(e),s=function e(t,r){const s=[];for(const a of t)if("string"==typeof a)s.push(a);else if(a.name!==r){const t=e(a.layers,r);s.push(Object.assign(Object.assign({},a),{layers:t}))}return s}(t,e);r&&this._sharedModel.updateLayerTreeItem(r.mainGroupIndex,s[r.mainGroupIndex])}toggleIdentify(){this._isIdentifying=!this._isIdentifying}toggleTemporalController(){this._isTemporalControllerActive=!this._isTemporalControllerActive,this.sharedModel.awareness.setLocalStateField("isTemporalControllerActive",this._isTemporalControllerActive)}_getLayerTreeInfo(e){const t=this.getLayerTree(),r=u.findItemPath(t,e);if(!r.length)return void console.warn(`The group "${e}" does not exist in the layer tree`);const s=r.shift();if(void 0===s)return;const a=t[s];let i=a;for(;r.length;){const e=r.shift();if(void 0===e)break;i=i.layers[e]}return{mainGroup:a,workingGroup:i,mainGroupIndex:s}}get addFeatureAsMsSignal(){return this._addFeatureAsMsSignal}get updateLayerSignal(){return this._updateLayerSignal}get geolocation(){return this._geolocation}set geolocation(e){this._geolocation=e,this.geolocationChanged.emit(this.geolocation)}get geolocationChanged(){return this._geolocationChanged}}var u;!function(e){e.getOrderedLayerIds=function(e){return u.layerTreeRecursion(e.sharedModel.layerTree)}}(g||(g={})),function(e){e.layerTreeRecursion=function e(t,r=[]){for(const s of t)"string"==typeof s?r.push(s):r.push(...e(s.layers));return r},e.findItemPath=function e(t,r,s=[]){for(let a=0;a<t.length;a++){const i=t[a];if("string"==typeof i){if(i===r){const e=[...s];return e.push(a),e}}else{const t=[...s];if(t.push(a),i.name===r)return t;const o=e(i.layers,r,t);if(o.length>t.length)return o}}return s}}(u||(u={}));const y=new n.Token("jupyterGISDocTracker"),c=new n.Token("jupytergisFormSchemaRegistry"),p=new n.Token("jupytergisExternalCommandRegistry"),m=new n.Token("jupytergisExternalCommandRegistry"),_=new n.Token("jupytergisAnnotationModel"),S={vector:"vector"},f=JSON.parse('[{"description":"Buffer","name":"buffer","label":"Buffer","operationParams":["bufferDistance"],"operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Union(ST_Buffer(geometry, {bufferDistance})) AS geometry, * FROM \\"{layerName}\\""},"type":"vector"},{"description":"Dissolve","name":"dissolve","operationParams":["dissolveField"],"label":"Dissolve","operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Union(geometry) AS geometry, {dissolveField} FROM \\"{layerName}\\" GROUP BY {dissolveField}"},"type":"vector"},{"description":"Centroids","name":"centroids","operationParams":[],"label":"Centroids","operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Centroid(geometry) AS geometry, * FROM \\"{layerName}\\""},"type":"vector"},{"description":"ConvexHull","name":"convexHull","operationParams":[],"label":"Convex Hull","operations":{"sql":"SELECT ST_ConvexHull(geometry) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"},{"description":"ConcaveHull","name":"concaveHull","operationParams":["pctconvex","allowHoles"],"label":"Concave Hull","operations":{"sql":"SELECT ST_ConcaveHull(geometry,{pctconvex},{allowHoles}) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"},{"description":"BoundingBoxes","name":"boundingBoxes","operationParams":[],"label":"Bounding Boxes","operations":{"sql":"SELECT ST_Envelope(geometry) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"}]'),T={};for(const e of f)T[e.name]=`jupytergis:${e.name}`;const v=["Buffer","Dissolve","Centroids","ConvexHull","ConcaveHull","BoundingBoxes"]}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_jupytergis_jupytergis_core=self.webpackChunk_jupytergis_jupytergis_core||[]).push([[397],{67397:(e,t,r)=>{r.r(t),r.d(t,{IAnnotationToken:()=>_,IJGISExternalCommandRegistryToken:()=>p,IJGISFormSchemaRegistryToken:()=>c,IJGISLayerBrowserRegistryToken:()=>m,IJupyterGISDocTracker:()=>y,JupyterGISDoc:()=>l,JupyterGISModel:()=>g,ProcessingCommandIDs:()=>T,ProcessingLogicType:()=>S,ProcessingMerge:()=>f,SCHEMA_VERSION:()=>d,processingList:()=>v});var s=r(74602),a=r(26803),i=r.n(a),o=r(28e3),n=r(67262);const d="0.5.0";class l extends o.YDocument{constructor(){super(),this.editable=!0,this._optionsObserver=e=>{this._optionsChanged.emit(e.keys)},this._metaObserver=e=>{this._metadataChanged.emit(e.keys)},this._optionsChanged=new s.Signal(this),this._layersChanged=new s.Signal(this),this._layerTreeChanged=new s.Signal(this),this._sourcesChanged=new s.Signal(this),this._metadataChanged=new s.Signal(this),this._options=this.ydoc.getMap("options"),this._layers=this.ydoc.getMap("layers"),this._layerTree=this.ydoc.getArray("layerTree"),this._sources=this.ydoc.getMap("sources"),this._metadata=this.ydoc.getMap("metadata"),this.undoManager.addToScope(this._layers),this.undoManager.addToScope(this._sources),this.undoManager.addToScope(this._layerTree),this._layers.observeDeep(this._layersObserver.bind(this)),this._layerTree.observe(this._layerTreeObserver.bind(this)),this._sources.observeDeep(this._sourcesObserver.bind(this)),this._options.observe(this._optionsObserver.bind(this)),this._metadata.observe(this._metaObserver.bind(this))}getSource(){const e=this._layers.toJSON(),t=this._layerTree.toJSON(),r=this._options.toJSON();return{layers:e,layerTree:t,sources:this._sources.toJSON(),options:r,metadata:this._metadata.toJSON()}}setSource(e){e&&("string"==typeof e&&(e=JSON.parse(e)),this.transact(()=>{var t,r,s,a,i;const o=null!==(t=e.layers)&&void 0!==t?t:{};Object.entries(o).forEach(([e,t])=>this._layers.set(e,t)),(null!==(r=e.layerTree)&&void 0!==r?r:[]).forEach(e=>{this._layerTree.push([e])});const n=null!==(s=e.options)&&void 0!==s?s:{};Object.entries(n).forEach(([e,t])=>this._options.set(e,t));const d=null!==(a=e.sources)&&void 0!==a?a:{};Object.entries(d).forEach(([e,t])=>this._sources.set(e,t));const l=null!==(i=e.metadata)&&void 0!==i?i:{};Object.entries(l).forEach(([e,t])=>this._metadata.set(e,t))}))}dispose(){super.dispose()}get version(){return d}get layers(){return n.JSONExt.deepCopy(this._layers.toJSON())}set layers(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._layers.set(t,r)})}set sources(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._sources.set(t,r)})}get sources(){return n.JSONExt.deepCopy(this._sources.toJSON())}get layerTree(){return n.JSONExt.deepCopy(this._layerTree.toJSON())}set layerTree(e){this.transact(()=>{this._layerTree.delete(0,this._layerTree.length),this._layerTree.push(e)})}getLayer(e){if(this._layers.has(e))return n.JSONExt.deepCopy(this._layers.get(e))}getLayerSource(e){if(this._sources.has(e))return n.JSONExt.deepCopy(this._sources.get(e))}set options(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._options.set(t,r)})}get options(){return n.JSONExt.deepCopy(this._options.toJSON())}get layersChanged(){return this._layersChanged}get layerTreeChanged(){return this._layerTreeChanged}get sourcesChanged(){return this._sourcesChanged}get optionsChanged(){return this._optionsChanged}layerExists(e){return Boolean(this._getLayerAsYMap(e))}removeLayer(e){this.transact(()=>{this._layers.delete(e)})}addLayer(e,t){this.transact(()=>{this._layers.set(e,t)})}updateLayer(e,t){this.transact(()=>{this._layers.set(e,t)})}addLayerTreeItem(e,t){this.transact(()=>{this._layerTree.insert(e,[t])})}updateLayerTreeItem(e,t){this.transact(()=>{this._layerTree.delete(e),t&&this._layerTree.insert(e,[t])})}getObject(e){const t=this.getLayer(e);if(t)return t;return this.getLayerSource(e)||void 0}updateObjectParameters(e,t){const r=this.getLayer(e);r&&(r.parameters=Object.assign(Object.assign({},r.parameters),t),this.updateLayer(e,r));const s=this.getLayerSource(e);s&&(s.parameters=Object.assign(Object.assign({},s.parameters),t),this.updateSource(e,s))}sourceExists(e){return Boolean(this._getSourceAsYMap(e))}removeSource(e){this.transact(()=>{this._sources.delete(e)})}addSource(e,t){this.transact(()=>{this._sources.set(e,t)})}updateSource(e,t){this.transact(()=>this._sources.set(e,t))}getOption(e){const t=this._options.get(e);if(t)return n.JSONExt.deepCopy(t)}setOption(e,t){this.transact(()=>{this._options.set(e,t)})}getMetadata(e){return this._metadata.get(e)}setMetadata(e,t){this.transact(()=>{this._metadata.set(e,t)})}removeMetadata(e){this._metadata.has(e)&&this._metadata.delete(e)}get metadata(){return n.JSONExt.deepCopy(this._metadata.toJSON())}set metadata(e){this.transact(()=>{for(const[t,r]of Object.entries(e))this._metadata.set(t,r)})}get metadataChanged(){return this._metadataChanged}static create(){return new l}_getLayerAsYMap(e){if(this._layers.has(e))return this._layers.get(e)}_getSourceAsYMap(e){if(this._sources.has(e))return this._sources.get(e)}_layersObserver(e){const t=[];let r=!1;e.forEach(e=>{e.keys.forEach((s,a)=>{r||(r=!0),t.push({id:a,oldValue:s.oldValue,newValue:n.JSONExt.deepCopy(e.target.toJSON()[a])})})}),r=0===t.length||r,r&&this._layersChanged.emit({layerChange:t})}_layerTreeObserver(e){const t=e.delta;this._layerTreeChanged.emit({layerTreeChange:t})}_sourcesObserver(e){const t=[];let r=!1;e.forEach(e=>{e.keys.forEach((s,a)=>{r||(r=!0),t.push({id:a,newValue:n.JSONExt.deepCopy(e.target.toJSON()[a])})})}),r=0===t.length||r,r&&this._sourcesChanged.emit({sourceChange:t})}}const h=JSON.parse('{"type":"object","title":"IJGISContent","required":["layers","sources"],"additionalProperties":false,"properties":{"schemaVersion":{"type":"string","default":"0.5.0"},"layers":{"$ref":"#/definitions/jGISLayers"},"sources":{"$ref":"#/definitions/jGISSources"},"layerTree":{"$ref":"#/definitions/jGISLayerTree"},"options":{"$ref":"#/definitions/jGISOptions"},"metadata":{"type":"object","patternProperties":{"^.*$":{"type":"string"}},"additionalProperties":false}},"definitions":{"layerType":{"type":"string","enum":["RasterLayer","VectorLayer","VectorTileLayer","HillshadeLayer","WebGlLayer","ImageLayer","HeatmapLayer","StacLayer"]},"sourceType":{"type":"string","enum":["RasterSource","VectorTileSource","GeoJSONSource","RasterDemSource","VideoSource","ImageSource","ShapefileSource","GeoTiffSource"]},"jGISLayer":{"title":"IJGISLayer","type":"object","additionalProperties":false,"required":["name","type","visible"],"properties":{"name":{"type":"string"},"type":{"$ref":"#/definitions/layerType"},"visible":{"type":"boolean","default":true},"parameters":{"type":"object"},"filters":{"$ref":"#/definitions/jGISFilter"}}},"jGISSource":{"title":"IJGISSource","type":"object","additionalProperties":false,"required":["name","type"],"properties":{"name":{"type":"string"},"type":{"$ref":"#/definitions/sourceType"},"parameters":{"type":"object"}}},"jGISLayerGroup":{"title":"IJGISLayerGroup","type":"object","additionalProperties":false,"required":["name","layers"],"properties":{"name":{"type":"string"},"layers":{"type":"array","default":[],"items":{"$ref":"#/definitions/jGISLayerItem"}},"visible":{"type":"boolean","default":true},"parameters":{"type":"object"}}},"jGISLayerItem":{"title":"IJGISLayerItem","oneOf":[{"type":"string"},{"$ref":"#/definitions/jGISLayerGroup"}]},"jGISLayers":{"title":"IJGISLayers","type":"object","default":{},"additionalProperties":{"$ref":"#/definitions/jGISLayer"}},"jGISSources":{"title":"IJGISSources","type":"object","default":{},"additionalProperties":{"$ref":"#/definitions/jGISSource"}},"jGISLayerTree":{"title":"IJGISLayerTree","type":"array","default":[],"items":{"$ref":"#/definitions/jGISLayerItem"}},"jGISOptions":{"title":"IJGISOptions","type":"object","default":{},"required":[],"additionalProperties":false,"properties":{"latitude":{"type":"number","default":0},"longitude":{"type":"number","default":0},"zoom":{"type":"number","default":0},"bearing":{"type":"number","default":0},"pitch":{"type":"number","default":0},"extent":{"type":"array","default":null,"items":{"type":"number"}},"projection":{"type":"string","default":"EPSG:3857"},"useExtent":{"type":"boolean","default":false}}},"jGISFilterItem":{"title":"IJGISFilterItem","type":"object","default":{},"required":["operator","feature","value"],"additionalProperties":false,"properties":{"operator":{"type":"string","enum":["==","!=",">","<",">=","<=","between"],"default":"=="},"feature":{"type":"string","default":""},"value":{"type":["string","number"]},"betweenMin":{"type":["number"]},"betweenMax":{"type":["number"]}}},"jGISFilter":{"title":"IJGISFilter","type":"object","required":["logicalOp","appliedFilters"],"additionalProperties":false,"properties":{"logicalOp":{"type":"string","default":"all"},"appliedFilters":{"type":"array","default":[],"items":{"$ref":"#/definitions/jGISFilterItem"}}}}}}');class g{constructor(e){this._onSharedModelChanged=(e,t)=>{var r;t&&(null===(r=null==t?void 0:t.objectChange)||void 0===r?void 0:r.length)&&(this._contentChanged.emit(void 0),this.dirty=!0)},this.collaborative=void 0===document.querySelectorAll("[data-jupyter-lite-root]")[0],this.flyToGeometrySignal=new s.Signal(this),this.highlightFeatureSignal=new s.Signal(this),this.updateBboxSignal=new s.Signal(this),this._onClientStateChanged=e=>{const t=this.sharedModel.awareness.getStates();this._clientStateChanged.emit(t),(e.added.length||e.removed.length)&&this._userChanged.emit(this.users)},this.addFeatureAsMs=(e,t)=>{this.addFeatureAsMsSignal.emit(JSON.stringify({id:e,selectedFeature:t}))},this.triggerLayerUpdate=(e,t)=>{this.updateLayerSignal.emit(JSON.stringify({layerId:e,layer:t}))},this.defaultKernelName="",this.defaultKernelLanguage="",this._dirty=!1,this._readOnly=!1,this._isDisposed=!1,this._userChanged=new s.Signal(this),this._disposed=new s.Signal(this),this._contentChanged=new s.Signal(this),this._stateChanged=new s.Signal(this),this._themeChanged=new s.Signal(this),this._clientStateChanged=new s.Signal(this),this._sharedMetadataChanged=new s.Signal(this),this._zoomToPositionSignal=new s.Signal(this),this._addFeatureAsMsSignal=new s.Signal(this),this._updateLayerSignal=new s.Signal(this),this._isIdentifying=!1,this._isTemporalControllerActive=!1,this._geolocationChanged=new s.Signal(this);const{annotationModel:t,sharedModel:r,settingRegistry:a}=e;r?this._sharedModel=r:(this._sharedModel=l.create(),this._sharedModel.changed.connect(this._onSharedModelChanged)),this.sharedModel.awareness.on("change",this._onClientStateChanged),this._sharedModel.metadataChanged.connect(this._metadataChangedHandler,this),this.annotationModel=t,this.settingRegistry=a,this._pathChanged=new s.Signal(this)}async initSettings(){if(this.settingRegistry){const e=await this.settingRegistry.load("@jupytergis/jupytergis-core:jupytergis-settings");this._settings=e.composite,e.changed.connect(()=>{this._settings=e.composite,console.log("JupyterGIS Settings updated:",this._settings)})}}getSettings(){return this._settings}get sharedModel(){return this._sharedModel}get isDisposed(){return this._isDisposed}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get pathChanged(){return this._pathChanged}get themeChanged(){return this._themeChanged}get currentUserId(){var e;return null===(e=this.sharedModel)||void 0===e?void 0:e.awareness.clientID}get users(){var e;this._usersMap=null===(e=this._sharedModel)||void 0===e?void 0:e.awareness.getStates();const t=[];return this._usersMap&&this._usersMap.forEach((e,r)=>{t.push({userId:r,userData:e.user})}),t}get userChanged(){return this._userChanged}get dirty(){return this._dirty}set dirty(e){this._dirty=e}get readOnly(){return this._readOnly}set readOnly(e){this._readOnly=e}get localState(){return this.sharedModel.awareness.getLocalState()}get clientStateChanged(){return this._clientStateChanged}get sharedOptionsChanged(){return this.sharedModel.optionsChanged}get sharedLayersChanged(){return this.sharedModel.layersChanged}get sharedLayerTreeChanged(){return this.sharedModel.layerTreeChanged}get sharedSourcesChanged(){return this.sharedModel.sourcesChanged}get disposed(){return this._disposed}get sharedMetadataChanged(){return this._sharedMetadataChanged}get zoomToPositionSignal(){return this._zoomToPositionSignal}set isIdentifying(e){this._isIdentifying=e}get isIdentifying(){return this._isIdentifying}set isTemporalControllerActive(e){this._isTemporalControllerActive=e}get isTemporalControllerActive(){return this._isTemporalControllerActive}centerOnPosition(e){this._zoomToPositionSignal.emit(e)}_metadataChangedHandler(e,t){this._sharedMetadataChanged.emit(t)}addMetadata(e,t){this.sharedModel.setMetadata(e,t)}removeMetadata(e){this.sharedModel.removeMetadata(e)}dispose(){this._isDisposed||(this._isDisposed=!0,this._sharedModel.dispose(),this._disposed.emit(),s.Signal.clearData(this))}toString(){return JSON.stringify(this.getContent(),null,2)}fromString(e){const t=JSON.parse(e),r=(new(i())).compile(h);if(!r(t)){let e="JupyterGIS format errors:\n";for(const t of r.errors||[])e=`${e}- ${t.instancePath} ${t.message}\n`;console.warn(e)}this.sharedModel.transact(()=>{var e,r,s,a,i;this.sharedModel.sources=null!==(e=t.sources)&&void 0!==e?e:{},this.sharedModel.layers=null!==(r=t.layers)&&void 0!==r?r:{},this.sharedModel.layerTree=null!==(s=t.layerTree)&&void 0!==s?s:[],this.sharedModel.options=null!==(a=t.options)&&void 0!==a?a:{latitude:0,longitude:0,zoom:0,bearing:0,pitch:0,projection:"EPSG:3857"},this.sharedModel.metadata=null!==(i=t.metadata)&&void 0!==i?i:{}}),this.dirty=!0}toJSON(){return JSON.parse(this.toString())}fromJSON(e){}initialize(){}getWorker(){return g.worker}getContent(){return{sources:this.sharedModel.sources,layers:this.sharedModel.layers,layerTree:this.sharedModel.layerTree,options:this.sharedModel.options,metadata:this.sharedModel.metadata}}get contentsManager(){return this._contentsManager}set contentsManager(e){this._contentsManager=e}get filePath(){return this._filePath}set filePath(e){this._filePath=e,this._pathChanged.emit(e)}getLayers(){return this.sharedModel.layers}getSources(){return this.sharedModel.sources}getLayerTree(){return this.sharedModel.layerTree}getLayer(e){return this.sharedModel.getLayer(e)}getSource(e){return this.sharedModel.getLayerSource(e)}getSourcesByType(e){const t={};for(const r of Object.keys(this.getSources()||{})){const s=this.getSource(r);(null==s?void 0:s.type)===e&&(t[r]=s.name)}return t}getLayersBySource(e){const t=[];return Object.entries(this.getLayers()||{}).forEach(([r,s])=>{var a;(null===(a=s.parameters)||void 0===a?void 0:a.source)===e&&t.push(r)}),t}addGroup(e,t,r){if(u.findItemPath(this.getLayerTree(),e).length)return void console.warn(`The group "${t}" already exist in the layer tree`);const s={name:e,layers:[]};this._addLayerTreeItem(s,t,r)}addLayer(e,t,r,s){this.getLayer(e)||this.sharedModel.addLayer(e,t),this._addLayerTreeItem(e,r,s)}removeLayer(e){var t;const r=this._sharedModel.getLayer(e),s=null===(t=null==r?void 0:r.parameters)||void 0===t?void 0:t.source;this._removeLayerTreeLayer(this.getLayerTree(),e),this.sharedModel.removeLayer(e),this.sharedModel.removeSource(s)}setOptions(e){this._sharedModel.options=e}getOptions(){return this._sharedModel.options}syncViewport(e,t){this.sharedModel.awareness.setLocalStateField("viewportState",{value:e,emitter:t})}syncPointer(e,t){this.sharedModel.awareness.setLocalStateField("pointer",{value:e,emitter:t})}syncSelected(e,t){this.sharedModel.awareness.setLocalStateField("selected",{value:e,emitter:t})}syncIdentifiedFeatures(e,t){this.sharedModel.awareness.setLocalStateField("identifiedFeatures",{value:e,emitter:t})}setUserToFollow(e){this._sharedModel&&this._sharedModel.awareness.setLocalStateField("remoteUser",e)}getClientId(){return this.sharedModel.awareness.clientID}_addLayerTreeItem(e,t,r){if(t){const s=this._getLayerTreeInfo(t);s&&(s.workingGroup.layers.splice(null!=r?r:s.workingGroup.layers.length,0,e),this._sharedModel.updateLayerTreeItem(s.mainGroupIndex,s.mainGroup))}else this.sharedModel.addLayerTreeItem(null!=r?r:this.getLayerTree().length,e)}moveItemsToGroup(e,t,r){const s=this.getLayerTree();for(const a of e)if(this.getLayer(a))this._removeLayerTreeLayer(s,a),this._addLayerTreeItem(a,t,r);else{const e=this._getLayerTreeInfo(a);if(void 0===e)continue;const i=Object.assign({},e.workingGroup);this._removeLayerTreeGroup(s,a),this._addLayerTreeItem(i,t,r)}}moveItemRelatedTo(e,t,r){var s;const a=this.getLayerTree();let i;if(this.getLayer(e))this._removeLayerTreeLayer(a,e),i=e;else{const t=this._getLayerTreeInfo(e);if(void 0===t)return;i=Object.assign({},t.workingGroup),this._removeLayerTreeGroup(a,e)}const o=u.findItemPath(a,t),n=(null!==(s=o.pop())&&void 0!==s?s:0)+(r?1:0);let d="",l=o.shift();if(void 0!==l){let e=a[l];for(;o.length&&(l=o.shift(),void 0!==l);)e=e.layers[l];d=e.name}this._addLayerTreeItem(i,d,n)}addNewLayerGroup(e,t){const r=this.getLayerTree();for(const t in e)this._removeLayerTreeLayer(r,t);this._addLayerTreeItem(t)}_removeLayerTreeLayer(e,t){this._removeLayerTreeItem(e,t,!0),this.sharedModel.layerTree=e}_removeLayerTreeGroup(e,t){this._removeLayerTreeItem(e,t,!1),this.sharedModel.layerTree=e}_removeLayerTreeItem(e,t,r){for(let s=0;s<e.length;s++){const a=e[s];(r?"string"==typeof a&&a===t:"string"!=typeof a&&a.name===t)?(e.splice(s,1),s--):"string"!=typeof a&&"layers"in a&&this._removeLayerTreeItem(a.layers,t,r)}}renameLayerGroup(e,t){const r=this._getLayerTreeInfo(e);r?(r.workingGroup.name=t,this._sharedModel.updateLayerTreeItem(r.mainGroupIndex,r.mainGroup)):console.log("Something went wrong when renaming layer")}removeLayerGroup(e){const t=this.getLayerTree(),r=this._getLayerTreeInfo(e),s=function e(t,r){const s=[];for(const a of t)if("string"==typeof a)s.push(a);else if(a.name!==r){const t=e(a.layers,r);s.push(Object.assign(Object.assign({},a),{layers:t}))}return s}(t,e);r&&this._sharedModel.updateLayerTreeItem(r.mainGroupIndex,s[r.mainGroupIndex])}toggleIdentify(){this._isIdentifying=!this._isIdentifying}toggleTemporalController(){this._isTemporalControllerActive=!this._isTemporalControllerActive,this.sharedModel.awareness.setLocalStateField("isTemporalControllerActive",this._isTemporalControllerActive)}_getLayerTreeInfo(e){const t=this.getLayerTree(),r=u.findItemPath(t,e);if(!r.length)return void console.warn(`The group "${e}" does not exist in the layer tree`);const s=r.shift();if(void 0===s)return;const a=t[s];let i=a;for(;r.length;){const e=r.shift();if(void 0===e)break;i=i.layers[e]}return{mainGroup:a,workingGroup:i,mainGroupIndex:s}}get addFeatureAsMsSignal(){return this._addFeatureAsMsSignal}get updateLayerSignal(){return this._updateLayerSignal}get geolocation(){return this._geolocation}set geolocation(e){this._geolocation=e,this.geolocationChanged.emit(this.geolocation)}get geolocationChanged(){return this._geolocationChanged}}var u;!function(e){e.getOrderedLayerIds=function(e){return u.layerTreeRecursion(e.sharedModel.layerTree)}}(g||(g={})),function(e){e.layerTreeRecursion=function e(t,r=[]){for(const s of t)"string"==typeof s?r.push(s):r.push(...e(s.layers));return r},e.findItemPath=function e(t,r,s=[]){for(let a=0;a<t.length;a++){const i=t[a];if("string"==typeof i){if(i===r){const e=[...s];return e.push(a),e}}else{const t=[...s];if(t.push(a),i.name===r)return t;const o=e(i.layers,r,t);if(o.length>t.length)return o}}return s}}(u||(u={}));const y=new n.Token("jupyterGISDocTracker"),c=new n.Token("jupytergisFormSchemaRegistry"),p=new n.Token("jupytergisExternalCommandRegistry"),m=new n.Token("jupytergisExternalCommandRegistry"),_=new n.Token("jupytergisAnnotationModel"),S={vector:"vector"},f=JSON.parse('[{"description":"Buffer","name":"buffer","label":"Buffer","operationParams":["bufferDistance"],"operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Union(ST_Buffer(geometry, {bufferDistance})) AS geometry, * FROM \\"{layerName}\\""},"type":"vector"},{"description":"ConcaveHull","name":"concaveHull","operationParams":["pctconvex","allowHoles"],"label":"Concave Hull","operations":{"sql":"SELECT ST_ConcaveHull(geometry,{pctconvex},{allowHoles}) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"},{"description":"Centroids","name":"centroids","operationParams":[],"label":"Centroids","operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Centroid(geometry) AS geometry, * FROM \\"{layerName}\\""},"type":"vector"},{"description":"ConvexHull","name":"convexHull","operationParams":[],"label":"Convex Hull","operations":{"sql":"SELECT ST_ConvexHull(geometry) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"},{"description":"Dissolve","name":"dissolve","operationParams":["dissolveField"],"label":"Dissolve","operations":{"gdalFunction":"ogr2ogr","sql":"SELECT ST_Union(geometry) AS geometry, {dissolveField} FROM \\"{layerName}\\" GROUP BY {dissolveField}"},"type":"vector"},{"description":"BoundingBoxes","name":"boundingBoxes","operationParams":[],"label":"Bounding Boxes","operations":{"sql":"SELECT ST_Envelope(geometry) AS geometry, * FROM \\"{layerName}\\"","gdalFunction":"ogr2ogr"},"type":"vector"}]'),T={};for(const e of f)T[e.name]=`jupytergis:${e.name}`;const v=["Buffer","ConcaveHull","Centroids","ConvexHull","Dissolve","BoundingBoxes"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_jupytergis_jupytergis_core=self.webpackChunk_jupytergis_jupytergis_core||[]).push([[432],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},34296:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(36758),o=n.n(r),a=n(40935),s=n.n(a)()(o());s.push([e.id,"/*\n See the JupyterLab Developer Guide for useful CSS Patterns:\n\n https://jupyterlab.readthedocs.io/en/stable/developer/css.html\n*/\n\njp-toolbar.jpcad-toolbar-widget .jp-MenuBar-anonymousIcon {\n position: unset !important;\n}\n",""]);const i=s},36758:e=>{e.exports=function(e){return e[1]}},40935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var p=[].concat(e[u]);r&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},51432:(e,t,n)=>{var r=n(72591),o=n.n(r),a=n(1740),s=n.n(a),i=n(88128),c=n.n(i),u=n(30855),p=n.n(u),l=n(93051),d=n.n(l),f=n(73656),v=n.n(f),h=n(34296),m={};m.styleTagTransform=v(),m.setAttributes=p(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=d(),o()(h.A,m),h.A&&h.A.locals&&h.A.locals},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],i=0;i<e.length;i++){var c=e[i],u=r.base?c[0]+r.base:c[0],p=a[u]||0,l="".concat(u," ").concat(p);a[u]=p+1;var d=n(l),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var v=o(f,r);r.byIndex=i,t.splice(i,0,{identifier:l,updater:v,references:1})}s.push(l)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var i=n(a[s]);t[i].references--}for(var c=r(e,o),u=0;u<a.length;u++){var p=n(a[u]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}a=c}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}}]);
|