graphdb-workbench 2.6.4 → 2.7.0-RC2
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.
- package/README.md +1 -1
- package/dist/0.ce392e04e45ca4fad0ce.bundle.js +25 -0
- package/dist/1.b01a382482194b2f51cb.bundle.js +1 -0
- package/dist/10.c2b5d87a7e6f853df225.bundle.js +1 -0
- package/dist/100.468b84c65c7b8c06657d.bundle.js +1 -0
- package/dist/101.37e41d12f25ce7c3b6fc.bundle.js +1 -0
- package/dist/102.73ff72236ce70b195ca5.bundle.js +1 -0
- package/dist/103.40f2dbdccc572f7875b3.bundle.js +1 -0
- package/dist/104.60b9a1f31027d37caf14.bundle.js +1 -0
- package/dist/105.8ec8714c5344f807f679.bundle.js +1 -0
- package/dist/106.a725e69c77071eed016c.bundle.js +1 -0
- package/dist/107.9501561f24a33fd8ac99.bundle.js +1 -0
- package/dist/108.27bef479890bf24da4e2.bundle.js +1 -0
- package/dist/109.6511919579f21ed0f7d0.bundle.js +1 -0
- package/dist/11.019c95d9d3e48f128001.bundle.js +1 -0
- package/dist/110.0874d2482d370e16d419.bundle.js +1 -0
- package/dist/111.7822b8d4ffbfe8ec478c.bundle.js +1 -0
- package/dist/112.e833823d6bff7c377ac6.bundle.js +1 -0
- package/dist/{100.534f37dd58edf9a6d699.bundle.js → 113.632f84d1dfd1d4a6c1bc.bundle.js} +1 -1
- package/dist/114.6a65bbedc013e1309ded.bundle.js +1 -0
- package/dist/{102.a57d02f54d23e39ab220.bundle.js → 115.74fc384b158fa53b2789.bundle.js} +1 -1
- package/dist/{103.6edf5a9611097aac7b0e.bundle.js → 116.44bbe19c8267478cfe47.bundle.js} +1 -1
- package/dist/{104.30887712ab9f944ce3b5.bundle.js → 117.d3d85fee4a3d81b18e15.bundle.js} +1 -1
- package/dist/{105.8e0d511b2790a2c7a1f5.bundle.js → 118.90d7cffadf0edb7dab22.bundle.js} +1 -1
- package/dist/{106.dfa270c46faceb444b3a.bundle.js → 119.25046aae4f906a3b9457.bundle.js} +1 -1
- package/dist/12.3eba2ce927223d6beaae.bundle.js +2 -0
- package/dist/{107.7e47259d1a1e92cc684a.bundle.js → 120.3d0da2f33c1998e15059.bundle.js} +1 -1
- package/dist/{108.9d2fca01799579fd246a.bundle.js → 121.af7399fc572a60de3061.bundle.js} +1 -1
- package/dist/{109.41cc535019ec49b7a449.bundle.js → 122.59b4ea10d7a9b22fc9db.bundle.js} +1 -1
- package/dist/{110.087f1045498ced6386ac.bundle.js → 123.58e05dcc2a75e24f84ff.bundle.js} +1 -1
- package/dist/{111.d77e3e60f2db63fcd713.bundle.js → 124.12578c32900e1dd77742.bundle.js} +1 -1
- package/dist/{112.6b5fac36fea6ec10ccf7.bundle.js → 125.14767fcefae0676044e6.bundle.js} +1 -1
- package/dist/{113.85c3c663f3681b21e49d.bundle.js → 126.0e93fab2297ba7757766.bundle.js} +1 -1
- package/dist/{114.635dc2e74009c95bf91e.bundle.js → 127.7151226dc5c7143c6a7d.bundle.js} +1 -1
- package/dist/{115.47fe6316b11ce761e8d3.bundle.js → 128.31535237e77713023ab3.bundle.js} +1 -1
- package/dist/{116.511ed0fc7766ce1c5dbe.bundle.js → 129.d71a9882363b278a7918.bundle.js} +1 -1
- package/dist/13.d2b2f107c437155c7902.bundle.js +1 -0
- package/dist/{117.ff4f162729afc19137ca.bundle.js → 130.234b58f1812b976eebe0.bundle.js} +1 -1
- package/dist/{118.ce4cb2610bcae2cec5b4.bundle.js → 131.f6aec556f49c78da8665.bundle.js} +1 -1
- package/dist/132.bda2e1408a049ad349b2.bundle.js +1 -0
- package/dist/{120.3be53a400b5e5d0b8bbf.bundle.js → 133.f9aae73e47de861bb86e.bundle.js} +1 -1
- package/dist/{121.4493eca5616735378bb8.bundle.js → 134.a5c33a40d2b84ab5b624.bundle.js} +1 -1
- package/dist/135.e3e8ff0d0cce2e980f9b.bundle.js +1 -0
- package/dist/136.49d2a1a7cfb9325f793a.bundle.js +1 -0
- package/dist/137.c66ea292a9fd631984e5.bundle.js +1 -0
- package/dist/138.cb759fc495f9ce8e21ce.bundle.js +1 -0
- package/dist/139.7537655f500bab3e9c21.bundle.js +1 -0
- package/dist/14.d4c62f427432d74a286e.bundle.js +1 -0
- package/dist/140.74aba9df15b050c129d9.bundle.js +1 -0
- package/dist/141.60071851020a1bc11595.bundle.js +1 -0
- package/dist/{129.c8071eddb4e6ac450d14.bundle.js → 142.8906dd00536438b339df.bundle.js} +1 -1
- package/dist/{130.4ef543acc845d7dfcc8d.bundle.js → 143.b1a2222304f8efe71776.bundle.js} +1 -1
- package/dist/144.bed1362e8e1bf28f2474.bundle.js +1 -0
- package/dist/145.ead9efabb724dfeb0e19.bundle.js +1 -0
- package/dist/146.5c85b4c6e5b066c1b871.bundle.js +1 -0
- package/dist/147.c172219a8a4bd0f6c056.bundle.js +1 -0
- package/dist/148.66760b348f86007056d8.bundle.js +1 -0
- package/dist/149.fa1d474cfaf6b767889b.bundle.js +1 -0
- package/dist/{13.6e2d206f55eeb2c58b2b.bundle.js → 15.22af29a4663786436ba9.bundle.js} +1 -1
- package/dist/150.35beaee434c36b8a57ed.bundle.js +1 -0
- package/dist/151.d7dadb55d3acfd233781.bundle.js +1 -0
- package/dist/152.c4af60ca8a0f67a7bb50.bundle.js +1 -0
- package/dist/153.20647b70a0991741b133.bundle.js +1 -0
- package/dist/{133.cb22542677a1fde54231.bundle.js → 154.3d818c66534811bbd587.bundle.js} +1 -1
- package/dist/155.744b32f45a3739c64df2.bundle.js +1 -0
- package/dist/{134.16abd209e3e07d89821b.bundle.js → 156.b826b561627e04693c93.bundle.js} +1 -1
- package/dist/157.9cb575a263a2173e6305.bundle.js +1 -0
- package/dist/158.63b21a1e9c85348b257b.bundle.js +1 -0
- package/dist/{135.e71755f6f0278b2943d0.bundle.js → 159.2cc2abe5d5aab3e30f88.bundle.js} +1 -1
- package/dist/16.7ce65b3a395658afe6da.bundle.js +1 -0
- package/dist/{136.81439d8a1b2d7dfed6c7.bundle.js → 160.d91a55b2868430da2ab5.bundle.js} +1 -1
- package/dist/161.32c5f65412df68312087.bundle.js +1 -0
- package/dist/162.5e017b7ed61df1b947da.bundle.js +1 -0
- package/dist/163.3e4f72bb09ce009bd9a1.bundle.js +1 -0
- package/dist/164.f423947bfb90cfe80f56.bundle.js +1 -0
- package/dist/165.a479154750b74c124c3a.bundle.js +1 -0
- package/dist/166.d8124626d3bf79ade185.bundle.js +1 -0
- package/dist/167.f4b44e55b9f1ba6f29ec.bundle.js +1 -0
- package/dist/{137.ae6fae38c2b6fd89a566.bundle.js → 168.f07b58314eb17398ce0a.bundle.js} +1 -1
- package/dist/{138.8885afc315c221adb64b.bundle.js → 169.a7a1a463c102a787bd26.bundle.js} +1 -1
- package/dist/17.f97ce9ca8c87ba2dc2f5.bundle.js +3 -0
- package/dist/{139.f02901e6087085176dc7.bundle.js → 170.52b2b3312bf3cc660d86.bundle.js} +1 -1
- package/dist/{140.f0e54b9511ca99865d9d.bundle.js → 171.66786e51baeea990501b.bundle.js} +1 -1
- package/dist/{141.46aad99634d1bfe2b58a.bundle.js → 172.28e4c96daf75eea80ebe.bundle.js} +1 -1
- package/dist/{142.d2aaa85171c7449f2f85.bundle.js → 173.70169be75082552a6f38.bundle.js} +1 -1
- package/dist/{143.802e7b37a5e69e8637a2.bundle.js → 174.f5d8424fd30cdabd48fb.bundle.js} +1 -1
- package/dist/{144.5f21450a9ba89abcb82f.bundle.js → 175.bbc9e5d0a7637ddffb48.bundle.js} +1 -1
- package/dist/{145.2ea88cbccd93fc9fa454.bundle.js → 176.5498e980970c7294e857.bundle.js} +1 -1
- package/dist/{146.e7b99166958dc75f43e7.bundle.js → 177.ddbb3bbd7821e6ea5b19.bundle.js} +1 -1
- package/dist/{147.7abb3c6ae63a13eb61a5.bundle.js → 178.206e43afd1169f6b3b43.bundle.js} +1 -1
- package/dist/{148.b9aa2392ff5063d92341.bundle.js → 179.b917ef9b374cfa28781a.bundle.js} +1 -1
- package/dist/18.fa5f92b1325d6c237490.bundle.js +3 -0
- package/dist/180.95a07bc8d75dcf96fde2.bundle.js +1 -0
- package/dist/{150.c1303d8109786b40d21a.bundle.js → 181.1cbf387c8caf176326d6.bundle.js} +1 -1
- package/dist/182.1694471f63cb379c61b6.bundle.js +1 -0
- package/dist/183.d02eb491d82a20662078.bundle.js +1 -0
- package/dist/184.de22acd6491fc61d0879.bundle.js +1 -0
- package/dist/185.ad65f8cdbc08511d0016.bundle.js +1 -0
- package/dist/186.70bdb627c7e3fc76c4f2.bundle.js +1 -0
- package/dist/187.224d8efe82b066691d8c.bundle.js +1 -0
- package/dist/188.b4fada85a074589c8014.bundle.js +1 -0
- package/dist/{159.41a2a6b6b485989a9412.bundle.js → 189.46eb3adfc986d82bbc3e.bundle.js} +1 -1
- package/dist/19.d25fcec1a634b83a4ab5.bundle.js +2 -0
- package/dist/190.a818d485b6096668956e.bundle.js +1 -0
- package/dist/191.fe8b83097a7068a76e20.bundle.js +1 -0
- package/dist/192.a0201707d0955f55cee9.bundle.js +1 -0
- package/dist/193.5ca7765ecab43455cfdd.bundle.js +1 -0
- package/dist/194.0595be18b25b2f5ff060.bundle.js +1 -0
- package/dist/195.b79966a034a4bde84b69.bundle.js +1 -0
- package/dist/196.ec9ad63d721a93207e3b.bundle.js +1 -0
- package/dist/197.ed04fede33c0d3e78db5.bundle.js +1 -0
- package/dist/{166.92928a8fa8ec48d00349.bundle.js → 198.30768436f4f784d6d944.bundle.js} +1 -1
- package/dist/{167.b38a507dbcfd6329cf8c.bundle.js → 199.d8d94221e3a0539c0ab0.bundle.js} +1 -1
- package/dist/2.29a14f778c53393e96b5.bundle.js +2 -0
- package/dist/{18.a18e024d172531f968fa.bundle.js → 20.8141e5ec14e7d7025409.bundle.js} +1 -1
- package/dist/200.f431744bc266b434e4e4.bundle.js +1 -0
- package/dist/201.bfe7966e603cfdae7ea8.bundle.js +1 -0
- package/dist/202.7503f9f72f5838a91af3.bundle.js +1 -0
- package/dist/{170.8baf5e20de2271caf978.bundle.js → 203.6560a89dc38e752a8151.bundle.js} +1 -1
- package/dist/{171.a46d6b00949dbdbbc38e.bundle.js → 204.94ca0c34c25e23fac8b8.bundle.js} +1 -1
- package/dist/205.b1b032ab00b1f43ebe8e.bundle.js +1 -0
- package/dist/{173.d3bbff40e6f45969410d.bundle.js → 206.cdc530c2e5991fbbe5e3.bundle.js} +1 -1
- package/dist/{174.6d17f7732045b6f182a0.bundle.js → 207.9e82143eec8d7028e8ff.bundle.js} +1 -1
- package/dist/{175.7bc87231bd4677800c77.bundle.js → 208.dc76a108432f0f7fede2.bundle.js} +1 -1
- package/dist/{176.f7a1a4fdd12ad86f3d08.bundle.js → 209.56693a30198130f21dba.bundle.js} +1 -1
- package/dist/21.83559c0ea33f912ece16.bundle.js +1 -0
- package/dist/210.08776212dcac479e8e45.bundle.js +1 -0
- package/dist/211.b9290ea8bf0aabacaa74.bundle.js +1 -0
- package/dist/{179.e4bea06f7e407436dce7.bundle.js → 212.90a04da6e552b583257d.bundle.js} +1 -1
- package/dist/{180.bd3f5149f861a2586ffb.bundle.js → 213.1cbfca65042b2fc2028d.bundle.js} +1 -1
- package/dist/214.ccaa043e69aa63cd6ca4.bundle.js +1 -0
- package/dist/215.fe83decb1b0b9a81f134.bundle.js +1 -0
- package/dist/{183.2f7def34c47fd1bc38b3.bundle.js → 216.1d3f978fc8f89a63cd1d.bundle.js} +1 -1
- package/dist/{184.a71cd41118f14e2c123f.bundle.js → 217.ed6635ecde1fb3937766.bundle.js} +1 -1
- package/dist/{185.31a5c2ddc3afdffdc9e5.bundle.js → 218.a10ead78a182a4e850cb.bundle.js} +1 -1
- package/dist/219.988d446df0a2d0547382.bundle.js +1 -0
- package/dist/22.0fa3c8910376d3560df6.bundle.js +1 -0
- package/dist/{187.4b22405c17194851a1e1.bundle.js → 220.29343ca7761ff4f17202.bundle.js} +1 -1
- package/dist/{188.bce7651d7bd1e88d7689.bundle.js → 221.483fd8c486692cf8a7dd.bundle.js} +1 -1
- package/dist/222.f3db35b4bb1ab14a37ed.bundle.js +1 -0
- package/dist/{190.d758ca3d4a14b7273bab.bundle.js → 223.fc37863ba2ba85ac0f0a.bundle.js} +1 -1
- package/dist/224.2537701a5689274da43b.bundle.js +1 -0
- package/dist/{191.8c31e698a482ba52ca82.bundle.js → 225.382a40401d9afd08e86d.bundle.js} +1 -1
- package/dist/{192.944cc89f4d31c0fd8f79.bundle.js → 226.8d8fb48fcf4b7ab483be.bundle.js} +1 -1
- package/dist/{193.fad67143e7b911118459.bundle.js → 227.62884ab58af84ab0c7c8.bundle.js} +1 -1
- package/dist/228.658b65fb336375af3b68.bundle.js +1 -0
- package/dist/229.497bacae1ab50eba18ae.bundle.js +1 -0
- package/dist/23.f80e6c86fdefaa8beb7b.bundle.js +1 -0
- package/dist/{195.7f8774fd8da98c5897a1.bundle.js → 230.fb44d6b6d1e5f6a01137.bundle.js} +1 -1
- package/dist/{196.3ab76ea57aaa91d34511.bundle.js → 231.3c3c64494b941821f962.bundle.js} +1 -1
- package/dist/{197.9bbab0d7f35c2b58914f.bundle.js → 232.913974b2169e47ba8303.bundle.js} +1 -1
- package/dist/{198.813986f24f2f7887e738.bundle.js → 233.4f7f94736870d2fdd81c.bundle.js} +1 -1
- package/dist/{199.246f0549d7bdf7c18215.bundle.js → 234.7152fce5deceba8113a9.bundle.js} +1 -1
- package/dist/{200.20f4846b9ed97b60def3.bundle.js → 235.40b776ac77da900bae39.bundle.js} +1 -1
- package/dist/{201.768937613e43caedd9fc.bundle.js → 236.97c932e8fe1c73db7be9.bundle.js} +1 -1
- package/dist/{202.0d38d4ec1e39e8ca91b7.bundle.js → 237.63a9b10ddcdba3bc18cb.bundle.js} +1 -1
- package/dist/{203.a78dd70f65b08ecb58d2.bundle.js → 238.e4c5a499452589eff6cb.bundle.js} +1 -1
- package/dist/{204.e1f61ba757fbc813e6d4.bundle.js → 239.4fa5d180f3b89db4218c.bundle.js} +1 -1
- package/dist/24.f18e0c402a2edbe15a21.bundle.js +1 -0
- package/dist/{205.cc2c5786dff7bf31b08c.bundle.js → 240.3472069ee928bad9b35d.bundle.js} +1 -1
- package/dist/{206.dadf18fb31b0533b1696.bundle.js → 241.db491a552498f004ab18.bundle.js} +1 -1
- package/dist/{207.44dbc18bb4c8fa07cc66.bundle.js → 242.d88ed36c4588beb9e54f.bundle.js} +1 -1
- package/dist/{208.dda72c8e3795ba716704.bundle.js → 243.d27572f452a05b380a28.bundle.js} +1 -1
- package/dist/{209.7f8b6e8e2869b51c554c.bundle.js → 244.86eff11cbd068da83622.bundle.js} +1 -1
- package/dist/{210.6d601b172d76d9bc2c98.bundle.js → 245.3795fdb16cef6d43def8.bundle.js} +1 -1
- package/dist/{211.ad09e493e9be031887e9.bundle.js → 246.25ffd7dd24871309bc88.bundle.js} +1 -1
- package/dist/{212.364965f963bcd6331e6f.bundle.js → 247.eb181919d6dc4b9277d2.bundle.js} +1 -1
- package/dist/{213.6c5b540986e7b24a338a.bundle.js → 248.2e9244202f590821aebb.bundle.js} +1 -1
- package/dist/249.d3bd3be6c656ad4596f7.bundle.js +1 -0
- package/dist/25.5883938465085bed6a70.bundle.js +1 -0
- package/dist/250.d94dca4dc34daf520cc9.bundle.js +1 -0
- package/dist/{215.a95cf561d38004eff071.bundle.js → 251.8824e72b115cbad8c52c.bundle.js} +1 -1
- package/dist/252.ca03f0bcb4b5e1fbae25.bundle.js +1 -0
- package/dist/{216.acdd4ee62af663ab18a1.bundle.js → 253.69a04f3cdc05e37ad242.bundle.js} +1 -1
- package/dist/{217.38ab6d3450c36fe8104f.bundle.js → 254.220808d15009ead378de.bundle.js} +1 -1
- package/dist/{218.66399da8a64421df67c1.bundle.js → 255.ca7868637dfc0f1ca4e1.bundle.js} +1 -1
- package/dist/{219.05c3d5e61c9bb4752e5f.bundle.js → 256.84bbda311fb4ece40f32.bundle.js} +1 -1
- package/dist/{220.069190d187dfc576daed.bundle.js → 257.dd637d9aef6f410927d2.bundle.js} +1 -1
- package/dist/{221.3553362f556124c787a8.bundle.js → 258.c814fbc8cdbd63f5d0b2.bundle.js} +1 -1
- package/dist/{222.5ec7607217a3cb97b293.bundle.js → 259.1f263b72f0bcc10f3472.bundle.js} +1 -1
- package/dist/{24.498f1aefa71ceb33d2f8.bundle.js → 26.9d96327b6a589ccca5f4.bundle.js} +1 -1
- package/dist/{223.37d133ce14e20b0efe2d.bundle.js → 260.0982397378caa5bedec3.bundle.js} +1 -1
- package/dist/{224.acc9afbc9e926356519a.bundle.js → 261.cfc91fd6259161171ef8.bundle.js} +1 -1
- package/dist/{225.ba9860341f9eba2c1f2d.bundle.js → 262.bb79058c715d910286de.bundle.js} +1 -1
- package/dist/263.918171936df6aae41cdd.bundle.js +1 -0
- package/dist/264.5dbd1c96b788f865e8a3.bundle.js +1 -0
- package/dist/{228.21cb62126a898299b993.bundle.js → 265.91fe4801d0ae3c7c6013.bundle.js} +1 -1
- package/dist/{229.227a956358ad27627e2c.bundle.js → 266.faf272fe407c865552d5.bundle.js} +1 -1
- package/dist/{230.215c4242d4a205df5b8e.bundle.js → 267.51d61308ef19d0f31ae3.bundle.js} +1 -1
- package/dist/{231.fd7222ca89363294fe39.bundle.js → 268.d4496b954a694a12f563.bundle.js} +1 -1
- package/dist/269.39786de80a65a060ba15.bundle.js +1 -0
- package/dist/27.a2d2a0aeca206f315ff4.bundle.js +1 -0
- package/dist/270.bd49673c97f4bb96f8c8.bundle.js +1 -0
- package/dist/271.5e2535f5056b9ea67104.bundle.js +1 -0
- package/dist/272.9fc896f7f0650e076843.bundle.js +1 -0
- package/dist/{233.007908cb7a913f1554ed.bundle.js → 273.926007fe684295c91376.bundle.js} +1 -1
- package/dist/{234.de1618094d091408fd6d.bundle.js → 274.972a42a2fa48be2fc765.bundle.js} +1 -1
- package/dist/275.52fa7d7d23192c71c15d.bundle.js +1 -0
- package/dist/{236.ec2ada8b5f2aec3204f5.bundle.js → 276.5e90ab7063831bc35934.bundle.js} +1 -1
- package/dist/28.d9a0920f543c599508f7.bundle.js +1 -0
- package/dist/282.9bda539a1ef1de2dab5d.bundle.js +1 -0
- package/dist/283.5746fc7ea5590204dbe5.bundle.js +1 -0
- package/dist/{244.526affae61c05ae944d3.bundle.js → 284.b9048481713e69ecab9d.bundle.js} +1 -1
- package/dist/{245.feedc08d977143faa08e.bundle.js → 285.30720353e6e956a8d6e1.bundle.js} +1 -1
- package/dist/{246.136fac3b1ce27662490d.bundle.js → 286.27f1819fdbfb1c92bd56.bundle.js} +1 -1
- package/dist/{247.71aeac059bcf9ed9b392.bundle.js → 287.7b22c231b1d46de39afe.bundle.js} +1 -1
- package/dist/{248.94d8fea9b5ce15519623.bundle.js → 288.3cff5f62f13ca50d18d4.bundle.js} +1 -1
- package/dist/{249.234cb407b6a647179cf2.bundle.js → 289.28702ce35ff1b38eb7c3.bundle.js} +1 -1
- package/dist/29.15213e151364f5ecfcd5.bundle.js +1 -0
- package/dist/{250.3ed03b7e55905888d992.bundle.js → 290.01dca2e117009414cca7.bundle.js} +1 -1
- package/dist/291.e9dd88227bb4f2925388.bundle.js +1 -0
- package/dist/292.8d4187053b4b294cac20.bundle.js +1 -0
- package/dist/{251.efa949bd1ee44f4290ed.bundle.js → 293.70b8a172454be55d934b.bundle.js} +1 -1
- package/dist/{252.5705d631c738e4d8e996.bundle.js → 294.1a2995e88e44e8cfc675.bundle.js} +1 -1
- package/dist/{253.8752156b82db62eb4c92.bundle.js → 295.77931288193c43b9553d.bundle.js} +1 -1
- package/dist/{254.986c95170a74cc76c5e5.bundle.js → 296.8d45796ceae0c6bee738.bundle.js} +1 -1
- package/dist/{255.53ff457cdf06dc0de427.bundle.js → 297.48c7bcec883dd64f3c56.bundle.js} +1 -1
- package/dist/{256.52e7acbbd3e7dde0df9f.bundle.js → 298.8acfa2c57b8ee59b9b91.bundle.js} +1 -1
- package/dist/299.e6c3dca243930e459640.bundle.js +1 -0
- package/dist/3.004ca7fdd54f69fb403c.bundle.js +1 -0
- package/dist/30.da81fc6adae87760bef3.bundle.js +1 -0
- package/dist/300.cef8eccb11324bcfdb36.bundle.js +1 -0
- package/dist/{258.db5554df6956ecfc7dec.bundle.js → 301.3f57183ed5f7435dc4c8.bundle.js} +1 -1
- package/dist/302.7a5d2ba28bd6479a77be.bundle.js +1 -0
- package/dist/303.e817b957f010153de97a.bundle.js +1 -0
- package/dist/304.fd2e766c67cd966f6751.bundle.js +1 -0
- package/dist/{262.3b9c687ab8c9b9282f5a.bundle.js → 305.efcc46990fa1eaf33302.bundle.js} +1 -1
- package/dist/{263.9c4ce329ffd095c5d1c6.bundle.js → 306.b91bcc28ab82991706be.bundle.js} +1 -1
- package/dist/{264.0504ff98a1b50e9d2486.bundle.js → 307.01896312daa103074967.bundle.js} +1 -1
- package/dist/{265.a0af2676b1495c6231cc.bundle.js → 308.aa64afad16520593c3cb.bundle.js} +1 -1
- package/dist/{266.31dcc9c203106832e08a.bundle.js → 309.b740a138d610f3ecc8ac.bundle.js} +1 -1
- package/dist/31.7291677a3b02925c5619.bundle.js +1 -0
- package/dist/{267.3befe4deb9b75cd5d7ba.bundle.js → 310.a0facb5c474ed00faa72.bundle.js} +1 -1
- package/dist/{268.c7dc883261346f81be82.bundle.js → 311.179fc05c974e534f0b3e.bundle.js} +1 -1
- package/dist/{269.601d4fc4300f4553d75c.bundle.js → 312.7bed00fa6da9f34a200e.bundle.js} +1 -1
- package/dist/{270.e9d338a5cf954fbc1f4c.bundle.js → 313.bbfd0481b9d7916061b2.bundle.js} +1 -1
- package/dist/{271.a88eeff63bbc87791af0.bundle.js → 314.1098f208f4369aeffbef.bundle.js} +1 -1
- package/dist/{272.ddacc590a66bdb0fa651.bundle.js → 315.6be86d6c5fa08f25391b.bundle.js} +1 -1
- package/dist/{273.d45db281162abbe864ae.bundle.js → 316.e399550194cb14ea97fb.bundle.js} +1 -1
- package/dist/{274.eca3da80ab4f0b4a3263.bundle.js → 317.745c344fb0123b866691.bundle.js} +1 -1
- package/dist/{275.509ea766eda3bbcf1562.bundle.js → 318.451e46818432dd01c8c4.bundle.js} +1 -1
- package/dist/319.04599c775a6928137e1c.bundle.js +1 -0
- package/dist/32.1500547152b61817bf4b.bundle.js +1 -0
- package/dist/320.3d8e2fa758f49e682109.bundle.js +1 -0
- package/dist/321.4c84a408218abc25d649.bundle.js +1 -0
- package/dist/322.166a8d15dbebcaad2c0f.bundle.js +1 -0
- package/dist/323.148866d081938614070f.bundle.js +1 -0
- package/dist/324.6db5e50972124f9c757c.bundle.js +1 -0
- package/dist/325.f6a3e4e6432a00d1f8be.bundle.js +1 -0
- package/dist/326.c1a4a25bc2c84932656c.bundle.js +1 -0
- package/dist/327.bbc29c40294c2c21fd45.bundle.js +1 -0
- package/dist/{283.bf3ea5f6f6b8406e5401.bundle.js → 328.b5ee29711483c6cb3648.bundle.js} +1 -1
- package/dist/{284.3f34606cfbcefb0a1a47.bundle.js → 329.815fbe5d926e0abd72bc.bundle.js} +1 -1
- package/dist/33.658b4b7dfd8907299bd2.bundle.js +1 -0
- package/dist/{285.4e95ca9e283ddd26fcbf.bundle.js → 330.0d46e506e428bac029f7.bundle.js} +1 -1
- package/dist/{286.8c8f50e9844881f0b028.bundle.js → 331.dcb59ef954e8107551b2.bundle.js} +1 -1
- package/dist/{287.23b580771ee0d5e65d41.bundle.js → 332.76cc6e5378d0543502bc.bundle.js} +1 -1
- package/dist/333.9f051c77b4c6747b320c.bundle.js +1 -0
- package/dist/{289.c47fa5cd7d5468dce45f.bundle.js → 334.da0264965f7333f3a4b4.bundle.js} +1 -1
- package/dist/{290.b9baf8eed99b4447f086.bundle.js → 335.99789e8308a408fe173c.bundle.js} +1 -1
- package/dist/{291.1e7bf6b667f7698ac645.bundle.js → 336.9a10da6ea9e4d8e2fabc.bundle.js} +1 -1
- package/dist/{292.44bcf6642bd3fac703b4.bundle.js → 337.bf9bab37069a41e14b6d.bundle.js} +1 -1
- package/dist/{293.184eb39d3229ef066269.bundle.js → 338.17dcc925449ebf22c5e1.bundle.js} +1 -1
- package/dist/{294.338c276decc123976f73.bundle.js → 339.71410d58db5ed9abd346.bundle.js} +1 -1
- package/dist/34.b083f40f22c7cba13c9b.bundle.js +1 -0
- package/dist/{295.72eea8b2cf594acd85e6.bundle.js → 340.49087fd95051d04734f4.bundle.js} +1 -1
- package/dist/{296.8f11a500bce671ed75db.bundle.js → 341.f6054b3fa699d92daefe.bundle.js} +1 -1
- package/dist/{297.71b96380e1103cd792d9.bundle.js → 342.69f49187341e9eb1749a.bundle.js} +1 -1
- package/dist/{298.39626a266f47903126bf.bundle.js → 343.f058949d789f13202685.bundle.js} +1 -1
- package/dist/344.10ae353b99728613ba59.bundle.js +1 -0
- package/dist/345.7dd95595bdddf2a1ba1b.bundle.js +1 -0
- package/dist/{301.e9495589c306b342c312.bundle.js → 346.6e70020ca7edeea727be.bundle.js} +1 -1
- package/dist/{302.d16e044e23278bf1e922.bundle.js → 347.16efd9ee41abd6f9f1e5.bundle.js} +1 -1
- package/dist/{303.85715cdc00dfd6ef1521.bundle.js → 348.430c33b3feafbe6f4d0c.bundle.js} +1 -1
- package/dist/{304.e055e669c9bad5898984.bundle.js → 349.0171f3012a3a81bb4aec.bundle.js} +1 -1
- package/dist/35.6e98d4f02ec70ab9c18d.bundle.js +1 -0
- package/dist/36.514b83c5c76d798f194b.bundle.js +1 -0
- package/dist/{36.780bcf12c8d8b5742eac.bundle.js → 37.84d99617e535839cb656.bundle.js} +2 -2
- package/dist/38.ee84d1f49e7b0dd1ab19.bundle.js +1 -0
- package/dist/39.5b42ccebac5d40ef0c46.bundle.js +1 -0
- package/dist/{4.fe432ceb2b88c03018b3.bundle.js → 4.475e4b352dc9c792c416.bundle.js} +1 -1
- package/dist/{38.0edff4c7b76c9652f664.bundle.js → 40.c50518d943c144dd34ef.bundle.js} +1 -1
- package/dist/{39.f691f87a4527e58da4a2.bundle.js → 41.09acac356445cf9bbefd.bundle.js} +1 -1
- package/dist/42.52befbab22e69bb433f4.bundle.js +1 -0
- package/dist/43.aa5e0ebcdf8f97aa89fa.bundle.js +1 -0
- package/dist/44.dfaaad81b2f47956d038.bundle.js +1 -0
- package/dist/45.35f80633b00a33777b62.bundle.js +1 -0
- package/dist/{41.5a0ecbdf78c48ddce365.bundle.js → 46.59cd819edca5b6f72949.bundle.js} +1 -1
- package/dist/47.32904b5b7445c997858b.bundle.js +2 -0
- package/dist/{42.6a677110f335d516813b.bundle.js → 48.1217ce13ac2ed52e8767.bundle.js} +1 -1
- package/dist/49.aa0a9db787ce961bd165.bundle.js +1 -0
- package/dist/{6.0685b09a3646005a1521.bundle.js → 5.414947e88a9489bc7dbd.bundle.js} +1 -1
- package/dist/50.b6bccc40953db549a1bd.bundle.js +1 -0
- package/dist/51.ebafb19025c2f912a73d.bundle.js +1 -0
- package/dist/52.d2c2830c7875e01e1404.bundle.js +1 -0
- package/dist/{45.001b1bcbff1d7c9b3288.bundle.js → 53.bb3c2e2fbe65e9dd533d.bundle.js} +1 -1
- package/dist/54.26d3c626b4ccd5da602f.bundle.js +1 -0
- package/dist/{47.7e030d52af57062c6527.bundle.js → 55.91a21a61b4c946d83ba5.bundle.js} +1 -1
- package/dist/{48.669aedf81599ca0aee35.bundle.js → 56.64c8049f78f861aa2419.bundle.js} +1 -1
- package/dist/{49.319507fd2417a71a157e.bundle.js → 57.349e7326d2230d67b60e.bundle.js} +1 -1
- package/dist/{50.91efd0f7c94e635eb31b.bundle.js → 58.9f4b098efc1fa6145087.bundle.js} +1 -1
- package/dist/59.6f241e911b33e8f887bd.bundle.js +1 -0
- package/dist/6.06c5378d91089fc0d3c0.bundle.js +1 -0
- package/dist/{52.37332ab2c0675e0a802c.bundle.js → 60.6e7c33c9eccf58424d89.bundle.js} +1 -1
- package/dist/{53.967c8f3d2a9f33fcfc27.bundle.js → 61.a617b16ec93bbe525f65.bundle.js} +1 -1
- package/dist/62.42c03cc9243d6571127e.bundle.js +1 -0
- package/dist/63.7567923d3e84023026f5.bundle.js +1 -0
- package/dist/64.fc165e927e6193957d27.bundle.js +1 -0
- package/dist/65.dfd1dc460e2b633c3d21.bundle.js +1 -0
- package/dist/66.4d605c13039281a135b4.bundle.js +1 -0
- package/dist/67.147b4b01815dbf0fb888.bundle.js +1 -0
- package/dist/68.bbb9167b9a325038c4c5.bundle.js +1 -0
- package/dist/69.1b10c7df49efcbce6beb.bundle.js +1 -0
- package/dist/7.0d6b451c3b56ee9d14ba.bundle.js +73 -0
- package/dist/70.9b73a992193f9d98e908.bundle.js +1 -0
- package/dist/{60.dd84d15683316fe6c548.bundle.js → 71.4ba8d14bb95169a5ef98.bundle.js} +1 -1
- package/dist/{62.3cda5cf1c8a74f8bccc6.bundle.js → 72.82001a2b76be62724c3b.bundle.js} +1 -1
- package/dist/73.49f51849b45a708ecef3.bundle.js +1 -0
- package/dist/74.8df75b6e3d1dfabeb5c0.bundle.js +1 -0
- package/dist/{64.0b46f2876921c15c0f4d.bundle.js → 75.50bbc13551fe565e7f60.bundle.js} +1 -1
- package/dist/76.689c7abcb01082bcf286.bundle.js +1 -0
- package/dist/77.c7b14cc19f05c1b661a1.bundle.js +1 -0
- package/dist/{65.4c044f55fb8e826c87a0.bundle.js → 78.e546f8734e039b8d3346.bundle.js} +1 -1
- package/dist/{68.b4bf34276a3cab5e48bf.bundle.js → 79.cb4717cfd1c48b5b4d26.bundle.js} +1 -1
- package/dist/8.02e89c644497d344f233.bundle.js +1 -0
- package/dist/80.3017e9693f3fa36f483b.bundle.js +1 -0
- package/dist/{70.e04eced6ee3b7d712377.bundle.js → 81.8c5f38e3e4453ab9a06d.bundle.js} +1 -1
- package/dist/{71.0fbdedcc573e4e38ff6a.bundle.js → 82.351873d0098ac0a22454.bundle.js} +1 -1
- package/dist/{72.e71caf5330e0c1cece04.bundle.js → 83.3b4add664d238c3a63be.bundle.js} +1 -1
- package/dist/{73.298162fe9ad207efe8a5.bundle.js → 84.fbfb2f77d6d49d9ee6b0.bundle.js} +1 -1
- package/dist/{74.b57c202b34d9d8effbcb.bundle.js → 85.061a04461cc963521051.bundle.js} +1 -1
- package/dist/{75.8be72a221b92aa667da7.bundle.js → 86.63234e89df7adaf0c074.bundle.js} +1 -1
- package/dist/{76.0f45a150d03cf8aeeb9d.bundle.js → 87.a2fd79351dd8689b0edb.bundle.js} +1 -1
- package/dist/{77.257e393d86a8fb9f2102.bundle.js → 88.5fe43d640edc7ee2fa75.bundle.js} +1 -1
- package/dist/{78.83432ef1cff39b57aa50.bundle.js → 89.d3627c71ece81fb972cc.bundle.js} +1 -1
- package/dist/9.843879ddf6bab478ae3d.bundle.js +1 -0
- package/dist/{79.74e2421bfb8f6c563a99.bundle.js → 90.943c3e36b2f824bb9ec1.bundle.js} +1 -1
- package/dist/{80.53a2f5637376be338bb5.bundle.js → 91.0177cb93cc124b69740e.bundle.js} +1 -1
- package/dist/{81.a48e2d16edd121965d2f.bundle.js → 92.397df9e617dec5ac291a.bundle.js} +1 -1
- package/dist/{82.bde6d42f833167581069.bundle.js → 93.91bcf6af4f2cb865f971.bundle.js} +1 -1
- package/dist/{83.4bb7fb45433f0902ba64.bundle.js → 94.988cc1669cd64f980cd4.bundle.js} +1 -1
- package/dist/{84.3fe74c343dd811256a58.bundle.js → 95.afff0a4c33382bd1ed81.bundle.js} +1 -1
- package/dist/96.6a570ad81b7588bffb76.bundle.js +1 -0
- package/dist/{86.b6a6584bb48c2eba7793.bundle.js → 97.885a73aa0360fd138b06.bundle.js} +1 -1
- package/dist/{87.66c82919414d84bf1c91.bundle.js → 98.4682c01b8beedb7ee99f.bundle.js} +1 -1
- package/dist/{88.a54c809c84dbef177321.bundle.js → 99.27862271b2265d287af4.bundle.js} +1 -1
- package/dist/bundle.a0c228dbfde457104657.bundle.js +95 -0
- package/dist/css/clustermanagement.css +120 -113
- package/dist/css/import-resource-tree.css +211 -0
- package/dist/css/import.css +42 -1
- package/dist/css/lib/ontotext-yasgui-web-component.css +17 -0
- package/dist/css/ux-test1.css +29 -0
- package/dist/i18n/locale-en.json +252 -111
- package/dist/i18n/locale-fr.json +283 -111
- package/dist/index.html +5 -5
- package/dist/js/angular/clustermanagement/templates/cluster-configuration.html +89 -0
- package/dist/js/angular/clustermanagement/templates/cluster-legend.html +9 -0
- package/dist/js/angular/core/components/export-settings-modal/controller.js +67 -0
- package/dist/js/angular/core/components/export-settings-modal/exportSettingsModal.html +66 -0
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/import/templates/file-override-confirmation.html +18 -0
- package/dist/js/angular/import/templates/fileSizeLimitInfo.html +6 -0
- package/dist/js/angular/import/templates/import-resource-message-dialog.html +29 -0
- package/dist/js/angular/import/templates/import-resource-message.html +48 -0
- package/dist/js/angular/import/templates/import-resource-status-info.html +116 -0
- package/dist/js/angular/import/templates/import-resource-tree.html +235 -0
- package/dist/js/angular/import/templates/settingsModal.html +272 -219
- package/dist/js/angular/import/templates/textSnippet.html +21 -13
- package/dist/js/angular/import/templates/urlImport.html +1 -1
- package/dist/js/angular/security/templates/user.html +9 -3
- package/dist/license-checker.json +269 -26
- package/dist/main.98c547eac0aca6db48bb.css +1 -0
- package/dist/{main.d3e9ca1041e746ba3275.bundle.js → main.9a9ecfe4df696b298d46.bundle.js} +1 -1
- package/dist/pages/aclmanagement.html +18 -6
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +18 -112
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +9 -4
- package/dist/pages/export.html +26 -14
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +106 -39
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +2 -2
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +22 -21
- package/dist/pages/sparql-editor.html +1 -9
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +366 -7
- package/dist/pages/webapi.html +3 -3
- package/dist/plugins.js +240 -260
- package/dist/{polyfills-dom.e5e420bcb04603449d09.bundle.js → polyfills-dom.7743e3f46a2b61057149.bundle.js} +1 -1
- package/dist/res/swagger5/README.md +3 -0
- package/dist/res/swagger5/css/onto-theme.css +149 -0
- package/dist/res/swagger5/favicon-16x16.png +0 -0
- package/dist/res/swagger5/favicon-32x32.png +0 -0
- package/dist/res/swagger5/index.css +16 -0
- package/dist/res/swagger5/index.html +28 -0
- package/dist/res/swagger5/oauth2-redirect.html +79 -0
- package/dist/res/swagger5/swagger-initializer.js +51 -0
- package/dist/res/swagger5/swagger-ui-bundle.js +2 -0
- package/dist/res/swagger5/swagger-ui-bundle.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-es-bundle-core.js +3 -0
- package/dist/res/swagger5/swagger-ui-es-bundle-core.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-es-bundle.js +2 -0
- package/dist/res/swagger5/swagger-ui-es-bundle.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-standalone-preset.js +2 -0
- package/dist/res/swagger5/swagger-ui-standalone-preset.js.map +1 -0
- package/dist/res/swagger5/swagger-ui.css +3 -0
- package/dist/res/swagger5/swagger-ui.css.map +1 -0
- package/dist/res/swagger5/swagger-ui.js +2 -0
- package/dist/res/swagger5/swagger-ui.js.map +1 -0
- package/dist/{vendor.32f2a17d79d66db88bba.bundle.js → vendor.4158e85ef261380e9ea5.bundle.js} +4 -4
- package/dist/vendor.c3e18291118da6a85719.css +20 -0
- package/dist/{vendors~polyfills-core-js.efe4b0ec258663b8b247.bundle.js → vendors~polyfills-core-js.2ccf42a4e726efd70e15.bundle.js} +1 -1
- package/package.json +5 -4
- package/dist/0.a3b3bef411c35bdc8be5.bundle.js +0 -25
- package/dist/1.aab0f9b3a664ffdd46a3.bundle.js +0 -1
- package/dist/10.c86a39a390b36ec08b90.bundle.js +0 -1
- package/dist/101.d85136c82944d96009d8.bundle.js +0 -1
- package/dist/11.5146ccccd430bce59f6c.bundle.js +0 -7
- package/dist/119.e2a1ccb260af6cddd91c.bundle.js +0 -1
- package/dist/12.5bf5c46197bb88fade77.bundle.js +0 -1
- package/dist/122.d5d3e1f5e5c8f632795f.bundle.js +0 -1
- package/dist/123.eb8114707f15749a90ae.bundle.js +0 -1
- package/dist/124.66c3ddc58390694a3a98.bundle.js +0 -1
- package/dist/125.48215e946747137bf6c8.bundle.js +0 -1
- package/dist/126.119b23fe77d130cd15f2.bundle.js +0 -1
- package/dist/127.8e57d1e19372e120aeba.bundle.js +0 -1
- package/dist/128.96d9076518cacd42230d.bundle.js +0 -1
- package/dist/131.f41a0b6b9036447b1077.bundle.js +0 -1
- package/dist/132.3666a6511534abe54b6a.bundle.js +0 -1
- package/dist/14.77134ed08934f63cbe92.bundle.js +0 -1
- package/dist/149.c2b7461cdb7018d8a7ac.bundle.js +0 -1
- package/dist/15.81ca8fb02469ee14c5e4.bundle.js +0 -1
- package/dist/151.b909ba9cb2419e0f91dd.bundle.js +0 -1
- package/dist/152.20fec292fccfef232845.bundle.js +0 -1
- package/dist/153.7413dfe6871e27f43788.bundle.js +0 -1
- package/dist/154.19d1b00bfc1e419adc42.bundle.js +0 -1
- package/dist/155.dd57193f58cc7d5262b8.bundle.js +0 -1
- package/dist/156.258d084f62fa73d45ded.bundle.js +0 -1
- package/dist/157.60074b591e62c10a77ed.bundle.js +0 -1
- package/dist/158.742c03d8e739b04df049.bundle.js +0 -1
- package/dist/16.3726f8988b8ca8f2394a.bundle.js +0 -3
- package/dist/160.7616cb8b729cfbe229fb.bundle.js +0 -1
- package/dist/161.cc79ca9a079e616ba9e6.bundle.js +0 -1
- package/dist/162.78a734f7eb6bd4583f17.bundle.js +0 -1
- package/dist/163.5dbf48d936a3c831c9b5.bundle.js +0 -1
- package/dist/164.d3220f317e31f573b335.bundle.js +0 -1
- package/dist/165.4b88e7b3b3a273cb4ed1.bundle.js +0 -1
- package/dist/168.c52d0bbbd4224ddadd7c.bundle.js +0 -1
- package/dist/169.f6823be6839682f8586c.bundle.js +0 -1
- package/dist/17.31f5971e39936437eda8.bundle.js +0 -1
- package/dist/172.9b5d17e5c772c53243e9.bundle.js +0 -1
- package/dist/177.1023531c905d87b8a4ac.bundle.js +0 -1
- package/dist/178.cb8324bb00103fb26cfb.bundle.js +0 -1
- package/dist/181.393af0e6c19d537f775b.bundle.js +0 -1
- package/dist/182.9b7c235aa984ad81ab02.bundle.js +0 -1
- package/dist/186.daffd5d0823f56ba3c54.bundle.js +0 -1
- package/dist/189.4456ac2b4559c9c4e808.bundle.js +0 -1
- package/dist/19.ec4fc8946a6edb7dc7c9.bundle.js +0 -1
- package/dist/194.a4f892be39e071e2552a.bundle.js +0 -1
- package/dist/2.907f954e4f9e0697612c.bundle.js +0 -1
- package/dist/20.b6d679aabf452ffe8369.bundle.js +0 -1
- package/dist/21.72126081137288bb650e.bundle.js +0 -1
- package/dist/214.3c333d59839d2bcd183e.bundle.js +0 -1
- package/dist/22.8ee5985085ab2c4b99f1.bundle.js +0 -2
- package/dist/226.0a305eb2e34c9d3fb3ce.bundle.js +0 -1
- package/dist/227.357506866df2e0ba1ae1.bundle.js +0 -1
- package/dist/23.a5165fa6e171a8db712b.bundle.js +0 -1
- package/dist/232.ddae678620e7c15b8ec4.bundle.js +0 -1
- package/dist/235.97d46a9b6277079ae6cc.bundle.js +0 -1
- package/dist/242.7be67f4aaa4647098043.bundle.js +0 -1
- package/dist/243.36fbc0c96d0a35048949.bundle.js +0 -1
- package/dist/25.5a98f7b1bf5b195fa51f.bundle.js +0 -1
- package/dist/257.943f597bddc0d65103c5.bundle.js +0 -1
- package/dist/259.2c88332b7f1b47935a47.bundle.js +0 -1
- package/dist/26.39e15c5192367e254761.bundle.js +0 -1
- package/dist/260.d745422c537bdd9647bb.bundle.js +0 -1
- package/dist/261.7efff7f93f61f061f5ca.bundle.js +0 -1
- package/dist/27.92bfb161b420732902a3.bundle.js +0 -1
- package/dist/276.f816f19aaa4522373a5f.bundle.js +0 -1
- package/dist/277.6c6b5259fa26936adf41.bundle.js +0 -1
- package/dist/278.bfc453e4fdb94806e6fc.bundle.js +0 -1
- package/dist/279.855b2c767116d91fdc3b.bundle.js +0 -1
- package/dist/28.2e0277168c8f14f9c085.bundle.js +0 -1
- package/dist/280.95394d461866b83c32b7.bundle.js +0 -1
- package/dist/281.fcaf9deb44f93c85ef68.bundle.js +0 -1
- package/dist/282.bede8a18d3e678b7895d.bundle.js +0 -1
- package/dist/288.6cef162ec3cec3cde603.bundle.js +0 -1
- package/dist/29.128101fabb544e88e448.bundle.js +0 -1
- package/dist/299.d3636e77b768f4300e8c.bundle.js +0 -1
- package/dist/3.e877f5e49ef930b8b905.bundle.js +0 -1
- package/dist/30.1ffda412dea3c5f55c24.bundle.js +0 -1
- package/dist/300.c9844b95b03ac7295e4f.bundle.js +0 -1
- package/dist/31.1e6ed4b31ac8c0dc44cd.bundle.js +0 -1
- package/dist/32.08cc7807b71cf869e6e2.bundle.js +0 -1
- package/dist/33.601eab9a8c9d80755599.bundle.js +0 -1
- package/dist/34.b03038da5530dcb82c85.bundle.js +0 -3
- package/dist/35.d337b2f1aeac7bab3100.bundle.js +0 -2
- package/dist/37.2204724b4ae08556283e.bundle.js +0 -1
- package/dist/40.53352fda81f370182e99.bundle.js +0 -1
- package/dist/43.bcf30fa642d63c585962.bundle.js +0 -1
- package/dist/44.f3060f0a04c90bc70a36.bundle.js +0 -1
- package/dist/46.7682ca54e79000d992ab.bundle.js +0 -1
- package/dist/5.f15016e5e47214a9bc88.bundle.js +0 -1
- package/dist/51.9696bc200e07cfc15860.bundle.js +0 -1
- package/dist/54.07a064723a033340c51b.bundle.js +0 -1
- package/dist/55.1f556c49966d089af28e.bundle.js +0 -1
- package/dist/56.0bfd1ac12b2c5f9116e5.bundle.js +0 -1
- package/dist/57.19a0ece12b6fb894221d.bundle.js +0 -1
- package/dist/58.b741d32027a50f883617.bundle.js +0 -1
- package/dist/59.01fd6bb0dea0e31b8c98.bundle.js +0 -1
- package/dist/61.2fdefec6b0e4f2f01dc9.bundle.js +0 -1
- package/dist/63.dbce2c16115eac52fed2.bundle.js +0 -1
- package/dist/66.c8b9472b02654a17b61c.bundle.js +0 -1
- package/dist/67.958136cd17ad37887b60.bundle.js +0 -1
- package/dist/69.68337b9a2e3104600ff6.bundle.js +0 -1
- package/dist/7.e94c63e82c97c775b03a.bundle.js +0 -1
- package/dist/8.df1e59fdf8864051f4b0.bundle.js +0 -2
- package/dist/85.e34e2854ea217304bf69.bundle.js +0 -1
- package/dist/89.08dc723465581d17e18c.bundle.js +0 -1
- package/dist/9.3890e642c0ae619d2c59.bundle.js +0 -1
- package/dist/90.82bdd586c3a8e362fd99.bundle.js +0 -1
- package/dist/91.743cdf86c0680be894c9.bundle.js +0 -1
- package/dist/92.c68c7391efc7d3b46a0d.bundle.js +0 -1
- package/dist/93.daf27be7933412f1637f.bundle.js +0 -1
- package/dist/94.e7ab23159456b757afa9.bundle.js +0 -1
- package/dist/95.522b5e309c1f6989ec42.bundle.js +0 -1
- package/dist/96.a27f80abf5b300312056.bundle.js +0 -1
- package/dist/97.f221163ec5e99caa0668.bundle.js +0 -1
- package/dist/98.1f20ae086eeefbf60b9f.bundle.js +0 -1
- package/dist/99.c4df74a95a465a7bc7e6.bundle.js +0 -1
- package/dist/bundle.a4202dd96a18bfda3fd0.bundle.js +0 -89
- package/dist/js/angular/import/templates/commonInfo.html +0 -6
- package/dist/js/angular/import/templates/filesTable.html +0 -168
- package/dist/js/angular/import/templates/importInfo.html +0 -12
- package/dist/js/angular/import/templates/uploadInfo.html +0 -9
- package/dist/main.b830c2fc237abd684f41.css +0 -1
- package/dist/res/swagger/css/onto-theme.css +0 -8
- package/dist/res/swagger/images/collapse.gif +0 -0
- package/dist/res/swagger/images/expand.gif +0 -0
- package/dist/res/swagger/index.html +0 -137
- package/dist/res/swagger/lib/backbone-min.js +0 -15
- package/dist/res/swagger/lib/es5-shim.js +0 -2065
- package/dist/res/swagger/lib/handlebars.min-v4.7.3.js +0 -29
- package/dist/res/swagger/lib/highlight.9.1.0.pack.js +0 -2
- package/dist/res/swagger/lib/highlight.9.1.0.pack_extended.js +0 -34
- package/dist/res/swagger/lib/jquery-3.4.1.min.js +0 -2
- package/dist/res/swagger/lib/jquery-migrate-1.4.1.min.js +0 -2
- package/dist/res/swagger/lib/jquery.ba-bbq.min.js +0 -18
- package/dist/res/swagger/lib/jquery.slideto.min.js +0 -1
- package/dist/res/swagger/lib/jquery.wiggle.min.js +0 -8
- package/dist/res/swagger/lib/js-yaml.min.js +0 -3
- package/dist/res/swagger/lib/jsoneditor.min.js +0 -11
- package/dist/res/swagger/lib/lodash.min.js +0 -102
- package/dist/res/swagger/lib/marked.js +0 -1272
- package/dist/res/swagger/lib/object-assign-pollyfill.js +0 -23
- package/dist/res/swagger/lib/sanitize-html.min.js +0 -6
- package/dist/res/swagger/lib/swagger-oauth.js +0 -347
- package/dist/res/swagger/o2c.html +0 -20
- package/dist/res/swagger/swagger-ui.js +0 -35337
- package/dist/res/swagger/swagger-ui.min.js +0 -14
- package/dist/vendor.169ed6d7d226ea8551b7.css +0 -20
- /package/dist/res/{swagger → swagger5}/css/print.css +0 -0
- /package/dist/res/{swagger → swagger5}/css/reset.css +0 -0
- /package/dist/res/{swagger → swagger5}/css/screen.css +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/DroidSans-Bold.ttf +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/DroidSans.ttf +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/fontawesome-webfont.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/fontawesome-webfont.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/icons.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-light.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-light.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-lightitalic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-lightitalic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-medium.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-medium.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-mediumitalic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-mediumitalic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/images/explorer_icons.png +0 -0
- /package/dist/res/{swagger → swagger5}/images/throbber.gif +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[66,106],{159:function(e,t,n){"use strict";n.r(t);var r=n(79);function l(e,t,n,l,i){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:n=>{n.isAdmin=!1,n.closeClusterConfigurationPanel=()=>{i.hideClusterConfigurationPanel()},n.showEditConfigurationDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:()=>({clusterConfiguration:n.clusterConfiguration})}}).result.finally((function(){n.$emit(r.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then(e=>{n.$emit(r.DELETE_CLUSTER,{force:e})})};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",[]).directive("clusterConfiguration",l),l.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"]},79:function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_CLUSTER",(function(){return r})),n.d(t,"DELETE_CLUSTER",(function(){return l})),n.d(t,"CLICK_IN_VIEW",(function(){return i})),n.d(t,"NODE_SELECTED",(function(){return u})),n.d(t,"CREATE_CLUSTER",(function(){return o})),n.d(t,"MODEL_UPDATED",(function(){return a}));const r="updateCluster",l="deleteCluster",i="clickInView",u="nodeSelected",o="createCluster",a="modelUpdated"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[67,106],{156:function(e,t,n){"use strict";n.r(t);n(10),n(157);var o=n(85),r=n(65),s=n(79);let a=240;const i={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},c={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,d,l,u,_,f){return{restrict:"E",scope:{clusterModel:"="},link:function(p,g){const h=angular.element(e),E=[];let w,m,C,y,v,S=N(),k=O(),L=Math.min(S,k)/2-100,b=S/2,A=k/2;function M(){const e=f.getClusterViewD3Container();S=N(),k=O(),e.attr("width",S),e.attr("height",k),U()}function D(e,t=""){Object.keys(e).forEach(n=>{let o="";t&&(o+=t),o+="."+n;const r=e[n];"string"==typeof r?e[n]=l.instant("cluster_management.cluster_graphical_view"+o):"object"==typeof r&&D(r,o)})}function N(){const o="collapsedMenu"===t.get(n.MENU_STATE);return a=o?70:240,Math.max(Math.floor(.95*(e.innerWidth-a)),600)}function O(){return Math.max(.95*(e.innerHeight-250),675)}function T(){o.updateClusterZoneLabels(m,C,i),Object.keys(c).forEach(e=>{d3.select("#"+e).text(function(e){return i[c[e]]}(e))})}function R(){L=Math.min(S,k)/2-100,b=S/2,A=k/2,o.moveElement(C,b,A),C.select(".cluster-zone").attr("r",L)}function I(e){p.$emit(s.CLICK_IN_VIEW,e.target)}function U(){R(),m!==p.clusterModel.hasCluster&&(m=!!p.clusterModel.hasCluster,function(e){o.setCreateClusterZone(e,C,i,w),!e&&w&&C.on("mouseup",()=>{p.$emit(s.CREATE_CLUSTER)})}(m));const e=function(){const e=Object(r.cloneDeep)(p.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=d.shortenIri(e.endpoint),!Object(r.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=l.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=y.selectAll("#node-group").data(e,e=>e.address),n=o.createNodes(t,45);n.on("click",(e,t)=>{p.$emit(s.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),o=$(window).width();e.pageX<o/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",o-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),o.updateNodes(n),o.positionNodesOnClusterZone(n,b,A,L)}(e);!function(e,t){const n=v.selectAll(".link").data(e,e=>e.id);o.createLinks(n),o.updateLinks(n,t)}(Object(r.cloneDeep)(p.clusterModel.links)||[],e)}p.width=function(){return S},p.height=function(){return k};p.$on("$destroy",(function(){h.unbind("resize",M),h.unbind("mousedown",I),o.removeEventListeners(),E.forEach(e=>e())})),w=u.isAdmin(),h.bind("resize",M),h.bind("mousedown",I),E.push(_.$on("$translateChangeSuccess",(function(){D(i),T()}))),E.push(p.$on(s.MODEL_UPDATED,(function(){U()}))),D(i),function(e){const t=o.createClusterSvgElement(g[0]).attr("width",S).attr("height",k);C=o.createClusterZone(t,e),v=t.append("g").attr("id","links-group"),y=t.append("g").attr("id","nodes-group"),o.addArrowHead(t,o.ARROW_CONFIG.BIG),o.addArrowHead(t,o.ARROW_CONFIG.SMALL),f.updateClusterViewD3Container(t)}(!(!p.clusterModel.nodes||!p.clusterModel.nodes.length)),U()}}}])},79:function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_CLUSTER",(function(){return o})),n.d(t,"DELETE_CLUSTER",(function(){return r})),n.d(t,"CLICK_IN_VIEW",(function(){return s})),n.d(t,"NODE_SELECTED",(function(){return a})),n.d(t,"CREATE_CLUSTER",(function(){return i})),n.d(t,"MODEL_UPDATED",(function(){return c}));const o="updateCluster",r="deleteCluster",s="clickInView",a="nodeSelected",i="createCluster",c="modelUpdated"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[68,157,158],{73:function(t,e,n){"use strict";n.r(e),n.d(e,"NodeState",(function(){return r})),n.d(e,"RecoveryState",(function(){return o})),n.d(e,"LinkState",(function(){return a}));const r={LEADER:"LEADER",FOLLOWER:"FOLLOWER",CANDIDATE:"CANDIDATE",OUT_OF_SYNC:"OUT_OF_SYNC",NO_CONNECTION:"NO_CONNECTION",READ_ONLY:"READ_ONLY",RESTRICTED:"RESTRICTED",NO_CLUSTER:"NO_CLUSTER"},o={SEARCHING_FOR_NODE:"SEARCHING_FOR_NODE",WAITING_FOR_SNAPSHOT:"WAITING_FOR_SNAPSHOT",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT",APPLYING_SNAPSHOT:"APPLYING_SNAPSHOT",BUILDING_SNAPSHOT:"BUILDING_SNAPSHOT",SENDING_SNAPSHOT:"SENDING_SNAPSHOT",RECOVERY_OPERATION_FAILURE_WARNING:"RECOVERY_OPERATION_FAILURE_WARNING"},a={IN_SYNC:"IN_SYNC",OUT_OF_SYNC:"OUT_OF_SYNC",SYNCING:"SYNCING",NO_CONNECTION:"NO_CONNECTION",RECEIVING_SNAPSHOT:"RECEIVING_SNAPSHOT"}},85:function(t,e,n){"use strict";n.r(e),n.d(e,"createClusterSvgElement",(function(){return N})),n.d(e,"createClusterZone",(function(){return S})),n.d(e,"setCreateClusterZone",(function(){return f})),n.d(e,"updateClusterZoneLabels",(function(){return h})),n.d(e,"moveElement",(function(){return O})),n.d(e,"createNodes",(function(){return E})),n.d(e,"updateNodes",(function(){return p})),n.d(e,"createLinks",(function(){return A})),n.d(e,"updateLinks",(function(){return R})),n.d(e,"ARROW_CONFIG",(function(){return C})),n.d(e,"addArrowHead",(function(){return m})),n.d(e,"setArrowLink",(function(){return v})),n.d(e,"setLinkColor",(function(){return T})),n.d(e,"setLinkStyle",(function(){return L})),n.d(e,"positionNodesOnClusterZone",(function(){return x})),n.d(e,"createHexagon",(function(){return w})),n.d(e,"removeEventListeners",(function(){return b}));var r=n(73),o=n(65);const a="var(--primary-color)",s="var(--secondary-color)",i="var(--gray-color)",c={[r.LinkState.IN_SYNC]:s,[r.LinkState.SYNCING]:s,[r.LinkState.OUT_OF_SYNC]:i,[r.LinkState.RECEIVING_SNAPSHOT]:s},d={[r.LinkState.IN_SYNC]:"none",[r.LinkState.SYNCING]:"10 10",[r.LinkState.OUT_OF_SYNC]:"10 10",[r.LinkState.RECEIVING_SNAPSHOT]:"10 10"},u="FONT_AWESOME",l="ICOMOON";function N(t){return d3.select(t).append("svg").classed("cluster-diagram",!0)}function S(t){const e=t.append("g");return e.append("circle").classed("cluster-zone",!0).style("fill","transparent").style("stroke-width","4"),e}function f(t,e,n,r=!1){if(e.select(".cluster-zone").classed("no-cluster",!t).classed("has-access",r),t)e.selectAll("#no-cluster-zone").remove();else{const t=e.append("g").attr("id","no-cluster-zone");t.append("text").attr("id","no-cluster-label").text(n.no_cluster_configured).attr("y",-50).classed("h2",!0).style("text-anchor","middle"),r&&t.append("text").attr("id","create-cluster-label").classed("h3",!0).text(n.create_cluster_btn).style("text-anchor","middle"),t.append("text").attr("y",130).attr("class","icon-any repo").attr("fill",a).style("text-anchor","middle").classed("settings-icon",!0).text("")}}function h(t,e,n){t||(e.select("#no-cluster-zone #no-cluster-label").text(n.no_cluster_configured),e.select("#no-cluster-zone #create-cluster-label").text(n.create_cluster_btn))}function O(t,e,n){t.attr("transform",()=>`translate(${e}, ${n})`)}function E(t,e,n){const r=t.enter().append("g").attr("id","node-group").classed("legend",n),o=r.merge(t).attr("id","node-group").classed("legend",n);return w(r,e),t.exit().remove(),r.append("text").attr("class","icon-any node-icon"),n||function(t,e){const n=t.append("g");n.append("rect").attr("class","id-host-background").attr("rx",6),n.append("rect").attr("class","node-info-background").attr("rx",6),n.append("text").attr("y",e+25).attr("class","id id-host"),n.append("text").attr("y",e+55).attr("class","node-info-text")}(r,e),o}function p(t){!function(t){t.select(".node-icon").each((function(t){const e=(n=t,Object(o.isEmpty)(n.recoveryStatus)?function(t){const e=y[t.nodeState];return e||{icon:"",font:""}}(t):function(t){const e=t.recoveryStatus;if(!e||!e.state)return{icon:"",font:""};return _[e.state]||{icon:"",font:""}}(t));var n;d3.select(this).classed("icon-any",e.font===l).classed("fa-d3",e.font===u).text(e.icon)}))}(t),function(t){t.select(".node.member").classed("leader",t=>t.nodeState===r.NodeState.LEADER).classed("follower",t=>t.nodeState===r.NodeState.FOLLOWER).classed("candidate",t=>t.nodeState===r.NodeState.CANDIDATE).classed("other",t=>t.nodeState!==r.NodeState.LEADER&&t.nodeState!==r.NodeState.FOLLOWER&&t.nodeState!==r.NodeState.CANDIDATE)}(t),function(t){t.select(".id.id-host").each((function(t){t.labelNode=this})).text((function(t){return t.hostname})),t.select(".id-host-background").attr("width",(function(t){return d3.select(t.labelNode).node().getBBox().width+10})).attr("height",(function(t){return d3.select(t.labelNode).node().getBBox().height+10})).attr("x",(function(t){return d3.select(t.labelNode).node().getBBox().x-5})).attr("y",(function(t){return d3.select(t.labelNode).node().getBBox().y-5}))}(t),function(t){let e,n;t.select(".node-info-text").each((function(t){t.infoNode=this})).select((function(){return this.parentNode})).append("foreignObject").attr("width",(function(t){if(Object(o.isEmpty)(t.recoveryStatus))return 0;const r=g(I(t));return e=r.height,n=r.width,n})).attr("height",(function(t){return Object(o.isEmpty)(t.recoveryStatus)?0:e})).attr("x",(function(t){return-n/2})).attr("y",(function(t){return 78})).classed("hidden",(function(t){return Object(o.isEmpty)(t.recoveryStatus)})).style("font-size","12px").style("font-weight","400").style("text-align","center").style("padding","4px").style("background","#EEEEEE").style("border-radius","6px").attr("class","node-info-fo").append("xhtml:div").html((function(t){return I(t)})),t.select(".node-info-text").remove(),function(t){t.select(".node-info-fo").each((function(t){const e=d3.select(this);if(Object(o.isEmpty)(t.recoveryStatus))return void e.attr("width",0);const n=I(t),r=t.recoveryStatus.message&&t.recoveryStatus.message.length>40&&n!==t.recoveryStatus.message,a=r?n:t.recoveryStatus.message,s=g(n),i=g(t.recoveryStatus.message);e.on(".tooltip",null),r&&function(t,e,n,r,o){t.on("mouseover.tooltip",()=>{t.attr("width",o.width).attr("height",o.height).attr("x",-o.width/2).html(`<div>${e}</div>`)}),t.on("mouseout.tooltip",()=>{t.attr("width",n.width).attr("height",n.height).attr("x",-n.width/2).html(`<div>${r}</div>`)})}(e,t.recoveryStatus.message,s,a,i),e.attr("width",s.width).attr("height",s.height).attr("x",-s.width/2).html(`<div>${a}</div>`)}))}(t)}(t)}const _={[r.RecoveryState.SEARCHING_FOR_NODE]:{icon:"",font:u},[r.RecoveryState.WAITING_FOR_SNAPSHOT]:{icon:"",font:u},[r.RecoveryState.RECEIVING_SNAPSHOT]:{icon:"",font:u},[r.RecoveryState.APPLYING_SNAPSHOT]:{icon:"",font:u},[r.RecoveryState.BUILDING_SNAPSHOT]:{icon:"",font:u},[r.RecoveryState.SENDING_SNAPSHOT]:{icon:"",font:u},[r.RecoveryState.RECOVERY_OPERATION_FAILURE_WARNING]:{icon:"",font:l}},y={[r.NodeState.CANDIDATE]:{icon:"",font:l},[r.NodeState.NO_CONNECTION]:{icon:"",font:l},[r.NodeState.OUT_OF_SYNC]:{icon:"",font:l},[r.NodeState.READ_ONLY]:{icon:"",font:l},[r.NodeState.RESTRICTED]:{icon:"",font:l}};function I(t){return t.recoveryStatus.message&&t.recoveryStatus.message.length>40?t.recoveryStatus.message.substring(0,40)+"...":t.recoveryStatus.message||""}function g(t){const e=document.createElement("div");e.innerHTML=t,e.style.padding="4px",e.style.position="absolute",e.style.visibility="hidden",e.style.fontSize="12px",e.style.fontWeight="400",e.style.textAlign="center",e.style.height="auto",e.style.width="auto",e.style.whiteSpace="nowrap",document.body.appendChild(e);const n=e.getBoundingClientRect(),r=n.height,o=n.width;return document.body.removeChild(e),{height:r,width:o}}function A(t){t.enter().append("path").classed("link",!0),t.exit().remove()}function R(t,e){t.attr("class",t=>"link "+t.id.replaceAll(":","-")).attr("stroke",T).style("stroke-dasharray",L).style("marker-mid",t=>v(t,C.BIG)).attr("d",t=>function(t,e){const n=e.find(e=>e.address===t.source),r=e.find(e=>e.address===t.target),o=r.x-n.x,a=r.y-n.y,s=Math.sqrt(o*o+a*a),i=o/s,c=a/s,d=n.x+55*i,u=n.y+55*c,l=r.x-55*i,N=r.y-55*c;return"M"+d+","+u+"L"+(d+l)/2+","+(u+N)/2+"L"+l+","+N}(t,e))}const C={SMALL:{name:"small",size:3},BIG:{name:"big",size:5}};function m(t,e){t.append("svg:defs").append("svg:marker").attr("id","arrowhead_"+e.name).attr("viewBox",`0 0 ${2*e.size} ${2*e.size}`).attr("refX",e.size).attr("refY",e.size).attr("markerWidth",e.size).attr("markerHeight",e.size).attr("orient","auto-start-reverse").append("path").attr("d",`M 0 0 L ${2*e.size} ${e.size} L 0 ${2*e.size} z`).style("fill","var(--secondary-color)")}function v(t,e){if(t.status===r.LinkState.RECEIVING_SNAPSHOT)return`url(#arrowhead_${e.name})`}function T(t){return c[t.status]||"none"}function L(t){return d[t.status]||"none"}function x(t,e,n,r){t.attr("transform",(o,a)=>{const s=2*Math.PI*a/t.size(),i=e+Math.cos(s)*r,c=n+Math.sin(s)*r;return o.x=i,o.y=c,`translate(${i}, ${c})`})}function w(t,e){const n=Math.sqrt(3)/2,r=[[e+0,0],[e/2+0,e*n+0],[-e/2+0,e*n+0],[0-e,0],[-e/2+0,-e*n+0],[e/2+0,-e*n+0],[e+0,0],[e/2+0,e*n+0]];return t.selectAll("path.area").data([r]).enter().append("path").attr("class","node member").attr("stroke-width","10").attr("stroke-linejoin","round").attr("d",d3.line())}function b(){d3.select(document).selectAll(".node-info-fo").on(".tooltip",null)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[69,112],{261:function(e,o,r){"use strict";r.r(o);r(7),r(25),r(241),r(80),r(26),r(463);angular.module("graphdb.framework.impex.export",["ui.bootstrap","toastr","ngRoute","ngCookies","graphdb.framework.impex.export.controllers","graphdb.framework.core.directives.paginations","graphdb.framework.core.services.repositories","graphdb.framework.core.directives"]).config(["$uibTooltipProvider",function(e){e.setTriggers({showExportDDTooltip:"showExportDDTooltip"})}])},80:function(e,o){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></uib-pagination>'}}))}}]);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{448:function(e,t,n){"use strict";const o={};e.exports=o,o.isArray=Array.isArray,o.isBoolean=e=>"boolean"==typeof e||"[object Boolean]"===Object.prototype.toString.call(e),o.isDouble=e=>o.isNumber(e)&&(-1!==String(e).indexOf(".")||Math.abs(e)>=1e21),o.isEmptyObject=e=>o.isObject(e)&&0===Object.keys(e).length,o.isNumber=e=>"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e),o.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),o.isObject=e=>"[object Object]"===Object.prototype.toString.call(e),o.isString=e=>"string"==typeof e||"[object String]"===Object.prototype.toString.call(e),o.isUndefined=e=>void 0===e},450:function(e,t,n){"use strict";const o=n(457),r=n(448),i=n(508).IdentifierIssuer,a=n(451),s=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,l=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,c=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,d={accept:"application/ld+json, application/json"},u={};e.exports=u,u.IdentifierIssuer=i,u.REGEX_BCP47=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,u.REGEX_KEYWORD=/^@[a-zA-Z]+$/,u.clone=function(e){if(e&&"object"==typeof e){let t;if(r.isArray(e)){t=[];for(let n=0;n<e.length;++n)t[n]=u.clone(e[n])}else if(e instanceof Map){t=new Map;for(const[n,o]of e)t.set(n,u.clone(o))}else if(e instanceof Set){t=new Set;for(const n of e)t.add(u.clone(n))}else if(r.isObject(e)){t={};for(const n in e)t[n]=u.clone(e[n])}else t=e.toString();return t}return e},u.asArray=function(e){return Array.isArray(e)?e:[e]},u.buildHeaders=(e={})=>{if(Object.keys(e).some(e=>"accept"===e.toLowerCase()))throw new RangeError('Accept header may not be specified; only "'+d.accept+'" is supported.');return Object.assign({Accept:d.accept},e)},u.parseLinkHeader=e=>{const t={},n=e.match(s);for(let e=0;e<n.length;++e){let o=n[e].match(l);if(!o)continue;const r={target:o[1]},i=o[2];for(;o=c.exec(i);)r[o[1]]=void 0===o[2]?o[3]:o[2];const a=r.rel||"";Array.isArray(t[a])?t[a].push(r):t.hasOwnProperty(a)?t[a]=[t[a],r]:t[a]=r}return t},u.validateTypeValue=(e,t)=>{if(!(r.isString(e)||r.isArray(e)&&e.every(e=>r.isString(e)))){if(t&&r.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&u.asArray(e["@default"]).every(e=>r.isString(e)))return}throw new a('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:e})}},u.hasProperty=(e,t)=>{if(e.hasOwnProperty(t)){const n=e[t];return!r.isArray(n)||n.length>0}return!1},u.hasValue=(e,t,n)=>{if(u.hasProperty(e,t)){let i=e[t];const a=o.isList(i);if(r.isArray(i)||a){a&&(i=i["@list"]);for(let e=0;e<i.length;++e)if(u.compareValues(n,i[e]))return!0}else if(!r.isArray(n))return u.compareValues(n,i)}return!1},u.addValue=(e,t,n,o)=>{if("propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1),"valueIsArray"in o||(o.valueIsArray=!1),"allowDuplicate"in o||(o.allowDuplicate=!0),"prependValue"in o||(o.prependValue=!1),o.valueIsArray)e[t]=n;else if(r.isArray(n)){0===n.length&&o.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),o.prependValue&&(n=n.concat(e[t]),e[t]=[]);for(let r=0;r<n.length;++r)u.addValue(e,t,n[r],o)}else if(e.hasOwnProperty(t)){const i=!o.allowDuplicate&&u.hasValue(e,t,n);r.isArray(e[t])||i&&!o.propertyIsArray||(e[t]=[e[t]]),i||(o.prependValue?e[t].unshift(n):e[t].push(n))}else e[t]=o.propertyIsArray?[n]:n},u.getValues=(e,t)=>[].concat(e[t]||[]),u.removeProperty=(e,t)=>{delete e[t]},u.removeValue=(e,t,n,o)=>{"propertyIsArray"in(o=o||{})||(o.propertyIsArray=!1);const r=u.getValues(e,t).filter(e=>!u.compareValues(e,n));0===r.length?u.removeProperty(e,t):1!==r.length||o.propertyIsArray?e[t]=r:e[t]=r[0]},u.relabelBlankNodes=(e,t)=>function e(t,n){if(r.isArray(n))for(let o=0;o<n.length;++o)n[o]=e(t,n[o]);else if(o.isList(n))n["@list"]=e(t,n["@list"]);else if(r.isObject(n)){o.isBlankNode(n)&&(n["@id"]=t.getId(n["@id"]));const r=Object.keys(n).sort();for(let o=0;o<r.length;++o){const i=r[o];"@id"!==i&&(n[i]=e(t,n[i]))}}return n}((t=t||{}).issuer||new i("_:b"),e),u.compareValues=(e,t)=>e===t||(!(!o.isValue(e)||!o.isValue(t)||e["@value"]!==t["@value"]||e["@type"]!==t["@type"]||e["@language"]!==t["@language"]||e["@index"]!==t["@index"])||!!(r.isObject(e)&&"@id"in e&&r.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"]),u.compareShortestLeast=(e,t)=>e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1},451:function(e,t,n){"use strict";e.exports=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",n={}){super(e),this.name=t,this.message=e,this.details=n}}},457:function(e,t,n){"use strict";const o=n(448),r={};e.exports=r,r.isSubject=e=>{if(o.isObject(e)&&!("@value"in e||"@set"in e||"@list"in e)){return Object.keys(e).length>1||!("@id"in e)}return!1},r.isSubjectReference=e=>o.isObject(e)&&1===Object.keys(e).length&&"@id"in e,r.isValue=e=>o.isObject(e)&&"@value"in e,r.isList=e=>o.isObject(e)&&"@list"in e,r.isGraph=e=>o.isObject(e)&&"@graph"in e&&1===Object.keys(e).filter(e=>"@id"!==e&&"@index"!==e).length,r.isSimpleGraph=e=>r.isGraph(e)&&!("@id"in e),r.isBlankNode=e=>{if(o.isObject(e)){if("@id"in e){const t=e["@id"];return!o.isString(t)||0===t.indexOf("_:")}return 0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e)}return!1}},459:function(e,t,n){"use strict";const o=n(448),r={};e.exports=r,r.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},r.parse=(e,t)=>{const n={},o=r.parsers[t||"full"],i=o.regex.exec(e);let a=o.keys.length;for(;a--;)n[o.keys[a]]=void 0===i[a]?null:i[a];return("https"===n.scheme&&"443"===n.port||"http"===n.scheme&&"80"===n.port)&&(n.href=n.href.replace(":"+n.port,""),n.authority=n.authority.replace(":"+n.port,""),n.port=null),n.normalizedPath=r.removeDotSegments(n.path),n},r.prependBase=(e,t)=>{if(null===e)return t;if(r.isAbsolute(t))return t;e&&!o.isString(e)||(e=r.parse(e||""));const n=r.parse(t),i={protocol:e.protocol||""};if(null!==n.authority)i.authority=n.authority,i.path=n.path,i.query=n.query;else if(i.authority=e.authority,""===n.path)i.path=e.path,null!==n.query?i.query=n.query:i.query=e.query;else{if(0===n.path.indexOf("/"))i.path=n.path;else{let t=e.path;t=t.substr(0,t.lastIndexOf("/")+1),(t.length>0||e.authority)&&"/"!==t.substr(-1)&&(t+="/"),t+=n.path,i.path=t}i.query=n.query}""!==n.path&&(i.path=r.removeDotSegments(i.path));let a=i.protocol;return null!==i.authority&&(a+="//"+i.authority),a+=i.path,null!==i.query&&(a+="?"+i.query),null!==n.fragment&&(a+="#"+n.fragment),""===a&&(a="./"),a},r.removeBase=(e,t)=>{if(null===e)return t;e&&!o.isString(e)||(e=r.parse(e||""));let n="";if(""!==e.href?n+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(n+="//"),0!==t.indexOf(n))return t;const i=r.parse(t.substr(n.length)),a=e.normalizedPath.split("/"),s=i.normalizedPath.split("/"),l=i.fragment||i.query?0:1;for(;a.length>0&&s.length>l&&a[0]===s[0];)a.shift(),s.shift();let c="";if(a.length>0){a.pop();for(let e=0;e<a.length;++e)c+="../"}return c+=s.join("/"),null!==i.query&&(c+="?"+i.query),null!==i.fragment&&(c+="#"+i.fragment),""===c&&(c="./"),c},r.removeDotSegments=e=>{if(0===e.length)return"";const t=e.split("/"),n=[];for(;t.length>0;){const e=t.shift(),o=0===t.length;"."!==e?".."!==e?n.push(e):(n.pop(),o&&n.push("")):o&&n.push("")}return"/"===e[0]&&n.length>0&&""!==n[0]&&n.unshift(""),1===n.length&&""===n[0]?"/":n.join("/")};const i=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;r.isAbsolute=e=>o.isString(e)&&i.test(e),r.isRelative=e=>o.isString(e)},466:function(e,t,n){"use strict";const o=n(450),r=n(451),{isArray:i,isObject:a,isString:s,isUndefined:l}=n(448),{isAbsolute:c,isRelative:d,prependBase:u}=n(459),{handleEvent:p}=n(477),{REGEX_BCP47:f,REGEX_KEYWORD:h,asArray:v,compareShortestLeast:g}=n(450),y=new Map,m={};function x(e,t,n,o,r,i){if(null===t||!s(t)||m.isKeyword(t))return t;if(t.match(h))return null;if(o&&o.hasOwnProperty(t)&&!0!==r.get(t)&&m.createTermDefinition({activeCtx:e,localCtx:o,term:t,defined:r,options:i}),(n=n||{}).vocab){const n=e.mappings.get(t);if(null===n)return null;if(a(n)&&"@id"in n)return n["@id"]}const l=t.indexOf(":");if(l>0){const n=t.substr(0,l),a=t.substr(l+1);if("_"===n||0===a.indexOf("//"))return t;o&&o.hasOwnProperty(n)&&m.createTermDefinition({activeCtx:e,localCtx:o,term:n,defined:r,options:i});const s=e.mappings.get(n);if(s&&s._prefix)return s["@id"]+a;if(c(t))return t}if(n.vocab&&"@vocab"in e){t=e["@vocab"]+t}else if(n.base){let n,o;"@base"in e?e["@base"]?(o=u(i.base,e["@base"]),n=u(o,t)):(o=e["@base"],n=t):(o=i.base,n=u(i.base,t)),t=n}return t}e.exports=m,m.process=async({activeCtx:e,localCtx:t,options:n,propagate:o=!0,overrideProtected:l=!1,cycles:h=new Set})=>{a(t)&&"@context"in t&&i(t["@context"])&&(t=t["@context"]);if(0===v(t).length)return e;const g=[],y=[({event:e,next:t})=>{g.push(e),t()}];n.eventHandler&&y.push(n.eventHandler);const b=n;n={...n,eventHandler:y};const w=await n.contextResolver.resolve({activeCtx:e,context:t,documentLoader:n.documentLoader,base:n.base});a(w[0].document)&&"boolean"==typeof w[0].document["@propagate"]&&(o=w[0].document["@propagate"]);let j=e;o||j.previousContext||(j=j.clone(),j.previousContext=e);for(const o of w){let{document:i}=o;if(e=j,null===i){if(!l&&0!==Object.keys(e.protected).length)throw new r("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});j=e=m.getInitialContext(n).clone();continue}const v=o.getProcessed(e);if(v){if(b.eventHandler)for(const e of v.events)p({event:e,options:b});j=e=v.context;continue}if(a(i)&&"@context"in i&&(i=i["@context"]),!a(i))throw new r("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:i});j=j.clone();const y=new Map;if("@version"in i){if(1.1!==i["@version"])throw new r("Unsupported JSON-LD version: "+i["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:i});if(e.processingMode&&"json-ld-1.0"===e.processingMode)throw new r("@version: "+i["@version"]+" not compatible with "+e.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:i});j.processingMode="json-ld-1.1",j["@version"]=i["@version"],y.set("@version",!0)}if(j.processingMode=j.processingMode||e.processingMode,"@base"in i){let e=i["@base"];if(null===e||c(e));else{if(!d(e))throw new r('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:i});e=u(j["@base"],e)}j["@base"]=e,y.set("@base",!0)}if("@vocab"in i){const e=i["@vocab"];if(null===e)delete j["@vocab"];else{if(!s(e))throw new r('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:i});if(!c(e)&&m.processingMode(j,1))throw new r('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:i});{const t=x(j,e,{vocab:!0,base:!0},void 0,void 0,n);c(t)||n.eventHandler&&p({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:t}},options:n}),j["@vocab"]=t}}y.set("@vocab",!0)}if("@language"in i){const e=i["@language"];if(null===e)delete j["@language"];else{if(!s(e))throw new r('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:i});e.match(f)||n.eventHandler&&p({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:n}),j["@language"]=e.toLowerCase()}y.set("@language",!0)}if("@direction"in i){const t=i["@direction"];if("json-ld-1.0"===e.processingMode)throw new r("Invalid JSON-LD syntax; @direction not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:i});if(null===t)delete j["@direction"];else{if("ltr"!==t&&"rtl"!==t)throw new r('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:i});j["@direction"]=t}y.set("@direction",!0)}if("@propagate"in i){const n=i["@propagate"];if("json-ld-1.0"===e.processingMode)throw new r("Invalid JSON-LD syntax; @propagate not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:i});if("boolean"!=typeof n)throw new r("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:t});y.set("@propagate",!0)}if("@import"in i){const o=i["@import"];if("json-ld-1.0"===e.processingMode)throw new r("Invalid JSON-LD syntax; @import not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:i});if(!s(o))throw new r("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:t});const a=await n.contextResolver.resolve({activeCtx:e,context:o,documentLoader:n.documentLoader,base:n.base});if(1!==a.length)throw new r("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:t});const l=a[0].getProcessed(e);if(l)i=l;else{const n=a[0].document;if("@import"in n)throw new r("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:t});for(const e in n)i.hasOwnProperty(e)||(i[e]=n[e]);a[0].setProcessed(e,i)}y.set("@import",!0)}y.set("@protected",i["@protected"]||!1);for(const e in i)if(m.createTermDefinition({activeCtx:j,localCtx:i,term:e,defined:y,options:n,overrideProtected:l}),a(i[e])&&"@context"in i[e]){const t=i[e]["@context"];let o=!0;if(s(t)){const e=u(n.base,t);h.has(e)?o=!1:h.add(e)}if(o)try{await m.process({activeCtx:j.clone(),localCtx:i[e]["@context"],overrideProtected:!0,options:n,cycles:h})}catch(t){throw new r("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:i[e]["@context"],term:e})}}o.setProcessed(e,{context:j,events:g})}return j},m.createTermDefinition=({activeCtx:e,localCtx:t,term:n,defined:o,options:l,overrideProtected:d=!1})=>{if(o.has(n)){if(o.get(n))return;throw new r("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:t,term:n})}let u;if(o.set(n,!1),t.hasOwnProperty(n)&&(u=t[n]),"@type"===n&&a(u)&&"@set"===(u["@container"]||"@set")&&m.processingMode(e,1.1)){const e=["@container","@id","@protected"],o=Object.keys(u);if(0===o.length||o.some(t=>!e.includes(t)))throw new r("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n})}else{if(m.isKeyword(n))throw new r("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n});if(n.match(h))return void(l.eventHandler&&p({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:n}},options:l}));if(""===n)throw new r("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:t})}const f=e.mappings.get(n);e.mappings.has(n)&&e.mappings.delete(n);let v=!1;if((s(u)||null===u)&&(v=!0,u={"@id":u}),!a(u))throw new r("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:t});const g={};e.mappings.set(n,g),g.reverse=!1;const y=["@container","@id","@language","@reverse","@type"];m.processingMode(e,1.1)&&y.push("@context","@direction","@index","@nest","@prefix","@protected");for(const e in u)if(!y.includes(e))throw new r("Invalid JSON-LD syntax; a term definition must not contain "+e,"jsonld.SyntaxError",{code:"invalid term definition",context:t});const b=n.indexOf(":");if(g._termHasColon=b>0,"@reverse"in u){if("@id"in u)throw new r("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});if("@nest"in u)throw new r("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});const i=u["@reverse"];if(!s(i))throw new r("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(i.match(h))return l.eventHandler&&p({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:i}},options:l}),void(f?e.mappings.set(n,f):e.mappings.delete(n));const a=x(e,i,{vocab:!0,base:!1},t,o,l);if(!c(a))throw new r("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});g["@id"]=a,g.reverse=!0}else if("@id"in u){let i=u["@id"];if(i&&!s(i))throw new r("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(null===i)g["@id"]=null;else{if(!m.isKeyword(i)&&i.match(h))return l.eventHandler&&p({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:i}},options:l}),void(f?e.mappings.set(n,f):e.mappings.delete(n));if(i!==n){if(i=x(e,i,{vocab:!0,base:!1},t,o,l),!c(i)&&!m.isKeyword(i))throw new r("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(n.match(/(?::[^:])|\//)){if(x(e,n,{vocab:!0,base:!1},t,new Map(o).set(n,!0),l)!==i)throw new r("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t})}g["@id"]=i,g._prefix=v&&!g._termHasColon&&null!==i.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in g))if(g._termHasColon){const r=n.substr(0,b);if(t.hasOwnProperty(r)&&m.createTermDefinition({activeCtx:e,localCtx:t,term:r,defined:o,options:l}),e.mappings.has(r)){const t=n.substr(b+1);g["@id"]=e.mappings.get(r)["@id"]+t}else g["@id"]=n}else if("@type"===n)g["@id"]=n;else{if(!("@vocab"in e))throw new r("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t,term:n});g["@id"]=e["@vocab"]+n}if((!0===u["@protected"]||!0===o.get("@protected")&&!1!==u["@protected"])&&(e.protected[n]=!0,g.protected=!0),o.set(n,!0),"@type"in u){let n=u["@type"];if(!s(n))throw new r("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if("@json"===n||"@none"===n){if(m.processingMode(e,1))throw new r(`Invalid JSON-LD syntax; an @context @type value must not be "${n}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else if("@id"!==n&&"@vocab"!==n){if(n=x(e,n,{vocab:!0,base:!1},t,o,l),!c(n))throw new r("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(0===n.indexOf("_:"))throw new r("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}g["@type"]=n}if("@container"in u){const n=s(u["@container"])?[u["@container"]]:u["@container"]||[],o=["@list","@set","@index","@language"];let a=!0;const l=n.includes("@set");if(m.processingMode(e,1.1)){if(o.push("@graph","@id","@type"),n.includes("@list")){if(1!==n.length)throw new r("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else if(n.includes("@graph")){if(n.some(e=>"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e))throw new r("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else a&=n.length<=(l?2:1);if(n.includes("@type")&&(g["@type"]=g["@type"]||"@id",!["@id","@vocab"].includes(g["@type"])))throw new r("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else a&=!i(u["@container"]),a&=n.length<=1;if(a&=n.every(e=>o.includes(e)),a&=!(l&&n.includes("@list")),!a)throw new r("Invalid JSON-LD syntax; @context @container value must be one of the following: "+o.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:t});if(g.reverse&&!n.every(e=>["@index","@set"].includes(e)))throw new r("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});g["@container"]=n}if("@index"in u){if(!("@container"in u)||!g["@container"].includes("@index"))throw new r(`Invalid JSON-LD syntax; @index without @index in @container: "${u["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});if(!s(u["@index"])||0===u["@index"].indexOf("@"))throw new r(`Invalid JSON-LD syntax; @index must expand to an IRI: "${u["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});g["@index"]=u["@index"]}if("@context"in u&&(g["@context"]=u["@context"]),"@language"in u&&!("@type"in u)){let e=u["@language"];if(null!==e&&!s(e))throw new r("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:t});null!==e&&(e=e.toLowerCase()),g["@language"]=e}if("@prefix"in u){if(n.match(/:|\//))throw new r("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:t});if(m.isKeyword(g["@id"]))throw new r("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:t});if("boolean"!=typeof u["@prefix"])throw new r("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:t});g._prefix=!0===u["@prefix"]}if("@direction"in u){const e=u["@direction"];if(null!==e&&"ltr"!==e&&"rtl"!==e)throw new r('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:t});g["@direction"]=e}if("@nest"in u){const e=u["@nest"];if(!s(e)||"@nest"!==e&&0===e.indexOf("@"))throw new r("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:t});g["@nest"]=e}
|
|
2
|
+
// disallow aliasing @context and @preserve
|
|
3
|
+
const w=g["@id"];if("@context"===w||"@preserve"===w)throw new r("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:t});if(f&&f.protected&&!d&&(e.protected[n]=!0,g.protected=!0,!function e(t,n){if(!t||"object"!=typeof t||!n||"object"!=typeof n)return t===n;const o=Array.isArray(t);if(o!==Array.isArray(n))return!1;if(o){if(t.length!==n.length)return!1;for(let o=0;o<t.length;++o)if(!e(t[o],n[o]))return!1;return!0}const r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(const o in t){let r=t[o],i=n[o];if("@container"===o&&Array.isArray(r)&&Array.isArray(i)&&(r=r.slice().sort(),i=i.slice().sort()),!e(r,i))return!1}return!0}(f,g)))throw new r("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:t,term:n})},m.expandIri=(e,t,n,o)=>x(e,t,n,void 0,void 0,o),m.getInitialContext=e=>{const t=JSON.stringify({processingMode:e.processingMode}),n=y.get(t);if(n)return n;const r={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:function(){const e=this;if(e.inverse)return e.inverse;const t=e.inverse={},n=e.fastCurieMap={},o={},r=(e["@language"]||"@none").toLowerCase(),s=e["@direction"],l=e.mappings,c=[...l.keys()].sort(g);for(const e of c){const i=l.get(e);if(null===i)continue;let c=i["@container"]||"@none";if(c=[].concat(c).sort().join(""),null===i["@id"])continue;const d=v(i["@id"]);for(const l of d){let d=t[l];const u=m.isKeyword(l);if(d)u||i._termHasColon||o[l].push(e);else if(t[l]=d={},!u&&!i._termHasColon){o[l]=[e];const t={iri:l,terms:o[l]};l[0]in n?n[l[0]].push(t):n[l[0]]=[t]}if(d[c]||(d[c]={"@language":{},"@type":{},"@any":{}}),d=d[c],a(e,d["@any"],"@none"),i.reverse)a(e,d["@type"],"@reverse");else if("@none"===i["@type"])a(e,d["@any"],"@none"),a(e,d["@language"],"@none"),a(e,d["@type"],"@none");else if("@type"in i)a(e,d["@type"],i["@type"]);else if("@language"in i&&"@direction"in i){const t=i["@language"],n=i["@direction"];a(e,d["@language"],t&&n?`${t}_${n}`.toLowerCase():t?t.toLowerCase():n?"_"+n:"@null")}else"@language"in i?a(e,d["@language"],(i["@language"]||"@null").toLowerCase()):"@direction"in i?i["@direction"]?a(e,d["@language"],"_"+i["@direction"]):a(e,d["@language"],"@none"):s?(a(e,d["@language"],"_"+s),a(e,d["@language"],"@none"),a(e,d["@type"],"@none")):(a(e,d["@language"],r),a(e,d["@language"],"@none"),a(e,d["@type"],"@none"))}}for(const e in n)i(n,e,1);return t},clone:function(){const e={};e.mappings=o.clone(this.mappings),e.clone=this.clone,e.inverse=null,e.getInverse=this.getInverse,e.protected=o.clone(this.protected),this.previousContext&&(e.previousContext=this.previousContext.clone());e.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(e["@base"]=this["@base"]);"@language"in this&&(e["@language"]=this["@language"]);"@vocab"in this&&(e["@vocab"]=this["@vocab"]);return e},revertToPreviousContext:function(){if(!this.previousContext)return this;return this.previousContext.clone()},protected:{}};return 1e4===y.size&&y.clear(),y.set(t,r),r;function i(e,t,n){const o=e[t],r=e[t]={};let a,s;for(const e of o)a=e.iri,s=n>=a.length?"":a[n],s in r?r[s].push(e):r[s]=[e];for(const e in r)""!==e&&i(r,e,n+1)}function a(e,t,n){t.hasOwnProperty(n)||(t[n]=e)}},m.getContextValue=(e,t,n)=>{if(null===t){if("@context"===n)return;return null}if(e.mappings.has(t)){const o=e.mappings.get(t);if(l(n))return o;if(o.hasOwnProperty(n))return o[n]}return"@language"===n&&n in e||"@direction"===n&&n in e?e[n]:"@context"!==n?null:void 0},m.processingMode=(e,t)=>t.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+t.toString():"json-ld-1.0"===e.processingMode,m.isKeyword=e=>{if(!s(e)||"@"!==e[0])return!1;switch(e){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},477:function(e,t,n){"use strict";const o=n(451),{isArray:r}=n(448),{asArray:i}=n(450),a={};e.exports=a,a.defaultEventHandler=null,a.setupEventHandler=({options:e={}})=>{const t=[].concat(e.safe?a.safeEventHandler:[],e.eventHandler?i(e.eventHandler):[],a.defaultEventHandler?a.defaultEventHandler:[]);return 0===t.length?null:t},a.handleEvent=({event:e,options:t})=>{!function e({event:t,handlers:n}){let i=!0;for(let a=0;i&&a<n.length;++a){i=!1;const s=n[a];if(r(s))i=e({event:t,handlers:s});else if("function"==typeof s)s({event:t,next:()=>{i=!0}});else{if("object"!=typeof s)throw new o("Invalid event handler.","jsonld.InvalidEventHandler",{event:t});t.code in s?s[t.code]({event:t,next:()=>{i=!0}}):i=!0}}return i}({event:e,handlers:t.eventHandler})};const s=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);a.safeEventHandler=function({event:e,next:t}){if("warning"===e.level&&s.has(e.code))throw new o("Safe mode validation error.","jsonld.ValidationError",{event:e});t()},a.logEventHandler=function({event:e,next:t}){console.log("EVENT: "+e.message,{event:e}),t()},a.logWarningEventHandler=function({event:e,next:t}){"warning"===e.level&&console.warn("WARNING: "+e.message,{event:e}),t()},a.unhandledEventHandler=function({event:e}){throw new o("No handler for event.","jsonld.UnhandledEvent",{event:e})},a.setDefaultEventHandler=function({eventHandler:e}={}){a.defaultEventHandler=e?i(e):null}},492:function(e,t,n){"use strict";
|
|
4
|
+
/*!
|
|
5
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
6
|
+
*/n(545);const o=self.crypto||self.msCrypto;e.exports=class{constructor(e){if(!o||!o.subtle)throw new Error("crypto.subtle not found.");if("sha256"===e)this.algorithm={name:"SHA-256"};else{if("sha1"!==e)throw new Error(`Unsupported algorithm "${e}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(e){this._content+=e}async digest(){const e=(new TextEncoder).encode(this._content),t=new Uint8Array(await o.subtle.digest(this.algorithm,e));let n="";for(let e=0;e<t.length;++e)n+=t[e].toString(16).padStart(2,"0");return n}}},493:function(e,t,n){"use strict";const{isKeyword:o}=n(466),r=n(457),i=n(448),a=n(450),s=n(451),l={};e.exports=l,l.createMergedNodeMap=(e,t)=>{const n=(t=t||{}).issuer||new a.IdentifierIssuer("_:b"),o={"@default":{}};return l.createNodeMap(e,o,"@default",n),l.mergeNodeMaps(o)},l.createNodeMap=(e,t,n,c,d,u)=>{if(i.isArray(e)){for(const o of e)l.createNodeMap(o,t,n,c,void 0,u);return}if(!i.isObject(e))return void(u&&u.push(e));if(r.isValue(e)){if("@type"in e){let t=e["@type"];0===t.indexOf("_:")&&(e["@type"]=t=c.getId(t))}return void(u&&u.push(e))}if(u&&r.isList(e)){const o=[];return l.createNodeMap(e["@list"],t,n,c,d,o),void u.push({"@list":o})}if("@type"in e){const t=e["@type"];for(const e of t)0===e.indexOf("_:")&&c.getId(e)}i.isUndefined(d)&&(d=r.isBlankNode(e)?c.getId(e["@id"]):e["@id"]),u&&u.push({"@id":d});const p=t[n],f=p[d]=p[d]||{};f["@id"]=d;const h=Object.keys(e).sort();for(let i of h){if("@id"===i)continue;if("@reverse"===i){const o={"@id":d},i=e["@reverse"];for(const e in i){const s=i[e];for(const i of s){let s=i["@id"];r.isBlankNode(i)&&(s=c.getId(s)),l.createNodeMap(i,t,n,c,s),a.addValue(p[s],e,o,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if("@graph"===i){d in t||(t[d]={}),l.createNodeMap(e[i],t,d,c);continue}if("@included"===i){l.createNodeMap(e[i],t,n,c);continue}if("@type"!==i&&o(i)){if("@index"===i&&i in f&&(e[i]!==f[i]||e[i]["@id"]!==f[i]["@id"]))throw new s("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:f});f[i]=e[i];continue}const u=e[i];if(0===i.indexOf("_:")&&(i=c.getId(i)),0!==u.length)for(let e of u)if("@type"===i&&(e=0===e.indexOf("_:")?c.getId(e):e),r.isSubject(e)||r.isSubjectReference(e)){if("@id"in e&&!e["@id"])continue;const o=r.isBlankNode(e)?c.getId(e["@id"]):e["@id"];a.addValue(f,i,{"@id":o},{propertyIsArray:!0,allowDuplicate:!1}),l.createNodeMap(e,t,n,c,o)}else if(r.isValue(e))a.addValue(f,i,e,{propertyIsArray:!0,allowDuplicate:!1});else if(r.isList(e)){const o=[];l.createNodeMap(e["@list"],t,n,c,d,o),e={"@list":o},a.addValue(f,i,e,{propertyIsArray:!0,allowDuplicate:!1})}else l.createNodeMap(e,t,n,c,d),a.addValue(f,i,e,{propertyIsArray:!0,allowDuplicate:!1});else a.addValue(f,i,[],{propertyIsArray:!0})}},l.mergeNodeMapGraphs=e=>{const t={};for(const n of Object.keys(e).sort())for(const r of Object.keys(e[n]).sort()){const i=e[n][r];r in t||(t[r]={"@id":r});const s=t[r];for(const e of Object.keys(i).sort())if(o(e)&&"@type"!==e)s[e]=a.clone(i[e]);else for(const t of i[e])a.addValue(s,e,a.clone(t),{propertyIsArray:!0,allowDuplicate:!1})}return t},l.mergeNodeMaps=e=>{const t=e["@default"],n=Object.keys(e).sort();for(const o of n){if("@default"===o)continue;const n=e[o];let i=t[o];i?"@graph"in i||(i["@graph"]=[]):t[o]=i={"@id":o,"@graph":[]};const a=i["@graph"];for(const e of Object.keys(n).sort()){const t=n[e];r.isSubjectReference(t)||a.push(t)}}return t}},508:function(e,t,n){e.exports=n(678)},509:function(e,t,n){"use strict";e.exports=class e{constructor(e,t=new Map,n=0){this.prefix=e,this._existing=t,this.counter=n}clone(){const{prefix:t,_existing:n,counter:o}=this;return new e(t,new Map(n),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const n=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,n),n}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}}},510:function(e,t,n){"use strict";
|
|
7
|
+
/*!
|
|
8
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
9
|
+
*/const o="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",r="http://www.w3.org/2001/XMLSchema#string",i={};function a(e,t){return e.subject.termType===t.subject.termType&&e.object.termType===t.object.termType&&(e.subject.value===t.subject.value&&e.predicate.value===t.predicate.value&&e.object.value===t.object.value&&("Literal"!==e.object.termType||e.object.datatype.termType===t.object.datatype.termType&&e.object.language===t.object.language&&e.object.datatype.value===t.object.datatype.value))}i.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,i.empty=new RegExp("^[ \\t]*$"),i.quad=new RegExp('^[ \\t]*(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?)|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9])(?:(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀.])*(?:[A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�_0-9-·̀-ͯ‿-⁀]))?))[ \\t]*\\.))[ \\t]*$'),e.exports=class e{static parse(e){const t=[],n={},s=e.split(i.eoln);let c=0;for(const e of s){if(c++,i.empty.test(e))continue;const s=e.match(i.quad);if(null===s)throw new Error("N-Quads parse error on line "+c+".");const d={subject:null,predicate:null,object:null,graph:null};if(void 0!==s[1]?d.subject={termType:"NamedNode",value:s[1]}:d.subject={termType:"BlankNode",value:s[2]},d.predicate={termType:"NamedNode",value:s[3]},void 0!==s[4]?d.object={termType:"NamedNode",value:s[4]}:void 0!==s[5]?d.object={termType:"BlankNode",value:s[5]}:(d.object={termType:"Literal",value:void 0,datatype:{termType:"NamedNode"}},void 0!==s[7]?d.object.datatype.value=s[7]:void 0!==s[8]?(d.object.datatype.value=o,d.object.language=s[8]):d.object.datatype.value=r,d.object.value=s[6].replace(l,(function(e,t,n,o){if(t)switch(t){case"t":return"\t";case"b":return"\b";case"n":return"\n";case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(n)return String.fromCharCode(parseInt(n,16));if(o)throw new Error("Unsupported U escape")}))),void 0!==s[9]?d.graph={termType:"NamedNode",value:s[9]}:void 0!==s[10]?d.graph={termType:"BlankNode",value:s[10]}:d.graph={termType:"DefaultGraph",value:""},d.graph.value in n){let e=!0;const o=n[d.graph.value];for(const t of o)if(a(t,d)){e=!1;break}e&&(o.push(d),t.push(d))}else n[d.graph.value]=[d],t.push(d)}return t}static serialize(t){Array.isArray(t)||(t=e.legacyDatasetToQuads(t));const n=[];for(const o of t)n.push(e.serializeQuad(o));return n.sort().join("")}static serializeQuadComponents(e,t,n,i){let a="";return"NamedNode"===e.termType?a+=`<${e.value}>`:a+=""+e.value,a+=` <${t.value}> `,"NamedNode"===n.termType?a+=`<${n.value}>`:"BlankNode"===n.termType?a+=n.value:(a+=`"${function(e){return e.replace(s,(function(e){switch(e){case'"':return'\\"';case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r"}}))}(n.value)}"`,n.datatype.value===o?n.language&&(a+="@"+n.language):n.datatype.value!==r&&(a+=`^^<${n.datatype.value}>`)),"NamedNode"===i.termType?a+=` <${i.value}>`:"BlankNode"===i.termType&&(a+=" "+i.value),a+=" .\n",a}static serializeQuad(t){return e.serializeQuadComponents(t.subject,t.predicate,t.object,t.graph)}static legacyDatasetToQuads(e){const t=[],n={"blank node":"BlankNode",IRI:"NamedNode",literal:"Literal"};for(const i in e){e[i].forEach(e=>{const a={};for(const t in e){const i=e[t],s={termType:n[i.type],value:i.value};"Literal"===s.termType&&(s.datatype={termType:"NamedNode"},"datatype"in i&&(s.datatype.value=i.datatype),"language"in i?("datatype"in i||(s.datatype.value=o),s.language=i.language):"datatype"in i||(s.datatype.value=r)),a[t]=s}a.graph="@default"===i?{termType:"DefaultGraph",value:""}:{termType:i.startsWith("_:")?"BlankNode":"NamedNode",value:i},t.push(a)})}return t}};const s=/["\\\n\r]/g;const l=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},511:function(e,t,n){"use strict";const o="http://www.w3.org/1999/02/22-rdf-syntax-ns#",r="http://www.w3.org/2001/XMLSchema#";e.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:o,RDF_LIST:o+"List",RDF_FIRST:o+"first",RDF_REST:o+"rest",RDF_NIL:o+"nil",RDF_TYPE:o+"type",RDF_PLAIN_LITERAL:o+"PlainLiteral",RDF_XML_LITERAL:o+"XMLLiteral",RDF_JSON_LITERAL:o+"JSON",RDF_OBJECT:o+"object",RDF_LANGSTRING:o+"langString",XSD:r,XSD_BOOLEAN:r+"boolean",XSD_DOUBLE:r+"double",XSD_INTEGER:r+"integer",XSD_STRING:r+"string"}},543:function(e,t,n){
|
|
10
|
+
/**
|
|
11
|
+
* A JavaScript implementation of the JSON-LD API.
|
|
12
|
+
*
|
|
13
|
+
* @author Dave Longley
|
|
14
|
+
*
|
|
15
|
+
* @license BSD 3-Clause License
|
|
16
|
+
* Copyright (c) 2011-2022 Digital Bazaar, Inc.
|
|
17
|
+
* All rights reserved.
|
|
18
|
+
*
|
|
19
|
+
* Redistribution and use in source and binary forms, with or without
|
|
20
|
+
* modification, are permitted provided that the following conditions are met:
|
|
21
|
+
*
|
|
22
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
23
|
+
* this list of conditions and the following disclaimer.
|
|
24
|
+
*
|
|
25
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
26
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
27
|
+
* documentation and/or other materials provided with the distribution.
|
|
28
|
+
*
|
|
29
|
+
* Neither the name of the Digital Bazaar, Inc. nor the names of its
|
|
30
|
+
* contributors may be used to endorse or promote products derived from
|
|
31
|
+
* this software without specific prior written permission.
|
|
32
|
+
*
|
|
33
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
34
|
+
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
35
|
+
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
36
|
+
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
37
|
+
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
38
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
39
|
+
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
40
|
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
41
|
+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
42
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
43
|
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
44
|
+
*/
|
|
45
|
+
const o=n(508),r=n(683),i=n(450),a=n(685),s=i.IdentifierIssuer,l=n(451),c=n(550),d=n(689),{expand:u}=n(690),{flatten:p}=n(691),{fromRDF:f}=n(692),{toRDF:h}=n(693),{frameMergedOrDefault:v,cleanupNull:g}=n(695),{isArray:y,isObject:m,isString:x}=n(448),{isSubjectReference:b}=n(457),{expandIri:w,getInitialContext:j,process:I,processingMode:N}=n(466),{compact:S,compactIri:E}=n(696),{createNodeMap:O,createMergedNodeMap:k,mergeNodeMaps:D}=n(493),{logEventHandler:C,logWarningEventHandler:L,safeEventHandler:T,setDefaultEventHandler:R,setupEventHandler:A,strictEventHandler:_,unhandledEventHandler:M}=n(477),J=function(e){const t={},J=new c({max:100});function P(t,{documentLoader:n=e.documentLoader,...o}){if(t&&"compactionMap"in t)throw new l('"compactionMap" not supported.',"jsonld.OptionsError");if(t&&"expansionMap"in t)throw new l('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:n},o,t,{eventHandler:A({options:t})})}return e.compact=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(null===n)throw new l("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(null===t)return null;let r;(o=P(o,{base:x(t)?t:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new s("_:b"),contextResolver:new a({sharedCache:J})})).link&&(o.skipExpansion=!0),o.compactToRelative||delete o.base,r=o.skipExpansion?t:await e.expand(t,o);const c=await e.processContext(j(o),n,o);let d=await S({activeCtx:c,element:r,options:o});o.compactArrays&&!o.graph&&y(d)?1===d.length?d=d[0]:0===d.length&&(d={}):o.graph&&m(d)&&(d=[d]),m(n)&&"@context"in n&&(n=n["@context"]),n=i.clone(n),y(n)||(n=[n]);const u=n;n=[];for(let e=0;e<u.length;++e)(!m(u[e])||Object.keys(u[e]).length>0)&&n.push(u[e]);const p=n.length>0;if(1===n.length&&(n=n[0]),y(d)){const e=E({activeCtx:c,iri:"@graph",relativeTo:{vocab:!0}}),t=d;d={},p&&(d["@context"]=n),d[e]=t}else if(m(d)&&p){const e=d;d={"@context":n};for(const t in e)d[t]=e[t]}return d},e.expand=async function(t,n){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");const o={},r=[];if("expandContext"in(n=P(n,{keepFreeFloatingNodes:!1,contextResolver:new a({sharedCache:J})}))){const e=i.clone(n.expandContext);m(e)&&"@context"in e?o.expandContext=e:o.expandContext={"@context":e},r.push(o.expandContext)}let s;if(x(t)){const i=await e.get(t,n);s=i.documentUrl,o.input=i.document,i.contextUrl&&(o.remoteContext={"@context":i.contextUrl},r.push(o.remoteContext))}else o.input=i.clone(t);"base"in n||(n.base=s||"");let l=j(n);for(const e of r)l=await I({activeCtx:l,localCtx:e,options:n});let c=await u({activeCtx:l,element:o.input,options:n});return m(c)&&"@graph"in c&&1===Object.keys(c).length?c=c["@graph"]:null===c&&(c=[]),y(c)||(c=[c]),c},e.flatten=async function(t,n,o){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");n="function"==typeof n?null:n||null,o=P(o,{base:x(t)?t:"",contextResolver:new a({sharedCache:J})});const r=await e.expand(t,o),i=p(r);if(null===n)return i;o.graph=!0,o.skipExpansion=!0;const s=await e.compact(i,n,o);return s},e.frame=async function(t,n,o){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(o=P(o,{base:x(t)?t:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new a({sharedCache:J})}),x(n)){const t=await e.get(n,o);if(n=t.document,t.contextUrl){let e=n["@context"];e?y(e)?e.push(t.contextUrl):e=[e,t.contextUrl]:e=t.contextUrl,n["@context"]=e}}const r=n&&n["@context"]||{},i=await e.processContext(j(o),r,o);o.hasOwnProperty("omitGraph")||(o.omitGraph=N(i,1.1)),o.hasOwnProperty("pruneBlankNodeIdentifiers")||(o.pruneBlankNodeIdentifiers=N(i,1.1));const s=await e.expand(t,o),l={...o};l.isFrame=!0,l.keepFreeFloatingNodes=!0;const c=await e.expand(n,l),d=Object.keys(n).map(e=>w(i,e,{vocab:!0}));l.merged=!d.includes("@graph"),l.is11=N(i,1.1);const u=v(s,c,l);l.graph=!o.omitGraph,l.skipExpansion=!0,l.link={},l.framing=!0;let p=await e.compact(u,r,l);return l.link={},p=g(p,l),p},e.link=async function(t,n,o){const r={};return n&&(r["@context"]=n),r["@embed"]="@link",e.frame(t,r,o)},e.normalize=e.canonize=async function(t,n){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if("inputFormat"in(n=P(n,{base:x(t)?t:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new a({sharedCache:J})}))){if("application/n-quads"!==n.inputFormat&&"application/nquads"!==n.inputFormat)throw new l("Unknown canonicalization input format.","jsonld.CanonizeError");const e=d.parse(t);return o.canonize(e,n)}const r={...n};delete r.format,r.produceGeneralizedRdf=!1;const i=await e.toRDF(t,r);return o.canonize(i,n)},e.fromRDF=async function(e,n){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");n=P(n,{format:x(e)?"application/n-quads":void 0});const{format:o}=n;let{rdfParser:r}=n;if(o){if(r=r||t[o],!r)throw new l("Unknown input format.","jsonld.UnknownFormat",{format:o})}else r=()=>e;const i=await r(e);return f(i,n)},e.toRDF=async function(t,n){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");let o;o=(n=P(n,{base:x(t)?t:"",skipExpansion:!1,contextResolver:new a({sharedCache:J})})).skipExpansion?t:await e.expand(t,n);const r=h(o,n);if(n.format){if("application/n-quads"===n.format||"application/nquads"===n.format)return d.serialize(r);throw new l("Unknown output format.","jsonld.UnknownFormat",{format:n.format})}return r},e.createNodeMap=async function(t,n){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");n=P(n,{base:x(t)?t:"",contextResolver:new a({sharedCache:J})});const o=await e.expand(t,n);return k(o,n)},e.merge=async function(t,n,o){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!y(t))throw new TypeError('Could not merge, "docs" must be an array.');n="function"==typeof n?null:n||null,o=P(o,{contextResolver:new a({sharedCache:J})});const r=await Promise.all(t.map(t=>{const n={...o};return e.expand(t,n)}));let l=!0;"mergeNodes"in o&&(l=o.mergeNodes);const c=o.issuer||new s("_:b"),d={"@default":{}};for(let e=0;e<r.length;++e){const t=i.relabelBlankNodes(r[e],{issuer:new s("_:b"+e+"-")}),n=l||0===e?d:{"@default":{}};if(O(t,n,"@default",c),n!==d)for(const e in n){const t=n[e];if(!(e in d)){d[e]=t;continue}const o=d[e];for(const e in t)e in o||(o[e]=t[e])}}const u=D(d),p=[],f=Object.keys(u).sort();for(let e=0;e<f.length;++e){const t=u[f[e]];b(t)||p.push(t)}if(null===n)return p;o.graph=!0,o.skipExpansion=!0;const h=await e.compact(p,n,o);return h},Object.defineProperty(e,"documentLoader",{get:()=>e._documentLoader,set:t=>e._documentLoader=t}),e.documentLoader=async e=>{throw new l("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:e})},e.get=async function(t,n){let o;o="function"==typeof n.documentLoader?n.documentLoader:e.documentLoader;const r=await o(t);try{if(!r.document)throw new l("No remote document found at the given URL.","jsonld.NullRemoteDocument");x(r.document)&&(r.document=JSON.parse(r.document))}catch(e){throw new l("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:e,remoteDoc:r})}return r},e.processContext=async function(e,t,n){return n=P(n,{base:"",contextResolver:new a({sharedCache:J})}),null===t?j(n):(t=i.clone(t),m(t)&&"@context"in t||(t={"@context":t}),I({activeCtx:e,localCtx:t,options:n}))},e.getContextValue=n(466).getContextValue,e.documentLoaders={},e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new l('Unknown document loader type: "'+t+'"',"jsonld.UnknownDocumentLoader",{type:t});e.documentLoader=e.documentLoaders[t].apply(e,Array.prototype.slice.call(arguments,1))},e.registerRDFParser=function(e,n){t[e]=n},e.unregisterRDFParser=function(e){delete t[e]},e.registerRDFParser("application/n-quads",d.parse),e.registerRDFParser("application/nquads",d.parse),e.url=n(459),e.logEventHandler=C,e.logWarningEventHandler=L,e.safeEventHandler=T,e.setDefaultEventHandler=R,e.strictEventHandler=_,e.unhandledEventHandler=M,e.util=i,Object.assign(e,i),e.promises=e,e.RequestQueue=n(549),e.JsonLdProcessor=n(697)(e),r.setupGlobals(e),r.setupDocumentLoaders(e),e},P=function(){return J((function(){return P()}))};J(P),e.exports=P},544:function(e,t,n){"use strict";(function(t){
|
|
46
|
+
/*!
|
|
47
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
48
|
+
*/
|
|
49
|
+
const o=n(509),r=n(492),i=n(546),a=n(510);function s(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new r("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}async main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];let r=0;for(const e of n)++r%100==0&&await this._yield(),await this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const i=[...t.keys()].sort(),l=[];for(const e of i){const n=t.get(e);if(n.length>1){l.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of l){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const r=await this.hashNDegreeQuads(n,e);t.push(r)}t.sort(s);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const c=[];for(const e of this.quads){const t=a.serializeQuadComponents(this._componentWithCanonicalId(e.subject),e.predicate,this._componentWithCanonicalId(e.object),this._componentWithCanonicalId(e.graph));c.push(t)}return c.sort(),c.join("")}async hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(a.serializeQuad(o))}t.sort();const r=this.createMessageDigest();for(const e of t)r.update(e);return n.hash=await r.digest(),n.hash}async hashRelatedBlankNode(e,t,n,o){let r;r=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const i=this.createMessageDigest();return i.update(o),"g"!==o&&i.update(this.getRelatedPredicate(t)),i.update(r),i.digest()}async hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),r=await this.createHashToRelated(e,t),a=[...r.keys()].sort();for(const e of a){o.update(e);let n,a="";const s=new i(r.get(e));let l=0;for(;s.hasNext();){const e=s.next();++l%3==0&&await this._yield();let o=t.clone(),r="";const i=[];let c=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?r+=this.canonicalIssuer.getId(t):(o.hasId(t)||i.push(t),r+=o.getId(t)),0!==a.length&&r>a){c=!0;break}if(!c){for(const e of i){const t=await this.hashNDegreeQuads(e,o);if(r+=o.getId(e),r+=`<${t.hash}>`,o=t.issuer,0!==a.length&&r>a){c=!0;break}}c||(0===a.length||r<a)&&(a=r,n=o)}}o.update(a),t=n}return{hash:await o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let r=0;for(const i of o)++r%100==0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:i,component:i.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:i,component:i.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:i,component:i.graph,position:"g",id:e,issuer:t,hashToRelated:n})]);return n}async _hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=await this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}async _addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:r,hashToRelated:i}){if("BlankNode"!==t.termType||t.value===o)return;const a=t.value,s=await this.hashRelatedBlankNode(a,e,r,n),l=i.get(s);l?l.push(a):i.set(s,[a])}_componentWithCanonicalId(e){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}async _yield(){return new Promise(e=>t(e))}}}).call(this,n(679).setImmediate)},545:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var o,r,i,a,s,l=1,c={},d=!1,u=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},o=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,o=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):o=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),o=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[l]=r,o(l),l++},p.clearImmediate=f}function f(e){delete c[e]}function h(e){if(d)setTimeout(h,0,e);else{var t=c[e];if(t){d=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(11),n(680))},546:function(e,t,n){"use strict";
|
|
50
|
+
/*!
|
|
51
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
52
|
+
*/e.exports=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,n=e.slice();let o=null,r=0;const i=e.length;for(let n=0;n<i;++n){const a=e[n],s=t.get(a);(null===o||a>o)&&(s&&n>0&&a>e[n-1]||!s&&n<i-1&&a>e[n+1])&&(o=a,r=n)}if(null===o)this.done=!0;else{const n=t.get(o)?r-1:r+1;e[r]=e[n],e[n]=o;for(const n of e)n>o&&t.set(n,!t.get(n))}return n}}},547:function(e,t,n){"use strict";
|
|
53
|
+
/*!
|
|
54
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
55
|
+
*/const o=n(509),r=n(492),i=n(546),a=n(510);function s(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}e.exports=class{constructor({createMessageDigest:e=(()=>new r("sha256")),canonicalIdMap:t=new Map,maxDeepIterations:n=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new o("_:c14n",t),this.createMessageDigest=e,this.maxDeepIterations=n,this.quads=null,this.deepIterations=null}main(e){this.deepIterations=new Map,this.quads=e;for(const t of e)this._addBlankNodeQuadInfo({quad:t,component:t.subject}),this._addBlankNodeQuadInfo({quad:t,component:t.object}),this._addBlankNodeQuadInfo({quad:t,component:t.graph});const t=new Map,n=[...this.blankNodeInfo.keys()];for(const e of n)this._hashAndTrackBlankNode({id:e,hashToBlankNodes:t});const r=[...t.keys()].sort(),i=[];for(const e of r){const n=t.get(e);if(n.length>1){i.push(n);continue}const o=n[0];this.canonicalIssuer.getId(o)}for(const e of i){const t=[];for(const n of e){if(this.canonicalIssuer.hasId(n))continue;const e=new o("_:b");e.getId(n);const r=this.hashNDegreeQuads(n,e);t.push(r)}t.sort(s);for(const e of t){const t=e.issuer.getOldIds();for(const e of t)this.canonicalIssuer.getId(e)}}const l=[];for(const e of this.quads){const t=a.serializeQuadComponents(this._componentWithCanonicalId({component:e.subject}),e.predicate,this._componentWithCanonicalId({component:e.object}),this._componentWithCanonicalId({component:e.graph}));l.push(t)}return l.sort(),l.join("")}hashFirstDegreeQuads(e){const t=[],n=this.blankNodeInfo.get(e),o=n.quads;for(const n of o){const o={subject:null,predicate:n.predicate,object:null,graph:null};o.subject=this.modifyFirstDegreeComponent(e,n.subject,"subject"),o.object=this.modifyFirstDegreeComponent(e,n.object,"object"),o.graph=this.modifyFirstDegreeComponent(e,n.graph,"graph"),t.push(a.serializeQuad(o))}t.sort();const r=this.createMessageDigest();for(const e of t)r.update(e);return n.hash=r.digest(),n.hash}hashRelatedBlankNode(e,t,n,o){let r;r=this.canonicalIssuer.hasId(e)?this.canonicalIssuer.getId(e):n.hasId(e)?n.getId(e):this.blankNodeInfo.get(e).hash;const i=this.createMessageDigest();return i.update(o),"g"!==o&&i.update(this.getRelatedPredicate(t)),i.update(r),i.digest()}hashNDegreeQuads(e,t){const n=this.deepIterations.get(e)||0;if(n>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(e,n+1);const o=this.createMessageDigest(),r=this.createHashToRelated(e,t),a=[...r.keys()].sort();for(const e of a){o.update(e);let n,a="";const s=new i(r.get(e));for(;s.hasNext();){const e=s.next();let o=t.clone(),r="";const i=[];let l=!1;for(const t of e)if(this.canonicalIssuer.hasId(t)?r+=this.canonicalIssuer.getId(t):(o.hasId(t)||i.push(t),r+=o.getId(t)),0!==a.length&&r>a){l=!0;break}if(!l){for(const e of i){const t=this.hashNDegreeQuads(e,o);if(r+=o.getId(e),r+=`<${t.hash}>`,o=t.issuer,0!==a.length&&r>a){l=!0;break}}l||(0===a.length||r<a)&&(a=r,n=o)}}o.update(a),t=n}return{hash:o.digest(),issuer:t}}modifyFirstDegreeComponent(e,t){return"BlankNode"!==t.termType?t:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return`<${e.predicate.value}>`}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const r of o)this._addRelatedBlankNodeHash({quad:r,component:r.subject,position:"s",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.object,position:"o",id:e,issuer:t,hashToRelated:n}),this._addRelatedBlankNodeHash({quad:r,component:r.graph,position:"g",id:e,issuer:t,hashToRelated:n});return n}_hashAndTrackBlankNode({id:e,hashToBlankNodes:t}){const n=this.hashFirstDegreeQuads(e),o=t.get(n);o?o.push(e):t.set(n,[e])}_addBlankNodeQuadInfo({quad:e,component:t}){if("BlankNode"!==t.termType)return;const n=t.value,o=this.blankNodeInfo.get(n);o?o.quads.add(e):this.blankNodeInfo.set(n,{quads:new Set([e]),hash:null})}_addRelatedBlankNodeHash({quad:e,component:t,position:n,id:o,issuer:r,hashToRelated:i}){if("BlankNode"!==t.termType||t.value===o)return;const a=t.value,s=this.hashRelatedBlankNode(a,e,r,n),l=i.get(s);l?l.push(a):i.set(s,[a])}_componentWithCanonicalId({component:e}){return"BlankNode"!==e.termType||e.value.startsWith(this.canonicalIssuer.prefix)?e:{termType:"BlankNode",value:this.canonicalIssuer.getId(e.value)}}}},549:function(e,t,n){"use strict";e.exports=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}},550:function(e,t,n){"use strict";const o=n(687),r=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),d=Symbol("noDisposeOnSet"),u=Symbol("lruList"),p=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1;const v=(e,t,n)=>{const o=e[p].get(t);if(o){const t=o.value;if(g(e,t)){if(m(e,o),!e[s])return}else n&&(e[f]&&(o.value.now=Date.now()),e[u].unshiftNode(o));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},y=e=>{if(e[i]>e[r])for(let t=e[u].tail;e[i]>e[r]&&null!==t;){const n=t.prev;m(e,t),t=n}},m=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[p].delete(n.key),e[u].removeNode(t)}};class x{constructor(e,t,n,o,r){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=r||0}}const b=(e,t,n,o)=>{let r=n.value;g(e,r)&&(m(e,n),e[s]||(r=void 0)),r&&t.call(o,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[d]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,y(this)}get max(){return this[r]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,y(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[i]=0,this[u].forEach(e=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let n=this[u].tail;null!==n;){const o=n.prev;b(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[u].head;null!==n;){const o=n.next;b(this,e,n,t),n=o}}keys(){return this[u].toArray().map(e=>e.key)}values(){return this[u].toArray().map(e=>e.value)}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach(e=>this[c](e.key,e.value)),this[p]=new Map,this[u]=new o,this[i]=0}dump(){return this[u].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[u]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const o=n?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[r])return m(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[c]&&(this[d]||this[c](e,a.value)),a.now=o,a.maxAge=n,a.value=t,this[i]+=s-a.length,a.length=s,this.get(e),y(this),!0}const f=new x(e,t,s,o,n);return f.length>this[r]?(this[c]&&this[c](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return v(this,e,!0)}peek(e){return v(this,e,!1)}pop(){const e=this[u].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],r=o.e||0;if(0===r)this.set(o.k,o.v);else{const e=r-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[p].forEach((e,t)=>v(this,t,!1))}}},678:function(e,t,n){"use strict";const o=n(544),r=n(681),i=n(547),a=n(682);let s;try{s=n(548)}catch(e){}function l(e){return Array.isArray(e)?e:t.NQuads.legacyDatasetToQuads(e)}t.NQuads=n(510),t.IdentifierIssuer=n(509),t._rdfCanonizeNative=function(e){return e&&(s=e),s},t.canonize=async function(e,t){const n=l(e);if(t.useNative){if(!s)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((e,o)=>s.canonize(n,t,(t,n)=>t?o(t):e(n)))}if("URDNA2015"===t.algorithm)return new o(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new r(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)},t._canonizeSync=function(e,t){const n=l(e);if(t.useNative){if(!s)throw new Error("rdf-canonize-native not available");if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return s.canonizeSync(n,t)}if("URDNA2015"===t.algorithm)return new i(t).main(n);if("URGNA2012"===t.algorithm){if(t.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new a(t).main(n)}if(!("algorithm"in t))throw new Error("No RDF Dataset Canonicalization algorithm specified.");throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)}},679:function(e,t,n){(function(e){var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(545),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},680:function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,c=[],d=!1,u=-1;function p(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||d||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},681:function(e,t,n){"use strict";
|
|
56
|
+
/*!
|
|
57
|
+
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
58
|
+
*/const o=n(492),r=n(544);e.exports=class extends r{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}async createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;let r=0;for(const i of o){let o,a;if("BlankNode"===i.subject.termType&&i.subject.value!==e)a=i.subject.value,o="p";else{if("BlankNode"!==i.object.termType||i.object.value===e)continue;a=i.object.value,o="r"}++r%100==0&&await this._yield();const s=await this.hashRelatedBlankNode(a,i,t,o),l=n.get(s);l?l.push(a):n.set(s,[a])}return n}}},682:function(e,t,n){"use strict";
|
|
59
|
+
/*!
|
|
60
|
+
* Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
|
|
61
|
+
*/const o=n(492),r=n(547);e.exports=class extends r{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new o("sha1")}modifyFirstDegreeComponent(e,t,n){return"BlankNode"!==t.termType?t:"graph"===n?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:t.value===e?"_:a":"_:z"}}getRelatedPredicate(e){return e.predicate.value}createHashToRelated(e,t){const n=new Map,o=this.blankNodeInfo.get(e).quads;for(const r of o){let o,i;if("BlankNode"===r.subject.termType&&r.subject.value!==e)i=r.subject.value,o="p";else{if("BlankNode"!==r.object.termType||r.object.value===e)continue;i=r.object.value,o="r"}const a=this.hashRelatedBlankNode(i,r,t,o),s=n.get(a);s?s.push(i):n.set(a,[i])}return n}}},683:function(e,t,n){"use strict";const o=n(684),r={};e.exports=r,r.setupDocumentLoaders=function(e){"undefined"!=typeof XMLHttpRequest&&(e.documentLoaders.xhr=o,e.useDocumentLoader("xhr"))},r.setupGlobals=function(e){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})}},684:function(e,t,n){"use strict";const{parseLinkHeader:o,buildHeaders:r}=n(450),{LINK_HEADER_CONTEXT:i}=n(511),a=n(451),s=n(549),{prependBase:l}=n(459),c=/(^|(\r\n))link:/i;e.exports=({secure:e,headers:t={},xhr:n}={headers:{}})=>{t=r(t);return(new s).wrapLoader((async function r(s){if(0!==s.indexOf("http:")&&0!==s.indexOf("https:"))throw new a('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:s});if(e&&0!==s.indexOf("https"))throw new a('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:s});let d;try{d=await function(e,t,n){const o=new(e=e||XMLHttpRequest);return new Promise((e,r)=>{o.onload=()=>e(o),o.onerror=e=>r(e),o.open("GET",t,!0);for(const e in n)o.setRequestHeader(e,n[e]);o.send()})}(n,s,t)}catch(e){throw new a("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:s,cause:e})}if(d.status>=400)throw new a("URL could not be dereferenced: "+d.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:s,httpStatusCode:d.status});let u={contextUrl:null,documentUrl:s,document:d.response},p=null;const f=d.getResponseHeader("Content-Type");let h;c.test(d.getAllResponseHeaders())&&(h=d.getResponseHeader("Link"));if(h&&"application/ld+json"!==f){const e=o(h),t=e[i];if(Array.isArray(t))throw new a("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:s});t&&(u.contextUrl=t.target),p=e.alternate,p&&"application/ld+json"==p.type&&!(f||"").match(/^application\/(\w*\+)?json$/)&&(u=await r(l(s,p.target)))}return u}))}},685:function(e,t,n){"use strict";const{isArray:o,isObject:r,isString:i}=n(448),{asArray:a}=n(450),{prependBase:s}=n(459),l=n(451),c=n(686);function d(e){throw new l("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:e})}e.exports=class{constructor({sharedCache:e}){this.perOpCache=new Map,this.sharedCache=e}async resolve({activeCtx:e,context:t,documentLoader:n,base:s,cycles:l=new Set}){t&&r(t)&&t["@context"]&&(t=t["@context"]),t=a(t);const u=[];for(const a of t){if(i(a)){let t=this._get(a);t||(t=await this._resolveRemoteContext({activeCtx:e,url:a,documentLoader:n,base:s,cycles:l})),o(t)?u.push(...t):u.push(t);continue}if(null===a){u.push(new c({document:null}));continue}r(a)||d(t);const p=JSON.stringify(a);let f=this._get(p);f||(f=new c({document:a}),this._cacheResolvedContext({key:p,resolved:f,tag:"static"})),u.push(f)}return u}_get(e){let t=this.perOpCache.get(e);if(!t){const n=this.sharedCache.get(e);n&&(t=n.get("static"),t&&this.perOpCache.set(e,t))}return t}_cacheResolvedContext({key:e,resolved:t,tag:n}){if(this.perOpCache.set(e,t),void 0!==n){let o=this.sharedCache.get(e);o||(o=new Map,this.sharedCache.set(e,o)),o.set(n,t)}return t}async _resolveRemoteContext({activeCtx:e,url:t,documentLoader:n,base:a,cycles:l}){t=s(a,t);const{context:c,remoteDoc:d}=await this._fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:l});(function e({context:t,base:n}){if(!t)return;const a=t["@context"];if(i(a))return void(t["@context"]=s(n,a));if(o(a)){for(let t=0;t<a.length;++t){const o=a[t];i(o)?a[t]=s(n,o):r(o)&&e({context:{"@context":o},base:n})}return}if(!r(a))return;for(const t in a)e({context:a[t],base:n})})({context:c,base:a=d.documentUrl||t});const u=await this.resolve({activeCtx:e,context:c,documentLoader:n,base:a,cycles:l});return this._cacheResolvedContext({key:t,resolved:u,tag:d.tag}),u}async _fetchContext({activeCtx:e,url:t,documentLoader:n,cycles:a}){if(a.size>10)throw new l("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"loading remote context failed":"context overflow",max:10});if(a.has(t))throw new l("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"json-ld-1.0"===e.processingMode?"recursive context inclusion":"context overflow",url:t});let s,c;a.add(t);try{c=await n(t),s=c.document||null,i(s)&&(s=JSON.parse(s))}catch(e){throw new l("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.","jsonld.InvalidUrl",{code:"loading remote context failed",url:t,cause:e})}if(!r(s))throw new l("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:t});return s="@context"in s?{"@context":s["@context"]}:{"@context":{}},c.contextUrl&&(o(s["@context"])||(s["@context"]=[s["@context"]]),s["@context"].push(c.contextUrl)),{context:s,remoteDoc:c}}}},686:function(e,t,n){"use strict";const o=n(550);e.exports=class{constructor({document:e}){this.document=e,this.cache=new o({max:10})}getProcessed(e){return this.cache.get(e)}setProcessed(e,t){this.cache.set(e,t)}}},687:function(e,t,n){"use strict";function o(e){var t=this;if(t instanceof o||(t=new o),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function r(e,t,n){var o=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,o){if(!(this instanceof s))return new s(e,t,n,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=o,o.Node=s,o.create=o,o.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},o.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},o.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},o.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},o.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},o.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},o.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},o.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,o=0;null!==n;o++)e.call(t,n.value,o,this),n=n.next},o.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,o=this.length-1;null!==n;o--)e.call(t,n.value,o,this),n=n.prev},o.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},o.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},o.prototype.map=function(e,t){t=t||this;for(var n=new o,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},o.prototype.mapReverse=function(e,t){t=t||this;for(var n=new o,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},o.prototype.reduce=function(e,t){var n,o=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,n=this.head.value}for(var r=0;null!==o;r++)n=e(n,o.value,r),o=o.next;return n},o.prototype.reduceReverse=function(e,t){var n,o=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==o;r--)n=e(n,o.value,r),o=o.prev;return n},o.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},o.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},o.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&r<e;r++)i=i.next;for(;null!==i&&r<t;r++,i=i.next)n.push(i.value);return n},o.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new o;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},o.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;var a=[];for(o=0;i&&o<t;o++)a.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(o=0;o<n.length;o++)i=r(this,i,n[o]);return a},o.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var o=n.prev;n.prev=n.next,n.next=o}return this.head=t,this.tail=e,this};try{n(688)(o)}catch(e){}},688:function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},689:function(e,t,n){"use strict";e.exports=n(508).NQuads},690:function(e,t,n){"use strict";const o=n(451),{isArray:r,isObject:i,isEmptyObject:a,isString:s,isUndefined:l}=n(448),{isList:c,isValue:d,isGraph:u,isSubject:p}=n(457),{expandIri:f,getContextValue:h,isKeyword:v,process:g,processingMode:y}=n(466),{isAbsolute:m}=n(459),{REGEX_BCP47:x,REGEX_KEYWORD:b,addValue:w,asArray:j,getValues:I,validateTypeValue:N}=n(450),{handleEvent:S}=n(477),E={};function O({value:e,count:t,options:n}){if(0===t||"@value"in e||"@list"in e||1===t&&"@id"in e){if(n.eventHandler){let o,r;0===t?(o="empty object",r="Dropping empty object."):"@value"in e?(o="object with only @value",r="Dropping object with only @value."):"@list"in e?(o="object with only @list",r="Dropping object with only @list."):1===t&&"@id"in e&&(o="object with only @id",r="Dropping object with only @id."),S({event:{type:["JsonLdEvent"],code:o,level:"warning",message:r,details:{value:e}},options:n})}return null}return e}function k({activeCtx:e,activeProperty:t,value:n,options:o}){if(null==n)return null;const r=f(e,t,{vocab:!0},o);if("@id"===r)return f(e,n,{base:!0},o);if("@type"===r)return f(e,n,{vocab:!0,base:!0},{...o,typeExpansion:!0});const i=h(e,t,"@type");if(("@id"===i||"@graph"===r)&&s(n)){const r=f(e,n,{base:!0},o);return null===r&&n.match(b)&&o.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:o}),{"@id":r}}if("@vocab"===i&&s(n))return{"@id":f(e,n,{vocab:!0,base:!0},o)};if(v(r))return n;const a={};if(i&&!["@id","@vocab","@none"].includes(i))a["@type"]=i;else if(s(n)){const n=h(e,t,"@language");null!==n&&(a["@language"]=n);const o=h(e,t,"@direction");null!==o&&(a["@direction"]=o)}return["boolean","number","string"].includes(typeof n)||(n=n.toString()),a["@value"]=n,a}function D(e,t,n,i){const a=[],l=Object.keys(t).sort();for(const c of l){const l=f(e,c,{vocab:!0},i);let d=t[c];r(d)||(d=[d]);for(const e of d){if(null===e)continue;if(!s(e))throw new o("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});const r={"@value":e};"@none"!==l&&(c.match(x)||i.eventHandler&&S({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:c}},options:i}),r["@language"]=c.toLowerCase()),n&&(r["@direction"]=n),a.push(r)}}return a}async function C({activeCtx:e,options:t,activeProperty:n,value:i,asGraph:a,indexKey:s,propertyIndex:c}){const p=[],v=Object.keys(i).sort(),y="@type"===s;for(let m of v){if(y){const n=h(e,m,"@context");l(n)||(e=await g({activeCtx:e,localCtx:n,propagate:!1,options:t}))}let v,x=i[m];r(x)||(x=[x]),x=await E.expand({activeCtx:e,activeProperty:n,element:x,options:t,insideList:!1,insideIndex:!0}),v=c?"@none"===m?"@none":k({activeCtx:e,activeProperty:s,value:m,options:t}):f(e,m,{vocab:!0},t),"@id"===s?m=f(e,m,{base:!0},t):y&&(m=v);for(let e of x){if(a&&!u(e)&&(e={"@graph":[e]}),"@type"===s)"@none"===v||(e["@type"]?e["@type"]=[m].concat(e["@type"]):e["@type"]=[m]);else{if(d(e)&&!["@language","@type","@index"].includes(s))throw new o(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${s}".`,"jsonld.SyntaxError",{code:"invalid value object",value:e});c?"@none"!==v&&w(e,c,v,{propertyIsArray:!0,prependValue:!0}):"@none"===v||s in e||(e[s]=m)}p.push(e)}}return p}e.exports=E,E.expand=async({activeCtx:e,activeProperty:t=null,element:n,options:u={},insideList:b=!1,insideIndex:L=!1,typeScopedContext:T=null})=>{if(null==n)return null;if("@default"===t&&(u=Object.assign({},u,{isFrame:!1})),!r(n)&&!i(n))return b||null!==t&&"@graph"!==f(e,t,{vocab:!0},u)?k({activeCtx:e,activeProperty:t,value:n,options:u}):(u.eventHandler&&S({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:n}},options:u}),null);if(r(n)){let o=[];const i=h(e,t,"@container")||[];b=b||i.includes("@list");for(let i=0;i<n.length;++i){let a=await E.expand({activeCtx:e,activeProperty:t,element:n[i],options:u,insideIndex:L,typeScopedContext:T});b&&r(a)&&(a={"@list":a}),null!==a&&(r(a)?o=o.concat(a):o.push(a))}return o}const R=f(e,t,{vocab:!0},u),A=h(e,t,"@context");T=T||(e.previousContext?e:null);let _=Object.keys(n).sort(),M=!L;if(M&&T&&_.length<=2&&!_.includes("@context"))for(const t of _){const n=f(T,t,{vocab:!0},u);if("@value"===n){M=!1,e=T;break}if("@id"===n&&1===_.length){M=!1;break}}M&&(e=e.revertToPreviousContext()),l(A)||(e=await g({activeCtx:e,localCtx:A,propagate:!0,overrideProtected:!0,options:u})),"@context"in n&&(e=await g({activeCtx:e,localCtx:n["@context"],options:u})),T=e;let J=null;for(const t of _){if("@type"===f(e,t,{vocab:!0},u)){J=J||t;const o=n[t],r=Array.isArray(o)?o.length>1?o.slice().sort():o:[o];for(const t of r){const n=h(T,t,"@context");l(n)||(e=await g({activeCtx:e,localCtx:n,options:u,propagate:!1}))}}}let P={};await async function e({activeCtx:t,activeProperty:n,expandedActiveProperty:u,element:b,expandedParent:I,options:k={},insideList:L,typeKey:T,typeScopedContext:R}){const A=Object.keys(b).sort(),_=[];let M;const J=b[T]&&"@json"===f(t,r(b[T])?b[T][0]:b[T],{vocab:!0},{...k,typeExpansion:!0});for(const e of A){let L,T=b[e];if("@context"===e)continue;const A=f(t,e,{vocab:!0},k);if(null===A||!m(A)&&!v(A)){k.eventHandler&&S({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:e,expandedProperty:A}},options:k});continue}if(v(A)){if("@reverse"===u)throw new o("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:T});if(A in I&&"@included"!==A&&"@type"!==A)throw new o("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:A})}if("@id"===A){if(!s(T)){if(!k.isFrame)throw new o('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:T});if(i(T)){if(!a(T))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:T})}else{if(!r(T))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:T});if(!T.every(e=>s(e)))throw new o('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:T})}}w(I,"@id",j(T).map(e=>{if(s(e)){const n=f(t,e,{base:!0},k);return k.eventHandler&&(null===n?S(null===e?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:e}},options:k}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:e}},options:k}):m(n)||S({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:e,expandedId:n}},options:k})),n}return e}),{propertyIsArray:k.isFrame});continue}if("@type"===A){i(T)&&(T=Object.fromEntries(Object.entries(T).map(([e,t])=>[f(R,e,{vocab:!0}),j(t).map(e=>f(R,e,{base:!0,vocab:!0},{...k,typeExpansion:!0}))]))),N(T,k.isFrame),w(I,"@type",j(T).map(e=>{if(s(e)){const t=f(R,e,{base:!0,vocab:!0},{...k,typeExpansion:!0});return"@json"===t||m(t)||k.eventHandler&&S({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:e}},options:k}),t}return e}),{propertyIsArray:!!k.isFrame});continue}if("@included"===A&&y(t,1.1)){const e=j(await E.expand({activeCtx:t,activeProperty:n,element:T,options:k}));if(!e.every(e=>p(e)))throw new o("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:T});w(I,"@included",e,{propertyIsArray:!0});continue}if("@graph"===A&&!i(T)&&!r(T))throw new o('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:T});if("@value"===A){M=T,J&&y(t,1.1)?I["@value"]=T:w(I,"@value",T,{propertyIsArray:k.isFrame});continue}if("@language"===A){if(null===T)continue;if(!s(T)&&!k.isFrame)throw new o('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:T});T=j(T).map(e=>s(e)?e.toLowerCase():e);for(const e of T)s(e)&&!e.match(x)&&k.eventHandler&&S({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:k});w(I,"@language",T,{propertyIsArray:k.isFrame});continue}if("@direction"===A){if(!s(T)&&!k.isFrame)throw new o('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:T});T=j(T);for(const e of T)if(s(e)&&"ltr"!==e&&"rtl"!==e)throw new o('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:T});w(I,"@direction",T,{propertyIsArray:k.isFrame});continue}if("@index"===A){if(!s(T))throw new o('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:T});w(I,"@index",T);continue}if("@reverse"===A){if(!i(T))throw new o('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:T});if(L=await E.expand({activeCtx:t,activeProperty:"@reverse",element:T,options:k}),"@reverse"in L)for(const e in L["@reverse"])w(I,e,L["@reverse"][e],{propertyIsArray:!0});let e=I["@reverse"]||null;for(const t in L){if("@reverse"===t)continue;null===e&&(e=I["@reverse"]={}),w(e,t,[],{propertyIsArray:!0});const n=L[t];for(let r=0;r<n.length;++r){const i=n[r];if(d(i)||c(i))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:L});w(e,t,i,{propertyIsArray:!0})}}continue}if("@nest"===A){_.push(e);continue}let P=t;const B=h(t,e,"@context");l(B)||(P=await g({activeCtx:t,localCtx:B,propagate:!0,overrideProtected:!0,options:k}));const H=h(t,e,"@container")||[];if(H.includes("@language")&&i(T)){const t=h(P,e,"@direction");L=D(P,T,t,k)}else if(H.includes("@index")&&i(T)){const n=H.includes("@graph"),o=h(P,e,"@index")||"@index",r="@index"!==o&&f(t,o,{vocab:!0},k);L=await C({activeCtx:P,options:k,activeProperty:e,value:T,asGraph:n,indexKey:o,propertyIndex:r})}else if(H.includes("@id")&&i(T)){const t=H.includes("@graph");L=await C({activeCtx:P,options:k,activeProperty:e,value:T,asGraph:t,indexKey:"@id"})}else if(H.includes("@type")&&i(T))L=await C({activeCtx:P.revertToPreviousContext(),options:k,activeProperty:e,value:T,asGraph:!1,indexKey:"@type"});else{const o="@list"===A;if(o||"@set"===A){let e=n;o&&"@graph"===u&&(e=null),L=await E.expand({activeCtx:P,activeProperty:e,element:T,options:k,insideList:o})}else L="@json"===h(t,e,"@type")?{"@type":"@json","@value":T}:await E.expand({activeCtx:P,activeProperty:e,element:T,options:k,insideList:!1})}if(null!==L||"@value"===A){if("@list"!==A&&!c(L)&&H.includes("@list")&&(L={"@list":j(L)}),H.includes("@graph")&&!H.some(e=>"@id"===e||"@index"===e)){if(L=j(L),k.isFrame||(L=L.filter(e=>null!==O({value:e,count:Object.keys(e).length,options:k}))),0===L.length)continue;L=L.map(e=>({"@graph":j(e)}))}if(P.mappings.has(e)&&P.mappings.get(e).reverse){const e=I["@reverse"]=I["@reverse"]||{};L=j(L);for(let t=0;t<L.length;++t){const n=L[t];if(d(n)||c(n))throw new o('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:L});w(e,A,n,{propertyIsArray:!0})}}else w(I,A,L,{propertyIsArray:!0})}}if("@value"in I)if("@json"===I["@type"]&&y(t,1.1));else if((i(M)||r(M))&&!k.isFrame)throw new o('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:M});for(const a of _){const s=r(b[a])?b[a]:[b[a]];for(const r of s){if(!i(r)||Object.keys(r).some(e=>"@value"===f(t,e,{vocab:!0},k)))throw new o("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:r});await e({activeCtx:t,activeProperty:n,expandedActiveProperty:u,element:r,expandedParent:I,options:k,insideList:L,typeScopedContext:R,typeKey:T})}}}({activeCtx:e,activeProperty:t,expandedActiveProperty:R,element:n,expandedParent:P,options:u,insideList:b,typeKey:J,typeScopedContext:T}),_=Object.keys(P);let B=_.length;if("@value"in P){if("@type"in P&&("@language"in P||"@direction"in P))throw new o('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:P});let t=B-1;if("@type"in P&&(t-=1),"@index"in P&&(t-=1),"@language"in P&&(t-=1),"@direction"in P&&(t-=1),0!==t)throw new o('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:P});const n=null===P["@value"]?[]:j(P["@value"]),r=I(P,"@type");if(y(e,1.1)&&r.includes("@json")&&1===r.length);else if(0===n.length)u.eventHandler&&S({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:P}},options:u}),P=null;else{if(!n.every(e=>s(e)||a(e))&&"@language"in P)throw new o("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:P});if(!r.every(e=>m(e)&&!(s(e)&&0===e.indexOf("_:"))||a(e)))throw new o('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:P})}}else if("@type"in P&&!r(P["@type"]))P["@type"]=[P["@type"]];else if("@set"in P||"@list"in P){if(B>1&&(2!==B||!("@index"in P)))throw new o('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:P});"@set"in P&&(P=P["@set"],_=Object.keys(P),B=_.length)}else 1===B&&"@language"in P&&(u.eventHandler&&S({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:P}},options:u}),P=null);return!i(P)||u.keepFreeFloatingNodes||b||null!==t&&"@graph"!==R&&!(h(e,t,"@container")||[]).includes("@graph")||(P=O({value:P,count:B,options:u})),P}},691:function(e,t,n){"use strict";const{isSubjectReference:o}=n(457),{createMergedNodeMap:r}=n(493),i={};e.exports=i,i.flatten=e=>{const t=r(e),n=[],i=Object.keys(t).sort();for(let e=0;e<i.length;++e){const r=t[i[e]];o(r)||n.push(r)}return n}},692:function(e,t,n){"use strict";const o=n(451),r=n(457),i=n(448),{REGEX_BCP47:a,addValue:s}=n(450),{handleEvent:l}=n(477),{RDF_LIST:c,RDF_FIRST:d,RDF_REST:u,RDF_NIL:p,RDF_TYPE:f,RDF_JSON_LITERAL:h,XSD_BOOLEAN:v,XSD_DOUBLE:g,XSD_INTEGER:y,XSD_STRING:m}=n(511),x={};function b(e,t,n,r){if(e.termType.endsWith("Node"))return{"@id":e.value};const s={"@value":e.value};if(e.language)e.language.match(a)||r.eventHandler&&l({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e.language}},options:r}),s["@language"]=e.language;else{let c=e.datatype.value;if(c||(c=m),c===h){c="@json";try{s["@value"]=JSON.parse(s["@value"])}catch(e){throw new o("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:s["@value"],cause:e})}}if(t){if(c===v)"true"===s["@value"]?s["@value"]=!0:"false"===s["@value"]&&(s["@value"]=!1);else if(i.isNumeric(s["@value"]))if(c===y){const e=parseInt(s["@value"],10);e.toFixed(0)===s["@value"]&&(s["@value"]=e)}else c===g&&(s["@value"]=parseFloat(s["@value"]));[v,y,g,m].includes(c)||(s["@type"]=c)}else if("i18n-datatype"===n&&c.startsWith("https://www.w3.org/ns/i18n#")){const[,e,t]=c.split(/[#_]/);e.length>0&&(s["@language"]=e,e.match(a)||r.eventHandler&&l({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e}},options:r})),s["@direction"]=t}else c!==m&&(s["@type"]=c)}return s}e.exports=x,x.fromRDF=async(e,t)=>{const{useRdfType:n=!1,useNativeTypes:a=!1,rdfDirection:l=null}=t,h={},v={"@default":h},g={};if(l){if("compound-literal"===l)throw new o("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:l});if("i18n-datatype"!==l)throw new o("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:l})}for(const o of e){const e="DefaultGraph"===o.graph.termType?"@default":o.graph.value;e in v||(v[e]={}),"@default"===e||e in h||(h[e]={"@id":e});const r=v[e],i=o.subject.value,c=o.predicate.value,d=o.object;i in r||(r[i]={"@id":i});const u=r[i],y=d.termType.endsWith("Node");if(y&&!(d.value in r)&&(r[d.value]={"@id":d.value}),c===f&&!n&&y){s(u,"@type",d.value,{propertyIsArray:!0});continue}const m=b(d,a,l,t);if(s(u,c,m,{propertyIsArray:!0}),y)if(d.value===p){const e=r[d.value];"usages"in e||(e.usages=[]),e.usages.push({node:u,property:c,value:m})}else d.value in g?g[d.value]=!1:g[d.value]={node:u,property:c,value:m}}for(const e in v){const t=v[e];if(!(p in t))continue;const n=t[p];if(n.usages){for(let e of n.usages){let n=e.node,o=e.property,a=e.value;const s=[],l=[];let p=Object.keys(n).length;for(;o===u&&i.isObject(g[n["@id"]])&&i.isArray(n[d])&&1===n[d].length&&i.isArray(n[u])&&1===n[u].length&&(3===p||4===p&&i.isArray(n["@type"])&&1===n["@type"].length&&n["@type"][0]===c)&&(s.push(n[d][0]),l.push(n["@id"]),e=g[n["@id"]],n=e.node,o=e.property,a=e.value,p=Object.keys(n).length,r.isBlankNode(n)););delete a["@id"],a["@list"]=s.reverse();for(const e of l)delete t[e]}delete n.usages}}const y=[],m=Object.keys(h).sort();for(const e of m){const t=h[e];if(e in v){const n=t["@graph"]=[],o=v[e],i=Object.keys(o).sort();for(const e of i){const t=o[e];r.isSubjectReference(t)||n.push(t)}}r.isSubjectReference(t)||y.push(t)}return y}},693:function(e,t,n){"use strict";const{createNodeMap:o}=n(493),{isKeyword:r}=n(466),i=n(457),a=n(694),s=n(451),l=n(448),c=n(450),{handleEvent:d}=n(477),{RDF_FIRST:u,RDF_REST:p,RDF_NIL:f,RDF_TYPE:h,RDF_JSON_LITERAL:v,RDF_LANGSTRING:g,XSD_BOOLEAN:y,XSD_DOUBLE:m,XSD_INTEGER:x,XSD_STRING:b}=n(511),{isAbsolute:w}=n(459),j={};function I(e,t,n,o,i){const a=Object.keys(t).sort();for(const s of a){const a=t[s],l=Object.keys(a).sort();for(let t of l){const l=a[t];if("@type"===t)t=h;else if(r(t))continue;for(const r of l){const a={termType:s.startsWith("_:")?"BlankNode":"NamedNode",value:s};if(!w(s)){i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:s}},options:i});continue}const l={termType:t.startsWith("_:")?"BlankNode":"NamedNode",value:t};if(!w(t)){i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:t}},options:i});continue}if("BlankNode"===l.termType&&!i.produceGeneralizedRdf){i.eventHandler&&d({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:o.getOldIds().find(e=>o.getId(e)===t)}},options:i});continue}const c=N(r,o,e,n,i.rdfDirection,i);c&&e.push({subject:a,predicate:l,object:c,graph:n})}}}}function N(e,t,n,o,r,c){const h={};if(i.isValue(e)){h.termType="Literal",h.value=void 0,h.datatype={termType:"NamedNode"};let t=e["@value"];const n=e["@type"]||null;if("@json"===n)h.value=a(t),h.datatype.value=v;else if(l.isBoolean(t))h.value=t.toString(),h.datatype.value=n||y;else if(l.isDouble(t)||n===m)l.isDouble(t)||(t=parseFloat(t)),h.value=t.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),h.datatype.value=n||m;else if(l.isNumber(t))h.value=t.toFixed(0),h.datatype.value=n||x;else if("@direction"in e&&"i18n-datatype"===r){const n=`https://www.w3.org/ns/i18n#${(e["@language"]||"").toLowerCase()}_${e["@direction"]}`;h.datatype.value=n,h.value=t}else{if("@direction"in e&&"compound-literal"===r)throw new s("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:r});if("@direction"in e&&r)throw new s("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:r});"@language"in e?("@direction"in e&&!r&&c.eventHandler&&d({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:c}),h.value=t,h.datatype.value=n||g,h.language=e["@language"]):("@direction"in e&&!r&&c.eventHandler&&d({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:c}),h.value=t,h.datatype.value=n||b)}}else if(i.isList(e)){const i=function(e,t,n,o,r,i){const a={termType:"NamedNode",value:u},s={termType:"NamedNode",value:p},l={termType:"NamedNode",value:f},c=e.pop(),d=c?{termType:"BlankNode",value:t.getId()}:l;let h=d;for(const l of e){const e=N(l,t,n,o,r,i),c={termType:"BlankNode",value:t.getId()};n.push({subject:h,predicate:a,object:e,graph:o}),n.push({subject:h,predicate:s,object:c,graph:o}),h=c}if(c){const e=N(c,t,n,o,r,i);n.push({subject:h,predicate:a,object:e,graph:o}),n.push({subject:h,predicate:s,object:l,graph:o})}return d}(e["@list"],t,n,o,r,c);h.termType=i.termType,h.value=i.value}else{const t=l.isObject(e)?e["@id"]:e;h.termType=t.startsWith("_:")?"BlankNode":"NamedNode",h.value=t}return"NamedNode"!==h.termType||w(h.value)?h:(c.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:h.value}},options:c}),null)}e.exports=j,j.toRDF=(e,t)=>{const n=new c.IdentifierIssuer("_:b"),r={"@default":{}};o(e,r,"@default",n);const i=[],a=Object.keys(r).sort();for(const e of a){let o;if("@default"===e)o={termType:"DefaultGraph",value:""};else{if(!w(e)){t.eventHandler&&d({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:e}},options:t});continue}o=e.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},o.value=e}I(i,r[e],o,n,t)}return i}},694:function(e,t,n){"use strict";e.exports=function e(t){return null===t||"object"!=typeof t||null!=t.toJSON?JSON.stringify(t):Array.isArray(t)?"["+t.reduce((t,n,o)=>t+(0===o?"":",")+e(void 0===n||"symbol"==typeof n?null:n),"")+"]":"{"+Object.keys(t).sort().reduce((n,o,r)=>{if(void 0===t[o]||"symbol"==typeof t[o])return n;return n+(0===n.length?"":",")+e(o)+":"+e(t[o])},"")+"}"}},695:function(e,t,n){"use strict";const{isKeyword:o}=n(466),r=n(457),i=n(448),a=n(450),s=n(459),l=n(451),{createNodeMap:c,mergeNodeMapGraphs:d}=n(493),u={};function p(e){const t={};for(const n in e)void 0!==e[n]&&(t["@"+n]=[e[n]]);return[t]}function f(e,t,n){for(let o=n.length-1;o>=0;--o){const r=n[o];if(r.graph===t&&r.subject["@id"]===e["@id"])return!0}return!1}function h(e,t,n){const o="@"+n;let r=o in e?e[o][0]:t[n];if("embed"===n)if(!0===r)r="@once";else if(!1===r)r="@never";else if("@always"!==r&&"@never"!==r&&"@link"!==r&&"@first"!==r&&"@last"!==r&&"@once"!==r)throw new l("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e});return r}function v(e){if(!i.isArray(e)||1!==e.length||!i.isObject(e[0]))throw new l("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0])for(const t of a.asArray(e[0]["@id"]))if(!i.isObject(t)&&!s.isAbsolute(t)||i.isString(t)&&0===t.indexOf("_:"))throw new l("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e});if("@type"in e[0])for(const t of a.asArray(e[0]["@type"]))if(!i.isObject(t)&&!s.isAbsolute(t)&&"@json"!==t||i.isString(t)&&0===t.indexOf("_:"))throw new l("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}function g(e,t,n,s){let l=!0,c=!1;for(const d in n){let u=!1;const p=a.getValues(t,d),f=0===a.getValues(n,d).length;if("@id"===d){if(i.isEmptyObject(n["@id"][0]||{})?u=!0:n["@id"].length>=0&&(u=n["@id"].includes(p[0])),!s.requireAll)return u}else if("@type"===d){if(l=!1,f){if(p.length>0)return!1;u=!0}else if(1===n["@type"].length&&i.isEmptyObject(n["@type"][0]))u=p.length>0;else for(const e of n["@type"])u=!(!i.isObject(e)||!("@default"in e))||(u||p.some(t=>t===e));if(!s.requireAll)return u}else{if(o(d))continue;{const t=a.getValues(n,d)[0];let o=!1;if(t&&(v([t]),o="@default"in t),l=!1,0===p.length&&o)continue;if(p.length>0&&f)return!1;if(void 0===t){if(p.length>0)return!1;u=!0}else if(r.isList(t)){const n=t["@list"][0];if(r.isList(p[0])){const t=p[0]["@list"];r.isValue(n)?u=t.some(e=>b(n,e)):(r.isSubject(n)||r.isSubjectReference(n))&&(u=t.some(t=>x(e,n,t,s)))}}else u=r.isValue(t)?p.some(e=>b(t,e)):r.isSubjectReference(t)?p.some(n=>x(e,t,n,s)):!!i.isObject(t)&&p.length>0}}if(!u&&s.requireAll)return!1;c=c||u}return l||c}function y(e,t){const n=e.uniqueEmbeds[e.graph],o=n[t],r=o.parent,s=o.property,l={"@id":t};if(i.isArray(r)){for(let e=0;e<r.length;++e)if(a.compareValues(r[e],l)){r[e]=l;break}}else{const e=i.isArray(r[s]);a.removeValue(r,s,l,{propertyIsArray:e}),a.addValue(r,s,l,{propertyIsArray:e})}const c=e=>{const t=Object.keys(n);for(const o of t)o in n&&i.isObject(n[o].parent)&&n[o].parent["@id"]===e&&(delete n[o],c(o))};c(t)}
|
|
62
|
+
/**
|
|
63
|
+
* Removes the @preserve keywords from expanded result of framing.
|
|
64
|
+
*
|
|
65
|
+
* @param input the framed, framed output.
|
|
66
|
+
* @param options the framing options used.
|
|
67
|
+
*
|
|
68
|
+
* @return the resulting output.
|
|
69
|
+
*/function m(e,t,n){i.isObject(e)?a.addValue(e,t,n,{propertyIsArray:!0}):e.push(n)}function x(e,t,n,o){if(!("@id"in n))return!1;const r=e.subjects[n["@id"]];return r&&g(e,r,t,o)}function b(e,t){const n=t["@value"],o=t["@type"],r=t["@language"],a=e["@value"]?i.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],s=e["@type"]?i.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],l=e["@language"]?i.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===a.length&&0===s.length&&0===l.length||!(!a.includes(n)&&!i.isEmptyObject(a[0]))&&(!!(!o&&0===s.length||s.includes(o)||o&&i.isEmptyObject(s[0]))&&!!(!r&&0===l.length||l.includes(r)||r&&i.isEmptyObject(l[0])))}e.exports=u,u.frameMergedOrDefault=(e,t,n)=>{const o={options:n,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},s=new a.IdentifierIssuer("_:b");c(e,o.graphMap,"@default",s),n.merged&&(o.graphMap["@merged"]=d(o.graphMap),o.graph="@merged"),o.subjects=o.graphMap[o.graph];const l=[];return u.frame(o,Object.keys(o.subjects).sort(),t,l),n.pruneBlankNodeIdentifiers&&(n.bnodesToClear=Object.keys(o.bnodeMap).filter(e=>1===o.bnodeMap[e].length)),
|
|
70
|
+
// remove @preserve from results
|
|
71
|
+
n.link={},function e(t,n){if(i.isArray(t))return t.map(t=>e(t,n));if(i.isObject(t)){
|
|
72
|
+
// remove @preserve
|
|
73
|
+
if("@preserve"in t)return t["@preserve"][0];if(r.isValue(t))return t;if(r.isList(t))return t["@list"]=e(t["@list"],n),t;if("@id"in t){const e=t["@id"];if(n.link.hasOwnProperty(e)){const o=n.link[e].indexOf(t);if(-1!==o)return n.link[e][o];n.link[e].push(t)}else n.link[e]=[t]}for(const o in t)"@id"===o&&n.bnodesToClear.includes(t[o])?delete t["@id"]:t[o]=e(t[o],n)}return t}(l,n)},u.frame=(e,t,n,s,c=null)=>{v(n),n=n[0];const d=e.options,x={embed:h(n,d,"embed"),explicit:h(n,d,"explicit"),requireAll:h(n,d,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});const w=e.link[e.graph],j=function(e,t,n,o){const r={};for(const i of t){const t=e.graphMap[e.graph][i];g(e,t,n,o)&&(r[i]=t)}return r}(e,t,n,x),I=Object.keys(j).sort();for(const v of I){const g=j[v];if(null===c?e.uniqueEmbeds={[e.graph]:{}}:e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},"@link"===x.embed&&v in w){m(s,c,w[v]);continue}const I={"@id":v};if(0===v.indexOf("_:")&&a.addValue(e.bnodeMap,v,I,{propertyIsArray:!0}),w[v]=I,("@first"===x.embed||"@last"===x.embed)&&e.is11)throw new l("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n});if(e.embedded||!e.uniqueEmbeds[e.graph].hasOwnProperty(v))if(!e.embedded||"@never"!==x.embed&&!f(g,e.graph,e.subjectStack))if(!e.embedded||"@first"!=x.embed&&"@once"!=x.embed||!e.uniqueEmbeds[e.graph].hasOwnProperty(v)){if("@last"===x.embed&&v in e.uniqueEmbeds[e.graph]&&y(e,v),e.uniqueEmbeds[e.graph][v]={parent:s,property:c},e.subjectStack.push({subject:g,graph:e.graph}),v in e.graphMap){let t=!1,o=null;"@graph"in n?(o=n["@graph"][0],t=!("@merged"===v||"@default"===v),i.isObject(o)||(o={})):(t="@merged"!==e.graph,o={}),t&&u.frame({...e,graph:v,embedded:!1},Object.keys(e.graphMap[v]).sort(),[o],I,"@graph")}"@included"in n&&u.frame({...e,embedded:!1},t,n["@included"],I,"@included");for(const t of Object.keys(g).sort())if(o(t)){if(I[t]=a.clone(g[t]),"@type"===t)for(const t of g["@type"])0===t.indexOf("_:")&&a.addValue(e.bnodeMap,t,I,{propertyIsArray:!0})}else if(!x.explicit||t in n)for(const o of g[t]){const i=t in n?n[t]:p(x);if(r.isList(o)){const i=n[t]&&n[t][0]&&n[t][0]["@list"]?n[t][0]["@list"]:p(x),s={"@list":[]};m(I,t,s);const l=o["@list"];for(const t of l)r.isSubjectReference(t)?u.frame({...e,embedded:!0},[t["@id"]],i,s,"@list"):m(s,"@list",a.clone(t))}else r.isSubjectReference(o)?u.frame({...e,embedded:!0},[o["@id"]],i,I,t):b(i[0],o)&&m(I,t,a.clone(o))}for(const e of Object.keys(n).sort()){if("@type"===e){if(!i.isObject(n[e][0])||!("@default"in n[e][0]))continue}else if(o(e))continue;const t=n[e][0]||{};if(!h(t,d,"omitDefault")&&!(e in I)){let n="@null";"@default"in t&&(n=a.clone(t["@default"])),i.isArray(n)||(n=[n]),I[e]=[{"@preserve":n}]}}for(const t of Object.keys(n["@reverse"]||{}).sort()){const o=n["@reverse"][t];for(const n of Object.keys(e.subjects)){a.getValues(e.subjects[n],t).some(e=>e["@id"]===v)&&(I["@reverse"]=I["@reverse"]||{},a.addValue(I["@reverse"],t,[],{propertyIsArray:!0}),u.frame({...e,embedded:!0},[n],o,I["@reverse"][t],c))}}m(s,c,I),e.subjectStack.pop()}else m(s,c,I);else m(s,c,I)}},u.cleanupNull=(e,t)=>{if(i.isArray(e)){return e.map(e=>u.cleanupNull(e,t)).filter(e=>e)}if("@null"===e)return null;if(i.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const o=t.link[n].indexOf(e);if(-1!==o)return t.link[n][o];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=u.cleanupNull(e[n],t)}return e}},696:function(e,t,n){"use strict";const o=n(451),{isArray:r,isObject:i,isString:a,isUndefined:s}=n(448),{isList:l,isValue:c,isGraph:d,isSimpleGraph:u,isSubjectReference:p}=n(457),{expandIri:f,getContextValue:h,isKeyword:v,process:g,processingMode:y}=n(466),{removeBase:m,prependBase:x}=n(459),{REGEX_KEYWORD:b,addValue:w,asArray:j,compareShortestLeast:I}=n(450),N={};function S(e,t,n){if("@nest"!==f(e,t,{vocab:!0},n))throw new o("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}e.exports=N,N.compact=async({activeCtx:e,activeProperty:t=null,element:n,options:f={}})=>{if(r(n)){let o=[];for(let r=0;r<n.length;++r){const i=await N.compact({activeCtx:e,activeProperty:t,element:n[r],options:f});null!==i&&o.push(i)}if(f.compactArrays&&1===o.length){0===(h(e,t,"@container")||[]).length&&(o=o[0])}return o}const m=h(e,t,"@context");if(s(m)||(e=await g({activeCtx:e,localCtx:m,propagate:!0,overrideProtected:!0,options:f})),i(n)){if(f.link&&"@id"in n&&f.link.hasOwnProperty(n["@id"])){const e=f.link[n["@id"]];for(let t=0;t<e.length;++t)if(e[t].expanded===n)return e[t].compacted}if(c(n)||p(n)){const o=N.compactValue({activeCtx:e,activeProperty:t,value:n,options:f});return f.link&&p(n)&&(f.link.hasOwnProperty(n["@id"])||(f.link[n["@id"]]=[]),f.link[n["@id"]].push({expanded:n,compacted:o})),o}if(l(n)){if((h(e,t,"@container")||[]).includes("@list"))return N.compact({activeCtx:e,activeProperty:t,element:n["@list"],options:f})}const m="@reverse"===t,x={},b=e;c(n)||p(n)||(e=e.revertToPreviousContext());const I=h(b,t,"@context");s(I)||(e=await g({activeCtx:e,localCtx:I,propagate:!0,overrideProtected:!0,options:f})),f.link&&"@id"in n&&(f.link.hasOwnProperty(n["@id"])||(f.link[n["@id"]]=[]),f.link[n["@id"]].push({expanded:n,compacted:x}));let E=n["@type"]||[];E.length>1&&(E=Array.from(E).sort());const O=e;for(const t of E){const n=N.compactIri({activeCtx:O,iri:t,relativeTo:{vocab:!0}}),o=h(b,n,"@context");s(o)||(e=await g({activeCtx:e,localCtx:o,options:f,propagate:!1}))}const k=Object.keys(n).sort();for(const s of k){const p=n[s];if("@id"!==s)if("@type"!==s)if("@reverse"!==s)if("@preserve"!==s)if("@index"!==s)if("@graph"!==s&&"@list"!==s&&"@included"!==s&&v(s)){const t=N.compactIri({activeCtx:e,iri:s,relativeTo:{vocab:!0}});w(x,t,p)}else{if(!r(p))throw new o("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===p.length){const t=N.compactIri({activeCtx:e,iri:s,value:p,relativeTo:{vocab:!0},reverse:m}),n=e.mappings.has(t)?e.mappings.get(t)["@nest"]:null;let o=x;n&&(S(e,n,f),i(x[n])||(x[n]={}),o=x[n]),w(o,t,p,{propertyIsArray:!0})}for(const t of p){const n=N.compactIri({activeCtx:e,iri:s,value:t,relativeTo:{vocab:!0},reverse:m}),o=e.mappings.has(n)?e.mappings.get(n)["@nest"]:null;let p=x;o&&(S(e,o,f),i(x[o])||(x[o]={}),p=x[o]);const v=h(e,n,"@container")||[],g=d(t),y=l(t);let b;y?b=t["@list"]:g&&(b=t["@graph"]);let I=await N.compact({activeCtx:e,activeProperty:n,element:y||g?b:t,options:f});if(y){if(r(I)||(I=[I]),v.includes("@list")){w(p,n,I,{valueIsArray:!0,allowDuplicate:!0});continue}I={[N.compactIri({activeCtx:e,iri:"@list",relativeTo:{vocab:!0}})]:I},"@index"in t&&(I[N.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"])}if(g)if(v.includes("@graph")&&(v.includes("@id")||v.includes("@index")&&u(t))){let o;p.hasOwnProperty(n)?o=p[n]:p[n]=o={};const r=(v.includes("@id")?t["@id"]:t["@index"])||N.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}});w(o,r,I,{propertyIsArray:!f.compactArrays||v.includes("@set")})}else v.includes("@graph")&&u(t)?(r(I)&&I.length>1&&(I={"@included":I}),w(p,n,I,{propertyIsArray:!f.compactArrays||v.includes("@set")})):(r(I)&&1===I.length&&f.compactArrays&&(I=I[0]),I={[N.compactIri({activeCtx:e,iri:"@graph",relativeTo:{vocab:!0}})]:I},"@id"in t&&(I[N.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t["@id"]),"@index"in t&&(I[N.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=t["@index"]),w(p,n,I,{propertyIsArray:!f.compactArrays||v.includes("@set")}));else if(v.includes("@language")||v.includes("@index")||v.includes("@id")||v.includes("@type")){let o,r;if(p.hasOwnProperty(n)?o=p[n]:p[n]=o={},v.includes("@language"))c(I)&&(I=I["@value"]),r=t["@language"];else if(v.includes("@index")){const o=h(e,n,"@index")||"@index",i=N.compactIri({activeCtx:e,iri:o,relativeTo:{vocab:!0}});if("@index"===o)r=t["@index"],delete I[i];else{let e;if([r,...e]=j(I[o]||[]),a(r))switch(e.length){case 0:delete I[o];break;case 1:I[o]=e[0];break;default:I[o]=e}else r=null}}else if(v.includes("@id")){const t=N.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});r=I[t],delete I[t]}else if(v.includes("@type")){const o=N.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}});let i;switch([r,...i]=j(I[o]||[]),i.length){case 0:delete I[o];break;case 1:I[o]=i[0];break;default:I[o]=i}1===Object.keys(I).length&&"@id"in t&&(I=await N.compact({activeCtx:e,activeProperty:n,element:{"@id":t["@id"]},options:f}))}r||(r=N.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}})),w(o,r,I,{propertyIsArray:v.includes("@set")})}else{const e=!f.compactArrays||v.includes("@set")||v.includes("@list")||r(I)&&0===I.length||"@list"===s||"@graph"===s;w(p,n,I,{propertyIsArray:e})}}}else{if((h(e,t,"@container")||[]).includes("@index"))continue;const n=N.compactIri({activeCtx:e,iri:s,relativeTo:{vocab:!0}});w(x,n,p)}else{const n=await N.compact({activeCtx:e,activeProperty:t,element:p,options:f});r(n)&&0===n.length||w(x,s,n)}else{const t=await N.compact({activeCtx:e,activeProperty:"@reverse",element:p,options:f});for(const n in t)if(e.mappings.has(n)&&e.mappings.get(n).reverse){const o=t[n],r=(h(e,n,"@container")||[]).includes("@set")||!f.compactArrays;w(x,n,o,{propertyIsArray:r}),delete t[n]}if(Object.keys(t).length>0){const n=N.compactIri({activeCtx:e,iri:s,relativeTo:{vocab:!0}});w(x,n,t)}}else{let t=j(p).map(e=>N.compactIri({activeCtx:b,iri:e,relativeTo:{vocab:!0}}));1===t.length&&(t=t[0]);const n=N.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}}),o=(h(e,n,"@container")||[]).includes("@set")&&y(e,1.1)||r(t)&&0===p.length;w(x,n,t,{propertyIsArray:o})}else{let t=j(p).map(t=>N.compactIri({activeCtx:e,iri:t,relativeTo:{vocab:!1},base:f.base}));1===t.length&&(t=t[0]);x[N.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=t}}return x}return n},N.compactIri=({activeCtx:e,iri:t,value:n=null,relativeTo:r={vocab:!1},reverse:a=!1,base:s=null})=>{if(null===t)return t;e.isPropertyTermScoped&&e.previousContext&&(e=e.previousContext);const u=e.getInverse();if(v(t)&&t in u&&"@none"in u[t]&&"@type"in u[t]["@none"]&&"@none"in u[t]["@none"]["@type"])return u[t]["@none"]["@type"]["@none"];if(r.vocab&&t in u){const o=e["@language"]||"@none",r=[];i(n)&&"@index"in n&&!("@graph"in n)&&r.push("@index","@index@set"),i(n)&&"@preserve"in n&&(n=n["@preserve"][0]),d(n)?("@index"in n&&r.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n&&r.push("@graph@id","@graph@id@set"),r.push("@graph","@graph@set","@set"),"@index"in n||r.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n||r.push("@graph@id","@graph@id@set")):i(n)&&!c(n)&&r.push("@id","@id@set","@type","@set@type");let s="@language",u="@null";if(a)s="@type",u="@reverse",r.push("@set");else if(l(n)){"@index"in n||r.push("@list");const e=n["@list"];if(0===e.length)s="@any",u="@none";else{let t=0===e.length?o:null,n=null;for(let o=0;o<e.length;++o){const r=e[o];let i="@none",a="@none";if(c(r))if("@direction"in r){i=`${(r["@language"]||"").toLowerCase()}_${r["@direction"]}`}else"@language"in r?i=r["@language"].toLowerCase():"@type"in r?a=r["@type"]:i="@null";else a="@id";if(null===t?t=i:i!==t&&c(r)&&(t="@none"),null===n?n=a:a!==n&&(n="@none"),"@none"===t&&"@none"===n)break}t=t||"@none",n=n||"@none","@none"!==n?(s="@type",u=n):u=t}}else{if(c(n))if("@language"in n&&!("@index"in n)){r.push("@language","@language@set"),u=n["@language"];const e=n["@direction"];e&&(u=`${u}_${e}`)}else"@direction"in n&&!("@index"in n)?u="_"+n["@direction"]:"@type"in n&&(s="@type",u=n["@type"]);else s="@type",u="@id";r.push("@set")}r.push("@none"),i(n)&&!("@index"in n)&&r.push("@index","@index@set"),c(n)&&1===Object.keys(n).length&&r.push("@language","@language@set");const p=function(e,t,n,o,r,a){null===a&&(a="@null");const s=[];if(("@id"===a||"@reverse"===a)&&i(n)&&"@id"in n){"@reverse"===a&&s.push("@reverse");const t=N.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:!0}});e.mappings.has(t)&&e.mappings.get(t)&&e.mappings.get(t)["@id"]===n["@id"]?s.push.apply(s,["@vocab","@id"]):s.push.apply(s,["@id","@vocab"])}else{s.push(a);const e=s.find(e=>e.includes("_"));e&&s.push(e.replace(/^[^_]+_/,"_"))}s.push("@none");const l=e.inverse[t];for(const e of o){if(!(e in l))continue;const t=l[e][r];for(const e of s)if(e in t)return t[e]}return null}(e,t,n,r,s,u);if(null!==p)return p}if(r.vocab&&"@vocab"in e){const n=e["@vocab"];if(0===t.indexOf(n)&&t!==n){const o=t.substr(n.length);if(!e.mappings.has(o))return o}}let p=null;const f=[];let h=e.fastCurieMap;const g=t.length-1;for(let e=0;e<g&&t[e]in h;++e)h=h[t[e]],""in h&&f.push(h[""][0]);for(let o=f.length-1;o>=0;--o){const r=f[o],i=r.terms;for(const o of i){const i=o+":"+t.substr(r.iri.length);e.mappings.get(o)._prefix&&(!e.mappings.has(i)||null===n&&e.mappings.get(i)["@id"]===t)&&(null===p||I(i,p)<0)&&(p=i)}}if(null!==p)return p;for(const[n,r]of e.mappings)if(r&&r._prefix&&t.startsWith(n+":"))throw new o(`Absolute IRI "${t}" confused with prefix "${n}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:e});if(!r.vocab){if("@base"in e){if(e["@base"]){const n=m(x(s,e["@base"]),t);return b.test(n)?"./"+n:n}return t}return m(s,t)}return t},N.compactValue=({activeCtx:e,activeProperty:t,value:n,options:o})=>{if(c(n)){const o=h(e,t,"@type"),r=h(e,t,"@language"),i=h(e,t,"@direction"),s=h(e,t,"@container")||[],l="@index"in n&&!s.includes("@index");if(!l&&"@none"!==o){if(n["@type"]===o)return n["@value"];if("@language"in n&&n["@language"]===r&&"@direction"in n&&n["@direction"]===i)return n["@value"];if("@language"in n&&n["@language"]===r)return n["@value"];if("@direction"in n&&n["@direction"]===i)return n["@value"]}const c=Object.keys(n).length,d=1===c||2===c&&"@index"in n&&!l,u="@language"in e,p=a(n["@value"]),f=e.mappings.has(t)&&null===e.mappings.get(t)["@language"];if(d&&"@none"!==o&&(!u||!p||f))return n["@value"];const v={};return l&&(v[N.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?v[N.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=N.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(v[N.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(v[N.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),v[N.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],v}const r=f(e,t,{vocab:!0},o),i=h(e,t,"@type"),s=N.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:"@vocab"===i},base:o.base});return"@id"===i||"@vocab"===i||"@graph"===r?s:{[N.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:s}}},697:function(e,t,n){"use strict";e.exports=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,n)},t.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(t)},t.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(t)},t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[70,112],{188:function(e,i,a){"use strict";a.r(i);a(36),a(80);var n=a(2);function t(e,i,a,t,s,r){e.guides=[],e.pageSizeOptions=[10,20,50,100],e.page=1,e.pageSize=e.pageSizeOptions[0],e.translationSubscription=void 0,e.init=function(){a.getGuides().then(i=>{e.guides=t("orderBy")(i,"guideOrder"),e.guides.forEach(e=>{switch(e.translatedGuideName=n.GuideUtils.translateLocalMessage(s,r,e.guideName),e.translatedGuideDescription=n.GuideUtils.translateLocalMessage(s,r,e.guideDescription),e.guideLevel){case void 0:case 0:e.guideLevelLabel="view.guides.level.beginner";break;case 1:e.guideLevelLabel="view.guides.level.intermediate";break;default:e.guideLevelLabel="view.guides.level.advanced"}}),e.matchedElements=e.guides,e.changePagination()})},e.startGuide=function(e){a.startGuide(e)},this.translationSubscription||(this.translationSubscription=i.$on("$translateChangeSuccess",()=>{e.init()})),e.changePagination=function(){angular.isDefined(e.guides)&&(e.displayedGuides=e.guides.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(i){e.page=1,e.pageSize=i||e.pageSizeOptions[0],e.changePagination()},e.init()}angular.module("graphdb.framework.guides.controllers",["ui.bootstrap","graphdb.framework.guides.services","graphdb.framework.core.directives.paginations"]).controller("GuidesCtrl",t),t.$inject=["$scope","$rootScope","GuidesService","$filter","$translate","$interpolate"]},80:function(e,i){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></uib-pagination>'}}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[71,225],{166:function(t,e,a){"use strict";a.r(e),a.d(e,"YasguiPersistenceMigrationService",(function(){return o}));var n=a(95);const i="yagui__"+n.VIEW_SPARQL_EDITOR,s="completed",r="rejected",o=function(){const t=()=>({val:{active:null,tabs:[],tabConfig:{}}}),e=(t,e,a=null)=>{t.val.migration={date:(new Date).toISOString(),status:e,error:a}},a=(t,e)=>{t.val.tabs.push(e)},n=(t,e)=>{t.val.tabConfig[e.id]=e},o=t=>{let e=localStorage.getItem(t);if(e)return e=JSON.parse(e),e},l=t=>{t.val.tabs=t.val.tabs.filter(t=>!t.startsWith("_"))},g=t=>{for(const e in t.val.tabConfig)e.startsWith("_")&&delete t.val.tabConfig[e]},c=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},u=(t,e)=>`${e} ${t}`,d=()=>Math.random().toString(36).substring(7);return{isMigrationNeeded:()=>{const t=o(i);let e=!1;return t&&(e=t.val.migration&&(t.val.migration.status===s||t.val.migration.status===r)),!(!localStorage.getItem("ls.tabs-state")||e)},revertMigration:()=>{const t=o(i);l(t),g(t),c(i,t)},migrateYasguiPersistence:r=>{let l=o("ls.tabs-state");l=Object.freeze(l);let g=o(i);g||(g=t()),l.map(t=>({id:t.id,name:t.name,yasqe:{value:t.query,sameAs:t.sameAs,infer:t.inference,pageSize:1e3,pageNumber:1},yasr:{response:null,settings:{selectedPlugin:"extended_table",pluginsConfig:{}}},requestConfig:{method:"POST"}})).forEach((t,e)=>{t.id="_"+d(),t.name=t.name||u(e,r),a(g,t.id),n(g,t)}),g.val.active=g.val.tabs[0],e(g,s),c(i,g)},rejectMigration:()=>{const t=o(i);e(t,r),c(i,t)}}}()},95:function(t,e,a){"use strict";a.r(e),a.d(e,"VIEW_SPARQL_EDITOR",(function(){return n}));const n="graphdb-workbench-sparql-editor"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[62,213],{112:function(n,e,t){"use strict";t.r(e);t(31),t(92);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,p,f,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);f.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),p.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;f.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);f.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function p(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function f(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",p).controller("CreateConnectorCtrl",f).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],p.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],f.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},92:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[72,248],{122:function(n,e,t){"use strict";t.r(e);t(32),t(88);function o(n){const e=[];return Object.keys(n).forEach((function(t){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]))})),e.join("&")}function r(n,e){return _.reduce(n,(function(n,t){if(""===t.key&&""===t.value);else{if(""===t.key)throw new Error(e.instant("externalsync.empty.value.key.error",{value:t.value}));if(n.hasOwnProperty(t.key))throw new Error(e.instant("externalsync.duplicate.key.error",{key:t.key}));n[t.key]=t.value}return n}),{})}function i(n,e){for(let o=0;o<e.length;o++){const r=e[o];if("StringArray"===r.__type)n[r.__name]||(n[r.__name]=[""]);else if("OptionArray"===r.__type)if(n[r.__name])for(let e=0;e<r.__childOptions.length;e++){const t=r.__childOptions[e];if("Boolean"===t.__type)for(let e=0;e<n[r.__name].length;e++){const o=n[r.__name][e];!o.hasOwnProperty([t.__name])&&angular.isDefined(t.__defaultValue)&&(o[t.__name]=t.__defaultValue)}}else{n[r.__name]=[];const e={};for(let n=0;n<r.__childOptions.length;n++){const t=r.__childOptions[n];"StringArray"===t.__type?e[t.__name]=[""]:e[t.__name]=angular.isUndefined(t.__defaultValue)?"":t.__defaultValue}n[r.__name].push(e)}else"Map"===r.__type?n[r.__name]?n[r.__name]=(t=n[r.__name],_.map(t,(function(n,e){return{key:e,value:n}}))):n[r.__name]=[]:"JsonString"===r.__type?!n[r.__name]||n[r.__name]instanceof String||"string"==typeof n[r.__name]||(n[r.__name]=angular.toJson(n[r.__name],2)):angular.isUndefined(n[r.__name])&&(n[r.__name]=angular.isUndefined(r.__defaultValue)?"":r.__defaultValue)}var t;return n}function c(n,e,t){return n.post("repositories/"+e,o({query:t}),{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"}})}function a(n){return n.substring(0,n.length-1)+"/instance#"}function s(n,e,t,o,i){const c=function n(e,t){const o={};return _.each(t,(function(t){angular.isDefined(e[t.__name])&&("OptionArray"===t.__type?(o[t.__name]=[],_.each(e[t.__name],(function(e){o[t.__name].push(n(e,t.__childOptions))}))):o[t.__name]=_.cloneDeep(e[t.__name]))})),o}(t,o);for(let n=0;n<o.length;n++)try{"Map"===o[n].__type?c[o[n].__name]=r(c[o[n].__name],$translate):"JsonString"===o[n].__type&&(c[o[n].__name]=angular.fromJson(c[o[n].__name]))}catch(e){return i(o[n].__label,e.message),null}!function n(e){Array.isArray(e)&&(e=_.filter(e,(function(n){return null!==n&&(!n.trim||""!==n.trim())})));return Object.keys(e).forEach((function(t){""!==e[t]&&null!=e[t]||!1===e[t]?"object"==typeof e[t]&&(e[t]=n(e[t])):delete e[t]})),e}(c);let s="";s+="PREFIX :<"+e+">\n";return s+="PREFIX inst:<"+a(e)+">\n",s+="INSERT DATA {\n",s+="\tinst:"+n+" :createConnector '''\n",s+=angular.toJson(c,2),s+="\n''' .\n}\n",s=s.replace(/\\/g,"\\\\\\"),s}function l(n,e,t,r,l,u,p,f,d,g){function m(e){n.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e?g.instant("externalsync.repairing"):g.instant("externalsync.creating"),waitOnRepairStartOnce:!!e,eta:"-",inline:!1,iri:null}}function y(e,t,o){return m(o),$.extend(n.beingBuiltConnector,{iri:a(e)+t,name:t,inline:!1,doneCallback:function(){n.beingBuiltConnector.modalInstance.dismiss("cancel")}}),n.beingBuiltConnector.modalInstance=r.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:n}),n.beingBuiltConnector.modalInstance}function C(e,r,i){const c=y(e.value,r.name,!1);f.addStatements(t.getActiveRepository(),o({update:r.query})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))})),l.success(g.instant("created.connector",{name:r.name}))}),(function(n){l.error(getError(n)),i()})).finally((function(){c.dismiss("cancel")}))}n.loader=!1,n.controllers=[],n.existing={},n.definitions={},n.getLoaderMessage=function(){const e=(Date.now()-n.loaderStartTime)/1e3,t=n.getHumanReadableSeconds(e);let o="";return o=n.progressMessage?n.progressMessage+"... "+t:g.instant("common.running.operation",{timeHuman:t}),n.extraMessage&&e>10&&(o+="\n"+n.extraMessage),o},n.setLoader=function(e,t,o){e?(n.loader=!0,n.loaderStartTime=Date.now(),n.progressMessage=t,n.extraMessage=o):(n.loader=!1,n.progressMessage="",n.extraMessage="")},n.initConnector=function(e){return d.initConnector(encodeURIComponent(e.value)).then((function(t){return n.definitions[e.key]=t.data,d.hasConnector(encodeURIComponent(e.value)).then((function(t){n.existing[e.key]=t.data}))}))},n.getConnectors=function(){n.isLicenseValid()&&n.canWriteActiveRepo()&&(n.setLoader(!0,g.instant("externalsync.fetching.connectors"),g.instant("common.extra.message")),d.getConnectors().then((function(o){n.connectors=Object.keys(o.data).map((function(n){return{key:n,value:o.data[n]}})),p.all(_.map(n.connectors,(function(e){return n.initConnector(e)}))).finally((function(){m();const o=function(n){const e=_.map(n,(function(n){return"<"+n.value+"connectorStatus>"})).join("|");return e?"SELECT ?connector ?status { ?connector "+e+" ?status }":null}(n.connectors);o?function(n){return c(e,t.getActiveRepository(),n)}(o).then((function(e){const t=function(n){if(n.bindings)for(let e=0;e<n.bindings.length;e++)try{const t=JSON.parse(n.bindings[e].status.value);if("BUILDING"===t.status)return{connector:n.bindings[e].connector.value,status:t}}catch(n){console.error(n)}return{}}(e.data.results);if(t.connector){const e=t.connector.split(/#/);e[0]=e[0].replace(/\/instance$/,"#"),o=e[0],r=e[1],m(),$.extend(n.beingBuiltConnector,{iri:a(o)+r,name:r,inline:!0,doneCallback:function(){n.beingBuiltConnector.inline=!1}})}var o,r})).finally((function(){n.setLoader(!1)})):n.setLoader(!1)}))})).catch((function(e){n.setLoader(!1),l.error(getError(e),g.instant("externalsync.could.not.get.connectors.error"))})),n.existing={})},n.getOptions=function(e){return n.definitions[e.key]},n.isEmpty=function(n){return angular.isObject(n)&&0===Object.keys(n).length},n.toPrettyJson=function(n){return angular.toJson(n,2)},n.$watch((function(){return t.getActiveRepository()}),n.getConnectors),n.$watch((function(){return t.getActiveLocation()}),n.getConnectors),n.copyConnector=function(e,t){let o;angular.isUndefined(t)||(o=_.cloneDeep(t),o.name=o.name+"-copy");r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(o)?{name:"",values:{}}:o},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.newConnector=function(e,t){r.open({templateUrl:"pages/createConnector.html",controller:"CreateConnectorCtrl",size:"lg",backdrop:"static",resolve:{connector:function(){return e},values:function(){return angular.isUndefined(t)?{name:"",values:{}}:t},options:function(){return n.getOptions(e)}}}).result.then((function(t){C(e,t,(function(){t.skipConversion=!0,n.newConnector(e,t)}))}))},n.repair=function(e,r){u.openSimpleModal({title:g.instant("externalsync.confirm.repair"),message:g.instant("externalsync.repair.warning.msg"),warning:!0}).result.then((function(){const i=y(r.value,e.name,!0),c=(s=e.name,"PREFIX prefix:<"+(u=r.value)+">\nINSERT DATA {\n\t<"+a(u)+s+'> prefix:repairConnector ""\n}');var s,u;f.addStatements(t.getActiveRepository(),o({update:c})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(r.value)).then((function(e){n.existing[r.key]=e.data}))})),l.success(g.instant("externalsync.repair.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){i.dismiss("cancel")}))}))},n.delete=function(e,i){const c=i.key.indexOf("Elastic")>=0||i.key.indexOf("Solr")>=0;r.open({templateUrl:"js/angular/externalsync/templates/deleteConnector.html",controller:"DeleteConnectorCtrl",resolve:{popoverMsg:function(){return c?g.instant("delete.connector.conditional",{type:i.key}):""}}}).result.then((function(r){n.setLoader(!0,g.instant("externalsync.delete.progress.msg",{name:e.name}),g.instant("externalsync.extra.message.warning"));const a=function(n,e,t){const o=e.substring(0,e.length-1)+"/instance#";return"PREFIX prefix:<"+e+">\nINSERT DATA {\n\t<"+o+n+'> prefix:dropConnector "'+(t?"force":"")+'"\n}'}(e.name,i.value,r);f.addStatements(t.getActiveRepository(),o({update:a})).then((function(){d.getConnectors().then((function(){d.hasConnector(encodeURIComponent(i.value)).then((function(e){n.existing[i.key]=e.data}))})),r?(l.success(g.instant("externalsync.delete.force.success.msg",{name:e.name})),c&&l.warning(g.instant("externalsync.delete.remote.warning",{key:i.key}))):l.success(g.instant("externalsync.delete.success.msg",{name:e.name}))}),(function(n){l.error(getError(n))})).finally((function(){n.setLoader(!1)}))}))},n.viewQuery=function(e,t){r.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){const o=n.getOptions(e);return s(t.name,e.value,i(t.values,o),o)}}})}}function u(n,e,t){n.force=!1,n.popoverMsg=t,n.ok=function(){e.close(n.force)},n.cancel=function(){e.dismiss()}}function p(n,e,t,o,r){function i(){return s(n.name,t.value,n.values,n.options,(function(n,e){r.error(e,n)}))}n.connector=t,n.addField=function(e,t){const o=_.cloneDeep(n.defaultValues[t][0]);n.values[t].splice(e+1,0,o)},n.addOption=function(n,e){e.splice(n+1,0,"")},n.deleteOption=function(n,e){e.splice(n,1)},n.addMapOption=function(n,e){e.splice(n+1,0,{key:"",value:""})},n.deleteMapOption=function(n,e){e.splice(n,1)},n.ok=function(){if(n.form.$valid){const t=i();t&&e.close({name:n.name,values:n.values,options:n.options,query:t})}},n.viewQuery=function(){const n=i();n&&o.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},n.cancel=function(){e.dismiss("cancel")}}function f(n,e,t,o,r,c,a,s){angular.extend(this,e("ExtendNewConnectorCtrl",{$scope:n,$uibModalInstance:o,connector:r,$uibModal:c})),n.values=a.values,n.options=s,n.name=a.name,a.skipConversion||(n.values=i(n.values,n.options)),n.defaultValues=_.cloneDeep(n.values)}function d(n,e,t,o,r){function i(){const i=function(n){const e=n.replace(/\/instance#.+$/,"#connectorStatus");let t="";return t+="SELECT ?status {\n",t+="\t<"+n+"> <"+e+"> ?status",t+="\n}",t}(n.beingBuiltConnector.iri);n.beingBuiltConnector.iri=null,n.progressInterval=e((function(){(function(n){return c(t,o.getActiveRepository(),n)})(i).then((function(t){const o=function(n){if(n.bindings&&n.bindings.length>0)try{return JSON.parse(n.bindings[0].status.value)}catch(n){console.error(n)}return{}}(t.data.results);"BUILDING"===o.status?(n.beingBuiltConnector.status=o,n.beingBuiltConnector.percentDone=(100*o.processedEntities/o.estimatedEntities).toFixed(0),n.beingBuiltConnector.eta=n.getHumanReadableSeconds(o.etaSeconds),n.beingBuiltConnector.actionName=o.repair?r.instant("externalsync.repairing"):r.instant("externalsync.creating"),n.beingBuiltConnector.waitOnRepairStartOnce=!1):"BUILT"!==o.status||n.beingBuiltConnector.waitOnRepairStartOnce||(e.cancel(n.progressInterval),n.beingBuiltConnector.doneCallback&&n.beingBuiltConnector.doneCallback())}))}),1e3),n.$on("$destroy",(function(){e.cancel(n.progressInterval)}))}n.beingBuiltConnector=n.beingBuiltConnector||{},!n.beingBuiltConnector.inline&&n.beingBuiltConnector.iri&&i(),n.$watch("beingBuiltConnector.iri",(function(e){n.beingBuiltConnector.inline&&e&&i()}))}angular.module("graphdb.framework.externalsync.controllers",["graphdb.framework.rest.rdf4j.repositories.service","graphdb.framework.rest.connectors.service"]).controller("ConnectorsCtrl",l).controller("ExtendNewConnectorCtrl",p).controller("CreateConnectorCtrl",f).controller("CreateProgressCtrl",d).controller("DeleteConnectorCtrl",u).filter("ceil",(function(){return function(n){return Math.ceil(n)}})),l.$inject=["$scope","$http","$repositories","$uibModal","toastr","ModalService","$q","RDF4JRepositoriesRestService","ConnectorsRestService","$translate"],u.$inject=["$scope","$uibModalInstance","popoverMsg"],p.$inject=["$scope","$uibModalInstance","connector","$uibModal","toastr"],f.$inject=["$scope","$controller","$http","$uibModalInstance","connector","$uibModal","values","options"],d.$inject=["$scope","$interval","$http","$repositories","$translate"]},88:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[73,153],{191:function(e,i,t){"use strict";t.r(i);var s=t(82);function n(e,i,t){let n;e.isHelpVisible=!1,e.fileSizeLimitInfoTemplateUrl="js/angular/import/templates/fileSizeLimitInfo.html";const r=()=>{if(n.isPristine(e.activeTabId)){let i=t.getResources();e.isHelpVisible=!i||0===i.length}else e.isHelpVisible=n.isHelpVisible(e.activeTabId)};e.openTab=e=>{t.updateActiveTabId(e)},e.toggleHelp=()=>{n.setIsHelpVisible(e.activeTabId,!e.isHelpVisible),r()};const l=[];l.push(t.onActiveTabIdUpdated(t=>{e.activeTabId=t,i.hash(e.activeTabId),r()})),l.push(t.onResourcesUpdated(r));e.$on("$destroy",()=>l.forEach(e=>e())),(()=>{n=new o;const t=i.hash()||s.TABS.USER;e.openTab(t),r()})()}angular.module("graphdb.framework.impex.import.controllers.tab",[]).controller("TabController",n),n.$inject=["$scope","$location","ImportContextService"];class o{constructor(){this._helpVisibility={[s.TABS.USER]:{isHelpVisible:void 0},[s.TABS.SERVER]:{isHelpVisible:void 0}}}isPristine(e){return void 0===this._helpVisibility[e].isHelpVisible}setIsHelpVisible(e,i){this._helpVisibility[e].isHelpVisible=i}isHelpVisible(e){return this._helpVisibility[e]&&this._helpVisibility[e].isHelpVisible}}},82:function(e,i,t){"use strict";t.r(i),t.d(i,"TABS",(function(){return n}));var s=t(65);const n={USER:"user",SERVER:"server"};function o(e){let i=n.USER,t=void 0,o=[],r=!0,l=[];return{updateActiveTabId:function(t){i=t,e.emit("activeTabIdUpdated",d())},getActiveTabId:d,onActiveTabIdUpdated:function(i){return e.subscribe("activeTabIdUpdated",()=>i(d()))},getFiles:p,addFile:function(i){o.push(i),e.emit("fileAdded",Object(s.cloneDeep)(i))},updateFiles:function(i){o=i,e.emit("filesUpdated",p())},onFilesUpdated:function(i){return e.subscribe("filesUpdated",()=>i(p()))},updateResources:function(i){t=i,e.emit("resourcesUpdated",u())},getResources:u,onResourcesUpdated:function(i){return e.subscribe("resourcesUpdated",()=>i(u()))},updateShowLoader:function(i){r=i,e.emit("showLoaderUpdated",a())},getShowLoader:a,onShowLoaderUpdated:function(i){return e.subscribe("showLoaderUpdated",()=>i(a()))},updateSelectedFilesNames:function(i){l=i,e.emit("selectedFilesNamesUpdated",c())},getSelectedFilesNames:c,onSelectedFilesNamesUpdated:function(i){return e.subscribe("selectedFilesNamesUpdated",()=>i(a()))}};function c(){return l}function a(){return r}function d(){return i}function p(){return Object(s.cloneDeep)(o)}function u(){return Object(s.cloneDeep)(t)}}angular.module("graphdb.framework.import.services.importcontext",[]).factory("ImportContextService",o),o.$inject=["EventEmitterService"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[74,271],{101:function(e,i,t){"use strict";t.r(i),t.d(i,"FileUtils",(function(){return s}));class s{static convertBytesToMegabytes(e){return Math.floor(e/1048576)}static getFilenameAndExtension(e){const i=e.lastIndexOf(".");return{filename:e.substring(0,i),extension:e.substring(i+1)}}}},199:function(e,i,t){"use strict";t.r(i),t.d(i,"FilePrefixRegistry",(function(){return n}));var s=t(101);class n{constructor(){this.filesPrefixRegistry={}}buildPrefixesRegistry(e){e.filter(e=>"file"===e.type).forEach(e=>{const i=s.FileUtils.getFilenameAndExtension(e.name).filename,t=i.lastIndexOf("-");let n=t<0?0:i.substring(t+1),r=i.substring(0,t);if(t<0?(n=0,r=i):(n=i.substring(t+1),r=i.substring(0,t)),n){n=parseInt(n);const e=this.filesPrefixRegistry[r]||0;this.filesPrefixRegistry[r]=e<n?n:e}else this.filesPrefixRegistry[r]=0})}prefixDuplicates(e){return e.map(e=>{const{filename:i,extension:t}=s.FileUtils.getFilenameAndExtension(e.name),n=`${i}-${this.getIndexForFile(i)}.${t}`;return new File([e],n,{type:e.type,lastModified:e.lastModified})})}getIndexForFile(e){let i=this.filesPrefixRegistry[e];return void 0!==i?i++:i=0,this.filesPrefixRegistry[e]=i,i}}}}]);
|