graphdb-workbench 2.6.2-TR2 → 2.6.2

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 (64) hide show
  1. package/dist/12.72b1cf9c0b2a0cf0e39b.bundle.js +1 -0
  2. package/dist/131.f41a0b6b9036447b1077.bundle.js +1 -1
  3. package/dist/16.af6bc53be819045291bd.bundle.js +1 -1
  4. package/dist/242.7be67f4aaa4647098043.bundle.js +1 -0
  5. package/dist/257.943f597bddc0d65103c5.bundle.js +1 -1
  6. package/dist/259.2c88332b7f1b47935a47.bundle.js +1 -1
  7. package/dist/260.d745422c537bdd9647bb.bundle.js +1 -1
  8. package/dist/261.7efff7f93f61f061f5ca.bundle.js +1 -1
  9. package/dist/27.92bfb161b420732902a3.bundle.js +1 -1
  10. package/dist/28.2e0277168c8f14f9c085.bundle.js +1 -1
  11. package/dist/288.6cef162ec3cec3cde603.bundle.js +1 -1
  12. package/dist/40.53352fda81f370182e99.bundle.js +1 -1
  13. package/dist/5.f15016e5e47214a9bc88.bundle.js +1 -0
  14. package/dist/63.dbce2c16115eac52fed2.bundle.js +1 -1
  15. package/dist/96.53f0a874878aedfa987a.bundle.js +1 -0
  16. package/dist/{bundle.76129066c5029b3d5ff0.bundle.js → bundle.67ed0787383a638da8e9.bundle.js} +2 -2
  17. package/dist/css/bootstrap-graphdb-theme-dark-auto.css +4 -0
  18. package/dist/css/clustermanagement.css +5 -1
  19. package/dist/css/lib/ontotext-yasgui-web-component.css +4 -0
  20. package/dist/i18n/locale-en.json +2 -1
  21. package/dist/i18n/locale-fr.json +2 -1
  22. package/dist/index.html +4 -4
  23. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  24. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  25. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  26. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.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/{main.cd9080d130335332d006.css → main.b830c2fc237abd684f41.css} +1 -1
  30. package/dist/pages/aclmanagement.html +2 -2
  31. package/dist/pages/autocomplete.html +1 -1
  32. package/dist/pages/choose-repository-type.html +1 -1
  33. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  34. package/dist/pages/create-index.html +1 -1
  35. package/dist/pages/dependencies.html +1 -1
  36. package/dist/pages/domainRangeInfo.html +2 -2
  37. package/dist/pages/edit.html +1 -1
  38. package/dist/pages/explore.html +1 -1
  39. package/dist/pages/export.html +1 -1
  40. package/dist/pages/find.html +1 -1
  41. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  42. package/dist/pages/graphs-visualizations.html +7 -7
  43. package/dist/pages/guides.html +1 -1
  44. package/dist/pages/import.html +1 -1
  45. package/dist/pages/jdbc-create.html +1 -1
  46. package/dist/pages/monitor/backup-and-restore.html +1 -1
  47. package/dist/pages/monitor/queries.html +1 -1
  48. package/dist/pages/monitor/resources.html +1 -1
  49. package/dist/pages/namespaces.html +2 -2
  50. package/dist/pages/plugins.html +1 -1
  51. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  52. package/dist/pages/rdfrank.html +2 -2
  53. package/dist/pages/repositories.html +1 -1
  54. package/dist/pages/repository.html +1 -1
  55. package/dist/pages/similarity-indexes.html +1 -1
  56. package/dist/pages/sparql-editor.html +1 -1
  57. package/dist/pages/sparql-template-create.html +1 -1
  58. package/dist/pages/webapi.html +2 -2
  59. package/dist/res/swagger/index.html +27 -27
  60. package/package.json +2 -2
  61. package/dist/12.75466fc44ea53c351a67.bundle.js +0 -1
  62. package/dist/242.1c84a9ac05f0cb9fdd73.bundle.js +0 -1
  63. package/dist/5.f58f4e96c07a6a7a0e06.bundle.js +0 -1
  64. package/dist/96.e01346a08ab153a02364.bundle.js +0 -1
