UNPKG

jsonld

Version:

A JSON-LD Processor and API implementation in JavaScript.

3 lines 290 kB
!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()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=238)}([function(e,t,r){"use strict";var n=r(3),a=r(62).f,o=r(50),i=r(33),s=r(141),u=r(143),c=r(121);e.exports=function(e,t){var r,l,f,d,p,v=e.target,h=e.global,y=e.stat;if(r=h?n:y?n[v]||s(v,{}):n[v]&&n[v].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=a(r,l))&&p.value:r[l],!c(h?l:v+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),i(r,l,d,e)}}},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(97),a=Function.prototype,o=a.call,i=n&&a.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,r){"use strict";(function(t){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r(178))},function(e,t,r){"use strict";var n=r(97),a=Function.prototype.call;e.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},function(e,t,r){"use strict";var n="object"==typeof document&&document.all;e.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},function(e,t,r){"use strict";var n=r(3),a=r(83),o=r(14),i=r(99),s=r(81),u=r(180),c=n.Symbol,l=a("wks"),f=u?c.for||c:c&&c.withoutSetter||i;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t,r){"use strict";var n=r(145),a=r(33),o=r(264);n||a(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n,a,o,i=r(217),s=r(10),u=r(3),c=r(5),l=r(13),f=r(14),d=r(63),p=r(70),v=r(50),h=r(33),y=r(56),g=r(59),x=r(87),b=r(89),m=r(6),w=r(99),k=r(39),j=k.enforce,S=k.get,O=u.Int8Array,I=O&&O.prototype,E=u.Uint8ClampedArray,A=E&&E.prototype,T=O&&x(O),N=I&&x(I),R=Object.prototype,D=u.TypeError,_=m("toStringTag"),C=w("TYPED_ARRAY_TAG"),L=i&&!!b&&"Opera"!==d(u.opera),P=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=x(e);if(l(t)){var r=S(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:F(t)}},U=function(e){if(!l(e))return!1;var t=d(e);return f(M,t)||f(B,t)};for(n in M)(o=(a=u[n])&&a.prototype)?j(o).TypedArrayConstructor=a:L=!1;for(n in B)(o=(a=u[n])&&a.prototype)&&(j(o).TypedArrayConstructor=a);if((!L||!c(T)||T===Function.prototype)&&(T=function(){throw new D("Incorrect invocation")},L))for(n in M)u[n]&&b(u[n],T);if((!L||!N||N===R)&&(N=T.prototype,L))for(n in M)u[n]&&b(u[n].prototype,N);if(L&&x(A)!==N&&b(A,N),s&&!f(N,_))for(n in P=!0,y(N,_,{configurable:!0,get:function(){return l(this)?this[C]:void 0}}),M)u[n]&&v(u[n],C,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:P&&C,aTypedArray:function(e){if(U(e))return e;throw new D("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||g(T,e)))return e;throw new D(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(s){if(r)for(var a in M){var o=u[a];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}N[e]&&!r||h(N,e,r?t:L&&I[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,a;if(s){if(b){if(r)for(n in M)if((a=u[n])&&f(a,e))try{delete a[e]}catch(e){}if(T[e]&&!r)return;try{return h(T,e,r?t:L&&T[e]||t)}catch(e){}}for(n in M)!(a=u[n])||a[e]&&!r||h(a,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(M,t)||f(B,t)},isTypedArray:U,TypedArray:T,TypedArrayPrototype:N}},function(e,t,r){"use strict";var n=r(13),a=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not an object")}},function(e,t,r){"use strict";var n=r(1);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(37),a=r(152),o=r(105),i=r(39),s=r(32).f,u=r(153),c=r(127),l=r(31),f=r(10),d=i.set,p=i.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var v=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},function(e,t,r){"use strict";var n=r(5);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){"use strict";var n=r(2),a=r(21),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(a(e),t)}},function(e,t,r){"use strict";var n=r(3),a=r(193),o=r(194),i=r(12),s=r(50),u=r(72),c=r(6)("iterator"),l=i.values,f=function(e,t){if(e){if(e[c]!==l)try{s(e,c,l)}catch(t){e[c]=l}if(u(e,t,!0),a[t])for(var r in i)if(e[r]!==i[r])try{s(e,r,i[r])}catch(t){e[r]=i[r]}}};for(var d in a)f(n[d]&&n[d].prototype,d);f(o,"DOMTokenList")},function(e,t,r){"use strict";var n=r(63),a=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},function(e,t,r){"use strict";var n=r(205).charAt,a=r(16),o=r(39),i=r(153),s=r(127),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){u(this,{type:"String Iterator",string:a(e),index:0})}),(function(){var e,t=c(this),r=t.string,a=t.index;return a>=r.length?s(void 0,!0):(e=n(r,a),t.index+=e.length,s(e,!1))}))},function(e,t,r){"use strict";var n=r(5),a=r(70),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(a(e)+" is not a function")}},function(e,t,r){"use strict";var n=r(0),a=r(164);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},function(e,t,r){"use strict";r(240),r(247),r(248),r(123),r(250)},function(e,t,r){"use strict";var n=r(38),a=Object;e.exports=function(e){return a(n(e))}},function(e,t,r){"use strict";var n=r(44);e.exports=function(e){return n(e.length)}},function(e,t,r){"use strict";var n=r(0),a=r(85),o=r(122),i=r(13),s=r(71),u=r(22),c=r(37),l=r(74),f=r(6),d=r(104),p=r(55),v=d("slice"),h=f("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var r,n,f,d=c(this),v=u(d),x=s(e,v),b=s(void 0===t?v:t,v);if(a(d)&&(r=d.constructor,(o(r)&&(r===y||a(r.prototype))||i(r)&&null===(r=r[h]))&&(r=void 0),r===y||void 0===r))return p(d,x,b);for(n=new(void 0===r?y:r)(g(b-x,0)),f=0;x<b;x++,f++)x in d&&l(n,f,d[x]);return n.length=f,n}})},function(e,t,r){"use strict";r(19);var n,a,o=r(0),i=r(4),s=r(5),u=r(9),c=r(16),l=(n=!1,(a=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===a.test("abc")&&n),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=u(this),r=c(e),n=t.exec;if(!s(n))return i(f,t,r);var a=i(n,t,r);return null!==a&&(u(a),!0)}})},function(e,t,r){"use strict";var n=r(100).PROPER,a=r(33),o=r(9),i=r(16),s=r(1),u=r(211),c=RegExp.prototype,l=c.toString,f=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),d=n&&"toString"!==l.name;(f||d)&&a(c,"toString",(function(){var e=o(this);return"/"+i(e.source)+"/"+i(u(e))}),{unsafe:!0})},function(e,t,r){"use strict";var n=r(0),a=r(10),o=r(3),i=r(2),s=r(14),u=r(5),c=r(59),l=r(16),f=r(56),d=r(143),p=o.Symbol,v=p&&p.prototype;if(a&&u(p)&&(!("description"in v)||void 0!==p().description)){var h={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(v,this)?new p(e):void 0===e?p():p(e);return""===e&&(h[t]=!0),t};d(y,p),y.prototype=v,v.constructor=y;var g="Symbol(description detection)"===String(p("description detection")),x=i(v.valueOf),b=i(v.toString),m=/^Symbol\((.*)\)[^)]+$/,w=i("".replace),k=i("".slice);f(v,"description",{configurable:!0,get:function(){var e=x(this);if(s(h,e))return"";var t=b(e),r=g?k(t,7,-1):w(t,m,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},function(e,t,r){"use strict";r(190)("iterator")},function(e,t,r){"use strict";var n=r(10),a=r(100).EXISTS,o=r(2),i=r(56),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);n&&!a&&i(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},function(e,t,r){"use strict";var n=r(0),a=r(2),o=r(18),i=r(21),s=r(22),u=r(154),c=r(16),l=r(1),f=r(195),d=r(129),p=r(196),v=r(197),h=r(82),y=r(198),g=[],x=a(g.sort),b=a(g.push),m=l((function(){g.sort(void 0)})),w=l((function(){g.sort(null)})),k=d("sort"),j=!l((function(){if(h)return h<70;if(!(p&&p>3)){if(v)return!0;if(y)return y<603;var e,t,r,n,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:t+n,v:r})}for(g.sort((function(e,t){return t.v-e.v})),n=0;n<g.length;n++)t=g[n].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}}));n({target:"Array",proto:!0,forced:m||!w||!k||!j},{sort:function(e){void 0!==e&&o(e);var t=i(this);if(j)return void 0===e?x(t):x(t,e);var r,n,a=[],l=s(t);for(n=0;n<l;n++)n in t&&b(a,t[n]);for(f(a,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}}(e)),r=s(a),n=0;n<r;)t[n]=a[n++];for(;n<l;)u(t,n++);return t}})},function(e,t,r){"use strict";var n=r(0),a=r(283);n({target:"Array",stat:!0,forced:!r(131)((function(e){Array.from(e)}))},{from:a})},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";var n=r(10),a=r(181),o=r(182),i=r(9),s=r(116),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?o?function(e,t,r){if(i(e),t=s(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(i(e),t=s(t),i(r),a)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var n=r(5),a=r(32),o=r(183),i=r(141);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&o(r,c,s),s.global)u?e[t]=r:i(t,r);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:a.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,r){"use strict";var n=r(0),a=r(21),o=r(102);n({target:"Object",stat:!0,forced:r(1)((function(){o(1)}))},{keys:function(e){return o(a(e))}})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(206);function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}e.exports=function(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(80),a=r(38);e.exports=function(e){return n(a(e))}},function(e,t,r){"use strict";var n=r(58),a=TypeError;e.exports=function(e){if(n(e))throw new a("Can't call method on "+e);return e}},function(e,t,r){"use strict";var n,a,o,i=r(242),s=r(3),u=r(13),c=r(50),l=r(14),f=r(140),d=r(118),p=r(101),v=s.TypeError,h=s.WeakMap;if(i||f.state){var y=f.state||(f.state=new h);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new v("Object already initialized");return t.facade=e,y.set(e,t),t},a=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var g=d("state");p[g]=!0,n=function(e,t){if(l(e,g))throw new v("Object already initialized");return t.facade=e,c(e,g,t),t},a=function(e){return l(e,g)?e[g]:{}},o=function(e){return l(e,g)}}e.exports={set:n,get:a,has:o,enforce:function(e){return o(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=a(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){"use strict";var n=r(64),a=r(2),o=r(80),i=r(21),s=r(22),u=r(146),c=a([].push),l=function(e){var t=1===e,r=2===e,a=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(v,h,y,g){for(var x,b,m=i(v),w=o(m),k=s(w),j=n(h,y),S=0,O=g||u,I=t?O(v,k):r||d?O(v,0):void 0;k>S;S++)if((p||S in w)&&(b=j(x=w[S],S,m),e))if(t)I[S]=b;else if(b)switch(e){case 3:return!0;case 5:return x;case 6:return S;case 2:c(I,x)}else switch(e){case 4:return!1;case 7:c(I,x)}return f?-1:a||l?l:I}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,r){var n=r(258)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){"use strict";r(34),r(7),r(25);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(".")||Math.abs(e)>=1e21)},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(243);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},function(e,t,r){"use strict";var n=r(43),a=Math.min;e.exports=function(e){var t=n(e);return t>0?a(t,9007199254740991):0}},function(e,t){function r(e,t,r,n,a,o,i){try{var s=e[o](i),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function s(e){r(i,a,o,s,u,"next",e)}function u(e){r(i,a,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(20),r(26),r(27),r(30),r(23),r(28),r(24);var n=r(11);r(96),r(73),r(12),r(29),r(57),r(155),r(34),r(7),r(19),r(25),r(93),r(17),r(95),r(51),r(176),r(75),r(137),r(15);var a=n(r(138)),o=n(r(60));function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=r(61),c=r(42),l=r(163).IdentifierIssuer,f=r(47),d=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,p=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,v=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,h={accept:"application/ld+json, application/json"},y={};e.exports=y,y.IdentifierIssuer=l,y.REGEX_BCP47=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,y.REGEX_KEYWORD=/^@[a-zA-Z]+$/,y.clone=function(e){if(e&&"object"===(0,o.default)(e)){var t;if(c.isArray(e)){t=[];for(var r=0;r<e.length;++r)t[r]=y.clone(e[r])}else if(e instanceof Map){t=new Map;var n,s=i(e);try{for(s.s();!(n=s.n()).done;){var u=(0,a.default)(n.value,2),l=u[0],f=u[1];t.set(l,y.clone(f))}}catch(e){s.e(e)}finally{s.f()}}else if(e instanceof Set){t=new Set;var d,p=i(e);try{for(p.s();!(d=p.n()).done;){var v=d.value;t.add(y.clone(v))}}catch(e){p.e(e)}finally{p.f()}}else if(c.isObject(e))for(var h in t={},e)t[h]=y.clone(e[h]);else t=e.toString();return t}return e},y.asArray=function(e){return Array.isArray(e)?e:[e]},y.buildHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).some((function(e){return"accept"===e.toLowerCase()}));if(t)throw new RangeError('Accept header may not be specified; only "'+h.accept+'" is supported.');return Object.assign({Accept:h.accept},e)},y.parseLinkHeader=function(e){for(var t={},r=e.match(d),n=0;n<r.length;++n){var a=r[n].match(p);if(a){for(var o={target:a[1]},i=a[2];a=v.exec(i);)o[a[1]]=void 0===a[2]?a[3]:a[2];var s=o.rel||"";Array.isArray(t[s])?t[s].push(o):t.hasOwnProperty(s)?t[s]=[t[s],o]:t[s]=o}}return t},y.validateTypeValue=function(e,t){if(!(c.isString(e)||c.isArray(e)&&e.every((function(e){return c.isString(e)})))){if(t&&c.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&y.asArray(e["@default"]).every((function(e){return c.isString(e)})))return}throw new f('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:e})}},y.hasProperty=function(e,t){if(e.hasOwnProperty(t)){var r=e[t];return!c.isArray(r)||r.length>0}return!1},y.hasValue=function(e,t,r){if(y.hasProperty(e,t)){var n=e[t],a=u.isList(n);if(c.isArray(n)||a){a&&(n=n["@list"]);for(var o=0;o<n.length;++o)if(y.compareValues(r,n[o]))return!0}else if(!c.isArray(r))return y.compareValues(r,n)}return!1},y.addValue=function(e,t,r,n){if("propertyIsArray"in(n=n||{})||(n.propertyIsArray=!1),"valueIsArray"in n||(n.valueIsArray=!1),"allowDuplicate"in n||(n.allowDuplicate=!0),"prependValue"in n||(n.prependValue=!1),n.valueIsArray)e[t]=r;else if(c.isArray(r)){0===r.length&&n.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),n.prependValue&&(r=r.concat(e[t]),e[t]=[]);for(var a=0;a<r.length;++a)y.addValue(e,t,r[a],n)}else if(e.hasOwnProperty(t)){var o=!n.allowDuplicate&&y.hasValue(e,t,r);c.isArray(e[t])||o&&!n.propertyIsArray||(e[t]=[e[t]]),o||(n.prependValue?e[t].unshift(r):e[t].push(r))}else e[t]=n.propertyIsArray?[r]:r},y.getValues=function(e,t){return[].concat(e[t]||[])},y.removeProperty=function(e,t){delete e[t]},y.removeValue=function(e,t,r,n){"propertyIsArray"in(n=n||{})||(n.propertyIsArray=!1);var a=y.getValues(e,t).filter((function(e){return!y.compareValues(e,r)}));0===a.length?y.removeProperty(e,t):1!==a.length||n.propertyIsArray?e[t]=a:e[t]=a[0]},y.relabelBlankNodes=function(e,t){return function e(t,r){if(c.isArray(r))for(var n=0;n<r.length;++n)r[n]=e(t,r[n]);else if(u.isList(r))r["@list"]=e(t,r["@list"]);else if(c.isObject(r)){u.isBlankNode(r)&&(r["@id"]=t.getId(r["@id"]));for(var a=Object.keys(r).sort(),o=0;o<a.length;++o){var i=a[o];"@id"!==i&&(r[i]=e(t,r[i]))}}return r}((t=t||{}).issuer||new l("_:b"),e)},y.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"])||!!(c.isObject(e)&&"@id"in e&&c.isObject(t)&&"@id"in t)&&e["@id"]===t["@id"])},y.compareShortestLeast=function(e,t){return e.length<t.length?-1:t.length<e.length?1:e===t?0:e<t?-1:1}},function(e,t,r){"use strict";r(172);var n=r(11);r(28);var a=n(r(36)),o=n(r(35)),i=n(r(173)),s=n(r(136)),u=n(r(174)),c=n(r(360));function l(e,t,r){return t=(0,s.default)(t),(0,i.default)(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],(0,s.default)(e).constructor):t.apply(e,r))}e.exports=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"An unspecified JSON-LD error occurred.",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jsonld.Error",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.default)(this,t),(e=l(this,t,[r])).name=n,e.message=r,e.details=a,e}return(0,u.default)(t,e),(0,a.default)(t)}((0,c.default)(Error))},function(e,t,r){"use strict";var n=r(2),a=n({}.toString),o=n("".slice);e.exports=function(e){return o(a(e),8,-1)}},function(e,t,r){"use strict";var n=r(3),a=r(5),o=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},function(e,t,r){"use strict";var n=r(10),a=r(32),o=r(79);e.exports=n?function(e,t,r){return a.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";r(251)},function(e,t,r){"use strict";var n=r(64),a=r(4),o=r(9),i=r(70),s=r(150),u=r(22),c=r(59),l=r(151),f=r(128),d=r(148),p=TypeError,v=function(e,t){this.stopped=e,this.result=t},h=v.prototype;e.exports=function(e,t,r){var y,g,x,b,m,w,k,j=r&&r.that,S=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),A=n(t,j),T=function(e){return y&&d(y,"normal",e),new v(!0,e)},N=function(e){return S?(o(e),E?A(e[0],e[1],T):A(e[0],e[1])):E?A(e,T):A(e)};if(O)y=e.iterator;else if(I)y=e;else{if(!(g=f(e)))throw new p(i(e)+" is not iterable");if(s(g)){for(x=0,b=u(e);b>x;x++)if((m=N(e[x]))&&c(h,m))return m;return new v(!1)}y=l(e,g)}for(w=O?e.next:y.next;!(k=a(w,y)).done;){try{m=N(k.value)}catch(e){d(y,"throw",e)}if("object"==typeof m&&m&&c(h,m))return m}return new v(!1)}},function(e,t,r){"use strict";var n=r(3).navigator,a=n&&n.userAgent;e.exports=a?String(a):""},function(e,t,r){"use strict";var n,a=r(9),o=r(186),i=r(144),s=r(101),u=r(187),c=r(117),l=r(118),f=l("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},v=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?v(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):v(n);for(var r=i.length;r--;)delete h.prototype[i[r]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d.prototype=a(e),r=new d,d.prototype=null,r[f]=e):r=h(),void 0===t?r:o.f(r,t)}},function(e,t,r){"use strict";var n=r(2);e.exports=n([].slice)},function(e,t,r){"use strict";var n=r(183),a=r(32);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),a.f(e,t,r)}},function(e,t,r){"use strict";r(284)},function(e,t,r){"use strict";e.exports=function(e){return null==e}},function(e,t,r){"use strict";var n=r(2);e.exports=n({}.isPrototypeOf)},function(e,t){function r(t){return e.exports=r="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},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r(73),r(34),r(7),r(51),r(75);var n=r(42),a={};e.exports=a,a.isSubject=function(e){return!(!n.isObject(e)||"@value"in e||"@set"in e||"@list"in e)&&(Object.keys(e).length>1||!("@id"in e))},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){if(n.isObject(e)){if("@id"in e){var t=e["@id"];return!n.isString(t)||0===t.indexOf("_:")}return 0===Object.keys(e).length||!("@value"in e||"@set"in e||"@list"in e)}return!1}},function(e,t,r){"use strict";var n=r(10),a=r(4),o=r(115),i=r(79),s=r(37),u=r(116),c=r(14),l=r(181),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return i(!a(o.f,e,t),e[t])}},function(e,t,r){"use strict";var n=r(145),a=r(5),o=r(48),i=r(6)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),i))?r:u?o(t):"Object"===(n=o(t))&&a(t.callee)?"Arguments":n}},function(e,t,r){"use strict";var n=r(103),a=r(18),o=r(97),i=n(n.bind);e.exports=function(e,t){return a(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";var n=r(97),a=Function.prototype,o=a.apply,i=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},function(e,t,r){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,r){"use strict";r(265),r(271),r(272),r(273),r(274),r(275)},function(e,t,r){"use strict";r(12),r(111),r(7),r(19),r(24),r(135),r(15);var n=r(42),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:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},a.parse=function(e,t){for(var r={},n=a.parsers[t||"full"],o=n.regex.exec(e),i=n.keys.length;i--;)r[n.keys[i]]=void 0===o[i]?null:o[i];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(a.isAbsolute(t))return t;e&&!n.isString(e)||(e=a.parse(e||""));var r=a.parse(t),o={protocol:e.protocol||""};if(null!==r.authority)o.authority=r.authority,o.path=r.path,o.query=r.query;else if(o.authority=e.authority,""===r.path)o.path=e.path,null!==r.query?o.query=r.query:o.query=e.query;else{if(0===r.path.indexOf("/"))o.path=r.path;else{var i=e.path;((i=i.substr(0,i.lastIndexOf("/")+1)).length>0||e.authority)&&"/"!==i.substr(-1)&&(i+="/"),i+=r.path,o.path=i}o.query=r.query}""!==r.path&&(o.path=a.removeDotSegments(o.path));var s=o.protocol;return null!==o.authority&&(s+="//"+o.authority),s+=o.path,null!==o.query&&(s+="?"+o.query),null!==r.fragment&&(s+="#"+r.fragment),""===s&&(s="./"),s},a.removeBase=function(e,t){if(null===e)return t;e&&!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 o=a.parse(t.substr(r.length)),i=e.normalizedPath.split("/"),s=o.normalizedPath.split("/"),u=o.fragment||o.query?0:1;i.length>0&&s.length>u&&i[0]===s[0];)i.shift(),s.shift();var c="";if(i.length>0){i.pop();for(var l=0;l<i.length;++l)c+="../"}return c+=s.join("/"),null!==o.query&&(c+="?"+o.query),null!==o.fragment&&(c+="#"+o.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"/"===e[0]&&r.length>0&&""!==r[0]&&r.unshift(""),1===r.length&&""===r[0]?"/":r.join("/")};var o=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;a.isAbsolute=function(e){return n.isString(e)&&o.test(e)},a.isRelative=function(e){return n.isString(e)}},function(e,t,r){"use strict";var n=r(18),a=r(58);e.exports=function(e,t){var r=e[t];return a(r)?void 0:n(r)}},function(e,t,r){"use strict";var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,r){"use strict";var n=r(43),a=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):o(r,t)}},function(e,t,r){"use strict";var n=r(32).f,a=r(14),o=r(6)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!a(e,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(0),a=r(40).filter;n({target:"Array",proto:!0,forced:!r(104)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var n=r(10),a=r(32),o=r(79);e.exports=function(e,t,r){n?a.f(e,t,o(0,r)):e[t]=r}},function(e,t,r){"use strict";r(253)},function(e,t,r){"use strict";r(254)},function(e,t,r){"use strict";var n=r(3),a=r(193),o=r(194),i=r(255),s=r(50),u=function(e){if(e&&e.forEach!==i)try{s(e,"forEach",i)}catch(t){e.forEach=i}};for(var c in a)a[c]&&u(n[c]&&n[c].prototype);u(o)},function(e,t,r){"use strict";r(20),r(26),r(27),r(73),r(30),r(28),r(124),r(125),r(24),r(75),r(76),r(77);var n=r(11),a=n(r(41)),o=n(r(60)),i=n(r(112)),s=n(r(110)),u=n(r(45));function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(96),r(88),r(12),r(111),r(113),r(23),r(29),r(123),r(57),r(34),r(7),r(19),r(25),r(93),r(91),r(17),r(95),r(51),r(176),r(137),r(15);var p=r(46),v=r(47),h=r(42),y=h.isArray,g=h.isObject,x=h.isString,b=h.isUndefined,m=r(68),w=m.isAbsolute,k=m.isRelative,j=m.prependBase,S=r(114).handleEvent,O=r(46),I=O.REGEX_BCP47,E=O.REGEX_KEYWORD,A=O.asArray,T=O.compareShortestLeast,N=new Map,R={};function D(e,t,r,n,a,o){if(null===t||!x(t)||R.isKeyword(t))return t;if(t.match(E))return null;if(n&&n.hasOwnProperty(t)&&!0!==a.get(t)&&R.createTermDefinition({activeCtx:e,localCtx:n,term:t,defined:a,options:o}),(r=r||{}).vocab){var i=e.mappings.get(t);if(null===i)return null;if(g(i)&&"@id"in i)return i["@id"]}var s=t.indexOf(":");if(s>0){var u=t.substr(0,s),c=t.substr(s+1);if("_"===u||0===c.indexOf("//"))return t;n&&n.hasOwnProperty(u)&&R.createTermDefinition({activeCtx:e,localCtx:n,term:u,defined:a,options:o});var l=e.mappings.get(u);if(l&&l._prefix)return l["@id"]+c;if(w(t))return t}if(r.vocab&&"@vocab"in e)t=e["@vocab"]+t;else if(r.base){var f,d;"@base"in e?e["@base"]?(d=j(o.base,e["@base"]),f=j(d,t)):(d=e["@base"],f=t):(d=o.base,f=j(o.base,t)),t=f}return t}e.exports=R,R.process=function(){var e=(0,u.default)(a.default.mark((function e(t){var r,n,o,i,s,u,l,f,p,h,b,m,O,E,T,N,_,C,L,P,M,B,F,U,J,H,V,q,G,z,W,$,K,Q,Y,X,Z,ee;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.activeCtx,n=t.localCtx,o=t.options,i=t.propagate,s=void 0===i||i,u=t.overrideProtected,l=void 0!==u&&u,f=t.cycles,p=void 0===f?new Set:f,g(n)&&"@context"in n&&y(n["@context"])&&(n=n["@context"]),0!==A(n).length){e.next=5;break}return e.abrupt("return",r);case 5:return h=[],b=[function(e){var t=e.event,r=e.next;h.push(t),r()}],o.eventHandler&&b.push(o.eventHandler),m=o,o=d(d({},o),{},{eventHandler:b}),e.next=12,o.contextResolver.resolve({activeCtx:r,context:n,documentLoader:o.documentLoader,base:o.base});case 12:O=e.sent,g(O[0].document)&&"boolean"==typeof O[0].document["@propagate"]&&(s=O[0].document["@propagate"]),E=r,s||E.previousContext||((E=E.clone()).previousContext=r),T=c(O),e.prev=17,T.s();case 19:if((N=T.n()).done){e.next=156;break}if(_=N.value,C=_.document,r=E,null!==C){e.next=28;break}if(l||0===Object.keys(r.protected).length){e.next=26;break}throw new v("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});case 26:return E=r=R.getInitialContext(o).clone(),e.abrupt("continue",154);case 28:if(!(L=_.getProcessed(r))){e.next=33;break}if(m.eventHandler){P=c(L.events);try{for(P.s();!(M=P.n()).done;)B=M.value,S({event:B,options:m})}catch(e){P.e(e)}finally{P.f()}}return E=r=L.context,e.abrupt("continue",154);case 33:if(g(C)&&"@context"in C&&(C=C["@context"]),g(C)){e.next=36;break}throw new v("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:C});case 36:if(E=E.clone(),F=new Map,!("@version"in C)){e.next=46;break}if(1.1===C["@version"]){e.next=41;break}throw new v("Unsupported JSON-LD version: "+C["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:C});case 41:if(!r.processingMode||"json-ld-1.0"!==r.processingMode){e.next=43;break}throw new v("@version: "+C["@version"]+" not compatible with "+r.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:C});case 43:E.processingMode="json-ld-1.1",E["@version"]=C["@version"],F.set("@version",!0);case 46:if(E.processingMode=E.processingMode||r.processingMode,!("@base"in C)){e.next=59;break}if(null!==(U=C["@base"])&&!w(U)){e.next=52;break}e.next=57;break;case 52:if(!k(U)){e.next=56;break}U=j(E["@base"],U),e.next=57;break;case 56:throw new v('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:C});case 57:E["@base"]=U,F.set("@base",!0);case 59:if(!("@vocab"in C)){e.next=77;break}if(null!==(J=C["@vocab"])){e.next=65;break}delete E["@vocab"],e.next=76;break;case 65:if(x(J)){e.next=69;break}throw new v('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:C});case 69:if(w(J)||!R.processingMode(E,1)){e.next=73;break}throw new v('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:C});case 73:H=D(E,J,{vocab:!0,base:!0},void 0,void 0,o),w(H)||o.eventHandler&&S({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:H}},options:o}),E["@vocab"]=H;case 76:F.set("@vocab",!0);case 77:if(!("@language"in C)){e.next=90;break}if(null!==(V=C["@language"])){e.next=83;break}delete E["@language"],e.next=89;break;case 83:if(x(V)){e.next=87;break}throw new v('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:C});case 87:V.match(I)||o.eventHandler&&S({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:V}},options:o}),E["@language"]=V.toLowerCase();case 89:F.set("@language",!0);case 90:if(!("@direction"in C)){e.next=104;break}if(q=C["@direction"],"json-ld-1.0"!==r.processingMode){e.next=94;break}throw new v("Invalid JSON-LD syntax; @direction not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:C});case 94:if(null!==q){e.next=98;break}delete E["@direction"],e.next=103;break;case 98:if("ltr"===q||"rtl"===q){e.next=102;break}throw new v('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:C});case 102:E["@direction"]=q;case 103:F.set("@direction",!0);case 104:if(!("@propagate"in C)){e.next=111;break}if(G=C["@propagate"],"json-ld-1.0"!==r.processingMode){e.next=108;break}throw new v("Invalid JSON-LD syntax; @propagate not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:C});case 108:if("boolean"==typeof G){e.next=110;break}throw new v("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:n});case 110:F.set("@propagate",!0);case 111:if(!("@import"in C)){e.next=133;break}if(z=C["@import"],"json-ld-1.0"!==r.processingMode){e.next=115;break}throw new v("Invalid JSON-LD syntax; @import not compatible with "+r.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:C});case 115:if(x(z)){e.next=117;break}throw new v("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:n});case 117:return e.next=119,o.contextResolver.resolve({activeCtx:r,context:z,documentLoader:o.documentLoader,base:o.base});case 119:if(1===(W=e.sent).length){e.next=122;break}throw new v("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:n});case 122:if(!($=W[0].getProcessed(r))){e.next=127;break}C=$,e.next=132;break;case 127:if(!("@import"in(K=W[0].document))){e.next=130;break}throw new v("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:n});case 130:for(Q in K)C.hasOwnProperty(Q)||(C[Q]=K[Q]);W[0].setProcessed(r,C);case 132:F.set("@import",!0);case 133:F.set("@protected",C["@protected"]||!1),e.t0=a.default.keys(C);case 135:if((e.t1=e.t0()).done){e.next=153;break}if(Y=e.t1.value,R.createTermDefinition({activeCtx:E,localCtx:C,term:Y,defined:F,options:o,overrideProtected:l}),!g(C[Y])||!("@context"in C[Y])){e.next=151;break}if(X=C[Y]["@context"],Z=!0,x(X)&&(ee=j(o.base,X),p.has(ee)?Z=!1:p.add(ee)),!Z){e.next=151;break}return e.prev=143,e.next=146,R.process({activeCtx:E.clone(),localCtx:C[Y]["@context"],overrideProtected:!0,options:o,cycles:p});case 146:e.next=151;break;case 148:throw e.prev=148,e.t2=e.catch(143),new v("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:C[Y]["@context"],term:Y});case 151:e.next=135;break;case 153:_.setProcessed(r,{context:E,events:h});case 154:e.next=19;break;case 156:e.next=161;break;case 158:e.prev=158,e.t3=e.catch(17),T.e(e.t3);case 161:return e.prev=161,T.f(),e.finish(161);case 164:return e.abrupt("return",E);case 165:case"end":return e.stop()}}),e,null,[[17,158,161,164],[143,148]])})));return function(t){return e.apply(this,arguments)}}(),R.createTermDefinition=function(e){var t,r=e.activeCtx,n=e.localCtx,a=e.term,i=e.defined,s=e.options,u=e.overrideProtected,c=void 0!==u&&u;if(i.has(a)){if(i.get(a))return;throw new v("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:n,term:a})}if(i.set(a,!1),n.hasOwnProperty(a)&&(t=n[a]),"@type"===a&&g(t)&&"@set"===(t["@container"]||"@set")&&R.processingMode(r,1.1)){var l=["@container","@id","@protected"],f=Object.keys(t);if(0===f.length||f.some((function(e){return!l.includes(e)})))throw new v("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:n,term:a})}else{if(R.isKeyword(a))throw new v("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:n,term:a});if(a.match(E))return void(s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:a}},options:s}));if(""===a)throw new v("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:n})}var d=r.mappings.get(a);r.mappings.has(a)&&r.mappings.delete(a);var p=!1;if((x(t)||null===t)&&(p=!0,t={"@id":t}),!g(t))throw new v("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:n});var h={};r.mappings.set(a,h),h.reverse=!1;var b=["@container","@id","@language","@reverse","@type"];for(var m in R.processingMode(r,1.1)&&b.push("@context","@direction","@index","@nest","@prefix","@protected"),t)if(!b.includes(m))throw new v("Invalid JSON-LD syntax; a term definition must not contain "+m,"jsonld.SyntaxError",{code:"invalid term definition",context:n});var k=a.indexOf(":");if(h._termHasColon=k>0,"@reverse"in t){if("@id"in t)throw new v("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});if("@nest"in t)throw new v("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});var j=t["@reverse"];if(!x(j))throw new v("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});if(j.match(E))return s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:j}},options:s}),void(d?r.mappings.set(a,d):r.mappings.delete(a));var O=D(r,j,{vocab:!0,base:!1},n,i,s);if(!w(O))throw new v("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:n});h["@id"]=O,h.reverse=!0}else if("@id"in t){var I=t["@id"];if(I&&!x(I))throw new v("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});if(null===I)h["@id"]=null;else{if(!R.isKeyword(I)&&I.match(E))return s.eventHandler&&S({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:I}},options:s}),void(d?r.mappings.set(a,d):r.mappings.delete(a));if(I!==a){if(I=D(r,I,{vocab:!0,base:!1},n,i,s),!w(I)&&!R.isKeyword(I))throw new v("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:n});if(a.match(/(?::[^:])|\//))if(D(r,a,{vocab:!0,base:!1},n,new Map(i).set(a,!0),s)!==I)throw new v("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n});h["@id"]=I,h._prefix=p&&!h._termHasColon&&null!==I.match(/[:\/\?#\[\]@]$/)}}}if(!("@id"in h))if(h._termHasColon){var A=a.substr(0,k);if(n.hasOwnProperty(A)&&R.createTermDefinition({activeCtx:r,localCtx:n,term:A,defined:i,options:s}),r.mappings.has(A)){var T=a.substr(k+1);h["@id"]=r.mappings.get(A)["@id"]+T}else h["@id"]=a}else if("@type"===a)h["@id"]=a;else{if(!("@vocab"in r))throw new v("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:n,term:a});h["@id"]=r["@vocab"]+a}if((!0===t["@protected"]||!0===i.get("@protected")&&!1!==t["@protected"])&&(r.protected[a]=!0,h.protected=!0),i.set(a,!0),"@type"in t){var N=t["@type"];if(!x(N))throw new v("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:n});if("@json"===N||"@none"===N){if(R.processingMode(r,1))throw new v("Invalid JSON-LD syntax; an @context @type value must not be "+'"'.concat(N,'" in JSON-LD 1.0 mode.'),"jsonld.SyntaxError",{code:"invalid type mapping",context:n})}else if("@id"!==N&&"@vocab"!==N){if(N=D(r,N,{vocab:!0,base:!1},n,i,s),!w(N))throw new v("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:n});if(0===N.indexOf("_:"))throw new v("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:n})}h["@type"]=N}if("@container"in t){var _=x(t["@container"])?[t["@container"]]:t["@container"]||[],C=["@list","@set","@index","@language"],L=!0,P=_.includes("@set");if(R.processingMode(r,1.1)){if(C.push("@graph","@id","@type"),_.includes("@list")){if(1!==_.length)throw new v("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:n})}else if(_.includes("@graph")){if(_.some((function(e){return"@graph"!==e&&"@id"!==e&&"@index"!==e&&"@set"!==e})))throw new v("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:n})}else L&=_.length<=(P?2:1);if(_.includes("@type")&&(h["@type"]=h["@type"]||"@id",!["@id","@vocab"].includes(h["@type"])))throw new v("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:n})}else L&=!y(t["@container"]),L&=_.length<=1;if(L&=_.every((function(e){return C.includes(e)})),!(L&=!(P&&_.includes("@list"))))throw new v("Invalid JSON-LD syntax; @context @container value must be one of the following: "+C.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:n});if(h.reverse&&!_.every((function(e){return["@index","@set"].includes(e)})))throw new v("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:n});h["@container"]=_}if("@index"in t){if(!("@container"in t)||!h["@container"].includes("@index"))throw new v("Invalid JSON-LD syntax; @index without @index in @container: "+'"'.concat(t["@index"],'" on term "').concat(a,'".'),"jsonld.SyntaxError",{code:"invalid term definition",context:n});if(!x(t["@index"])||0===t["@index"].indexOf("@"))throw new v("Invalid JSON-LD syntax; @index must expand to an IRI: "+'"'.concat(t["@index"],'" on term "').concat(a,'".'),"jsonld.SyntaxError",{code:"invalid term definition",context:n});h["@index"]=t["@index"]}if("@context"in t&&(h["@context"]=t["@context"]),"@language"in t&&!("@type"in t)){var M=t["@language"];if(null!==M&&!x(M))throw new v("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:n});null!==M&&(M=M.toLowerCase()),h["@language"]=M}if("@prefix"in t){if(a.match(/:|\//))throw new v("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:n});if(R.isKeyword(h["@id"]))throw new v("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:n});if("boolean"!=typeof t["@prefix"])throw new v("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:n});h._prefix=!0===t["@prefix"]}if("@direction"in t){var B=t["@direction"];if(null!==B&&"ltr"!==B&&"rtl"!==B)throw new v('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:n});h["@direction"]=B}if("@nest"in t){var F=t["@nest"];if(!x(F)||"@nest"!==F&&0===F.indexOf("@"))throw new v("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:n});h["@nest"]=F} // disallow aliasing @context and @preserve var U=h["@id"];if("@context"===U||"@preserve"===U)throw new v("Invalid JSON-LD syntax; @context and @preserve cannot be