graphdb-workbench 2.7.0-TR11 → 2.7.0-TR13

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.
Files changed (95) hide show
  1. package/dist/146.82aaae7c0f15a190b692.bundle.js +1 -1
  2. package/dist/159.28ac45f73b8489adb7b9.bundle.js +1 -0
  3. package/dist/16.96c2dd100f026a4e4ee8.bundle.js +1 -1
  4. package/dist/{164.d963de6f52d33f8a14b9.bundle.js → 164.6eab6e73fcff8c9a8158.bundle.js} +1 -1
  5. package/dist/27.f979984f701cd7d90a09.bundle.js +1 -1
  6. package/dist/{279.250142e88e7bc64b10e3.bundle.js → 279.de4891887c2b68f8df44.bundle.js} +1 -1
  7. package/dist/28.9cc2b0769a41c49847bd.bundle.js +1 -1
  8. package/dist/29.936102485048579895ba.bundle.js +1 -1
  9. package/dist/297.1bdc6a3832d57eb81bac.bundle.js +1 -1
  10. package/dist/299.282284f1dfdae76e16e8.bundle.js +1 -1
  11. package/dist/300.50b90ddcd4a3e62127bf.bundle.js +1 -1
  12. package/dist/301.103a2b39a148c9635b34.bundle.js +1 -1
  13. package/dist/{31.7b3b1415e9c1ff633dc8.bundle.js → 31.06ca900e11de820e1c0d.bundle.js} +1 -1
  14. package/dist/{321.9bd901a587359aa4ba86.bundle.js → 321.907b158fa887fad23a15.bundle.js} +1 -1
  15. package/dist/329.9cce24674845ac56ceae.bundle.js +1 -1
  16. package/dist/42.ef4ef5d14a8edc140ea2.bundle.js +1 -1
  17. package/dist/43.00e4cff130791afba6f0.bundle.js +1 -0
  18. package/dist/8.bc3b17f87a3a877d9924.bundle.js +1 -0
  19. package/dist/{bundle.0e9d77f1ed03445785ec.bundle.js → bundle.a905ff95bc0b01b69c69.bundle.js} +2 -2
  20. package/dist/css/lib/ontotext-yasgui-web-component.css +5 -0
  21. package/dist/index.html +3 -3
  22. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  23. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  24. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  25. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  26. package/dist/js/angular/import/templates/settingsModal.html +1 -1
  27. package/dist/js/angular/security/templates/user.html +1 -1
  28. package/dist/license-checker.json +4 -4
  29. package/dist/pages/aclmanagement.html +2 -2
  30. package/dist/pages/autocomplete.html +1 -1
  31. package/dist/pages/choose-repository-type.html +1 -1
  32. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  33. package/dist/pages/create-index.html +1 -1
  34. package/dist/pages/dependencies.html +1 -1
  35. package/dist/pages/domainRangeInfo.html +2 -2
  36. package/dist/pages/edit.html +1 -1
  37. package/dist/pages/explore.html +1 -1
  38. package/dist/pages/export.html +1 -1
  39. package/dist/pages/find.html +1 -1
  40. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  41. package/dist/pages/graphs-visualizations.html +7 -7
  42. package/dist/pages/guides.html +1 -1
  43. package/dist/pages/import.html +2 -2
  44. package/dist/pages/jdbc-create.html +1 -1
  45. package/dist/pages/monitor/backup-and-restore.html +1 -1
  46. package/dist/pages/monitor/queries.html +1 -1
  47. package/dist/pages/monitor/resources.html +1 -1
  48. package/dist/pages/namespaces.html +2 -2
  49. package/dist/pages/plugins.html +1 -1
  50. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  51. package/dist/pages/rdfrank.html +2 -2
  52. package/dist/pages/repositories.html +1 -1
  53. package/dist/pages/repository.html +1 -1
  54. package/dist/pages/similarity-indexes.html +1 -1
  55. package/dist/pages/sparql-editor.html +1 -1
  56. package/dist/pages/sparql-template-create.html +1 -1
  57. package/dist/pages/ux-test1.html +2 -2
  58. package/dist/pages/webapi.html +2 -2
  59. package/dist/res/swagger5/README.md +3 -0
  60. package/dist/res/swagger5/css/onto-theme.css +141 -0
  61. package/dist/res/swagger5/index.css +0 -141
  62. package/dist/res/swagger5/index.html +12 -31
  63. package/dist/res/swagger5/swagger-ui-bundle.js +1 -2
  64. package/dist/res/swagger5/swagger-ui-bundle.js.map +1 -1
  65. package/dist/res/swagger5/swagger-ui-es-bundle-core.js +2 -2
  66. package/dist/res/swagger5/swagger-ui-es-bundle-core.js.map +1 -1
  67. package/dist/res/swagger5/swagger-ui-es-bundle.js +1 -2
  68. package/dist/res/swagger5/swagger-ui-es-bundle.js.map +1 -1
  69. package/dist/res/swagger5/swagger-ui-standalone-preset.js +1 -2
  70. package/dist/res/swagger5/swagger-ui-standalone-preset.js.map +1 -1
  71. package/dist/res/swagger5/swagger-ui.css +2 -2
  72. package/dist/res/swagger5/swagger-ui.css.map +1 -1
  73. package/dist/res/swagger5/swagger-ui.js +2 -2
  74. package/dist/res/swagger5/swagger-ui.js.map +1 -1
  75. package/package.json +2 -2
  76. package/dist/159.47f878c5481c4e032dff.bundle.js +0 -1
  77. package/dist/43.59200054efbd58d38667.bundle.js +0 -1
  78. package/dist/8.4f5879bf6d5064e778c3.bundle.js +0 -1
  79. package/dist/res/swagger5/lib/backbone-min.js +0 -15
  80. package/dist/res/swagger5/lib/es5-shim.js +0 -2065
  81. package/dist/res/swagger5/lib/handlebars.min-v4.7.3.js +0 -29
  82. package/dist/res/swagger5/lib/highlight.9.1.0.pack.js +0 -2
  83. package/dist/res/swagger5/lib/highlight.9.1.0.pack_extended.js +0 -34
  84. package/dist/res/swagger5/lib/jquery-3.4.1.min.js +0 -2
  85. package/dist/res/swagger5/lib/jquery-migrate-1.4.1.min.js +0 -2
  86. package/dist/res/swagger5/lib/jquery.ba-bbq.min.js +0 -18
  87. package/dist/res/swagger5/lib/jquery.slideto.min.js +0 -1
  88. package/dist/res/swagger5/lib/jquery.wiggle.min.js +0 -8
  89. package/dist/res/swagger5/lib/js-yaml.min.js +0 -3
  90. package/dist/res/swagger5/lib/jsoneditor.min.js +0 -11
  91. package/dist/res/swagger5/lib/lodash.min.js +0 -102
  92. package/dist/res/swagger5/lib/marked.js +0 -1272
  93. package/dist/res/swagger5/lib/object-assign-pollyfill.js +0 -23
  94. package/dist/res/swagger5/lib/sanitize-html.min.js +0 -6
  95. package/dist/res/swagger5/lib/swagger-oauth.js +0 -347
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench",
3
- "version": "2.7.0-TR11",
3
+ "version": "2.7.0-TR13",
4
4
  "description": "The web application for GraphDB APIs",
