portfolio/js/jsonld.min.js

1 line
186 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.jsonld=t():e.jsonld=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=73)}([function(e,t,r){var n=r(38)("wks"),a=r(20),i=r(1).Symbol,o="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=n},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"2.5.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t,r){v.nextTick(function(){return e(t,r)})}function i(e,t){if(s.isArray(t))for(var r=0;r<t.length;++r)t[r]=i(e,t[r]);else if(u.isList(t))t["@list"]=i(e,t["@list"]);else if(s.isObject(t)){u.isBlankNode(t)&&(t["@id"]=e.getId(t["@id"]));for(var n=Object.keys(t).sort(),a=0;a<n.length;++a){var o=n[a];"@id"!==o&&(t[o]=i(e,t[o]))}}return t}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=r(5),s=r(4),c=r(45).IdentifierIssuer,l=r(6),f=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,p=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,d=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,h={headers:{accept:"application/ld+json, application/json"}},v={};e.exports=v,v.IdentifierIssuer=c;var y="function"==typeof setImmediate&&setImmediate,g=y?function(e){return y(e)}:function(e){return setTimeout(e,0)};"object"===("undefined"==typeof process?"undefined":o(process))&&"function"==typeof process.nextTick?v.nextTick=process.nextTick:v.nextTick=g,v.setImmediate=y?g:v.nextTick,v.clone=function(e){if(e&&"object"===(void 0===e?"undefined":o(e))){var t=void 0;if(s.isArray(e)){t=[];for(var r=0;r<e.length;++r)t[r]=v.clone(e[r])}else if(s.isObject(e)){t={};for(var n in e)t[n]=v.clone(e[n])}else t=e.toString();return t}return e},v.buildHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).some(function(e){return"accept"===e.toLowerCase()}))throw new RangeError('Accept header may not be specified; only "'+h.headers.accept+'" is supported.');return Object.assign({Accept:h.headers.accept},e)},v.parseLinkHeader=function(e){for(var t={},r=e.match(f),n=0;n<r.length;++n){var a=r[n].match(p);if(a){for(var i={target:a[1]},o=a[2];a=d.exec(o);)i[a[1]]=void 0===a[2]?a[3]:a[2];var u=i.rel||"";Array.isArray(t[u])?t[u].push(i):t[u]=u in t?[t[u],i]:i}}return t},v.validateTypeValue=function(e){if(!s.isString(e)&&!s.isEmptyObject(e)){var t=!1;if(s.isArray(e)){t=!0;for(var r=0;r<e.length;++r)if(!s.isString(e[r])){t=!1;break}}if(!t)throw new l('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, or an empty object.',"jsonld.SyntaxError",{code:"invalid type value",value:e})}},v.hasProperty=function(e,t){if(t in e){var r=e[t];return!s.isArray(r)||r.length>0}return!1},v.hasValue=function(e,t,r){if(v.hasProperty(e,t)){var n=e[t],a=u.isList(n);if(s.isArray(n)||a){a&&(n=n["@list"]);for(var i=0;i<n.length;++i)if(v.compareValues(r,n[i]))return!0}else if(!s.isArray(r))return v.compareValues(r,n)}return!1},v.addValue=function(e,t,r,n){if(n=n||{},"propertyIsArray"in n||(n.propertyIsArray=!1),"allowDuplicate"in n||(n.allowDuplicate=!0),s.isArray(r)){0!==r.length||!n.propertyIsArray||t in e||(e[t]=[]);for(var a=0;a<r.length;++a)v.addValue(e,t,r[a],n)}else if(t in e){var i=!n.allowDuplicate&&v.hasValue(e,t,r);s.isArray(e[t])||i&&!n.propertyIsArray||(e[t]=[e[t]]),i||e[t].push(r)}else e[t]=n.propertyIsArray?[r]:r},v.getValues=function(e,t){return[].concat(e[t]||[])},v.removeProperty=function(e,t){delete e[t]},v.removeValue=function(e,t,r,n){"propertyIsArray"in(n=n||{})||(n.propertyIsArray=!1);var a=v.getValues(e,t).filter(function(e){return!v.compareValues(e,r)});0===a.length?v.removeProperty(e,t):1!==a.length||n.propertyIsArray?e[t]=a:e[t]=a[0]},v.relabelBlankNodes=function(e,t){return t=t||{},i(t.issuer||new c("_:b"),e)},v.compareValues=function(e,t){return e===t||(!(!u.isValue(e)||!u.isValue(t)||e["@value"]!==t["@value"]||e["@type"]!==t["@type"]||e["@language"]!==t["@language"]||e["@index"]!==t["@index"])||!!(s.isObject(e)&&"@id"in e&&s.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"])},v.compareShortestLeast=function(e,t){return e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1},v.normalizeDocumentLoader=function(e){return e.length<2?v.callbackify(e):function(){var t=n(regeneratorRuntime.mark(function t(r){var n,i=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=i[1],t.abrupt("return",new Promise(function(t,i){try{e(r,function(e,r){if("function"==typeof n)return a(n,e,r);e?i(e):t(r)})}catch(e){if("function"==typeof n)return a(n,e);i(e)}}));case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},v.callbackify=function(e){return n(regeneratorRuntime.mark(function t(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n[n.length-1],"function"==typeof o&&n.pop(),u=void 0,t.prev=3,t.next=6,e.apply(null,n);case 6:u=t.sent,t.next=14;break;case 9:if(t.prev=9,t.t0=t.catch(3),"function"!=typeof o){t.next=13;break}return t.abrupt("return",a(o,t.t0));case 13:throw t.t0;case 14:if("function"!=typeof o){t.next=16;break}return t.abrupt("return",a(o,null,u));case 16:return t.abrupt("return",u);case 17:case"end":return t.stop()}},t,this,[[3,9]])}))}},function(e,t,r){"use strict";var n={};e.exports=n,n.isArray=Array.isArray,n.isBoolean=function(e){return"boolean"==typeof e||"[object Boolean]"===Object.prototype.toString.call(e)},n.isDouble=function(e){return n.isNumber(e)&&-1!==String(e).indexOf(".")},n.isEmptyObject=function(e){return n.isObject(e)&&0===Object.keys(e).length},n.isNumber=function(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)},n.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},n.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},n.isString=function(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)},n.isUndefined=function(e){return void 0===e}},function(e,t,r){"use strict";var n=r(4),a={};e.exports=a,a.isSubject=function(e){if(n.isObject(e)&&!("@value"in e||"@set"in e||"@list"in e)){return Object.keys(e).length>1||!("@id"in e)}return!1},a.isSubjectReference=function(e){return n.isObject(e)&&1===Object.keys(e).length&&"@id"in e},a.isValue=function(e){return n.isObject(e)&&"@value"in e},a.isList=function(e){return n.isObject(e)&&"@list"in e},a.isGraph=function(e){return n.isObject(e)&&"@graph"in e&&1===Object.keys(e).filter(function(e){return"@id"!==e&&"@index"!==e}).length},a.isSimpleGraph=function(e){return a.isGraph(e)&&!("@id"in e)},a.isBlankNode=function(e){return!!n.isObject(e)&&("@id"in e?0===e["@id"].indexOf("_:"):0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e))}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.exports=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"An unspecified JSON-LD error occurred.",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jsonld.Error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.name=r,o.message=e,o.details=i,o}return i(t,e),t}(Error)},function(e,t,r){var n=r(1),a=r(2),i=r(10),o=r(16),u=r(28),s=function(e,t,r){var c,l,f,p,d=e&s.F,h=e&s.G,v=e&s.S,y=e&s.P,g=e&s.B,m=h?n:v?n[t]||(n[t]={}):(n[t]||{}).prototype,b=h?a:a[t]||(a[t]={}),x=b.prototype||(b.prototype={});h&&(r=t);for(c in r)l=!d&&m&&void 0!==m[c],f=(l?m:r)[c],p=g&&l?u(f,n):y&&"function"==typeof f?u(Function.call,f):f,m&&o(m,c,f,e&s.U),b[c]!=f&&i(b,c,p),y&&x[c]!=f&&(x[c]=f)};n.core=a,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,r){var n=r(9);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(11),a=r(27);e.exports=r(12)?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(8),a=r(51),i=r(35),o=Object.defineProperty;t.f=r(12)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),a)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){e.exports=!r(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t,r){try{return e(t,r)}catch(e){process.nextTick(function(){throw e})}}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={};e.exports=o;var u="function"==typeof setImmediate&&setImmediate,s=u?function(e){return u(e)}:function(e){return setTimeout(e,0)};"object"===("undefined"==typeof process?"undefined":i(process))&&"function"==typeof process.nextTick?o.nextTick=process.nextTick:o.nextTick=s,o.setImmediate=u?s:o.nextTick,o.clone=function(e){if(e&&"object"===(void 0===e?"undefined":i(e))){var t=void 0;if(Array.isArray(e)){t=[];for(var r=0;r<e.length;++r)t[r]=o.clone(e[r])}else if(o.isObject(e)){t={};for(var n in e)t[n]=o.clone(e[n])}else t=e.toString();return t}return e},o.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},o.isUndefined=function(e){return void 0===e},o.callbackify=function(e){return n(regeneratorRuntime.mark(function t(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n[n.length-1],"function"==typeof o&&n.pop(),u=void 0,t.prev=3,t.next=6,e.apply(null,n);case 6:u=t.sent,t.next=14;break;case 9:if(t.prev=9,t.t0=t.catch(3),"function"!=typeof o){t.next=13;break}return t.abrupt("return",a(o,t.t0));case 13:throw t.t0;case 14:if("function"!=typeof o){t.next=16;break}return t.abrupt("return",a(o,null,u));case 16:return t.abrupt("return",u);case 17:case"end":return t.stop()}},t,this,[[3,9]])}))}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t,r,n){if(l(e))for(var i=0;i<e.length;++i)a(e[i],t,r,n);else if(f(e))for(var o in e)if("@context"===o){var u=e[o];if(l(u))for(var s=u.length,c=0;c<s;++c){var d=u[c];if(p(d))d=g(n,d),r?!1!==t[d]&&(d=t[d],l(d)?(Array.prototype.splice.apply(u,[c,1].concat(d)),c+=d.length-1,s=u.length):u[c]=d):d in t||(t[d]=!1);else for(var h in d)f(d[h])&&a(d[h],t,r,n)}else if(p(u))u=g(n,u),r?!1!==t[u]&&(e[o]=t[u]):u in t||(t[u]=!1);else for(var v in u)f(u[v])&&a(u[v],t,r,n)}else a(e[o],t,r,n)}var i=function(){var e=n(regeneratorRuntime.mark(function e(t,r){var i,u,c=function(){var e=n(regeneratorRuntime.mark(function e(t,i,d){var h,v,y=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(Object.keys(i).length>b)){e.next=2;break}throw new s("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:"loading remote context failed",max:b});case 2:return h={},Object.keys(u).forEach(function(e){!1!==u[e]&&(h[e]=u[e])}),a(t,h,!1,r.base),v=Object.keys(h).filter(function(e){return!1===h[e]}),e.abrupt("return",Promise.all(v.map(function(){var e=n(regeneratorRuntime.mark(function e(n){var u,v,g;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n in i)){e.next=2;break}throw new s("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:"recursive context inclusion",url:n});case 2:return u=o.clone(i),u[n]=!0,v=void 0,g=void 0,e.prev=6,e.next=9,d(n);case 9:v=e.sent,g=v.document||null,p(g)&&(g=JSON.parse(g)),e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(6),new s("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:n,cause:e.t0});case 17:if(f(g)){e.next=19;break}throw new s("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:n});case 19:return g="@context"in g?{"@context":g["@context"]}:{"@context":{}},v.contextUrl&&(l(g["@context"])||(g["@context"]=[g["@context"]]),g["@context"].push(v.contextUrl)),e.next=23,c(g,u,d);case 23:h[n]=g["@context"],a(t,h,!0,r.base);case 25:case"end":return e.stop()}},e,y,[[6,14]])}));return function(t){return e.apply(this,arguments)}}())));case 7:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}();return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.normalizeDocumentLoader(r.documentLoader),u={},e.next=4,c(t,{},i);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}(),o=r(3),u=r(132),s=r(6),c=r(4),l=c.isArray,f=c.isObject,p=c.isString,d=c.isUndefined,h=r(26),v=h.isAbsolute,y=h.isRelative,g=h.prependBase,m=h.parse,b=10,x={};e.exports=x,x.cache=new u,x.process=function(e){var t=e.activeCtx,r=e.localCtx,n=e.options;f(r)&&"@context"in r&&l(r["@context"])&&(r=r["@context"]);var a=l(r)?r:[r];if(0===a.length)return t.clone();for(var i=t,o=0;o<a.length;++o){var u=a[o];if(null!==u){if(f(u)&&"@context"in u&&(u=u["@context"]),!f(u))throw new s("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:u});if(x.cache){var c=x.cache.get(t,u);if(c){i=t=c;continue}}t=i,i=i.clone();var d={};if("@version"in u){if(1.1!==u["@version"])throw new s("Unsupported JSON-LD version: "+u["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:u});if(t.processingMode&&"json-ld-1.0"===t.processingMode)throw new s("@version: "+u["@version"]+" not compatible with "+t.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:u});i.processingMode="json-ld-1.1",i["@version"]=u["@version"],d["@version"]=!0}if(i.processingMode=i.processingMode||t.processingMode||"json-ld-1.0","@base"in u){var h=u["@base"];if(null===h);else if(v(h))h=m(h);else{if(!y(h))throw new s('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:u});h=m(g(t["@base"].href,h))}i["@base"]=h,d["@base"]=!0}if("@vocab"in u){var b=u["@vocab"];if(null===b)delete i["@vocab"];else{if(!p(b))throw new s('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:u});if(!v(b))throw new s('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:u});i["@vocab"]=b}d["@vocab"]=!0}if("@language"in u){var w=u["@language"];if(null===w)delete i["@language"];else{if(!p(w))throw new s('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:u});i["@language"]=w.toLowerCase()}d["@language"]=!0}for(var S in u)x.createTermDefinition(i,u,S,d);x.cache&&x.cache.set(t,u,i)}else i=t=x.getInitialContext(n)}return i},x.createTermDefinition=function(e,t,r,n){if(r in n){if(n[r])return;throw new s("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:t,term:r})}if(n[r]=!1,x.isKeyword(r))throw new s("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:r});if(""===r)throw new s("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:t});e.mappings[r]&&delete e.mappings[r];var a=t[r];if(null===a||f(a)&&null===a["@id"])return e.mappings[r]=null,void(n[r]=!0);var i=!1;if(p(a)&&(i=!0,a={"@id":a}),!f(a))throw new s("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:t});var o=e.mappings[r]={};o.reverse=!1;var u=["@container","@id","@language","@reverse","@type"];x.processingMode(e,1.1)&&u.push("@context","@nest","@prefix");for(var c in a)if(!u.includes(c))throw new s("Invalid JSON-LD syntax; a term definition must not contain "+c,"jsonld.SyntaxError",{code:"invalid term definition",context:t});var d=r.indexOf(":");if(o._termHasColon=-1!==d,"@reverse"in a){if("@id"in a)throw new s("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});if("@nest"in a)throw new s("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});var h=a["@reverse"];if(!p(h))throw new s("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});var y=x.expandIri(e,h,{vocab:!0,base:!1},t,n);if(!v(y))throw new s("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});o["@id"]=y,o.reverse=!0}else if("@id"in a){var g=a["@id"];if(!p(g))throw new s("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(g!==r){if(g=x.expandIri(e,g,{vocab:!0,base:!1},t,n),!v(g)&&!x.isKeyword(g))throw new s("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});o["@id"]=g,o._prefix=!o._termHasColon&&g.match(/[:\/\?#\[\]@]$/)&&(i||x.processingMode(e,1))}}if(!("@id"in o))if(o._termHasColon){var m=r.substr(0,d);if(m in t&&x.createTermDefinition(e,t,m,n),e.mappings[m]){var b=r.substr(d+1);o["@id"]=e.mappings[m]["@id"]+b}else o["@id"]=r}else{if(!("@vocab"in e))throw new s("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t,term:r});o["@id"]=e["@vocab"]+r}if(n[r]=!0,"@type"in a){var w=a["@type"];if(!p(w))throw new s("Invalid JSON-LD syntax; an @context @type values must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if("@id"!==w&&"@vocab"!==w){if(w=x.expandIri(e,w,{vocab:!0,base:!1},t,n),!v(w))throw new s("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(0===w.indexOf("_:"))throw new s("Invalid JSON-LD syntax; an @context @type values must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}o["@type"]=w}if("@container"in a){var S=p(a["@container"])?[a["@container"]]:a["@container"]||[],k=["@list","@set","@index","@language"],j=!0,I=S.includes("@set");if(x.processingMode(e,1.1))if(k.push("@graph","@id","@type"),S.includes("@list")){if(1!==S.length)throw new s("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else if(S.includes("@graph")){if(S.some(function(e){return"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e}))throw new s("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 j&=S.length<=(I?2:1);else j&=!l(a["@container"]),j&=S.length<=1;if(j&=S.every(function(e){return k.includes(e)}),!(j&=!(I&&S.includes("@list"))))throw new s("Invalid JSON-LD syntax; @context @container value must be one of the following: "+k.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:t});if(o.reverse&&!S.every(function(e){return["@index","@set"].includes(e)}))throw new s("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});o["@container"]=S}if("@context"in a&&(o["@context"]=a["@context"]),"@language"in a&&!("@type"in a)){var O=a["@language"];if(null!==O&&!p(O))throw new s("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:t});null!==O&&(O=O.toLowerCase()),o["@language"]=O}if("@prefix"in a){if(o._termHasColon)throw new s("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:t});if("boolean"!=typeof a["@prefix"])throw new s("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:t});o._prefix=!0===a["@prefix"]}if("@nest"in a){var L=a["@nest"];if(!p(L)||"@nest"!==L&&0===L.indexOf("@"))throw new s("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});o["@nest"]=L}var N=o["@id"];if("@context"===N||"@preserve"===N)throw new s("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:t})},x.expandIri=function(e,t,r,n,a){if(null===t||!p(t)||x.isKeyword(t))return t;if(n&&t in n&&!0!==a[t]&&x.createTermDefinition(e,n,t,a),r=r||{},r.vocab){var i=e.mappings[t];if(null===i)return null;if(i)return i["@id"]}var o=t.indexOf(":");if(-1!==o){var u=t.substr(0,o),s=t.substr(o+1);if("_"===u||0===s.indexOf("//"))return t;n&&u in n&&x.createTermDefinition(e,n,u,a);var c=e.mappings[u];return c?c["@id"]+s:t}return r.vocab&&"@vocab"in e?e["@vocab"]+t:r.base?g(e["@base"],t):t},x.getInitialContext=function(e){function t(){var e=this;if(e.inverse)return e.inverse;for(var t=e.inverse={},a=e.fastCurieMap={},i={},u=e["@language"]||"@none",s=e.mappings,c=Object.keys(s).sort(o.compareShortestLeast),l=0;l<c.length;++l){var f=c[l],p=s[f];if(null!==p){var d=p["@container"]||"@none";d=[].concat(d).sort().join("");for(var h=[].concat(p["@id"]),v=0;v<h.length;++v){var y=h[v],g=t[y],m=x.isKeyword(y);if(g)m||p._termHasColon||i[y].push(f);else if(t[y]=g={},!m&&!p._termHasColon){i[y]=[f];var b={iri:y,terms:i[y]};y[0]in a?a[y[0]].push(b):a[y[0]]=[b]}if(g[d]||(g[d]={"@language":{},"@type":{},"@any":{}}),g=g[d],n(f,g["@any"],"@none"),p.reverse)n(f,g["@type"],"@reverse");else if("@type"in p)n(f,g["@type"],p["@type"]);else if("@language"in p){var w=p["@language"]||"@null";n(f,g["@language"],w)}else n(f,g["@language"],u),n(f,g["@type"],"@none"),n(f,g["@language"],"@none")}}}for(var S in a)r(a,S,1);return t}function r(e,t,n){for(var a=e[t],i=e[t]={},o=void 0,u=void 0,s=0;s<a.length;++s)o=a[s].iri,u=n>=o.length?"":o[n],u in i?i[u].push(a[s]):i[u]=[a[s]];for(var c in i)""!==c&&r(i,c,n+1)}function n(e,t,r){r in t||(t[r]=e)}function a(){var e={};return e["@base"]=this["@base"],e.mappings=o.clone(this.mappings),e.clone=this.clone,e.inverse=null,e.getInverse=this.getInverse,"@language"in this&&(e["@language"]=this["@language"]),"@vocab"in this&&(e["@vocab"]=this["@vocab"]),e}return{"@base":m(e.base||""),processingMode:e.processingMode,mappings:{},inverse:null,getInverse:t,clone:a}},x.getContextValue=function(e,t,r){if(null===t)return null;if(e.mappings[t]){var n=e.mappings[t];if(d(r))return n;if(r in n)return n[r]}return"@language"===r&&r in e?e[r]:null},x.getAllContexts=function(){var e=n(regeneratorRuntime.mark(function e(t,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i(t,r));case 1:case"end":return e.stop()}},e,void 0)}));return function(t,r){return e.apply(this,arguments)}}(),x.processingMode=function(e,t){return t.toString()>="1.1"?e.processingMode&&e.processingMode>="json-ld-"+t.toString():!e.processingMode||"json-ld-1.0"===e.processingMode},x.isKeyword=function(e){if(!p(e))return!1;switch(e){case"@base":case"@container":case"@context":case"@default":case"@embed":case"@explicit":case"@graph":case"@id":case"@index":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1}},function(e,t,r){var n=r(1),a=r(10),i=r(13),o=r(20)("src"),u=Function.toString,s=(""+u).split("toString");r(2).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,r,u){var c="function"==typeof r;c&&(i(r,"name")||a(r,"name",t)),e[t]!==r&&(c&&(i(r,o)||a(r,o,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:u?e[t]?e[t]=r:a(e,t,r):(delete e[t],a(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||u.call(this)})},function(e,t,r){var n=r(53),a=r(30);e.exports=function(e){return n(a(e))}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(55),a=r(40);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t){e.exports={}},function(e,t){e.exports={options:{usePureJavaScript:!1}}},function(e,t,r){"use strict";var n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",a="http://www.w3.org/2001/XMLSchema#";e.exports={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",RDF:n,RDF_LIST:n+"List",RDF_FIRST:n+"first",RDF_REST:n+"rest",RDF_NIL:n+"nil",RDF_TYPE:n+"type",RDF_PLAIN_LITERAL:n+"PlainLiteral",RDF_XML_LITERAL:n+"XMLLiteral",RDF_OBJECT:n+"object",RDF_LANGSTRING:n+"langString",XSD:a,XSD_BOOLEAN:a+"boolean",XSD_DOUBLE:a+"double",XSD_INTEGER:a+"integer",XSD_STRING:a+"string"}},function(e,t,r){"use strict";var n=r(4),a={};e.exports=a,a.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:/^(([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},a.parse=function(e,t){for(var r={},n=a.parsers[t||"full"],i=n.regex.exec(e),o=n.keys.length;o--;)r[n.keys[o]]=void 0===i[o]?null:i[o];return("https"===r.scheme&&"443"===r.port||"http"===r.scheme&&"80"===r.port)&&(r.href=r.href.replace(":"+r.port,""),r.authority=r.authority.replace(":"+r.port,""),r.port=null),r.normalizedPath=a.removeDotSegments(r.path),r},a.prependBase=function(e,t){if(null===e)return t;if(-1!==t.indexOf(":"))return t;n.isString(e)&&(e=a.parse(e||""));var r=a.parse(t),i={protocol:e.protocol||""};if(null!==r.authority)i.authority=r.authority,i.path=r.path,i.query=r.query;else if(i.authority=e.authority,""===r.path)i.path=e.path,null!==r.query?i.query=r.query:i.query=e.query;else{if(0===r.path.indexOf("/"))i.path=r.path;else{var o=e.path;o=o.substr(0,o.lastIndexOf("/")+1),o.length>0&&"/"!==o.substr(-1)&&(o+="/"),o+=r.path,i.path=o}i.query=r.query}""!==r.path&&(i.path=a.removeDotSegments(i.path));var u=i.protocol;return null!==i.authority&&(u+="//"+i.authority),u+=i.path,null!==i.query&&(u+="?"+i.query),null!==r.fragment&&(u+="#"+r.fragment),""===u&&(u="./"),u},a.removeBase=function(e,t){if(null===e)return t;n.isString(e)&&(e=a.parse(e||""));var r="";if(""!==e.href?r+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(r+="//"),0!==t.indexOf(r))return t;for(var i=a.parse(t.substr(r.length)),o=e.normalizedPath.split("/"),u=i.normalizedPath.split("/"),s=i.fragment||i.query?0:1;o.length>0&&u.length>s&&o[0]===u[0];)o.shift(),u.shift();var c="";if(o.length>0){o.pop();for(var l=0;l<o.length;++l)c+="../"}return c+=u.join("/"),null!==i.query&&(c+="?"+i.query),null!==i.fragment&&(c+="#"+i.fragment),""===c&&(c="./"),c},a.removeDotSegments=function(e){if(0===e.length)return"";for(var t=e.split("/"),r=[];t.length>0;){var n=t.shift(),a=0===t.length;"."!==n?".."!==n?r.push(n):(r.pop(),a&&r.push("")):a&&r.push("")}return r.length>0&&""!==r[0]&&r.unshift(""),1===r.length&&""===r[0]?"/":r.join("/")};var i=/^([A-Za-z][A-Za-z0-9+-.]*|_):/;a.isAbsolute=function(e){return n.isString(e)&&i.test(e)},a.isRelative=function(e){return n.isString(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(29);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(11).f,a=r(13),i=r(0)("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(15),a=n.isKeyword,i=r(5),o=r(4),u=r(3),s=r(6),c={};e.exports=c,c.createMergedNodeMap=function(e,t){t=t||{};var r=t.issuer||new u.IdentifierIssuer("_:b"),n={"@default":{}};return c.createNodeMap(e,n,"@default",r),c.mergeNodeMaps(n)},c.createNodeMap=function(e,t,r,n,l,f){if(o.isArray(e))for(var p=0;p<e.length;++p)c.createNodeMap(e[p],t,r,n,void 0,f);else{if(!o.isObject(e))return void(f&&f.push(e));if(i.isValue(e)){if("@type"in e){var d=e["@type"];0===d.indexOf("_:")&&(e["@type"]=d=n.getId(d))}return void(f&&f.push(e))}if("@type"in e)for(var h=e["@type"],v=0;v<h.length;++v){var y=h[v];0===y.indexOf("_:")&&n.getId(y)}o.isUndefined(l)&&(l=i.isBlankNode(e)?n.getId(e["@id"]):e["@id"]),f&&f.push({"@id":l});var g=t[r],m=g[l]=g[l]||{};m["@id"]=l;for(var b=Object.keys(e).sort(),x=0;x<b.length;++x){var w=b[x];if("@id"!==w)if("@reverse"!==w)if("@graph"!==w)if("@type"!==w&&a(w)){if("@index"===w&&w in m&&(e[w]!==m[w]||e[w]["@id"]!==m[w]["@id"]))throw new s("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:m});m[w]=e[w]}else{var S=e[w];if(0===w.indexOf("_:")&&(w=n.getId(w)),0!==S.length)for(var k=0;k<S.length;++k){var j=S[k];if("@type"===w&&(j=0===j.indexOf("_:")?n.getId(j):j),i.isSubject(j)||i.isSubjectReference(j)){var I=i.isBlankNode(j)?n.getId(j["@id"]):j["@id"];u.addValue(m,w,{"@id":I},{propertyIsArray:!0,allowDuplicate:!1}),c.createNodeMap(j,t,r,n,I)}else if(i.isList(j)){var O=[];c.createNodeMap(j["@list"],t,r,n,l,O),j={"@list":O},u.addValue(m,w,j,{propertyIsArray:!0,allowDuplicate:!1})}else c.createNodeMap(j,t,r,n,l),u.addValue(m,w,j,{propertyIsArray:!0,allowDuplicate:!1})}else u.addValue(m,w,[],{propertyIsArray:!0})}else l in t||(t[l]={}),c.createNodeMap(e[w],t,l,n);else{var L={"@id":l},N=e["@reverse"];for(var C in N)for(var E=N[C],T=0;T<E.length;++T){var A=E[T],D=A["@id"];i.isBlankNode(A)&&(D=n.getId(D)),c.createNodeMap(A,t,r,n,D),u.addValue(g[D],C,L,{propertyIsArray:!0,allowDuplicate:!1})}}}}},c.mergeNodeMapGraphs=function(e){var t={},r=!0,n=!1,i=void 0;try{for(var o,s=Object.keys(e).sort()[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var c=o.value,l=!0,f=!1,p=void 0;try{for(var d,h=Object.keys(e[c]).sort()[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var v=d.value,y=e[c][v];v in t||(t[v]={"@id":v});var g=t[v],m=!0,b=!1,x=void 0;try{for(var w,S=Object.keys(y).sort()[Symbol.iterator]();!(m=(w=S.next()).done);m=!0){var k=w.value;if(a(k))g[k]=u.clone(y[k]);else{var j=!0,I=!1,O=void 0;try{for(var L,N=y[k][Symbol.iterator]();!(j=(L=N.next()).done);j=!0){var C=L.value;u.addValue(g,k,u.clone(C),{propertyIsArray:!0,allowDuplicate:!1})}}catch(e){I=!0,O=e}finally{try{!j&&N.return&&N.return()}finally{if(I)throw O}}}}}catch(e){b=!0,x=e}finally{try{!m&&S.return&&S.return()}finally{if(b)throw x}}}}catch(e){f=!0,p=e}finally{try{!l&&h.return&&h.return()}finally{if(f)throw p}}}}catch(e){n=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return t},c.mergeNodeMaps=function(e){for(var t=e["@default"],r=Object.keys(e).sort(),n=0;n<r.length;++n){var a=r[n];if("@default"!==a){var o=e[a],u=t[a];u?"@graph"in u||(u["@graph"]=[]):t[a]=u={"@id":a,"@graph":[]};for(var s=u["@graph"],c=Object.keys(o).sort(),l=0;l<c.length;++l){var f=o[c[l]];i.isSubjectReference(f)||s.push(f)}}}return t}},function(e,t,r){var n=r(9),a=r(1).document,i=n(a)&&n(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,r){var n=r(9);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(37),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(2),a=r(1),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(38)("keys"),a=r(20);e.exports=function(e){return n[e]||(n[e]=a(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(18),a=r(0)("toStringTag"),i="Arguments"==n(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=o(t=Object(e),a))?r:i?n(t):"Object"==(u=n(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,r){"use strict";function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=a(t),this.reject=a(r)}var a=r(29);e.exports.f=function(e){return new n(e)}},function(e,t,r){var n=r(1),a=r(2),i=r(21),o=r(65),u=r(11).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:o.f(e)})}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}var a=r(14),i=r(68),o=r(126),u=r(72),s=r(127),c=void 0;try{c=r(128)("urdna2015")}catch(e){}var l={};e.exports=l,l.NQuads=r(48),l.IdentifierIssuer=r(46),l.canonize=a.callbackify(function(){var e=n(regeneratorRuntime.mark(function e(t,r){var n,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0,a=new Promise(function(e,t){n=function(r,n){if(r)return t(r);e(n)}}),Array.isArray(t)||(t=l.NQuads.legacyDatasetToQuads(t)),"URDNA2015"!==r.algorithm){e.next=7;break}c&&!r.usePureJavaScript?c.main({dataset:t},n):new i(r).main(t,n),e.next=12;break;case 7:if("URGNA2012"!==r.algorithm){e.next=11;break}new o(r).main(t,n),e.next=12;break;case 11:throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+r.algorithm);case 12:return e.abrupt("return",a);case 13:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()),l.canonizeSync=function(e,t){if(Array.isArray(e)||(e=l.NQuads.legacyDatasetToQuads(e)),"URDNA2015"===t.algorithm)return c&&!t.usePureJavaScript?c.mainSync({dataset:e}):new u(t).main(e);if("URGNA2012"===t.algorithm)return new s(t).main(e);throw new Error("Invalid RDF Dataset Canonicalization algorithm: "+t.algorithm)}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(14);e.exports=function(){function e(t){n(this,e),this.prefix=t,this.counter=0,this.existing={}}return a(e,[{key:"clone",value:function(){var t=new e(this.prefix);return t.counter=this.counter,t.existing=i.clone(this.existing),t}},{key:"getId",value:function(e){if(e&&e in this.existing)return this.existing[e];var t=this.prefix+this.counter;return this.counter+=1,e&&(this.existing[e]=t),t}},{key:"hasId",value:function(e){return e in this.existing}}]),e}()},function(e,t,r){var n=r(24);e.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r in e)if(e[r].termType!==t[r].termType||e[r].value!==t[r].value)return!1;return"Literal"!==e.termType||e.object.datatype.termType===t.object.datatype.termType&&e.object.datatype.value===t.object.datatype.value&&e.object.language===t.object.language}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(123),u="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",s="http://www.w3.org/2001/XMLSchema#string",c={};!function(){c.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,c.empty=new RegExp("^[ \\t]*$"),c.quad=new RegExp('^[ \\t]*(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z0-9]+)))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z0-9]+))|(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-z]+(?:-[a-z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z0-9]+)))[ \\t]*\\.))[ \\t]*$')}(),e.exports=function(){function e(){n(this,e)}return i(e,null,[{key:"parse",value:function(e){var t=[],r={},n=e.split(c.eoln),i=0,l=!0,f=!1,p=void 0;try{for(var d,h=n[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var v=d.value;if(i++,!c.empty.test(v)){var y=v.match(c.quad);if(null===y)throw new Error("N-Quads parse error on line "+i+".");var g={};if(o.isUndefined(y[1])?g.subject={termType:"BlankNode",value:y[2]}:g.subject={termType:"NamedNode",value:y[1]},g.predicate={termType:"NamedNode",value:y[3]},o.isUndefined(y[4]))if(o.isUndefined(y[5])){g.object={termType:"Literal",value:void 0,datatype:{termType:"NamedNode"}},o.isUndefined(y[7])?o.isUndefined(y[8])?g.object.datatype.value=s:(g.object.datatype.value=u,g.object.language=y[8]):g.object.datatype.value=y[7];var m=y[6].replace(/\\"/g,'"').replace(/\\t/g,"\t").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\\\/g,"\\");g.object.value=m}else g.object={termType:"BlankNode",value:y[5]};else g.object={termType:"NamedNode",value:y[4]};if(o.isUndefined(y[9])?o.isUndefined(y[10])?g.graph={termType:"DefaultGraph",value:""}:g.graph={termType:"BlankNode",value:y[10]}:g.graph={termType:"NamedNode",value:y[9]},g.graph.value in r){var b=!0,x=r[g.graph.value],w=!0,S=!1,k=void 0;try{for(var j,I=x[Symbol.iterator]();!(w=(j=I.next()).done);w=!0){if(a(j.value,g)){b=!1;break}}}catch(e){S=!0,k=e}finally{try{!w&&I.return&&I.return()}finally{if(S)throw k}}b&&(x.push(g),t.push(g))}else r[g.graph.value]=[g],t.push(g)}}}catch(e){f=!0,p=e}finally{try{!l&&h.return&&h.return()}finally{if(f)throw p}}return t}},{key:"serialize",value:function(t){Array.isArray(t)||(t=e.legacyDatasetToQuads(t));var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var s=o.value;r.push(e.serializeQuad(s))}}catch(e){a=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(a)throw i}}return r.sort().join("")}},{key:"serializeQuad",value:function(e){var t=e.subject,r=e.predicate,n=e.object,a=e.graph,i="";if([t,r].forEach(function(e){"NamedNode"===e.termType?i+="<"+e.value+">":i+=e.value,i+=" "}),"NamedNode"===n.termType)i+="<"+n.value+">";else if("BlankNode"===n.termType)i+=n.value;else{var o=n.value.replace(/\\/g,"\\\\").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\"/g,'\\"');i+='"'+o+'"',n.datatype.value===u?n.language&&(i+="@"+n.language):n.datatype.value!==s&&(i+="^^<"+n.datatype.value+">")}return"NamedNode"===a.termType?i+=" <"+a.value+">":"BlankNode"===a.termType&&(i+=" "+a.value),i+=" .\n"}},{key:"legacyDatasetToQuads",value:function(e){var t=[],r={"blank node":"BlankNode",IRI:"NamedNode",literal:"Literal"};for(var n in e)!function(n){e[n].forEach(function(e){var a={};for(var i in e){var o=e[i],c={termType:r[o.type],value:o.value};"Literal"===c.termType&&(c.datatype={termType:"NamedNode"},"datatype"in o&&(c.datatype.value=o.datatype),"language"in o?("datatype"in o||(c.datatype.value=u),c.language=o.language):"datatype"in o||(c.datatype.value=s)),a[i]=c}a.graph="@default"===n?{termType:"DefaultGraph",value:""}:{termType:n.startsWith("_:")?"BlankNode":"NamedNode",value:n},t.push(a)})}(n);return t}}]),e}()},function(e,t,r){"use strict"},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(3),u=o.callbackify,s=o.normalizeDocumentLoader;e.exports=function(){function e(){a(this,e),this._requests={},this.add=u(this.add.bind(this))}return i(e,[{key:"wrapLoader",value:function(e){var t=this;return t._loader=s(e),function(){return t.add.apply(t,arguments)}}},{key:"add",value:function(){function e(e){return t.apply(this,arguments)}var t=n(regeneratorRuntime.mark(function e(t){var r,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,!(n=r._requests[t])){e.next=4;break}return e.abrupt("return",Promise.resolve(n));case 4:return n=r._requests[t]=r._loader(t),e.prev=5,e.next=8,n;case 8:return e.abrupt("return",e.sent);case 9:return e.prev=9,delete r._requests[t],e.finish(9);case 12:case"end":return e.stop()}},e,this,[[5,,9,12]])}));return e}()}]),e}()},function(e,t,r){e.exports=!r(12)&&!r(19)(function(){return 7!=Object.defineProperty(r(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(17),a=r(36),i=r(77);e.exports=function(e){return function(t,r,o){var u,s=n(t),c=a(s.length),l=i(o,c);if(e&&r!=r){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===r)return e||l||0;return!e&&-1}}},function(e,t,r){var n=r(18);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(0)("unscopables"),a=Array.prototype;void 0==a[n]&&r(10)(a,n,{}),e.exports=function(e){a[n][e]=!0}},function(e,t,r){var n=r(13),a=r(17),i=r(52)(!1),o=r(39)("IE_PROTO");e.exports=function(e,t){var r,u=a(e),s=0,c=[];for(r in u)r!=o&&n(u,r)&&c.push(r);for(;t.length>s;)n(u,r=t[s++])&&(~i(c,r)||c.push(r));return c}},function(e,t,r){var n=r(30);e.exports=function(e){return Object(n(e))}},function(e,t,r){"use strict";var n=r(42),a={};a[r(0)("toStringTag")]="z",a+""!="[object z]"&&r(16)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(e,t,r){"use strict";var n=r(21),a=r(7),i=r(16),o=r(10),u=r(23),s=r(84),c=r(32),l=r(86),f=r(0)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,h,v,y,g){s(r,t,h);var m,b,x,w=function(e){if(!p&&e in I)return I[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",k="values"==v,j=!1,I=e.prototype,O=I[f]||I["@@iterator"]||v&&I[v],L=O||w(v),N=v?k?w("entries"):L:void 0,C="Array"==t?I.entries||O:O;if(C&&(x=l(C.call(new e)))!==Object.prototype&&x.next&&(c(x,S,!0),n||"function"==typeof x[f]||o(x,f,d)),k&&O&&"values"!==O.name&&(j=!0,L=function(){return O.call(this)}),n&&!g||!p&&!j&&I[f]||o(I,f,L),u[t]=L,u[S]=d,v)if(m={values:k?L:w("values"),keys:y?L:w("keys"),entries:N},g)for(b in m)b in I||i(I,b,m[b]);else a(a.P+a.F*(p||j),t,m);return m}},function(e,t,r){var n=r(8),a=r(85),i=r(40),o=r(39)("IE_PROTO"),u=function(){},s=function(){var e,t=r(34)("iframe"),n=i.length;for(t.style.display="none",r(60).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;n--;)delete s.prototype[i[n]];return s()};e.exports=Object.create||function(e,t){var r;return null!==e?(u.prototype=n(e),r=new u,u.prototype=null,r[o]=e):r=s(),void 0===t?r:a(r,t)}},function(e,t,r){var n=r(1).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(8),a=r(29),i=r(0)("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[i])?t:a(r)}},function(e,t,r){var n,a,i,o=r(28),u=r(96),s=r(60),c=r(34),l=r(1),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,y=0,g={},m=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){m.call(e.data)};p&&d||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++y]=function(){u("function"==typeof e?e:Function(e),t)},n(y),y},d=function(e){delete g[e]},"process"==r(18)(f)?n=function(e){f.nextTick(o(m,e,1))}:v&&v.now?n=function(e){v.now(o(m,e,1))}:h?(a=new h,i=a.port2,a.port1.onmessage=b,n=o(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(e){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),m.call(e)}}:function(e){setTimeout(o(m,e,1),0)}),e.exports={set:p,clear:d}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(8),a=r(9),i=r(43);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){t.f=r(0)},function(e,t,r){var n=r(55),a=r(40).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(119),s=r(46),c=r(69),l=r(71),f=r(48),p=r(14),d={subject:"s",object:"o",graph:"g"};e.exports=function(e){function t(e){n(this,t),e=e||{};var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.name="URDNA2015",r.options=Object.assign({},e),r.blankNodeInfo={},r.hashToBlankNodes={},r.canonicalIssuer=new s("_:c14n"),r.hashAlgorithm="sha256",r.quads,r}return i(t,e),o(t,[{key:"main",value:function(e,t){var r=this;r.schedule.start=Date.now();var n=void 0;r.quads=e;var a={};r.waterfall([function(t){r.forEach(e,function(e,t,n){r.forEachComponent(e,function(t){if("BlankNode"===t.termType){var n=t.value;n in r.blankNodeInfo?r.blankNodeInfo[n].quads.push(e):(a[n]=!0,r.blankNodeInfo[n]={quads:[e]})}}),n()},t)},function(e){var t=!0;r.whilst(function(){return t},function(e){t=!1,r.hashToBlankNodes={},r.waterfall([function(e){r.forEach(a,function(e,t,n){r.hashFirstDegreeQuads(t,function(e,a){if(e)return n(e);a in r.hashToBlankNodes?r.hashToBlankNodes[a].push(t):r.hashToBlankNodes[a]=[t],n()})},e)},function(e){var n=Object.keys(r.hashToBlankNodes).sort();r.forEach(n,function(e,n,i){var o=r.hashToBlankNodes[e];if(o.length>1)return i();var u=o[0];r.canonicalIssuer.getId(u),delete a[u],delete r.hashToBlankNodes[e],t=!0,i()},e)}],e)},e)},function(e){var t=Object.keys(r.hashToBlankNodes).sort();r.forEach(t,function(e,t,n){var a=[],i=r.hashToBlankNodes[e];r.waterfall([function(e){r.forEach(i,function(e,t,n){if(r.canonicalIssuer.hasId(e))return n();var i=new s("_:b");i.getId(e),r.hashNDegreeQuads(e,i,function(e,t){if(e)return n(e);a.push(t),n()})},e)},function(e){a.sort(function(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0}),r.forEach(a,function(e,t,n){for(var a in e.issuer.existing)r.canonicalIssuer.getId(a);n()},e)}],n)},e)},function(e){var t=[];r.waterfall([function(e){r.forEach(r.quads,function(e,n,a){r.forEachComponent(e,function(e){"BlankNode"!==e.termType||e.value.startsWith(r.canonicalIssuer.prefix)||(e.value=r.canonicalIssuer.getId(e.value))}),t.push(f.serializeQuad(e)),a()},e)},function(e){return t.sort(),n=t.join(""),e()}],e)}],function(e){return t(e,n)})}},{key:"hashFirstDegreeQuads",value:function(e,t){var r=this,n=r.blankNodeInfo[e];if("hash"in n)return t(null,n.hash);var a=[],i=n.quads;r.forEach(i,function(t,n,i){var o={predicate:t.predicate};r.forEachComponent(t,function(t,n){o[n]=r.modifyFirstDegreeComponent(e,t,n)}),a.push(f.serializeQuad(o)),i()},function(e){if(e)return t(e);a.sort();for(var i=new c(r.hashAlgorithm),o=0;o<a.length;++o)i.update(a[o]);n.hash=i.digest(),t(null,n.hash)})}},{key:"hashRelatedBlankNode",value:function(e,t,r,n,a){var i=this,o=void 0;i.waterfall([function(t){return i.canonicalIssuer.hasId(e)?(o=i.canonicalIssuer.getId(e),t()):r.hasId(e)?(o=r.getId(e),t()):void i.hashFirstDegreeQuads(e,function(e,r){if(e)return t(e);o=r,t()})}],function(e){if(e)return a(e);var r=new c(i.hashAlgorithm);return r.update(n),"g"!==n&&r.update(i.getRelatedPredicate(t)),r.update(o),a(null,r.digest())})}},{key:"hashNDegreeQuads",value:function(e,t,r){var n=this,a=void 0,i=new c(n.hashAlgorithm);n.waterfall([function(r){return n.createHashToRelated(e,t,function(e,t){if(e)return r(e);a=t,r()})},function(e){var r=Object.keys(a).sort();n.forEach(r,function(e,r,o){i.update(e);var u="",s=void 0,c=new l(a[e]);n.whilst(function(){return c.hasNext()},function(e){var r=c.next(),a=t.clone(),i="",o=[];n.waterfall([function(t){n.forEach(r,function(t,r,s){if(n.canonicalIssuer.hasId(t)?i+=n.canonicalIssuer.getId(t):(a.hasId(t)||o.push(t),i+=a.getId(t)),0!==u.length&&i.length>=u.length&&i>u)return e();s()},t)},function(t){n.forEach(o,function(t,r,o){n.hashNDegreeQuads(t,a,function(r,n){return r?o(r):(i+=a.getId(t),i+="<"+n.hash+">",a=n.issuer,0!==u.length&&i.length>=u.length&&i>u?e():void o())})},t)},function(e){(0===u.length||i<u)&&(u=i,s=a),e()}],e)},function(e){if(e)return o(e);i.update(u),t=s,o()})},e)}],function(e){r(e,{hash:i.digest(),issuer:t})})}},{key:"modifyFirstDegreeComponent",value:function(e,t){return"BlankNode"!==t.termType?t:(t=p.clone(t),t.value=t.value===e?"_:a":"_:z",t)}},{key:"getRelatedPredicate",value:function(e){return"<"+e.predicate.value+">"}},{key:"createHashToRelated",value:function(e,t,r){var n=this,a={},i=n.blankNodeInfo[e].quads;n.forEach(i,function(r,i,o){n.forEach(r,function(i,o,u){if("predicate"===o||"BlankNode"!==i.termType||i.value===e)return u();var s=i.value,c=d[o];n.hashRelatedBlankNode(s,r,t,c,function(e,t){if(e)return u(e);t in a?a[t].push(s):a[t]=[s],u()})},o)},function(e){return r(e,a)})}},{key:"forEachComponent",value:function(e,t){for(var r in e)"predicate"!==r&&t(e[r],r,e)}}]),t}(u)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(24);r(47),r(120),r(122),e.exports=function(){function e(t){n(this,e),this.md=i.md[t].create()}return a(e,[{key:"update",value:function(e){this.md.update(e,"utf8")}},{key:"digest",value:function(){return this.md.digest().toHex()}}]),e}()},function(e,t,r){function n(e){if(8!==e&&16!==e&&24!==e&&32!==e)throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}function a(e){if(this.data="",this.read=0,"string"==typeof e)this.data=e;else if(s.isArrayBuffer(e)||s.isArrayBufferView(e))if("undefined"!=typeof Buffer&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof a||"object"==typeof e&&"string"==typeof e.data&&"number"==typeof e.read)&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}function i(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=s.isArrayBuffer(e),n=s.isArrayBufferView(e);if(r||n)return this.data=r?new DataView(e):new DataView(e.buffer,e.byteOffset,e.byteLength),void(this.write="writeOffset"in t?t.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==e&&void 0!==e&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}var o=r(24),u=r(121),s=e.exports=o.util=o.util||{};!function(){function e(e){if(e.source===window&&e.data===t){e.stopPropagation();var n=r.slice();r.length=0,n.forEach(function(e){e()})}}if("undefined"!=typeof process&&process.nextTick)return s.nextTick=process.nextTick,void("function"==typeof setImmediate?s.setImmediate=setImmediate:s.setImmediate=s.nextTick);if("function"==typeof setImmediate)return s.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(s.nextTick=function(e){return setImmediate(e)});if(s.setImmediate=function(e){setTimeout(e,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var t="forge.setImmediate",r=[];s.setImmediate=function(e){r.push(e),1===r.length&&window.postMessage(t,"*")},window.addEventListener("message",e,!0)}if("undefined"!=typeof MutationObserver){var n=Date.now(),a=!0,i=document.createElement("div"),r=[];new MutationObserver(function(){var e=r.slice();r.length=0,e.forEach(function(e){e()})}).observe(i,{attributes:!0});var o=s.setImmediate;s.setImmediate=function(e){Date.now()-n>15?(n=Date.now(),o(e)):(r.push(e),1===r.length&&i.setAttribute("a",a=!a))}}s.nextTick=s.setImmediate}(),s.isNodejs="undefined"!=typeof process&&process.versions&&process.versions.node,s.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},s.ByteBuffer=a,s.ByteStringBuffer=a;s.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},s.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},s.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))},s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},s.ByteStringBuffer.prototype.putInt=function(e,t){n(t);var r="";do{t-=8,r+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(r)},s.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},s.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},s.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},s.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},s.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},s.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},s.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},s.ByteStringBuffer.prototype.getInt=function(e){n(e);var t=0;do{t=(t<<8)+this.data.charCodeAt(this.read++),e-=8}while(e>0);return t},s.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},s.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},s.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);return e.read=this.read,e},s.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},s.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},s.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},s.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},s.ByteStringBuffer.prototype.toString=function(){return s.decodeUtf8(this.bytes())},s.DataBuffer=i,s.DataBuffer.prototype.length=function(){return this.write-this.read},s.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},s.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},s.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},s.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},s.DataBuffer.prototype.putBytes=function(e,t){if(s.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var a=new Uint8Array(this.data.buffer,this.write);return a.set(r),this.write+=n,this}if(s.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var a=new Uint8Array(this.data.buffer);return a.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof s.DataBuffer||"object"==typeof e&&"number"==typeof e.read&&"number"==typeof e.write&&s.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var a=new Uint8Array(e.data.byteLength,this.write);return a.set(r),this.write+=r.byteLength,this}if(e instanceof s.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary","string"==typeof e){var i;if("hex"===t)return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.hex.decode(e,i,this.write),this;if("base64"===t)return this.accommodate(3*Math.ceil(e.length/4)),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.base64.decode(e,i,this.write),this;if("utf8"===t&&(e=s.encodeUtf8(e),t="binary"),"binary"===t||"raw"===t)return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=s.binary.raw.decode(i),this;if("utf16"===t)return this.accommodate(2*e.length),i=new Uint16Array(this.data.buffer,this.write),this.write+=s.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},s.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},s.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},s.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},s.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},s.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},s.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},s.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},s.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},s.DataBuffer.prototype.putInt=function(e,t){n(t),this.accommodate(t/8);do{t-=8,this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this},s.DataBuffer.prototype.putSignedInt=function(e,t){return n(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},s.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},s.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},s.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},s.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},s.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},s.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},s.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},s.DataBuffer.prototype.getInt=function(e){n(e);var t=0;do{t=(t<<8)+this.data.getInt8(this.read++),e-=8}while(e>0);return t},s.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},s.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},s.DataBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},s.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)},s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},s.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},s.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},s.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},s.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if("binary"===(e=e||"utf8")||"raw"===e)return s.binary.raw.encode(t);if("hex"===e)return s.binary.hex.encode(t);if("base64"===e)return s.binary.base64.encode(t);if("utf8"===e)return s.text.utf8.decode(t);if("utf16"===e)return s.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},s.createBuffer=function(e,t){return t=t||"raw",void 0!==e&&"utf8"===t&&(e=s.encodeUtf8(e)),new s.ByteBuffer(e)},s.fillString=function(e,t){for(var r="";t>0;)1&t&&(r+=e),(t>>>=1)>0&&(e+=e);return r},s.xorBytes=function(e,t,r){for(var n="",a="",i="",o=0,u=0;r>0;--r,++o)a=e.charCodeAt(o)^t.charCodeAt(o),u>=10&&(n+=i,i="",u=0),i+=String.fromCharCode(a),++u;return n+=i},s.hexToBytes=function(e){var t="",r=0;for(!0&e.length&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},s.bytesToHex=function(e){return s.createBuffer(e).toHex()},s.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],f="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,t){for(var r,n,a,i="",o="",u=0;u<e.length;)r=e.charCodeAt(u++),n=e.charCodeAt(u++),a=e.charCodeAt(u++),i+=c.charAt(r>>2),i+=c.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=c.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":c.charAt(63&a)),t&&i.length>t&&(o+=i.substr(0,t)+"\r\n",i=i.substr(t));return o+=i},s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,r,n,a,i="",o=0;o<e.length;)t=l[e.charCodeAt(o++)-43],r=l[e.charCodeAt(o++)-43],n=l[e.charCodeAt(o++)-43],a=l[e.charCodeAt(o++)-43],i+=String.fromCharCode(t<<2|r>>4),64!==n&&(i+=String.fromCharCode((15&r)<<4|n>>2),64!==a&&(i+=String.fromCharCode((3&n)<<6|a)));return i},s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},s.decodeUtf8=function(e){return decodeURIComponent(escape(e))},s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:u.encode,decode:u.decode}},s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},s.binary.raw.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(e.length)),r=r||0;for(var a=r,i=0;i<e.length;++i)n[a++]=e.charCodeAt(i);return t?a-r:n},s.binary.hex.encode=s.bytesToHex,s.binary.hex.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(Math.ceil(e.length/2))),r=r||0;var a=0,i=r;for(1&e.length&&(a=1,n[i++]=parseInt(e[0],16));a<e.length;a+=2)n[i++]=parseInt(e.substr(a,2),16);return t?i-r:n},s.binary.base64.encode=function(e,t){for(var r,n,a,i="",o="",u=0;u<e.byteLength;)r=e[u++],n=e[u++],a=e[u++],i+=c.charAt(r>>2),i+=c.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=c.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":c.charAt(63&a)),t&&i.length>t&&(o+=i.substr(0,t)+"\r\n",i=i.substr(t));return o+=i},s.binary.base64.decode=function(e,t,r){var n=t;n||(n=new Uint8Array(3*Math.ceil(e.length/4))),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var a,i,o,u,s=0,c=r;s<e.length;)a=l[e.charCodeAt(s++)-43],i=l[e.charCodeAt(s++)-43],o=l[e.charCodeAt(s++)-43],u=l[e.charCodeAt(s++)-43],n[c++]=a<<2|i>>4,64!==o&&(n[c++]=(15&i)<<4|o>>2,64!==u&&(n[c++]=(3&o)<<6|u));return t?c-r:n.subarray(0,c)},s.binary.base58.encode=function(e,t){return s.binary.baseN.encode(e,f,t)},s.binary.base58.decode=function(e,t){return s.binary.baseN.decode(e,f,t)},s.text={utf8:{},utf16:{}},s.text.utf8.encode=function(e,t,r){e=s.encodeUtf8(e);var n=t;n||(n=new Uint8Array(e.length)),r=r||0;for(var a=r,i=0;i<e.length;++i)n[a++]=e.charCodeAt(i);return t?a-r:n},s.text.utf8.decode=function(e){return s.decodeUtf8(String.fromCharCode.apply(null,e))},s.text.utf16.encode=function(e,t,r){var n=t;n||(n=new Uint8Array(2*e.length));var a=new Uint16Array(n.buffer);r=r||0;for(var i=r,o=r,u=0;u<e.length;++u)a[o++]=e.charCodeAt(u),i+=2;return t?i-r:n},s.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},s.deflate=function(e,t,r){if(t=s.decode64(e.deflate(s.encode64(t)).rval),r){var n=2;32&t.charCodeAt(1)&&(n=6),t=t.substring(n,t.length-4)}return t},s.inflate=function(e,t,r){var n=e.inflate(s.encode64(t)).rval;return null===n?null:s.decode64(n)};var p=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var n;if(null===r?n=e.removeItem(t):(r=s.encode64(JSON.stringify(r)),n=e.setItem(t,r)),void 0!==n&&!0!==n.rval){var a=new Error(n.error.message);throw a.id=n.error.id,a.name=n.error.name,a}},d=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(null===r.rval){if(r.error){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}r=null}else r=r.rval;return null!==r&&(r=JSON.parse(s.decode64(r))),r},h=function(e,t,r,n){var a=d(e,t);null===a&&(a={}),a[r]=n,p(e,t,a)},v=function(e,t,r){var n=d(e,t);return null!==n&&(n=r in n?n[r]:null),n},y=function(e,t,r){var n=d(e,t);if(null!==n&&r in n){delete n[r];var a=!0;for(var i in n){a=!1;break}a&&(n=null),p(e,t,n)}},g=function(e,t){p(e,t,null)},m=function(e,t,r){var n=null;void 0===r&&(r=["web","flash"]);var a,i=!1,o=null;for(var u in r){a=r[u];try{if("flash"===a||"both"===a){if(null===t[0])throw new Error("Flash local storage not available.");n=e.apply(this,t),i="flash"===a}"web"!==a&&"both"!==a||(t[0]=localStorage,n=e.apply(this,t),i=!0)}catch(e){o=e}if(i)break}if(!i)throw o;return n};s.setItem=function(e,t,r,n,a){m(h,arguments,a)},s.getItem=function(e,t,r,n){return m(v,arguments,n)},s.removeItem=function(e,t,r,n){m(y,arguments,n)},s.clearItems=function(e,t,r){m(g,arguments,r)},s.parseUrl=function(e){var t=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;t.lastIndex=0;var r=t.exec(e),n=null===r?null:{full:e,scheme:r[1],host:r[2],port:r[3],path:r[4]};return n&&(n.fullHost=n.host,n.port?80!==n.port&&"http"===n.scheme?n.fullHost+=":"+n.port:443!==n.port&&"https"===n.scheme&&(n.fullHost+=":"+n.port):"http"===n.scheme?n.port=80:"https"===n.scheme&&(n.port=443),n.full=n.scheme+"://"+n.fullHost),n};var b=null;s.getQueryVariables=function(e){var t,r=function(e){for(var t={},r=e.split("&"),n=0;n<r.length;n++){var a,i,o=r[n].indexOf("=");o>0?(a=r[n].substring(0,o),i=r[n].substring(o+1)):(a=r[n],i=null),a in t||(t[a]=[]),a in Object.prototype||null===i||t[a].push(unescape(i))}return t};return void 0===e?(null===b&&(b="undefined"!=typeof window&&window.location&&window.location.search?r(window.location.search.substring(1)):{}),t=b):t=r(e),t},s.parseFragment=function(e){var t=e,r="",n=e.indexOf("?");n>0&&(t=e.substring(0,n),r=e.substring(n+1));var a=t.split("/");return a.length>0&&""===a[0]&&a.shift(),{pathString:t,queryString:r,path:a,query:""===r?{}:s.getQueryVariables(r)}},s.makeRequest=function(e){var t=s.parseFragment(e),r={path:t.pathString,query:t.queryString,getPath:function(e){return void 0===e?t.path:t.path[e]},getQuery:function(e,r){var n;return void 0===e?n=t.query:(n=t.query[e])&&void 0!==r&&(n=n[r]),n},getQueryLast:function(e,t){var n=r.getQuery(e);return n?n[n.length-1]:t}};return r},s.makeLink=function(e,t,r){e=jQuery.isArray(e)?e.join("/"):e;var n=jQuery.param(t||{});return r=r||"",e+(n.length>0?"?"+n:"")+(r.length>0?"#"+r:"")},s.setPath=function(e,t,r){if("object"==typeof e&&null!==e)for(var n=0,a=t.length;n<a;){var i=t[n++];if(n==a)e[i]=r;else{var o=i in e;(!o||o&&"object"!=typeof e[i]||o&&null===e[i])&&(e[i]={}),e=e[i]}}},s.getPath=function(e,t,r){for(var n=0,a=t.length,i=!0;i&&n<a&&"object"==typeof e&&null!==e;){var o=t[n++];i=o in e,i&&(e=e[o])}return i?e:r},s.deletePath=function(e,t){if("object"==typeof e&&null!==e)for(var r=0,n=t.length;r<n;){var a=t[r++];if(r==n)delete e[a];else{if(!(a in e)||"object"!=typeof e[a]||null===e[a])break;e=e[a]}}},s.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},s.format=function(e){for(var t,r,n=/%./g,a=0,i=[],o=0;t=n.exec(e);){r=e.substring(o,n.lastIndex-2),r.length>0&&i.push(r),o=n.lastIndex;var u=t[0][1];switch(u){case"s":case"o":a<arguments.length?i.push(arguments[1+a++]):i.push("<?>");break;case"%":i.push("%");break;default:i.push("<%"+u+"?>")}}return i.push(e.substring(o)),i.join("")},s.formatNumber=function(e,t,r,n){var a=e,i=isNaN(t=Math.abs(t))?2:t,o=void 0===r?",":r,u=void 0===n?".":n,s=a<0?"-":"",c=parseInt(a=Math.abs(+a||0).toFixed(i),10)+"",l=c.length>3?c.length%3:0;return s+(l?c.substr(0,l)+u:"")+c.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+u)+(i?o+Math.abs(a-c).toFixed(i).slice(2):"")},s.formatSize=function(e){return e=e>=1073741824?s.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?s.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?s.formatNumber(e/1024,0)+" KiB":s.formatNumber(e,0)+" bytes"},s.bytesFromIP=function(e){return-1!==e.indexOf(".")?s.bytesFromIPv4(e):-1!==e.indexOf(":")?s.bytesFromIPv6(e):null},s.bytesFromIPv4=function(e){if(e=e.split("."),4!==e.length)return null;for(var t=s.createBuffer(),r=0;r<e.length;++r){var n=parseInt(e[r],10);if(isNaN(n))return null;t.putByte(n)}return t.getBytes()},s.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(e){return 0===e.length&&++t,!0});for(var r=2*(8-e.length+t),n=s.createBuffer(),a=0;a<8;++a)if(e[a]&&0!==e[a].length){var i=s.hexToBytes(e[a]);i.length<2&&n.putByte(0),n.putBytes(i)}else n.fillWithByte(0,r),r=0;return n.getBytes()},s.bytesToIP=function(e){return 4===e.length?s.bytesToIPv4(e):16===e.length?s.bytesToIPv6(e):null},s.bytesToIPv4=function(e){if(4!==e.length)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")},s.bytesToIPv6=function(e){if(16!==e.length)return null;for(var t=[],r=[],n=0,a=0;a<e.length;a+=2){for(var i=s.bytesToHex(e[a]+e[a+1]);"0"===i[0]&&"0"!==i;)i=i.substr(1);if("0"===i){var o=r[r.length-1],u=t.length;o&&u===o.end+1?(o.end=u,o.end-o.start>r[n].end-r[n].start&&(n=r.length-1)):r.push({start:u,end:u})}t.push(i)}if(r.length>0){var c=r[n];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),0===c.start&&t.unshift(""),7===c.end&&t.push(""))}return t.join(":")},s.estimateCores=function(e,t){function r(e,o,u){if(0===o){var c=Math.floor(e.reduce(function(e,t){return e+t},0)/e.length);return s.cores=Math.max(1,c),URL.revokeObjectURL(i),t(null,s.cores)}n(u,function(t,n){e.push(a(u,n)),r(e,o-1,u)})}function n(e,t){for(var r=[],n=[],a=0;a<e;++a){var o=new Worker(i);o.addEventListener("message",function(a){if(n.push(a.data),n.length===e){for(var i=0;i<e;++i)r[i].terminate();t(null,n)}}),r.push(o)}for(var a=0;a<e;++a)r[a].postMessage(a)}function a(e,t){for(var r=[],n=0;n<e;++n)for(var a=t[n],i=r[n]=[],o=0;o<e;++o)if(n!==o){var u=t[o];(a.st>u.st&&a.st<u.et||u.st>a.st&&u.st<a.et)&&i.push(o)}return r.reduce(function(e,t){return Math.max(e,t.length)},0)}if("function"==typeof e&&(t=e,e={}),e=e||{},"cores"in s&&!e.update)return t(null,s.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return s.cores=navigator.hardwareConcurrency,t(null,s.cores);if("undefined"==typeof Worker)return s.cores=1,t(null,s.cores);if("undefined"==typeof Blob)return s.cores=2,t(null,s.cores);var i=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){for(var t=Date.now(),r=t+4;Date.now()<r;);self.postMessage({st:t,et:r})})}.toString(),")()"],{type:"application/javascript"}));r([],5,16)}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();e.exports=function(){function e(t){n(this,e),this.list=t.sort(),this.done=!1,this.left={};for(var r=0;r<t.length;++r)this.left[t[r]]=!0}return a(e,[{key:"hasNext",value:function(){return!this.done}},{key:"next",value:function(){for(var e=this.list.slice(),t=null,r=0,n=this.list.length,a=0;a<n;++a){var i=this.list[a],o=this.left[i];(null===t||i>t)&&(o&&a>0&&i>this.list[a-1]||!o&&a<n-1&&i>this.list[a+1])&&(t=i,r=a)}if(null===t)this.done=!0;else{var u=this.left[t]?r-1:r+1;this.list[r]=this.list[u],this.list[u]=t;for(var s=0;s<n;++s)this.list[s]>t&&(this.left[this.list[s]]=!this.left[this.list[s]])}return e}}]),e}()},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(46),o=r(69),u=r(71),s=r(48),c=r(14),l={subject:"s",object:"o",graph:"g"};e.exports=function(){function e(){n(this,e),this.name="URDNA2015",this.blankNodeInfo={},this.hashToBlankNodes={},this.canonicalIssuer=new i("_:c14n"),this.hashAlgorithm="sha256",this.quads}return a(e,[{key:"main",value:function(e){var t=this;t.quads=e;var r={},n=!0,a=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var l=u.value;!function(e){t.forEachComponent(e,function(n){if("BlankNode"===n.termType){var a=n.value;a in t.blankNodeInfo?t.blankNodeInfo[a].quads.push(e):(r[a]=!0,t.blankNodeInfo[a]={quads:[e]})}})}(l)}}catch(e){a=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw o}}for(var f=!0;f;){f=!1,t.hashToBlankNodes={};for(var p in r){var d=t.hashFirstDegreeQuads(p);d in t.hashToBlankNodes?t.hashToBlankNodes[d].push(p):t.hashToBlankNodes[d]=[p]}for(var h=Object.keys(t.hashToBlankNodes).sort(),v=0;v<h.length;++v){var y=h[v],g=t.hashToBlankNodes[y];if(!(g.length>1)){var m=g[0];t.canonicalIssuer.getId(m),delete r[m],delete t.hashToBlankNodes[y],f=!0}}}for(var b=Object.keys(t.hashToBlankNodes).sort(),x=0;x<b.length;++x){for(var w=[],S=b[x],k=t.hashToBlankNodes[S],j=0;j<k.length;++j){var I=k[j];if(!t.canonicalIssuer.hasId(I)){var O=new i("_:b");O.getId(I);var L=t.hashNDegreeQuads(I,O);w.push(L)}}w.sort(function(e,t){return e.hash<t.hash?-1:e.hash>t.hash?1:0});for(var N=0;N<w.length;++N){var C=w[N];for(var E in C.issuer.existing)t.canonicalIssuer.getId(E)}}for(var T=[],A=0;A<t.quads.length;++A){var l=t.quads[A];t.forEachComponent(l,function(e){"BlankNode"!==e.termType||e.value.startsWith(t.canonicalIssuer.prefix)||(e.value=t.canonicalIssuer.getId(e.value))}),T.push(s.serializeQuad(l))}return T.sort(),T.join("")}},{key:"hashFirstDegreeQuads",value:function(e){var t=this,r=t.blankNodeInfo[e];if("hash"in r)return r.hash;for(var n=[],a=r.quads,i=0;i<a.length;++i)!function(r){var i=a[r],o={predicate:i.predicate};t.forEachComponent(i,function(r,n){o[n]=t.modifyFirstDegreeComponent(e,r,n)}),n.push(s.serializeQuad(o))}(i);n.sort();for(var u=new o(t.hashAlgorithm),i=0;i<n.length;++i)u.update(n[i]);return r.hash=u.digest(),r.hash}},{key:"hashRelatedBlankNode",value:function(e,t,r,n){var a=this,i=void 0;i=a.canonicalIssuer.hasId(e)?a.canonicalIssuer.getId(e):r.hasId(e)?r.getId(e):a.hashFirstDegreeQuads(e);var u=new o(a.hashAlgorithm);return u.update(n),"g"!==n&&u.update(a.getRelatedPredicate(t)),u.update(i),u.digest()}},{key:"hashNDegreeQuads",value:function(e,t){for(var r=this,n=new o(r.hashAlgorithm),a=r.createHashToRelated(e,t),i=Object.keys(a).sort(),s=0;s<i.length;++s){var c=i[s];n.update(c);for(var l="",f=void 0,p=new u(a[c]);p.hasNext();){for(var d=p.next(),h=t.clone(),v="",y=[],g=!1,m=0;m<d.length;++m){var b=d[m];if(r.canonicalIssuer.hasId(b)?v+=r.canonicalIssuer.getId(b):(h.hasId(b)||y.push(b),v+=h.getId(b)),0!==l.length&&v.length>=l.length&&v>l){g=!0;break}}if(!g){for(var x=0;x<y.length;++x){var w=y[x],S=r.hashNDegreeQuads(w,h);if(v+=h.getId(w),v+="<"+S.hash+">",h=S.issuer,0!==l.length&&v.length>=l.length&&v>l){g=!0;break}}g||(0===l.length||v<l)&&(l=v,f=h)}}n.update(l),t=f}return{hash:n.digest(),issuer:t}}},{key:"modifyFirstDegreeComponent",value:function(e,t){return"BlankNode"!==t.termType?t:(t=c.clone(t),t.value=t.value===e?"_:a":"_:z",t)}},{key:"getRelatedPredicate",value:function(e){return"<"+e.predicate.value+">"}},{key:"createHashToRelated",value:function(e,t){for(var r=this,n={},a=r.blankNodeInfo[e].quads,i=0;i<a.length;++i){var o=a[i];for(var u in o){var s=o[u];if("predicate"!==u&&"BlankNode"===s.termType&&s.value!==e){var c=s.value,f=l[u],p=r.hashRelatedBlankNode(c,o,t,f);p in n?n[p].push(c):n[p]=[c]}}}return n}},{key:"forEachComponent",value:function(e,t){for(var r in e)"predicate"!==r&&t(e[r],r,e)}}]),e}()},function(e,t,r){r(74),r(75),r(78),r(81),r(104),r(109),e.exports=r(118)},function(e,t){!function(t){"use strict";function r(e,t,r,n){var i=t&&t.prototype instanceof a?t:a,o=Object.create(i.prototype),u=new d(n||[]);return o._invoke=c(e,r,u),o}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function a(){}function i(){}function o(){}function u(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(r,a,i,o){var u=n(e[r],e,a);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&m.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,o)},function(e){t("throw",e,i,o)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},o)}o(u.arg)}function r(e,r){function n(){return new Promise(function(n,a){t(e,r,n,a)})}return a=a?a.then(n,n):n()}var a;this._invoke=r}function c(e,t,r){var a=I;return function(i,o){if(a===L)throw new Error("Generator is already running");if(a===N){if("throw"===i)throw o;return v()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var s=l(u,r);if(s){if(s===C)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===I)throw a=N,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=L;var c=n(e,t,r);if("normal"===c.type){if(a=r.done?N:O,c.arg===C)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(a=N,r.method="throw",r.arg=c.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===y){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=y,l(e,t),"throw"===t.method))return C;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var a=n(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,C;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,C):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(m.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=y,t.done=!0,t};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},x=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",S=b.toStringTag||"@@toStringTag",k="object"==typeof e,j=t.regeneratorRuntime;if(j)return void(k&&(e.exports=j));j=t.regeneratorRuntime=k?e.exports:{},j.wrap=r;var I="suspendedStart",O="suspendedYield",L="executing",N="completed",C={},E={};E[x]=function(){return this};var T=Object.getPrototypeOf,A=T&&T(T(h([])));A&&A!==g&&m.call(A,x)&&(E=A);var D=o.prototype=a.prototype=Object.create(E);i.prototype=D.constructor=o,o.constructor=i,o[S]=i.displayName="GeneratorFunction",j.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},j.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(D),e},j.awrap=function(e){return{__await:e}},u(s.prototype),s.prototype[w]=function(){return this},j.AsyncIterator=s,j.async=function(e,t,n,a){var i=new s(r(e,t,n,a));return j.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},u(D),D[S]="Generator",D[x]=function(){return this},D.toString=function(){return"[object Generator]"},j.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},j.values=h,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=y)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var o=m.call(a,"catchLoc"),u=m.call(a,"finallyLoc");if(o&&u){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return t(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,C):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),p(r),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;p(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:h(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=y),C}}}(function(){return this}()||Function("return this")())},function(e,t,r){r(76),e.exports=r(2).Array.includes},function(e,t,r){"use strict";var n=r(7),a=r(52)(!0);n(n.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r(54)("includes")},function(e,t,r){var n=r(37),a=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),e<0?a(e+t,0):i(e,t)}},function(e,t,r){r(79),e.exports=r(2).Object.assign},function(e,t,r){var n=r(7);n(n.S+n.F,"Object",{assign:r(80)})},function(e,t,r){"use strict";var n=r(22),a=r(41),i=r(31),o=r(56),u=r(53),s=Object.assign;e.exports=!s||r(19)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=s({},e)[r]||Object.keys(s({},t)).join("")!=n})?function(e,t){for(var r=o(e),s=arguments.length,c=1,l=a.f,f=i.f;s>c;)for(var p,d=u(arguments[c++]),h=l?n(d).concat(l(d)):n(d),v=h.length,y=0;v>y;)f.call(d,p=h[y++])&&(r[p]=d[p]);return r}:s},function(e,t,r){r(57),r(82),r(87),r(90),r(102),r(103),e.exports=r(2).Promise},function(e,t,r){"use strict";var n=r(83)(!0);r(58)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(37),a=r(30);e.exports=function(e){return function(t,r){var i,o,u=String(a(t)),s=n(r),c=u.length;return s<0||s>=c?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(o=u.charCodeAt(s+1))<56320||o>57343?e?u.charAt(s):i:e?u.slice(s,s+2):o-56320+(i-55296<<10)+65536)}}},function(e,t,r){"use strict";var n=r(59),a=r(27),i=r(32),o={};r(10)(o,r(0)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(o,{next:a(1,r)}),i(e,t+" Iterator")}},function(e,t,r){var n=r(11),a=r(8),i=r(22);e.exports=r(12)?Object.defineProperties:function(e,t){a(e);for(var r,o=i(t),u=o.length,s=0;u>s;)n.f(e,r=o[s++],t[r]);return e}},function(e,t,r){var n=r(13),a=r(56),i=r(39)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){for(var n=r(88),a=r(22),i=r(16),o=r(1),u=r(10),s=r(23),c=r(0),l=c("iterator"),f=c("toStringTag"),p=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=a(d),v=0;v<h.length;v++){var y,g=h[v],m=d[g],b=o[g],x=b&&b.prototype;if(x&&(x[l]||u(x,l,p),x[f]||u(x,f,g),s[g]=p,m))for(y in n)x[y]||i(x,y,n[y],!0)}},function(e,t,r){"use strict";var n=r(54),a=r(89),i=r(23),o=r(17);e.exports=r(58)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,r):"values"==t?a(0,e[r]):a(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n,a,i,o,u=r(21),s=r(1),c=r(28),l=r(42),f=r(7),p=r(9),d=r(29),h=r(91),v=r(92),y=r(61),g=r(62).set,m=r(97)(),b=r(43),x=r(63),w=r(98),S=r(64),k=s.TypeError,j=s.process,I=j&&j.versions,O=I&&I.v8||"",L=s.Promise,N="process"==l(j),C=function(){},E=a=b.f,T=!!function(){try{var e=L.resolve(1),t=(e.constructor={})[r(0)("species")]=function(e){e(C,C)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},D=function(e,t){if(!e._n){e._n=!0;var r=e._c;m(function(){for(var n=e._v,a=1==e._s,i=0;r.length>i;)!function(t){var r,i,o,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2==e._h&&R(e),e._h=1),!0===u?r=n:(l&&l.enter(),r=u(n),l&&(l.exit(),o=!0)),r===t.promise?c(k("Promise-chain cycle")):(i=A(r))?i.call(r,s,c):s(r)):c(n)}catch(e){l&&!o&&l.exit(),c(e)}}(r[i++]);e._c=[],e._n=!1,t&&!e._h&&B(e)})}},B=function(e){g.call(s,function(){var t,r,n,a=e._v,i=_(e);if(i&&(t=x(function(){N?j.emit("unhandledRejection",a,e):(r=s.onunhandledrejection)?r({promise:e,reason:a}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",a)}),e._h=N||_(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},_=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){g.call(s,function(){var t;N?j.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},P=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},M=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw k("Promise can't be resolved itself");(t=A(e))?m(function(){var n={_w:r,_d:!1};try{t.call(e,c(M,n,1),c(P,n,1))}catch(e){P.call(n,e)}}):(r._v=e,r._s=1,D(r,!1))}catch(e){P.call({_w:r,_d:!1},e)}}};T||(L=function(e){h(this,L,"Promise","_h"),d(e),n.call(this);try{e(c(M,this,1),c(P,this,1))}catch(e){P.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(99)(L.prototype,{then:function(e,t){var r=E(y(this,L));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=N?j.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&D(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=c(M,e,1),this.reject=c(P,e,1)},b.f=E=function(e){return e===L||e===o?new i(e):a(e)}),f(f.G+f.W+f.F*!T,{Promise:L}),r(32)(L,"Promise"),r(100)("Promise"),o=r(2).Promise,f(f.S+f.F*!T,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(u||!T),"Promise",{resolve:function(e){return S(u&&this===o?L:this,e)}}),f(f.S+f.F*!(T&&r(101)(function(e){L.all(e).catch(C)})),"Promise",{all:function(e){var t=this,r=E(t),n=r.resolve,a=r.reject,i=x(function(){var r=[],i=0,o=1;v(e,!1,function(e){var u=i++,s=!1;r.push(void 0),o++,t.resolve(e).then(function(e){s||(s=!0,r[u]=e,--o||n(r))},a)}),--o||n(r)});return i.e&&a(i.v),r.promise},race:function(e){var t=this,r=E(t),n=r.reject,a=x(function(){v(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return a.e&&n(a.v),r.promise}})},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(28),a=r(93),i=r(94),o=r(8),u=r(36),s=r(95),c={},l={},t=e.exports=function(e,t,r,f,p){var d,h,v,y,g=p?function(){return e}:s(e),m=n(r,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(d=u(e.length);d>b;b++)if((y=t?m(o(h=e[b])[0],h[1]):m(e[b]))===c||y===l)return y}else for(v=g.call(e);!(h=v.next()).done;)if((y=a(v,m,h.value,t))===c||y===l)return y};t.BREAK=c,t.RETURN=l},function(e,t,r){var n=r(8);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(23),a=r(0)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[a]===e)}},function(e,t,r){var n=r(42),a=r(0)("iterator"),i=r(23);e.exports=r(2).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(1),a=r(62).set,i=n.MutationObserver||n.WebKitMutationObserver,o=n.process,u=n.Promise,s="process"==r(18)(o);e.exports=function(){var e,t,r,c=function(){var n,a;for(s&&(n=o.domain)&&n.exit();e;){a=e.fn,e=e.next;try{a()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(s)r=function(){o.nextTick(c)};else if(!i||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);r=function(){l.then(c)}}else r=function(){a.call(n,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var a={fn:n,next:void 0};t&&(t.next=a),e||(e=a,r()),t=a}}},function(e,t,r){var n=r(1),a=n.navigator;e.exports=a&&a.userAgent||""},function(e,t,r){var n=r(16);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){"use strict";var n=r(1),a=r(11),i=r(12),o=r(0)("species");e.exports=function(e){var t=n[e];i&&t&&!t[o]&&a.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(0)("iterator"),a=!1;try{var i=[7][n]();i.return=function(){a=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var r=!1;try{var i=[7],o=i[n]();o.next=function(){return{done:r=!0}},i[n]=function(){return o},e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(7),a=r(2),i=r(1),o=r(61),u=r(64);n(n.P+n.R,"Promise",{finally:function(e){var t=o(this,a.Promise||i.Promise),r="function"==typeof e;return this.then(r?function(r){return u(t,e()).then(function(){return r})}:e,r?function(r){return u(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(7),a=r(43),i=r(63);n(n.S,"Promise",{try:function(e){var t=a.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){r(105),e.exports=r(2).String.startsWith},function(e,t,r){"use strict";var n=r(7),a=r(36),i=r(106),o="".startsWith;n(n.P+n.F*r(108)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),r=a(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return o?o.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){var n=r(107),a=r(30);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(a(e))}},function(e,t,r){var n=r(9),a=r(18),i=r(0)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},function(e,t,r){var n=r(0)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){r(110),r(57),r(116),r(117),e.exports=r(2).Symbol},function(e,t,r){"use strict";var n=r(1),a=r(13),i=r(12),o=r(7),u=r(16),s=r(111).KEY,c=r(19),l=r(38),f=r(32),p=r(20),d=r(0),h=r(65),v=r(44),y=r(112),g=r(113),m=r(8),b=r(9),x=r(17),w=r(35),S=r(27),k=r(59),j=r(114),I=r(115),O=r(11),L=r(22),N=I.f,C=O.f,E=j.f,T=n.Symbol,A=n.JSON,D=A&&A.stringify,B=d("_hidden"),_=d("toPrimitive"),R={}.propertyIsEnumerable,P=l("symbol-registry"),M=l("symbols"),U=l("op-symbols"),F=Object.prototype,J="function"==typeof T,z=n.QObject,V=!z||!z.prototype||!z.prototype.findChild,q=i&&c(function(){return 7!=k(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=N(F,t);n&&delete F[t],C(e,t,r),n&&e!==F&&C(F,t,n)}:C,G=function(e){var t=M[e]=k(T.prototype);return t._k=e,t},H=J&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},Q=function(e,t,r){return e===F&&Q(U,t,r),m(e),t=w(t,!0),m(r),a(M,t)?(r.enumerable?(a(e,B)&&e[B][t]&&(e[B][t]=!1),r=k(r,{enumerable:S(0,!1)})):(a(e,B)||C(e,B,S(1,{})),e[B][t]=!0),q(e,t,r)):C(e,t,r)},W=function(e,t){m(e);for(var r,n=y(t=x(t)),a=0,i=n.length;i>a;)Q(e,r=n[a++],t[r]);return e},X=function(e,t){return void 0===t?k(e):W(k(e),t)},K=function(e){var t=R.call(this,e=w(e,!0));return!(this===F&&a(M,e)&&!a(U,e))&&(!(t||!a(this,e)||!a(M,e)||a(this,B)&&this[B][e])||t)},Y=function(e,t){if(e=x(e),t=w(t,!0),e!==F||!a(M,t)||a(U,t)){var r=N(e,t);return!r||!a(M,t)||a(e,B)&&e[B][t]||(r.enumerable=!0),r}},$=function(e){for(var t,r=E(x(e)),n=[],i=0;r.length>i;)a(M,t=r[i++])||t==B||t==s||n.push(t);return n},Z=function(e){for(var t,r=e===F,n=E(r?U:x(e)),i=[],o=0;n.length>o;)!a(M,t=n[o++])||r&&!a(F,t)||i.push(M[t]);return i};J||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(r){this===F&&t.call(U,r),a(this,B)&&a(this[B],e)&&(this[B][e]=!1),q(this,e,S(1,r))};return i&&V&&q(F,e,{configurable:!0,set:t}),G(e)},u(T.prototype,"toString",function(){return this._k}),I.f=Y,O.f=Q,r(66).f=j.f=$,r(31).f=K,r(41).f=Z,i&&!r(21)&&u(F,"propertyIsEnumerable",K,!0),h.f=function(e){return G(d(e))}),o(o.G+o.W+o.F*!J,{Symbol:T});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var re=L(d.store),ne=0;re.length>ne;)v(re[ne++]);o(o.S+o.F*!J,"Symbol",{for:function(e){return a(P,e+="")?P[e]:P[e]=T(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!J,"Object",{create:X,defineProperty:Q,defineProperties:W,getOwnPropertyDescriptor:Y,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),A&&o(o.S+o.F*(!J||c(function(){var e=T();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],a=1;arguments.length>a;)n.push(arguments[a++]);if(r=t=n[1],(b(t)||void 0!==e)&&!H(e))return g(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!H(t))return t}),n[1]=t,D.apply(A,n)}}),T.prototype[_]||r(10)(T.prototype,_,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(e,t,r){var n=r(20)("meta"),a=r(9),i=r(13),o=r(11).f,u=0,s=Object.isExtensible||function(){return!0},c=!r(19)(function(){return s(Object.preventExtensions({}))}),l=function(e){o(e,n,{value:{i:"O"+ ++u,w:{}}})},f=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[n].i},p=function(e,t){if(!i(e,n)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[n].w},d=function(e){return c&&h.NEED&&s(e)&&!i(e,n)&&l(e),e},h=e.exports={KEY:n,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t,r){var n=r(22),a=r(41),i=r(31);e.exports=function(e){var t=n(e),r=a.f;if(r)for(var o,u=r(e),s=i.f,c=0;u.length>c;)s.call(e,o=u[c++])&&t.push(o);return t}},function(e,t,r){var n=r(18);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(17),a=r(66).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return a(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?u(e):a(n(e))}},function(e,t,r){var n=r(31),a=r(27),i=r(17),o=r(35),u=r(13),s=r(51),c=Object.getOwnPropertyDescriptor;t.f=r(12)?c:function(e,t){if(e=i(e),t=o(t,!0),s)try{return c(e,t)}catch(e){}if(u(e,t))return a(!n.f.call(e,t),e[t])}},function(e,t,r){r(44)("asyncIterator")},function(e,t,r){r(44)("observable")},function(e,t,r){"use strict";(function(n){function a(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}var o,u;!function(){var s=r(45),c=r(3),l=c.IdentifierIssuer,f=r(6),p=r(129),d=r(130),h=r(131),v=h.expand,y=r(133),g=y.flatten,m=r(134),b=m.fromRDF,x=r(135),w=x.toRDF,S=r(136),k=S.frameMergedOrDefault,j=r(4),I=j.isArray,O=j.isObject,L=j.isString,N=r(5),C=N.isSubjectReference,E=r(15),T=E.getInitialContext,A=E.process,D=E.getAllContexts,B=(E.expandIri,r(137)),_=B.compact,R=B.compactIri,P=B.removePreserve,M=r(33),U=M.createNodeMap,F=M.createMergedNodeMap,J=M.mergeNodeMaps,z="undefined"!=typeof process&&process.versions&&process.versions.node,V=!z&&("undefined"!=typeof window||"undefined"!=typeof self),q=function(e){function t(t,r){var n=r.documentLoader,i=void 0===n?e.documentLoader:n,o=a(r,["documentLoader"]);return"function"==typeof t&&(t={}),t=t||{},Object.assign({},{documentLoader:i},o,t)}var o=this;e.compact=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a,i){var o,u,s,p,d,h,v,y,g,m,b,x=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(x.length<2)){r.next=2;break}throw new TypeError("Could not compact, too few arguments.");case 2:if(null!==a){r.next=4;break}throw new f("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});case 4:if(null!==n){r.next=6;break}return r.abrupt("return",null);case 6:if(i=t(i,{base:L(n)?n:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new l("_:b")}),i.link&&(i.skipExpansion=!0),i.compactToRelative||delete i.base,o=void 0,!i.skipExpansion){r.next=14;break}o=n,r.next=17;break;case 14:return r.next=16,e.expand(n,i);case 16:o=r.sent;case 17:return r.next=19,e.processContext(T(i),a,i);case 19:u=r.sent,s=_({activeCtx:u,element:o,options:i,compactionMap:i.compactionMap}),i.compactArrays&&!i.graph&&I(s)?1===s.length?s=s[0]:0===s.length&&(s={}):i.graph&&O(s)&&(s=[s]),O(a)&&"@context"in a&&(a=a["@context"]),a=c.clone(a),I(a)||(a=[a]),p=a,a=[];for(d=0;d<p.length;++d)(!O(p[d])||Object.keys(p[d]).length>0)&&a.push(p[d]);if(h=a.length>0,1===a.length&&(a=a[0]),I(s))v=R({activeCtx:u,iri:"@graph",relativeTo:{vocab:!0}}),y=s,s={},h&&(s["@context"]=a),s[v]=y;else if(O(s)&&h){g=s,s={"@context":a};for(m in g)s[m]=g[m]}return i.framing&&(b=R({activeCtx:u,iri:"@graph",relativeTo:{vocab:!0}}),i.link={},s[b]=P(u,s[b],i)),r.abrupt("return",s);case 33:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()),e.expand=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a){var i,o,u,s,l,f,p,d=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(d.length<1)){r.next=2;break}throw new TypeError("Could not expand, too few arguments.");case 2:if(a=t(a,{keepFreeFloatingNodes:!1}),!1===a.expansionMap&&(a.expansionMap=void 0),i={},o=[],"expandContext"in a&&(u=c.clone(a.expandContext),O(u)&&"@context"in u?i.expandContext=u:i.expandContext={"@context":u},o.push(i.expandContext)),s=void 0,L(n)){r.next=12;break}i.input=c.clone(n),r.next=18;break;case 12:return r.next=14,e.get(n,a);case 14:l=r.sent,s=l.documentUrl,i.input=l.document,l.contextUrl&&(i.remoteContext={"@context":l.contextUrl},o.push(i.remoteContext));case 18:return"base"in a||(a.base=s||""),r.next=21,D(i,a);case 21:return f=T(a),o.forEach(function(e){f=A({activeCtx:f,localCtx:e,options:a})}),p=v({activeCtx:f,element:i.input,options:a,expansionMap:a.expansionMap}),O(p)&&"@graph"in p&&1===Object.keys(p).length?p=p["@graph"]:null===p&&(p=[]),I(p)||(p=[p]),r.abrupt("return",p);case 27:case"end":return r.stop()}},r,this)}));return function(e,t){return r.apply(this,arguments)}}()),e.flatten=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a,i){var o,u,s,c=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(c.length<1)){r.next=2;break}return r.abrupt("return",new TypeError("Could not flatten, too few arguments."));case 2:return a="function"==typeof a?null:a||null,i=t(i,{base:L(n)?n:""}),r.next=6,e.expand(n,i);case 6:if(o=r.sent,u=g(o),null!==a){r.next=10;break}return r.abrupt("return",u);case 10:return i.graph=!0,i.skipExpansion=!0,r.next=14,e.compact(u,a,i);case 14:return s=r.sent,r.abrupt("return",s);case 16:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()),e.frame=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a,i){var o,u,s,l,f,p,d,h,v=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(v.length<2)){r.next=2;break}throw new TypeError("Could not frame, too few arguments.");case 2:if(i=t(i,{base:L(n)?n:"",embed:"@last",explicit:!1,requireAll:!0,omitDefault:!1,pruneBlankNodeIdentifiers:!0,bnodesToClear:[]}),!L(a)){r.next=9;break}return r.next=6,e.get(a,i);case 6:o=r.sent,a=o.document,o.contextUrl&&(u=a["@context"],u?I(u)?u.push(o.contextUrl):u=[u,o.contextUrl]:u=o.contextUrl,a["@context"]=u);case 9:return s=a?a["@context"]||{}:{},r.next=12,e.expand(n,i);case 12:return l=r.sent,f=c.clone(i),f.isFrame=!0,f.keepFreeFloatingNodes=!0,r.next=18,e.expand(a,f);case 18:return p=r.sent,d=void 0,f.merged=!("@graph"in a),d=k(l,p,f),f.graph=!0,f.skipExpansion=!0,f.link={},f.framing=!0,r.next=28,e.compact(d,s,f);case 28:return h=r.sent,r.abrupt("return",h);case 30:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()),e.link=c.callbackify(function(){var t=i(regeneratorRuntime.mark(function t(r,n,a){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i={},n&&(i["@context"]=n),i["@embed"]="@link",t.abrupt("return",e.frame(r,i,a));case 4:case"end":return t.stop()}},t,this)}));return function(e,r,n){return t.apply(this,arguments)}}()),e.normalize=e.canonize=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a){var i,o,u,l=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(l.length<1)){r.next=2;break}throw new TypeError("Could not canonize, too few arguments.");case 2:if(!("inputFormat"in(a=t(a,{base:L(n)?n:"",algorithm:"URDNA2015"})))){r.next=8;break}if("application/n-quads"===a.inputFormat||"application/nquads"===a.inputFormat){r.next=6;break}throw new f("Unknown canonicalization input format.","jsonld.CanonizeError");case 6:return i=p.parse(n),r.abrupt("return",s.canonize(i,a));case 8:return o=c.clone(a),delete o.format,o.produceGeneralizedRdf=!1,r.next=13,e.toRDF(n,o);case 13:return u=r.sent,r.abrupt("return",s.canonize(u,a));case 15:case"end":return r.stop()}},r,this)}));return function(e,t){return r.apply(this,arguments)}}()),e.fromRDF=c.callbackify(function(){var e=i(regeneratorRuntime.mark(function e(r,n){var a,i,o,s,c=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(c.length<1)){e.next=2;break}throw new TypeError("Could not convert from RDF, too few arguments.");case 2:if(n=t(n,{format:L(r)?"application/n-quads":void 0}),a=n,i=a.format,o=a.rdfParser,!i){e.next=10;break}if(o=o||u[i]){e.next=8;break}throw new f("Unknown input format.","jsonld.UnknownFormat",{format:i});case 8:e.next=11;break;case 10:o=function(){return r};case 11:return s=void 0,s=o.length>1?new Promise(function(e,t){o(r,function(r,n){r?t(r):e(n)})}):Promise.resolve(o(r)),e.next=15,s;case 15:return s=e.sent,Array.isArray(s)||(s=p.legacyDatasetToQuads(s)),e.abrupt("return",b(s,n));case 18:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}()),e.toRDF=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a){var i,o,u=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(u.length<1)){r.next=2;break}throw new TypeError("Could not convert to RDF, too few arguments.");case 2:return a=t(a,{base:L(n)?n:""}),r.next=5,e.expand(n,a);case 5:if(i=r.sent,o=w(i,a),!a.format){r.next=13;break}if("application/n-quads"!==a.format&&"application/nquads"!==a.format){r.next=12;break}return r.next=11,p.serialize(o);case 11:return r.abrupt("return",r.sent);case 12:throw new f("Unknown output format.","jsonld.UnknownFormat",{format:a.format});case 13:return r.abrupt("return",o);case 14:case"end":return r.stop()}},r,this)}));return function(e,t){return r.apply(this,arguments)}}()),e.createNodeMap=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a){var i,o=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(o.length<1)){r.next=2;break}throw new TypeError("Could not create node map, too few arguments.");case 2:return a=t(a,{base:L(n)?n:""}),r.next=5,e.expand(n,a);case 5:return i=r.sent,r.abrupt("return",F(i,a));case 7:case"end":return r.stop()}},r,this)}));return function(e,t){return r.apply(this,arguments)}}()),e.merge=c.callbackify(function(){var r=i(regeneratorRuntime.mark(function r(n,a,i){var o,u,s,f,p,d,h,v,y,g,m,b,x,w,S,k,j,O=arguments;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(O.length<1)){r.next=2;break}throw new TypeError("Could not merge, too few arguments.");case 2:if(I(n)){r.next=4;break}throw new TypeError('Could not merge, "docs" must be an array.');case 4:return a="function"==typeof a?null:a||null,i=t(i,{}),r.next=8,Promise.all(n.map(function(t){var r=Object.assign({},i);return e.expand(t,r)}));case 8:o=r.sent,u=!0,"mergeNodes"in i&&(u=i.mergeNodes),s=i.issuer||new l("_:b"),f={"@default":{}},p=0;case 14:if(!(p<o.length)){r.next=33;break}if(d=c.relabelBlankNodes(o[p],{issuer:new l("_:b"+p+"-")}),h=u||0===p?f:{"@default":{}},U(d,h,"@default",s),h===f){r.next=30;break}r.t0=regeneratorRuntime.keys(h);case 20:if((r.t1=r.t0()).done){r.next=30;break}if(v=r.t1.value,y=h[v],v in f){r.next=26;break}return f[v]=y,r.abrupt("continue",20);case 26:g=f[v];for(m in y)m in g||(g[m]=y[m]);r.next=20;break;case 30:++p,r.next=14;break;case 33:for(b=J(f),x=[],w=Object.keys(b).sort(),S=0;S<w.length;++S)k=b[w[S]],C(k)||x.push(k);if(null!==a){r.next=39;break}return r.abrupt("return",x);case 39:return i.graph=!0,i.skipExpansion=!0,r.next=43,e.compact(x,a,i);case 43:return j=r.sent,r.abrupt("return",j);case 45:case"end":return r.stop()}},r,this)}));return function(e,t,n){return r.apply(this,arguments)}}()),Object.defineProperty(e,"documentLoader",{get:function(){return e._documentLoader},set:function(t){return e._documentLoader=c.normalizeDocumentLoader(t)}}),e.documentLoader=function(){var e=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:throw new f("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:t});case 1:case"end":return e.stop()}},e,o)}));return function(t){return e.apply(this,arguments)}}(),e.loadDocument=c.callbackify(i(regeneratorRuntime.mark(function t(){var r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.documentLoader.apply(null,r));case 1:case"end":return t.stop()}},t,this)}))),e.get=c.callbackify(function(){var t=i(regeneratorRuntime.mark(function t(r,n){var a,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=void 0,a="function"==typeof n.documentLoader?c.normalizeDocumentLoader(n.documentLoader):e.documentLoader,t.next=4,a(r);case 4:if(i=t.sent,t.prev=5,i.document){t.next=8;break}throw new f("No remote document found at the given URL.","jsonld.NullRemoteDocument");case 8:L(i.document)&&(i.document=JSON.parse(i.document)),t.next=14;break;case 11:throw t.prev=11,t.t0=t.catch(5),new f("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:t.t0,remoteDoc:i});case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}},t,this,[[5,11]])}));return function(e,r){return t.apply(this,arguments)}}()),e.processContext=c.callbackify(function(){var e=i(regeneratorRuntime.mark(function e(r,n,a){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t(a,{base:""}),null!==n){e.next=3;break}return e.abrupt("return",T(a));case 3:return n=c.clone(n),O(n)&&"@context"in n||(n={"@context":n}),e.next=7,D(n,a);case 7:return i=e.sent,e.abrupt("return",A({activeCtx:r,localCtx:i,options:a}));case 9:case"end":return e.stop()}},e,this)}));return function(t,r,n){return e.apply(this,arguments)}}()),e.getContextValue=r(15).getContextValue,e.documentLoaders={},e.documentLoaders.node=r(138),e.documentLoaders.xhr=r(139),e.useDocumentLoader=function(t){if(!(t in e.documentLoaders))throw new f('Unknown document loader type: "'+t+'"',"jsonld.UnknownDocumentLoader",{type:t});e.documentLoader=e.documentLoaders[t].apply(e,Array.prototype.slice.call(arguments,1))};var u={};return e.registerRDFParser=function(e,t){u[e]=t},e.unregisterRDFParser=function(e){delete u[e]},e.registerRDFParser("application/n-quads",p.parse),e.registerRDFParser("application/nquads",p.parse),e.registerRDFParser("rdfa-api",d.parse),e.url=r(26),e.util=c,Object.assign(e,c),e.promises=e,e.RequestQueue=r(50),e.JsonLdProcessor=r(140)(e),V&&void 0===n.JsonLdProcessor&&Object.defineProperty(n,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor}),z?e.useDocumentLoader("node"):"undefined"!=typeof XMLHttpRequest&&e.useDocumentLoader("xhr"),e},G=function e(){return q(function(){return e()})};!z&&r(141)?(o=[],void 0!==(u=function(){return q(G),G}.apply(t,o))&&(e.exports=u)):(q(G),void 0!==e&&e.exports&&(e.exports=G),V&&("undefined"==typeof jsonld?jsonld=jsonldjs=G:jsonldjs=G))}()}).call(t,r(67))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(14);e.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.maxCallStackDepth,a=void 0===r?500:r,i=t.maxTotalCallStackDepth,o=void 0===i?4294967295:i,u=t.timeSlice,s=void 0===u?10:u;n(this,e),this.schedule={},this.schedule.MAX_DEPTH=a,this.schedule.MAX_TOTAL_DEPTH=o,this.schedule.depth=0,this.schedule.totalDepth=0,this.schedule.timeSlice=s}return a(e,[{key:"doWork",value:function(e,t){var r=this.schedule;if(r.totalDepth>=r.MAX_TOTAL_DEPTH)return t(new Error("Maximum total call stack depth exceeded; canonicalization aborting."));!function n(){if(r.depth===r.MAX_DEPTH)return r.depth=0,r.running=!1,i.nextTick(n);var a=Date.now();if(r.running||(r.start=Date.now(),r.deadline=r.start+r.timeSlice),a<r.deadline)return r.running=!0,r.depth++,r.totalDepth++,e(function(e,n){r.depth--,r.totalDepth--,t(e,n)});r.depth=0,r.running=!1,i.setImmediate(n)}()}},{key:"forEach",value:function(e,t,r){var n=this,a=void 0,i=0,o=void 0;if(Array.isArray(e))o=e.length,a=function(){return i!==o&&(a.value=e[i++],a.key=i,!0)};else{var u=Object.keys(e);o=u.length,a=function(){return i!==o&&(a.key=u[i++],a.value=e[a.key],!0)}}!function e(i){return i?r(i):a()?n.doWork(function(){return t(a.value,a.key,e)}):void r()}()}},{key:"waterfall",value:function(e,t){var r=this;r.forEach(e,function(e,t,n){return r.doWork(e,n)},t)}},{key:"whilst",value:function(e,t,r){var n=this;!function a(i){return i?r(i):e()?void n.doWork(t,a):r()}()}}]),e}()},function(e,t,r){function n(){u=String.fromCharCode(128),u+=i.util.fillString(String.fromCharCode(0),64),s=!0}function a(e,t,r){for(var n,a,i,o,u,s,c,l,f=r.length();f>=64;){for(a=e.h0,i=e.h1,o=e.h2,u=e.h3,s=e.h4,l=0;l<16;++l)n=r.getInt32(),t[l]=n,c=u^i&(o^u),n=(a<<5|a>>>27)+c+s+1518500249+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;for(;l<20;++l)n=t[l-3]^t[l-8]^t[l-14]^t[l-16],n=n<<1|n>>>31,t[l]=n,c=u^i&(o^u),n=(a<<5|a>>>27)+c+s+1518500249+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;for(;l<32;++l)n=t[l-3]^t[l-8]^t[l-14]^t[l-16],n=n<<1|n>>>31,t[l]=n,c=i^o^u,n=(a<<5|a>>>27)+c+s+1859775393+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;for(;l<40;++l)n=t[l-6]^t[l-16]^t[l-28]^t[l-32],n=n<<2|n>>>30,t[l]=n,c=i^o^u,n=(a<<5|a>>>27)+c+s+1859775393+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;for(;l<60;++l)n=t[l-6]^t[l-16]^t[l-28]^t[l-32],n=n<<2|n>>>30,t[l]=n,c=i&o|u&(i^o),n=(a<<5|a>>>27)+c+s+2400959708+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;for(;l<80;++l)n=t[l-6]^t[l-16]^t[l-28]^t[l-32],n=n<<2|n>>>30,t[l]=n,c=i^o^u,n=(a<<5|a>>>27)+c+s+3395469782+n,s=u,u=o,o=(i<<30|i>>>2)>>>0,i=a,a=n;e.h0=e.h0+a|0,e.h1=e.h1+i|0,e.h2=e.h2+o|0,e.h3=e.h3+u|0,e.h4=e.h4+s|0,f-=64}}var i=r(24);r(47),r(70);var o=e.exports=i.sha1=i.sha1||{};i.md.sha1=i.md.algorithms.sha1=o,o.create=function(){s||n();var e=null,t=i.util.createBuffer(),r=new Array(80),o={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength64=[];for(var r=o.messageLengthSize/4,n=0;n<r;++n)o.fullMessageLength.push(0);return t=i.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},o},o.start(),o.update=function(n,u){"utf8"===u&&(n=i.util.encodeUtf8(n));var s=n.length;o.messageLength+=s,s=[s/4294967296>>>0,s>>>0];for(var c=o.fullMessageLength.length-1;c>=0;--c)o.fullMessageLength[c]+=s[1],s[1]=s[0]+(o.fullMessageLength[c]/4294967296>>>0),o.fullMessageLength[c]=o.fullMessageLength[c]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(n),a(e,r,t),(t.read>2048||0===t.length())&&t.compact(),o},o.digest=function(){var n=i.util.createBuffer();n.putBytes(t.bytes());var s=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,c=s&o.blockLength-1;n.putBytes(u.substr(0,o.blockLength-c));for(var l,f,p=8*o.fullMessageLength[0],d=0;d<o.fullMessageLength.length-1;++d)l=8*o.fullMessageLength[d+1],f=l/4294967296>>>0,p+=f,n.putInt32(p>>>0),p=l>>>0;n.putInt32(p);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};a(h,r,n);var v=i.util.createBuffer();return v.putInt32(h.h0),v.putInt32(h.h1),v.putInt32(h.h2),v.putInt32(h.h3),v.putInt32(h.h4),v},o};var u=null,s=!1},function(e,t){function r(e,t){var r=0,n=t.length,a=t.charAt(0),i=[0];for(r=0;r<e.length();++r){for(var o=0,u=e.at(r);o<i.length;++o)u+=i[o]<<8,i[o]=u%n,u=u/n|0;for(;u>0;)i.push(u%n),u=u/n|0}var s="";for(r=0;0===e.at(r)&&r<e.length()-1;++r)s+=a;for(r=i.length-1;r>=0;--r)s+=t[i[r]];return s}var n={};e.exports=n;var a={};n.encode=function(e,t,n){if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');if(void 0!==n&&"number"!=typeof n)throw new TypeError('"maxline" must be a number.');var a="";if(e instanceof Uint8Array){var i=0,o=t.length,u=t.charAt(0),s=[0];for(i=0;i<e.length;++i){for(var c=0,l=e[i];c<s.length;++c)l+=s[c]<<8,s[c]=l%o,l=l/o|0;for(;l>0;)s.push(l%o),l=l/o|0}for(i=0;0===e[i]&&i<e.length-1;++i)a+=u;for(i=s.length-1;i>=0;--i)a+=t[s[i]]}else a=r(e,t);if(n){var f=new RegExp(".{1,"+n+"}","g");a=a.match(f).join("\r\n")}return a},n.decode=function(e,t){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if("string"!=typeof t)throw new TypeError('"alphabet" must be a string.');var r=a[t];if(!r){r=a[t]=[];for(var n=0;n<t.length;++n)r[t.charCodeAt(n)]=n}e=e.replace(/\s/g,"");for(var i=t.length,o=t.charAt(0),u=[0],n=0;n<e.length;n++){var s=r[e.charCodeAt(n)];if(void 0===s)return;for(var c=0,l=s;c<u.length;++c)l+=u[c]*i,u[c]=255&l,l>>=8;for(;l>0;)u.push(255&l),l>>=8}for(var f=0;e[f]===o&&f<e.length-1;++f)u.push(0);return"undefined"!=typeof Buffer?Buffer.from(u.reverse()):new Uint8Array(u.reverse())}},function(e,t,r){function n(){u=String.fromCharCode(128),u+=i.util.fillString(String.fromCharCode(0),64),c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=!0}function a(e,t,r){for(var n,a,i,o,u,s,l,f,p,d,h,v,y,g,m,b=r.length();b>=64;){for(l=0;l<16;++l)t[l]=r.getInt32();for(;l<64;++l)n=t[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,a=t[l-15],a=(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,t[l]=n+t[l-7]+a+t[l-16]|0;for(f=e.h0,p=e.h1,d=e.h2,h=e.h3,v=e.h4,y=e.h5,g=e.h6,m=e.h7,l=0;l<64;++l)o=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=g^v&(y^g),i=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),s=f&p|d&(f^p),n=m+o+u+c[l]+t[l],a=i+s,m=g,g=y,y=v,v=h+n>>>0,h=d,d=p,p=f,f=n+a>>>0;e.h0=e.h0+f|0,e.h1=e.h1+p|0,e.h2=e.h2+d|0,e.h3=e.h3+h|0,e.h4=e.h4+v|0,e.h5=e.h5+y|0,e.h6=e.h6+g|0,e.h7=e.h7+m|0,b-=64}}var i=r(24);r(47),r(70);var o=e.exports=i.sha256=i.sha256||{};i.md.sha256=i.md.algorithms.sha256=o,o.create=function(){s||n();var e=null,t=i.util.createBuffer(),r=new Array(64),o={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength64=[];for(var r=o.messageLengthSize/4,n=0;n<r;++n)o.fullMessageLength.push(0);return t=i.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},o},o.start(),o.update=function(n,u){"utf8"===u&&(n=i.util.encodeUtf8(n));var s=n.length;o.messageLength+=s,s=[s/4294967296>>>0,s>>>0];for(var c=o.fullMessageLength.length-1;c>=0;--c)o.fullMessageLength[c]+=s[1],s[1]=s[0]+(o.fullMessageLength[c]/4294967296>>>0),o.fullMessageLength[c]=o.fullMessageLength[c]>>>0,s[0]=s[1]/4294967296>>>0;return t.putBytes(n),a(e,r,t),(t.read>2048||0===t.length())&&t.compact(),o},o.digest=function(){var n=i.util.createBuffer();n.putBytes(t.bytes());var s=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,c=s&o.blockLength-1;n.putBytes(u.substr(0,o.blockLength-c));for(var l,f,p=8*o.fullMessageLength[0],d=0;d<o.fullMessageLength.length-1;++d)l=8*o.fullMessageLength[d+1],f=l/4294967296>>>0,p+=f,n.putInt32(p>>>0),p=l>>>0;n.putInt32(p);var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};a(h,r,n);var v=i.util.createBuffer();return v.putInt32(h.h0),v.putInt32(h.h1),v.putInt32(h.h2),v.putInt32(h.h3),v.putInt32(h.h4),v.putInt32(h.h5),v.putInt32(h.h6),v.putInt32(h.h7),v},o};var u=null,s=!1,c=null},function(e,t,r){(function(e){function n(e,r){var n={seen:[],stylize:i};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),u(n,e,n.depth)}function a(e,t){var r=n.styles[t];return r?"["+n.colors[r][0]+"m"+e+"["+n.colors[r][1]+"m":e}function i(e,t){return e}function o(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,r,n){if(e.customInspect&&r&&I(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var a=r.inspect(n,e);return m(a)||(a=u(e,a,n)),a}var i=s(e,r);if(i)return i;var h=Object.keys(r),v=o(h);if(e.showHidden&&(h=Object.getOwnPropertyNames(r)),j(r)&&(h.indexOf("message")>=0||h.indexOf("description")>=0))return c(r);if(0===h.length){if(I(r)){var y=r.name?": "+r.name:"";return e.stylize("[Function"+y+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(j(r))return c(r)}var g="",b=!1,x=["{","}"];if(d(r)&&(b=!0,x=["[","]"]),I(r)){g=" [Function"+(r.name?": "+r.name:"")+"]"}if(w(r)&&(g=" "+RegExp.prototype.toString.call(r)),k(r)&&(g=" "+Date.prototype.toUTCString.call(r)),j(r)&&(g=" "+c(r)),0===h.length&&(!b||0==r.length))return x[0]+g+x[1];if(n<0)return w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var S;return S=b?l(e,r,n,v,h):h.map(function(t){return f(e,r,n,v,t,b)}),e.seen.pop(),p(S,g,x)}function s(e,t){if(x(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,a){for(var i=[],o=0,u=t.length;o<u;++o)E(t,String(o))?i.push(f(e,t,r,n,String(o),!0)):i.push("");return a.forEach(function(a){a.match(/^\d+$/)||i.push(f(e,t,r,n,a,!0))}),i}function f(e,t,r,n,a,i){var o,s,c;if(c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),E(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(r)?u(e,c.value,null):u(e,c.value,r-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),x(o)){if(i&&a.match(/^\d+$/))return s;o=JSON.stringify(""+a),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return null==e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function x(e){return void 0===e}function w(e){return S(e)&&"[object RegExp]"===L(e)}function S(e){return"object"==typeof e&&null!==e}function k(e){return S(e)&&"[object Date]"===L(e)}function j(e){return S(e)&&("[object Error]"===L(e)||e instanceof Error)}function I(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function L(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}function C(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),B[e.getMonth()],t].join(" ")}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=/%[sdj%]/g;t.format=function(e){if(!m(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(n(arguments[r]));return t.join(" ")}for(var r=1,a=arguments,i=a.length,o=String(e).replace(T,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(a[r++]);case"%d":return Number(a[r++]);case"%j":try{return JSON.stringify(a[r++])}catch(e){return"[Circular]"}default:return e}}),u=a[r];r<i;u=a[++r])v(u)||!S(u)?o+=" "+u:o+=" "+n(u);return o},t.deprecate=function(r,n){function a(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}if(x(e.process))return function(){return t.deprecate(r,n).apply(this,arguments)};if(!0===process.noDeprecation)return r;var i=!1;return a};var A,D={};t.debuglog=function(e){if(x(A)&&(A=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!D[e])if(new RegExp("\\b"+e+"\\b","i").test(A)){var r=process.pid;D[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else D[e]=function(){};return D[e]},t.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=y,t.isNumber=g,t.isString=m,t.isSymbol=b,t.isUndefined=x,t.isRegExp=w,t.isObject=S,t.isDate=k,t.isError=j,t.isFunction=I,t.isPrimitive=O,t.isBuffer=r(124);var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=r(125),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(t,r(67))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(68),s=r(14);e.exports=function(e){function t(e){n(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.name="URGNA2012",r.hashAlgorithm="sha1",r}return i(t,e),o(t,[{key:"modifyFirstDegreeComponent",value:function(e,t,r){return"BlankNode"!==t.termType?t:(t=s.clone(t),t.value="name"===r?"_:g":t.value===e?"_:a":"_:z",t)}},{key:"getRelatedPredicate",value:function(e){return e.predicate.value}},{key:"createHashToRelated",value:function(e,t,r){var n=this,a={},i=n.blankNodeInfo[e].quads;n.forEach(i,function(r,i,o){var u=void 0,s=void 0;if("BlankNode"===r.subject.termType&&r.subject.value!==e)s=r.subject.value,u="p";else{if("BlankNode"!==r.object.termType||r.object.value===e)return o();s=r.object.value,u="r"}n.hashRelatedBlankNode(s,r,t,u,function(e,t){if(e)return o(e);t in a?a[t].push(s):a[t]=[s],o()})},function(e){return r(e,a)})}}]),t}(u)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(72),s=r(14);e.exports=function(e){function t(){n(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="URGNA2012",e.hashAlgorithm="sha1",e}return i(t,e),o(t,[{key:"modifyFirstDegreeComponent",value:function(e,t,r){return"BlankNode"!==t.termType?t:(t=s.clone(t),t.value="name"===r?"_:g":t.value===e?"_:a":"_:z",t)}},{key:"getRelatedPredicate",value:function(e){return e.predicate.value}},{key:"createHashToRelated",value:function(e,t){for(var r=this,n={},a=r.blankNodeInfo[e].quads,i=0;i<a.length;++i){var o=a[i],u=void 0,s=void 0;if("BlankNode"===o.subject.termType&&o.subject.value!==e)s=o.subject.value,u="p";else{if("BlankNode"!==o.object.termType||o.object.value===e)continue;s=o.object.value,u="r"}var c=r.hashRelatedBlankNode(s,o,t,u);c in n?n[c].push(s):n[c]=[s]}return n}}]),t}(u)},function(e,t){},function(e,t,r){"use strict";e.exports=r(45).NQuads},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){return"undefined"==typeof XMLSerializer?r(49).XMLSerializer:XMLSerializer}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(25),u=o.RDF_LANGSTRING,s=o.RDF_PLAIN_LITERAL,c=o.RDF_OBJECT,l=o.RDF_XML_LITERAL,f=o.XSD_STRING,p=void 0;p="undefined"!=typeof Node?Node:{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},e.exports=function(){function e(){n(this,e)}return i(e,[{key:"parse",value:function(e){var t={};t["@default"]=[];for(var r=e.getSubjects(),n=0;n<r.length;++n){var i=r[n];if(null!==i){var o=e.getSubjectTriples(i);if(null!==o){var d=o.predicates;for(var h in d)for(var v=d[h].objects,y=0;y<v.length;++y){var g=v[y],m={};0===i.indexOf("_:")?m.subject={type:"blank node",value:i}:m.subject={type:"IRI",value:i},0===h.indexOf("_:")?m.predicate={type:"blank node",value:h}:m.predicate={type:"IRI",value:h};var b=g.value;if(g.type===l){var x=a(),w=new x;b="";for(var S=0;S<g.value.length;S++)g.value[S].nodeType===p.ELEMENT_NODE?b+=w.serializeToString(g.value[S]):g.value[S].nodeType===p.TEXT_NODE&&(b+=g.value[S].nodeValue)}m.object={},g.type===c?0===g.value.indexOf("_:")?m.object.type="blank node":m.object.type="IRI":(m.object.type="literal",g.type===s?g.language?(m.object.datatype=u,m.object.language=g.language):m.object.datatype=f:m.object.datatype=g.type),m.object.value=b,t["@default"].push(m)}}}}return t}}]),e}()},function(e,t,r){"use strict";function n(e){var t=e.activeCtx,r=e.activeProperty,a=e.expandedActiveProperty,u=e.element,c=e.expandedParent,h=e.options,m=void 0===h?{}:h,k=e.insideList,I=e.expansionMap,N=Object.keys(u).sort(),E=[],T=!0,A=!1,D=void 0;try{for(var B,_=N[Symbol.iterator]();!(T=(B=_.next()).done);T=!0){var R=B.value,P=u[R],M=void 0;if("@context"!==R){var U=b(t,R,{vocab:!0});if(null!==U&&(j(U)||w(U))||void 0!==(U=I({unmappedProperty:R,activeCtx:t,activeProperty:r,parent:u,options:m,insideList:k,value:P,expandedParent:c}))){if(w(U)){if("@reverse"===a)throw new s("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:P});if(U in c)throw new s("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:U})}if("@id"!==U)if("@type"!==U){if("@graph"===U&&!f(P)&&!l(P))throw new s('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:P});if("@value"!==U)if("@language"!==U)if("@index"!==U)if("@reverse"!==U)if("@nest"!==U){var F=t,J=x(t,R,"@context");J&&(F=S({activeCtx:t,localCtx:J,options:m}));var z=x(F,R,"@container")||[];if(z.includes("@language")&&f(P))M=i(F,P);else if(z.includes("@index")&&f(P)){var V=z.includes("@graph");M=o({activeCtx:F,options:m,activeProperty:R,value:P,expansionMap:I,asGraph:V,indexKey:"@index"})}else if(z.includes("@id")&&f(P)){var q=z.includes("@graph");M=o({activeCtx:F,options:m,activeProperty:R,value:P,expansionMap:I,asGraph:q,indexKey:"@id"})}else if(z.includes("@type")&&f(P))M=o({activeCtx:F,options:m,activeProperty:R,value:P,expansionMap:I,asGraph:!1,indexKey:"@type"});else{var G="@list"===U;if(G||"@set"===U){var H=r;if(G&&"@graph"===a&&(H=null),M=C.expand({activeCtx:F,activeProperty:H,element:P,options:m,insideList:G,expansionMap:I}),G&&v(M))throw new s("Invalid JSON-LD syntax; lists of lists are not permitted.","jsonld.SyntaxError",{code:"list of lists"})}else M=C.expand({activeCtx:F,activeProperty:R,element:P,options:m,insideList:!1,expansionMap:I})}if(null!==M||"@value"===U||void 0!==(M=I({unmappedValue:P,expandedProperty:U,activeCtx:F,activeProperty:r,parent:u,options:m,insideList:k,key:R,expandedParent:c})))if("@list"!==U&&!v(M)&&z.includes("@list")&&(M=l(M)?M:[M],M={"@list":M}),!z.includes("@graph")||z.some(function(e){return"@id"===e||"@index"===e})||g(M)||(M=[].concat(M),M={"@graph":M}),F.mappings[R]&&F.mappings[R].reverse){var Q=c["@reverse"]=c["@reverse"]||{};l(M)||(M=[M]);for(var W=0;W<M.length;++W){var X=M[W];if(y(X)||v(X))throw new s('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:M});O(Q,U,X,{propertyIsArray:!0})}}else{var K=!["@index","@id","@type","@value","@language"].includes(U);O(c,U,M,{propertyIsArray:K})}}else E.push(R);else{if(!f(P))throw new s('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:P});if("@reverse"in(M=C.expand({activeCtx:t,activeProperty:"@reverse",element:P,options:m,expansionMap:I})))for(var Y in M["@reverse"])O(c,Y,M["@reverse"][Y],{propertyIsArray:!0});var $=c["@reverse"]||null;for(var Z in M)if("@reverse"!==Z){null===$&&($=c["@reverse"]={}),O($,Z,[],{propertyIsArray:!0});for(var ee=M[Z],te=0;te<ee.length;++te){var re=ee[te];if(y(re)||v(re))throw new s('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:M});O($,Z,re,{propertyIsArray:!0})}}}else{if(!d(P))throw new s('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:P});O(c,"@index",P)}else{if(null===P)continue;if(!d(P)&&!m.isFrame)throw new s('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:P});P=[].concat(P).map(function(e){return d(e)?e.toLowerCase():e}),O(c,"@language",P,{propertyIsArray:m.isFrame})}else{if((f(P)||l(P))&&!m.isFrame)throw new s('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:P});O(c,"@value",P,{propertyIsArray:m.isFrame})}}else L(P),O(c,"@type",[].concat(P).map(function(e){return d(e)?b(t,e,{base:!0,vocab:!0}):e}),{propertyIsArray:m.isFrame});else{if(!d(P)){if(!m.isFrame)throw new s('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:P});if(f(P)){if(!p(P))throw new s('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:P})}else{if(!l(P))throw new s('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:P});if(!P.every(function(e){return d(e)}))throw new s('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:P})}}O(c,"@id",[].concat(P).map(function(e){return d(e)?b(t,e,{base:!0}):e}),{propertyIsArray:m.isFrame})}}}}}catch(e){A=!0,D=e}finally{try{!T&&_.return&&_.return()}finally{if(A)throw D}}var ne=!0,ae=!1,ie=void 0;try{for(var oe,ue=E[Symbol.iterator]();!(ne=(oe=ue.next()).done);ne=!0){var se=oe.value,ce=l(u[se])?u[se]:[u[se]],le=!0,fe=!1,pe=void 0;try{for(var de,he=ce[Symbol.iterator]();!(le=(de=he.next()).done);le=!0){var ve=de.value;if(!f(ve)||Object.keys(ve).some(function(e){return"@value"===b(t,e,{vocab:!0})}))throw new s("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:ve});n({activeCtx:t,activeProperty:r,expandedActiveProperty:a,element:ve,expandedParent:c,options:m,insideList:k,expansionMap:I})}}catch(e){fe=!0,pe=e}finally{try{!le&&he.return&&he.return()}finally{if(fe)throw pe}}}}catch(e){ae=!0,ie=e}finally{try{!ne&&ue.return&&ue.return()}finally{if(ae)throw ie}}}function a(e){var t=e.activeCtx,r=e.activeProperty,n=e.value;if(null===n||void 0===n)return null;var a=b(t,r,{vocab:!0});if("@id"===a)return b(t,n,{base:!0});if("@type"===a)return b(t,n,{vocab:!0,base:!0});var i=x(t,r,"@type");if(("@id"===i||"@graph"===a)&&d(n))return{"@id":b(t,n,{base:!0})};if("@vocab"===i&&d(n))return{"@id":b(t,n,{vocab:!0,base:!0})};if(w(a))return n;var o={};if(i&&!["@id","@vocab"].includes(i))o["@type"]=i;else if(d(n)){var s=x(t,r,"@language");null!==s&&(o["@language"]=s)}return["boolean","number","string"].includes(void 0===n?"undefined":u(n))||(n=n.toString()),o["@value"]=n,o}function i(e,t){var r=[],n=Object.keys(t).sort(),a=!0,i=!1,o=void 0;try{for(var u,c=n[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var f=u.value,p=b(e,f,{vocab:!0}),h=t[f];l(h)||(h=[h]);var v=!0,y=!1,g=void 0;try{for(var m,x=h[Symbol.iterator]();!(v=(m=x.next()).done);v=!0){var w=m.value;if(null!==w){if(!d(w))throw new s("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});var S={"@value":w};"@none"!==p&&(S["@language"]=f.toLowerCase()),r.push(S)}}}catch(e){y=!0,g=e}finally{try{!v&&x.return&&x.return()}finally{if(y)throw g}}}}catch(e){i=!0,o=e}finally{try{!a&&c.return&&c.return()}finally{if(i)throw o}}return r}function o(e){var t=e.activeCtx,r=e.options,n=e.activeProperty,a=e.value,i=e.expansionMap,o=e.asGraph,u=e.indexKey,s=[],c=Object.keys(a).sort(),f=!0,p=!1,d=void 0;try{for(var h,v=c[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value,m=x(t,y,"@context");m&&(t=S({activeCtx:t,localCtx:m,options:r}));var w=a[y];l(w)||(w=[w]);var k=b(t,y,{vocab:!0});"@id"===u?y=b(t,y,{base:!0}):"@type"===u&&(y=k),w=C.expand({activeCtx:t,activeProperty:n,element:w,options:r,insideList:!1,expansionMap:i});var j=!0,I=!1,O=void 0;try{for(var L,N=w[Symbol.iterator]();!(j=(L=N.next()).done);j=!0){var E=L.value;o&&!g(E)&&(E={"@graph":[E]}),"@type"===u?"@none"===k||(E["@type"]?E["@type"]=[y].concat(E["@type"]):E["@type"]=[y]):"@none"===k||u in E||(E[u]=y),s.push(E)}}catch(e){I=!0,O=e}finally{try{!j&&N.return&&N.return()}finally{if(I)throw O}}}}catch(e){p=!0,d=e}finally{try{!f&&v.return&&v.return()}finally{if(p)throw d}}return s}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(6),c=r(4),l=c.isArray,f=c.isObject,p=c.isEmptyObject,d=c.isString,h=r(5),v=h.isList,y=h.isValue,g=h.isGraph,m=r(15),b=m.expandIri,x=m.getContextValue,w=m.isKeyword,S=m.process,k=r(26),j=k.isAbsolute,I=r(3),O=I.addValue,L=I.validateTypeValue,N=I.getValues,C={};e.exports=C,C.expand=function(e){var t=e.activeCtx,r=e.activeProperty,i=void 0===r?null:r,o=e.element,u=e.options,c=void 0===u?{}:u,h=e.insideList,y=void 0!==h&&h,g=e.expansionMap,m=void 0===g?function(){}:g;if(null===o||void 0===o)return null;if("@default"===i&&(c=Object.assign({},c,{isFrame:!1})),!l(o)&&!f(o)){if(!y&&(null===i||"@graph"===b(t,i,{vocab:!0}))){var w=m({unmappedValue:o,activeCtx:t,activeProperty:i,options:c,insideList:y});return void 0===w?null:w}return a({activeCtx:t,activeProperty:i,value:o})}if(l(o)){var k=[],I=x(t,i,"@container")||[];y=y||I.includes("@list");for(var O=0;O<o.length;++O){var L=C.expand({activeCtx:t,activeProperty:i,element:o[O],options:c,expansionMap:m});if(y&&(l(L)||v(L)))throw new s("Invalid JSON-LD syntax; lists of lists are not permitted.","jsonld.SyntaxError",{code:"list of lists"});null===L&&void 0===(L=m({unmappedValue:o[O],activeCtx:t,activeProperty:i,parent:o,index:O,options:c,expandedParent:k,insideList:y}))||(l(L)?k=k.concat(L):k.push(L))}return k}"@context"in o&&(t=S({activeCtx:t,localCtx:o["@context"],options:c}));var E=Object.keys(o).sort(),T=!0,A=!1,D=void 0;try{for(var B,_=E[Symbol.iterator]();!(T=(B=_.next()).done);T=!0){var R=B.value;if("@type"===b(t,R,{vocab:!0})){var P=[].concat(o[R]),M=!0,U=!1,F=void 0;try{for(var J,z=P[Symbol.iterator]();!(M=(J=z.next()).done);M=!0){var V=J.value,q=x(t,V,"@context");q&&(t=S({activeCtx:t,localCtx:q,options:c}))}}catch(e){U=!0,F=e}finally{try{!M&&z.return&&z.return()}finally{if(U)throw F}}}}}catch(e){A=!0,D=e}finally{try{!T&&_.return&&_.return()}finally{if(A)throw D}}var G=b(t,i,{vocab:!0}),H={};n({activeCtx:t,activeProperty:i,expandedActiveProperty:G,element:o,expandedParent:H,options:c,insideList:y,expansionMap:m}),E=Object.keys(H);var Q=E.length;if("@value"in H){if("@type"in H&&"@language"in H)throw new s('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and "@language".',"jsonld.SyntaxError",{code:"invalid value object",element:H});var W=Q-1;if("@type"in H&&(W-=1),"@index"in H&&(W-=1),"@language"in H&&(W-=1),0!==W)throw new s('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and at most one other property which can be "@type" or "@language".',"jsonld.SyntaxError",{code:"invalid value object",element:H});var X=null===H["@value"]?[]:[].concat(H["@value"]),K=N(H,"@type");if(0===X.length){var Y=m({unmappedValue:H,activeCtx:t,activeProperty:i,element:o,options:c,insideList:y});H=void 0!==Y?Y:null}else{if(!X.every(function(e){return d(e)||p(e)})&&"@language"in H)throw new s("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:H});if(!K.every(function(e){return j(e)&&!(d(e)&&0===e.indexOf("_:"))||p(e)}))throw new s('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:H})}}else if("@type"in H&&!l(H["@type"]))H["@type"]=[H["@type"]];else if("@set"in H||"@list"in H){if(Q>1&&!(2===Q&&"@index"in H))throw new s('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:H});"@set"in H&&(H=H["@set"],E=Object.keys(H),Q=E.length)}else if(1===Q&&"@language"in H){var $=m(H,{unmappedValue:H,activeCtx:t,activeProperty:i,element:o,options:c,insideList:y});H=void 0!==$?$:null}if(f(H)&&!c.keepFreeFloatingNodes&&!y&&(null===i||"@graph"===G)&&(0===Q||"@value"in H||"@list"in H||1===Q&&"@id"in H)){var Z=m({unmappedValue:H,activeCtx:t,activeProperty:i,element:o,options:c,insideList:y});H=void 0!==Z?Z:null}return H}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(3),o=i.clone;e.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;n(this,e),this.order=[],this.cache={},this.size=t}return a(e,[{key:"get",value:function(e,t){var r=JSON.stringify(e),n=JSON.stringify(t),a=this.cache[r];return a&&n in a?a[n]:null}},{key:"set",value:function(e,t,r){if(this.order.length===this.size){var n=this.order.shift();delete this.cache[n.activeCtx][n.localCtx]}var a=JSON.stringify(e),i=JSON.stringify(t);this.order.push({activeCtx:a,localCtx:i}),a in this.cache||(this.cache[a]={}),this.cache[a][i]=o(r)}}]),e}()},function(e,t,r){"use strict";var n=r(5),a=n.isSubjectReference,i=r(33),o=i.createMergedNodeMap,u={};e.exports=u,u.flatten=function(e){for(var t=o(e),r=[],n=Object.keys(t).sort(),i=0;i<n.length;++i){var u=t[n[i]];a(u)||r.push(u)}return r}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t){if(e.termType.endsWith("Node"))return{"@id":e.value};var r={"@value":e.value};if(e.language)r["@language"]=e.language;else{var n=e.datatype.value;if(n||(n=g),t){if(n===h)"true"===r["@value"]?r["@value"]=!0:"false"===r["@value"]&&(r["@value"]=!1);else if(o.isNumeric(r["@value"]))if(n===y){var a=parseInt(r["@value"],10);a.toFixed(0)===r["@value"]&&(r["@value"]=a)}else n===v&&(r["@value"]=parseFloat(r["@value"]));[h,y,v,g].includes(n)||(r["@type"]=n)}else n!==g&&(r["@type"]=n)}return r}var i=r(5),o=r(4),u=r(3),s=r(25),c=s.RDF_LIST,l=s.RDF_FIRST,f=s.RDF_REST,p=s.RDF_NIL,d=s.RDF_TYPE,h=s.XSD_BOOLEAN,v=s.XSD_DOUBLE,y=s.XSD_INTEGER,g=s.XSD_STRING,m={};e.exports=m,m.fromRDF=function(){var e=n(regeneratorRuntime.mark(function e(t,r){var n,s,h,v,y,g,m,b,x,w,S,k,j,I,O,L,N,C,E,T,A,D,B,_,R,P,M,U,F,J,z,V,q,G,H,Q,W,X,K,Y,$,Z,ee,te,re,ne,ae,ie,oe,ue,se,ce,le,fe,pe,de,he=r.useRdfType,ve=void 0!==he&&he,ye=r.useNativeTypes,ge=void 0!==ye&&ye;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={},s={"@default":n},h={},v=!0,y=!1,g=void 0,e.prev=6,m=t[Symbol.iterator]();case 8:if(v=(b=m.next()).done){e.next=30;break}if(x=b.value,w="DefaultGraph"===x.graph.termType?"@default":x.graph.value,w in s||(s[w]={}),"@default"===w||w in n||(n[w]={"@id":w}),S=s[w],k=x.subject.value,j=x.predicate.value,I=x.object,k in S||(S[k]={"@id":k}),O=S[k],L=I.termType.endsWith("Node"),!L||I.value in S||(S[I.value]={"@id":I.value}),j!==d||ve||!L){e.next=24;break}return u.addValue(O,"@type",I.value,{propertyIsArray:!0}),e.abrupt("continue",27);case 24:N=a(I,ge),u.addValue(O,j,N,{propertyIsArray:!0}),L&&(I.value===p?(C=S[I.value],"usages"in C||(C.usages=[]),C.usages.push({node:O,property:j,value:N})):I.value in h?h[I.value]=!1:h[I.value]={node:O,property:j,value:N});case 27:v=!0,e.next=8;break;case 30:e.next=36;break;case 32:e.prev=32,e.t0=e.catch(6),y=!0,g=e.t0;case 36:e.prev=36,e.prev=37,!v&&m.return&&m.return();case 39:if(e.prev=39,!y){e.next=42;break}throw g;case 42:return e.finish(39);case 43:return e.finish(36);case 44:e.t1=regeneratorRuntime.keys(s);case 45:if((e.t2=e.t1()).done){e.next=125;break}if(w=e.t2.value,E=s[w],p in E){e.next=50;break}return e.abrupt("continue",45);case 50:if(T=E[p],T.usages){e.next=53;break}return e.abrupt("continue",45);case 53:A=!0,D=!1,B=void 0,e.prev=56,_=T.usages[Symbol.iterator]();case 58:if(A=(R=_.next()).done){e.next=108;break}P=R.value,O=P.node,M=P.property,U=P.value,F=[],J=[],z=Object.keys(O).length;case 66:if(!(M===f&&o.isObject(h[O["@id"]])&&o.isArray(O[l])&&1===O[l].length&&o.isArray(O[f])&&1===O[f].length&&(3===z||4===z&&o.isArray(O["@type"])&&1===O["@type"].length&&O["@type"][0]===c))){e.next=78;break}if(F.push(O[l][0]),J.push(O["@id"]),P=h[O["@id"]],O=P.node,M=P.property,U=P.value,z=Object.keys(O).length,i.isBlankNode(O)){e.next=76;break}return e.abrupt("break",78);case 76:e.next=66;break;case 78:if(M!==l){e.next=84;break}if(O["@id"]!==p){e.next=81;break}return e.abrupt("continue",105);case 81:U=E[U["@id"]][f][0],F.pop(),J.pop();case 84:for(delete U["@id"],U["@list"]=F.reverse(),V=!0,q=!1,G=void 0,e.prev=89,H=J[Symbol.iterator]();!(V=(Q=H.next()).done);V=!0)W=Q.value,delete E[W];e.next=97;break;case 93:e.prev=93,e.t3=e.catch(89),q=!0,G=e.t3;case 97:e.prev=97,e.prev=98,!V&&H.return&&H.return();case 100:if(e.prev=100,!q){e.next=103;break}throw G;case 103:return e.finish(100);case 104:return e.finish(97);case 105:A=!0,e.next=58;break;case 108:e.next=114;break;case 110:e.prev=110,e.t4=e.catch(56),D=!0,B=e.t4;case 114:e.prev=114,e.prev=115,!A&&_.return&&_.return();case 117:if(e.prev=117,!D){e.next=120;break}throw B;case 120:return e.finish(117);case 121:return e.finish(114);case 122:delete T.usages,e.next=45;break;case 125:X=[],K=Object.keys(n).sort(),Y=!0,$=!1,Z=void 0,e.prev=130,ee=K[Symbol.iterator]();case 132:if(Y=(te=ee.next()).done){e.next=162;break}if(re=te.value,ne=n[re],!(re in s)){e.next=158;break}for(ae=ne["@graph"]=[],ie=s[re],oe=Object.keys(ie).sort(),ue=!0,se=!1,ce=void 0,e.prev=142,le=oe[Symbol.iterator]();!(ue=(fe=le.next()).done);ue=!0)pe=fe.value,de=ie[pe],i.isSubjectReference(de)||ae.push(de);e.next=150;break;case 146:e.prev=146,e.t5=e.catch(142),se=!0,ce=e.t5;case 150:e.prev=150,e.prev=151,!ue&&le.return&&le.return();case 153:if(e.prev=153,!se){e.next=156;break}throw ce;case 156:return e.finish(153);case 157:return e.finish(150);case 158:i.isSubjectReference(ne)||X.push(ne);case 159:Y=!0,e.next=132;break;case 162:e.next=168;break;case 164:e.prev=164,e.t6=e.catch(130),$=!0,Z=e.t6;case 168:e.prev=168,e.prev=169,!Y&&ee.return&&ee.return();case 171:if(e.prev=171,!$){e.next=174;break}throw Z;case 174:return e.finish(171);case 175:return e.finish(168);case 176:return e.abrupt("return",X);case 177:case"end":return e.stop()}},e,void 0,[[6,32,36,44],[37,,39,43],[56,110,114,122],[89,93,97,105],[98,,100,104],[115,,117,121],[130,164,168,176],[142,146,150,158],[151,,153,157],[169,,171,175]])}));return function(t,r){return e.apply(this,arguments)}}()},function(e,t,r){"use strict";function n(e,t,r,n,o){for(var u=Object.keys(t).sort(),s=0;s<u.length;++s){var f=u[s],p=t[f],d=Object.keys(p).sort(),h=!0,v=!1,y=void 0;try{for(var m,b=d[Symbol.iterator]();!(h=(m=b.next()).done);h=!0){var x=m.value,w=p[x];if("@type"===x)x=g;else if(c(x))continue;var S=!0,k=!1,I=void 0;try{for(var O,L=w[Symbol.iterator]();!(S=(O=L.next()).done);S=!0){var N=O.value,C={termType:f.startsWith("_:")?"BlankNode":"NamedNode",value:f};if(j(f)){var E={termType:x.startsWith("_:")?"BlankNode":"NamedNode",value:x};if(j(x)&&("BlankNode"!==E.termType||o.produceGeneralizedRdf))if(l.isList(N))a(N["@list"],n,C,E,e,r);else{var T=i(N);T&&e.push({subject:C,predicate:E,object:T,graph:r})}}}}catch(e){k=!0,I=e}finally{try{!S&&L.return&&L.return()}finally{if(k)throw I}}}}catch(e){v=!0,y=e}finally{try{!h&&b.return&&b.return()}finally{if(v)throw y}}}}function a(e,t,r,n,a,o){var u={termType:"NamedNode",value:h},s={termType:"NamedNode",value:v},c={termType:"NamedNode",value:y},l=!0,f=!1,p=void 0;try{for(var d,g=e[Symbol.iterator]();!(l=(d=g.next()).done);l=!0){var m=d.value,b={termType:"BlankNode",value:t.getId()};a.push({subject:r,predicate:n,object:b,graph:o}),r=b,n=u;var x=i(m);x&&a.push({subject:r,predicate:n,object:x,graph:o}),n=s}}catch(e){f=!0,p=e}finally{try{!l&&g.return&&g.return()}finally{if(f)throw p}}a.push({subject:r,predicate:n,object:c,graph:o})}function i(e){var t={};if(l.isValue(e)){t.termType="Literal",t.value=void 0,t.datatype={termType:"NamedNode"};var r=e["@value"],n=e["@type"]||null;f.isBoolean(r)?(t.value=r.toString(),t.datatype.value=n||b):f.isDouble(r)||n===x?(f.isDouble(r)||(r=parseFloat(r)),t.value=r.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),t.datatype.value=n||x):f.isNumber(r)?(t.value=r.toFixed(0),t.datatype.value=n||w):"@language"in e?(t.value=r,t.datatype.value=n||m,t.language=e["@language"]):(t.value=r,t.datatype.value=n||S)}else{var a=f.isObject(e)?e["@id"]:e;t.termType=a.startsWith("_:")?"BlankNode":"NamedNode",t.value=a}return"NamedNode"!==t.termType||j(t.value)?t:null}var o=r(33),u=o.createNodeMap,s=r(15),c=s.isKeyword,l=r(5),f=r(4),p=r(3),d=r(25),h=d.RDF_FIRST,v=d.RDF_REST,y=d.RDF_NIL,g=d.RDF_TYPE,m=d.RDF_LANGSTRING,b=d.XSD_BOOLEAN,x=d.XSD_DOUBLE,w=d.XSD_INTEGER,S=d.XSD_STRING,k=r(26),j=k.isAbsolute,I={};e.exports=I,I.toRDF=function(e,t){var r=new p.IdentifierIssuer("_:b"),a={"@default":{}};u(e,a,"@default",r);var i=[],o=Object.keys(a).sort(),s=!0,c=!1,l=void 0;try{for(var f,d=o[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value,v=void 0;if("@default"===h)v={termType:"DefaultGraph",value:""};else{if(!j(h))continue;v=h.startsWith("_:")?{termType:"BlankNode"}:{termType:"NamedNode"},v.value=h}n(i,a[h],v,r,t)}}catch(e){c=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}return i}},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t={};for(var r in e)void 0!==e[r]&&(t["@"+r]=[e[r]]);return[t]}function i(e,t,r){for(var n=r.length-1;n>=0;--n){var a=r[n];if(a.graph===t&&a.subject["@id"]===e["@id"])return!0}return!1}function o(e,t,r){var n="@"+r,a=n in e?e[n][0]:t[r];return"embed"===r&&(!0===a?a="@last":!1===a?a="@never":"@always"!==a&&"@never"!==a&&"@link"!==a&&(a="@last")),a}function u(e){if(!m.isArray(e)||1!==e.length||!m.isObject(e[0]))throw new x("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e})}function s(e,t,r,n){var a={},i=!0,o=!1,u=void 0;try{for(var s,l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var f=s.value,p=e.graphMap[e.graph][f];c(e,p,r,n)&&(a[f]=p)}}catch(e){o=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw u}}return a}function c(e,t,r,n){var a=!0,i=!1;for(var o in r){var s=function(o){var s=!1,c=b.getValues(t,o),l=0===b.getValues(r,o).length;if(y(o)){if("@id"!==o&&"@type"!==o)return"continue";if(a=!1,"@id"===o)return r["@id"].length>=0&&!m.isEmptyObject(r["@id"][0])?{v:r["@id"].includes(c[0])}:(s=!0,"continue");if("@type"in r)if(l){if(c.length>0)return{v:!1};s=!0}else{if(1!==r["@type"].length||!m.isEmptyObject(r["@type"][0])){var f=!0,v=!1,x=void 0;try{for(var w,S=r["@type"][Symbol.iterator]();!(f=(w=S.next()).done);f=!0){var k=w.value,j=function(e){if(c.some(function(t){return t===e}))return{v:{v:!0}}}(k);if("object"===(void 0===j?"undefined":h(j)))return j.v}}catch(e){v=!0,x=e}finally{try{!f&&S.return&&S.return()}finally{if(v)throw x}}return{v:!1}}s=c.length>0}}var I=b.getValues(r,o)[0],O=!1;if(I&&(u([I]),O="@default"in I),a=!1,0===c.length&&O)return"continue";if(c.length>0&&l)return{v:!1};if(void 0===I){if(c.length>0)return{v:!1};s=!0}else if(m.isObject(I))s=c.length>0;else if(g.isValue(I))s=c.some(function(e){return d(I,e)});else if(g.isSubject(I)||g.isSubjectReference(I))s=c.some(function(t){return p(e,I,t,n)});else if(g.isList(I)){var L=I["@list"][0];if(g.isList(c[0])){var N=c[0]["@list"];g.isValue(L)?s=N.some(function(e){return d(L,e)}):(g.isSubject(L)||g.isSubjectReference(L))&&(s=N.some(function(t){return p(e,L,t,n)}))}else s=!1}if(!s&&n.requireAll)return{v:!1};i=i||s}(o);switch(s){case"continue":continue;default:if("object"===(void 0===s?"undefined":h(s)))return s.v}}return a||i}function l(e,t){var r=e.uniqueEmbeds[e.graph],n=r[t],a=n.parent,i=n.property,o={"@id":t};if(m.isArray(a)){for(var u=0;u<a.length;++u)if(b.compareValues(a[u],o)){a[u]=o;break}}else{var s=m.isArray(a[i]);b.removeValue(a,i,o,{propertyIsArray:s}),b.addValue(a,i,o,{propertyIsArray:s})}!function e(t){var n=Object.keys(r),a=!0,i=!1,o=void 0;try{for(var u,s=n[Symbol.iterator]();!(a=(u=s.next()).done);a=!0){var c=u.value;c in r&&m.isObject(r[c].parent)&&r[c].parent["@id"]===t&&(delete r[c],e(c))}}catch(e){i=!0,o=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw o}}}(t)}function f(e,t,r){m.isObject(e)?b.addValue(e,t,r,{propertyIsArray:!0}):e.push(r)}function p(e,t,r,n){if(!("@id"in r))return!1;var a=e.subjects[r["@id"]];return a&&c(e,a,t,n)}function d(e,t){var r=t["@value"],n=t["@type"],a=t["@language"],i=e["@value"]?m.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],o=e["@type"]?m.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],u=e["@language"]?m.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return 0===i.length&&0===o.length&&0===u.length||!(!i.includes(r)&&!m.isEmptyObject(i[0]))&&(!!(!n&&0===o.length||o.includes(n)||n&&m.isEmptyObject(o[0]))&&!!(!a&&0===u.length||u.includes(a)||a&&m.isEmptyObject(u[0])))}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=r(15),y=v.isKeyword,g=r(5),m=r(4),b=r(3),x=r(6),w=r(33),S=w.createNodeMap,k=w.mergeNodeMapGraphs,j={};e.exports=j,j.frameMergedOrDefault=function(e,t,r){var n={options:r,graph:"@default",graphMap:{"@default":{}},graphStack:[],subjectStack:[],link:{},bnodeMap:{}},a=new b.IdentifierIssuer("_:b");S(e,n.graphMap,"@default",a),r.merged&&(n.graphMap["@merged"]=k(n.graphMap),n.graph="@merged"),n.subjects=n.graphMap[n.graph];var i=[];return j.frame(n,Object.keys(n.subjects).sort(),t,i),r.pruneBlankNodeIdentifiers&&(r.bnodesToClear=Object.keys(n.bnodeMap).filter(function(e){return 1===n.bnodeMap[e].length})),i},j.frame=function(e,t,r,c){var p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;u(r),r=r[0];var h=e.options,v={embed:o(r,h,"embed"),explicit:o(r,h,"explicit"),requireAll:o(r,h,"requireAll")},x=s(e,t,r,v),w=Object.keys(x).sort(),S=!0,k=!1,I=void 0;try{for(var O,L=w[Symbol.iterator]();!(S=(O=L.next()).done);S=!0){var N=O.value;(function(t){var u=x[t];if("@link"===v.embed&&t in e.link)return f(c,p,e.link[t]),"continue";null===p?e.uniqueEmbeds=n({},e.graph,{}):e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{};var s={};if(s["@id"]=t,0===t.indexOf("_:")&&b.addValue(e.bnodeMap,t,s,{propertyIsArray:!0}),e.link[t]=s,"@never"===v.embed||i(u,e.graph,e.subjectStack))return f(c,p,s),"continue";if("@last"===v.embed&&(t in e.uniqueEmbeds[e.graph]&&l(e,t),e.uniqueEmbeds[e.graph][t]={parent:c,property:p}),e.subjectStack.push({subject:u,graph:e.graph}),t in e.graphMap){var w=!1,S=null;"@graph"in r?(S=r["@graph"][0],m.isObject(S)||(S={}),w=!("@merged"===t||"@default"===t)):(w="@merged"!==e.graph,S={}),w&&(e.graphStack.push(e.graph),e.graph=t,j.frame(e,Object.keys(e.graphMap[t]).sort(),[S],s,"@graph"),e.graph=e.graphStack.pop)}var k=!0,I=!1,O=void 0;try{for(var L,N=Object.keys(u).sort()[Symbol.iterator]();!(k=(L=N.next()).done);k=!0){var C=L.value;if(y(C)){if(s[C]=b.clone(u[C]),"@type"===C){var E=!0,T=!1,A=void 0;try{for(var D,B=u["@type"][Symbol.iterator]();!(E=(D=B.next()).done);E=!0){var _=D.value;0===_.indexOf("_:")&&b.addValue(e.bnodeMap,_,s,{propertyIsArray:!0})}}catch(e){T=!0,A=e}finally{try{!E&&B.return&&B.return()}finally{if(T)throw A}}}}else if(!v.explicit||C in r){var R=!0,P=!1,M=void 0;try{for(var U,F=u[C][Symbol.iterator]();!(R=(U=F.next()).done);R=!0){var J=U.value,z=C in r?r[C]:a(v);if(g.isList(J)){var V={"@list":[]};f(s,C,V);var q=J["@list"];for(var G in q)if(J=q[G],g.isSubjectReference(J)){var H=C in r?r[C][0]["@list"]:a(v);j.frame(e,[J["@id"]],H,V,"@list")}else f(V,"@list",b.clone(J))}else g.isSubjectReference(J)?j.frame(e,[J["@id"]],z,s,C):d(z[0],J)&&f(s,C,b.clone(J))}}catch(e){P=!0,M=e}finally{try{!R&&F.return&&F.return()}finally{if(P)throw M}}}}}catch(e){I=!0,O=e}finally{try{!k&&N.return&&N.return()}finally{if(I)throw O}}var Q=!0,W=!1,X=void 0;try{for(var K,Y=Object.keys(r).sort()[Symbol.iterator]();!(Q=(K=Y.next()).done);Q=!0){var $=K.value;if(!y($)){var Z=r[$][0]||{};if(!(o(Z,h,"omitDefault")||$ in s)){var ee="@null";"@default"in Z&&(ee=b.clone(Z["@default"])),m.isArray(ee)||(ee=[ee]),s[$]=[{"@preserve":ee}]}}}}catch(e){W=!0,X=e}finally{try{!Q&&Y.return&&Y.return()}finally{if(W)throw X}}if("@reverse"in r){var te=!0,re=!1,ne=void 0;try{for(var ae,ie=Object.keys(r["@reverse"]).sort()[Symbol.iterator]();!(te=(ae=ie.next()).done);te=!0){var oe=ae.value,ue=r["@reverse"][oe],se=!0,ce=!1,le=void 0;try{for(var fe,pe=Object.keys(e.subjects)[Symbol.iterator]();!(se=(fe=pe.next()).done);se=!0){var de=fe.value;b.getValues(e.subjects[de],oe).some(function(e){return e["@id"]===t})&&(s["@reverse"]=s["@reverse"]||{},b.addValue(s["@reverse"],oe,[],{propertyIsArray:!0}),j.frame(e,[de],ue,s["@reverse"][oe],p))}}catch(e){ce=!0,le=e}finally{try{!se&&pe.return&&pe.return()}finally{if(ce)throw le}}}}catch(e){re=!0,ne=e}finally{try{!te&&ie.return&&ie.return()}finally{if(re)throw ne}}}f(c,p,s),e.subjectStack.pop()})(N)}}catch(e){k=!0,I=e}finally{try{!S&&L.return&&L.return()}finally{if(k)throw I}}}},function(e,t,r){"use strict";function n(e){return Array.isArray(e)?e:Array.from(e)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t,r,n,a,i){null===i&&(i="@null");var o=[];if("@id"!==i&&"@reverse"!==i||!g(r))o.push(i);else{"@reverse"===i&&o.push("@reverse");var u=N.compactIri({activeCtx:e,iri:r["@id"],relativeTo:{vocab:!0}});u in e.mappings&&e.mappings[u]&&e.mappings[u]["@id"]===r["@id"]?o.push.apply(o,["@vocab","@id"]):o.push.apply(o,["@id","@vocab"])}o.push("@none");for(var s=e.inverse[t],c=0;c<n.length;++c){var l=n[c];if(l in s)for(var f=s[l][a],p=0;p<o.length;++p){var d=o[p];if(d in f)return f[d]}}return null}function o(e,t){if("@nest"!==b(e,t,{vocab:!0}))throw new u("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}var u=r(6),s=r(4),c=s.isArray,l=s.isObject,f=s.isString,p=r(5),d=p.isList,h=p.isValue,v=p.isGraph,y=p.isSimpleGraph,g=p.isSubjectReference,m=r(15),b=m.expandIri,x=m.getContextValue,w=m.isKeyword,S=m.process,k=r(26),j=k.removeBase,I=r(3),O=I.addValue,L=I.compareShortestLeast,N={};e.exports=N,N.compact=function(e){var t=e.activeCtx,r=e.activeProperty,i=void 0===r?null:r,s=e.element,f=e.options,p=void 0===f?{}:f,m=e.compactionMap,b=void 0===m?function(){}:m;if(c(s)){for(var k=[],j=0;j<s.length;++j){var I=N.compact({activeCtx:t,activeProperty:i,element:s[j],options:p,compactionMap:b});null===I&&void 0===(I=b({unmappedValue:s[j],activeCtx:t,activeProperty:i,parent:s,index:j,options:p}))||k.push(I)}if(p.compactArrays&&1===k.length){0===(x(t,i,"@container")||[]).length&&(k=k[0])}return k}var L=x(t,i,"@context");if(L&&(t=S({activeCtx:t,localCtx:L,options:p})),l(s)){if(p.link&&"@id"in s&&s["@id"]in p.link)for(var C=p.link[s["@id"]],E=0;E<C.length;++E)if(C[E].expanded===s)return C[E].compacted;if(h(s)||g(s)){var T=N.compactValue({activeCtx:t,activeProperty:i,value:s});return p.link&&g(s)&&(s["@id"]in p.link||(p.link[s["@id"]]=[]),p.link[s["@id"]].push({expanded:s,compacted:T})),T}var A="@reverse"===i,D={};p.link&&"@id"in s&&(s["@id"]in p.link||(p.link[s["@id"]]=[]),p.link[s["@id"]].push({expanded:s,compacted:D}));var B=s["@type"]||[],_=!0,R=!1,P=void 0;try{for(var M,U=B[Symbol.iterator]();!(_=(M=U.next()).done);_=!0){var F=M.value,J=N.compactIri({activeCtx:t,iri:F,relativeTo:{vocab:!0}}),z=x(t,J,"@context");z&&(t=S({activeCtx:t,localCtx:z,options:p}))}}catch(e){R=!0,P=e}finally{try{!_&&U.return&&U.return()}finally{if(R)throw P}}var V=Object.keys(s).sort(),q=!0,G=!1,H=void 0;try{for(var Q,W=V[Symbol.iterator]();!(q=(Q=W.next()).done);q=!0){var X=Q.value;(function(e){var r=s[e];if("@id"===e||"@type"===e){var f=[].concat(r).map(function(r){return N.compactIri({activeCtx:t,iri:r,relativeTo:{vocab:"@type"===e}})});1===f.length&&(f=f[0]);var g=N.compactIri({activeCtx:t,iri:e,relativeTo:{vocab:!0}}),m=c(f)&&0===r.length;return O(D,g,f,{propertyIsArray:m}),"continue"}if("@reverse"===e){var S=N.compact({activeCtx:t,activeProperty:"@reverse",element:r,options:p,compactionMap:b});for(var k in S)if(t.mappings[k]&&t.mappings[k].reverse){var j=S[k],I=x(t,k,"@container")||[],L=I.includes("@set")||!p.compactArrays;O(D,k,j,{propertyIsArray:L}),delete S[k]}if(Object.keys(S).length>0){var C=N.compactIri({activeCtx:t,iri:e,relativeTo:{vocab:!0}});O(D,C,S)}return"continue"}if("@preserve"===e){var E=N.compact({activeCtx:t,activeProperty:i,element:r,options:p,compactionMap:b});return c(E)&&0===E.length||O(D,e,E),"continue"}if("@index"===e){if((x(t,i,"@container")||[]).includes("@index"))return"continue";var T=N.compactIri({activeCtx:t,iri:e,relativeTo:{vocab:!0}});return O(D,T,r),"continue"}if("@graph"!==e&&"@list"!==e&&w(e)){var B=N.compactIri({activeCtx:t,iri:e,relativeTo:{vocab:!0}});return O(D,B,r),"continue"}if(!c(r))throw new u("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(0===r.length){var _=N.compactIri({activeCtx:t,iri:e,value:r,relativeTo:{vocab:!0},reverse:A}),R=_ in t.mappings?t.mappings[_]["@nest"]:null,P=D;R&&(o(t,R),l(D[R])||(D[R]={}),P=D[R]),O(P,_,r,{propertyIsArray:!0})}var M=!0,U=!1,F=void 0;try{for(var J,z=r[Symbol.iterator]();!(M=(J=z.next()).done);M=!0){var V=J.value,q=N.compactIri({activeCtx:t,iri:e,value:V,relativeTo:{vocab:!0},reverse:A}),G=q in t.mappings?t.mappings[q]["@nest"]:null,H=D;G&&(o(t,G),l(D[G])||(D[G]={}),H=D[G]);var Q=x(t,q,"@container")||[],W=v(V),X=d(V),K=void 0;X?K=V["@list"]:W&&(K=V["@graph"]);var Y=N.compact({activeCtx:t,activeProperty:q,element:X||W?K:V,options:p,compactionMap:b});if(X)if(c(Y)||(Y=[Y]),Q.includes("@list")){if(q in H)throw new u('JSON-LD compact error; property has a "@list" @container rule but there is more than a single @list that matches the compacted term in the document. Compaction might mix unwanted items into the list.',"jsonld.SyntaxError",{code:"compaction to list of lists"})}else Y=a({},N.compactIri({activeCtx:t,iri:"@list",relativeTo:{vocab:!0}}),Y),"@index"in V&&(Y[N.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"]);if(W)if(Q.includes("@graph")&&(Q.includes("@id")||Q.includes("@index")&&y(V))){var $=void 0;q in H?$=H[q]:H[q]=$={};var Z=(Q.includes("@id")?V["@id"]:V["@index"])||N.compactIri({activeCtx:t,iri:"@none",vocab:!0});O($,Z,Y,{propertyIsArray:!p.compactArrays||Q.includes("@set")})}else Q.includes("@graph")&&y(V)?O(H,q,Y,{propertyIsArray:!p.compactArrays||Q.includes("@set")}):(c(Y)&&1===Y.length&&p.compactArrays&&(Y=Y[0]),Y=a({},N.compactIri({activeCtx:t,iri:"@graph",relativeTo:{vocab:!0}}),Y),"@id"in V&&(Y[N.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}})]=V["@id"]),"@index"in V&&(Y[N.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=V["@index"]),O(H,q,Y,{propertyIsArray:!p.compactArrays||Q.includes("@set")}));else if(Q.includes("@language")||Q.includes("@index")||Q.includes("@id")||Q.includes("@type")){var ee=void 0;q in H?ee=H[q]:H[q]=ee={};var te=void 0;if(Q.includes("@language"))h(Y)&&(Y=Y["@value"]),te=V["@language"];else if(Q.includes("@index"))te=V["@index"];else if(Q.includes("@id")){var re=N.compactIri({activeCtx:t,iri:"@id",vocab:!0});te=Y[re],delete Y[re]}else if(Q.includes("@type")){var ne=N.compactIri({activeCtx:t,iri:"@type",vocab:!0}),ae=void 0,ie=[].concat(Y[ne]||[]),oe=n(ie);switch(te=oe[0],ae=oe.slice(1),ae.length){case 0:delete Y[ne];break;case 1:Y[ne]=ae[0];break;default:Y[ne]=ae}}te||(te=N.compactIri({activeCtx:t,iri:"@none",vocab:!0})),O(ee,te,Y,{propertyIsArray:Q.includes("@set")})}else{var ue=!p.compactArrays||Q.includes("@set")||Q.includes("@list")||c(Y)&&0===Y.length||"@list"===e||"@graph"===e;O(H,q,Y,{propertyIsArray:ue})}}}catch(e){U=!0,F=e}finally{try{!M&&z.return&&z.return()}finally{if(U)throw F}}})(X)}}catch(e){G=!0,H=e}finally{try{!q&&W.return&&W.return()}finally{if(G)throw H}}return D}return s},N.compactIri=function(e){var t=e.activeCtx,r=e.iri,n=e.value,a=void 0===n?null:n,o=e.relativeTo,u=void 0===o?{vocab:!1}:o,s=e.reverse,c=void 0!==s&&s;if(null===r)return r;var f=t.getInverse();if(w(r)&&r in f&&"@none"in f[r]&&"@type"in f[r]["@none"]&&"@none"in f[r]["@none"]["@type"])return f[r]["@none"]["@type"]["@none"];if(u.vocab&&r in f){var p=t["@language"]||"@none",y=[];l(a)&&"@index"in a&&!("@graph"in a)&&y.push("@index","@index@set"),l(a)&&"@preserve"in a&&(a=a["@preserve"][0]),v(a)?("@index"in a&&y.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in a&&y.push("@graph@id","@graph@id@set"),y.push("@graph","@graph@set","@set"),"@index"in a||y.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in a||y.push("@graph@id","@graph@id@set")):l(a)&&!h(a)&&y.push("@id","@id@set","@type","@set@type");var g="@language",m="@null";if(c)g="@type",m="@reverse",y.push("@set");else if(d(a)){"@index"in a||y.push("@list");var b=a["@list"];if(0===b.length)g="@any",m="@none";else{for(var x=0===b.length?p:null,S=null,k=0;k<b.length;++k){var I=b[k],O="@none",N="@none";if(h(I)?"@language"in I?O=I["@language"]:"@type"in I?N=I["@type"]:O="@null":N="@id",null===x?x=O:O!==x&&h(I)&&(x="@none"),null===S?S=N:N!==S&&(S="@none"),"@none"===x&&"@none"===S)break}x=x||"@none",S=S||"@none","@none"!==S?(g="@type",m=S):m=x}}else h(a)?"@language"in a&&!("@index"in a)?(y.push("@language","@language@set"),m=a["@language"]):"@type"in a&&(g="@type",m=a["@type"]):(g="@type",m="@id"),y.push("@set");y.push("@none"),!l(a)||"@index"in a||y.push("@index","@index@set"),h(a)&&1===Object.keys(a).length&&y.push("@language","@language@set");var C=i(t,r,a,y,g,m);if(null!==C)return C}if(u.vocab&&"@vocab"in t){var E=t["@vocab"];if(0===r.indexOf(E)&&r!==E){var T=r.substr(E.length);if(!(T in t.mappings))return T}}for(var A=null,D=[],B=t.fastCurieMap,_=r.length-1,R=0;R<_&&r[R]in B;++R)""in(B=B[r[R]])&&D.push(B[""][0]);for(var P=D.length-1;P>=0;--P){var M=D[P],U=M.terms,F=!0,J=!1,z=void 0;try{for(var V,q=U[Symbol.iterator]();!(F=(V=q.next()).done);F=!0){var G=V.value,H=G+":"+r.substr(M.iri.length);t.mappings[G]._prefix&&(!(H in t.mappings)||null===a&&t.mappings[H]["@id"]===r)&&(null===A||L(H,A)<0)&&(A=H)}}catch(e){J=!0,z=e}finally{try{!F&&q.return&&q.return()}finally{if(J)throw z}}}return null!==A?A:u.vocab?r:j(t["@base"],r)},N.compactValue=function(e){var t=e.activeCtx,r=e.activeProperty,n=e.value;if(h(n)){var i=x(t,r,"@type"),o=x(t,r,"@language"),u=x(t,r,"@container")||[],s="@index"in n&&!u.includes("@index");if(!s&&(n["@type"]===i||n["@language"]===o))return n["@value"];var c=Object.keys(n).length,l=1===c||2===c&&"@index"in n&&!s,p="@language"in t,d=f(n["@value"]),v=t.mappings[r]&&null===t.mappings[r]["@language"];if(l&&(!p||!d||v))return n["@value"];var y={};return s&&(y[N.compactIri({activeCtx:t,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?y[N.compactIri({activeCtx:t,iri:"@type",relativeTo:{vocab:!0}})]=N.compactIri({activeCtx:t,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(y[N.compactIri({activeCtx:t,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),y[N.compactIri({activeCtx:t,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],y}var g=b(t,r,{vocab:!0}),m=x(t,r,"@type"),w=N.compactIri({activeCtx:t,iri:n["@id"],relativeTo:{vocab:"@vocab"===m}});return"@id"===m||"@vocab"===m||"@graph"===g?w:a({},N.compactIri({activeCtx:t,iri:"@id",relativeTo:{vocab:!0}}),w)},N.removePreserve=function(e,t,r){if(c(t)){for(var n=[],a=0;a<t.length;++a){var i=N.removePreserve(e,t[a],r);null!==i&&n.push(i)}t=n}else if(l(t)){if("@preserve"in t)return"@null"===t["@preserve"]?null:t["@preserve"];if(h(t))return t;if(d(t))return t["@list"]=N.removePreserve(e,t["@list"],r),t;var o=N.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});if(o in t){var u=t[o];if(u in r.link){var s=r.link[u].indexOf(t);if(-1!==s)return r.link[u][s];r.link[u].push(t)}else r.link[u]=[t]}var f=N.compactIri({activeCtx:e,iri:"@graph",relativeTo:{vocab:!0}});for(var p in t)if(p===o&&r.bnodesToClear.includes(t[p]))delete t[o];else{var v=N.removePreserve(e,t[p],r),y=x(e,p,"@container")||[];r.compactArrays&&c(v)&&1===v.length&&0===y.length&&p!==f&&(v=v[0]),t[p]=v}}return t}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t){return new Promise(function(r,n){e(t,function(e,t,a){e?n(e):r({res:t,body:a})})})}var i=r(3),o=i.parseLinkHeader,u=i.buildHeaders,s=r(25),c=s.LINK_HEADER_REL,l=r(6),f=r(50);e.exports=function(){var e=function(){var t=n(regeneratorRuntime.mark(function t(r,n){var u,s,f,d,y,b,x;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0===r.indexOf("http:")||0===r.indexOf("https:")){t.next=2;break}throw new l('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:r});case 2:if(!i||0===r.indexOf("https")){t.next=4;break}throw new l('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:r});case 4:if(null===(u=null)){t.next=7;break}return t.abrupt("return",u);case 7:return s=void 0,t.prev=8,t.next=11,a(v,{url:r,headers:g,strictSSL:p,followRedirect:!1});case 11:s=t.sent,t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(8),new l("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:r,cause:t.t0});case 17:if(f=s,d=f.res,y=f.body,u={contextUrl:null,documentUrl:r,document:y||null},b=m.STATUS_CODES[d.statusCode],!(d.statusCode>=400)){t.next=22;break}throw new l("URL could not be dereferenced: "+b,"jsonld.InvalidUrl",{code:"loading document failed",url:r,httpStatusCode:d.statusCode});case 22:if(!d.headers.link||"application/ld+json"===d.headers["content-type"]){t.next=27;break}if(x=o(d.headers.link)[c],!Array.isArray(x)){t.next=26;break}throw new l("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:r});case 26:x&&(u.contextUrl=x.target);case 27:if(!(d.statusCode>=300&&d.statusCode<400&&d.headers.location)){t.next=34;break}if(n.length!==h){t.next=30;break}throw new l("URL could not be dereferenced; there were too many redirects.","jsonld.TooManyRedirects",{code:"loading document failed",url:r,httpStatusCode:d.statusCode,redirects:n});case 30:if(-1===n.indexOf(r)){t.next=32;break}throw new l("URL could not be dereferenced; infinite redirection was detected.","jsonld.InfiniteRedirectDetected",{code:"recursive context inclusion",url:r,httpStatusCode:d.statusCode,redirects:n});case 32:return n.push(r),t.abrupt("return",e(d.headers.location,n));case 34:return n.push(r),t.abrupt("return",u);case 36:case"end":return t.stop()}},t,this,[[8,14]])}));return function(e,r){return t.apply(this,arguments)}}(),t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{strictSSL:!0,maxRedirects:-1,headers:{}},i=t.secure,s=t.strictSSL,p=void 0===s||s,d=t.maxRedirects,h=void 0===d?-1:d,v=t.request,y=t.headers,g=void 0===y?{}:y;g=u(g),v=v||r(49);var m=r(49);return(new f).wrapLoader(function(t){return e(t,[])})}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(a,i){try{var o=t[a](i),u=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)});e(u)}return n("next")})}}function a(e,t,r){e=e||XMLHttpRequest;var n=new e;return new Promise(function(e,a){n.onload=function(){return e(n)},n.onerror=function(e){return a(e)},n.open("GET",t,!0);for(var i in r)n.setRequestHeader(i,r[i]);n.send()})}var i=r(3),o=i.parseLinkHeader,u=i.buildHeaders,s=r(25),c=s.LINK_HEADER_REL,l=r(6),f=r(50),p=/(^|(\r\n))link:/i;e.exports=function(){var e=function(){var e=n(regeneratorRuntime.mark(function e(t){var n,i,u,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0===t.indexOf("http:")||0===t.indexOf("https:")){e.next=2;break}throw new l('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:t});case 2:if(!r||0===t.indexOf("https")){e.next=4;break}throw new l('URL could not be dereferenced; secure mode is enabled and the URL\'s scheme is not "https".',"jsonld.InvalidUrl",{code:"loading document failed",url:t});case 4:return n=void 0,e.prev=5,e.next=8,a(d,t,s);case 8:n=e.sent,e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(5),new l("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:t,cause:e.t0});case 14:if(!(n.status>=400)){e.next=16;break}throw new l("URL could not be dereferenced: "+n.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:t,httpStatusCode:n.status});case 16:if(i={contextUrl:null,documentUrl:t,document:n.response},u=n.getResponseHeader("Content-Type"),f=void 0,p.test(n.getAllResponseHeaders())&&(f=n.getResponseHeader("Link")),!f||"application/ld+json"===u){e.next=25;break}if(f=o(f)[c],!Array.isArray(f)){e.next=24;break}throw new l("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:t});case 24:f&&(i.contextUrl=f.target);case 25:return e.abrupt("return",i);case 26:case"end":return e.stop()}},e,this,[[5,11]])}));return function(t){return e.apply(this,arguments)}}(),t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{headers:{}},r=t.secure,i=t.headers,s=void 0===i?{}:i,d=t.xhr;return s=u(s),(new f).wrapLoader(e)}},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();e.exports=function(e){var t=function(){function e(){n(this,e)}return a(e,[{key:"toString",value:function(){return"[object JsonLdProcessor]"}}]),e}();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,r){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(t,r)},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}},function(e,t){(function(t){e.exports=t}).call(t,{})}])});