@@ -1,4 +1,4 @@
1
- !function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,l=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);l.length;)l.shift()()}var n={},r={237:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({239:"polyfills-dom",241:"vendors~polyfills-core-js"}[e]||e)+"."+{0:"a3b3bef411c35bdc8be5",1:"aab0f9b3a664ffdd46a3",2:"907f954e4f9e0697612c",3:"e877f5e49ef930b8b905",4:"fe432ceb2b88c03018b3",5:"f58f4e96c07a6a7a0e06",6:"0685b09a3646005a1521",7:"112cbad7864c8da551d3",8:"df1e59fdf8864051f4b0",9:"3890e642c0ae619d2c59",10:"c86a39a390b36ec08b90",11:"5146ccccd430bce59f6c",12:"75466fc44ea53c351a67",13:"6e2d206f55eeb2c58b2b",14:"77134ed08934f63cbe92",15:"81ca8fb02469ee14c5e4",16:"af6bc53be819045291bd",17:"31f5971e39936437eda8",18:"a18e024d172531f968fa",19:"ec4fc8946a6edb7dc7c9",20:"b6d679aabf452ffe8369",21:"72126081137288bb650e",22:"8ee5985085ab2c4b99f1",23:"a5165fa6e171a8db712b",24:"498f1aefa71ceb33d2f8",25:"5a98f7b1bf5b195fa51f",26:"8bd9dc57add455291ab8",27:"92bfb161b420732902a3",28:"2e0277168c8f14f9c085",29:"128101fabb544e88e448",30:"1ffda412dea3c5f55c24",31:"1e6ed4b31ac8c0dc44cd",32:"08cc7807b71cf869e6e2",33:"601eab9a8c9d80755599",34:"b03038da5530dcb82c85",35:"d337b2f1aeac7bab3100",36:"780bcf12c8d8b5742eac",37:"2204724b4ae08556283e",38:"0edff4c7b76c9652f664",39:"f691f87a4527e58da4a2",40:"53352fda81f370182e99",41:"5a0ecbdf78c48ddce365",42:"6a677110f335d516813b",43:"bcf30fa642d63c585962",44:"f3060f0a04c90bc70a36",45:"001b1bcbff1d7c9b3288",46:"7682ca54e79000d992ab",47:"7e030d52af57062c6527",48:"669aedf81599ca0aee35",49:"319507fd2417a71a157e",50:"91efd0f7c94e635eb31b",51:"9696bc200e07cfc15860",52:"37332ab2c0675e0a802c",53:"967c8f3d2a9f33fcfc27",54:"07a064723a033340c51b",55:"1f556c49966d089af28e",56:"0bfd1ac12b2c5f9116e5",57:"19a0ece12b6fb894221d",58:"b741d32027a50f883617",59:"01fd6bb0dea0e31b8c98",60:"dd84d15683316fe6c548",61:"2fdefec6b0e4f2f01dc9",62:"3cda5cf1c8a74f8bccc6",63:"dbce2c16115eac52fed2",64:"0b46f2876921c15c0f4d",65:"4c044f55fb8e826c87a0",66:"c8b9472b02654a17b61c",67:"958136cd17ad37887b60",68:"b4bf34276a3cab5e48bf",69:"68337b9a2e3104600ff6",70:"e04eced6ee3b7d712377",71:"0fbdedcc573e4e38ff6a",72:"e71caf5330e0c1cece04",73:"298162fe9ad207efe8a5",74:"b57c202b34d9d8effbcb",75:"8be72a221b92aa667da7",76:"0f45a150d03cf8aeeb9d",77:"257e393d86a8fb9f2102",78:"83432ef1cff39b57aa50",79:"74e2421bfb8f6c563a99",80:"53a2f5637376be338bb5",81:"a48e2d16edd121965d2f",82:"bde6d42f833167581069",83:"4bb7fb45433f0902ba64",84:"3fe74c343dd811256a58",85:"e34e2854ea217304bf69",86:"b6a6584bb48c2eba7793",87:"66c82919414d84bf1c91",88:"a54c809c84dbef177321",89:"08dc723465581d17e18c",90:"82bdd586c3a8e362fd99",91:"743cdf86c0680be894c9",92:"c68c7391efc7d3b46a0d",93:"daf27be7933412f1637f",94:"e7ab23159456b757afa9",95:"522b5e309c1f6989ec42",96:"e01346a08ab153a02364",97:"f221163ec5e99caa0668",98:"1f20ae086eeefbf60b9f",99:"c4df74a95a465a7bc7e6",100:"534f37dd58edf9a6d699",101:"d85136c82944d96009d8",102:"a57d02f54d23e39ab220",103:"6edf5a9611097aac7b0e",104:"30887712ab9f944ce3b5",105:"8e0d511b2790a2c7a1f5",106:"dfa270c46faceb444b3a",107:"7e47259d1a1e92cc684a",108:"9d2fca01799579fd246a",109:"41cc535019ec49b7a449",110:"087f1045498ced6386ac",111:"d77e3e60f2db63fcd713",112:"6b5fac36fea6ec10ccf7",113:"85c3c663f3681b21e49d",114:"635dc2e74009c95bf91e",115:"47fe6316b11ce761e8d3",116:"511ed0fc7766ce1c5dbe",117:"ff4f162729afc19137ca",118:"ce4cb2610bcae2cec5b4",119:"e2a1ccb260af6cddd91c",120:"3be53a400b5e5d0b8bbf",121:"4493eca5616735378bb8",122:"d5d3e1f5e5c8f632795f",123:"eb8114707f15749a90ae",124:"66c3ddc58390694a3a98",125:"48215e946747137bf6c8",126:"119b23fe77d130cd15f2",127:"8e57d1e19372e120aeba",128:"96d9076518cacd42230d",129:"c8071eddb4e6ac450d14",130:"4ef543acc845d7dfcc8d",131:"f41a0b6b9036447b1077",132:"3666a6511534abe54b6a",133:"cb22542677a1fde54231",134:"16abd209e3e07d89821b",135:"e71755f6f0278b2943d0",136:"81439d8a1b2d7dfed6c7",137:"ae6fae38c2b6fd89a566",138:"8885afc315c221adb64b",139:"f02901e6087085176dc7",140:"f0e54b9511ca99865d9d",141:"46aad99634d1bfe2b58a",142:"d2aaa85171c7449f2f85",143:"802e7b37a5e69e8637a2",144:"5f21450a9ba89abcb82f",145:"2ea88cbccd93fc9fa454",146:"e7b99166958dc75f43e7",147:"7abb3c6ae63a13eb61a5",148:"b9aa2392ff5063d92341",149:"c2b7461cdb7018d8a7ac",150:"c1303d8109786b40d21a",151:"b909ba9cb2419e0f91dd",152:"20fec292fccfef232845",153:"7413dfe6871e27f43788",154:"19d1b00bfc1e419adc42",155:"dd57193f58cc7d5262b8",156:"258d084f62fa73d45ded",157:"60074b591e62c10a77ed",158:"742c03d8e739b04df049",159:"41a2a6b6b485989a9412",160:"7616cb8b729cfbe229fb",161:"cc79ca9a079e616ba9e6",162:"78a734f7eb6bd4583f17",163:"5dbf48d936a3c831c9b5",164:"d3220f317e31f573b335",165:"4b88e7b3b3a273cb4ed1",166:"92928a8fa8ec48d00349",167:"b38a507dbcfd6329cf8c",168:"c52d0bbbd4224ddadd7c",169:"f6823be6839682f8586c",170:"8baf5e20de2271caf978",171:"a46d6b00949dbdbbc38e",172:"9b5d17e5c772c53243e9",173:"d3bbff40e6f45969410d",174:"6d17f7732045b6f182a0",175:"7bc87231bd4677800c77",176:"f7a1a4fdd12ad86f3d08",177:"1023531c905d87b8a4ac",178:"cb8324bb00103fb26cfb",179:"e4bea06f7e407436dce7",180:"bd3f5149f861a2586ffb",181:"393af0e6c19d537f775b",182:"9b7c235aa984ad81ab02",183:"2f7def34c47fd1bc38b3",184:"a71cd41118f14e2c123f",185:"31a5c2ddc3afdffdc9e5",186:"daffd5d0823f56ba3c54",187:"4b22405c17194851a1e1",188:"bce7651d7bd1e88d7689",189:"4456ac2b4559c9c4e808",190:"d758ca3d4a14b7273bab",191:"8c31e698a482ba52ca82",192:"944cc89f4d31c0fd8f79",193:"fad67143e7b911118459",194:"a4f892be39e071e2552a",195:"7f8774fd8da98c5897a1",196:"3ab76ea57aaa91d34511",197:"9bbab0d7f35c2b58914f",198:"813986f24f2f7887e738",199:"246f0549d7bdf7c18215",200:"20f4846b9ed97b60def3",201:"768937613e43caedd9fc",202:"0d38d4ec1e39e8ca91b7",203:"a78dd70f65b08ecb58d2",204:"e1f61ba757fbc813e6d4",205:"cc2c5786dff7bf31b08c",206:"dadf18fb31b0533b1696",207:"44dbc18bb4c8fa07cc66",208:"dda72c8e3795ba716704",209:"7f8b6e8e2869b51c554c",210:"6d601b172d76d9bc2c98",211:"ad09e493e9be031887e9",212:"364965f963bcd6331e6f",213:"6c5b540986e7b24a338a",214:"3c333d59839d2bcd183e",215:"a95cf561d38004eff071",216:"acdd4ee62af663ab18a1",217:"38ab6d3450c36fe8104f",218:"66399da8a64421df67c1",219:"05c3d5e61c9bb4752e5f",220:"069190d187dfc576daed",221:"3553362f556124c787a8",222:"5ec7607217a3cb97b293",223:"37d133ce14e20b0efe2d",224:"acc9afbc9e926356519a",225:"ba9860341f9eba2c1f2d",226:"0a305eb2e34c9d3fb3ce",227:"357506866df2e0ba1ae1",228:"21cb62126a898299b993",229:"227a956358ad27627e2c",230:"215c4242d4a205df5b8e",231:"fd7222ca89363294fe39",232:"ddae678620e7c15b8ec4",233:"007908cb7a913f1554ed",234:"de1618094d091408fd6d",235:"97d46a9b6277079ae6cc",236:"ec2ada8b5f2aec3204f5",239:"e5e420bcb04603449d09",241:"efe4b0ec258663b8b247",242:"1c84a9ac05f0cb9fdd73",243:"36fbc0c96d0a35048949",244:"526affae61c05ae944d3",245:"feedc08d977143faa08e",246:"136fac3b1ce27662490d",247:"71aeac059bcf9ed9b392",248:"94d8fea9b5ce15519623",249:"234cb407b6a647179cf2",250:"3ed03b7e55905888d992",251:"efa949bd1ee44f4290ed",252:"5705d631c738e4d8e996",253:"8752156b82db62eb4c92",254:"986c95170a74cc76c5e5",255:"53ff457cdf06dc0de427",256:"52e7acbbd3e7dde0df9f",257:"943f597bddc0d65103c5",258:"db5554df6956ecfc7dec",259:"2c88332b7f1b47935a47",260:"d745422c537bdd9647bb",261:"7efff7f93f61f061f5ca",262:"3b9c687ab8c9b9282f5a",263:"9c4ce329ffd095c5d1c6",264:"0504ff98a1b50e9d2486",265:"a0af2676b1495c6231cc",266:"31dcc9c203106832e08a",267:"3befe4deb9b75cd5d7ba",268:"c7dc883261346f81be82",269:"601d4fc4300f4553d75c",270:"e9d338a5cf954fbc1f4c",271:"a88eeff63bbc87791af0",272:"ddacc590a66bdb0fa651",273:"d45db281162abbe864ae",274:"eca3da80ab4f0b4a3263",275:"509ea766eda3bbcf1562",276:"f816f19aaa4522373a5f",277:"6c6b5259fa26936adf41",278:"bfc453e4fdb94806e6fc",279:"855b2c767116d91fdc3b",280:"95394d461866b83c32b7",281:"fcaf9deb44f93c85ef68",282:"bede8a18d3e678b7895d",283:"bf3ea5f6f6b8406e5401",284:"3f34606cfbcefb0a1a47",285:"4e95ca9e283ddd26fcbf",286:"8c8f50e9844881f0b028",287:"23b580771ee0d5e65d41",288:"6cef162ec3cec3cde603",289:"c47fa5cd7d5468dce45f",290:"b9baf8eed99b4447f086",291:"1e7bf6b667f7698ac645",292:"44bcf6642bd3fac703b4",293:"184eb39d3229ef066269",294:"338c276decc123976f73",295:"72eea8b2cf594acd85e6",296:"8f11a500bce671ed75db",297:"71b96380e1103cd792d9",298:"39626a266f47903126bf",299:"d3636e77b768f4300e8c",300:"c9844b95b03ac7295e4f",301:"e9495589c306b342c312",302:"d16e044e23278bf1e922",303:"85715cdc00dfd6ef1521",304:"e055e669c9bad5898984"}[e]+".bundle.js"}(e);var u=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,n[1](u)}r[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var u=s;i(i.s=0)}({0:function(e,t,n){"use strict";n.r(t),n.d(t,"decodeHTML",(function(){return o}));n(7),n(43),n(50),n(322),n(59),n(323),n(37),n(38),n(51),n(52),n(53),n(54),n(55),n(56);var r=n(29);const i=(e,t)=>"undefined"==typeof window?Promise.resolve():Object(r.f)().then(()=>Object(r.b)([["ontotext-download-as",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["keyboard-shortcuts-dialog",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["alert-box",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["copy-resource-link-button",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["loader-component",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["ontotext-editable-text-field",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["ontotext-pagination",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["confirmation-dialog_9",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],renderingMode:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],changeRenderMode:[64],setQuery:[64],query:[64],getQuery:[64],isQueryValid:[64],openTab:[64],getQueryMode:[64],getQueryType:[64],getEmbeddedResultAsJson:[64],getEmbeddedResultAsCSV:[64],hideYasqeActionButton:[64],showYasqeActionButton:[64],abortQuery:[64],abortAllCountQuery:[64],resetResults:[64],isQueryDirty:[64]},[[9,"resize","onResize"],[8,"beforeunload","onBeforeunloadHandler"],[0,"internalCreateSavedQueryEvent","saveQueryHandler"],[0,"internalSaveQueryEvent","createSavedQueryHandler"],[0,"internalUpdateQueryEvent","updateSavedQueryHandler"],[0,"internalSaveQueryDialogClosedEvent","closeSaveDialogHandler"],[0,"internalShowSavedQueriesEvent","showSavedQueriesHandler"],[0,"internalSaveQuerySelectedEvent","savedQuerySelectedHandler"],[0,"internalEditSavedQueryEvent","editSavedQueryHandler"],[0,"internalSavedQuerySelectedForDeleteEvent","savedQuerySelectedForEditHandler"],[0,"internalConfirmationApprovedEvent","deleteSavedQueryHandler"],[0,"internalConfirmationRejectedEvent","closeSavedQueryDeleteConfirmationHandler"],[0,"internalCloseSavedQueriesPopupEvent","closeSavedQueriesPopupHandler"],[0,"internalSavedQuerySelectedForShareEvent","savedQuerySelectedForShareHandler"],[0,"internalShareQueryEvent","shareQueryHandler"],[0,"internalQueryShareLinkCopiedEvent","savedQueryShareLinkCopiedHandler"],[0,"internalShareQueryDialogClosedEvent","closeShareQueryDialogHandler"],[0,"internalResourceLinkDialogClosedEvent","resourceLinkDialogClosedHandler"],[0,"internalResourceLinkCopiedEvent","resourceLinkCopiedHandler"],[0,"internalShowResourceCopyLinkDialogEvent","showResourceCopyLinkDialogHandler"],[0,"internalDownloadAsEvent","onDownloadAsEventHandler"],[0,"internalNotificationMessageEvent","notificationMessageHandler"],[0,"internalQueryEvent","onQuery"],[0,"internalQueryExecuted","onInternalQueryExecuted"],[0,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"],[0,"internalCountQueryAbortedEvent","onCountQueryAborted"]]],[0,"copy-resource-link-dialog",{serviceFactory:[16],resourceLink:[1,"resource-link"]}],[0,"share-query-dialog",{config:[16],serviceFactory:[16]}],[0,"save-query-dialog",{serviceFactory:[16],data:[16],queryName:[32],query:[32],isPublic:[32],isNew:[32],isSaveAllowed:[32]},[[8,"keydown","keydownListener"]]],[0,"confirmation-dialog",{translationService:[16],config:[16]},[[8,"keydown","keydownListener"]]],[0,"saved-queries-popup",{config:[16],serviceFactory:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]}],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]},[[4,"keydown","keydownListener"]]]]],["ontotext-dropdown",[[0,"ontotext-dropdown",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],iconClass:[1,"icon-class"],open:[32],showTooltip:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]]],t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();const o=function(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value},s=["ngRoute","graphdb.workbench.se.controllers","graphdb.framework.core","angularCancelOnNavigateModule","oc.lazyLoad","pascalprecht.translate","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.interceptors.authentication","graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch","graphdb.framework.core.directives.languageselector.languageselector","graphdb.framework.core.directives.angular-tooltips","graphdb.framework.core.directives.uppercased","graphdb.framework.guides.services","graphdb.framework.core.directives.operationsstatusesmonitor","graphdb.framework.core.directives.autocomplete","ngCustomElement"],a=["$routeProvider","$locationProvider","$menuItemsProvider","toastrConfig","localStorageServiceProvider","$uibTooltipProvider","$httpProvider","$templateRequestProvider","$translateProvider"];$.get("rest/info/version?local=1",(function(e){const t=e.productVersion.match(/^(\d+\.\d+)/);t.length?e.productShortVersion=t[1]:e.productShortVersion=e.productVersion;const r=e.productVersion.match(/(-.*?)(-|$)/);r&&r.length&&(e.productShortVersion=e.productShortVersion+r[1]),function(e){i();const t=angular.module("graphdb.workbench",s);t.config([...a,function(t,r,i,o,s,a,u,l,c){c.useStaticFilesLoader({prefix:"i18n/locale-",suffix:".json?v=2.6.2-TR2"}),c.preferredLanguage("en"),c.useSanitizeValueStrategy("escape"),angular.extend(o,{timeOut:5e3,positionClass:"toast-bottom-right",tapToDismiss:!1,extendedTimeOut:5e3}),s.setStorageType("localStorage").setNotify(!0,!0);var p=t.$get[t.$get.length-1]({$on:function(){}});t.when("_openid_implicit_",{controller:function(){},template:"<div></div>"}),p.routes._openid_implicit_.regexp=/[&/](?:id_token=.*&access_token=|access_token=.*&id_token=)/;let h=PluginRegistry.get("route");angular.forEach(h,(function(e){t.when(e.url,{controller:e.controller,templateUrl:e.templateUrl,title:e.title,helpInfo:e.helpInfo,reloadOnSearch:void 0===e.reloadOnSearch||e.reloadOnSearch,resolve:{preload:["$ocLazyLoad","$q",function(t,r){return e.path?n(325)("./"+e.path).then(n=>{t.inject(e.module)}):r.defer().resolve()}]}})})),t.otherwise({templateUrl:"pages/not_found.html"}),r.html5Mode(!0),a.setTriggers({show:"hide"}),a.options({appendToBody:!0}),i.setProductInfo(e),PluginRegistry.get("main.menu").forEach((function(e){e.items.forEach((function(e){i.addItem(e)}))})),u.interceptors.push("$unauthorizedInterceptor"),u.interceptors.push("$authenticationInterceptor");const d=l.$get[3];"function"==typeof d&&(l.$get[3]=function(e,t,n){const r=d(e,t,n);return function(t,n){return e.get(t)||(t+="?v=2.6.2-TR2"),r(t,n)}})}]),t.constant("productInfo",e),t.run(["$rootScope","$route","toastr","$sce","$translate","ThemeService","WorkbenchSettingsStorageService","LSKeys","GuidesService",function(e,t,n,r,i,s,a,u,l){function c(){t.current.title?document.title=o(i.instant(t.current.title))+" | GraphDB Workbench":document.title="GraphDB Workbench",e.helpInfo=r.trustAsHtml(o(i.instant(t.current.helpInfo))),e.title=o(i.instant(t.current.title))}e.$on("$routeChangeSuccess",(function(){c(),n.clear()})),e.$on("$translateChangeSuccess",(function(){c()}));const p=a.getThemeName();s.applyTheme(p),s.applyDarkThemeMode(),l.init()}]),t.filter("titlecase",(function(){return function(e){var t=""+e;return t.charAt(0).toUpperCase()+t.slice(1)}})),angular.bootstrap(document,["graphdb.workbench"])}(e)}))},1:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_GROUP_TYPE",(function(){return r}));const r={IMPORT_OPERATION:"IMPORT_OPERATION",QUERIES_OPERATION:"QUERIES_OPERATION",BACKUP_AND_RESTORE_OPERATION:"BACKUP_AND_RESTORE_OPERATION",CLUSTER_OPERATION:"CLUSTER_OPERATION"}},10:function(e,t){function n(e,t){return{get:function(t){return e.get(t)},set:function(t,n){e.set(t,n)},keys:n,remove:r,clearAll:function(){e.clearAll()},clearClassHieararchyState:function(){n().forEach((function(e){0!==e.indexOf("classHierarchy-")||e===t.CLASS_HIERARCHY_HIDE_PREFIXES||e.startsWith("classHierarchy-selectedGraph-")||r(e)}))}};function n(){return e.keys()}function r(t){e.remove(t)}}angular.module("graphdb.framework.utils.localstorageadapter",[]).factory("LocalStorageAdapter",n).value("LSKeys",{TABS_STATE:"tabs-state",TABS_STATE_CURRENT_ID:"tabs-state-currentid",TABS_STATE_MAXID:"tabs-state-maxid",VIEW_MODE:"viewMode",CLASS_HIERARCHY_HIDE_PREFIXES:"classHierarchy-hidePrefixes",CLASS_HIERARCHY_CURRENT_SLIDER_VALUE:"classHierarchy-currentSliderValue",CLASS_HIERARCHY_SWITCH_PREFIXES:"classHierarchy-switchPrefixes",CLASS_HIERARCHY_LAST_SELECTED_CLASS:"classHierarchy-lastSelectedClass",DOMAIN_RANGE_WENT_BACK:"domainRange-wentBack",DOMAIN_RANGE_COLLAPSE_EDGES:"domainRange-collapseEdges",HIDE_SIMILARITY_HELP:"hide-similarity-help",TUTORIAL_STATE:"tutorial-state",MENU_STATE:"menu-state",HIDE_GRAPH_CONFIG_HELP:"hide-graph-config-help",GRAPHS_VIZ:"graphs-viz",AUTOCOMPLETE_ENABLED:"autocomplete.enabled",RDF_SEARCH_TYPE:"rdf-search.search-type",RDF_SEARCH_INPUT:"rdf-search.search-input",RDF_SEARCH_EXPANDED_URI:"rdf-search.search-expanded-uri",RDF_RESOURCE_DESCRIPTION:"rdf-search.resource-description",PREFERRED_LANG:"preferred-language",WORKBENCH_SETTINGS:"workbench-settings",REPOSITORY_ID:"repository-id",REPOSITORY_LOCATION:"repository-location"}),n.$inject=["localStorageService","LSKeys"]},11:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},12:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryMode",(function(){return r}));const r={UPDATE:"update",QUERY:"query"}},127:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},13:function(e,t,n){"use strict";n.r(t),n.d(t,"GUIDE_ID",(function(){return ln})),n.d(t,"GUIDE_CURRENT_STEP_ID",(function(){return cn})),n.d(t,"GUIDE_STEP_HISTORY",(function(){return pn})),n.d(t,"GUIDE_PAUSE",(function(){return hn}));var r=n(2),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};
1
+ !function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,l=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(u&&u(t);l.length;)l.shift()()}var n={},r={237:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({239:"polyfills-dom",241:"vendors~polyfills-core-js"}[e]||e)+"."+{0:"a3b3bef411c35bdc8be5",1:"aab0f9b3a664ffdd46a3",2:"907f954e4f9e0697612c",3:"e877f5e49ef930b8b905",4:"fe432ceb2b88c03018b3",5:"f15016e5e47214a9bc88",6:"0685b09a3646005a1521",7:"112cbad7864c8da551d3",8:"df1e59fdf8864051f4b0",9:"3890e642c0ae619d2c59",10:"c86a39a390b36ec08b90",11:"5146ccccd430bce59f6c",12:"72b1cf9c0b2a0cf0e39b",13:"6e2d206f55eeb2c58b2b",14:"77134ed08934f63cbe92",15:"81ca8fb02469ee14c5e4",16:"af6bc53be819045291bd",17:"31f5971e39936437eda8",18:"a18e024d172531f968fa",19:"ec4fc8946a6edb7dc7c9",20:"b6d679aabf452ffe8369",21:"72126081137288bb650e",22:"8ee5985085ab2c4b99f1",23:"a5165fa6e171a8db712b",24:"498f1aefa71ceb33d2f8",25:"5a98f7b1bf5b195fa51f",26:"8bd9dc57add455291ab8",27:"92bfb161b420732902a3",28:"2e0277168c8f14f9c085",29:"128101fabb544e88e448",30:"1ffda412dea3c5f55c24",31:"1e6ed4b31ac8c0dc44cd",32:"08cc7807b71cf869e6e2",33:"601eab9a8c9d80755599",34:"b03038da5530dcb82c85",35:"d337b2f1aeac7bab3100",36:"780bcf12c8d8b5742eac",37:"2204724b4ae08556283e",38:"0edff4c7b76c9652f664",39:"f691f87a4527e58da4a2",40:"53352fda81f370182e99",41:"5a0ecbdf78c48ddce365",42:"6a677110f335d516813b",43:"bcf30fa642d63c585962",44:"f3060f0a04c90bc70a36",45:"001b1bcbff1d7c9b3288",46:"7682ca54e79000d992ab",47:"7e030d52af57062c6527",48:"669aedf81599ca0aee35",49:"319507fd2417a71a157e",50:"91efd0f7c94e635eb31b",51:"9696bc200e07cfc15860",52:"37332ab2c0675e0a802c",53:"967c8f3d2a9f33fcfc27",54:"07a064723a033340c51b",55:"1f556c49966d089af28e",56:"0bfd1ac12b2c5f9116e5",57:"19a0ece12b6fb894221d",58:"b741d32027a50f883617",59:"01fd6bb0dea0e31b8c98",60:"dd84d15683316fe6c548",61:"2fdefec6b0e4f2f01dc9",62:"3cda5cf1c8a74f8bccc6",63:"dbce2c16115eac52fed2",64:"0b46f2876921c15c0f4d",65:"4c044f55fb8e826c87a0",66:"c8b9472b02654a17b61c",67:"958136cd17ad37887b60",68:"b4bf34276a3cab5e48bf",69:"68337b9a2e3104600ff6",70:"e04eced6ee3b7d712377",71:"0fbdedcc573e4e38ff6a",72:"e71caf5330e0c1cece04",73:"298162fe9ad207efe8a5",74:"b57c202b34d9d8effbcb",75:"8be72a221b92aa667da7",76:"0f45a150d03cf8aeeb9d",77:"257e393d86a8fb9f2102",78:"83432ef1cff39b57aa50",79:"74e2421bfb8f6c563a99",80:"53a2f5637376be338bb5",81:"a48e2d16edd121965d2f",82:"bde6d42f833167581069",83:"4bb7fb45433f0902ba64",84:"3fe74c343dd811256a58",85:"e34e2854ea217304bf69",86:"b6a6584bb48c2eba7793",87:"66c82919414d84bf1c91",88:"a54c809c84dbef177321",89:"08dc723465581d17e18c",90:"82bdd586c3a8e362fd99",91:"743cdf86c0680be894c9",92:"c68c7391efc7d3b46a0d",93:"daf27be7933412f1637f",94:"e7ab23159456b757afa9",95:"522b5e309c1f6989ec42",96:"53f0a874878aedfa987a",97:"f221163ec5e99caa0668",98:"1f20ae086eeefbf60b9f",99:"c4df74a95a465a7bc7e6",100:"534f37dd58edf9a6d699",101:"d85136c82944d96009d8",102:"a57d02f54d23e39ab220",103:"6edf5a9611097aac7b0e",104:"30887712ab9f944ce3b5",105:"8e0d511b2790a2c7a1f5",106:"dfa270c46faceb444b3a",107:"7e47259d1a1e92cc684a",108:"9d2fca01799579fd246a",109:"41cc535019ec49b7a449",110:"087f1045498ced6386ac",111:"d77e3e60f2db63fcd713",112:"6b5fac36fea6ec10ccf7",113:"85c3c663f3681b21e49d",114:"635dc2e74009c95bf91e",115:"47fe6316b11ce761e8d3",116:"511ed0fc7766ce1c5dbe",117:"ff4f162729afc19137ca",118:"ce4cb2610bcae2cec5b4",119:"e2a1ccb260af6cddd91c",120:"3be53a400b5e5d0b8bbf",121:"4493eca5616735378bb8",122:"d5d3e1f5e5c8f632795f",123:"eb8114707f15749a90ae",124:"66c3ddc58390694a3a98",125:"48215e946747137bf6c8",126:"119b23fe77d130cd15f2",127:"8e57d1e19372e120aeba",128:"96d9076518cacd42230d",129:"c8071eddb4e6ac450d14",130:"4ef543acc845d7dfcc8d",131:"f41a0b6b9036447b1077",132:"3666a6511534abe54b6a",133:"cb22542677a1fde54231",134:"16abd209e3e07d89821b",135:"e71755f6f0278b2943d0",136:"81439d8a1b2d7dfed6c7",137:"ae6fae38c2b6fd89a566",138:"8885afc315c221adb64b",139:"f02901e6087085176dc7",140:"f0e54b9511ca99865d9d",141:"46aad99634d1bfe2b58a",142:"d2aaa85171c7449f2f85",143:"802e7b37a5e69e8637a2",144:"5f21450a9ba89abcb82f",145:"2ea88cbccd93fc9fa454",146:"e7b99166958dc75f43e7",147:"7abb3c6ae63a13eb61a5",148:"b9aa2392ff5063d92341",149:"c2b7461cdb7018d8a7ac",150:"c1303d8109786b40d21a",151:"b909ba9cb2419e0f91dd",152:"20fec292fccfef232845",153:"7413dfe6871e27f43788",154:"19d1b00bfc1e419adc42",155:"dd57193f58cc7d5262b8",156:"258d084f62fa73d45ded",157:"60074b591e62c10a77ed",158:"742c03d8e739b04df049",159:"41a2a6b6b485989a9412",160:"7616cb8b729cfbe229fb",161:"cc79ca9a079e616ba9e6",162:"78a734f7eb6bd4583f17",163:"5dbf48d936a3c831c9b5",164:"d3220f317e31f573b335",165:"4b88e7b3b3a273cb4ed1",166:"92928a8fa8ec48d00349",167:"b38a507dbcfd6329cf8c",168:"c52d0bbbd4224ddadd7c",169:"f6823be6839682f8586c",170:"8baf5e20de2271caf978",171:"a46d6b00949dbdbbc38e",172:"9b5d17e5c772c53243e9",173:"d3bbff40e6f45969410d",174:"6d17f7732045b6f182a0",175:"7bc87231bd4677800c77",176:"f7a1a4fdd12ad86f3d08",177:"1023531c905d87b8a4ac",178:"cb8324bb00103fb26cfb",179:"e4bea06f7e407436dce7",180:"bd3f5149f861a2586ffb",181:"393af0e6c19d537f775b",182:"9b7c235aa984ad81ab02",183:"2f7def34c47fd1bc38b3",184:"a71cd41118f14e2c123f",185:"31a5c2ddc3afdffdc9e5",186:"daffd5d0823f56ba3c54",187:"4b22405c17194851a1e1",188:"bce7651d7bd1e88d7689",189:"4456ac2b4559c9c4e808",190:"d758ca3d4a14b7273bab",191:"8c31e698a482ba52ca82",192:"944cc89f4d31c0fd8f79",193:"fad67143e7b911118459",194:"a4f892be39e071e2552a",195:"7f8774fd8da98c5897a1",196:"3ab76ea57aaa91d34511",197:"9bbab0d7f35c2b58914f",198:"813986f24f2f7887e738",199:"246f0549d7bdf7c18215",200:"20f4846b9ed97b60def3",201:"768937613e43caedd9fc",202:"0d38d4ec1e39e8ca91b7",203:"a78dd70f65b08ecb58d2",204:"e1f61ba757fbc813e6d4",205:"cc2c5786dff7bf31b08c",206:"dadf18fb31b0533b1696",207:"44dbc18bb4c8fa07cc66",208:"dda72c8e3795ba716704",209:"7f8b6e8e2869b51c554c",210:"6d601b172d76d9bc2c98",211:"ad09e493e9be031887e9",212:"364965f963bcd6331e6f",213:"6c5b540986e7b24a338a",214:"3c333d59839d2bcd183e",215:"a95cf561d38004eff071",216:"acdd4ee62af663ab18a1",217:"38ab6d3450c36fe8104f",218:"66399da8a64421df67c1",219:"05c3d5e61c9bb4752e5f",220:"069190d187dfc576daed",221:"3553362f556124c787a8",222:"5ec7607217a3cb97b293",223:"37d133ce14e20b0efe2d",224:"acc9afbc9e926356519a",225:"ba9860341f9eba2c1f2d",226:"0a305eb2e34c9d3fb3ce",227:"357506866df2e0ba1ae1",228:"21cb62126a898299b993",229:"227a956358ad27627e2c",230:"215c4242d4a205df5b8e",231:"fd7222ca89363294fe39",232:"ddae678620e7c15b8ec4",233:"007908cb7a913f1554ed",234:"de1618094d091408fd6d",235:"97d46a9b6277079ae6cc",236:"ec2ada8b5f2aec3204f5",239:"e5e420bcb04603449d09",241:"efe4b0ec258663b8b247",242:"7be67f4aaa4647098043",243:"36fbc0c96d0a35048949",244:"526affae61c05ae944d3",245:"feedc08d977143faa08e",246:"136fac3b1ce27662490d",247:"71aeac059bcf9ed9b392",248:"94d8fea9b5ce15519623",249:"234cb407b6a647179cf2",250:"3ed03b7e55905888d992",251:"efa949bd1ee44f4290ed",252:"5705d631c738e4d8e996",253:"8752156b82db62eb4c92",254:"986c95170a74cc76c5e5",255:"53ff457cdf06dc0de427",256:"52e7acbbd3e7dde0df9f",257:"943f597bddc0d65103c5",258:"db5554df6956ecfc7dec",259:"2c88332b7f1b47935a47",260:"d745422c537bdd9647bb",261:"7efff7f93f61f061f5ca",262:"3b9c687ab8c9b9282f5a",263:"9c4ce329ffd095c5d1c6",264:"0504ff98a1b50e9d2486",265:"a0af2676b1495c6231cc",266:"31dcc9c203106832e08a",267:"3befe4deb9b75cd5d7ba",268:"c7dc883261346f81be82",269:"601d4fc4300f4553d75c",270:"e9d338a5cf954fbc1f4c",271:"a88eeff63bbc87791af0",272:"ddacc590a66bdb0fa651",273:"d45db281162abbe864ae",274:"eca3da80ab4f0b4a3263",275:"509ea766eda3bbcf1562",276:"f816f19aaa4522373a5f",277:"6c6b5259fa26936adf41",278:"bfc453e4fdb94806e6fc",279:"855b2c767116d91fdc3b",280:"95394d461866b83c32b7",281:"fcaf9deb44f93c85ef68",282:"bede8a18d3e678b7895d",283:"bf3ea5f6f6b8406e5401",284:"3f34606cfbcefb0a1a47",285:"4e95ca9e283ddd26fcbf",286:"8c8f50e9844881f0b028",287:"23b580771ee0d5e65d41",288:"6cef162ec3cec3cde603",289:"c47fa5cd7d5468dce45f",290:"b9baf8eed99b4447f086",291:"1e7bf6b667f7698ac645",292:"44bcf6642bd3fac703b4",293:"184eb39d3229ef066269",294:"338c276decc123976f73",295:"72eea8b2cf594acd85e6",296:"8f11a500bce671ed75db",297:"71b96380e1103cd792d9",298:"39626a266f47903126bf",299:"d3636e77b768f4300e8c",300:"c9844b95b03ac7295e4f",301:"e9495589c306b342c312",302:"d16e044e23278bf1e922",303:"85715cdc00dfd6ef1521",304:"e055e669c9bad5898984"}[e]+".bundle.js"}(e);var u=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,n[1](u)}r[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var u=s;i(i.s=0)}({0:function(e,t,n){"use strict";n.r(t),n.d(t,"decodeHTML",(function(){return o}));n(7),n(43),n(50),n(322),n(59),n(323),n(37),n(38),n(51),n(52),n(53),n(54),n(55),n(56);var r=n(29);const i=(e,t)=>"undefined"==typeof window?Promise.resolve():Object(r.f)().then(()=>Object(r.b)([["ontotext-download-as",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["keyboard-shortcuts-dialog",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["alert-box",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["copy-resource-link-button",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["loader-component",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["ontotext-editable-text-field",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["ontotext-pagination",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["confirmation-dialog_9",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],renderingMode:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],changeRenderMode:[64],setQuery:[64],query:[64],getQuery:[64],isQueryValid:[64],openTab:[64],getQueryMode:[64],getQueryType:[64],getEmbeddedResultAsJson:[64],getEmbeddedResultAsCSV:[64],hideYasqeActionButton:[64],showYasqeActionButton:[64],abortQuery:[64],abortAllCountQuery:[64],resetResults:[64],isQueryDirty:[64]},[[9,"resize","onResize"],[8,"beforeunload","onBeforeunloadHandler"],[0,"internalCreateSavedQueryEvent","saveQueryHandler"],[0,"internalSaveQueryEvent","createSavedQueryHandler"],[0,"internalUpdateQueryEvent","updateSavedQueryHandler"],[0,"internalSaveQueryDialogClosedEvent","closeSaveDialogHandler"],[0,"internalShowSavedQueriesEvent","showSavedQueriesHandler"],[0,"internalSaveQuerySelectedEvent","savedQuerySelectedHandler"],[0,"internalEditSavedQueryEvent","editSavedQueryHandler"],[0,"internalSavedQuerySelectedForDeleteEvent","savedQuerySelectedForEditHandler"],[0,"internalConfirmationApprovedEvent","deleteSavedQueryHandler"],[0,"internalConfirmationRejectedEvent","closeSavedQueryDeleteConfirmationHandler"],[0,"internalCloseSavedQueriesPopupEvent","closeSavedQueriesPopupHandler"],[0,"internalSavedQuerySelectedForShareEvent","savedQuerySelectedForShareHandler"],[0,"internalShareQueryEvent","shareQueryHandler"],[0,"internalQueryShareLinkCopiedEvent","savedQueryShareLinkCopiedHandler"],[0,"internalShareQueryDialogClosedEvent","closeShareQueryDialogHandler"],[0,"internalResourceLinkDialogClosedEvent","resourceLinkDialogClosedHandler"],[0,"internalResourceLinkCopiedEvent","resourceLinkCopiedHandler"],[0,"internalShowResourceCopyLinkDialogEvent","showResourceCopyLinkDialogHandler"],[0,"internalDownloadAsEvent","onDownloadAsEventHandler"],[0,"internalNotificationMessageEvent","notificationMessageHandler"],[0,"internalQueryEvent","onQuery"],[0,"internalQueryExecuted","onInternalQueryExecuted"],[0,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"],[0,"internalCountQueryAbortedEvent","onCountQueryAborted"]]],[0,"copy-resource-link-dialog",{serviceFactory:[16],resourceLink:[1,"resource-link"]}],[0,"share-query-dialog",{config:[16],serviceFactory:[16]}],[0,"save-query-dialog",{serviceFactory:[16],data:[16],queryName:[32],query:[32],isPublic:[32],isNew:[32],isSaveAllowed:[32]},[[8,"keydown","keydownListener"]]],[0,"confirmation-dialog",{translationService:[16],config:[16]},[[8,"keydown","keydownListener"]]],[0,"saved-queries-popup",{config:[16],serviceFactory:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]}],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]},[[4,"keydown","keydownListener"]]]]],["ontotext-dropdown",[[0,"ontotext-dropdown",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],iconClass:[1,"icon-class"],open:[32],showTooltip:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]]],t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();const o=function(e){let t=document.createElement("textarea");return t.innerHTML=e,t.value},s=["ngRoute","graphdb.workbench.se.controllers","graphdb.framework.core","angularCancelOnNavigateModule","oc.lazyLoad","pascalprecht.translate","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.interceptors.authentication","graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch","graphdb.framework.core.directives.languageselector.languageselector","graphdb.framework.core.directives.angular-tooltips","graphdb.framework.core.directives.uppercased","graphdb.framework.guides.services","graphdb.framework.core.directives.operationsstatusesmonitor","graphdb.framework.core.directives.autocomplete","ngCustomElement"],a=["$routeProvider","$locationProvider","$menuItemsProvider","toastrConfig","localStorageServiceProvider","$uibTooltipProvider","$httpProvider","$templateRequestProvider","$translateProvider"];$.get("rest/info/version?local=1",(function(e){const t=e.productVersion.match(/^(\d+\.\d+)/);t.length?e.productShortVersion=t[1]:e.productShortVersion=e.productVersion;const r=e.productVersion.match(/(-.*?)(-|$)/);r&&r.length&&(e.productShortVersion=e.productShortVersion+r[1]),function(e){i();const t=angular.module("graphdb.workbench",s);t.config([...a,function(t,r,i,o,s,a,u,l,c){c.useStaticFilesLoader({prefix:"i18n/locale-",suffix:".json?v=2.6.2"}),c.preferredLanguage("en"),c.useSanitizeValueStrategy("escape"),angular.extend(o,{timeOut:5e3,positionClass:"toast-bottom-right",tapToDismiss:!1,extendedTimeOut:5e3}),s.setStorageType("localStorage").setNotify(!0,!0);var p=t.$get[t.$get.length-1]({$on:function(){}});t.when("_openid_implicit_",{controller:function(){},template:"<div></div>"}),p.routes._openid_implicit_.regexp=/[&/](?:id_token=.*&access_token=|access_token=.*&id_token=)/;let h=PluginRegistry.get("route");angular.forEach(h,(function(e){t.when(e.url,{controller:e.controller,templateUrl:e.templateUrl,title:e.title,helpInfo:e.helpInfo,reloadOnSearch:void 0===e.reloadOnSearch||e.reloadOnSearch,resolve:{preload:["$ocLazyLoad","$q",function(t,r){return e.path?n(325)("./"+e.path).then(n=>{t.inject(e.module)}):r.defer().resolve()}]}})})),t.otherwise({templateUrl:"pages/not_found.html"}),r.html5Mode(!0),a.setTriggers({show:"hide"}),a.options({appendToBody:!0}),i.setProductInfo(e),PluginRegistry.get("main.menu").forEach((function(e){e.items.forEach((function(e){i.addItem(e)}))})),u.interceptors.push("$unauthorizedInterceptor"),u.interceptors.push("$authenticationInterceptor");const d=l.$get[3];"function"==typeof d&&(l.$get[3]=function(e,t,n){const r=d(e,t,n);return function(t,n){return e.get(t)||(t+="?v=2.6.2"),r(t,n)}})}]),t.constant("productInfo",e),t.run(["$rootScope","$route","toastr","$sce","$translate","ThemeService","WorkbenchSettingsStorageService","LSKeys","GuidesService",function(e,t,n,r,i,s,a,u,l){function c(){t.current.title?document.title=o(i.instant(t.current.title))+" | GraphDB Workbench":document.title="GraphDB Workbench",e.helpInfo=r.trustAsHtml(o(i.instant(t.current.helpInfo))),e.title=o(i.instant(t.current.title))}e.$on("$routeChangeSuccess",(function(){c(),n.clear()})),e.$on("$translateChangeSuccess",(function(){c()}));const p=a.getThemeName();s.applyTheme(p),s.applyDarkThemeMode(),l.init()}]),t.filter("titlecase",(function(){return function(e){var t=""+e;return t.charAt(0).toUpperCase()+t.slice(1)}})),angular.bootstrap(document,["graphdb.workbench"])}(e)}))},1:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_GROUP_TYPE",(function(){return r}));const r={IMPORT_OPERATION:"IMPORT_OPERATION",QUERIES_OPERATION:"QUERIES_OPERATION",BACKUP_AND_RESTORE_OPERATION:"BACKUP_AND_RESTORE_OPERATION",CLUSTER_OPERATION:"CLUSTER_OPERATION"}},10:function(e,t){function n(e,t){return{get:function(t){return e.get(t)},set:function(t,n){e.set(t,n)},keys:n,remove:r,clearAll:function(){e.clearAll()},clearClassHieararchyState:function(){n().forEach((function(e){0!==e.indexOf("classHierarchy-")||e===t.CLASS_HIERARCHY_HIDE_PREFIXES||e.startsWith("classHierarchy-selectedGraph-")||r(e)}))}};function n(){return e.keys()}function r(t){e.remove(t)}}angular.module("graphdb.framework.utils.localstorageadapter",[]).factory("LocalStorageAdapter",n).value("LSKeys",{TABS_STATE:"tabs-state",TABS_STATE_CURRENT_ID:"tabs-state-currentid",TABS_STATE_MAXID:"tabs-state-maxid",VIEW_MODE:"viewMode",CLASS_HIERARCHY_HIDE_PREFIXES:"classHierarchy-hidePrefixes",CLASS_HIERARCHY_CURRENT_SLIDER_VALUE:"classHierarchy-currentSliderValue",CLASS_HIERARCHY_SWITCH_PREFIXES:"classHierarchy-switchPrefixes",CLASS_HIERARCHY_LAST_SELECTED_CLASS:"classHierarchy-lastSelectedClass",DOMAIN_RANGE_WENT_BACK:"domainRange-wentBack",DOMAIN_RANGE_COLLAPSE_EDGES:"domainRange-collapseEdges",HIDE_SIMILARITY_HELP:"hide-similarity-help",TUTORIAL_STATE:"tutorial-state",MENU_STATE:"menu-state",HIDE_GRAPH_CONFIG_HELP:"hide-graph-config-help",GRAPHS_VIZ:"graphs-viz",AUTOCOMPLETE_ENABLED:"autocomplete.enabled",RDF_SEARCH_TYPE:"rdf-search.search-type",RDF_SEARCH_INPUT:"rdf-search.search-input",RDF_SEARCH_EXPANDED_URI:"rdf-search.search-expanded-uri",RDF_RESOURCE_DESCRIPTION:"rdf-search.resource-description",PREFERRED_LANG:"preferred-language",WORKBENCH_SETTINGS:"workbench-settings",REPOSITORY_ID:"repository-id",REPOSITORY_LOCATION:"repository-location"}),n.$inject=["localStorageService","LSKeys"]},11:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},12:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryMode",(function(){return r}));const r={UPDATE:"update",QUERY:"query"}},127:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},13:function(e,t,n){"use strict";n.r(t),n.d(t,"GUIDE_ID",(function(){return ln})),n.d(t,"GUIDE_CURRENT_STEP_ID",(function(){return cn})),n.d(t,"GUIDE_STEP_HISTORY",(function(){return pn})),n.d(t,"GUIDE_PAUSE",(function(){return hn}));var r=n(2),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};
2
2
  /*! shepherd.js 11.2.0 */var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?p((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=s(e[t],n)})),u(t).forEach((function(i){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(l(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return p;var n=t.customMerge(e);return"function"==typeof n?n:p}(i,n)(e[i],t[i],n):r[i]=s(t[i],n))})),r}function p(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):s(t,n)}p.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return p(e,n,t)}),{})};var h=p;function d(e){return e instanceof HTMLElement}function f(e){return"function"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}class v{on(e,t,n,r=!1){return m(this.bindings)&&(this.bindings={}),m(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r}),this}once(e,t,n){return this.on(e,t,n,!0)}off(e,t){return m(this.bindings)||m(this.bindings[e])||(m(t)?delete this.bindings[e]:this.bindings[e].forEach((n,r)=>{n.handler===t&&this.bindings[e].splice(r,1)})),this}trigger(e,...t){return!m(this.bindings)&&this.bindings[e]&&this.bindings[e].forEach((n,r)=>{const{ctx:i,handler:o,once:s}=n,a=i||this;o.apply(a,t),s&&this.bindings[e].splice(r,1)}),this}}function y(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];"constructor"!==r&&"function"==typeof i&&(e[r]=i.bind(e))}return e}function b(e){const{event:t,selector:n}=e.options.advanceOn||{};if(!t)return console.error("advanceOn was defined, but no event name was passed.");{const r=function(e,t){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!m(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}(n,e);let i;try{i=document.querySelector(n)}catch(e){}if(!m(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: "+n);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}}function w(e){return g(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function x(e){return null==e||(!e.element||!e.on)}function S(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const A=Math.min,F=Math.max,C=Math.round,D=Math.floor,T=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"},I={start:"end",end:"start"};function P(e,t,n){return F(e,A(t,n))}function k(e,t){return"function"==typeof e?e(t):e}function O(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function N(e){return"y"===e?"height":"width"}function L(e){return["top","bottom"].includes(O(e))?"y":"x"}function B(e){return j(L(e))}function U(e){return e.replace(/start|end/g,e=>I[e])}function M(e){return e.replace(/left|right|bottom|top/g,e=>R[e])}function H(e){return"number"!=typeof e?function(e){return E({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function V(e){return E({},e,{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}const q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],K=["mainAxis","crossAxis","limiter"];function z(e,t,n){let{reference:r,floating:i}=e;const o=L(t),s=B(t),a=N(s),u=O(t),l="y"===o,c=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let d;switch(u){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:p};break;case"left":d={x:r.x-i.width,y:p};break;default:d={x:r.x,y:r.y}}switch(_(t)){case"start":d[s]-=h*(n&&l?-1:1);break;case"end":d[s]+=h*(n&&l?-1:1)}return d}async function G(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=k(t,e),f=H(d),g=a[h?"floating"===p?"reference":"floating":p],m=V(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:u})),v="floating"===p?E({},s.floating,{x:r,y:i}):s.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=V(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:u}):v);return{top:(m.top-w.top+f.top)/b.y,bottom:(w.bottom-m.bottom+f.bottom)/b.y,left:(m.left-w.left+f.left)/b.x,right:(w.right-m.right+f.right)/b.x}}const W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:u}=t,l=k(e,t),{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0}=l,m=$(l,q),v=O(r),y=O(s)===s,b=await(null==a.isRTL?void 0:a.isRTL(u.floating)),w=h||(y||!g?[M(s)]:function(e){const t=M(e);return[U(e),t,U(t)]}(s));h||"none"===f||w.push(...function(e,t,n,r){const i=_(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}(O(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(U)))),o}(s,g,f,b));const x=[s,...w],S=await G(t,m),E=[];let A=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&E.push(S[v]),p){const e=function(e,t,n){void 0===n&&(n=!1);const r=_(e),i=B(e),o=N(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=M(s)),[s,M(s)]}(r,o,b);E.push(S[e[0]],S[e[1]])}if(A=[...A,{placement:r,overflows:E}],!E.every(e=>e<=0)){var F,C;const e=((null==(F=i.flip)?void 0:F.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(C=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(d){case"bestFit":{var D;const e=null==(D=A.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Y=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=k(e,t),c={x:n,y:r},p=L(i),h=j(p);let d=c[h],f=c[p];const g=k(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:E({mainAxis:0,crossAxis:0},g);if(u){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+m.mainAxis,n=o.reference[h]+o.reference[e]-m.mainAxis;d<t?d=t:d>n&&(d=n)}if(l){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(O(i)),n=o.reference[p]-o.floating[e]+(t&&(null==(v=s.offset)?void 0:v[p])||0)+(t?0:m.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[p])||0)-(t?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[h]:d,[p]:f}}}};function X(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function J(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return e instanceof Node||e instanceof Q(e).Node}function ee(e){return e instanceof Element||e instanceof Q(e).Element}function te(e){return e instanceof HTMLElement||e instanceof Q(e).HTMLElement}function ne(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot)}function re(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ie(e){return["table","td","th"].includes(X(e))}function oe(e){const t=se(),n=ue(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function se(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(e){return["html","body","#document"].includes(X(e))}function ue(e){return Q(e).getComputedStyle(e)}function le(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ce(e){if("html"===X(e))return e;const t=e.assignedSlot||e.parentNode||ne(e)&&e.host||J(e);return ne(t)?t.host:t}function pe(e,t){var n;void 0===t&&(t=[]);const r=function e(t){const n=ce(t);return ae(n)?t.ownerDocument?t.ownerDocument.body:t.body:te(n)&&re(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Q(r);return i?t.concat(o,o.visualViewport||[],re(r)?r:[]):t.concat(r,pe(r))}function he(e){const t=ue(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=te(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=C(n)!==o||C(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function de(e){return ee(e)?e:e.contextElement}function fe(e){const t=de(e);if(!te(t))return T(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=he(t);let s=(o?C(n.width):n.width)/r,a=(o?C(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ge=T(0);function me(e){const t=Q(e);return se()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ge}function ve(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=de(e);let s=T(1);t&&(r?ee(r)&&(s=fe(r)):s=fe(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Q(e))&&t}(o,n,r)?me(o):T(0);let u=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,c=i.width/s.x,p=i.height/s.y;if(o){const e=Q(o),t=r&&ee(r)?Q(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=fe(n),t=n.getBoundingClientRect(),r=ue(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,p*=e.y,u+=i,l+=o,n=Q(n).frameElement}}return V({width:c,height:p,x:u,y:l})}function ye(e){return ve(J(e)).left+le(e).scrollLeft}function be(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Q(e),r=J(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,u=0;if(i){o=i.width,s=i.height;const e=se();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:a,y:u}}(e,n);else if("document"===t)r=function(e){const t=J(e),n=le(e),r=e.ownerDocument.body,i=F(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=F(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ye(e);const a=-n.scrollTop;return"rtl"===ue(r).direction&&(s+=F(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(J(e));else if(ee(t))r=function(e,t){const n=ve(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=te(e)?fe(e):T(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=me(e);r=E({},t,{x:t.x-n.x,y:t.y-n.y})}return V(r)}function we(e,t){const n=ce(e);return!(n===t||!ee(n)||ae(n))&&("fixed"===ue(n).position||we(n,t))}function xe(e,t,n){const r=te(t),i=J(t),o="fixed"===n,s=ve(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const u=T(0);if(r||!r&&!o)if(("body"!==X(t)||re(i))&&(a=le(t)),r){const e=ve(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ye(i));return{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}function Se(e,t){return te(e)&&"fixed"!==ue(e).position?t?t(e):e.offsetParent:null}function Ee(e,t){const n=Q(e);if(!te(e))return n;let r=Se(e,t);for(;r&&ie(r)&&"static"===ue(r).position;)r=Se(r,t);return r&&("html"===X(r)||"body"===X(r)&&"static"===ue(r).position&&!oe(r))?n:r||function(e){let t=ce(e);for(;te(t)&&!ae(t);){if(oe(t))return t;t=ce(t)}return null}(e)||n}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=te(n),o=J(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a=T(1);const u=T(0);if((i||!i&&"fixed"!==r)&&(("body"!==X(n)||re(o))&&(s=le(n)),te(n))){const e=ve(n);a=fe(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+u.x,y:t.y*a.y-s.scrollTop*a.y+u.y}},getDocumentElement:J,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=pe(e).filter(e=>ee(e)&&"body"!==X(e)),i=null;const o="fixed"===ue(e).position;let s=o?ce(e):e;for(;ee(s)&&!ae(s);){const t=ue(s),n=oe(s);n||"fixed"!==t.position||(i=null);(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||re(s)&&!n&&we(e,s))?r=r.filter(e=>e!==s):i=t,s=ce(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=be(t,n,i);return e.top=F(r.top,e.top),e.right=A(r.right,e.right),e.bottom=A(r.bottom,e.bottom),e.left=F(r.left,e.left),e},be(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Ee,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Ee,o=this.getDimensions;return{reference:xe(t,await i(n),r),floating:E({x:0,y:0},await o(n))}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return he(e)},getScale:fe,isElement:ee,isRTL:function(e){return"rtl"===ue(e).direction}};function Ae(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=de(e),c=i||o?[...l?pe(l):[],...pe(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const p=l&&a?function(e,t){let n,r=null;const i=J(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),o();const{left:l,top:c,width:p,height:h}=e.getBoundingClientRect();if(a||t(),!p||!h)return;const d={rootMargin:-D(c)+"px "+-D(i.clientWidth-(l+p))+"px "+-D(i.clientHeight-(c+h))+"px "+-D(l)+"px",threshold:F(0,A(1,u))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!f)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},100)}f=!1}try{r=new IntersectionObserver(g,E({},d,{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(g,d)}r.observe(e)}(!0),o}(l,n):null;let h,d=-1,f=null;s&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(t)})),n()}),l&&!u&&f.observe(l),f.observe(t));let g=u?ve(e):null;return u&&function t(){const r=ve(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,h=requestAnimationFrame(t)}(),n(),()=>{c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),p&&p(),f&&f.disconnect(),f=null,u&&cancelAnimationFrame(h)}}const Fe=(e,t,n)=>{const r=new Map,i=E({platform:$e},n),o=E({},i.platform,{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:p}=z(l,r,u),h=r,d={},f=0;for(let n=0;n<a.length;n++){const{name:o,fn:g}=a[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:l,platform:s,elements:{reference:e,floating:t}});c=null!=m?m:c,p=null!=v?v:p,d=E({},d,{[o]:E({},d[o],y)}),b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:p}=z(l,h,u))),n=-1)}return{x:c,y:p,placement:h,strategy:i,middlewareData:d}})(e,t,E({},i,{platform:o}))};function Ce(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=function(e,t){const n={strategy:"absolute",middleware:[]},r=function(e){if(e.options.arrow&&e.el)return e.el.querySelector(".shepherd-arrow");return!1}(t);x(e)||(n.middleware.push(W(),function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=k(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,l=$(o,K),c={x:n,y:r},p=await G(t,l),h=L(O(i)),d=j(h);let f=c[d],g=c[h];if(s){const e="y"===d?"bottom":"right";f=P(f+p["y"===d?"top":"left"],f,f-p[e])}if(a){const e="y"===h?"bottom":"right";g=P(g+p["y"===h?"top":"left"],g,g-p[e])}const m=u.fn(E({},t,{[d]:f,[h]:g}));return E({},m,{data:{x:m.x-n,y:m.y-r}})}}}({limiter:Y(),crossAxis:!0})),r&&n.middleware.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a}=t,{element:u,padding:l=0}=k(e,t)||{};if(null==u)return{};const c=H(l),p={x:n,y:r},h=B(i),d=N(h),f=await s.getDimensions(u),g="y"===h,m=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",b=o.reference[d]+o.reference[h]-p[h]-o.floating[d],w=p[h]-o.reference[h],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let S=x?x[y]:0;S&&await(null==s.isElement?void 0:s.isElement(x))||(S=a.floating[y]||o.floating[d]);const E=b/2-w/2,$=S/2-f[d]/2-1,F=A(c[m],$),C=A(c[v],$),D=F,T=S-f[d]-C,R=S/2-f[d]/2+E,I=P(D,R,T),O=null!=_(i)&&R!=I&&o.reference[d]/2-(R<D?F:C)-f[d]/2<0?R<D?D-R:T-R:0;return{[h]:p[h]-O,data:{[h]:I,centerOffset:R-I+O}}}}))({element:r})),n.placement=e.on);return h(t.options.floatingUIOptions||{},n)}(t,e),i=x(t);if(i){n=document.body;e.shepherdElementComponent.getElement().classList.add("shepherd-centered")}return e.cleanup=Ae(n,e.el,()=>{e.el?function(e,t,n,r){Fe(e,t.el,n).then(function(e,t){return({x:n,y:r,placement:i,middlewareData:o})=>e.el?(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:n+"px",top:r+"px"}),e.el.dataset.popperPlacement=i,function(e,t){const n=e.querySelector(".shepherd-arrow");if(n&&t.arrow){const{x:e,y:r}=t.arrow;Object.assign(n.style,{left:null!=e?e+"px":"",top:null!=r?r+"px":""})}}(e.el,o),e):e}(t,r)).then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{e&&e.el&&e.el.focus({preventScroll:!0})})}(n,e,r,i):e.cleanup()}),e.target=t.element,r}function De(){}function Te(e,t){for(const n in t)e[n]=t[n];return e}function Re(e){return e()}function Ie(){return Object.create(null)}function Pe(e){e.forEach(Re)}function ke(e){return"function"==typeof e}function Oe(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function _e(e,t){e.appendChild(t)}function je(e,t,n){e.insertBefore(t,n||null)}function Ne(e){e.parentNode&&e.parentNode.removeChild(e)}function Le(e){return document.createElement(e)}function Be(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ue(e){return document.createTextNode(e)}function Me(){return Ue(" ")}function He(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ve(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const qe=["width","height"];function Ke(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===qe.indexOf(r)?e[r]=t[r]:Ve(e,r,t[r])}function ze(e,t,n){e.classList[n?"add":"remove"](t)}let Ge;function We(e){Ge=e}function Ye(){if(!Ge)throw new Error("Function called outside component initialization");return Ge}function Xe(e){Ye().$$.after_update.push(e)}const Qe=[],Je=[];let Ze=[];const et=[],tt=Promise.resolve();let nt=!1;function rt(e){Ze.push(e)}const it=new Set;let ot=0;function st(){if(0!==ot)return;const e=Ge;do{try{for(;ot<Qe.length;){const e=Qe[ot];ot++,We(e),at(e.$$)}}catch(e){throw Qe.length=0,ot=0,e}for(We(null),Qe.length=0,ot=0;Je.length;)Je.pop()();for(let e=0;e<Ze.length;e+=1){const t=Ze[e];it.has(t)||(it.add(t),t())}Ze.length=0}while(Qe.length);for(;et.length;)et.pop()();nt=!1,it.clear(),We(e)}function at(e){if(null!==e.fragment){e.update(),Pe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(rt)}}const ut=new Set;let lt;function ct(){lt={r:0,c:[],p:lt}}function pt(){lt.r||Pe(lt.c),lt=lt.p}function ht(e,t){e&&e.i&&(ut.delete(e),e.i(t))}function dt(e,t,n,r){if(e&&e.o){if(ut.has(e))return;ut.add(e),lt.c.push(()=>{ut.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function ft(e){e&&e.c()}function gt(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||rt(()=>{const t=e.$$.on_mount.map(Re).filter(ke);e.$$.on_destroy?e.$$.on_destroy.push(...t):Pe(t),e.$$.on_mount=[]}),o.forEach(rt)}function mt(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];Ze.forEach(r=>-1===e.indexOf(r)?t.push(r):n.push(r)),n.forEach(e=>e()),Ze=t}(n.after_update),Pe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function vt(e,t){-1===e.$$.dirty[0]&&(Qe.push(e),nt||(nt=!0,tt.then(st)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function yt(e,t,n,r,i,o,s,a=[-1]){const u=Ge;We(e);const l=e.$$={fragment:null,ctx:[],props:o,update:De,not_equal:i,bound:Ie(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Ie(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(t,n,...r)=>{const o=r.length?r[0]:n;return l.ctx&&i(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),c&&vt(e,t)),n}):[],l.update(),c=!0,Pe(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){const e=(p=t.target,Array.from(p.childNodes));l.fragment&&l.fragment.l(e),e.forEach(Ne)}else l.fragment&&l.fragment.c();t.intro&&ht(e.$$.fragment),gt(e,t.target,t.anchor,t.customElement),st()}var p;We(u)}class bt{$destroy(){mt(this,1),this.$destroy=De}$on(e,t){if(!ke(t))return De;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function wt(e){let t,n,r,i,o;return{c(){t=Le("button"),Ve(t,"aria-label",n=e[3]?e[3]:null),Ve(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],Ve(t,"tabindex","0")},m(n,r){je(n,t,r),t.innerHTML=e[5],i||(o=He(t,"click",(function(){ke(e[0])&&e[0].apply(this,arguments)})),i=!0)},p(i,[o]){e=i,32&o&&(t.innerHTML=e[5]),8&o&&n!==(n=e[3]?e[3]:null)&&Ve(t,"aria-label",n),18&o&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&Ve(t,"class",r),4&o&&(t.disabled=e[2])},i:De,o:De,d(e){e&&Ne(t),i=!1,o()}}}function xt(e,t,n){let r,i,o,s,a,u,{config:l,step:c}=t;function p(e){return f(e)?e.call(c):e}return e.$$set=e=>{"config"in e&&n(6,l=e.config),"step"in e&&n(7,c=e.step)},e.$$.update=()=>{192&e.$$.dirty&&(n(0,r=l.action?l.action.bind(c.tour):null),n(1,i=l.classes),n(2,o=!!l.disabled&&p(l.disabled)),n(3,s=l.label?p(l.label):null),n(4,a=l.secondary),n(5,u=l.text?p(l.text):null))},[r,i,o,s,a,u,l,c]}class St extends bt{constructor(e){super(),yt(this,e,xt,wt,Oe,{config:6,step:7})}}function Et(e,t,n){const r=e.slice();return r[2]=t[n],r}function $t(e){let t,n,r=e[1],i=[];for(let t=0;t<r.length;t+=1)i[t]=At(Et(e,r,t));const o=e=>dt(i[e],1,1,()=>{i[e]=null});return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Ue("")},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);je(e,t,r),n=!0},p(e,n){if(3&n){let s;for(r=e[1],s=0;s<r.length;s+=1){const o=Et(e,r,s);i[s]?(i[s].p(o,n),ht(i[s],1)):(i[s]=At(o),i[s].c(),ht(i[s],1),i[s].m(t.parentNode,t))}for(ct(),s=r.length;s<i.length;s+=1)o(s);pt()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)ht(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)dt(i[e]);n=!1},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(i,e),e&&Ne(t)}}}function At(e){let t,n;return t=new St({props:{config:e[2],step:e[0]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.config=e[2]),1&n&&(r.step=e[0]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Ft(e){let t,n,r=e[1]&&$t(e);return{c(){t=Le("footer"),r&&r.c(),Ve(t,"class","shepherd-footer")},m(e,i){je(e,t,i),r&&r.m(t,null),n=!0},p(e,[n]){e[1]?r?(r.p(e,n),2&n&&ht(r,1)):(r=$t(e),r.c(),ht(r,1),r.m(t,null)):r&&(ct(),dt(r,1,1,()=>{r=null}),pt())},i(e){n||(ht(r),n=!0)},o(e){dt(r),n=!1},d(e){e&&Ne(t),r&&r.d()}}}function Ct(e,t,n){let r,{step:i}=t;return e.$$set=e=>{"step"in e&&n(0,i=e.step)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=i.options.buttons)},[i,r]}class Dt extends bt{constructor(e){super(),yt(this,e,Ct,Ft,Oe,{step:0})}}function Tt(e){let t,n,r,i,o;return{c(){t=Le("button"),n=Le("span"),n.textContent="×",Ve(n,"aria-hidden","true"),Ve(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),Ve(t,"class","shepherd-cancel-icon"),Ve(t,"type","button")},m(r,s){je(r,t,s),_e(t,n),i||(o=He(t,"click",e[1]),i=!0)},p(e,[n]){1&n&&r!==(r=e[0].label?e[0].label:"Close Tour")&&Ve(t,"aria-label",r)},i:De,o:De,d(e){e&&Ne(t),i=!1,o()}}}function Rt(e,t,n){let{cancelIcon:r,step:i}=t;return e.$$set=e=>{"cancelIcon"in e&&n(0,r=e.cancelIcon),"step"in e&&n(2,i=e.step)},[r,e=>{e.preventDefault(),i.cancel()},i]}class It extends bt{constructor(e){super(),yt(this,e,Rt,Tt,Oe,{cancelIcon:0,step:2})}}function Pt(e){let t;return{c(){t=Le("h3"),Ve(t,"id",e[1]),Ve(t,"class","shepherd-title")},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:De,o:De,d(n){n&&Ne(t),e[3](null)}}}function kt(e,t,n){let{labelId:r,element:i,title:o}=t;return Xe(()=>{f(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)}),e.$$set=e=>{"labelId"in e&&n(1,r=e.labelId),"element"in e&&n(0,i=e.element),"title"in e&&n(2,o=e.title)},[i,r,o,function(e){Je[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class Ot extends bt{constructor(e){super(),yt(this,e,kt,Pt,Oe,{labelId:1,element:0,title:2})}}function _t(e){let t,n;return t=new Ot({props:{labelId:e[0],title:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.labelId=e[0]),4&n&&(r.title=e[2]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function jt(e){let t,n;return t=new It({props:{cancelIcon:e[3],step:e[1]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.cancelIcon=e[3]),2&n&&(r.step=e[1]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Nt(e){let t,n,r,i=e[2]&&_t(e),o=e[3]&&e[3].enabled&&jt(e);return{c(){t=Le("header"),i&&i.c(),n=Me(),o&&o.c(),Ve(t,"class","shepherd-header")},m(e,s){je(e,t,s),i&&i.m(t,null),_e(t,n),o&&o.m(t,null),r=!0},p(e,[r]){e[2]?i?(i.p(e,r),4&r&&ht(i,1)):(i=_t(e),i.c(),ht(i,1),i.m(t,n)):i&&(ct(),dt(i,1,1,()=>{i=null}),pt()),e[3]&&e[3].enabled?o?(o.p(e,r),8&r&&ht(o,1)):(o=jt(e),o.c(),ht(o,1),o.m(t,null)):o&&(ct(),dt(o,1,1,()=>{o=null}),pt())},i(e){r||(ht(i),ht(o),r=!0)},o(e){dt(i),dt(o),r=!1},d(e){e&&Ne(t),i&&i.d(),o&&o.d()}}}function Lt(e,t,n){let r,i,{labelId:o,step:s}=t;return e.$$set=e=>{"labelId"in e&&n(0,o=e.labelId),"step"in e&&n(1,s=e.step)},e.$$.update=()=>{2&e.$$.dirty&&(n(2,r=s.options.title),n(3,i=s.options.cancelIcon))},[o,s,r,i]}class Bt extends bt{constructor(e){super(),yt(this,e,Lt,Nt,Oe,{labelId:0,step:1})}}function Ut(e){let t;return{c(){t=Le("div"),Ve(t,"class","shepherd-text"),Ve(t,"id",e[1])},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:De,o:De,d(n){n&&Ne(t),e[3](null)}}}function Mt(e,t,n){let{descriptionId:r,element:i,step:o}=t;return Xe(()=>{let{text:e}=o.options;f(e)&&(e=e.call(o)),d(e)?i.appendChild(e):n(0,i.innerHTML=e,i)}),e.$$set=e=>{"descriptionId"in e&&n(1,r=e.descriptionId),"element"in e&&n(0,i=e.element),"step"in e&&n(2,o=e.step)},[i,r,o,function(e){Je[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class Ht extends bt{constructor(e){super(),yt(this,e,Mt,Ut,Oe,{descriptionId:1,element:0,step:2})}}function Vt(e){let t,n;return t=new Bt({props:{labelId:e[1],step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.labelId=e[1]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function qt(e){let t,n;return t=new Ht({props:{descriptionId:e[0],step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.descriptionId=e[0]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Kt(e){let t,n;return t=new Dt({props:{step:e[2]}}),{c(){ft(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(ht(t.$$.fragment,e),n=!0)},o(e){dt(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function zt(e){let t,n,r,i,o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,s=!m(e[2].options.text),a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,u=o&&Vt(e),l=s&&qt(e),c=a&&Kt(e);return{c(){t=Le("div"),u&&u.c(),n=Me(),l&&l.c(),r=Me(),c&&c.c(),Ve(t,"class","shepherd-content")},m(e,o){je(e,t,o),u&&u.m(t,null),_e(t,n),l&&l.m(t,null),_e(t,r),c&&c.m(t,null),i=!0},p(e,[i]){4&i&&(o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled),o?u?(u.p(e,i),4&i&&ht(u,1)):(u=Vt(e),u.c(),ht(u,1),u.m(t,n)):u&&(ct(),dt(u,1,1,()=>{u=null}),pt()),4&i&&(s=!m(e[2].options.text)),s?l?(l.p(e,i),4&i&&ht(l,1)):(l=qt(e),l.c(),ht(l,1),l.m(t,r)):l&&(ct(),dt(l,1,1,()=>{l=null}),pt()),4&i&&(a=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length),a?c?(c.p(e,i),4&i&&ht(c,1)):(c=Kt(e),c.c(),ht(c,1),c.m(t,null)):c&&(ct(),dt(c,1,1,()=>{c=null}),pt())},i(e){i||(ht(u),ht(l),ht(c),i=!0)},o(e){dt(u),dt(l),dt(c),i=!1},d(e){e&&Ne(t),u&&u.d(),l&&l.d(),c&&c.d()}}}function Gt(e,t,n){let{descriptionId:r,labelId:i,step:o}=t;return e.$$set=e=>{"descriptionId"in e&&n(0,r=e.descriptionId),"labelId"in e&&n(1,i=e.labelId),"step"in e&&n(2,o=e.step)},[r,i,o]}class Wt extends bt{constructor(e){super(),yt(this,e,Gt,zt,Oe,{descriptionId:0,labelId:1,step:2})}}function Yt(e){let t;return{c(){t=Le("div"),Ve(t,"class","shepherd-arrow"),Ve(t,"data-popper-arrow","")},m(e,n){je(e,t,n)},d(e){e&&Ne(t)}}}function Xt(e){let t,n,r,i,o,s,a,u,l=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&Yt();r=new Wt({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let c=[{"aria-describedby":i=m(e[4].options.text)?null:e[2]},{"aria-labelledby":o=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],p={};for(let e=0;e<c.length;e+=1)p=Te(p,c[e]);return{c(){t=Le("div"),l&&l.c(),n=Me(),ft(r.$$.fragment),Ke(t,p),ze(t,"shepherd-has-cancel-icon",e[5]),ze(t,"shepherd-has-title",e[6]),ze(t,"shepherd-element",!0)},m(i,o){je(i,t,o),l&&l.m(t,null),_e(t,n),gt(r,t,null),e[13](t),s=!0,a||(u=He(t,"keydown",e[7]),a=!0)},p(e,[a]){e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on?l||(l=Yt(),l.c(),l.m(t,n)):l&&(l.d(1),l=null);const u={};4&a&&(u.descriptionId=e[2]),8&a&&(u.labelId=e[3]),16&a&&(u.step=e[4]),r.$set(u),Ke(t,p=function(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const e in s)e in a||(r[e]=1);for(const e in a)i[e]||(n[e]=a[e],i[e]=1);e[o]=a}else for(const e in s)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}(c,[(!s||20&a&&i!==(i=m(e[4].options.text)?null:e[2]))&&{"aria-describedby":i},(!s||24&a&&o!==(o=e[4].options.title?e[3]:null))&&{"aria-labelledby":o},2&a&&e[1],{role:"dialog"},{tabindex:"0"}])),ze(t,"shepherd-has-cancel-icon",e[5]),ze(t,"shepherd-has-title",e[6]),ze(t,"shepherd-element",!0)},i(e){s||(ht(r.$$.fragment,e),s=!0)},o(e){dt(r.$$.fragment,e),s=!1},d(n){n&&Ne(t),l&&l.d(),mt(r),e[13](null),a=!1,u()}}}function Qt(e){return e.split(" ").filter(e=>!!e.length)}function Jt(e,t,n){let r,i,o,{classPrefix:s,element:a,descriptionId:u,firstFocusableElement:l,focusableElements:c,labelId:p,lastFocusableElement:h,step:d,dataStepId:f}=t;var m;m=()=>{n(1,f={[`data-${s}shepherd-step-id`]:d.id}),n(9,c=a.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,l=c[0]),n(10,h=c[c.length-1])},Ye().$$.on_mount.push(m),Xe(()=>{o!==d.options.classes&&(function(e){if(g(e)){const t=Qt(e);t.length&&a.classList.remove(...t)}}(o),o=d.options.classes,function(e){if(g(e)){const t=Qt(e);t.length&&a.classList.add(...t)}}(o))});return e.$$set=e=>{"classPrefix"in e&&n(11,s=e.classPrefix),"element"in e&&n(0,a=e.element),"descriptionId"in e&&n(2,u=e.descriptionId),"firstFocusableElement"in e&&n(8,l=e.firstFocusableElement),"focusableElements"in e&&n(9,c=e.focusableElements),"labelId"in e&&n(3,p=e.labelId),"lastFocusableElement"in e&&n(10,h=e.lastFocusableElement),"step"in e&&n(4,d=e.step),"dataStepId"in e&&n(1,f=e.dataStepId)},e.$$.update=()=>{16&e.$$.dirty&&(n(5,r=d.options&&d.options.cancelIcon&&d.options.cancelIcon.enabled),n(6,i=d.options&&d.options.title))},[a,f,u,p,d,r,i,e=>{const{tour:t}=d;switch(e.keyCode){case 9:if(0===c.length){e.preventDefault();break}e.shiftKey?(document.activeElement===l||document.activeElement.classList.contains("shepherd-element"))&&(e.preventDefault(),h.focus()):document.activeElement===h&&(e.preventDefault(),l.focus());break;case 27:t.options.exitOnEsc&&(e.stopPropagation(),d.cancel());break;case 37:t.options.keyboardNavigation&&(e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.stopPropagation(),t.next())}},l,c,h,s,()=>a,function(e){Je[e?"unshift":"push"](()=>{a=e,n(0,a)})}]}class Zt extends bt{constructor(e){super(),yt(this,e,Jt,Xt,Oe,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class en extends v{constructor(e,t={}){return super(e,t),this.tour=e,this.classPrefix=this.tour.options?w(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,y(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){var e;(e=this).cleanup&&e.cleanup(),e.cleanup=null,d(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(f(n.element)&&(n.element=n.element.call(e)),g(n.element)){try{n.element=document.querySelector(n.element)}catch(e){}n.element||console.error("The element for this Shepherd step was not found "+t.element)}return n}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return f(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=this.id+"-description",t=this.id+"-label";return this.shepherdElementComponent=new Zt({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:t}=this._getResolvedAttachToOptions();f(this.options.scrollToHandler)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){const t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:"",r=t&&t.classes?t.classes:"",i=[...n.split(" "),...r.split(" ")],o=new Set(i);return Array.from(o).join(" ").trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=h({},t||{}),this.options=Object.assign({arrow:!0},t,e,function(e,t){return{floatingUIOptions:h(e.floatingUIOptions||{},t.floatingUIOptions||{})}}(t,e));const{when:n}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||"step-"+S(),n&&Object.keys(n).forEach(e=>{this.on(e,n[e],this)})}_setupElements(){m(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&b(this),Ce(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const e=this.shepherdElementComponent.getElement(),t=this.target||document.body;t.classList.add(this.classPrefix+"shepherd-enabled"),t.classList.add(this.classPrefix+"shepherd-target"),e.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const t=e.target;t&&(e.options.highlightClass&&t.classList.add(e.options.highlightClass),t.classList.remove("shepherd-target-click-disabled"),!1===e.options.canClickTarget&&t.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")}}function tn(e){let t,n,r,i,o;return{c(){t=Be("svg"),n=Be("path"),Ve(n,"d",e[2]),Ve(t,"class",r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(r,s){je(r,t,s),_e(t,n),e[11](t),i||(o=He(t,"touchmove",e[3]),i=!0)},p(e,[i]){4&i&&Ve(n,"d",e[2]),2&i&&r!==(r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Ve(t,"class",r)},i:De,o:De,d(n){n&&Ne(t),e[11](null),i=!1,o()}}}function nn(e,t,n){let{element:r,openingProperties:i}=t;S();let o,s=!1,a=void 0;u();function u(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function l(){n(1,s=!1),d()}function c(e=0,t=0,r,o){if(o){const{y:s,height:a}=function(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const e=t.getBoundingClientRect(),n=e.y||e.top,o=e.bottom||n+e.height;r=Math.max(r,n),i=Math.min(i,o)}return{y:r,height:Math.max(i-r,0)}}(o,r),{x:u,width:l,left:c}=o.getBoundingClientRect();n(4,i={width:l+2*e,height:a+2*e,x:(u||c)-e,y:s-e,r:t})}else u()}function p(){n(1,s=!0)}const h=e=>{e.preventDefault()};function d(){a&&(cancelAnimationFrame(a),a=void 0),window.removeEventListener("touchmove",h,{passive:!1})}return e.$$set=e=>{"element"in e&&n(0,r=e.element),"openingProperties"in e&&n(4,i=e.openingProperties)},e.$$.update=()=>{16&e.$$.dirty&&n(2,o=function({width:e,height:t,x:n=0,y:r=0,r:i=0}){const{innerWidth:o,innerHeight:s}=window,{topLeft:a=0,topRight:u=0,bottomRight:l=0,bottomLeft:c=0}="number"==typeof i?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${o},${s}H0V0H${o}V${s}ZM${n+a},${r}a${a},${a},0,0,0-${a},${a}V${t+r-c}a${c},${c},0,0,0,${c},${c}H${e+n-l}a${l},${l},0,0,0,${l}-${l}V${r+u}a${u},${u},0,0,0-${u}-${u}Z`}(i))},[r,s,o,e=>{e.stopPropagation()},i,()=>r,u,l,c,function(e){d(),e.tour.options.useModalOverlay?(!function(e){const{modalOverlayOpeningPadding:t,modalOverlayOpeningRadius:n}=e.options,r=function e(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentElement)}(e.target),i=()=>{a=void 0,c(t,n,r,e.target),a=requestAnimationFrame(i)};i(),window.addEventListener("touchmove",h,{passive:!1})}(e),p()):l()},p,function(e){Je[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}class rn extends bt{constructor(e){super(),yt(this,e,nn,tn,Oe,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const on=new v;class sn extends v{constructor(e={}){super(e),y(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=w(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(e=>{(e=>{this.on(e,t=>{(t=t||{}).tour=this,on.trigger(e,t)})})(e)}),this._setTourID(),this}addStep(e,t){let n=e;return n instanceof en?n.tour=this:n=new en(this,n),m(t)?this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e="function"==typeof this.options.confirmCancel,t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";(e?await this.options.confirmCancel():window.confirm(t))&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return on.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const t=this.getCurrentStep();this.steps.some((t,n)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){const n=g(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();f(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(e){const t=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(e){if(e){const{steps:t}=e;t.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(e,{index:t}),on.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===e||"complete"===e)&&this.modal){const e=document.querySelector(".shepherd-modal-overlay-container");e&&e.remove()}d(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),on.activeTour=this}_setupModal(){this.modal=new rn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(e,t){const n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const e=t?n+1:n-1;this.show(e,t)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const e=this.options.tourName||"tour";this.id=`${e}--${S()}`}}const an="undefined"==typeof window;class un{constructor(){}}an?Object.assign(on,{Tour:un,Step:un}):Object.assign(on,{Tour:sn,Step:en});const ln="shepherd.guide_id",cn="shepherd.guide.current.step.id",pn="shepherd.guide.step.history",hn="shepherd.guide.pause";function dn(e,t,n,i,o,s,a){this.guideCancelSubscription=void 0,this.onPause=()=>{},this.onCancel=()=>{},this.startGuide=(e,t,r,i=!0)=>{if(i&&n.remove(pn),!t)return;const o=this._createGuide(e);this._addGuideSteps(o,t),this._startGuide(o,r)},this.resumeGuide=(e,t,r)=>{n.set(hn,!1),this.startGuide(e,t,r,!1)},this.isActive=()=>on.activeTour&&!this.isPaused(),this.isPaused=()=>"true"===n.get(hn),this.getGuideId=()=>n.get(ln),this.getCurrentStepId=()=>n.get(cn),this.subscribeToGuideCancel=e=>{angular.isFunction(e)&&(this.onCancel=e)},this.subscribeToGuidePause=e=>{angular.isFunction(e)&&(this.onPause=e)},this._createGuide=e=>(this._subscribeToGuideCanceled(),new on.Tour({name:e,useModalOverlay:!0,confirmCancel:!0,confirmCancelMessage:t.instant("guide.confirm.cancel.message"),defaultStepOptions:{classes:"shadow-md bg-purple-dark",scrollTo:!0}})),this._addGuideSteps=(e,t)=>{if(t.length>0&&e.addStep(this._getFirstStep(e,t)),t.length>2)for(let n=1;n<t.length-1;n++)e.addStep(this._getMiddleStep(e,t,n));t.length>1&&e.addStep(this._getLastStep(e,t))},this._startGuide=(o,a)=>{n.remove(hn);let u=o.steps.findIndex(e=>e.options.id===a);u<0&&(u=0);const l=o.steps[u],c=l.options.url;c&&(e.url(c),i.reload()),l.options.attachTo?r.GuideUtils.waitFor(l.options.attachTo.element,l.options.maxWaitTime).then(()=>o.show(u)).catch(e=>{console.log(e),s.error(t.instant("guide.start.unexpected.error.message"))}):o.show(u)},this._subscribeToGuideCanceled=()=>{this.guideCancelSubscription||(this.guideCancelSubscription=on.on("cancel",()=>{this._clearLocaleStorage();const e=on.activeTour.getCurrentStep();e&&angular.isFunction(e.hide)&&e.hide(),this.onCancel&&this.onCancel()}))},this._getFirstStep=function(e,t){const n=t.length>1?t[1]:void 0;return this._toGuideStep(e,void 0,t[0],n)},this._getMiddleStep=(e,t,n)=>this._toGuideStep(e,t[n-1],t[n],t[n+1]),this._getLastStep=(e,t)=>{const n=this._toGuideStep(e,null,t[t.length-1]);return n.buttons.push(this._getBackToGuidesButton(e)),n.buttons.push(this._getCancelButton(e)),n},this._getBackToGuidesButton=e=>this._getButton(t.instant("back.to.guides.btn"),()=>this._backToGuidesButton(e),!0),this._getCancelButton=e=>this._getButton(t.instant("common.close"),()=>this._cancelGuide(e,!1),!0),this._backToGuidesButton=t=>{e.path("guides"),this._cancelGuide(t,!1)},this._cancelGuide=(e,t=!0)=>{e.options.confirmCancel=t,e.cancel(),this.onCancel()&&this.onCancel()},this._toGuideStep=(e,n,r,i)=>{const o=this._toBaseGuideStep(e,t,r,()=>this._updateLocalStorage()),s=[];return r.skipPoint&&s.push(this._getSkipButton(e)),n&&s.push(this._getPreviousButton(e)),i&&s.push(this._getNextButton(e,r,i)),o.buttons=s,o},this._getPauseButton=e=>this._getButton(t.instant("pause.btn"),()=>this._pauseGuide(e),!0),this._getSkipButton=e=>this._getButton(t.instant("skip.btn"),()=>this._skipSteps(e),!0),this._skipSteps=e=>{const t=e.getCurrentStep(),n=e.steps.findIndex(e=>t.id===e.id);this._startGuide(e,this._getNextSkipPointId(e.steps,n))},this._getNextSkipPointId=(e,t)=>{for(let n=t+1;n<e.length;n++){const t=e.at(n);if(t.options.skipPoint)return t.id}return e.at(e.length-1).id},this._pauseGuide=e=>{e.hide();const t=this._getStepWhichCanBePaused(e.steps,e.getCurrentStep().id);this._saveStep(t),n.set(hn,!0);let r=!1;for(;!r;){const e=this._getHistory();e&&e.length>0&&e.at(e.length-1)!==t.options.id?this._removeLastStepFromHistory():r=!0}this.onPause()&&this.onPause()},this._getStepWhichCanBePaused=(e,t)=>{const n=e.findIndex(e=>e.id===t),r=e[n];return r.options.canBePaused?r:n>0?this._getStepWhichCanBePaused(e,e[n-1].id):void 0},this._getPreviousButton=e=>{const n=t.instant("previous.btn"),r=this._getPreviousButtonAction(e);return this._getButton(n,r)},this._getPreviousButtonAction=n=>()=>{const i=this._getPreviousStepIdFromHistory();let o;o=-1===i?n.steps.at(0):n.steps.find(e=>e.options.id===i);const a=n.getCurrentStep();a.hide(),a.options.initPreviousStep({GuideUtils:r.GuideUtils,ShepherdService:this},a.options.id).then(()=>{angular.isFunction(a.options.onPreviousClick)?a.options.onPreviousClick(n).then(e=>{!angular.isUndefined(e)&&null!==e&&e||(a.hide(),n.show(o.id))}).catch(e=>{console.log(e),s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)}):((o.options.forceReload||o.options.url&&o.options.url!==a.options.url)&&e.path(o.options.url),a.hide(),n.show(o.id))}).catch(e=>{console.log(e),s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)})},this._getNextButton=(e,n,r)=>{const i=t.instant("next.btn"),o=u(e,n,r);return this._getButton(i,o)};const u=(n,r,i)=>()=>{r.onNextValidate(r).then(o=>{if(o)if(angular.isFunction(r.onNextClick)){const e=r.onNextClick(n,r);e instanceof Promise&&e.catch(e=>{s.error(t.instant("guide.unexpected.error.message")),this._cancelGuide(n,!1)})}else(i.forceReload||i.url&&i.url!==r.url)&&e.path(i.url),n.next()})};this._updateLocalStorage=()=>{const e=on.activeTour;if(!e)return;const t=e.getCurrentStep(),n=e.steps.findIndex(e=>e.id===t.id),r=this.getCurrentStepId(),i=e.steps.findIndex(e=>e.id===r);n>i?this._addStepToHistory(t):i>n&&this._removeLastStepFromHistory(),this._saveStep(t)},this._saveStep=e=>{e&&(n.set(ln,e.tour.options.name),n.set(cn,e.options.id))},this._addStepToHistory=e=>{const t=this._getHistory();t.push(e.options.id),n.set(pn,t)},this._getHistory=()=>{const e=n.get(pn);return e||[]},this._removeLastStepFromHistory=()=>{const e=this._getHistory();e.splice(e.length-1,1),n.set(pn,e)},this._getPreviousStepIdFromHistory=e=>{const t=this._getHistory()||[];if(e){const n=t.findIndex(t=>t===e);if(n>0)return t.at(n-1)}else if(t.length>1)return t.at(t.length-2);return-1},this.getPreviousStepFromHistory=e=>{const t=this._getPreviousStepIdFromHistory(e);return on.activeTour.steps.find(e=>e.id===t)},this._clearLocaleStorage=()=>{n.remove(ln),n.remove(hn),n.remove(cn),n.remove(pn)},this._toBaseGuideStep=(e,t,n,i)=>{let s;n.elementSelector&&(s={element:n.elementSelector,on:n.placement});const a=r.GuideUtils.unescapeHtml(r.GuideUtils.translateLocalMessage(t,o,n.title,n));let u="";if(n.stepsTotalN>1){const e=document.createElement("span");e.setAttribute("gdb-tooltip",t.instant("guide.block.progress.tooltip",{action:a})),e.setAttribute("tooltip-placement","bottom"),e.innerText=t.instant("guide.block.progress",{n:n.stepN+1,nn:n.stepsTotalN}),u="&nbsp;&mdash;&nbsp;"+e.outerHTML}const l="readonly"!==n.type,c=n.extraPadding?n.extraPadding:0,p={id:n.id,title:a+u,text:()=>{const e=this._toParagraph(r.GuideUtils.translateLocalMessage(t,o,n.content,n));let i="";return n.extraContent&&(i=r.GuideUtils.translateLocalMessage(t,o,n.extraContent,n),i=this._toParagraph(i,n.extraContentClass)),e+i},url:n.url,maxWaitTime:n.maxWaitTime,cancelIcon:{enabled:!0},attachTo:s,modalOverlayOpeningPadding:c,modalOverlayOpeningRadius:0,canBePaused:n.canBePaused,advanceOn:n.advanceOn,showOn:n.showOn,scrollToHandler:n.scrollToHandler,classes:"guide-dialog "+n.class,beforeShowPromise:n.beforeShowPromise,canClickTarget:l,keyboardNavigation:!1,skipPoint:n.skipPoint,onPreviousClick:n.onPreviousClick,initPreviousStep:n.initPreviousStep,when:{show:this._getShowFunction(e,n,i)}};return angular.isFunction(n.hide)&&(p.when.hide=n.hide(e)),p},this._getShowFunction=(e,t,n)=>angular.isFunction(t.show)?()=>{t.show(e)(),n(),this._whenStepShow(t)}:()=>{n(),this._whenStepShow(t)},this._whenStepShow=e=>{const t=on.activeTour.getCurrentStep(),n=t.getElement();this._addTotalProgress(t,n),this._addTypeIcon(n,e);const r=angular.element(n).scope();angular.isFunction(e.onScope)&&e.onScope(r),setTimeout(()=>r.$apply(()=>a(n)(r)))},this._toParagraph=(e,t)=>{if(e){const n=document.createElement("p");return t&&(n.className=t),n.innerHTML=e,n.outerHTML}return""},this._addTotalProgress=(e,n)=>{const r=on.activeTour.steps,i=n.querySelector(".shepherd-content"),o=document.createElement("div");o.className="shepherd-progress";const s=document.createElement("span");s.className="text-muted",s.innerText=t.instant("guide.total.progress",{n:r.indexOf(e)+1,nn:r.length}),s.setAttribute("gdb-tooltip",t.instant("guide.total.progress.tooltip")),s.setAttribute("tooltip-placement","left"),o.appendChild(s),i.appendChild(o)},this._addTypeIcon=(e,n)=>{let r,i;switch(n.type){case"clickable":r="focus",i="mouse";break;case"input":r="edit",i="input";break;default:r="info",i="info"}const o=document.createElement("span");o.className="shepherd-step-type icon-"+r+" icon-1-25x",o.setAttribute("gdb-tooltip",t.instant("guide.step-type."+i)),o.setAttribute("tooltip-placement","bottom-right"),angular.element(e.querySelector(".shepherd-header")).prepend(o)},this._getButton=(e,t,n)=>{const r={text:e,classes:n?"btn btn-secondary":"btn btn-primary",action:e=>{e.stopPropagation(),t()}};return r}}angular.module("graphdb.framework.guides.shepherd.services",["graphdb.framework.utils.localstorageadapter"]).service("ShepherdService",dn),dn.$inject=["$location","$translate","LocalStorageAdapter","$route","$interpolate","toastr","$compile"]},14:function(e,t,n){"use strict";n.r(t),n.d(t,"YasguiComponentDirectiveUtil",(function(){return i})),n.d(t,"YasqeButtonsBuilder",(function(){return o})),n.d(t,"YasqeButtonName",(function(){return s})),n.d(t,"DISABLE_YASQE_BUTTONS_CONFIGURATION",(function(){return a})),n.d(t,"INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION",(function(){return u}));const r=["var(--primary-color)","","var(--primary-color)"],i=function(){const e=e=>{const t=angular.element(document.querySelector(e));return angular.element(t).isolateScope()},t=(t,n=1)=>new Promise((r,i)=>{let o=e(t);o&&r(o.getOntotextYasguiElement());let s=1e3*n|1e3;const a=setInterval(()=>{o=e(t),o?(clearInterval(a),r(o.getOntotextYasguiElement())):(s-=100,s<0&&(clearInterval(a),console.log("YASGUI component is not found",t),i(new Error("Element is not found: "+t))))},100)}),n=(e,n)=>{let r=void 0;return t(e).then(e=>(r=e,e)).then(()=>r.setQuery(n)).then(()=>r)},o=e=>{if(!e||!e.yasgui||!e.yasgui.tabElements)return;const t=e.yasgui.tabElements.get(e.getId());return t?t.tabEl:void 0};return{getOntotextYasguiElementController:e,getOntotextYasguiElement:e=>{const t=i.getOntotextYasguiElementController(e);if(t)return t.getOntotextYasguiElement()},getOntotextYasguiElementAsync:t,executeSparqlQuery:(e,t)=>{let r=void 0;return n(e,t).then(e=>(r=e,e)).then(()=>r.query()).then(()=>r)},setQuery:n,highlightTabName:e=>{const t=o(e);if(!t)return;let n=0,i=void 0;const s=()=>{t.style.color=r[n++],n>r.length&&(t.style.color="",clearInterval(i))};i=setInterval(s,400),s()}}}();class o{constructor(){this.createSavedQueryVisibility=!1,this.showSavedQueriesVisibility=!1,this.shareQueryVisibility=!1,this.includeInferredStatementsVisibility=!1}addCreateSavedQuery(){return this.createSavedQueryVisibility=!0,this}addShowSavedQueries(){return this.showSavedQueriesVisibility=!0,this}addShareQuery(){return this.shareQueryVisibility=!0,this}addIncludeInferredStatements(){return this.includeInferredStatementsVisibility=!0,this}build(){return[{name:s.CREATE_SAVED_QUERY,visible:this.createSavedQueryVisibility},{name:s.SHOW_SAVED_QUERIES,visible:this.showSavedQueriesVisibility},{name:s.SHARE_QUERY,visible:this.shareQueryVisibility},{name:s.INCLUDE_INFERRED_STATEMENTS,visible:this.includeInferredStatementsVisibility}]}}const s={CREATE_SAVED_QUERY:"createSavedQuery",SHOW_SAVED_QUERIES:"showSavedQueries",SHARE_QUERY:"shareQuery",EXPANDS_RESULTS:"expandResults",INFER_STATEMENTS:"inferStatements",INCLUDE_INFERRED_STATEMENTS:"includeInferredStatements"},a=(new o).build(),u=(new o).addIncludeInferredStatements().build()},15:function(e,t){angular.module("graphdb.framework.rest.license.service",["ngFileUpload"]).factory("LicenseRestService",r),r.$inject=["$http","Upload"];const n="rest/graphdb-settings/license";function r(e,t){return{getLicenseInfo:function(){return e.get(n)},getHardcodedLicense:function(){return e.get(n+"/hardcoded")},sendLicenseToValidate:function(t){return e.post("rest/info/license/validate",t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},extractFromLicenseFile:function(e){return t.upload({url:"rest/info/license/to-base-64",file:e,headers:{Accept:"text/plain"}})},checkLicenseHardcoded:function(){return e.get(n+"/hardcoded")},registerLicense:function(t){const r=new Uint8Array(t.length);for(let e=0;e<r.length;e++)r[e]=t.charCodeAt(e);return e({method:"POST",url:n,headers:{"Content-Type":"application/octet-stream"},data:r,transformRequest:[]})},unregisterLicense:function(){return e({method:"DELETE",url:"rest/graphdb-settings/license"})},getInfo:function(){return e.get("rest/info/properties")},getVersion:function(t){return e.get("rest/info/version",{headers:{"X-GraphDB-Repository-Location":t}})},getStatistics:function(){return e.get("rest/graphdb-settings/statistics")},toggleStatistics:function(t){return e({method:"POST",url:"rest/graphdb-settings/statistics",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:"enabled="+t})}}}},16:function(e,t){angular.module("graphdb.framework.rest.repositories.service",[]).factory("RepositoriesRestService",n),n.$inject=["$http"];function n(e){return{getRepositories:function(t){return e.get("rest/repositories/all",{params:{location:t}})},getRepository:function(t){return e.get("rest/repositories/"+t.id,{params:{location:t.location}})},deleteRepository:function(t){return e.delete("rest/repositories/"+t.id,{params:{location:t.location}})},createRepository:function(t){return e.post("rest/repositories",t)},editRepository:function(t,n){return e.put("rest/repositories/"+t,n)},getRepositoryConfiguration:function(t){return e.get("rest/repositories/default-config/"+t)},getSize:function(t){return e.get(`rest/repositories/${t.id}/size`,{params:{location:t.location}})},getPrefix:function(t,n){return e.post(`rest/repositories/${t}/prefix`,null,{params:n})},getCluster:function(){return e.get("rest/repositories/cluster")},getRepositoryFileContent:function(t){return e.get("rest/repositories/file",{params:{fileLocation:t}})},updateRepositoryFileContent:function(t,n,r){return e.post("rest/repositories/file/update",JSON.stringify(n),{params:{fileLocation:t,location:r}})},validateOntopPropertiesConnection:function(t){return e.post("rest/repositories/ontop/test-connection",t.params.propertiesFile,{params:{location:t.location}})},restartRepository:function(t){return e.post(`rest/repositories/${t.id}/restart`,null,{params:{location:t.location}})},getSupportedDriversData:function(t){return e.get("rest/repositories/ontop/drivers",{params:{location:t.location}})},updatePropertiesFile:function(t,n,r,i){return e.post("rest/repositories/ontop/jdbc-properties",JSON.stringify(n),{params:{fileLocation:t,location:r,driverType:i}})},loadPropertiesFile:function(t,n,r){return e.get("rest/repositories/ontop/jdbc-properties",{params:{fileLocation:t,location:n,driverType:r}})},getRepositoriesFromKnownLocation:function(t){return e.get("rest/repositories?location="+t)},getRepositoryTurtleConfig:function(t){return e.get("rest/repositories/"+t.id,{headers:{Accept:"text/turtle"}})}}}},17:function(e,t,n){"use strict";n.r(t),n.d(t,"mapBackupAndRestoreResponseToModel",(function(){return o})),n.d(t,"mapSnapshotOptionsResponseToModel",(function(){return s}));var r=n(18),i=n(19);const o=e=>{const t=[],n=new r.BackupAndRestoreInfo;return 0===Object.keys(e).length||(n.id=e.id,n.username=e.username,n.operation=e.operation,n.affectedRepositories=e.affectedRepositories,n.secondsSinceCreated=e.msSinceCreated/1e3,n.snapshotOptions=s(e.snapshotOptions),n.nodePerformingClusterBackup=e.nodePerformingClusterBackup,t.push(n)),t},s=e=>{const t=new i.SnapshotOptionInfo;return t.withRepositoryData=e.withRepositoryData,t.withSystemData=e.withSystemData,t.withClusterData=e.withClusterData,t.cleanDataDir=e.cleanDataDir,t.removeCluster=e.removeCluster,t.repositories=e.repositories,t.replicationTimeoutMs=e.replicationTimeoutMs,t}},18:function(e,t,n){"use strict";n.r(t),n.d(t,"BackupAndRestoreInfo",(function(){return r}));class r{constructor(){this.id=void 0,this.username="",this.operation="",this.affectedRepositories=[],this.secondsSinceCreated=0,this.snapshotOptions=[],this.nodePerformingClusterBackup=""}}},19:function(e,t,n){"use strict";n.r(t),n.d(t,"SnapshotOptionInfo",(function(){return r}));class r{constructor(){this.withRepositoryData=!1,this.withSystemData=!1,this.withClusterData=!1,this.cleanDataDir=!1,this.removeCluster=!1,this.repositories=[],this.replicationTimeoutMs=0}}},2:function(e,t,n){"use strict";n.r(t),n.d(t,"GuideUtils",(function(){return r}));const r=function(){const e=function(e,t=1,n=!0){const r=a(e);return new Promise((function(e,i){let o=1e3*t|1e3;const s=setInterval(()=>{try{const t=document.querySelector(r);null!=t?!n||angular.element(t).is(":visible")?(clearInterval(s),setTimeout(()=>{e(angular.element(t))},0)):(o-=100,o<0&&(clearInterval(s),console.log("Element is not visible: "+r),i(new Error("Element is not visible: "+r)))):(o-=100,o<0&&(clearInterval(s),console.log("Element is not found: "+r),i(new Error("Element is not found: "+r))))}catch(e){clearInterval(s),console.log("Error when processing selector: "+r),console.log(e),i(e)}},100)}))},t=function(e){const t=document.querySelector(e);return t&&angular.element(t).is(":visible")},n=function(e,t){return`[guide-selector="${e}"] ${t||""}`},i=(e,t,n,r)=>{const i=e.use();let s;return angular.isObject(n)?(s=n[i],s||(s=n.en),s=t(s)(r)):s=o(e.instant(n,r)),s},o=e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText},s=e=>angular.element(e).is(":checked"),a=e=>angular.isFunction(e)?e():e;return{GUIDES_LIST_URL:"rest/guides",GUIDES_DOWNLOAD_URL:"rest/guides/download/",waitFor:e,clickOnElement:function(t){return()=>e(t).then(e=>e.click())},clickOnGuideElement:function(e,t){return r.clickOnElement(r.getGuideElementSelector(e,t))},getGuideElementSelector:n,isVisible:t,isGuideElementVisible:function(e){return t(n(e))},awaitAlphaDropD3:function(e,n,r=2,i=.1){return()=>new Promise((function(o){t(e)?o():setTimeout(()=>{let e=1e3*r;const t=setInterval(()=>{n.d3alpha<i?(clearInterval(t),o()):(e-=100,e<0&&(clearInterval(t),o()))},100)},150)}))},graphVizExpandNode:function(e){const t=d3.select(e),n=new CustomEvent("gdb-expand-node",{detail:t.datum()});t.node().dispatchEvent(n)},graphVizShowNodeInfo:function(e){const t=d3.select(e),n=new CustomEvent("gdb-show-node-info",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyFocus:function(e){const t=d3.select(e),n=new CustomEvent("gdb-focus",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyZoom:function(e){const t=d3.select(e),n=new CustomEvent("gdb-zoom",{detail:t.datum()});t.node().dispatchEvent(n)},validateTextInput:function(e,t,n=!0){const r=$(e).val();return""===r&&n?($(e).val(t),$(e).trigger("change"),!0):r===t},translateLocalMessage:i,unescapeHtml:o,noNextErrorToast:(e,t,n,r,s)=>{e.error(o(i(t,n,r,s)),o(i(t,n,"guide.validate.no-next",s)),{allowHtml:!0})},deferredShow:e=>()=>new Promise((function(t){setTimeout(()=>{t()},e)})),scrollToTop:()=>{window.scrollTo(0,0)},removeWhiteSpaces:e=>e.replace(/\s+/g,""),toResourceDownloadUrl:e=>"rest/guides/download/"+e.resourcePath+"/"+e.resourceFile,getSparqlResultsSelectorForIri:e=>`${r.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR} a[title='${e}']`,getSparqlResultsSelectorForRow:e=>`${r.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR} tbody tr:nth-child(${e})`,isChecked:s,isGuideElementChecked:(e,t)=>s(r.getGuideElementSelector("autocompleteCheckbox",t)),defaultInitPreviousStep:(e,t)=>new Promise((function(n,r){const i=e.ShepherdService.getPreviousStepFromHistory(t);i?i.options.initPreviousStep(e,i.options.id).then(()=>n()).catch(e=>r(e)):n()})),getElementSelector:a,CSS_SELECTORS:{SPARQL_EDITOR_SELECTOR:".tabPanel.active .yasqe .CodeMirror-code",SPARQL_RESULTS_SELECTOR:".tabPanel.active .yasr_results",SPARQL_RESULTS_ROWS_SELECTOR:".tabPanel.active .yasr_results tbody",SPARQL_RUN_BUTTON_SELECTOR:".tabPanel.active .yasqe .yasqe_queryButton"}}}()},20:function(e,t,n){"use strict";n.r(t),n.d(t,"mapActiveOperationResponseToModel",(function(){return u})),n.d(t,"mapActiveOperationToActiveOperationInfoModel",(function(){return c})),n.d(t,"mapImportActiveOperationToActiveOperationInfoModel",(function(){return p})),n.d(t,"mapQueriesActiveOperationToActiveOperationInfoModel",(function(){return h})),n.d(t,"mapBackupAndRestoreActiveOperationToActiveOperationInfoModel",(function(){return d})),n.d(t,"mapClusterActiveOperationToActiveOperationInfoModel",(function(){return f}));var r=n(3),i=n(8),o=n(1),s=n(21),a=n(9);const u=e=>{const t=new s.ActiveOperationsModel;return t.status=e.status,t.operations=l(e.allRunningOperations),t},l=(e=[])=>{const t=[];return e.forEach(e=>t.push(c(e))),t},c=e=>{switch(e.type){case r.OPERATION_TYPE.IMPORTS:return p(e);case r.OPERATION_TYPE.QUERIES:case r.OPERATION_TYPE.UPDATES:return h(e);case r.OPERATION_TYPE.BACKUP_RESTORE:return d(e);case r.OPERATION_TYPE.CLUSTER_STATUS:return f(e)}},p=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.IMPORT_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.IMPORT_MONITORING_URL,t},h=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.QUERIES_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.QUERIES_MONITORING_URL,t},d=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.BACKUP_AND_RESTORE_MONITORING_URL,t},f=e=>{const t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.CLUSTER_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=a.OPERATION_MONITORING_CONSTANTS.CLUSTER_MONITORING_URL,t}},206:function(e,t,n){"use strict";(function(e){
3
3
  /*!
4
4
  * The buffer module from node.js, for the browser.
@@ -6,7 +6,7 @@
6
6
  * @author Feross Aboukhadijeh <http://feross.org>
7
7
  * @license MIT
8
8
  */
9
- var r=n(319),i=n(320),o=n(321);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=a(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return F(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){p=!1;break}if(p)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function w(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function E(e,t,n,r){return H(M(t),e,n,r)}function $(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function F(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],c=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?F(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n),p=0;p<a;++p)if(l[p]!==c[p]){o=l[p],s=c[p];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function _(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||_(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||_(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function M(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(11))},21:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationsModel",(function(){return o}));var r=n(4),i=n(1);class o{constructor(){this.operations=[],this.status=r.OPERATION_STATUS.INFORMATION}hasClusterOperation(){return!!this.operations&&this.operations.some(e=>i.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===e.operationGroup)}}},22:function(e,t,n){"use strict";n.r(t),n.d(t,"SequenceGeneratorUtil",(function(){return r}));class r{static getFibonacciSequenceGenerator(){return r.fibonacciSequenceGenerator()}static fibonacciSequenceGenerator(){let e=0,t=1;return{next:function(){const n=t;return t=e+t,e=n,n},reset:function(){e=0,t=1}}}}},23:function(e,t,n){"use strict";n.r(t),n.d(t,"mapUriAsNtripleAutocompleteResponse",(function(){return r}));const r=e=>e&&e.data&&e.data.suggestions?e.data.suggestions.map(e=>({type:e.type,value:e.value,description:e.description})):[]},24:function(e,t,n){"use strict";n.r(t);n(7),n(16),n(33),n(15),n(57),n(58),n(32);var r=n(12);angular.module("graphdb.framework.core.services.repositories",["ngCookies","graphdb.framework.rest.repositories.service","graphdb.framework.rest.locations.service","graphdb.framework.rest.license.service","toastr","graphdb.framework.utils.event-emitter-service"]).service("$repositories",["toastr","$rootScope","$timeout","$location","productInfo","$jwtAuth","RepositoriesRestService","LocationsRestService","LicenseRestService","$translate","$q","LocalStorageAdapter","LSKeys","EventEmitterService","RDF4JRepositoriesRestService",function(e,t,n,i,o,s,a,u,l,c,p,h,d,f,g){this.location={uri:"",label:"Local",local:!0,isInCluster:!1},this.locationError="",this.loading=!0,this.locations=[this.location],this.repositories=new Map,this.locationsShouldReload=!0;const m=this,v=function(t,n){m.loading=!1,t&&(m.location={},m.locationError=n,m.repositories=new Map,m.setRepository(""),t.statusText?e.error(t.statusText,c.instant("repositories.service.error.loading.location")):e.error(c.instant("repositories.service.error.loading.location")))};let y;this.resetActiveRepository=function(){const e=this.getActiveRepositoryObjectFromStorage(),n=m.repositories.get(e.location);let r=!1;n&&(r=n.find(t=>t.id===e.id)),r?s.canReadRepo(e)?t.$broadcast("repositoryIsSet",{newRepo:!1}):this.setRepository(""):this.setRepository(this.location.defaultRepository?{id:this.location.defaultRepository,location:this.location.uri}:"")},this.checkLocationsDegraded=function(e){this.locations.forEach(t=>{t.local||(t.errorMsg&&m.repositories.delete(t.uri)&&m.resetActiveRepository(),l.getVersion(t.uri).success((function(e){"object"==typeof e?e.productVersion!==o.productVersion&&(t.degradedReason=c.instant("repositories.service.different.gdb.version",{location:t.name})):t.degradedReason=c.instant("repositories.service.different.gdb.version",{location:t.name})})).error((function(n){t.errorMsg=n,e||(m.locationsShouldReload=!0)})))})},this.getDegradedReason=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.locations.find(t=>t.uri===e.location);return t?t.degradedReason:""},this.clearLocationErrorMsg=function(e){const t=this.locations.find(t=>t.uri===e);t&&t.errorMsg&&(t.errorMsg=null)},this.initQuick=function(){this.hasActiveLocation()&&this.init(null,null,!0)},this.init=function(e,n,r){return this.loading=!0,r||(this.locationsShouldReload=!0),u.getActiveLocation().then((function(i){if(i.data){const o=i.data;if(o.active)return a.getRepositories().then((function(n){m.location=o,Object.entries(n.data).forEach(([e,t])=>{m.clearLocationErrorMsg(e),m.repositories.set(e,t)}),m.resetActiveRepository(),v(),m.checkLocationsDegraded(r),t.globalLocation=m.location,t.globalRepositories=m.getRepositories(),e&&e()})).catch((function(e){v(e),n&&n()}))}else v(),r&&(m.locationsShouldReload=!0),m.location="",m.repositories=new Map,m.setRepository("");t.globalLocation=m.location,t.globalRepositories=m.getRepositories()})).catch((function(e){v(e),n&&n()}))},this.getLocations=function(e){if(this.locationsShouldReload||y)return y||(this.locationsShouldReload=!1,this.locations=[this.location],y=u.getLocations(e,!0).then(e=>(m.locations=e.data,this.locations)).catch((function(){n((function(){m.locationsShouldReload=!0}),2e3)})).finally(()=>{y=null})),y;const t=p.defer();return t.resolve(this.locations),t.promise},this.getActiveLocation=function(){return this.location},this.hasActiveLocation=function(){return!_.isEmpty(this.location)},this.getLocationError=function(){return this.locationError?this.locationError:c.instant("repositories.service.no.active.location")},this.isLoadingLocation=function(){return this.loading},this.getRepositories=function(){const e=[];return this.repositories.forEach(t=>e.push.apply(e,t)),e},this.getReadableRepositories=function(){return _.filter(this.getRepositories(),(function(e){return s.canReadRepo(e)}))},this.getWritableRepositories=function(){const e=this;return _.filter(this.getRepositories(),(function(t){return s.canWriteRepo(t)&&!e.isActiveRepoOntopType(t)}))},this.getActiveRepositoryObjectFromStorage=function(){return{id:h.get(d.REPOSITORY_ID)||"",location:h.get(d.REPOSITORY_LOCATION)||""}},this.getActiveRepository=function(){return h.get(d.REPOSITORY_ID)||void 0},this.getActiveRepositoryObject=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.repositories.get(e.location);return t?t.find(t=>t.id===e.id):null},this.isSystemRepository=function(){return"SYSTEM"===this.getActiveRepositoryObjectFromStorage().id},this.isActiveRepoOntopType=function(e){const t=this;let n;return e||(e=t.getActiveRepositoryObject()),e&&(n=t.repositories.get(e.location).find(t=>t.id===e.id),n)?"graphdb:OntopRepository"===n.sesameType:void 0===n},this.isActiveRepoFedXType=function(){const e=this,t=e.getActiveRepositoryObject();let n;return t&&(n=e.repositories.get(t.location).find(e=>e.id===t.id),n)?"graphdb:FedXRepository"===n.sesameType:void 0===n},this.getLocationFromUri=function(e){return this.locations.find(t=>t.uri===e)},this.setRepositoryHeaders=function(e){$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers["X-GraphDB-Repository"]=e?e.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=e?e.location:void 0},this.setRepository=function(e){const n={oldRepository:this.repository,newRepository:e,cancel:!1};f.emit("repositoryWillChangeEvent",n,n=>{n.cancel||(e?(h.set(d.REPOSITORY_ID,e.id),h.set(d.REPOSITORY_LOCATION,e.location)):(h.remove(d.REPOSITORY_ID),h.remove(d.REPOSITORY_LOCATION)),this.setRepositoryHeaders(e),t.$broadcast("repositoryIsSet",{newRepo:!0}),e&&!s.canReadRepo(e)&&this.setRepository(""),t.deniedPermissions={})})},this.getDefaultRepository=function(){return this.hasActiveLocation()?this.location.defaultRepository:""},this.setDefaultRepository=function(t){if(!this.hasActiveLocation())return void e.error(c.instant("repositories.service.no.active.location"),c.instant("common.error"));const n=this;u.setDefaultRepository(t).success((function(){n.location.defaultRepository=t})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.deleteLocation=function(t){return u.deleteLocation(encodeURIComponent(t)).success((function(){const e=m.getActiveRepositoryObject();e&&e.location===t&&(m.location="",m.setRepository("")),m.init()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.deleteRepository=function(t){return a.deleteRepository(t).success((function(){m.init()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))})).finally(()=>{const e=m.getActiveRepositoryObject();e&&e.id===t.id&&e.location===t.location&&m.setRepository("")})},this.restartRepository=function(t){return a.restartRepository(t).success((function(){e.success(c.instant("repositories.service.restarting.repo",{repositoryId:t.id})),m.initQuick()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.getRepositoryTurtleConfig=function(e){return a.getRepositoryTurtleConfig(e)},this.isRepoActive=function(e){const t=this.getActiveRepositoryObjectFromStorage();return!!t.id&&(e.id===t.id&&e.location===t.location)},this.getRepositoriesFromLocation=function(e){return this.repositories.get(e)},this.getPrefixes=e=>g.getRepositoryNamespaces(e).then(e=>{const t={};return e.data.results.bindings.forEach((function(e){t[e.prefix.value]=e.namespace.value})),t}),this.resolveSparqlEndpoint=e=>e===r.QueryMode.UPDATE?`repositories/${this.getActiveRepository()}/statements`:e===r.QueryMode.QUERY?"repositories/"+this.getActiveRepository():void 0,t.$on("securityInit",(function(e,t,r,i){y=null,(!t||r||i)&&n((function(){m.init()}))})),t.$on("reloadLocations",(function(){m.locationsShouldReload=!0,m.getLocations().then(()=>m.initQuick())}))}])},25:function(e,t,n){"use strict";n.r(t);n(10);var r=n(0);function i(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.2-TR2">{{\'common.loading\' | translate}}</object>'}}}function o(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.2-TR2"></object><div>{{\'common.loading\' | translate}}<div>'}}}function s(e){const t=function(e,n){n.timer=void 0,n.currentMessage=n.getMessage();const r=n.timeout[n.index%n.timeout.length];r&&(n.timer=e((function(){(n.index+1<n.message.length||0===n.message.length)&&(n.index++,t(e,n))}),1e3*r))};return{restrict:"EA",scope:{size:"@",trigger:"@",messageAttr:"=*message",timeoutAttr:"=*timeout",ngShow:"=",ngHide:"="},link:function(n){n.message=n.messageAttr,n.getMessage=function(){return n.message[n.index]},void 0===n.message?n.message=[""]:"function"==typeof n.message?(n.getMessage=n.message,n.message=[]):"object"!=typeof n.message&&(n.message=[n.message]),n.timeout=n.timeoutAttr,void 0===n.timeout?n.timeout=[0]:"object"!=typeof n.timeout&&(n.timeout=[n.timeout]),n.index=0,t(e,n);const r=function(r){n.timer&&e.cancel(n.timer),r&&(n.index=0,t(e,n))};n.$watch("ngShow",(function(e){r(e)})),n.$watch("ngHide",(function(e){r(!e)})),n.$on("$destroy",(function(){n.timer&&e.cancel(n.timer)}))},template:'<div class="ot-loader-new-content"><img width="{{size}}" height="{{size}}" src="js/angular/templates/loader/ot-loader.svg?v=2.6.2-TR2"/><div style="font-size: {{size/4}}px">{{currentMessage}}<div></div>'}}function a(e){return{restrict:"EA",transclude:!0,templateUrl:"js/angular/core/templates/core-errors.html",link:function(t,n,r){let i;t.$watch("getActiveRepository()",(function(e){e&&!t.isRestricted?n.hide():n.show()})),t.setAttrs(r),t.setRestricted(),t.showRemoteLocations=!1,t.toggleShowRemoteLocations=()=>{t.showRemoteLocations=!t.showRemoteLocations},t.getAccessibleRepositories=function(){let e=e=>!0;return t.showRemoteLocations||(e=e=>e.local),t.isRestricted?t.getWritableRepositories().filter(e):t.getReadableRepositories().filter(e)},t.showPopoverForRepo=function(n,r){t.hidePopoverForRepo(),t.setPopoverRepo(r),e((function(){const e=$(n.toElement).find(".popover-anchor")[0];i=e,e&&!t.getActiveRepository()&&e.dispatchEvent(new Event("show"))})),n.stopPropagation()},t.hidePopoverForRepo=function(t){if(t){let e=t.relatedTarget;for(;e;){if(0===e.className.indexOf("popover"))return;e=e.parentElement}}i&&e((function(){i&&(i.dispatchEvent(new Event("hide")),i=null)})),t&&t.stopPropagation()}}}}function u(){return function(e,t){$(t).click((function(e){e.preventDefault(),e.stopPropagation()}))}}function l(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.multiRequired||(e.multiRequired=[]);const i=n.multiRequireElement,o=function(t){i&&i%1==0&&(e.multiRequired[i-1]=t)},s=function(){let t=!1,n=!1;for(let r=0;r<e.multiRequired.length;r++)e.multiRequired[r]?t=!0:n=!0;r.$setValidity("multiRequire",!(t&&n))};r.$parsers.unshift((function(e){return o(e),s(),e})),r.$formatters.unshift((function(e){return o(e),s(),e})),$("[multi-required]").on("blur keyup change focusout",(function(){s()}))}}}angular.module("graphdb.framework.core.directives",["graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).directive("ontoLoader",i).directive("ontoLoaderFancy",o).directive("ontoLoaderNew",s).directive("coreErrors",a).directive("eatClick",u).directive("multiRequired",l).directive("searchResourceInput",p).directive("keyboardShortcuts",h).directive("inactivePluginDirective",d).directive("autoGrow",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){const i=function(){const e=r.$viewValue;e&&""!==e.trim()?(t[0].style.height="0px",t[0].style.height=t[0].scrollHeight+"px"):t[0].style.height="26px",t[0].style.overflow="hidden"};e.$watch((function(){return r.$viewValue}),(function(){i()})),t.bind("input change",(function(){i()}))}}})).directive("captureHeight",(function(){return{restrict:"A",scope:{rowIndex:"=captureHeight"},link:function(e,t,n){e.$watch((function(){return t[0].offsetHeight}),(function(t){e.$parent.rowHeights[e.rowIndex]=t+"px!important"}))}}})),i.$inject=[],o.$inject=[],s.$inject=["$timeout"],a.$inject=["$timeout"],u.$inject=[],l.$inject=[];const c={table:"table",visual:"visual"};function p(e,t,n,i,o,s,a,u,l,p,h,d){return{restrict:"EA",scope:{namespacespromise:"=",autocompletepromisestatus:"=",textButton:"@",visualButton:"@",textCallback:"&",visualCallback:"&",placeholder:"@",uriValidation:"@",preserveInput:"@",empty:"=",clear:"=?clear",openInNewTab:"@",preserveSearch:"@",radioButtons:"@",clearInputIcon:"@"},templateUrl:"js/angular/core/templates/search-resource-input.html",link:function(f,g,m){g.autoCompleteStatus=void 0,g.autoCompleteWarning=!1,f.empty=!1,f.clear=!1,f.searchDisplayType=c;const v="true"===f.preserveSearch,y=g.find(".view-res-input");let b,w;f.textButtonLabel=f.textButton||"query.editor.table.btn",f.visualButtonLabel=f.visualButton||"query.editor.visual.btn",f.showClearInputIcon=!1,f.searchType=u.get(l.RDF_SEARCH_TYPE)||c.table,f.searchInput="",f.changeSearchType=function(e){f.searchType=e,u.set(l.RDF_SEARCH_TYPE,f.searchType)},f.$on("addStartFixedNodeAutomatically",(function(e,t){f.searchInput||!t.startIRI?f.checkIfValidAndSearchText():f.visualCallback({uri:t.startIRI,label:""})})),f.clearInput=function(){f.searchInput="",f.selectedElementIndex=-1,f.autoCompleteUriResults=[],f.showClearInputIcon=!1,u.remove(l.RDF_SEARCH_INPUT),u.remove(l.RDF_SEARCH_EXPANDED_URI),u.remove(l.RDF_RESOURCE_DESCRIPTION)},f.$watch("namespacespromise",(function(){angular.isDefined(f.namespacespromise)&&f.namespacespromise.success((function(e){g.namespaces=e.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}}))})).error((function(e){const n=getError(e);t.error(n,h.instant("error.getting.namespaces.for.repo"))}))})),f.$watch("autocompletepromisestatus",(function(){!p.isActiveRepoFedXType()&&angular.isDefined(f.autocompletepromisestatus)&&f.autocompletepromisestatus.success((function(e){g.autoCompleteStatus=!!e,""!==f.searchInput&&f.onChange()})).error((function(){t.error(h.instant("explore.error.autocomplete"))}))})),f.$watch("empty",(function(){v||(f.searchInput="",f.empty=!1)})),f.$watch("clear",(function(){f.clear&&(f.clearInput(),f.clear=!1)})),o.$on("$translateChangeSuccess",(function(){m.$attr.placeholder?f.placeholder=m.$attr.placeholder:f.placeholder=h.instant("search.resources.msg")+"..."}));const x=function(t){const n=t.type||"uri";"true"===f.openInNewTab?E(!1,t):e.path("resource").search(n,t.uri)},S=function(t){const n=t.type||"uri";"true"===f.openInNewTab?E(!0,t):e.path("graphs-visualizations").search(n,t.uri)},E=function(e,t){const n=e?"graphs-visualizations":"resource";window.open(`${n}?uri=${encodeURIComponent(t.uri)}`)};angular.isUndefined(m.$attr.textCallback)&&(f.textCallback=x),angular.isUndefined(m.$attr.visualCallback)&&(f.visualCallback=S),m.$attr.textButton&&!f.textButton?f.textCallback=f.visualCallback:m.$attr.visualButton&&!f.visualButton&&(f.visualCallback=f.textCallback),m.$attr.placeholder?f.placeholder=m.$attr.placeholder:f.placeholder=h.instant("search.resources.msg")+"...",angular.isDefined(m.$attr.uriValidation)?f.uriValidation=m.$attr.uriValidation:f.uriValidation="true",angular.isDefined(m.$attr.preserveInput)&&(f.preserveInput=m.$attr.preserveInput),f.getResultItemHtml=function(e){return a.trustAsHtml(e.description)},f.searchRdfResource=function(e,t){if("prefix"===e.type)f.searchInput=D(e.value+":"),y.focus(),f.onChange();else{let n;n=angular.isUndefined(e)?f.searchInput:"object"==typeof e?e.value:e;let r="";if(e.description){const t=e.description.indexOf("&lt;"+n+"&gt;");t>0&&(r=e.description.substring(0,t).replace(/<\/?b>/g,""))}t({uri:n,description:e.description,label:r,type:e.type}),v?(f.selectedElementIndex=f.activeSearchElm,u.set(l.RDF_SEARCH_EXPANDED_URI,b),u.set(l.RDF_SEARCH_INPUT,f.searchInput),u.set(l.RDF_RESOURCE_DESCRIPTION,e.description)):"true"===f.preserveInput?(f.searchInput=n,f.autoCompleteUriResults=[]):(f.searchInput="",f.autoCompleteUriResults=[])}},f.searchRdfResourceByEvent=function(e,t){f.searchType===c.visual||t.ctrlKey||t.metaKey?f.searchRdfResource(e,f.visualCallback):f.searchRdfResource(e,f.textCallback)};const A=function(e){const n=f.searchInput;""!==n?"false"!==f.uriValidation?g.autoCompleteStatus&&f.autoCompleteUriResults&&f.autoCompleteUriResults.length>0?"prefix"===f.autoCompleteUriResults[f.activeSearchElm].type?(f.searchInput=D(f.autoCompleteUriResults[f.activeSearchElm].value+":"),f.autoCompleteUriResults=[]):f.searchRdfResource(f.autoCompleteUriResults[f.activeSearchElm],e):C(n)?f.searchRdfResource(n,e):t.error(h.instant("invalid.uri.msg")):f.searchRdfResource(n,e):t.error(h.instant("fill.input.field.msg"))};function F(){let e=-1;const n=u.get(l.RDF_RESOURCE_DESCRIPTION);n&&f.autoCompleteUriResults&&(e=f.autoCompleteUriResults.findIndex(e=>e.description===n),f.selectedElementIndex=e,new Promise(e=>{const t=document.getElementById("auto-complete-results-wrapper").getBoundingClientRect();setTimeout(()=>{e(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))})}).then((function(){!function(){const e=$("#auto-complete-results-wrapper"),t=$("#auto_"+f.selectedElementIndex);e.animate({scrollTop:t.offset().top-e.offset().top+e.scrollTop()})}()})).catch((function(e){t.error(getError(e),h.instant("no.prev.search.element"))}))),f.activeSearchElm=-1===e?0:e}function C(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}function D(e){if(!/^<?(http|urn).*>?/.test(e)){const t=e.split(":"),r=t[0],i=t[1];if(!angular.isUndefined(i)){const e=n.getNamespaceUriForPrefix(g.namespaces,r);if(b=e!==b?e:b,b)return y.val(b),b+i}}return e}f.checkIfValidAndSearchText=function(){A(f.textCallback)},f.checkIfValidAndSearchVisual=function(){A(f.visualCallback)},f.checkIfValidAndSearchEvent=function(e){f.searchType===c.visual||e.ctrlKey||e.metaKey?A(f.visualCallback):A(f.textCallback)},f.onChange=function(){return f.showClearInputIcon=f.clearInputIcon,v&&u.set(l.RDF_SEARCH_INPUT,f.searchInput),"false"!==f.uriValidation&&(f.searchInput=D(f.searchInput),g.autoCompleteStatus)?function(e){let t=e.replace(b,b+";");if(g.autoCompleteStatus)return";"===t.charAt(0)&&(t=t.slice(1)),t=function(e){let t=e;if(-1===t.indexOf(";")&&C(t)){t=t.replace(/<|>/g,"");const e=/[^/^#]*$/.exec(t)[0];return t.split(e)[0]+";"+e}return t}(t),w&&w.resolve(),w=s.defer(),i.getAutocompleteSuggestions(t,w.promise).then((function(e){w=null,f.autoCompleteUriResults=e.data.suggestions,f.activeSearchElm=0}));return Promise.resolve()}(f.searchInput):Promise.resolve()},f.onKeyDown=function(e){if(13===e.keyCode){if(e.preventDefault(),d.isActive())return;"false"!==f.uriValidation?g.autoCompleteStatus?f.checkIfValidAndSearchEvent(e):C(e.target.value)?f.searchRdfResourceByEvent(e.target.value,e):t.error(h.instant("invalid.uri.msg")):f.searchRdfResourceByEvent(e.target.value,e)}else if(f.searchInput.length>0&&!g.autoCompleteWarning&&!g.autoCompleteStatus){g.autoCompleteWarning=!0;const e=Object(r.decodeHTML)(h.instant("explore.autocomplete.warning.msg"));t.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}if(g.autoCompleteStatus&&!angular.isUndefined(f.autoCompleteUriResults)){if(40===e.keyCode&&f.activeSearchElm<f.autoCompleteUriResults.length-1&&(f.activeSearchElm++,f.searchInput=f.autoCompleteUriResults[f.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-6-e.scrollTop()>170&&e.scrollTop(n[0].offsetTop-t.height()-6-170)}()),38===e.keyCode&&f.activeSearchElm>0&&(e.preventDefault(),f.activeSearchElm--,f.searchInput=f.autoCompleteUriResults[f.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-40<=e.scrollTop()&&e.scrollTop(e.scrollTop()-34)}()),27===e.keyCode){if(v)return;f.searchInput="",f.autoCompleteUriResults=[]}f.searchInput||f.clearInput()}},f.$on("rdfResourceSearchExpanded",(function(){(v?(f.preserveInput="true",f.searchInput=u.get(l.RDF_SEARCH_INPUT)||"",b=u.get(l.RDF_SEARCH_EXPANDED_URI),f.onChange()):Promise.resolve()).then((function(){F()}))})),f.setActiveClassOnMouseMove=function(e){g.autoCompleteStatus&&(f.activeSearchElm=e)}}}}function h(e){return{restrict:"AE",link:function(t,n,r){function i(e){27===e.keyCode&&(t.toggleCheatSheet(),t.$apply())}t.getTemplateUrl=function(){return r.templateUrl},t.shortcutsVisible=!1,t.toggleCheatSheet=function(){t.shortcutsVisible=!t.shortcutsVisible,t.shortcutsVisible?e.on("keydown",i):e.off("keydown",i)}},template:'<ng-include src="getTemplateUrl()" />'}}function d(e,t,n,i,o,s){return{restrict:"E",transclude:!0,scope:{loadSaved:"&",setPluginActive:"&",pluginName:"@",humanReadablePluginName:"@"},templateUrl:"js/angular/core/templates/inactive-plugin-warning-page.html",link:function(a){function u(){if(o.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType())return t.checkPluginIsActive(a.pluginName,i.getActiveRepository()).then((function({data:e}){a.pluginIsActive=e.indexOf("true")>0,a.setPluginActive({isPluginActive:a.pluginIsActive})})).catch((function(t){e.error(getError(t),s.instant("check.active.plugin.failure"))}))}a.pluginIsActive=!0,a.activatePlugin=function(){const o=Object(r.decodeHTML)(s.instant("activate.plugin.warning.msg",{humanReadablePluginName:a.humanReadablePluginName}));n.openSimpleModal({title:s.instant("activate.plugin.confirmation"),message:`<p>${o}</p>`,warning:!0}).result.then((function(){t.activatePlugin(a.pluginName,i.getActiveRepository()).then((function(){a.pluginIsActive=!0,a.setPluginActive({isPluginActive:a.pluginIsActive}),a.loadSaved()})).catch((function(t){e.error(getError(t),s.instant("activate.plugin.failure"))}))}))};const l=a.$on("repositoryIsSet",(function(){u()}));window.addEventListener("beforeunload",(function e(){l(),window.removeEventListener("beforeunload",e)})),a.$on("checkIsActive",u),u()}}}p.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$rootScope","$q","$sce","LocalStorageAdapter","LSKeys","$repositories","$translate","GuidesService"],h.$inject=["$document"],d.$inject=["toastr","RDF4JRepositoriesRestService","ModalService","$repositories","$licenseService","$translate"]},26:function(e,t,n){"use strict";n.r(t);n(7),n(40),n(41);var r=n(5);angular.module("graphdb.framework.core.services.jwtauth",["toastr","graphdb.framework.rest.security.service","graphdb.framework.core.services.openIDService"]).service("$jwtAuth",["$http","toastr","$location","$rootScope","SecurityRestService","$openIDAuth","$translate","$q","AuthTokenService","LSKeys","LocalStorageAdapter",function(e,t,n,i,o,s,a,u,l,c,p){const h=this;i.deniedPermissions={},i.setPermissionDenied=function(e){return!("/login"===e||!h.isAuthenticated())&&(i.deniedPermissions[e]=!0,!0)},i.hasPermission=function(){const e=n.path();return!i.deniedPermissions[e]},this.updateReturnUrl=()=>{0!==n.url().indexOf("/login")&&(i.returnToUrl=n.url())},i.redirectToLogin=function(e,t){return h.authTokenIsType("Bearer")&&(e=!0),h.clearAuthenticationInternal(),h.updateReturnUrl(),n.path("/login"),t?n.search("noaccess"):e&&n.search("expired"),new Promise(e=>{setTimeout(()=>{e(!0)},100)})},i.hasExternalAuthUser=function(){return h.hasExternalAuthUser()},this.securityEnabled=!0,this.freeAccess=!1,this.hasOverrideAuth=!1,this.externalAuthUser=!1,this.securityInitialized=!1;const d=this;this.getAuthenticatedUserFromBackend=function(e,t){o.getAuthenticatedUser().success((function(e,t,n){const r=l.getAuthToken();r&&r.startsWith("GDB")?(d.externalAuthUser=!1,d.principal=e,i.$broadcast("securityInit",d.securityEnabled,!0,d.freeAccess)):d.openIDEnabled&&r&&r.startsWith("Bearer")?d.authenticate(e,r):(d.externalAuthUser=!0,d.authenticate(e,""))})).error((function(){e||!d.freeAccess?i.redirectToLogin(!1,t):(d.securityInitialized=!0,d.hasExplicitAuthentication()||d.clearAuthentication())}))},this.initSecurity=function(){this.securityInitialized=!1,o.getSecurityConfig().then((function(e){if(d.securityEnabled=e.data.enabled,d.externalAuth=e.data.hasExternalAuth,d.authImplementation=e.data.authImplementation,d.openIDEnabled=e.data.openIdEnabled,d.passwordLoginEnabled=e.data.passwordLoginEnabled,d.securityEnabled){const t=e.data.freeAccess;d.freeAccess=t.enabled,d.freeAccess&&(d.freeAccessPrincipal={authorities:t.authorities,appSettings:t.appSettings}),d.openIDEnabled?(d.openIDConfig=e.data.methodSettings.openid,d.gdbUrl=n.absUrl().replace(n.url().substr(1),""),s.initOpenId(d.openIDConfig,d.gdbUrl,(function(e){l.setAuthToken(s.authHeaderGraphDB()),console.log("oidc: set id/access token as GraphDB auth"),d.getAuthenticatedUserFromBackend(!0,e)}),(function(){console.log("oidc: not logged or login error"),d.authTokenIsType("Bearer")?setTimeout(()=>{i.redirectToLogin(!0)},0):d.getAuthenticatedUserFromBackend()}))):d.getAuthenticatedUserFromBackend()}else{l.clearAuthToken();const t=e.data.overrideAuth;if(d.hasOverrideAuth=t.enabled,!d.hasOverrideAuth)return o.getAdminUser().then((function(e){d.principal={username:"admin",appSettings:e.data.appSettings,authorities:e.data.grantedAuthorities},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}));d.principal={username:"overrideauth",authorities:t.authorities,appSettings:t.appSettings},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}}))},this.initSecurity(),this.reinitializeSecurity=function(){this.securityInitialized||this.initSecurity()},this.isSecurityEnabled=function(){return this.securityEnabled},this.hasExternalAuth=function(){return this.externalAuth},this.getAuthImplementation=function(){return this.authImplementation},this.isFreeAccessEnabled=function(){return this.freeAccess},this.isDefaultAuthEnabled=function(){return this.hasOverrideAuth&&this.principal&&"overrideauth"===this.principal.username},this.authTokenIsType=function(e){const t=l.getAuthToken();return t&&t.startsWith(e)},this.loginOpenID=function(){s.login(this.openIDConfig,this.gdbUrl)},this.toggleSecurity=function(e){e!==this.securityEnabled&&o.toggleSecurity(e).then((function(){t.success(a.instant("jwt.auth.security.status",{status:a.instant(e?"enabled.status":"disabled.status")})),l.clearAuthToken(),d.initSecurity(),d.securityEnabled=e}),(function(e){t.error(e.data,a.instant("common.error"))}))},this.toggleFreeAccess=function(e,n,r,s){(e!==this.freeAccess||s)&&(this.freeAccess=e,this.freeAccessPrincipal=e?{authorities:n,appSettings:r}:void 0,o.setFreeAccess({enabled:e?"true":"false",authorities:n,appSettings:r}).then((function(){s?t.success(a.instant("jwt.auth.free.access.updated.msg")):t.success(a.instant("jwt.auth.free.access.status",{status:a.instant(e?"enabled.status":"disabled.status")}))}),(function(e){t.error(e.data.error.message,a.instant("common.error"))})),i.$broadcast("securityInit",this.securityEnabled,this.hasExplicitAuthentication(),this.freeAccess))},this.authenticate=function(e,t){return new Promise(n=>{t?(l.setAuthToken(t),this.externalAuthUser=!1):l.clearAuthToken(),this.principal=e,i.deniedPermissions={},this.securityInitialized=!0;const r={id:p.get(c.REPOSITORY_ID)||"",location:p.get(c.REPOSITORY_LOCATION)||""};h.canReadRepo(r)||(p.remove(c.REPOSITORY_ID),p.remove(c.REPOSITORY_LOCATION),i.deniedPermissions={}),i.$broadcast("securityInit",this.securityEnabled,d.hasExplicitAuthentication(),this.freeAccess),setTimeout(()=>{n(!0)})})},this.authenticateOpenID=function(e){l.clearAuthToken(),e&&(l.setAuthToken(e),this.externalAuthUser=!1)},this.hasExternalAuthUser=function(){return this.externalAuthUser},this.hasExplicitAuthentication=function(){return null!=l.getAuthToken()||this.externalAuthUser},this.getPrincipal=function(){if(this.principal)return Promise.resolve(this.principal);const e=u.defer();return i.$on("securityInit",()=>{e.resolve(this.principal)}),e.promise},this.clearAuthenticationInternal=function(){s.softLogout(),this.principal=this.freeAccessPrincipal,l.clearAuthToken()},this.clearAuthentication=function(){this.clearAuthenticationInternal(),i.$broadcast("securityInit",this.securityEnabled,!1,this.freeAccess)},this.isAuthenticated=function(){return!this.securityEnabled||this.hasExplicitAuthentication()},this.hasPermission=function(){},this.hasRole=function(e){if(void 0!==e&&(this.securityEnabled||this.hasOverrideAuth)){"string"==typeof e&&(e=[e]);const t=!_.isEmpty(this.principal);return!!t&&("IS_AUTHENTICATED_FULLY"===e[0]?t:_.intersection(e,this.principal.authorities).length>0)}return!0},this.isAdmin=function(){return this.hasRole(r.UserRole.ROLE_ADMIN)},this.isRepoManager=function(){return this.hasRole(r.UserRole.ROLE_REPO_MANAGER)},this.hasRoleMonitor=function(){return this.hasRole(r.UserRole.ROLE_MONITORING)},this.checkForWrite=function(e,t){return"WRITE_REPO"===e?this.canWriteRepo(t):this.hasRole(e)},this.hasAdminRole=function(){return this.isAdmin()||this.isRepoManager()},this.canWriteRepo=function(e){return!!e&&(!this.securityEnabled&&!this.hasOverrideAuth||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"WRITE")))},this.canReadRepo=function(e){return!!e&&(!this.securityEnabled||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"READ")))},this.checkRights=function(e,t){if(e)for(let n=0;n<this.principal.authorities.length;n++){const r=this.principal.authorities[n],i=r.split("_",2),o=r.slice(i[0].length+i[1].length+2),s=e.location?`${e.id}@${e.location}`:e.id;if(i[0]===t&&(s===o||"SYSTEM"!==e.id&&"*"===o))return!0}return!1}}])},27:function(e,t){let n;angular.module("graphdb.framework.utils.uriutils",[]).factory("UriUtils",r);try{n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:(?:\\/\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:])*@)?(?:\\[(?:(?:(?:[0-9a-f]{1,4}:){6}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|::(?:[0-9a-f]{1,4}:){5}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4}:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|v[0-9a-f]+[-a-z0-9\\._~!\\$&'\\(\\)\\*\\+,;=:]+)\\]|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}|(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=@])*)(?::[0-9]*)?(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|\\/(?:(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*)?|(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|(?!(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])))(?:\\?(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\u{E000}-\\u{F8FF}\\u{F0000}-\\u{FFFFD}\\u{100000}-\\u{10FFFD}\\/\\?])*)?(?:#(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\/\\?])*)?>?$","ui")}catch(e){n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:>?","i")}function r(e){function t(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}return{isValidIri:function(e,r){if(void 0!==e&&void 0!==r&&(t(r)||r.match(n)))return!0},validateRdfUri:t,shortenIri:function(e){const t=document.createElement("a");t.href=e;let n=t.hostname;return function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1}(t.hostname)||(n=t.hostname.split(".")[0]),n+":"+t.port},expandPrefix:function(t,n){const r=/^<.*>$/.test(t);if(t=function(e,t){if(t.test(e))return e.substring(1,e.length-1);return e}(t,/^<.*>$/),!/^<?(http|urn).*>?/.test(t)){const i=t.split(":"),o=i[0],s=i[1];if(!angular.isUndefined(s)){const t=e.getNamespaceUriForPrefix(n,o);if(t)return t+s;if(!r)return""}}return t}}}r.$inject=["ClassInstanceDetailsService"]},28:function(e,t,n){"use strict";n.r(t);var r=n(17),i=n(20);angular.module("graphdb.framework.rest.monitoring.service",[]).factory("MonitoringRestService",o),o.$inject=["$http"];function o(e){return{monitorResources:function(){return e.get("rest/monitor/infrastructure")},monitorStructures:function(){return e.get("rest/monitor/structures")},monitorCluster:function(){return e.get("rest/monitor/cluster")},monitorGC:function(){return e.post("rest/monitor/infrastructure/gc")},monitorQuery:function(t){return e.get(`rest/monitor/repository/${t}/query/active`)},monitorBackup:function(){return e.get("rest/monitor/backup").then(e=>Object(r.mapBackupAndRestoreResponseToModel)(e.data))},monitorActiveOperations:function(t){return e.get(`rest/monitor/${t}/operations`).then(e=>Object(i.mapActiveOperationResponseToModel)(e.data))},deleteQuery:function(t,n){return e.delete(`rest/monitor/repository/${n}/query?query=${encodeURIComponent(t)}`)},getQueryCount:function(t){return e({url:`rest/monitor/repository/${t}/query/count`,method:"GET",timeout:1e4})},checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")},monitorQueryTransactionStatistics:function(t){return e.get("rest/monitor/repository/"+t)}}}},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return ne})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return be})),n.d(t,"g",(function(){return le}));let r,i,o,s=!1,a=!1,u=!1,l=!1;const c={},p=e=>"object"===(e=typeof e)||"function"===e,h=(e,t,...n)=>{let r=null,i=null,o=!1,s=!1;const a=[],u=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?u(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!p(r))&&(r=String(r)),o&&s?a[a.length-1].$text$+=r:a.push(o?d(null,r):r),s=o)};if(u(n),t){t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,a,g);const l=d(e,null);return l.$attrs$=t,a.length>0&&(l.$children$=a),l.$name$=i,l},d=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$name$:null};return n},f={},g={forEach:(e,t)=>e.map(m).forEach(t),map:(e,t)=>e.map(m).map(t).map(v)},m=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=d(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},y=e=>ue(e).$hostElement$,b=(e,t,n)=>{const r=y(e);return{emit:e=>w(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const r=ye.ce(t,n);return e.dispatchEvent(r),r},x=new WeakMap,S=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=(t.$tagName$,()=>{}),o=((e,t,n,r)=>{let i=E(t);const o=ge.get(i);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){e=e.head||e;let t,n=x.get(e);n||x.set(e,n=new Set),n.has(i)||(t=ve.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),n&&n.add(i))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h")),i()},E=(e,t)=>"sc-"+e.$tagName$,$=(e,t,n,r,i,o)=>{if(n!==r){let s=pe(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,i=F(n),o=F(r);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if("ref"===t)r&&r(e);else if(s||"o"!==t[0]||"n"!==t[1]){const a=p(r);if((s||a&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&o||i)&&!a&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):pe(me,a)?a.slice(2):a[2]+t.slice(3),n&&ye.rel(e,t,n,!1),r&&ye.ael(e,t,r,!1)}},A=/\s/,F=e=>e?e.split(A):[],C=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||c,s=t.$attrs$||c;for(r in o)r in s||$(i,r,o[r],void 0,n,t.$flags$);for(r in s)$(i,r,o[r],s[r],n,t.$flags$)},D=(e,t,n,a)=>{const l=t.$children$[n];let c,p,h,d=0;if(s||(u=!0,"slot"===l.$tag$&&(r&&a.classList.add(r+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)c=l.$elm$=ve.createTextNode(l.$text$);else if(1&l.$flags$)c=l.$elm$=ve.createTextNode("");else if(c=l.$elm$=ve.createElement(2&l.$flags$?"slot-fb":l.$tag$),C(null,l,!1),null!=r&&c["s-si"]!==r&&c.classList.add(c["s-si"]=r),l.$children$)for(d=0;d<l.$children$.length;++d)p=D(e,l,d,c),p&&c.appendChild(p);return c["s-hn"]=o,3&l.$flags$&&(c["s-sr"]=!0,c["s-cr"]=i,c["s-sn"]=l.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===l.$tag$&&e.$elm$&&T(e.$elm$,!1)),c},T=(e,t)=>{ye.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==o&&r["s-ol"]&&(O(r).insertBefore(r,k(r)),r["s-ol"].remove(),r["s-ol"]=void 0,u=!0),t&&T(r,t)}ye.$flags$&=-2},R=(e,t,n,r,i,s)=>{let a,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);i<=s;++i)r[i]&&(a=D(null,n,i,e),a&&(r[i].$elm$=a,u.insertBefore(a,k(t))))},I=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,U(r),a=!0,i["s-ol"]?i["s-ol"].remove():T(i,!0),i.remove())},P=(e,t)=>e.$tag$===t.$tag$&&("slot"!==e.$tag$||e.$name$===t.$name$),k=e=>e&&e["s-ol"]||e,O=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,_=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;null===s?("slot"===o||C(e,t,!1),null!==r&&null!==i?((e,t,n,r)=>{let i,o=0,s=0,a=t.length-1,u=t[0],l=t[a],c=r.length-1,p=r[0],h=r[c];for(;o<=a&&s<=c;)null==u?u=t[++o]:null==l?l=t[--a]:null==p?p=r[++s]:null==h?h=r[--c]:P(u,p)?(_(u,p),u=t[++o],p=r[++s]):P(l,h)?(_(l,h),l=t[--a],h=r[--c]):P(u,h)?("slot"!==u.$tag$&&"slot"!==h.$tag$||T(u.$elm$.parentNode,!1),_(u,h),e.insertBefore(u.$elm$,l.$elm$.nextSibling),u=t[++o],h=r[--c]):P(l,p)?("slot"!==u.$tag$&&"slot"!==h.$tag$||T(l.$elm$.parentNode,!1),_(l,p),e.insertBefore(l.$elm$,u.$elm$),l=t[--a],p=r[++s]):(i=D(t&&t[s],n,s,e),p=r[++s],i&&O(u.$elm$).insertBefore(i,k(u.$elm$)));o>a?R(e,null==r[c+1]?null:r[c+1].$elm$,n,r,s,c):s>c&&I(t,o,a)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),R(n,null,t,i,0,i.length-1)):null!==r&&I(r,0,r.length-1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},j=e=>{const t=e.childNodes;let n,r,i,o,s,a;for(r=0,i=t.length;r<i;r++)if(n=t[r],1===n.nodeType){if(n["s-sr"])for(s=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(a=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==s){if(1===a&&s===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===a||3===a&&""!==t[o].textContent.trim()){n.hidden=!0;break}j(n)}},N=[],L=e=>{let t,n,r,i,o,s,u=0;const l=e.childNodes,c=l.length;for(;u<c;u++){if(t=l[u],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(B(n,i)?(o=N.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:N.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&N.map(e=>{B(e.$nodeToRelocate$,n["s-sn"])&&(o=N.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):N.some(e=>e.$nodeToRelocate$===n)||N.push({$nodeToRelocate$:n}));1===t.nodeType&&L(t)}},B=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,U=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(U)},M=(e,t)=>{const n=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||d(null,null),p=(g=t)&&g.$tag$===f?t:h(null,null,t);var g;if(o=n.tagName,p.$tag$=null,p.$flags$|=4,e.$vnode$=p,p.$elm$=c.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],s=0!=(1&l.$flags$),a=!1,_(c,p),ye.$flags$|=1,u){let e,t,n,r,i,o;L(p.$elm$);let s=0;for(;s<N.length;s++)e=N[s],t=e.$nodeToRelocate$,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(s=0;s<N.length;s++)if(e=N[s],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&r===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){i=o;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}a&&j(p.$elm$),ye.$flags$&=-2,N.length=0},H=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},V=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);H(e,e.$ancestorComponent$);return Ce(()=>q(e,t))},q=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>Y(r,e,t)),e.$queuedListeners$=null),i=Y(r,"componentWillLoad")),n(),X(i,()=>K(e,r,t))},K=async(e,t,n)=>{const r=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),o=r["s-rc"];n&&S(e);const s=(e.$cmpMeta$.$tagName$,()=>{});z(e,t),o&&(o.map(e=>e()),r["s-rc"]=void 0),s(),i();{const t=r["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},z=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,M(e,t)}catch(t){he(t,e.$hostElement$)}return null},G=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,i=e.$ancestorComponent$;Y(r,"componentDidRender"),64&e.$flags$?(Y(r,"componentDidUpdate"),n()):(e.$flags$|=64,Q(t),Y(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),i||W()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Fe(()=>V(e,!1)),e.$flags$&=-517},W=e=>{Q(ve.documentElement),Fe(()=>w(me,"appload",{detail:{namespace:"ontotext-yasgui-web-component"}}))},Y=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){he(e)}},X=(e,t)=>e&&e.then?e.then(t):t(),Q=e=>e.classList.add("hydrated"),J=(e,t,n,r)=>{const i=ue(e),o=i.$hostElement$,s=i.$instanceValues$.get(t),a=i.$flags$,u=i.$lazyInstance$;var l,c;l=n,c=r.$members$[t][0],n=null==l||p(l)?l:4&c?"false"!==l&&(""===l||!!l):2&c?parseFloat(l):1&c?String(l):l;const h=Number.isNaN(s)&&Number.isNaN(n);if((!(8&a)||void 0===s)&&(n!==s&&!h)&&(i.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map(e=>{try{u[e](n,s,t)}catch(e){he(e,o)}})}2==(18&a)&&V(i,!1)}},Z=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,ue(this).$instanceValues$.get(t);var t},set(n){J(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=ue(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const t=new Map;i.attributeChangedCallback=function(e,n,r){ye.jmp(()=>{const n=t.get(e);if(this.hasOwnProperty(n))r=this[n],delete this[n];else if(i.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==r)return;this[n]=(null!==r||"boolean"!=typeof this[n])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,n])=>{const r=n[1]||e;return t.set(r,e),r})}}return e},ee=async(e,t,n,r,i)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(i=fe(n)).then){const e=()=>{};i=await i,e()}i.isProxied||(n.$watchers$=i.watchers,Z(i,n,2),i.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new i(t)}catch(e){he(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(i.style){let e=i.style;const t=E(n);if(!ge.has(t)){const r=(n.$tagName$,()=>{});((e,t,n)=>{let r=ge.get(e);we&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,ge.set(e,r)})(t,e,!!(1&n.$flags$)),r()}}}const o=t.$ancestorComponent$,s=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},te=e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ne=(e,t={})=>{const n=()=>{},r=[],i=t.exclude||[],o=me.customElements,s=ve.head,a=s.querySelector("meta[charset]"),u=ve.createElement("style"),l=[];let c,p=!0;Object.assign(ye,t),ye.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$={};const s=n.$tagName$,a=class extends HTMLElement{constructor(e){super(e),ce(e=this,n),1&n.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),p?l.push(this):ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)re(e,t,n.$listeners$);else{t.$flags$|=1,12&n.$flags$&&te(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ee(0,t,n)}r()}})(this))}disconnectedCallback(){ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),Y(n,"disconnectedCallback")}})(this))}componentOnReady(){return ue(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],i.includes(s)||o.get(s)||(r.push(s),o.define(s,Z(a,n,1)))})}),u.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),s.insertBefore(u,a?a.nextSibling:s.firstChild),p=!1,l.length?l.map(e=>e.connectedCallback()):ye.jmp(()=>c=setTimeout(W,30)),n()},re=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const o=oe(e,n),s=ie(t,i),a=se(n);ye.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>ye.rel(o,r,s,a))})},ie=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){he(e)}},oe=(e,t)=>4&t?ve:8&t?me:e,se=e=>0!=(2&e),ae=new WeakMap,ue=e=>ae.get(e),le=(e,t)=>ae.set(t.$lazyInstance$=e,t),ce=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],re(e,n,t.$listeners$),ae.set(e,n)},pe=(e,t)=>t in e,he=(e,t)=>(0,console.error)(e,t),de=new Map,fe=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,s=de.get(o);return s?s[i]:n(324)(`./${o}.entry.js`).then(e=>(de.set(o,e),e[i]),he)
9
+ var r=n(319),i=n(320),o=n(321);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=a(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return F(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var p=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){p=!1;break}if(p)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function w(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function E(e,t,n,r){return H(M(t),e,n,r)}function $(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function F(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,l=e[i],c=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?F(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(r,i),c=e.slice(t,n),p=0;p<a;++p)if(l[p]!==c[p]){o=l[p],s=c[p];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function _(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||_(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||_(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:U(new u(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function M(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(11))},21:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationsModel",(function(){return o}));var r=n(4),i=n(1);class o{constructor(){this.operations=[],this.status=r.OPERATION_STATUS.INFORMATION}hasClusterOperation(){return!!this.operations&&this.operations.some(e=>i.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===e.operationGroup)}}},22:function(e,t,n){"use strict";n.r(t),n.d(t,"SequenceGeneratorUtil",(function(){return r}));class r{static getFibonacciSequenceGenerator(){return r.fibonacciSequenceGenerator()}static fibonacciSequenceGenerator(){let e=0,t=1;return{next:function(){const n=t;return t=e+t,e=n,n},reset:function(){e=0,t=1}}}}},23:function(e,t,n){"use strict";n.r(t),n.d(t,"mapUriAsNtripleAutocompleteResponse",(function(){return r}));const r=e=>e&&e.data&&e.data.suggestions?e.data.suggestions.map(e=>({type:e.type,value:e.value,description:e.description})):[]},24:function(e,t,n){"use strict";n.r(t);n(7),n(16),n(33),n(15),n(57),n(58),n(32);var r=n(12);angular.module("graphdb.framework.core.services.repositories",["ngCookies","graphdb.framework.rest.repositories.service","graphdb.framework.rest.locations.service","graphdb.framework.rest.license.service","toastr","graphdb.framework.utils.event-emitter-service"]).service("$repositories",["toastr","$rootScope","$timeout","$location","productInfo","$jwtAuth","RepositoriesRestService","LocationsRestService","LicenseRestService","$translate","$q","LocalStorageAdapter","LSKeys","EventEmitterService","RDF4JRepositoriesRestService",function(e,t,n,i,o,s,a,u,l,c,p,h,d,f,g){this.location={uri:"",label:"Local",local:!0,isInCluster:!1},this.locationError="",this.loading=!0,this.locations=[this.location],this.repositories=new Map,this.locationsShouldReload=!0;const m=this,v=function(t,n){m.loading=!1,t&&(m.location={},m.locationError=n,m.repositories=new Map,m.setRepository(""),t.statusText?e.error(t.statusText,c.instant("repositories.service.error.loading.location")):e.error(c.instant("repositories.service.error.loading.location")))};let y;this.resetActiveRepository=function(){const e=this.getActiveRepositoryObjectFromStorage(),n=m.repositories.get(e.location);let r=!1;n&&(r=n.find(t=>t.id===e.id)),r?s.canReadRepo(e)?t.$broadcast("repositoryIsSet",{newRepo:!1}):this.setRepository(""):this.setRepository(this.location.defaultRepository?{id:this.location.defaultRepository,location:this.location.uri}:"")},this.checkLocationsDegraded=function(e){this.locations.forEach(t=>{t.local||(t.errorMsg&&m.repositories.delete(t.uri)&&m.resetActiveRepository(),l.getVersion(t.uri).success((function(e){"object"==typeof e?e.productVersion!==o.productVersion&&(t.degradedReason=c.instant("repositories.service.different.gdb.version",{location:t.name})):t.degradedReason=c.instant("repositories.service.different.gdb.version",{location:t.name})})).error((function(n){t.errorMsg=n,e||(m.locationsShouldReload=!0)})))})},this.getDegradedReason=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.locations.find(t=>t.uri===e.location);return t?t.degradedReason:""},this.clearLocationErrorMsg=function(e){const t=this.locations.find(t=>t.uri===e);t&&t.errorMsg&&(t.errorMsg=null)},this.initQuick=function(){this.hasActiveLocation()&&this.init(null,null,!0)},this.init=function(e,n,r){return this.loading=!0,r||(this.locationsShouldReload=!0),u.getActiveLocation().then((function(i){if(i.data){const o=i.data;if(o.active)return a.getRepositories().then((function(n){m.location=o,Object.entries(n.data).forEach(([e,t])=>{m.clearLocationErrorMsg(e),m.repositories.set(e,t)}),m.resetActiveRepository(),v(),m.checkLocationsDegraded(r),t.globalLocation=m.location,t.globalRepositories=m.getRepositories(),e&&e()})).catch((function(e){v(e),n&&n()}))}else v(),r&&(m.locationsShouldReload=!0),m.location="",m.repositories=new Map,m.setRepository("");t.globalLocation=m.location,t.globalRepositories=m.getRepositories()})).catch((function(e){v(e),n&&n()}))},this.getLocations=function(e){if(this.locationsShouldReload||y)return y||(this.locationsShouldReload=!1,this.locations=[this.location],y=u.getLocations(e,!0).then(e=>(m.locations=e.data,this.locations)).catch((function(){n((function(){m.locationsShouldReload=!0}),2e3)})).finally(()=>{y=null})),y;const t=p.defer();return t.resolve(this.locations),t.promise},this.getActiveLocation=function(){return this.location},this.hasActiveLocation=function(){return!_.isEmpty(this.location)},this.getLocationError=function(){return this.locationError?this.locationError:c.instant("repositories.service.no.active.location")},this.isLoadingLocation=function(){return this.loading},this.getRepositories=function(){const e=[];return this.repositories.forEach(t=>e.push.apply(e,t)),e},this.getReadableRepositories=function(){return _.filter(this.getRepositories(),(function(e){return s.canReadRepo(e)}))},this.getWritableRepositories=function(){const e=this;return _.filter(this.getRepositories(),(function(t){return s.canWriteRepo(t)&&!e.isActiveRepoOntopType(t)}))},this.getActiveRepositoryObjectFromStorage=function(){return{id:h.get(d.REPOSITORY_ID)||"",location:h.get(d.REPOSITORY_LOCATION)||""}},this.getActiveRepository=function(){return h.get(d.REPOSITORY_ID)||void 0},this.getActiveRepositoryObject=function(){const e=this.getActiveRepositoryObjectFromStorage(),t=this.repositories.get(e.location);return t?t.find(t=>t.id===e.id):null},this.isSystemRepository=function(){return"SYSTEM"===this.getActiveRepositoryObjectFromStorage().id},this.isActiveRepoOntopType=function(e){const t=this;let n;return e||(e=t.getActiveRepositoryObject()),e&&(n=t.repositories.get(e.location).find(t=>t.id===e.id),n)?"graphdb:OntopRepository"===n.sesameType:void 0===n},this.isActiveRepoFedXType=function(){const e=this,t=e.getActiveRepositoryObject();let n;return t&&(n=e.repositories.get(t.location).find(e=>e.id===t.id),n)?"graphdb:FedXRepository"===n.sesameType:void 0===n},this.getLocationFromUri=function(e){return this.locations.find(t=>t.uri===e)},this.setRepositoryHeaders=function(e){$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers["X-GraphDB-Repository"]=e?e.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=e?e.location:void 0},this.setRepository=function(e){const n={oldRepository:this.repository,newRepository:e,cancel:!1};f.emit("repositoryWillChangeEvent",n,n=>{n.cancel||(e?(h.set(d.REPOSITORY_ID,e.id),h.set(d.REPOSITORY_LOCATION,e.location)):(h.remove(d.REPOSITORY_ID),h.remove(d.REPOSITORY_LOCATION)),this.setRepositoryHeaders(e),t.$broadcast("repositoryIsSet",{newRepo:!0}),e&&!s.canReadRepo(e)&&this.setRepository(""),t.deniedPermissions={})})},this.getDefaultRepository=function(){return this.hasActiveLocation()?this.location.defaultRepository:""},this.setDefaultRepository=function(t){if(!this.hasActiveLocation())return void e.error(c.instant("repositories.service.no.active.location"),c.instant("common.error"));const n=this;u.setDefaultRepository(t).success((function(){n.location.defaultRepository=t})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.deleteLocation=function(t){return u.deleteLocation(encodeURIComponent(t)).success((function(){const e=m.getActiveRepositoryObject();e&&e.location===t&&(m.location="",m.setRepository("")),m.init()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.deleteRepository=function(t){return a.deleteRepository(t).success((function(){m.init()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))})).finally(()=>{const e=m.getActiveRepositoryObject();e&&e.id===t.id&&e.location===t.location&&m.setRepository("")})},this.restartRepository=function(t){return a.restartRepository(t).success((function(){e.success(c.instant("repositories.service.restarting.repo",{repositoryId:t.id})),m.initQuick()})).error((function(t){const n=getError(t);e.error(n,c.instant("common.error"))}))},this.getRepositoryTurtleConfig=function(e){return a.getRepositoryTurtleConfig(e)},this.isRepoActive=function(e){const t=this.getActiveRepositoryObjectFromStorage();return!!t.id&&(e.id===t.id&&e.location===t.location)},this.getRepositoriesFromLocation=function(e){return this.repositories.get(e)},this.getPrefixes=e=>g.getRepositoryNamespaces(e).then(e=>{const t={};return e.data.results.bindings.forEach((function(e){t[e.prefix.value]=e.namespace.value})),t}),this.resolveSparqlEndpoint=e=>e===r.QueryMode.UPDATE?`repositories/${this.getActiveRepository()}/statements`:e===r.QueryMode.QUERY?"repositories/"+this.getActiveRepository():void 0,t.$on("securityInit",(function(e,t,r,i){y=null,(!t||r||i)&&n((function(){m.init()}))})),t.$on("reloadLocations",(function(){m.locationsShouldReload=!0,m.getLocations().then(()=>m.initQuick())}))}])},25:function(e,t,n){"use strict";n.r(t);n(10);var r=n(0);function i(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.2">{{\'common.loading\' | translate}}</object>'}}}function o(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=2.6.2"></object><div>{{\'common.loading\' | translate}}<div>'}}}function s(e){const t=function(e,n){n.timer=void 0,n.currentMessage=n.getMessage();const r=n.timeout[n.index%n.timeout.length];r&&(n.timer=e((function(){(n.index+1<n.message.length||0===n.message.length)&&(n.index++,t(e,n))}),1e3*r))};return{restrict:"EA",scope:{size:"@",trigger:"@",messageAttr:"=*message",timeoutAttr:"=*timeout",ngShow:"=",ngHide:"="},link:function(n){n.message=n.messageAttr,n.getMessage=function(){return n.message[n.index]},void 0===n.message?n.message=[""]:"function"==typeof n.message?(n.getMessage=n.message,n.message=[]):"object"!=typeof n.message&&(n.message=[n.message]),n.timeout=n.timeoutAttr,void 0===n.timeout?n.timeout=[0]:"object"!=typeof n.timeout&&(n.timeout=[n.timeout]),n.index=0,t(e,n);const r=function(r){n.timer&&e.cancel(n.timer),r&&(n.index=0,t(e,n))};n.$watch("ngShow",(function(e){r(e)})),n.$watch("ngHide",(function(e){r(!e)})),n.$on("$destroy",(function(){n.timer&&e.cancel(n.timer)}))},template:'<div class="ot-loader-new-content"><img width="{{size}}" height="{{size}}" src="js/angular/templates/loader/ot-loader.svg?v=2.6.2"/><div style="font-size: {{size/4}}px">{{currentMessage}}<div></div>'}}function a(e){return{restrict:"EA",transclude:!0,templateUrl:"js/angular/core/templates/core-errors.html",link:function(t,n,r){let i;t.$watch("getActiveRepository()",(function(e){e&&!t.isRestricted?n.hide():n.show()})),t.setAttrs(r),t.setRestricted(),t.showRemoteLocations=!1,t.toggleShowRemoteLocations=()=>{t.showRemoteLocations=!t.showRemoteLocations},t.getAccessibleRepositories=function(){let e=e=>!0;return t.showRemoteLocations||(e=e=>e.local),t.isRestricted?t.getWritableRepositories().filter(e):t.getReadableRepositories().filter(e)},t.showPopoverForRepo=function(n,r){t.hidePopoverForRepo(),t.setPopoverRepo(r),e((function(){const e=$(n.toElement).find(".popover-anchor")[0];i=e,e&&!t.getActiveRepository()&&e.dispatchEvent(new Event("show"))})),n.stopPropagation()},t.hidePopoverForRepo=function(t){if(t){let e=t.relatedTarget;for(;e;){if(0===e.className.indexOf("popover"))return;e=e.parentElement}}i&&e((function(){i&&(i.dispatchEvent(new Event("hide")),i=null)})),t&&t.stopPropagation()}}}}function u(){return function(e,t){$(t).click((function(e){e.preventDefault(),e.stopPropagation()}))}}function l(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.multiRequired||(e.multiRequired=[]);const i=n.multiRequireElement,o=function(t){i&&i%1==0&&(e.multiRequired[i-1]=t)},s=function(){let t=!1,n=!1;for(let r=0;r<e.multiRequired.length;r++)e.multiRequired[r]?t=!0:n=!0;r.$setValidity("multiRequire",!(t&&n))};r.$parsers.unshift((function(e){return o(e),s(),e})),r.$formatters.unshift((function(e){return o(e),s(),e})),$("[multi-required]").on("blur keyup change focusout",(function(){s()}))}}}angular.module("graphdb.framework.core.directives",["graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).directive("ontoLoader",i).directive("ontoLoaderFancy",o).directive("ontoLoaderNew",s).directive("coreErrors",a).directive("eatClick",u).directive("multiRequired",l).directive("searchResourceInput",p).directive("keyboardShortcuts",h).directive("inactivePluginDirective",d).directive("autoGrow",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){const i=function(){const e=r.$viewValue;e&&""!==e.trim()?(t[0].style.height="0px",t[0].style.height=t[0].scrollHeight+"px"):t[0].style.height="26px",t[0].style.overflow="hidden"};e.$watch((function(){return r.$viewValue}),(function(){i()})),t.bind("input change",(function(){i()}))}}})).directive("captureHeight",(function(){return{restrict:"A",scope:{rowIndex:"=captureHeight"},link:function(e,t,n){e.$watch((function(){return t[0].offsetHeight}),(function(t){e.$parent.rowHeights[e.rowIndex]=t+"px!important"}))}}})),i.$inject=[],o.$inject=[],s.$inject=["$timeout"],a.$inject=["$timeout"],u.$inject=[],l.$inject=[];const c={table:"table",visual:"visual"};function p(e,t,n,i,o,s,a,u,l,p,h,d){return{restrict:"EA",scope:{namespacespromise:"=",autocompletepromisestatus:"=",textButton:"@",visualButton:"@",textCallback:"&",visualCallback:"&",placeholder:"@",uriValidation:"@",preserveInput:"@",empty:"=",clear:"=?clear",openInNewTab:"@",preserveSearch:"@",radioButtons:"@",clearInputIcon:"@"},templateUrl:"js/angular/core/templates/search-resource-input.html",link:function(f,g,m){g.autoCompleteStatus=void 0,g.autoCompleteWarning=!1,f.empty=!1,f.clear=!1,f.searchDisplayType=c;const v="true"===f.preserveSearch,y=g.find(".view-res-input");let b,w;f.textButtonLabel=f.textButton||"query.editor.table.btn",f.visualButtonLabel=f.visualButton||"query.editor.visual.btn",f.showClearInputIcon=!1,f.searchType=u.get(l.RDF_SEARCH_TYPE)||c.table,f.searchInput="",f.changeSearchType=function(e){f.searchType=e,u.set(l.RDF_SEARCH_TYPE,f.searchType)},f.$on("addStartFixedNodeAutomatically",(function(e,t){f.searchInput||!t.startIRI?f.checkIfValidAndSearchText():f.visualCallback({uri:t.startIRI,label:""})})),f.clearInput=function(){f.searchInput="",f.selectedElementIndex=-1,f.autoCompleteUriResults=[],f.showClearInputIcon=!1,u.remove(l.RDF_SEARCH_INPUT),u.remove(l.RDF_SEARCH_EXPANDED_URI),u.remove(l.RDF_RESOURCE_DESCRIPTION)},f.$watch("namespacespromise",(function(){angular.isDefined(f.namespacespromise)&&f.namespacespromise.success((function(e){g.namespaces=e.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}}))})).error((function(e){const n=getError(e);t.error(n,h.instant("error.getting.namespaces.for.repo"))}))})),f.$watch("autocompletepromisestatus",(function(){!p.isActiveRepoFedXType()&&angular.isDefined(f.autocompletepromisestatus)&&f.autocompletepromisestatus.success((function(e){g.autoCompleteStatus=!!e,""!==f.searchInput&&f.onChange()})).error((function(){t.error(h.instant("explore.error.autocomplete"))}))})),f.$watch("empty",(function(){v||(f.searchInput="",f.empty=!1)})),f.$watch("clear",(function(){f.clear&&(f.clearInput(),f.clear=!1)})),o.$on("$translateChangeSuccess",(function(){m.$attr.placeholder?f.placeholder=m.$attr.placeholder:f.placeholder=h.instant("search.resources.msg")+"..."}));const x=function(t){const n=t.type||"uri";"true"===f.openInNewTab?E(!1,t):e.path("resource").search(n,t.uri)},S=function(t){const n=t.type||"uri";"true"===f.openInNewTab?E(!0,t):e.path("graphs-visualizations").search(n,t.uri)},E=function(e,t){const n=e?"graphs-visualizations":"resource";window.open(`${n}?uri=${encodeURIComponent(t.uri)}`)};angular.isUndefined(m.$attr.textCallback)&&(f.textCallback=x),angular.isUndefined(m.$attr.visualCallback)&&(f.visualCallback=S),m.$attr.textButton&&!f.textButton?f.textCallback=f.visualCallback:m.$attr.visualButton&&!f.visualButton&&(f.visualCallback=f.textCallback),m.$attr.placeholder?f.placeholder=m.$attr.placeholder:f.placeholder=h.instant("search.resources.msg")+"...",angular.isDefined(m.$attr.uriValidation)?f.uriValidation=m.$attr.uriValidation:f.uriValidation="true",angular.isDefined(m.$attr.preserveInput)&&(f.preserveInput=m.$attr.preserveInput),f.getResultItemHtml=function(e){return a.trustAsHtml(e.description)},f.searchRdfResource=function(e,t){if("prefix"===e.type)f.searchInput=D(e.value+":"),y.focus(),f.onChange();else{let n;n=angular.isUndefined(e)?f.searchInput:"object"==typeof e?e.value:e;let r="";if(e.description){const t=e.description.indexOf("&lt;"+n+"&gt;");t>0&&(r=e.description.substring(0,t).replace(/<\/?b>/g,""))}t({uri:n,description:e.description,label:r,type:e.type}),v?(f.selectedElementIndex=f.activeSearchElm,u.set(l.RDF_SEARCH_EXPANDED_URI,b),u.set(l.RDF_SEARCH_INPUT,f.searchInput),u.set(l.RDF_RESOURCE_DESCRIPTION,e.description)):"true"===f.preserveInput?(f.searchInput=n,f.autoCompleteUriResults=[]):(f.searchInput="",f.autoCompleteUriResults=[])}},f.searchRdfResourceByEvent=function(e,t){f.searchType===c.visual||t.ctrlKey||t.metaKey?f.searchRdfResource(e,f.visualCallback):f.searchRdfResource(e,f.textCallback)};const A=function(e){const n=f.searchInput;""!==n?"false"!==f.uriValidation?g.autoCompleteStatus&&f.autoCompleteUriResults&&f.autoCompleteUriResults.length>0?"prefix"===f.autoCompleteUriResults[f.activeSearchElm].type?(f.searchInput=D(f.autoCompleteUriResults[f.activeSearchElm].value+":"),f.autoCompleteUriResults=[]):f.searchRdfResource(f.autoCompleteUriResults[f.activeSearchElm],e):C(n)?f.searchRdfResource(n,e):t.error(h.instant("invalid.uri.msg")):f.searchRdfResource(n,e):t.error(h.instant("fill.input.field.msg"))};function F(){let e=-1;const n=u.get(l.RDF_RESOURCE_DESCRIPTION);n&&f.autoCompleteUriResults&&(e=f.autoCompleteUriResults.findIndex(e=>e.description===n),f.selectedElementIndex=e,new Promise(e=>{const t=document.getElementById("auto-complete-results-wrapper").getBoundingClientRect();setTimeout(()=>{e(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))})}).then((function(){!function(){const e=$("#auto-complete-results-wrapper"),t=$("#auto_"+f.selectedElementIndex);e.animate({scrollTop:t.offset().top-e.offset().top+e.scrollTop()})}()})).catch((function(e){t.error(getError(e),h.instant("no.prev.search.element"))}))),f.activeSearchElm=-1===e?0:e}function C(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}function D(e){if(!/^<?(http|urn).*>?/.test(e)){const t=e.split(":"),r=t[0],i=t[1];if(!angular.isUndefined(i)){const e=n.getNamespaceUriForPrefix(g.namespaces,r);if(b=e!==b?e:b,b)return y.val(b),b+i}}return e}f.checkIfValidAndSearchText=function(){A(f.textCallback)},f.checkIfValidAndSearchVisual=function(){A(f.visualCallback)},f.checkIfValidAndSearchEvent=function(e){f.searchType===c.visual||e.ctrlKey||e.metaKey?A(f.visualCallback):A(f.textCallback)},f.onChange=function(){return f.showClearInputIcon=f.clearInputIcon,v&&u.set(l.RDF_SEARCH_INPUT,f.searchInput),"false"!==f.uriValidation&&(f.searchInput=D(f.searchInput),g.autoCompleteStatus)?function(e){let t=e.replace(b,b+";");if(g.autoCompleteStatus)return";"===t.charAt(0)&&(t=t.slice(1)),t=function(e){let t=e;if(-1===t.indexOf(";")&&C(t)){t=t.replace(/<|>/g,"");const e=/[^/^#]*$/.exec(t)[0];return t.split(e)[0]+";"+e}return t}(t),w&&w.resolve(),w=s.defer(),i.getAutocompleteSuggestions(t,w.promise).then((function(e){w=null,f.autoCompleteUriResults=e.data.suggestions,f.activeSearchElm=0}));return Promise.resolve()}(f.searchInput):Promise.resolve()},f.onKeyDown=function(e){if(13===e.keyCode){if(e.preventDefault(),d.isActive())return;"false"!==f.uriValidation?g.autoCompleteStatus?f.checkIfValidAndSearchEvent(e):C(e.target.value)?f.searchRdfResourceByEvent(e.target.value,e):t.error(h.instant("invalid.uri.msg")):f.searchRdfResourceByEvent(e.target.value,e)}else if(f.searchInput.length>0&&!g.autoCompleteWarning&&!g.autoCompleteStatus){g.autoCompleteWarning=!0;const e=Object(r.decodeHTML)(h.instant("explore.autocomplete.warning.msg"));t.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}if(g.autoCompleteStatus&&!angular.isUndefined(f.autoCompleteUriResults)){if(40===e.keyCode&&f.activeSearchElm<f.autoCompleteUriResults.length-1&&(f.activeSearchElm++,f.searchInput=f.autoCompleteUriResults[f.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-6-e.scrollTop()>170&&e.scrollTop(n[0].offsetTop-t.height()-6-170)}()),38===e.keyCode&&f.activeSearchElm>0&&(e.preventDefault(),f.activeSearchElm--,f.searchInput=f.autoCompleteUriResults[f.activeSearchElm].value,function(){const e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-40<=e.scrollTop()&&e.scrollTop(e.scrollTop()-34)}()),27===e.keyCode){if(v)return;f.searchInput="",f.autoCompleteUriResults=[]}f.searchInput||f.clearInput()}},f.$on("rdfResourceSearchExpanded",(function(){(v?(f.preserveInput="true",f.searchInput=u.get(l.RDF_SEARCH_INPUT)||"",b=u.get(l.RDF_SEARCH_EXPANDED_URI),f.onChange()):Promise.resolve()).then((function(){F()}))})),f.setActiveClassOnMouseMove=function(e){g.autoCompleteStatus&&(f.activeSearchElm=e)}}}}function h(e){return{restrict:"AE",link:function(t,n,r){function i(e){27===e.keyCode&&(t.toggleCheatSheet(),t.$apply())}t.getTemplateUrl=function(){return r.templateUrl},t.shortcutsVisible=!1,t.toggleCheatSheet=function(){t.shortcutsVisible=!t.shortcutsVisible,t.shortcutsVisible?e.on("keydown",i):e.off("keydown",i)}},template:'<ng-include src="getTemplateUrl()" />'}}function d(e,t,n,i,o,s){return{restrict:"E",transclude:!0,scope:{loadSaved:"&",setPluginActive:"&",pluginName:"@",humanReadablePluginName:"@"},templateUrl:"js/angular/core/templates/inactive-plugin-warning-page.html",link:function(a){function u(){if(o.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType())return t.checkPluginIsActive(a.pluginName,i.getActiveRepository()).then((function({data:e}){a.pluginIsActive=e.indexOf("true")>0,a.setPluginActive({isPluginActive:a.pluginIsActive})})).catch((function(t){e.error(getError(t),s.instant("check.active.plugin.failure"))}))}a.pluginIsActive=!0,a.activatePlugin=function(){const o=Object(r.decodeHTML)(s.instant("activate.plugin.warning.msg",{humanReadablePluginName:a.humanReadablePluginName}));n.openSimpleModal({title:s.instant("activate.plugin.confirmation"),message:`<p>${o}</p>`,warning:!0}).result.then((function(){t.activatePlugin(a.pluginName,i.getActiveRepository()).then((function(){a.pluginIsActive=!0,a.setPluginActive({isPluginActive:a.pluginIsActive}),a.loadSaved()})).catch((function(t){e.error(getError(t),s.instant("activate.plugin.failure"))}))}))};const l=a.$on("repositoryIsSet",(function(){u()}));window.addEventListener("beforeunload",(function e(){l(),window.removeEventListener("beforeunload",e)})),a.$on("checkIsActive",u),u()}}}p.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$rootScope","$q","$sce","LocalStorageAdapter","LSKeys","$repositories","$translate","GuidesService"],h.$inject=["$document"],d.$inject=["toastr","RDF4JRepositoriesRestService","ModalService","$repositories","$licenseService","$translate"]},26:function(e,t,n){"use strict";n.r(t);n(7),n(40),n(41);var r=n(5);angular.module("graphdb.framework.core.services.jwtauth",["toastr","graphdb.framework.rest.security.service","graphdb.framework.core.services.openIDService"]).service("$jwtAuth",["$http","toastr","$location","$rootScope","SecurityRestService","$openIDAuth","$translate","$q","AuthTokenService","LSKeys","LocalStorageAdapter",function(e,t,n,i,o,s,a,u,l,c,p){const h=this;i.deniedPermissions={},i.setPermissionDenied=function(e){return!("/login"===e||!h.isAuthenticated())&&(i.deniedPermissions[e]=!0,!0)},i.hasPermission=function(){const e=n.path();return!i.deniedPermissions[e]},this.updateReturnUrl=()=>{0!==n.url().indexOf("/login")&&(i.returnToUrl=n.url())},i.redirectToLogin=function(e,t){return h.authTokenIsType("Bearer")&&(e=!0),h.clearAuthenticationInternal(),h.updateReturnUrl(),n.path("/login"),t?n.search("noaccess"):e&&n.search("expired"),new Promise(e=>{setTimeout(()=>{e(!0)},100)})},i.hasExternalAuthUser=function(){return h.hasExternalAuthUser()},this.securityEnabled=!0,this.freeAccess=!1,this.hasOverrideAuth=!1,this.externalAuthUser=!1,this.securityInitialized=!1;const d=this;this.getAuthenticatedUserFromBackend=function(e,t){o.getAuthenticatedUser().success((function(e,t,n){const r=l.getAuthToken();r&&r.startsWith("GDB")?(d.externalAuthUser=!1,d.principal=e,i.$broadcast("securityInit",d.securityEnabled,!0,d.freeAccess)):d.openIDEnabled&&r&&r.startsWith("Bearer")?d.authenticate(e,r):(d.externalAuthUser=!0,d.authenticate(e,""))})).error((function(){e||!d.freeAccess?i.redirectToLogin(!1,t):(d.securityInitialized=!0,d.hasExplicitAuthentication()||d.clearAuthentication())}))},this.initSecurity=function(){this.securityInitialized=!1,o.getSecurityConfig().then((function(e){if(d.securityEnabled=e.data.enabled,d.externalAuth=e.data.hasExternalAuth,d.authImplementation=e.data.authImplementation,d.openIDEnabled=e.data.openIdEnabled,d.passwordLoginEnabled=e.data.passwordLoginEnabled,d.securityEnabled){const t=e.data.freeAccess;d.freeAccess=t.enabled,d.freeAccess&&(d.freeAccessPrincipal={authorities:t.authorities,appSettings:t.appSettings}),d.openIDEnabled?(d.openIDConfig=e.data.methodSettings.openid,d.gdbUrl=n.absUrl().replace(n.url().substr(1),""),s.initOpenId(d.openIDConfig,d.gdbUrl,(function(e){l.setAuthToken(s.authHeaderGraphDB()),console.log("oidc: set id/access token as GraphDB auth"),d.getAuthenticatedUserFromBackend(!0,e)}),(function(){console.log("oidc: not logged or login error"),d.authTokenIsType("Bearer")?setTimeout(()=>{i.redirectToLogin(!0)},0):d.getAuthenticatedUserFromBackend()}))):d.getAuthenticatedUserFromBackend()}else{l.clearAuthToken();const t=e.data.overrideAuth;if(d.hasOverrideAuth=t.enabled,!d.hasOverrideAuth)return o.getAdminUser().then((function(e){d.principal={username:"admin",appSettings:e.data.appSettings,authorities:e.data.grantedAuthorities},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}));d.principal={username:"overrideauth",authorities:t.authorities,appSettings:t.appSettings},i.$broadcast("securityInit",d.securityEnabled,!0,d.hasOverrideAuth)}}))},this.initSecurity(),this.reinitializeSecurity=function(){this.securityInitialized||this.initSecurity()},this.isSecurityEnabled=function(){return this.securityEnabled},this.hasExternalAuth=function(){return this.externalAuth},this.getAuthImplementation=function(){return this.authImplementation},this.isFreeAccessEnabled=function(){return this.freeAccess},this.isDefaultAuthEnabled=function(){return this.hasOverrideAuth&&this.principal&&"overrideauth"===this.principal.username},this.authTokenIsType=function(e){const t=l.getAuthToken();return t&&t.startsWith(e)},this.loginOpenID=function(){s.login(this.openIDConfig,this.gdbUrl)},this.toggleSecurity=function(e){e!==this.securityEnabled&&o.toggleSecurity(e).then((function(){t.success(a.instant("jwt.auth.security.status",{status:a.instant(e?"enabled.status":"disabled.status")})),l.clearAuthToken(),d.initSecurity(),d.securityEnabled=e}),(function(e){t.error(e.data,a.instant("common.error"))}))},this.toggleFreeAccess=function(e,n,r,s){(e!==this.freeAccess||s)&&(this.freeAccess=e,this.freeAccessPrincipal=e?{authorities:n,appSettings:r}:void 0,o.setFreeAccess({enabled:e?"true":"false",authorities:n,appSettings:r}).then((function(){s?t.success(a.instant("jwt.auth.free.access.updated.msg")):t.success(a.instant("jwt.auth.free.access.status",{status:a.instant(e?"enabled.status":"disabled.status")}))}),(function(e){t.error(e.data.error.message,a.instant("common.error"))})),i.$broadcast("securityInit",this.securityEnabled,this.hasExplicitAuthentication(),this.freeAccess))},this.authenticate=function(e,t){return new Promise(n=>{t?(l.setAuthToken(t),this.externalAuthUser=!1):l.clearAuthToken(),this.principal=e,i.deniedPermissions={},this.securityInitialized=!0;const r={id:p.get(c.REPOSITORY_ID)||"",location:p.get(c.REPOSITORY_LOCATION)||""};h.canReadRepo(r)||(p.remove(c.REPOSITORY_ID),p.remove(c.REPOSITORY_LOCATION),i.deniedPermissions={}),i.$broadcast("securityInit",this.securityEnabled,d.hasExplicitAuthentication(),this.freeAccess),setTimeout(()=>{n(!0)})})},this.authenticateOpenID=function(e){l.clearAuthToken(),e&&(l.setAuthToken(e),this.externalAuthUser=!1)},this.hasExternalAuthUser=function(){return this.externalAuthUser},this.hasExplicitAuthentication=function(){return null!=l.getAuthToken()||this.externalAuthUser},this.getPrincipal=function(){if(this.principal)return Promise.resolve(this.principal);const e=u.defer();return i.$on("securityInit",()=>{e.resolve(this.principal)}),e.promise},this.clearAuthenticationInternal=function(){s.softLogout(),this.principal=this.freeAccessPrincipal,l.clearAuthToken()},this.clearAuthentication=function(){this.clearAuthenticationInternal(),i.$broadcast("securityInit",this.securityEnabled,!1,this.freeAccess)},this.isAuthenticated=function(){return!this.securityEnabled||this.hasExplicitAuthentication()},this.hasPermission=function(){},this.hasRole=function(e){if(void 0!==e&&(this.securityEnabled||this.hasOverrideAuth)){"string"==typeof e&&(e=[e]);const t=!_.isEmpty(this.principal);return!!t&&("IS_AUTHENTICATED_FULLY"===e[0]?t:_.intersection(e,this.principal.authorities).length>0)}return!0},this.isAdmin=function(){return this.hasRole(r.UserRole.ROLE_ADMIN)},this.isRepoManager=function(){return this.hasRole(r.UserRole.ROLE_REPO_MANAGER)},this.hasRoleMonitor=function(){return this.hasRole(r.UserRole.ROLE_MONITORING)},this.checkForWrite=function(e,t){return"WRITE_REPO"===e?this.canWriteRepo(t):this.hasRole(e)},this.hasAdminRole=function(){return this.isAdmin()||this.isRepoManager()},this.canWriteRepo=function(e){return!!e&&(!this.securityEnabled&&!this.hasOverrideAuth||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"WRITE")))},this.canReadRepo=function(e){return!!e&&(!this.securityEnabled||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"READ")))},this.checkRights=function(e,t){if(e)for(let n=0;n<this.principal.authorities.length;n++){const r=this.principal.authorities[n],i=r.split("_",2),o=r.slice(i[0].length+i[1].length+2),s=e.location?`${e.id}@${e.location}`:e.id;if(i[0]===t&&(s===o||"SYSTEM"!==e.id&&"*"===o))return!0}return!1}}])},27:function(e,t){let n;angular.module("graphdb.framework.utils.uriutils",[]).factory("UriUtils",r);try{n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:(?:\\/\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:])*@)?(?:\\[(?:(?:(?:[0-9a-f]{1,4}:){6}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|::(?:[0-9a-f]{1,4}:){5}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4}:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|v[0-9a-f]+[-a-z0-9\\._~!\\$&'\\(\\)\\*\\+,;=:]+)\\]|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}|(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=@])*)(?::[0-9]*)?(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|\\/(?:(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*)?|(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|(?!(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])))(?:\\?(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\u{E000}-\\u{F8FF}\\u{F0000}-\\u{FFFFD}\\u{100000}-\\u{10FFFD}\\/\\?])*)?(?:#(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\/\\?])*)?>?$","ui")}catch(e){n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:>?","i")}function r(e){function t(e){const t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n);let i=!1;if(r)if(e.indexOf("http")>=0){const t=e.indexOf("//");i=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}return{isValidIri:function(e,r){if(void 0!==e&&void 0!==r&&(t(r)||r.match(n)))return!0},validateRdfUri:t,shortenIri:function(e){const t=document.createElement("a");t.href=e;let n=t.hostname;return function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1}(t.hostname)||(n=t.hostname.split(".")[0]),n+":"+t.port},expandPrefix:function(t,n){const r=/^<.*>$/.test(t);if(t=function(e,t){if(t.test(e))return e.substring(1,e.length-1);return e}(t,/^<.*>$/),!/^<?(http|urn).*>?/.test(t)){const i=t.split(":"),o=i[0],s=i[1];if(!angular.isUndefined(s)){const t=e.getNamespaceUriForPrefix(n,o);if(t)return t+s;if(!r)return""}}return t}}}r.$inject=["ClassInstanceDetailsService"]},28:function(e,t,n){"use strict";n.r(t);var r=n(17),i=n(20);angular.module("graphdb.framework.rest.monitoring.service",[]).factory("MonitoringRestService",o),o.$inject=["$http"];function o(e){return{monitorResources:function(){return e.get("rest/monitor/infrastructure")},monitorStructures:function(){return e.get("rest/monitor/structures")},monitorCluster:function(){return e.get("rest/monitor/cluster")},monitorGC:function(){return e.post("rest/monitor/infrastructure/gc")},monitorQuery:function(t){return e.get(`rest/monitor/repository/${t}/query/active`)},monitorBackup:function(){return e.get("rest/monitor/backup").then(e=>Object(r.mapBackupAndRestoreResponseToModel)(e.data))},monitorActiveOperations:function(t){return e.get(`rest/monitor/${t}/operations`).then(e=>Object(i.mapActiveOperationResponseToModel)(e.data))},deleteQuery:function(t,n){return e.delete(`rest/monitor/repository/${n}/query?query=${encodeURIComponent(t)}`)},getQueryCount:function(t){return e({url:`rest/monitor/repository/${t}/query/count`,method:"GET",timeout:1e4})},checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")},monitorQueryTransactionStatistics:function(t){return e.get("rest/monitor/repository/"+t)}}}},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return ne})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return be})),n.d(t,"g",(function(){return le}));let r,i,o,s=!1,a=!1,u=!1,l=!1;const c={},p=e=>"object"===(e=typeof e)||"function"===e,h=(e,t,...n)=>{let r=null,i=null,o=!1,s=!1;const a=[],u=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?u(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!p(r))&&(r=String(r)),o&&s?a[a.length-1].$text$+=r:a.push(o?d(null,r):r),s=o)};if(u(n),t){t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,a,g);const l=d(e,null);return l.$attrs$=t,a.length>0&&(l.$children$=a),l.$name$=i,l},d=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$name$:null};return n},f={},g={forEach:(e,t)=>e.map(m).forEach(t),map:(e,t)=>e.map(m).map(t).map(v)},m=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),h(e.vtag,t,...e.vchildren||[])}const t=d(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},y=e=>ue(e).$hostElement$,b=(e,t,n)=>{const r=y(e);return{emit:e=>w(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const r=ye.ce(t,n);return e.dispatchEvent(r),r},x=new WeakMap,S=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=(t.$tagName$,()=>{}),o=((e,t,n,r)=>{let i=E(t);const o=ge.get(i);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){e=e.head||e;let t,n=x.get(e);n||x.set(e,n=new Set),n.has(i)||(t=ve.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),n&&n.add(i))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h")),i()},E=(e,t)=>"sc-"+e.$tagName$,$=(e,t,n,r,i,o)=>{if(n!==r){let s=pe(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,i=F(n),o=F(r);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if("ref"===t)r&&r(e);else if(s||"o"!==t[0]||"n"!==t[1]){const a=p(r);if((s||a&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&o||i)&&!a&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):pe(me,a)?a.slice(2):a[2]+t.slice(3),n&&ye.rel(e,t,n,!1),r&&ye.ael(e,t,r,!1)}},A=/\s/,F=e=>e?e.split(A):[],C=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||c,s=t.$attrs$||c;for(r in o)r in s||$(i,r,o[r],void 0,n,t.$flags$);for(r in s)$(i,r,o[r],s[r],n,t.$flags$)},D=(e,t,n,a)=>{const l=t.$children$[n];let c,p,h,d=0;if(s||(u=!0,"slot"===l.$tag$&&(r&&a.classList.add(r+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)c=l.$elm$=ve.createTextNode(l.$text$);else if(1&l.$flags$)c=l.$elm$=ve.createTextNode("");else if(c=l.$elm$=ve.createElement(2&l.$flags$?"slot-fb":l.$tag$),C(null,l,!1),null!=r&&c["s-si"]!==r&&c.classList.add(c["s-si"]=r),l.$children$)for(d=0;d<l.$children$.length;++d)p=D(e,l,d,c),p&&c.appendChild(p);return c["s-hn"]=o,3&l.$flags$&&(c["s-sr"]=!0,c["s-cr"]=i,c["s-sn"]=l.$name$||"",h=e&&e.$children$&&e.$children$[n],h&&h.$tag$===l.$tag$&&e.$elm$&&T(e.$elm$,!1)),c},T=(e,t)=>{ye.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==o&&r["s-ol"]&&(O(r).insertBefore(r,k(r)),r["s-ol"].remove(),r["s-ol"]=void 0,u=!0),t&&T(r,t)}ye.$flags$&=-2},R=(e,t,n,r,i,s)=>{let a,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);i<=s;++i)r[i]&&(a=D(null,n,i,e),a&&(r[i].$elm$=a,u.insertBefore(a,k(t))))},I=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,U(r),a=!0,i["s-ol"]?i["s-ol"].remove():T(i,!0),i.remove())},P=(e,t)=>e.$tag$===t.$tag$&&("slot"!==e.$tag$||e.$name$===t.$name$),k=e=>e&&e["s-ol"]||e,O=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,_=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;null===s?("slot"===o||C(e,t,!1),null!==r&&null!==i?((e,t,n,r)=>{let i,o=0,s=0,a=t.length-1,u=t[0],l=t[a],c=r.length-1,p=r[0],h=r[c];for(;o<=a&&s<=c;)null==u?u=t[++o]:null==l?l=t[--a]:null==p?p=r[++s]:null==h?h=r[--c]:P(u,p)?(_(u,p),u=t[++o],p=r[++s]):P(l,h)?(_(l,h),l=t[--a],h=r[--c]):P(u,h)?("slot"!==u.$tag$&&"slot"!==h.$tag$||T(u.$elm$.parentNode,!1),_(u,h),e.insertBefore(u.$elm$,l.$elm$.nextSibling),u=t[++o],h=r[--c]):P(l,p)?("slot"!==u.$tag$&&"slot"!==h.$tag$||T(l.$elm$.parentNode,!1),_(l,p),e.insertBefore(l.$elm$,u.$elm$),l=t[--a],p=r[++s]):(i=D(t&&t[s],n,s,e),p=r[++s],i&&O(u.$elm$).insertBefore(i,k(u.$elm$)));o>a?R(e,null==r[c+1]?null:r[c+1].$elm$,n,r,s,c):s>c&&I(t,o,a)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),R(n,null,t,i,0,i.length-1)):null!==r&&I(r,0,r.length-1)):(a=n["s-cr"])?a.parentNode.textContent=s:e.$text$!==s&&(n.data=s)},j=e=>{const t=e.childNodes;let n,r,i,o,s,a;for(r=0,i=t.length;r<i;r++)if(n=t[r],1===n.nodeType){if(n["s-sr"])for(s=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(a=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==s){if(1===a&&s===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===a||3===a&&""!==t[o].textContent.trim()){n.hidden=!0;break}j(n)}},N=[],L=e=>{let t,n,r,i,o,s,u=0;const l=e.childNodes,c=l.length;for(;u<c;u++){if(t=l[u],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(B(n,i)?(o=N.find(e=>e.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:N.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&N.map(e=>{B(e.$nodeToRelocate$,n["s-sn"])&&(o=N.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):N.some(e=>e.$nodeToRelocate$===n)||N.push({$nodeToRelocate$:n}));1===t.nodeType&&L(t)}},B=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,U=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(U)},M=(e,t)=>{const n=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||d(null,null),p=(g=t)&&g.$tag$===f?t:h(null,null,t);var g;if(o=n.tagName,p.$tag$=null,p.$flags$|=4,e.$vnode$=p,p.$elm$=c.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],s=0!=(1&l.$flags$),a=!1,_(c,p),ye.$flags$|=1,u){let e,t,n,r,i,o;L(p.$elm$);let s=0;for(;s<N.length;s++)e=N[s],t=e.$nodeToRelocate$,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(s=0;s<N.length;s++)if(e=N[s],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&r===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){i=o;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}a&&j(p.$elm$),ye.$flags$&=-2,N.length=0},H=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},V=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);H(e,e.$ancestorComponent$);return Ce(()=>q(e,t))},q=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>Y(r,e,t)),e.$queuedListeners$=null),i=Y(r,"componentWillLoad")),n(),X(i,()=>K(e,r,t))},K=async(e,t,n)=>{const r=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),o=r["s-rc"];n&&S(e);const s=(e.$cmpMeta$.$tagName$,()=>{});z(e,t),o&&(o.map(e=>e()),r["s-rc"]=void 0),s(),i();{const t=r["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},z=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,M(e,t)}catch(t){he(t,e.$hostElement$)}return null},G=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,i=e.$ancestorComponent$;Y(r,"componentDidRender"),64&e.$flags$?(Y(r,"componentDidUpdate"),n()):(e.$flags$|=64,Q(t),Y(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),i||W()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Fe(()=>V(e,!1)),e.$flags$&=-517},W=e=>{Q(ve.documentElement),Fe(()=>w(me,"appload",{detail:{namespace:"ontotext-yasgui-web-component"}}))},Y=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){he(e)}},X=(e,t)=>e&&e.then?e.then(t):t(),Q=e=>e.classList.add("hydrated"),J=(e,t,n,r)=>{const i=ue(e),o=i.$hostElement$,s=i.$instanceValues$.get(t),a=i.$flags$,u=i.$lazyInstance$;var l,c;l=n,c=r.$members$[t][0],n=null==l||p(l)?l:4&c?"false"!==l&&(""===l||!!l):2&c?parseFloat(l):1&c?String(l):l;const h=Number.isNaN(s)&&Number.isNaN(n);if((!(8&a)||void 0===s)&&(n!==s&&!h)&&(i.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map(e=>{try{u[e](n,s,t)}catch(e){he(e,o)}})}2==(18&a)&&V(i,!1)}},Z=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,ue(this).$instanceValues$.get(t);var t},set(n){J(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=ue(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const t=new Map;i.attributeChangedCallback=function(e,n,r){ye.jmp(()=>{const n=t.get(e);if(this.hasOwnProperty(n))r=this[n],delete this[n];else if(i.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==r)return;this[n]=(null!==r||"boolean"!=typeof this[n])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,n])=>{const r=n[1]||e;return t.set(r,e),r})}}return e},ee=async(e,t,n,r,i)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(i=fe(n)).then){const e=()=>{};i=await i,e()}i.isProxied||(n.$watchers$=i.watchers,Z(i,n,2),i.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new i(t)}catch(e){he(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(i.style){let e=i.style;const t=E(n);if(!ge.has(t)){const r=(n.$tagName$,()=>{});((e,t,n)=>{let r=ge.get(e);we&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,ge.set(e,r)})(t,e,!!(1&n.$flags$)),r()}}}const o=t.$ancestorComponent$,s=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},te=e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ne=(e,t={})=>{const n=()=>{},r=[],i=t.exclude||[],o=me.customElements,s=ve.head,a=s.querySelector("meta[charset]"),u=ve.createElement("style"),l=[];let c,p=!0;Object.assign(ye,t),ye.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$={};const s=n.$tagName$,a=class extends HTMLElement{constructor(e){super(e),ce(e=this,n),1&n.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),p?l.push(this):ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)re(e,t,n.$listeners$);else{t.$flags$|=1,12&n.$flags$&&te(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ee(0,t,n)}r()}})(this))}disconnectedCallback(){ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),Y(n,"disconnectedCallback")}})(this))}componentOnReady(){return ue(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],i.includes(s)||o.get(s)||(r.push(s),o.define(s,Z(a,n,1)))})}),u.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),s.insertBefore(u,a?a.nextSibling:s.firstChild),p=!1,l.length?l.map(e=>e.connectedCallback()):ye.jmp(()=>c=setTimeout(W,30)),n()},re=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const o=oe(e,n),s=ie(t,i),a=se(n);ye.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>ye.rel(o,r,s,a))})},ie=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){he(e)}},oe=(e,t)=>4&t?ve:8&t?me:e,se=e=>0!=(2&e),ae=new WeakMap,ue=e=>ae.get(e),le=(e,t)=>ae.set(t.$lazyInstance$=e,t),ce=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],re(e,n,t.$listeners$),ae.set(e,n)},pe=(e,t)=>t in e,he=(e,t)=>(0,console.error)(e,t),de=new Map,fe=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,s=de.get(o);return s?s[i]:n(324)(`./${o}.entry.js`).then(e=>(de.set(o,e),e[i]),he)
10
10
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ge=new Map,me="undefined"!=typeof window?window:{},ve=me.document||{head:{}},ye={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},be=e=>Promise.resolve(e),we=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),xe=[],Se=[],Ee=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&ye.$flags$?Fe(Ae):ye.raf(Ae))},$e=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){he(e)}e.length=0},Ae=()=>{$e(xe),$e(Se),(l=xe.length>0)&&ye.raf(Ae)},Fe=e=>be().then(e),Ce=Ee(Se,!0)},3:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_TYPE",(function(){return r})),n.d(t,"OPERATION_TYPE_SORT_ORDER",(function(){return i}));const r={CLUSTER_STATUS:"clusterHealth",BACKUP_RESTORE:"backupAndRestore",QUERIES:"queries",UPDATES:"updates",IMPORTS:"imports"},i={clusterHealth:0,backupAndRestore:1,queries:3,updates:4,imports:2}},30:function(e,t){function n(e,t,n,r){e.title=n,e.message=r,e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}function r(e,t,n,r,i,o){t.opened.then((function(){o(()=>{$("#clipboardURI")[0].select()},0)})),e.clipboardURI=n,e.ok=function(){try{document.getElementById("clipboardURI").select(),document.execCommand("copy"),r.success(i.instant("modal.ctr.copy.url.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}t.close()},e.cancel=function(){t.dismiss("cancel")}}function i(e,t,n,r,i){e.query=n,e.cancel=function(){t.dismiss("cancel")},e.selectQuery=function(){e.selectElement($("#create-query"))},e.copyQueryToClipboard=function(){try{e.selectQuery(),document.execCommand("copy"),t.close(),r.success(i.instant("modal.ctr.copy.query.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}},e.selectElement=function(e){if(e.length>0)if(window.getSelection){const t=window.getSelection();t.removeAllRanges();const n=document.createRange();n.selectNodeContents(e[0].firstChild),t.addRange(n)}else if(document.selection){const t=document.body.createTextRange();t.moveToElementText(e[0]),t.select()}}}angular.module("graphdb.framework.core.controllers",[]).controller("CopyToClipboardModalCtrl",r).controller("SimpleModalCtrl",n).controller("ViewQueryCtrl",i),n.$inject=["$scope","$uibModalInstance","title","message"],r.$inject=["$scope","$uibModalInstance","uri","toastr","$translate","$timeout"],i.$inject=["$scope","$uibModalInstance","query","toastr","$translate"]},309:function(e,t){!function(e,t,n){"use strict";t.module("ngAnimate",["ng"]).directive("ngAnimateChildren",(function(){return function(e,n,r){r=r.ngAnimateChildren,t.isString(r)&&0===r.length?n.data("$$ngAnimateChildren",!0):e.$watch(r,(function(e){n.data("$$ngAnimateChildren",!!e)}))}})).factory("$$animateReflow",["$$rAF","$document",function(e,t){return function(t){return e((function(){t()}))}}]).config(["$provide","$animateProvider",function(r,i){function o(e){for(var t=0;t<e.length;t++){var n=e[t];if(1==n.nodeType)return n}}function s(e,t){return o(e)==o(t)}var a,u=t.noop,l=t.forEach,c=i.$$selectors,p=t.isArray,h=t.isString,d=t.isObject,f={running:!0};r.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest","$$jqLite",function(e,n,r,g,m,v,y,b,w,x){function S(e,t){var n=e.data("$$ngAnimateState")||{};return t&&(n.running=!0,n.structural=!0,e.data("$$ngAnimateState",n)),n.disabled||n.running&&n.structural}function E(e){var t,r=n.defer();return r.promise.$$cancelFn=function(){t&&t()},y.$$postDigest((function(){t=e((function(){r.resolve()}))})),r.promise}function $(e){if(d(e))return e.tempClasses&&h(e.tempClasses)&&(e.tempClasses=e.tempClasses.split(/\s+/)),e}function A(e,n,i,o){function s(e,t){var n=e[t],r=e["before"+t.charAt(0).toUpperCase()+t.substr(1)];if(n||r)return"leave"==t&&(r=n,n=null),$.push({event:t,fn:n}),x.push({event:t,fn:r}),!0}function a(t,n,r){var s=[];l(t,(function(e){e.fn&&s.push(e)}));var a=0;l(s,(function(t,l){var c=function(){e:{if(n){if((n[l]||u)(),++a<s.length)break e;n=null}r()}};switch(t.event){case"setClass":n.push(t.fn(e,d,f,c,o));break;case"animate":n.push(t.fn(e,i,o.from,o.to,c));break;case"addClass":n.push(t.fn(e,d||i,c,o));break;case"removeClass":n.push(t.fn(e,f||i,c,o));break;default:n.push(t.fn(e,c,o))}})),n&&0===n.length&&r()}var h=e[0];if(h){var d,f;o&&(o.to=o.to||{},o.from=o.from||{}),p(i)&&(d=i[0],f=i[1],d?f?i=d+" "+f:(i=d,n="addClass"):(i=f,n="removeClass"));var m="setClass"==n,v=m||"addClass"==n||"removeClass"==n||"animate"==n,y=e.attr("class")+" "+i;if(P(y)){var b=u,w=[],x=[],S=u,E=[],$=[];y=(" "+y).replace(/\s+/g,".");return l(function(e){if(e){var t=[],n={};e=e.substr(1).split("."),(g.transitions||g.animations)&&t.push(r.get(c[""]));for(var i=0;i<e.length;i++){var o=e[i],s=c[o];s&&!n[o]&&(t.push(r.get(s)),n[o]=!0)}return t}}(y),(function(e){!s(e,n)&&m&&(s(e,"addClass"),s(e,"removeClass"))})),{node:h,event:n,className:i,isClassBased:v,isSetClassOperation:m,applyStyles:function(){o&&e.css(t.extend(o.from||{},o.to||{}))},before:function(e){b=e,a(x,w,(function(){b=u,e()}))},after:function(e){S=e,a($,E,(function(){S=u,e()}))},cancel:function(){w&&(l(w,(function(e){(e||u)(!0)})),b(!0)),E&&(l(E,(function(e){(e||u)(!0)})),S(!0))}}}}}function F(e,n,r,i,o,c,p,h){function d(t){var i="$animate:"+t;S&&S[i]&&0<S[i].length&&v((function(){r.triggerHandler(i,{event:e,className:n})}))}function g(){d("before")}function y(){d("after")}function b(){b.hasBeenRun||(b.hasBeenRun=!0,c())}function w(){if(!w.hasBeenRun){x&&x.applyStyles(),w.hasBeenRun=!0,p&&p.tempClasses&&l(p.tempClasses,(function(e){a.removeClass(r,e)}));var e=r.data("$$ngAnimateState");e&&(x&&x.isClassBased?D(r,n):(v((function(){var e=r.data("$$ngAnimateState")||{};T==e.index&&D(r,n)})),r.data("$$ngAnimateState",e))),d("close"),h()}}var x=A(r,e,n,p);if(!x)return b(),g(),y(),w(),u;e=x.event,n=x.className;var S=(S=t.element._data(x.node))&&S.events;if(i||(i=o?o.parent():r.parent()),function(e,n){if(f.disabled)return!0;if(s(e,m))return f.running;var r,i,o;do{if(0===n.length)break;var a=s(n,m),u=a?f:n.data("$$ngAnimateState")||{};if(u.disabled)return!0;a&&(o=!0),!1!==r&&(a=n.data("$$ngAnimateChildren"),t.isDefined(a)&&(r=a)),i=i||u.running||u.last&&!u.last.isClassBased}while(n=n.parent());return!o||!r&&i}(r,i))return b(),g(),y(),w(),u;var E=(i=r.data("$$ngAnimateState")||{}).active||{},$=i.totalActive||0,F=i.last;if(o=!1,0<$){if($=[],x.isClassBased)"setClass"==F.event?($.push(F),D(r,n)):E[n]&&((C=E[n]).event==e?o=!0:($.push(C),D(r,n)));else if("leave"==e&&E["ng-leave"])o=!0;else{for(var C in E)$.push(E[C]);i={},D(r,!0)}0<$.length&&l($,(function(e){e.cancel()}))}if(!x.isClassBased||x.isSetClassOperation||"animate"==e||o||(o="addClass"==e==r.hasClass(n)),o)return b(),g(),y(),d("close"),h(),u;E=i.active||{},$=i.totalActive||0,"leave"==e&&r.one("$destroy",(function(e){var n=(e=t.element(this)).data("$$ngAnimateState");n&&(n=n.active["ng-leave"])&&(n.cancel(),D(e,"ng-leave"))})),a.addClass(r,"ng-animate"),p&&p.tempClasses&&l(p.tempClasses,(function(e){a.addClass(r,e)}));var T=R++;return $++,E[n]=x,r.data("$$ngAnimateState",{last:x,active:E,index:T,totalActive:$}),g(),x.before((function(t){var i=r.data("$$ngAnimateState");t=t||!i||!i.active[n]||x.isClassBased&&i.active[n].event!=e,b(),!0===t?w():(y(),x.after(w))})),x.cancel}function C(e){(e=o(e))&&(e=t.isFunction(e.getElementsByClassName)?e.getElementsByClassName("ng-animate"):e.querySelectorAll(".ng-animate"),l(e,(function(e){(e=(e=t.element(e)).data("$$ngAnimateState"))&&e.active&&l(e.active,(function(e){e.cancel()}))})))}function D(e,t){if(s(e,m))f.disabled||(f.running=!1,f.structural=!1);else if(t){var n=e.data("$$ngAnimateState")||{},r=!0===t;!r&&n.active&&n.active[t]&&(n.totalActive--,delete n.active[t]),!r&&n.totalActive||(a.removeClass(e,"ng-animate"),e.removeData("$$ngAnimateState"))}}a=x,m.data("$$ngAnimateState",f);var T=y.$watch((function(){return w.totalPendingRequests}),(function(e,t){0===e&&(T(),y.$$postDigest((function(){y.$$postDigest((function(){f.running=!1}))})))})),R=0,I=i.classNameFilter(),P=I?function(e){return I.test(e)}:function(){return!0};return{animate:function(e,n,r,i,s){return i=i||"ng-inline-animate",(s=$(s)||{}).from=r?n:null,s.to=r||n,E((function(n){return F("animate",i,t.element(o(e)),null,null,u,s,n)}))},enter:function(n,r,i,s){return s=$(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),S(n,!0),e.enter(n,r,i),E((function(e){return F("enter","ng-enter",t.element(o(n)),r,i,u,s,e)}))},leave:function(n,r){return r=$(r),C(n=t.element(n)),S(n,!0),E((function(i){return F("leave","ng-leave",t.element(o(n)),null,null,(function(){e.leave(n)}),r,i)}))},move:function(n,r,i,s){return s=$(s),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),C(n),S(n,!0),e.move(n,r,i),E((function(e){return F("move","ng-move",t.element(o(n)),r,i,u,s,e)}))},addClass:function(e,t,n){return this.setClass(e,t,[],n)},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},setClass:function(n,r,i,s){if(s=$(s),n=t.element(n),S(n=t.element(o(n))))return e.$$setClassImmediately(n,r,i,s);var a,u=n.data("$$animateClasses"),c=!!u;return u||(u={classes:{}}),a=u.classes,r=p(r)?r:r.split(" "),l(r,(function(e){e&&e.length&&(a[e]=!0)})),i=p(i)?i:i.split(" "),l(i,(function(e){e&&e.length&&(a[e]=!1)})),c?(s&&u.options&&(u.options=t.extend(u.options||{},s)),u.promise):(n.data("$$animateClasses",u={classes:a,options:s}),u.promise=E((function(t){var r=n.parent(),i=o(n);if((s=i.parentNode)&&!s.$$NG_REMOVED&&!i.$$NG_REMOVED){i=n.data("$$animateClasses"),n.removeData("$$animateClasses");var s=n.data("$$ngAnimateState")||{},a=function(e,t,n){var r={};l(n=n||{},(function(e,t){l(t.split(" "),(function(t){r[t]=e}))}));var i=Object.create(null);l((e.attr("class")||"").split(/\s+/),(function(e){i[e]=!0}));var o=[],s=[];return l(t&&t.classes||[],(function(e,t){var n=i[t],a=r[t]||{};!1===e?(n||"addClass"==a.event)&&s.push(t):!0===e&&(n&&"removeClass"!=a.event||o.push(t))})),0<o.length+s.length&&[o.join(" "),s.join(" ")]}(n,i,s.active);return a?F("setClass",a,n,r,null,(function(){a[0]&&e.$$addClassImmediately(n,a[0]),a[1]&&e.$$removeClassImmediately(n,a[1])}),i.options,t):t()}t()})))},cancel:function(e){e.$$cancelFn()},enabled:function(e,t){switch(arguments.length){case 2:if(e)D(t);else{var n=t.data("$$ngAnimateState")||{};n.disabled=!0,t.data("$$ngAnimateState",n)}break;case 1:f.disabled=!e;break;default:e=!f.disabled}return!!e}}}]),i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,s,c){function d(){R||(R=c((function(){k=[],R=null,I={}})))}function f(e,t){R&&R(),k.push(t),R=c((function(){l(k,(function(e){e()})),k=[],R=null,I={}}))}function g(e,n){var r=o(e);e=t.element(r),j.push(e),(r=Date.now()+n)<=_||(s.cancel(O),_=r,O=s((function(){!function(e){l(e,(function(e){(e=e.data("$$ngAnimateCSS3Data"))&&l(e.closeAnimationFns,(function(e){e()}))}))}(j),j=[]}),n,!1))}function m(e,t){var n=t?I[t]:null;if(!n){var i=0,o=0,s=0,a=0;l(e,(function(e){if(1==e.nodeType){e=r.getComputedStyle(e)||{},i=Math.max(v(e[A+"Duration"]),i),o=Math.max(v(e[A+"Delay"]),o),a=Math.max(v(e[C+"Delay"]),a);var t=v(e[C+"Duration"]);0<t&&(t*=parseInt(e[C+"IterationCount"],10)||1),s=Math.max(t,s)}})),n={total:0,transitionDelay:o,transitionDuration:i,animationDelay:a,animationDuration:s},t&&(I[t]=n)}return n}function v(e){var t=0;return e=h(e)?e.split(/\s*,\s*/):[],l(e,(function(e){t=Math.max(parseFloat(e)||0,t)})),t}function y(e,t,n,r){var i;e=0<=["ng-enter","ng-leave","ng-move"].indexOf(n),(u=(s=t.parent()).data("$$ngAnimateKey"))||(s.data("$$ngAnimateKey",++P),u=P),i=u+"-"+o(t).getAttribute("class");var s,u,l={};0<(u=I[s=i+" "+n]?++I[s].total:0)&&((i=!I[l=i+" "+(c=n+"-stagger")])&&a.addClass(t,c),l=m(t,l),i&&a.removeClass(t,c));a.addClass(t,n);var c=t.data("$$ngAnimateCSS3Data")||{},p=m(t,s);return i=p.transitionDuration,p=p.animationDuration,e&&0===i&&0===p?(a.removeClass(t,n),!1):(n=r||e&&0<i,e=0<p&&0<l.animationDelay&&0===l.animationDuration,t.data("$$ngAnimateCSS3Data",{stagger:l,cacheKey:s,running:c.running||0,itemIndex:u,blockTransition:n,closeAnimationFns:c.closeAnimationFns||[]}),s=o(t),n&&(b(s,!0),r&&t.css(r)),e&&(s.style[C+"PlayState"]="paused"),!0)}function b(e,t){e.style[A+"Property"]=t?"none":""}function w(e,t,n,r){if(y(e,t,n,r))return function(e){e&&E(t,n)}}function x(e,t,n,r,i){if(t.data("$$ngAnimateCSS3Data"))return function(e,t,n,r,i){function u(){t.off(P,c),a.removeClass(t,h),a.removeClass(t,d),R&&s.cancel(R),E(t,n);var e,r=o(t);for(e in f)r.style.removeProperty(f[e])}function c(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-I,0)>=A&&t>=$&&r()}var p=o(t);if(e=t.data("$$ngAnimateCSS3Data"),-1!=p.getAttribute("class").indexOf(n)&&e){var h="",d="";l(n.split(" "),(function(e,t){var n=(0<t?" ":"")+e;h+=n+"-active",d+=n+"-pending"}));var f=[],v=e.itemIndex,y=e.stagger,w=0;if(0<v){w=0,0<y.transitionDelay&&0===y.transitionDuration&&(w=y.transitionDelay*v);var x=0;0<y.animationDelay&&0===y.animationDuration&&(x=y.animationDelay*v,f.push(T+"animation-play-state")),w=Math.round(100*Math.max(w,x))/100}w||(a.addClass(t,h),e.blockTransition&&b(p,!1));var S=m(t,e.cacheKey+" "+h),$=Math.max(S.transitionDuration,S.animationDuration);if(0!==$){!w&&i&&(S.transitionDuration||(t.css("transition",S.animationDuration+"s linear all"),f.push("transition")),t.css(i));var A=1e3*(v=Math.max(S.transitionDelay,S.animationDelay));0<f.length&&(";"!==(y=p.getAttribute("style")||"").charAt(y.length-1)&&(y+=";"),p.setAttribute("style",y+" "));var R,I=Date.now(),P=D+" "+F;v=1e3*(w+1.5*(v+$));return 0<w&&(a.addClass(t,d),R=s((function(){R=null,0<S.transitionDuration&&b(p,!1),0<S.animationDuration&&(p.style[C+"PlayState"]=""),a.addClass(t,h),a.removeClass(t,d),i&&(0===S.transitionDuration&&t.css("transition",S.animationDuration+"s linear all"),t.css(i),f.push("transition"))}),1e3*w,!1)),t.on(P,c),e.closeAnimationFns.push((function(){u(),r()})),e.running++,g(t,v),u}a.removeClass(t,h),E(t,n),r()}else r()}(e,t,n,r,i);E(t,n),r()}function S(e,t,n,r,i){var o=w(e,t,n,i.from);if(o){var s=o;return f(0,(function(){s=x(e,t,n,r,i.to)})),function(e){(s||u)(e)}}d(),r()}function E(e,t){a.removeClass(e,t);var n=e.data("$$ngAnimateCSS3Data");n&&(n.running&&n.running--,n.running&&0!==n.running||e.removeData("$$ngAnimateCSS3Data"))}function $(e,t){var n="";return e=p(e)?e:e.split(/\s+/),l(e,(function(e,r){e&&0<e.length&&(n+=(0<r?" ":"")+e+t)})),n}var A,F,C,D,T="";e.ontransitionend===n&&e.onwebkittransitionend!==n?(T="-webkit-",A="WebkitTransition",F="webkitTransitionEnd transitionend"):(A="transition",F="transitionend"),e.onanimationend===n&&e.onwebkitanimationend!==n?(T="-webkit-",C="WebkitAnimation",D="webkitAnimationEnd animationend"):(C="animation",D="animationend");var R,I={},P=0,k=[],O=null,_=0,j=[];return{animate:function(e,t,n,r,i,o){return(o=o||{}).from=n,o.to=r,S("animate",e,t,i,o)},enter:function(e,t,n){return S("enter",e,"ng-enter",t,n=n||{})},leave:function(e,t,n){return S("leave",e,"ng-leave",t,n=n||{})},move:function(e,t,n){return S("move",e,"ng-move",t,n=n||{})},beforeSetClass:function(e,t,n,r,i){if(i=i||{},i=w("setClass",e,t=$(n,"-remove")+" "+$(t,"-add"),i.from))return f(0,r),i;d(),r()},beforeAddClass:function(e,t,n,r){if(r=r||{},t=w("addClass",e,$(t,"-add"),r.from))return f(0,n),t;d(),n()},beforeRemoveClass:function(e,t,n,r){if(r=r||{},t=w("removeClass",e,$(t,"-remove"),r.from))return f(0,n),t;d(),n()},setClass:function(e,t,n,r,i){return i=i||{},x("setClass",e,(n=$(n,"-remove"))+" "+(t=$(t,"-add")),r,i.to)},addClass:function(e,t,n,r){return r=r||{},x("addClass",e,$(t,"-add"),n,r.to)},removeClass:function(e,t,n,r){return r=r||{},x("removeClass",e,$(t,"-remove"),n,r.to)}}}])}])}(window,window.angular)},31:function(e,t){angular.module("graphdb.framework.rest.rdf4j.repositories.service",[]).factory("RDF4JRepositoriesRestService",r),r.$inject=["$http","$translate"];const n="select ?o where {\n?s <http://www.ontotext.com/owlim/system#listplugins> ?o .\nfilter(str(?s) = '{{pluginName}}')\n} ";function r(e,t){return{getNamespaces:function(t){return e.get(`repositories/${t}/namespaces`)},getRepositoryNamespaces:function(t){return e.get(`repositories/${t}/namespaces`)},updateNamespacePrefix:function(t,n,r){return e({url:`repositories/${t}/namespaces/${r}`,method:"PUT",data:n})},deleteNamespacePrefix:function(t,n){return e({url:`repositories/${t}/namespaces/${n}`,method:"DELETE"})},addStatements:function(t,n){return e({url:`repositories/${t}/statements`,method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},activatePlugin:function(t,n){return e({method:"POST",url:`repositories/${n}/statements`,params:{update:"INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin> '{{pluginName}}' .}".replace("{{pluginName}}",t)}})},checkPluginIsActive:function(t,r){return e({method:"GET",url:"repositories/"+r,params:{query:n.replace("{{pluginName}}",t)},headers:{Accept:"*/*"}})},getRepositorySize:function(t){return e.get(`repositories/${t}/size`)},getGraphs:r,resolveGraphs:function(e){let t=[];if(e)return r(e).success((function(e){e.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),Object.keys(e.results.bindings).forEach((function(t){const n=e.results.bindings[t];"bnode"===n.contextID.type?n.contextID.value="_:"+n.contextID.value:"default"===n.contextID.type?n.contextID.uri="http://www.openrdf.org/schema/sesame#nil":n.contextID.uri=n.contextID.value})),e.results.bindings.unshift(allGraphs),t=e.results.bindings}));return t},downloadResultsAsFile:function(t,n,r){const i=Object.entries(n).filter(([e,t])=>void 0!==t).map(([e,t])=>`${e}=${t}`).join("&");return e({method:"POST",url:"repositories/"+t,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8",Accept:r},data:i,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}};function r(t){return e.get(`repositories/${t}/contexts`)}}},310:function(e,t){!function(e,t,n){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,n){var r,i={},o={},s=!1,a=t.copy,u=t.isUndefined;return n.addPollFn((function(){var t=n.cookies();r!=t&&(r=t,a(t,o),a(t,i),s&&e.$apply())}))(),s=!0,e.$watch((function(){var e,r,s;for(e in o)u(i[e])&&n.cookies(e,void 0);for(e in i)r=i[e],t.isString(r)||(r=""+r,i[e]=r),r!==o[e]&&(n.cookies(e,r),s=!0);if(s)for(e in r=n.cookies(),i)i[e]!==r[e]&&(u(r[e])?delete i[e]:i[e]=r[e])})),i}]).factory("$cookieStore",["$cookies",function(e){return{get:function(n){return(n=e[n])?t.fromJson(n):n},put:function(n,r){e[n]=t.toJson(r)},remove:function(t){delete e[t]}}}])}(window,window.angular)},311:function(e,t){!function(e,t,n){"use strict";function r(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,u){function l(){d&&(r.cancel(d),d=null),p&&(p.$destroy(),p=null),h&&((d=r.leave(h)).then((function(){d=null})),h=null)}function c(){var s=e.current&&e.current.locals;if(t.isDefined(s&&s.$template)){s=i.$new();var a=e.current;h=u(s,(function(e){r.enter(e,null,h||o).then((function(){!t.isDefined(f)||f&&!i.$eval(f)||n()})),l()})),(p=a.scope=s).$emit("$viewContentLoaded"),p.$eval(g)}else l()}var p,h,d,f=s.autoscroll,g=s.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function i(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=e(i.contents());o.controller&&(s.$scope=r,s=t(o.controller,s),o.controllerAs&&(r[o.controllerAs]=s),i.data("$ngControllerController",s),i.children().data("$ngControllerController",s)),a(r)}}}e=t.module("ngRoute",["ng"]).provider("$route",(function(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,(function(e,t,n,r){return e="?"===r?r:null,r="*"===r?r:null,i.push({name:n,optional:!!e}),t=t||"",(e?"":t)+"(?:"+(e?t:"")+(r?"(.+?)":"([^/]+)")+(e||"")+")"+(e||"")})).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var s="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[s]=t.extend({redirectTo:e},n(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,s,a,u,l,c){function p(o){var s=v.current;(g=(f=function(){var n,o;return t.forEach(r,(function(r,s){var a;if(a=!o){var u=i.path();a=r.keys;var l={};if(r.regexp)if(u=r.regexp.exec(u)){for(var c=1,p=u.length;c<p;++c){var h=a[c-1],d=u[c];h&&d&&(l[h.name]=d)}a=l}else a=null;else a=null;a=n=a}a&&((o=e(r,{params:t.extend({},i.search(),n),pathParams:n})).$$route=r)})),o||r.null&&e(r.null,{params:{},pathParams:{}})}())&&s&&f.$$route===s.$$route&&t.equals(f.pathParams,s.pathParams)&&!f.reloadOnSearch&&!m)||!s&&!f||n.$broadcast("$routeChangeStart",f,s).defaultPrevented&&o&&o.preventDefault()}function h(){var e=v.current,r=f;g?(e.params=r.params,t.copy(e.params,s),n.$broadcast("$routeUpdate",e)):(r||e)&&(m=!1,(v.current=r)&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(d(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then((function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,(function(e,n){i[n]=t.isString(e)?u.get(e):u.invoke(e,null,null,n)})),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),n=c.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=l(n))),t.isDefined(e)&&(i.$template=e),a.all(i)}})).then((function(i){r==v.current&&(r&&(r.locals=i,t.copy(r.params,s)),n.$broadcast("$routeChangeSuccess",r,e))}),(function(t){r==v.current&&n.$broadcast("$routeChangeError",r,e,t)})))}function d(e,n){var r=[];return t.forEach((e||"").split(":"),(function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}})),r.join("")}var f,g,m=!1,v={routes:r,reload:function(){m=!0,n.$evalAsync((function(){p(),h()}))},updateParams:function(e){if(!this.current||!this.current.$$route)throw o("norout");var n={},r=this;t.forEach(Object.keys(e),(function(t){r.current.pathParams[t]||(n[t]=e[t])})),e=t.extend({},this.current.params,e),i.path(d(this.current.$$route.originalPath,e)),i.search(t.extend({},i.search(),n))}};return n.$on("$locationChangeStart",p),n.$on("$locationChangeSuccess",h),v}]}));var o=t.$$minErr("ngRoute");e.provider("$routeParams",(function(){this.$get=function(){return{}}})),e.directive("ngView",r),e.directive("ngView",i),r.$inject=["$route","$anchorScroll","$animate"],i.$inject=["$compile","$controller","$route"]}(window,window.angular)},312:function(e,t){
11
11
  /**
12
12
  * An Angular module that gives you access to the browsers local storage