5
5
  "scripts": {
6
6
  "build": "webpack --config=webpack.config.prod.js",
@@ -107,7 +107,7 @@
107
107
  "ng-file-upload": "^12.2.13",
108
108
  "ng-tags-input": "^3.2.0",
109
109
  "oclazyload": "^1.1.0",
110
- "ontotext-yasgui-web-component": "1.3.9",
110
+ "ontotext-yasgui-web-component": "1.3.10",
111
111
  "shepherd.js": "^11.2.0"
112
112
  },
113
113
  "resolutions": {
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[159],{98:function(s,n,a){"use strict";a.r(n),a.d(n,"ImportParsingSettings",(function(){return t}));class t{constructor(){this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[43,159,161,163],{125:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResource",(function(){return n}));var r=s(66),i=s(98),o=s(81);class n{constructor(t){this.name=t?t.name:void 0,this.status=t?t.status:r.ImportResourceStatus.NONE,this.message=t&&t.message?t.message:"",this.context=t&&t.context?t.context:"",this.replaceGraphs=t?t.replaceGraphs:[],this.baseURI=t?t.baseURI:void 0,this.forceSerial=!!t&&t.forceSerial,this.type=t?t.type:void 0,this.format=t?t.format:void 0,this.data=t?t.data:void 0,this.modifiedOn=t?t.lastModified:void 0,this.importedOn=t?t.imported:void 0,this.size=t?t.size:"",this.addedStatements=t?t.addedStatements:0,this.removedStatements=t?t.removedStatements:0,this.numReplacedGraphs=t?t.numReplacedGraphs:0,this.contextLink=t?t.contextLink:void 0,this.parserSettings=t?t.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=t?t.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},66:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceStatus",(function(){return r}));const r={NONE:"NONE",UPLOADING:"UPLOADING",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},81:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportResourceType",(function(){return r}));const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},98:function(t,e,s){"use strict";s.r(e),s.d(e,"ImportParsingSettings",(function(){return r}));class r{constructor(){this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[8,31,43,71,72,73,75,142,143,144,145,150,158,159,161,162,163,165,166,250,267,269,272],{101:function(e,t,r){"use strict";r.r(t),r.d(t,"FileUtils",(function(){return s}));class s{static convertBytesToMegabytes(e){return Math.floor(e/1048576)}static getFilenameAndExtension(e){const t=e.lastIndexOf(".");return{filename:e.substring(0,t),extension:e.substring(t+1)}}}},102:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportResourceTreeElement",(function(){return s}));class s{constructor(){this.importResource=void 0,this.parent=void 0,this.partialSelected=!1,this.indent=0,this.isImportable=!1,this.hasOngoingImport=!1,this.hasStatusInfo=!1,this.canResetStatus=!1,this.name="",this.shortenedName="",this.path="",this.shortenedContext="",this.selected=!1,this.directories=[],this.files=[],this.isImportedBiggerThanModified=!1,this.isModifiedBiggerThanImported=!1,this.isEditable=!1,this.iconClass=""}addResource(e){if(e.isFile())this.files.push(e);else{if(!e.isDirectory())throw new Error("Unsupported resource type!");this.directories.push(e)}}getOrCreateDirectory(e){let t=this.directories.find(t=>t.name===e);return t||(t=new s,t.name=e,this.directories.push(t)),t}getRoot(){return this.isRoot()?this:this.parent.getRoot()}isRoot(){return void 0===this.parent}isDirectory(){return this.importResource.isDirectory()}isFile(){return!this.isRoot()&&this.importResource.isFile()}isEmpty(){return 0===this.directories.length&&0===this.files.length}toList(){const e=[];return this.parent&&e.push(this),this.directories.forEach(t=>{e.push(...t.toList())}),e.push(...this.files),e}setSelection(e,t=!0){this.selected=e,this.files.forEach(t=>t.setSelection(e,!1)),this.directories.forEach(t=>t.setSelection(e,!1)),t&&this.getRoot().updateSelectionState()}updateSelectionState(){if(this.directories.forEach(e=>e.updateSelectionState()),this.parent&&this.isDirectory()){const e=this.hasUnselectedChildren(),t=this.hasSelectedChildren();this.selected=t&&!e,this.partialSelected=t&&e}}hasUnselectedChildren(){return this.files.some(e=>!e.selected)||this.directories.some(e=>!e.selected||e.hasUnselectedChildren())}hasSelectedChildren(){return this.files.some(e=>e.selected)||this.directories.some(e=>e.selected||e.hasSelectedChildren())}selectAllWithStatus(e){this.importResource&&e.indexOf(this.importResource.status)>-1&&(this.selected=!0),this.files.forEach(t=>t.selectAllWithStatus(e)),this.directories.forEach(t=>t.selectAllWithStatus(e))}getAllSelected(){const e=[];return!this.isRoot()&&this.selected&&e.push(this),this.files.forEach(t=>e.push(...t.getAllSelected())),this.directories.forEach(t=>e.push(...t.getAllSelected())),_.cloneDeep(e)}deselectAll(){this.files.forEach(e=>e.deselectAll()),this.directories.forEach(e=>e.deselectAll()),this.selected=!1,this.partialSelected=!1}getAllSelectedFiles(){const e=[];return!this.isRoot()&&this.selected&&e.push(this.importResource),this.files.forEach(t=>e.push(...t.getAllSelectedFiles())),e}getAllSelectedFilesNames(){return this.getAllSelectedFiles().map(e=>e.name)}getResourceByName(e){if(this.importResource&&this.importResource.name===e)return this;const t=this.files.find(t=>t.importResource.name===e);if(t)return t;for(const t of this.directories){const r=t.getResourceByName(e);if(r)return r}return null}hasTextInResourcesName(e){return!!this.importResource.name.toLowerCase().includes(e.toLowerCase())||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e)))}hasTextInDirectoriesName(e){return!(!this.isDirectory()||!this.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInDirectoriesName(e))}hasTextInFilesName(e){return!(!this.isFile()||!this.name.toLowerCase().includes(e.toLowerCase()))||(!!this.files.some(t=>t.importResource.name.toLowerCase().includes(e.toLowerCase()))||this.directories.some(t=>t.hasTextInFilesName(e)))}sort(e){this.directories.sort(e),this.files.sort(e),this.directories.forEach(t=>t.sort(e))}}},103:function(e,t,r){"use strict";r.r(t),r.d(t,"SortingType",(function(){return s}));const s={NAME:"NAME",SIZE:"SIZE",MODIFIED:"MODIFIED",IMPORTED:"IMPORTED",CONTEXT:"CONTEXT"}},124:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportViewPersistence",(function(){return s}));class s{constructor(e={}){this._isHelpVisible=void 0===e.isHelpVisible||e.isHelpVisible}get isHelpVisible(){return this._isHelpVisible}set isHelpVisible(e){this._isHelpVisible=e}toggleHelpVisibility(){this._isHelpVisible=!this._isHelpVisible}toJSON(){return{isHelpVisible:this._isHelpVisible}}}},125:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportResource",(function(){return n}));var s=r(66),i=r(98),o=r(81);class n{constructor(e){this.name=e?e.name:void 0,this.status=e?e.status:s.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.contextLink=e?e.contextLink:void 0,this.parserSettings=e?e.parserSettings:new i.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return o.ImportResourceType.DIRECTORY===this.type}isFile(){return o.ImportResourceType.FILE===this.type||o.ImportResourceType.URL===this.type||o.ImportResourceType.TEXT===this.type}isURL(){return o.ImportResourceType.URL===this.type}isText(){return o.ImportResourceType.TEXT===this.type}}},190:function(e,t){angular.module("graphdb.framework.rest.import.service",[]).factory("ImportRestService",s),s.$inject=["$http"];const r="rest/repositories";function s(e){return{getDefaultSettings:function(t){return e.get(`${r}/${t}/import/settings/default`)},getUploadedFiles:function(t){return e.get(`${r}/${t}/import/upload`)},getServerFiles:function(t){return e.get(`${r}/${t}/import/server`)},importServerFiles:function(t,s){return e.post(`${r}/${t}/import/server`,s)},importTextSnippet:function(t,s){return e.post(`${r}/${t}/import/upload/text`,s)},updateTextSnippet:function(t,s){return e.post(`${r}/${t}/import/upload/update/text`,s)},importFromUrl:function(t,s){return e.post(`${r}/${t}/import/upload/url`,s)},updateFromUrl:function(t,s){return e.post(`${r}/${t}/import/upload/update/url`,s)},stopImport:function(t,s){return e.delete(`${r}/${t}/import/upload`,{params:s})},resetServerFileStatus:function(t,s,i=!0){return e({method:"DELETE",url:`${r}/${t}/import/server/status`,params:{remove:i},data:s,headers:{"Content-type":"application/json;charset=utf-8"}})},resetUserDataStatus:function(t,s,i=!0){return e({method:"DELETE",url:`${r}/${t}/import/upload/status`,params:{remove:i},data:s,headers:{"Content-type":"application/json;charset=utf-8"}})}}}},191:function(e,t,r){"use strict";r.r(t);var s=r(66);angular.module("graphdb.framework.rest.upload.service",[]).factory("UploadRestService",i),i.$inject=["$http","Upload","$translate"];function i(e,t,r){return{createUploadPayload:function(e,r){let s;s=e.file?{file:e.file,importSettings:t.jsonBlob(r)}:{importSettings:t.jsonBlob(r)};return s},uploadUserDataFile:function(e,r,s){return t.upload({url:`rest/repositories/${e}/import/upload/file`,data:s}).progress(e=>i(e,r))},updateUserDataFile:function(e,r,s){return t.upload({url:`rest/repositories/${e}/import/upload/update/file`,data:s}).progress(e=>i(e,r))}};function i(e,t){if(t.file?(t.file=null,t.status=s.ImportResourceStatus.UPLOADING):t.status!==s.ImportResourceStatus.UPLOADING&&(t.status=s.ImportResourceStatus.PENDING),t.status===s.ImportResourceStatus.UPLOADING){const s=parseInt(100*e.loaded/e.total);t.message=r.instant("import.file.upload.progress",{progress:s})}}}},192:function(e,t,r){"use strict";r.r(t);var s=r(124);function i(e,t){const r=new s.ImportViewPersistence,i=()=>{let i=e.get(t.IMPORT_VIEW);return i||(i=r),new s.ImportViewPersistence(i)};return{initImportViewSettings:()=>{e.get(t.IMPORT_VIEW)||e.set(t.IMPORT_VIEW,r)},getImportViewSettings:i,toggleHelpVisibility:()=>{const r=i();r.toggleHelpVisibility(),e.set(t.IMPORT_VIEW,r.toJSON())},setHelpVisibility:r=>{const s=i();s.isHelpVisible=r,e.set(t.IMPORT_VIEW,s.toJSON())}}}angular.module("graphdb.framework.import.services.importviewstorageservice",[]).factory("ImportViewStorageService",i),i.$inject=["LocalStorageAdapter","LSKeys"]},193:function(e,t,r){"use strict";r.r(t);var s=r(97);function i(e,t,r,i){let o=!0;e.isHelpVisible=!0,e.fileSizeLimitInfoTemplateUrl="js/angular/import/templates/fileSizeLimitInfo.html",e.openTab=e=>{i.updateActiveTabId(e)},e.toggleHelp=()=>{const t=r.getImportViewSettings();r.toggleHelpVisibility(),e.isHelpVisible=!t.isHelpVisible};const n=[];n.push(i.onActiveTabIdUpdated(r=>{e.activeTabId=r,t.hash(e.activeTabId)})),n.push(i.onFilesUpdated(t=>{o&&0===t.length&&(r.setHelpVisibility(!0),o=!1);const s=r.getImportViewSettings();let i=s.isHelpVisible;0===t.length&&s.isHelpVisible?i=!0:0!==t.length||s.isHelpVisible?s.isHelpVisible?i=!0:s.isHelpVisible||(i=!1):i=!1,r.setHelpVisibility(i),e.isHelpVisible=i}));e.$on("$destroy",()=>n.forEach(e=>e()));const a=t.hash()||s.TABS.USER;e.openTab(a)}angular.module("graphdb.framework.impex.import.controllers.tab",[]).controller("TabController",i),i.$inject=["$scope","$location","ImportViewStorageService","ImportContextService"]},194:function(e,t){function r(e,t,r,s,i,o,n,a,l){e.settings=i,e.hasParserSettings=o,e.isMultiple=a,e.enableReplace=!(!e.settings.replaceGraphs||!e.settings.replaceGraphs.length),e.showAdvancedSettings=!1,e.hasError=function(e,t){return _.find(e,(function(e){return t===e.$name}))},e.ok=function(){e.settingsForm.replaceGraph.$setValidity("replaceGraph",!0),e.settingsForm.$valid&&(c(),t.close(e.settings))},e.cancel=function(){c(),t.dismiss(e.settings)},e.reset=function(){e.settings=_.cloneDeep(n),e.target="data"},e.addReplaceGraph=function(t){let i=!0;"default"!==t&&(i=s.isValidIri(t,t.toString())),e.settingsForm.replaceGraph.$setTouched(),e.settingsForm.replaceGraph.$setValidity("replaceGraph",i),e.settingsForm.replaceGraph.$valid&&(e.settings.replaceGraphs=e.settings.replaceGraphs||[],-1===_.indexOf(e.settings.replaceGraphs,t)?(e.replaceGraph="",e.settings.replaceGraphs.push(t)):r.warning(l.instant("import.graph.already.in.list")))},e.checkEnterReplaceGraph=function(t,r){13===t.keyCode&&(t.preventDefault(),e.addReplaceGraph(r))},e.switchParserSettings=function(){e.showAdvancedSettings=!e.showAdvancedSettings};const c=function(){"default"===e.target?e.settings.context="default":"data"===e.target&&(e.settings.context=""),e.enableReplace?"default"!==e.target&&"named"!==e.target||(e.settings.replaceGraphs=[e.settings.context]):e.settings.replaceGraphs=[]};e.settings.context?"default"===e.settings.context?(e.target="default",e.settings.context=""):e.target="named":e.target="data"}angular.module("graphdb.framework.impex.import.controllers.settings-modal",[]).controller("SettingsModalController",r),r.$inject=["$scope","$uibModalInstance","toastr","UriUtils","settings","hasParserSettings","defaultSettings","isMultiple","$translate"]},195:function(e,t){function r(e,t){e.importFormat={name:"Auto",type:""},e.startImport=!0,e.cancel=function(){t.dismiss()},e.ok=function(){t.close({url:e.dataUrl,format:e.importFormat.type,startImport:e.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-url",[]).controller("ImportUrlController",r),r.$inject=["$scope","$uibModalInstance","toastr"]},196:function(e,t){function r(e,t,r,s){e.importFormats=[{name:"RDF/JSON",type:"application/rdf+json"},{name:"JSON-LD",type:"application/ld+json"},{name:"NDJSON-LD",type:"application/x-ld+ndjson"},{name:"RDF/XML",type:"application/rdf+xml"},{name:"N3",type:"text/rdf+n3"},{name:"N-Triples",type:"text/plain"},{name:"N-Quads",type:"text/x-nquads"},{name:"Turtle",type:"text/turtle"},{name:"Turtle*",type:"application/x-turtlestar"},{name:"TriX",type:"application/trix"},{name:"TriG",type:"application/x-trig"},{name:"TriG*",type:"application/x-trigstar"}],e.rdfText=r,e.importFormat=e.importFormats.find(e=>e.type===s),e.startImport=!0,e.sizeLimit=4e3,e.setFormat=t=>{e.importFormat=t},e.cancel=()=>{t.dismiss()},e.ok=()=>{t.close({text:e.rdfText,format:e.importFormat.type,startImport:e.startImport})}}angular.module("graphdb.framework.impex.import.controllers.import-text-snippet",[]).controller("ImportTextSnippetController",r),r.$inject=["$scope","$uibModalInstance","text","format"]},197:function(e,t,r){"use strict";r.r(t);var s=r(0);function i(e,t,r,i,o){e.message=i.trustAsHtml(Object(s.decodeHTML)(r.instant("import.user_data.duplicates_confirmation.message",{duplicatedFiles:o}))),e.cancel=()=>{t.dismiss()},e.keepBoth=()=>{t.close({overwrite:!1})},e.overwrite=()=>{t.close({overwrite:!0})}}angular.module("graphdb.framework.impex.import.controllers.file-override-confirmation",[]).controller("FileOverrideConfirmationController",i),i.$inject=["$scope","$uibModalInstance","$translate","$sce","duplicatedFiles"]},198:function(e,t,r){"use strict";r.r(t),r.d(t,"FILE_FORMATS",(function(){return s})),r.d(t,"FileFormats",(function(){return i}));const s=["ttl","ttls","rdf","rj","n3","nt","nq","trig","trigs","trix","brf","owl","jsonld","xml","rdfs","ndjsonld","ndjson","jsonl"];class i{static getGZS(){return s.map(e=>`.${e}.gz`)}static getBasics(){return s.map(e=>"."+e)}static getFileFormatsExtended(){return[...this.getGZS(),...this.getBasics(),".zip"].join(", ")}static getFileFormatsHuman(){return[...this.getBasics()].join(" ")}static getTextFileFormatsHuman(){return this.getBasics().filter(e=>".brf"!==e).join(" ")}}},199:function(e,t,r){"use strict";r.r(t),r.d(t,"DateUtils",(function(){return s}));class s{static formatCurrentDateTime(){const e=new Date;return e.getFullYear()+"-"+_.padStart(e.getMonth()+1,2,"0")+"-"+_.padStart(e.getDate(),2,"0")+" "+_.padStart(e.getHours(),2,"0")+":"+_.padStart(e.getMinutes(),2,"0")+":"+_.padStart(e.getSeconds(),2,"0")+"."+_.padStart(e.getMilliseconds(),3,"0")}}},200:function(e,t,r){"use strict";r.r(t),r.d(t,"toImportResource",(function(){return a})),r.d(t,"INDENT",(function(){return l})),r.d(t,"toImportUserDataResource",(function(){return u})),r.d(t,"toImportServerResource",(function(){return d}));var s=r(102),i=r(125),o=r(66),n=r(81);const a=e=>e.map(e=>new i.ImportResource(e)),l=30,c=new Map;c.set(n.ImportResourceType.DIRECTORY,"icon-folder"),c.set(n.ImportResourceType.FILE,"icon-file");const p=new Map;p.set(n.ImportResourceType.DIRECTORY,"icon-folder"),p.set(n.ImportResourceType.FILE,"icon-upload"),p.set(n.ImportResourceType.URL,"icon-link"),p.set(n.ImportResourceType.TEXT,"icon-sparql");const u=e=>{const t=new s.ImportResourceTreeElement;return e.toSorted((e,t)=>t.modifiedOn-e.modifiedOn).forEach(e=>{m(t,e).iconClass=p.get(e.type)}),h(t),I(t),t},d=e=>{const t=new s.ImportResourceTreeElement;return e.forEach(e=>{m(t,e).iconClass=c.get(e.type)}),h(t),I(t),t},m=(e,t)=>{const r=g(t);let i;i=t.isDirectory()?r:r.slice(0,r.length-1);const o=f(e,i);if(t.isFile()){const e=new s.ImportResourceTreeElement;return e.parent=o,e.importResource=t,e.path=r.join("/"),e.name=r[r.length-1],o.addResource(e),e}return o.importResource=t,o},f=(e,t)=>{let r=e;return t.forEach(e=>{const t=r.getOrCreateDirectory(e);t.parent=r,r=t}),r},g=e=>{if(e.isURL())return[e.name];const t=/[/\\]/;return t.test(e.name)?e.name.split(t):[e.name]},h=e=>{e.indent=8+b(e)*l+"px",e.directories.forEach(e=>h(e)),e.files.forEach(e=>h(e))},I=e=>{e.isRoot()||(e.isImportable=y(e.importResource),e.hasOngoingImport=v(e.importResource),e.canResetStatus=T(e.importResource),e.hasStatusInfo="DONE"===e.importResource.status||"ERROR"===e.importResource.status,e.isEditable=e.importResource.isText(),R(e),S(e),F(e)),e.directories.forEach(e=>I(e)),e.files.forEach(e=>I(e))},R=e=>{const t=e.importResource?e.importResource.context:"";t.length>63&&(e.shortenedContext=t.substring(0,30)+"..."+t.substring(t.length-30))},S=e=>{const t=e.name||"";t.length>123&&(e.shortenedName=t.substring(0,30)+"..."+t.substring(t.length-30))},F=e=>{const t=e.importResource;if(t){if(0===t.importedOn||0===t.modifiedOn||t.importedOn===t.modifiedOn)return;e.isImportedBiggerThanModified=t.importedOn>t.modifiedOn,e.isModifiedBiggerThanImported=!e.isImportedBiggerThanModified}},y=e=>e.isFile()&&e.status!==o.ImportResourceStatus.IMPORTING&&e.status!==o.ImportResourceStatus.UPLOADING&&e.status!==o.ImportResourceStatus.PENDING&&e.status!==o.ImportResourceStatus.INTERRUPTING,v=e=>e.status===o.ImportResourceStatus.IMPORTING||e.status===o.ImportResourceStatus.UPLOADING||e.status===o.ImportResourceStatus.PENDING||e.status===o.ImportResourceStatus.INTERRUPTING,T=e=>e.status===o.ImportResourceStatus.DONE||e.status===o.ImportResourceStatus.ERROR,b=e=>{let t=0;if(void 0===e.parent)return t;let r=e.parent;for(;r;)r=r.parent,t++;return t-1}},201:function(e,t,r){"use strict";r.r(t),r.d(t,"FilePrefixRegistry",(function(){return i}));var s=r(101);class i{constructor(){this.filesPrefixRegistry={}}buildPrefixesRegistry(e){e.filter(e=>"file"===e.type).forEach(e=>{const t=s.FileUtils.getFilenameAndExtension(e.name).filename,r=t.lastIndexOf("-");let i=r<0?0:t.substring(r+1),o=t.substring(0,r);if(r<0?(i=0,o=t):(i=t.substring(r+1),o=t.substring(0,r)),i){i=parseInt(i);const e=this.filesPrefixRegistry[o]||0;this.filesPrefixRegistry[o]=e<i?i:e}else this.filesPrefixRegistry[o]=0})}prefixDuplicates(e){return e.map(e=>{const{filename:t,extension:r}=s.FileUtils.getFilenameAndExtension(e.name),i=`${t}-${this.getIndexForFile(t)}.${r}`;return new File([e],i,{type:e.type,lastModified:e.lastModified})})}getIndexForFile(e){let t=this.filesPrefixRegistry[e];return void 0!==t?t++:t=0,this.filesPrefixRegistry[e]=t,t}}},241:function(e,t,r){"use strict";r.r(t);r(7),r(29),r(190),r(191);var s=r(97),i=(r(192),r(193),r(194),r(195),r(196),r(197),r(198)),o=r(70),n=r(101),a=r(199),l=r(200),c=r(102),p=r(0),u=r(201),d=r(103),m=r(66);const f=angular.module("graphdb.framework.impex.import.controllers",["ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.uriutils","graphdb.framework.guides.services","graphdb.framework.rest.import.service","graphdb.framework.rest.upload.service","graphdb.framework.import.services.importcontext","graphdb.framework.import.services.importviewstorageservice","graphdb.framework.impex.import.controllers.tab","graphdb.framework.impex.import.controllers.settings-modal","graphdb.framework.impex.import.controllers.import-url","graphdb.framework.impex.import.controllers.import-text-snippet","graphdb.framework.impex.import.controllers.file-override-confirmation"]),g="file",h="text",I="url";f.controller("ImportViewCtrl",["$scope","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","$translate","LicenseRestService","GuidesService","ModalService","ImportRestService","ImportContextService","ImportViewStorageService",function(e,t,r,a,u,m,f,g,h,I,R,S,F,y,v){const T=[];let b=null;e.files=[],e.fileChecked={},e.activeTabId=y.getActiveTabId(),e.selectedForImportFiles={},e.popoverTemplateUrl="settingsPopoverTemplate.html",e.fileFormatsExtended=i.FileFormats.getFileFormatsExtended(),e.fileFormatsHuman=i.FileFormats.getFileFormatsHuman()+h.instant("import.gz.zip"),e.textFileFormatsHuman=i.FileFormats.getTextFileFormatsHuman(),e.maxUploadFileSizeMB=0,e.SORTING_TYPES=d.SortingType,e.toTitleCase=e=>o.toTitleCase(e),e.pollList=()=>{b=r(()=>{e.updating||e.updateList(!1)},4e3)},e.setSettingsFor=(t,r,s,i=(()=>{}))=>{e.settingsFor=t,e.settings=w(t,r),""===t||"application/ld+json"===s||"application/x-ld+ndjson"===s||t.endsWith("jsonld")||t.endsWith("zip")||t.endsWith("gz")||"directory"===e.settings.type?(e.settings.hasContextLink=!0,e.defaultSettings.hasContextLink=!0):(e.settings.hasContextLink=!1,e.defaultSettings.hasContextLink=!1);const o={templateUrl:"js/angular/import/templates/settingsModal.html",controller:"SettingsModalController",resolve:{settings:function(){return _.cloneDeep(e.settings)},hasParserSettings:e.isLocalLocation,defaultSettings:function(){return e.defaultSettings},isMultiple:function(){return!t}},size:"lg"};R.isActive()&&(o.backdrop="static",o.keyboard=!1),u.open(o).result.then(t=>{e.settings=t,""===e.settingsFor?e.importSelected():e.importFile(e.settingsFor,!0)},t=>{e.settings=t,i&&i()})},e.updateImport=(t,r,s)=>{e.settingsFor=t,e.settings=w(t,r),e.importFile(t,s)},e.getSelectedFiles=()=>y.getResources().getAllSelectedFilesNames(),e.importSelected=t=>{const r=new Set([...Object.keys(e.selectedForImportFiles),...e.getSelectedFiles()]),s=Array.from(r),i=()=>{const r=s.shift();r&&(t&&(e.settings=w(r)),e.importFile(r,!0,i))};i()},e.isLocalLocation=()=>{const e=a.getActiveLocation();return e&&e.local},e.updateList=t=>{e.canWriteActiveRepo()&&$(e.tabId).is(":visible")&&e.updateListHttp(t)},e.onRepositoryChange=()=>{e.setRestricted(),e.isRestricted||(e.updateList(!0),E())},e.onImport=t=>{e.setSettingsFor(t.importResource.name,!1,t.importResource.format)},e.onStopImport=r=>{const s=r.importResource;F.stopImport(a.getActiveRepository(),{name:s.name,type:s.type}).success((function(){e.updateList()})).error((function(e){t.warning(h.instant("import.error.could.not.stop",{data:getError(e)}))}))},e.onRemove=e=>{const t=e.map(e=>e.name);x(t)},e.onReset=e=>{U(e,!1)},e.importAll=(t,r)=>{if(t.filter(e=>e.isFile()).forEach(t=>{e.selectedForImportFiles[t.path]=!0}),r)e.importSelected(t,r);else{let s="";1===t.length&&(s=t[0].importResource.name),e.setSettingsFor(s,r,void 0)}},e.onEditResource=t=>{t.importResource.isText()&&e.openTextSnippetDialog(t.importResource)};const E=()=>{e.canWriteActiveRepo()&&F.getDefaultSettings(a.getActiveRepository()).success((function(t){e.defaultSettings=t})).error((function(e){t.warning(h.instant("import.error.default.settings",{data:getError(e)}))}))},x=(e=[])=>{const t="<br/>"+e.join("<br/>"),r=Object(p.decodeHTML)(h.instant("import.remove.confirm.msg",{name:t}));S.openConfirmation(h.instant("common.confirm"),r,()=>{U(e,!0)})},w=(t,r)=>r||_.isEmpty(t)||_.isEmpty(e.savedSettings[t])?_.cloneDeep(e.defaultSettings):e.savedSettings[t];e.updateListHttp=r=>{(e.activeTabId===s.TABS.USER?F.getUploadedFiles:F.getServerFiles)(a.getActiveRepository()).success((function(t){s.TABS.SERVER===e.activeTabId?y.updateResources(Object(l.toImportServerResource)(Object(l.toImportResource)(t))):s.TABS.USER===e.activeTabId&&y.updateResources(Object(l.toImportUserDataResource)(Object(l.toImportResource)(t))),0===e.files.length||r?(e.files=t,y.updateFiles(e.files),e.files.forEach((function(t){t.type||(t.type=e.defaultType)}))):e.files.forEach((function(r){const s=_.find(t,_.matches({name:r.name}));r.status&&s&&_.assign(r,s),r.type||(r.type=e.defaultType)})),r&&s.TABS.USER===e.activeTabId&&(e.files=_.filter(e.files,(function(e){return void 0!==e.status})),y.updateFiles(e.files)),e.savedSettings=_.mapKeys(_.filter(e.files,"parserSettings"),"name")})).error((function(e){t.warning(h.instant("import.error.could.not.get.files",{data:getError(e)}))}))};const U=(r,i)=>{if(!r||r.length<1)return;(e.activeTabId===s.TABS.USER?F.resetUserDataStatus:F.resetServerFileStatus)(a.getActiveRepository(),r,i).success((function(){e.updateList(!0)})).error((function(e){t.warning(h.instant("import.error.could.not.clear",{data:getError(e)}))}))},O=()=>{T.forEach(e=>e())};T.push(e.$on("repositoryIsSet",e.onRepositoryChange)),T.push(e.$on("$destroy",()=>r.cancel(b))),T.push(y.onActiveTabIdUpdated(t=>{e.activeTabId=t,y.updateResources(new c.ImportResourceTreeElement),e.updateListHttp(!0)})),e.$on("$destroy",O),I.getInfo().success((function(t){e.appData={},e.appData.properties={};for(let r=0;r<t.length;r++)e.appData.properties[t[r].key]={source:t[r].source,value:t[r].value};e.maxUploadFileSizeMB=n.FileUtils.convertBytesToMegabytes(e.appData.properties["graphdb.workbench.maxUploadSize"].value)})).error((function(e){const r=getError(e);t.error(r,h.instant("common.error"))})),v.initImportViewSettings()}]),f.controller("ImportCtrl",["$scope","toastr","$controller","$translate","$repositories","ImportRestService","ImportContextService",function(e,t,r,s,i,o,n){e.loader=!0,angular.extend(this,r("ImportViewCtrl",{$scope:e})),e.defaultType="server",e.tabId="#import-server",e.importSelected=t=>{const r=Object.keys(e.selectedForImportFiles);a(r,t)},e.importFile=function(e){a([e])};const a=function(r,n){e.canWriteActiveRepo()&&o.importServerFiles(i.getActiveRepository(),{importSettings:n?null:e.settings,fileNames:r}).success((function(){e.updateList(),e.fileChecked={}})).error((function(e){t.error(s.instant("import.could.not.send.file",{data:getError(e)}))}))};!function(){e.pollList(),e.onRepositoryChange();const t=n.onResourcesUpdated(()=>{e.loader=!1,t()})}()}]),f.controller("UploadCtrl",["$scope","toastr","$controller","$uibModal","$translate","$repositories","ImportRestService","UploadRestService","ModalService","ImportContextService","EventEmitterService",function(e,t,r,s,i,o,l,c,p,d,f){const R=new u.FilePrefixRegistry,S=[];e.loader=!0,angular.extend(this,r("ImportViewCtrl",{$scope:e})),e.defaultType=g,e.tabId="#import-user",e.currentFiles=[];let F=!1;e.pastedDataIdx=1,e.fileSelected=function(t,r,s,i,o){const n={files:s,cancel:!1};f.emit("filesForUploadSelected",n,t=>{if(!t.cancel){y(o);const t=s||[];x(t);const r=[],i=[];t.forEach(t=>{e.files.some(e=>e.name===t.name)?r.push(t):i.push(t)}),r.length>0?w(r,i):(e.currentFiles=[...t],F=!0)}})},e.importFile=(r,s,o)=>{const n=e.files.find(e=>e.name===r);n?n.type===h?v(n,s,o):n.type===I?b(n,s,o):E(n,s,o):t.warning(i.instant("import.no.such.file",{name:r}))},e.openTextSnippetDialog=t=>{t&&t.data;s.open({templateUrl:"js/angular/import/templates/textSnippet.html",controller:"ImportTextSnippetController",resolve:{text:function(){return t?t.data:""},format:function(){return t?t.format:"text/turtle"}}}).result.then(r=>{t?(t.data===r.text&&t.format===r.format||t.status===m.ImportResourceStatus.NONE||(t.status=m.ImportResourceStatus.NONE,t.message=i.instant("import.text.snippet.not.imported")),t.data=r.text,t.format=r.format,T(t)):(t={type:"text",name:"Text snippet "+a.DateUtils.formatCurrentDateTime(),format:r.format,data:r.text},e.files.unshift(t),e.updateImport(t.name,!1,!1)),r.startImport&&e.setSettingsFor(t.name,!1,t.format)})},e.rdfDataFromURL=()=>{s.open({templateUrl:"js/angular/import/templates/urlImport.html",controller:"ImportUrlController",scope:e}).result.then((function(t){const r=_.find(e.files,{type:"url",name:t.url});r?r.format=t.format:e.files.unshift({type:"url",name:t.url,format:t.format,data:t.url}),e.updateImport(t.url,!0,!1),t.startImport&&e.setSettingsFor(t.url,!0,t.format)}))};const y=e=>{e.length>0&&e.forEach((function(e){t.warning(i.instant("import.large.file",{name:e.name,size:n.FileUtils.convertBytesToMegabytes(e.size)}))}))},v=(r,s,n)=>{e.settings.name=r.name,e.settings.type=r.type,e.settings.data=r.data,e.settings.format=r.format,r.status=m.ImportResourceStatus.PENDING;(s?l.importTextSnippet:l.updateTextSnippet)(o.getActiveRepository(),e.settings).success((function(){e.updateList()})).error((function(e){t.error(i.instant("import.could.not.send.data",{data:getError(e)})),r.status=m.ImportResourceStatus.ERROR,r.message=getError(e)})).finally(n||function(){})},T=r=>{e.updating=!0,l.updateTextSnippet(o.getActiveRepository(),r).success((function(e){})).error((function(e){t.error(i.instant("import.could.not.update.text",{data:getError(e)}))})).finally((function(){e.updating=!1}))},b=(r,s,n)=>{e.settings.name=r.name,e.settings.type=r.type,e.settings.data=r.data,e.settings.format=r.format,r.status=m.ImportResourceStatus.PENDING;(s?l.importFromUrl:l.updateFromUrl)(o.getActiveRepository(),e.settings).success((function(){e.updateList()})).error((function(e){t.error(i.instant("import.could.not.send.url",{data:getError(e)}))})).finally(n||function(){})},E=(r,s,n)=>{e.settings.name=r.name;const a=c.createUploadPayload(r,e.settings);(s?c.uploadUserDataFile:c.updateUserDataFile)(o.getActiveRepository(),r,a).then(()=>{e.updateList()}).catch(e=>{t.error(i.instant("import.could.not.upload.file",{data:getError(e)})),r.status=m.ImportResourceStatus.ERROR,r.message=getError(e)}).finally(n||function(){})},x=e=>{e.forEach((function(r){if("bz2"===r.name.substr(r.name.lastIndexOf(".")+1)){const s=e.indexOf(r);s>-1&&e.splice(s,1),t.error(i.instant("import.could.not.upload",{name:r.name}))}}))},w=(t,r)=>{const i=t.map(e=>e.name).join("<br/>");s.open({templateUrl:"js/angular/import/templates/file-override-confirmation.html",controller:"FileOverrideConfirmationController",windowClass:"confirm-duplicate-files-dialog",resolve:{duplicatedFiles:()=>i}}).result.then(s=>{if(s.overwrite)e.currentFiles.length?e.currentFiles=[...t,...r]:e.currentFiles.push(...t,...r),F=!0;else{const s=R.prefixDuplicates(t);e.currentFiles=[...e.currentFiles,...s,...r],F=!0}})},U=()=>{Object.keys(e.fileChecked).forEach(t=>{e.fileChecked[t]=!1}),e.selectedForImportFiles={}};S.push(e.$watchCollection("currentFiles",()=>{if(e.files=_.uniqBy(_.union(_.map(e.currentFiles,(function(e){return{name:e.name,type:"file",file:e}})),e.files),(function(e){return e.name})),e.savedSettings=_.mapKeys(_.filter(e.files,"parserSettings"),"name"),F&&e.currentFiles.length>0){U(),e.currentFiles.forEach(t=>{e.fileChecked[t.name]=!0,e.selectedForImportFiles[t.name]=!0});let t="";1===e.currentFiles.length&&(t=e.currentFiles[0].name),e.setSettingsFor(t,!1,void 0,()=>{e.currentFiles.forEach(t=>{e.updateImport(t.name,!1,!1),e.selectedForImportFiles={}})})}})),e.$on("$destroy",()=>{S.forEach(e=>e())});!function(){e.pollList(),e.onRepositoryChange(),S.push(d.onFilesUpdated(e=>{R.buildPrefixesRegistry(e)}));const t=d.onResourcesUpdated(()=>{e.loader=!1,t()})}()}])},66:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportResourceStatus",(function(){return s}));const s={NONE:"NONE",UPLOADING:"UPLOADING",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},70:function(e,t,r){"use strict";r.r(t),r.d(t,"removeSpecialChars",(function(){return i})),r.d(t,"toBoolean",(function(){return o})),r.d(t,"toTitleCase",(function(){return n}));var s=r(65);const i=e=>e.replace(/[()']/g,""),o=e=>"string"==typeof e?"true"===e:Boolean(e),n=e=>e?Object(s.upperFirst)(e.toLowerCase()):e},81:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportResourceType",(function(){return s}));const s={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},97:function(e,t,r){"use strict";r.r(t),r.d(t,"TABS",(function(){return i}));var s=r(65);const i={USER:"user",SERVER:"server"};function o(e){let t=i.USER,r=void 0,o=[];return{updateActiveTabId:function(r){t=r,e.emit("activeTabIdUpdated",n())},getActiveTabId:n,onActiveTabIdUpdated:function(t){return e.subscribe("activeTabIdUpdated",()=>t(n()))},getFiles:a,addFile:function(t){o.push(t),e.emit("fileAdded",Object(s.cloneDeep)(t))},updateFiles:function(t){o=t,e.emit("filesUpdated",a())},onFilesUpdated:function(t){return e.subscribe("filesUpdated",()=>t(a()))},updateResources:function(t){r=t,e.emit("resourcesUpdated",l())},getResources:l,onResourcesUpdated:function(t){return e.subscribe("resourcesUpdated",()=>t(l()))}};function n(){return t}function a(){return Object(s.cloneDeep)(o)}function l(){return Object(s.cloneDeep)(r)}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",o),o.$inject=["EventEmitterService"]},98:function(e,t,r){"use strict";r.r(t),r.d(t,"ImportParsingSettings",(function(){return s}));class s{constructor(){this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}}}]);
@@ -1,15 +0,0 @@
1
- // Backbone.js 1.1.2
2
-
3
- (function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h<u;h++){t=o[h];if(a=this._events[t]){this._events[t]=s=[];if(e||r){for(l=0,f=a.length;l<f;l++){n=a[l];if(e&&e!==n.callback&&e!==n.callback._callback||r&&r!==n.context){s.push(n)}}}if(!s.length)delete this._events[t]}}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!c(this,"trigger",t,e))return this;var i=this._events[t];var r=this._events.all;if(i)f(i,e);if(r)f(r,arguments);return this},stopListening:function(t,e,r){var s=this._listeningTo;if(!s)return this;var n=!e&&!r;if(!r&&typeof e==="object")r=this;if(t)(s={})[t._listenId]=t;for(var a in s){t=s[a];t.off(e,r,this);if(n||i.isEmpty(t._events))delete this._listeningTo[a]}return this}};var l=/\s+/;var c=function(t,e,i,r){if(!i)return true;if(typeof i==="object"){for(var s in i){t[e].apply(t,[s,i[s]].concat(r))}return false}if(l.test(i)){var n=i.split(l);for(var a=0,o=n.length;a<o;a++){t[e].apply(t,[n[a]].concat(r))}return false}return true};var f=function(t,e){var i,r=-1,s=t.length,n=e[0],a=e[1],o=e[2];switch(e.length){case 0:while(++r<s)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<s)(i=t[r]).callback.call(i.ctx,n);return;case 2:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a);return;case 3:while(++r<s)(i=t[r]).callback.call(i.ctx,n,a,o);return;default:while(++r<s)(i=t[r]).callback.apply(i.ctx,e);return}};var d={listenTo:"on",listenToOnce:"once"};i.each(d,function(t,e){u[e]=function(e,r,s){var n=this._listeningTo||(this._listeningTo={});var a=e._listenId||(e._listenId=i.uniqueId("l"));n[a]=e;if(!s&&typeof r==="object")s=this;e[t](r,s,this);return this}});u.bind=u.on;u.unbind=u.off;i.extend(e,u);var p=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId("c");this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};r=i.defaults({},r,i.result(this,"defaults"));this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(p.prototype,u,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,r){var s,n,a,o,h,u,l,c;if(t==null)return this;if(typeof t==="object"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;a=r.unset;h=r.silent;o=[];u=this._changing;this._changing=true;if(!u){this._previousAttributes=i.clone(this.attributes);this.changed={}}c=this.attributes,l=this._previousAttributes;if(this.idAttribute in n)this.id=n[this.idAttribute];for(s in n){e=n[s];if(!i.isEqual(c[s],e))o.push(s);if(!i.isEqual(l[s],e)){this.changed[s]=e}else{delete this.changed[s]}a?delete c[s]:c[s]=e}if(!h){if(o.length)this._pending=r;for(var f=0,d=o.length;f<d;f++){this.trigger("change:"+o[f],this,c[o[f]],r)}}if(u)return this;if(!h){while(this._pending){r=this._pending;this._pending=false;this.trigger("change",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e,r=false;var s=this._changing?this._previousAttributes:this.attributes;for(var n in t){if(i.isEqual(s[n],e=t[n]))continue;(r||(r={}))[n]=e}return r},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=this;var r=t.success;t.success=function(i){if(!e.set(e.parse(i,t),t))return false;if(r)r(e,i,t);e.trigger("sync",e,i,t)};q(this,t);return this.sync("read",this,t)},save:function(t,e,r){var s,n,a,o=this.attributes;if(t==null||typeof t==="object"){s=t;r=e}else{(s={})[t]=e}r=i.extend({validate:true},r);if(s&&!r.wait){if(!this.set(s,r))return false}else{if(!this._validate(s,r))return false}if(s&&r.wait){this.attributes=i.extend({},o,s)}if(r.parse===void 0)r.parse=true;var h=this;var u=r.success;r.success=function(t){h.attributes=o;var e=h.parse(t,r);if(r.wait)e=i.extend(s||{},e);if(i.isObject(e)&&!h.set(e,r)){return false}if(u)u(h,t,r);h.trigger("sync",h,t,r)};q(this,r);n=this.isNew()?"create":r.patch?"patch":"update";if(n==="patch")r.attrs=s;a=this.sync(n,this,r);if(s&&r.wait)this.attributes=o;return a},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var s=function(){e.trigger("destroy",e,e.collection,t)};t.success=function(i){if(t.wait||e.isNew())s();if(r)r(e,i,t);if(!e.isNew())e.trigger("sync",e,i,t)};if(this.isNew()){t.success();return false}q(this,t);var n=this.sync("delete",this,t);if(!t.wait)s();return n},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return t;return t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger("invalid",this,r,i.extend(e,{validationError:r}));return false}});var v=["keys","values","pairs","invert","pick","omit"];i.each(v,function(t){p.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.attributes);return i[t].apply(i,e)}});var g=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var m={add:true,remove:true,merge:true};var y={add:true,remove:false};i.extend(g.prototype,u,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,y))},remove:function(t,e){var r=!i.isArray(t);t=r?[t]:i.clone(t);e||(e={});var s,n,a,o;for(s=0,n=t.length;s<n;s++){o=t[s]=this.get(t[s]);if(!o)continue;delete this._byId[o.id];delete this._byId[o.cid];a=this.indexOf(o);this.models.splice(a,1);this.length--;if(!e.silent){e.index=a;o.trigger("remove",o,this,e)}this._removeReference(o,e)}return r?t[0]:t},set:function(t,e){e=i.defaults({},e,m);if(e.parse)t=this.parse(t,e);var r=!i.isArray(t);t=r?t?[t]:[]:i.clone(t);var s,n,a,o,h,u,l;var c=e.at;var f=this.model;var d=this.comparator&&c==null&&e.sort!==false;var v=i.isString(this.comparator)?this.comparator:null;var g=[],y=[],_={};var b=e.add,w=e.merge,x=e.remove;var E=!d&&b&&x?[]:false;for(s=0,n=t.length;s<n;s++){h=t[s]||{};if(h instanceof p){a=o=h}else{a=h[f.prototype.idAttribute||"id"]}if(u=this.get(a)){if(x)_[u.cid]=true;if(w){h=h===o?o.attributes:h;if(e.parse)h=u.parse(h,e);u.set(h,e);if(d&&!l&&u.hasChanged(v))l=true}t[s]=u}else if(b){o=t[s]=this._prepareModel(h,e);if(!o)continue;g.push(o);this._addReference(o,e)}o=u||o;if(E&&(o.isNew()||!_[o.id]))E.push(o);_[o.id]=true}if(x){for(s=0,n=this.length;s<n;++s){if(!_[(o=this.models[s]).cid])y.push(o)}if(y.length)this.remove(y,e)}if(g.length||E&&E.length){if(d)l=true;this.length+=g.length;if(c!=null){for(s=0,n=g.length;s<n;s++){this.models.splice(c+s,0,g[s])}}else{if(E)this.models.length=0;var k=E||g;for(s=0,n=k.length;s<n;s++){this.models.push(k[s])}}}if(l)this.sort({silent:true});if(!e.silent){for(s=0,n=g.length;s<n;s++){(o=g[s]).trigger("add",o,this,e)}if(l||E&&E.length)this.trigger("sort",this,e)}return r?t[0]:t},reset:function(t,e){e||(e={});for(var r=0,s=this.models.length;r<s;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);this.remove(e,t);return e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);this.remove(e,t);return e},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){if(i.isEmpty(t))return e?void 0:[];return this[e?"find":"filter"](function(e){for(var i in t){if(t[i]!==e.get(i))return false}return true})},findWhere:function(t){return this.where(t,true)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");t||(t={});if(i.isString(this.comparator)||this.comparator.length===1){this.models=this.sortBy(this.comparator,this)}else{this.models.sort(i.bind(this.comparator,this))}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{};if(t.parse===void 0)t.parse=true;var e=t.success;var r=this;t.success=function(i){var s=t.reset?"reset":"set";r[s](i,t);if(e)e(r,i,t);r.trigger("sync",r,i,t)};q(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};if(!(t=this._prepareModel(t,e)))return false;if(!e.wait)this.add(t,e);var r=this;var s=e.success;e.success=function(t,i){if(e.wait)r.add(t,e);if(s)s(t,i,e)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger("invalid",this,r.validationError,e);return false},_addReference:function(t,e){this._byId[t.cid]=t;if(t.id!=null)this._byId[t.id]=t;if(!t.collection)t.collection=this;t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,r);if(e&&t==="change:"+e.idAttribute){delete this._byId[e.previous(e.idAttribute)];if(e.id!=null)this._byId[e.id]=e}this.trigger.apply(this,arguments)}});var _=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(_,function(t){g.prototype[t]=function(){var e=o.call(arguments);e.unshift(this.models);return i[t].apply(i,e)}});var b=["groupBy","countBy","sortBy","indexBy"];i.each(b,function(t){g.prototype[t]=function(e,r){var s=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,s,r)}});var w=e.View=function(t){this.cid=i.uniqueId("view");t||(t={});i.extend(this,i.pick(t,E));this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var x=/^(\S+)\s*(.*)$/;var E=["model","collection","el","id","attributes","className","tagName","events"];i.extend(w.prototype,u,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(t,i){if(this.$el)this.undelegateEvents();this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0];if(i!==false)this.delegateEvents();return this},delegateEvents:function(t){if(!(t||(t=i.result(this,"events"))))return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[t[e]];if(!r)continue;var s=e.match(x);var n=s[1],a=s[2];r=i.bind(r,this);n+=".delegateEvents"+this.cid;if(a===""){this.$el.on(n,r)}else{this.$el.on(n,a,r)}}return this},undelegateEvents:function(){this.$el.off(".delegateEvents"+this.cid);return this},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,"attributes"));if(this.id)t.id=i.result(this,"id");if(this.className)t["class"]=i.result(this,"className");var r=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow;this.navigate(r)}if(this._hasPushState){e.$(window).on("popstate",this.checkUrl)}else if(this._wantsHashChange&&"onhashchange"in window&&!n){e.$(window).on("hashchange",this.checkUrl)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}this.fragment=r;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){this.fragment=this.getFragment(null,true);this.location.replace(this.root+"#"+this.fragment);return true}else if(this._hasPushState&&this.atRoot()&&o.hash){this.fragment=this.getHash().replace(R,"");this.history.replaceState({},document.title,this.root+this.fragment)}}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl);if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getFragment(this.getHash(this.iframe))}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){t=this.fragment=this.getFragment(t);return i.any(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};var i=this.root+(t=this.getFragment(t||""));t=t.replace(j,"");if(this.fragment===t)return;this.fragment=t;if(t===""&&i!=="/")i=i.slice(0,-1);if(this._hasPushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,i)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getFragment(this.getHash(this.iframe))){if(!e.replace)this.iframe.document.open().close();this._updateHash(this.iframe.location,t,e.replace)}}else{return this.location.assign(i)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var U=function(t,e){var r=this;var s;if(t&&i.has(t,"constructor")){s=t.constructor}else{s=function(){return r.apply(this,arguments)}}i.extend(s,r,e);var n=function(){this.constructor=s};n.prototype=r.prototype;s.prototype=new n;if(t)i.extend(s.prototype,t);s.__super__=r.prototype;return s};p.extend=g.extend=$.extend=w.extend=N.extend=U;var M=function(){throw new Error('A "url" property or function must be specified')};var q=function(t,e){var i=e.error;e.error=function(r){if(i)i(t,r,e);t.trigger("error",t,r,e)}};return e});
4
-
5
- // From http://stackoverflow.com/a/19431552
6
- // Compatibility override - Backbone 1.1 got rid of the 'options' binding
7
- // automatically to views in the constructor - we need to keep that.
8
- Backbone.View = (function(View) {
9
- return View.extend({
10
- constructor: function(options) {
11
- this.options = options || {};
12
- View.apply(this, arguments);
13
- }
14
- });
15
- })(Backbone.View);