UNPKG

attributes-kit

Version:
6 lines 657 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom"],t):"object"==typeof exports?exports.AttributesKit=t(require("react"),require("prop-types"),require("react-dom")):e.AttributesKit=t(e.React,e["prop-types"],e["react-dom"])}(this,function(e,t,a){return function(e){function t(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=475)}([function(t,a){t.exports=e},function(e,a){e.exports=t},function(e,t,a){"use strict";function n(e){return a.i(i.a)(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=a(119),o=a(124),r=a(413),s=a(411),c=a(121),u=a(415);a(125);a.d(t,"Plugins",function(){return o.a}),a.d(t,"Style",function(){return r.a}),a.d(t,"StyleRoot",function(){return s.a}),a.d(t,"getState",function(){return c.a}),a.d(t,"keyframes",function(){return u.a}),n.Plugins=o.a,n.Style=r.a,n.StyleRoot=s.a,n.getState=c.a,n.keyframes=u.a,t.default=n},function(e,t,a){var n=a(317),i=a(337),o=i(function(e,t,a){n(e,t,a)});e.exports=o},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(458);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var i=a(459);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var o=a(460);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=a(461);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=a(462);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var c=a(463);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var u=a(464);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var l=a(465);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var p=a(48);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})});var f=a(466);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})})},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s,c=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),u=a(0),l=n(u),p=a(1),f=(n(p),a(2)),m=n(f),d=a(3),h=n(d),y=(0,m.default)(s=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),c(t,[{key:"render",value:function(){return l.default.createElement("div",{style:this.style},this.props.children)}},{key:"style",get:function(){var e={height:"auto",width:"100%",display:"flex",flexDirection:"column",flexWrap:"no-wrap",justifyContent:"flex-start",alignItems:"flex-start"};return(0,h.default)(e,this.props.style)}}]),t}(l.default.Component))||s;t.default=y,e.exports=t.default},function(e,t){var a=Array.isArray;e.exports=a},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),c=a(0),u=n(c),l=a(1),p=(n(l),a(3)),f=n(p),m=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"getStyles",value:function(){var e={width:"100%",height:"auto",display:"flex",flexDirection:"row",flexWrap:"no-wrap",justifyContent:"flex-start",alignItems:"stretch",position:"relative"};return(0,f.default)(e,this.props.style||{})}},{key:"render",value:function(){return u.default.createElement("div",{style:this.getStyles(),onClick:this.props.onClick},this.props.children)}}]),t}(u.default.Component);t.default=m,e.exports=t.default},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DEFAULT_FONT_FAMILY="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",t.MONO_FONT_FAMILY="SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace"},function(e,t,a){"use strict";function n(e,t,a){return a?[e,t]:e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,a){function n(e){if(null==e)return!0;if(c(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||p(e)||r(e)))return!e.length;var t=o(e);if(t==f||t==m)return!e.size;if(l(e))return!i(e).length;for(var a in e)if(h.call(e,a))return!1;return!0}var i=a(97),o=a(25),r=a(43),s=a(6),c=a(17),u=a(28),l=a(40),p=a(44),f="[object Map]",m="[object Set]",d=Object.prototype,h=d.hasOwnProperty;e.exports=n},function(e,t,a){var n=a(104),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.Value=void 0;var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),c=a(18),u=n(c),l=a(0),p=n(l),f=a(1),m=(n(f),a(4)),d=a(454),h=a(50),y=n(h),g=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"render",value:function(){return this.props.element?(0,m.isMember)(this.props.element)?(0,m.isStructured)(this.props.element)?p.default.createElement(y.default,{element:this.props.element.content.value,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample,collapseByDefault:this.props.collapseByDefault}):p.default.createElement(d.PrimitiveValue,{value:this.props.element.content.value.content,style:this.props.style,collapseByDefault:this.props.collapseByDefault}):(0,m.isStructured)(this.props.element)?p.default.createElement(y.default,{element:this.props.element,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample,collapseByDefault:this.props.collapseByDefault}):(0,m.isObject)(this.props.element)||(0,m.isArray)(this.props.element)||(0,m.isSelect)(this.props.element)||(0,m.isEnum)(this.props.element)?p.default.createElement(y.default,{element:this.props.element,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,style:this.props.style,isSample:this.props.isSample,collapseByDefault:this.props.collapseByDefault}):(0,u.default)(this.props.element.content)?null:p.default.createElement(d.PrimitiveValue,{value:this.props.element.content,style:this.props.style,collapseByDefault:this.props.collapseByDefault}):null}}]),t}(p.default.Component);t.Value=g},function(e,t,a){function n(e){return null==e?void 0===e?c:s:u&&u in Object(e)?o(e):r(e)}var i=a(22),o=a(344),r=a(370),s="[object Null]",c="[object Undefined]",u=i?i.toStringTag:void 0;e.exports=n},function(e,t,a){function n(e,t){var a=o(e,t);return i(a)?a:void 0}var i=a(310),o=a(345);e.exports=n},function(e,t,a){function n(e){return null!=e&&o(e.length)&&!i(e)}var i=a(64),o=a(65);e.exports=n},function(e,t){function a(e){return void 0===e}e.exports=a},function(e,t,a){"use strict";function n(e){return"string"==typeof e&&i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=/-webkit-|-moz-|-ms-/;e.exports=t.default},function(e,t,a){function n(e){return r(e)?i(e):o(e)}var i=a(88),o=a(97),r=a(17);e.exports=n},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(0),f=n(p),m=a(1),d=n(m),h=a(2),y=n(h),g=a(3),v=n(g),b=a(5),w=n(b),x=a(7),j=n(x),_=a(9),k=(0,y.default)((u=c=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"renderStyles",value:function(){var e=this.context.theme.SAMPLE_TOGGLE_TITLE_COLOR,t={root:{cursor:"pointer"},iconColumn:{width:"12px",minWidth:"12px",maxWidth:"12px"},icon:{width:"12px",height:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"left center"},title:{userSelect:"none",lineHeight:"12px",letterSpacing:"0.85px",fontFamily:_.DEFAULT_FONT_FAMILY,fontSize:"12px",color:e,textTransform:"uppercase",paddingLeft:"6px"}};return this.props.isExpanded?(t.icon.backgroundImage="url("+a(481)+")",t.icon.backgroundSize="12px 7px"):(t.icon.backgroundImage="url("+a(480)+")",t.icon.backgroundSize="7px 12px"),(0,v.default)(t,this.props.style||{})}},{key:"render",value:function(){return f.default.createElement(j.default,{style:this.renderStyles().root,onClick:this.props.onClick},f.default.createElement(w.default,{style:this.renderStyles().iconColumn},f.default.createElement("div",{style:this.renderStyles().icon})),f.default.createElement(w.default,null,f.default.createElement("div",{style:this.renderStyles().title},this.props.sampleTitle||"Sample")))}}]),t}(f.default.Component),c.contextTypes={theme:d.default.object},s=u))||s;t.default=k,e.exports=t.default},function(e,t,a){var n=a(12),i=n.Symbol;e.exports=i},function(e,t,a){var n=a(303),i=a(338),o=i(n);e.exports=o},function(e,t,a){function n(e,t,a,n){var r=!a;a||(a={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=n?n(a[u],e[u],u,a,e):void 0;void 0===l&&(l=e[u]),r?o(a,u,l):i(a,u,l)}return a}var i=a(92),o=a(56);e.exports=n},function(e,t,a){var n=a(287),i=a(53),o=a(289),r=a(290),s=a(292),c=a(15),u=a(112),l=u(n),p=u(i),f=u(o),m=u(r),d=u(s),h=c;(n&&"[object DataView]"!=h(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=h(new i)||o&&"[object Promise]"!=h(o.resolve())||r&&"[object Set]"!=h(new r)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=c(e),a="[object Object]"==t?e.constructor:void 0,n=a?u(a):"";if(n)switch(n){case l:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case m:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=h},function(e,t){function a(e,t){return e===t||e!==e&&t!==t}e.exports=a},function(e,t){function a(e){return e}e.exports=a},function(e,t,a){(function(e){var n=a(12),i=a(400),o="object"==typeof t&&t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===o,c=s?n.Buffer:void 0,u=c?c.isBuffer:void 0,l=u||i;e.exports=l}).call(t,a(70)(e))},function(e,t,a){function n(e){return"symbol"==typeof e||o(e)&&i(e)==r}var i=a(15),o=a(13),r="[object Symbol]";e.exports=n},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u,l=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),p=a(8),f=n(p),m=a(392),d=n(m),h=a(406),y=n(h),g=a(3),v=n(g),b=a(2),w=n(b),x=a(0),j=n(x),_=a(1),k=n(_),z=a(9),E=a(48);y.default.setOptions({sanitize:!0});var O=(0,w.default)((u=c=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),l(t,[{key:"render",value:function(){var e=t.getDescription(this.props.element);if(!e&&(0,E.isMember)(this.props.element)){var a=this.props.element.content;a&&a.value&&(e=t.getDescription(a.value))}if(!e)return!1;var n={__html:(0,y.default)(e)};return j.default.createElement("div",null,j.default.createElement("div",{style:this.style.base,dangerouslySetInnerHTML:n}))}},{key:"style",get:function(){var e=this.context.theme.DESCRIPTION_COLOR,t={base:{fontFamily:z.DEFAULT_FONT_FAMILY,fontSize:"13px",color:e,lineHeight:"150%",fontWeight:"regular"}};return(0,v.default)(t,this.props.style||{})}}],[{key:"getDescription",value:function(e){if(e.meta&&e.meta.description){if((0,d.default)(e.meta.description))return e.meta.description;if((0,f.default)(e.meta.description))return e.meta.description.content}return null}}]),t}(j.default.Component),c.contextTypes={theme:k.default.object},s=u))||s;t.default=O,e.exports=t.default},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s,c,u=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),l=a(0),p=n(l),f=a(1),m=n(f),d=a(2),h=n(d),y=a(3),g=n(y),v=a(4),b=a(9),w=(c=s=function(e){function t(){var e,a,n,r;i(this,t);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return a=n=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),n.handleClick=function(e){var t=(0,v.getReference)(n.props.element),a=(0,v.findElement)(t,n.context.dereferencedDataStructures);return n.context.onElementLinkClick?n.context.onElementLinkClick(a.meta.id,a,e):null},r=a,o(n,r)}return r(t,e),u(t,[{key:"render",value:function(){if(this.props.reference)return p.default.createElement("div",{style:this.style.reference,onClick:this.handleClick},this.props.reference);if(this.props.type)return p.default.createElement("div",{style:this.style.type},this.props.type);if(this.props.element){var e=(0,v.getType)(this.props.element);if(e)return p.default.createElement("div",{style:this.style.type},e)}return null}},{key:"style",get:function(){var e=this.context.theme.TYPE_COLOR,t={type:{width:"100%",fontFamily:b.MONO_FONT_FAMILY,fontWeight:"regular",fontSize:"13px",color:e,lineHeight:"13px"},reference:{width:"100%",fontFamily:b.MONO_FONT_FAMILY,fontWeight:"regular",fontSize:"13px",color:e,textDecoration:"underline",cursor:"pointer",":hover":{textDecoration:"none"}}};return(0,g.default)(t,this.props.style||{})}}]),t}(p.default.Component),s.contextTypes={theme:m.default.object,onElementLinkClick:m.default.func,dereferencedDataStructures:m.default.array},c);t.default=(0,h.default)(w),e.exports=t.default},function(e,t,a){"use strict";function n(e){this.name="MissingCacheObjectException",this.message=(0,r.default)(i,JSON.stringify(e,null,2))}Object.defineProperty(t,"__esModule",{value:!0}),t.MissingCacheObjectException=void 0;var i=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n The element is missing the ‘cache’ object. Please check that the the Refract tree has been preprocessed. Element is ‘","’.\n "],["\n The element is missing the ‘cache’ object. Please check that the the Refract \\\n tree has been preprocessed. Element is ‘","’.\n "]),o=a(144),r=function(e){return e&&e.__esModule?e:{default:e}}(o);n.prototype=new Error,t.MissingCacheObjectException=n},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){function n(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}var i=a(356),o=a(357),r=a(358),s=a(359),c=a(360);n.prototype.clear=i,n.prototype.delete=o,n.prototype.get=r,n.prototype.has=s,n.prototype.set=c,e.exports=n},function(e,t,a){function n(e){var t=this.__data__=new i(e);this.size=t.size}var i=a(34),o=a(377),r=a(378),s=a(379),c=a(380),u=a(381);n.prototype.clear=o,n.prototype.delete=r,n.prototype.get=s,n.prototype.has=c,n.prototype.set=u,e.exports=n},function(e,t,a){function n(e,t){for(var a=e.length;a--;)if(i(e[a][0],t))return a;return-1}var i=a(26);e.exports=n},function(e,t,a){function n(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?s(e)?o(e[0],e[1]):i(e):c(e)}var i=a(315),o=a(316),r=a(27),s=a(6),c=a(396);e.exports=n},function(e,t,a){function n(e,t){var a=e.__data__;return i(t)?a["string"==typeof t?"string":"hash"]:a.map}var i=a(354);e.exports=n},function(e,t,a){function n(e,t,a){if(!s(a))return!1;var n=typeof t;return!!("number"==n?o(a)&&r(t,a.length):"string"==n&&t in a)&&i(a[t],e)}var i=a(26),o=a(17),r=a(61),s=a(8);e.exports=n},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}var n=Object.prototype;e.exports=a},function(e,t,a){var n=a(16),i=n(Object,"create");e.exports=i},function(e,t,a){function n(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}var i=a(29),o=1/0;e.exports=n},function(e,t,a){var n=a(306),i=a(13),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&r.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,a){var n=a(312),i=a(57),o=a(63),r=o&&o.isTypedArray,s=r?i(r):n;e.exports=s},function(e,t,a){function n(e){return r(e)?i(e,!0):o(e)}var i=a(88),o=a(313),r=a(17);e.exports=n},function(e,t,a){function n(e,t){return(s(e)?i:r)(e,o(t,3))}var i=a(55),o=a(37),r=a(314),s=a(6);e.exports=n},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s,c=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),u=a(0),l=n(u),p=a(1),f=(n(p),a(2)),m=n(f),d=a(3),h=n(d),y=a(14),g=a(5),v=n(g),b=a(7),w=n(b),x=a(21),j=n(x),_=(0,m.default)(s=function(e){function t(e){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleExpandCollapse=function(){a.setState({isExpanded:!a.state.isExpanded})},a.state={isExpanded:!1},a}return r(t,e),c(t,[{key:"render",value:function(){return l.default.createElement(w.default,{style:this.style.row},l.default.createElement(v.default,null,l.default.createElement(j.default,{sampleTitle:this.props.title||"Sample",onClick:this.handleExpandCollapse,isExpanded:this.state.isExpanded}),this.state.isExpanded&&l.default.createElement(y.Value,{element:this.props.sample,style:this.style.value,collapseByDefault:this.props.collapseByDefault})))}},{key:"style",get:function(){var e={row:{width:"100%"},value:{base:{marginTop:"4px",marginBottom:"4px"}}};return(0,h.default)(e,this.props.style||{})}}]),t}(l.default.Component))||s;t.default=_,e.exports=t.default},function(e,t,a){"use strict";function n(e){if(!e)return!1;if(!e.cache)throw new h.MissingCacheObjectException(e);return e.cache.isObject}function i(e){if(!e)return!1;if(!e.cache)throw new h.MissingCacheObjectException(e);return e.cache.isArray}function o(e){if(!e)return!1;if(!e.cache)throw new h.MissingCacheObjectException(e);return e.cache.isEnum}function r(e){if(!e)return!1;if(!e.cache)throw new h.MissingCacheObjectException(e);return e.cache.isSelect}function s(e){return n(e)||i(e)}function c(e){return n(e)||i(e)||o(e)}function u(e){return i(e)||o(e)}function l(e){return i(e)||o(e)||r(e)}function p(e){return!!e&&(e.element?e.element===y.TYPES.MEMBER:e===y.TYPES.MEMBER)}function f(e){if(p(e.element)){if((0,v.default)(e.content.value))return;return e.content.value.element}return e.element}function m(e){return p(e.element)?f(e):e.element}function d(e){return!!e&&!!m(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isSelect=t.isObjectOrArrayOrEnum=t.isObjectOrArray=t.isObject=t.isMember=t.isEnum=t.isArrayOrEnumOrSelect=t.isArrayOrEnum=t.isArray=t.hasType=t.getTypeOfValue=t.getType=void 0;var h=a(32),y=a(132),g=a(18),v=function(e){return e&&e.__esModule?e:{default:e}}(g);t.getType=m,t.getTypeOfValue=f,t.hasType=d,t.isArray=i,t.isArrayOrEnum=u,t.isArrayOrEnumOrSelect=l,t.isEnum=o,t.isMember=p,t.isObject=n,t.isObjectOrArray=s,t.isObjectOrArrayOrEnum=c,t.isSelect=r},function(e,t){!function(){"use strict";function a(e){return"function"==typeof e}function n(e){return"[object Array]"===Object.prototype.toString.call(e)}function i(e){return e instanceof Date?e.getTime():e instanceof Array?e.map(i):e}function o(e,t){return e.get?e.get(t):e[t]}function r(e){return function(t,a){if(!n(a)||!a.length)return e(t,a);for(var i=0,r=a.length;i<r;i++)if(e(t,o(a,i)))return!0;return!1}}function s(e,t){return e.v(e.a,t)}function c(e,t){for(var a=0;a<e.length;a++)if(s(t,o(e,a)))return a;return-1}function u(e,t){return{a:e,v:t}}function l(e,t){var a=[];return p(t,e.k,0,a),1===a.length?s(e.nv,a[0]):!!~c(a,e.nv)}function p(e,t,a,i){if(a===t.length||void 0==e)return void i.push(e);var r=o(t,a);if(n(e)&&isNaN(Number(r)))for(var s=0,c=e.length;s<c;s++)p(o(e,s),t,a,i);else p(o(e,r),t,a+1,i)}function f(e,t){return{a:{k:e,nv:t},v:l}}function m(e){return"Object"===String(e.constructor)||"functionObject(){[nativecode]}"===String(e.constructor).replace(/[\r\n\s\t]/g,"")}function d(e){(e=i(e))&&m(e)||(e={$eq:e});var t=[];for(var a in e){var n=e[a];if("$options"!==a)if(g[a])v[a]&&(n=v[a](n,e)),t.push(u(i(n),g[a]));else{if(36===a.charCodeAt(0))throw new Error("Unknown operation "+a);t.push(f(a.split("."),d(n)))}}return 1===t.length?t[0]:u(t,g.$and)}function h(e,t){var a=d(e);return t&&(a={a:a,v:function(e,a){return s(e,t(a))}}),a}function y(e,t,n){function i(e){return s(o,e)}a(t)&&(n=t,t=void 0);var o=h(e,n);return t?t.filter(i):i}var g={$eq:r(function(e,t){return e(t)}),$ne:function(e){return function(t,a){if(!n(a)||!a.length)return e(t,a);for(var i=0,r=a.length;i<r;i++)if(!e(t,o(a,i)))return!1;return!0}}(function(e,t){return!e(t)}),$or:function(e,t){for(var a=0,n=e.length;a<n;a++)if(s(o(e,a),t))return!0;return!1},$gt:r(function(e,t){return y.compare(i(t),e)>0}),$gte:r(function(e,t){return y.compare(i(t),e)>=0}),$lt:r(function(e,t){return y.compare(i(t),e)<0}),$lte:r(function(e,t){return y.compare(i(t),e)<=0}),$mod:r(function(e,t){return t%e[0]==e[1]}),$in:function(e,t){if(!(t instanceof Array)){var a=i(t);if(a===t&&"object"==typeof t)for(var n=e.length;n--;)if(String(e[n])===String(t)&&"[object Object]"!==String(t))return!0;if(void 0===a)for(var n=e.length;n--;)if(null==e[n])return!0;for(var n=e.length;n--;){var r=h(o(e,n),void 0),c=s(r,t);if(c&&"[object Object]"!==String(c)&&"[object Object]"!==String(t))return!0}return Boolean(!!~e.indexOf(i(t)))}for(var n=t.length;n--;)if(~e.indexOf(i(o(t,n))))return!0;return!1},$nin:function(e,t){return!g.$in(e,t)},$not:function(e,t){return!s(e,t)},$type:function(e,t){return void 0!=t&&(t instanceof e||t.constructor==e)},$all:function(e,t){return g.$and(e,t)},$size:function(e,t){return!!t&&e===t.length},$nor:function(e,t){for(var a=0,n=e.length;a<n;a++)if(s(o(e,a),t))return!1;return!0},$and:function(e,t){for(var a=0,n=e.length;a<n;a++)if(!s(o(e,a),t))return!1;return!0},$regex:r(function(e,t){return"string"==typeof t&&e.test(t)}),$where:function(e,t){return e.call(t,t)},$elemMatch:function(e,t){return n(t)?!!~c(t,e):s(e,t)},$exists:function(e,t){return void 0!=t===e}},v={$eq:function(e){return e instanceof RegExp?function(t){return"string"==typeof t&&e.test(t)}:e instanceof Function?e:n(e)&&!e.length?function(e){return n(e)&&!e.length}:null===e?function(e){return null==e}:function(t){return 0===y.compare(i(t),e)}},$ne:function(e){return v.$eq(e)},$and:function(e){return e.map(d)},$all:function(e){return v.$and(e)},$or:function(e){return e.map(d)},$nor:function(e){return e.map(d)},$not:function(e){return d(e)},$regex:function(e,t){return new RegExp(e,t.$options)},$where:function(e){return"string"==typeof e?new Function("obj","return "+e):e},$elemMatch:function(e){return d(e)},$exists:function(e){return!!e}};y.use=function(e){if(a(e))return e(y);for(var t in e)36===t.charCodeAt(0)&&(g[t]=e[t])},y.indexOf=function(e,t,a){return c(t,h(e,a))},y.compare=function(e,t){if(e===t)return 0;if(typeof e==typeof t){if(e>t)return 1;if(e<t)return-1}},void 0!==e&&void 0!==e.exports&&(Object.defineProperty(t,"__esModule",{value:!0}),e.exports=y,t.default=e.exports.default=y),"undefined"!=typeof window&&(window.sift=y)}()},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 r(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),c=a(0),u=n(c),l=a(1),p=(n(l),a(438)),f=n(p),m=a(473),d=n(m),h=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"render",value:function(){if(!this.props.element)return!1;var e=d.default[this.props.element.element];if(void 0===e){var t="\n Attributes Kit is not able to render the ‘"+this.props.element.element+"’\n element.\n ";return u.default.createElement(f.default,{errorMessage:t})}return u.default.createElement(e,{collapseByDefault:this.props.collapseByDefault,element:this.props.element,expandableCollapsible:this.props.expandableCollapsible,parentElement:this.props.parentElement,isSample:this.props.isSample})}}]),t}(u.default.Component);t.default=h,e.exports=t.default},function(e,t,a){(function(){var t,n,i,o,r;o=a(75),r=o.uniqueMembers,i=o.inherit,t=a(76).createLink,e.exports=n=function(e,a,o){var s,c,u,l,p,f,m,d,h,y,g,v;if(null==o&&(o=[]),m=o,c=null!=(g=e.meta)?g.id:void 0,"object"==typeof c&&(c=c.content),-1!==o.indexOf(e.element)||-1!==o.indexOf(c))return t(e,{relation:"origin",href:"http://refract.link/circular-reference/"}),e;switch(null!=c&&(m=o.concat(c)),e.element){case"enum":case"array":return e.content=function(){var t,i,o,r;for(o=e.content||[],r=[],t=0,i=o.length;t<i;t++)u=o[t],r.push(n(u,a,m));return r}(),e;case"object":for(d=e.content?e.content.slice(0):[],s=0;s<d.length;)if(f=d[s],s++,"ref"!==f.element)f.content.key&&(f.content.key=n(f.content.key,a,m)),f.content.value&&(f.content.value=n(f.content.value,a,m));else{if(s--,!(y=a[f.content.href]))return e;for(y.content=JSON.parse(JSON.stringify(y.content)),v=y.content,l=0,p=v.length;l<p;l++)h=v[l],t(h,{relation:"origin",href:"http://refract.link/included-member/"}),h.meta.ref=f.content.href;d.splice.apply(d,[s,1].concat(y.content))}return e.content=r(d),e;default:return y=a[e.element],y?n(i(y,e),a,o.concat(e.element)):e}}}).call(this)},function(e,t,a){"use strict";function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,a){var n=a(16),i=a(12),o=n(i,"Map");e.exports=o},function(e,t,a){function n(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var n=e[t];this.set(n[0],n[1])}}var i=a(361),o=a(362),r=a(363),s=a(364),c=a(365);n.prototype.clear=i,n.prototype.delete=o,n.prototype.get=r,n.prototype.has=s,n.prototype.set=c,e.exports=n},function(e,t){function a(e,t){for(var a=-1,n=null==e?0:e.length,i=Array(n);++a<n;)i[a]=t(e[a],a,e);return i}e.exports=a},function(e,t,a){function n(e,t,a){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}var i=a(102);e.exports=n},function(e,t){function a(e){return function(t){return e(t)}}e.exports=a},function(e,t,a){function n(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}var i=a(86);e.exports=n},function(e,t,a){var n=a(110),i=n(Object.getPrototypeOf,Object);e.exports=i},function(e,t,a){var n=a(295),i=a(115),o=Object.prototype,r=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,c=s?function(e){return null==e?[]:(e=Object(e),n(s(e),function(t){return r.call(e,t)}))}:i;e.exports=c},function(e,t){function a(e,t){var a=typeof e;return!!(t=null==t?n:t)&&("number"==a||"symbol"!=a&&i.test(e))&&e>-1&&e%1==0&&e<t}var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=a},function(e,t,a){function n(e,t){if(i(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!o(e))||(s.test(e)||!r.test(e)||null!=t&&e in Object(t))}var i=a(6),o=a(29),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=n},function(e,t,a){(function(e){var n=a(104),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,r=o&&o.exports===i,s=r&&n.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=c}).call(t,a(70)(e))},function(e,t,a){function n(e){if(!o(e))return!1;var t=i(e);return t==s||t==c||t==r||t==u}var i=a(15),o=a(8),r="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=n},function(e,t){function a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}var n=9007199254740991;e.exports=a},function(e,t,a){"use strict";function n(e){return Object.keys(e).map(function(t){return t+": "+e[t]+";"}).join("\n")}function i(e,t,i){if(!t)return"";var u=a.i(s.a)(t,function(e,t){return a.i(o.a)(t,e)}),l=a.i(c.b)(u,i);return e+"{"+n(a.i(r.a)(l))+"}"}t.a=i;var o=a(116),r=a(117),s=a(123),c=a(67)},function(e,t,a){"use strict";(function(e){function n(e){return Object.keys(e).reduce(function(t,a){var n=e[a];return Array.isArray(n)?n=n.join(";"+a+":"):n&&"object"===(void 0===n?"undefined":g(n))&&"function"==typeof n.toString&&(n=n.toString()),t[a]=n,t},{})}function i(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return Array.isArray(i)&&(i=m.a.canUseDOM?i[i.length-1].toString():i.join(";"+a.i(y.b)(n)+":")),t[n]=i,t},{})}function o(t){var a=t||e&&e.navigator&&e.navigator.userAgent;return x&&a===w||(x="all"===a?{prefix:v,prefixedKeyframes:"keyframes"}:new b({userAgent:a}),w=a),x}function r(e){return o(e).prefixedKeyframes||"keyframes"}function s(e,t){var a=n(e);return i(o(t).prefix(a))}t.a=r,t.b=s;var c=a(271),u=a.n(c),l=a(258),p=a.n(l),f=a(77),m=a.n(f),d=a(427),h=a(426),y=a(117),g="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=u()(d.a),b=p()(h.a,v),w=void 0,x=void 0}).call(t,a(33))},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a.d(t,"a",function(){return o});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=function(){function e(t){n(this,e),this._userAgent=t,this._listeners=[],this._cssSet={}}return i(e,[{key:"subscribe",value:function(e){var t=this;return-1===this._listeners.indexOf(e)&&this._listeners.push(e),{remove:function(){var a=t._listeners.indexOf(e);a>-1&&t._listeners.splice(a,1)}}}},{key:"addCSS",value:function(e){var t=this;return this._cssSet[e]||(this._cssSet[e]=!0,this._emitChange()),{remove:function(){delete t._cssSet[e],t._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join("\n")}},{key:"_emitChange",value:function(){this._listeners.forEach(function(e){return e()})}}]),e}()},function(e,t,a){"use strict";function n(e,t,a){void 0===e.cache&&(e.cache={}),e.cache[t]=a}Object.defineProperty(t,"__esModule",{value:!0}),t.setCache=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,a){(function(){var t,n,i,o,r,s;n=a(74),i=a(51),o=a(145),r=a(146),s=a(75).inherit,t=function(){function e(e,t){var a;this.structures=null!=e?e:{},this.options=null!=t?t:{},null==(a=this.options).defaultValue&&(a.defaultValue=n)}return e.prototype.dereference=function(e){return i(e,this.structures)},e.prototype.example=function(e,t){return null==t&&(t=this.options),o(e,this.structures,t)},e.prototype.schema=function(e){return r(e,this.structures)},e}(),e.exports={Eidolon:t,defaultValue:n,dereference:i,example:o,inherit:s,schema:r}}).call(this)},function(e,t){e.exports=a},function(e,t,a){"use strict";function n(e){return(0,o.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=a(257),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=t.default},function(e,t,a){(function(){var t,n;n=a(80),t=function(e,t){var a,n;return!!e&&(n=e.length-t.length,-1!==(a=e.indexOf(t,n))&&a===n)},e.exports=function(e,a){var i,o,r;switch(i=a.length-1,e.element){case"boolean":return n.random.boolean();case"number":switch(a[i]){case"cost":case"price":return parseFloat(n.finance.amount());default:return n.random.number()}break;case"string":switch(a[i]){case"id":case"uid":case"uuid":return n.random.uuid();case"firstname":return n.name.firstName();case"lastname":return n.name.lastName();case"name":return a.length>1&&("user"===(o=a[i-1])||"userinfo"===o||"customer"===o||"account"===o||"client"===o)?n.name.findName():a.length>1&&("company"===(r=a[i-1])||"business"===r)?n.company.companyName():n.lorem.words(1);case"username":return n.internet.userName();case"email":return n.internet.email();case"url":case"uri":case"href":case"host":case"hostname":case"website":return n.internet.url();case"password":case"pass":return n.internet.password();case"image":case"avatar":return n.image.image();case"address":case"location":case"street":return n.address.streetAddress();case"city":return n.address.city();case"state":return n.address.stateAbbr();case"country":return n.address.countryCode();case"zip":case"zipcode":return n.address.zipCode();case"lat":case"latitude":return n.address.latitude();case"lng":case"longitude":return n.address.longitude();case"date":case"datetime":case"timestamp":return n.date.past();case"cost":case"price":return n.finance.amount();case"currency":return n.finance.currencyCode();default:return t(a[i],"date")||t(a[i],"datetime")||t(a[i],"timestamp")?n.date.past():n.lorem.words()}}}}).call(this)},function(e,t,a){(function(){var t,n,i,o={}.hasOwnProperty;t=a(76).createLink,i=function(e){var t,a,n;for(n={},t=0;t<e.length;){if("member"===e[t].element){if(a=e[t].content.key.content,void 0!==n[a]){e[n[a]]=e[t],e.splice(t,1);continue}n[a]=t}t++}return e},n=function(e,a){var n,r,s,c,u,l,p,f,m,d,h,y,g,v,b,w;if(n=JSON.parse(JSON.stringify(e)),null!=(null!=(f=e.meta)?f.id:void 0)&&(delete n.meta.id,n.meta.ref=e.meta.id,t(n,{relation:"origin",href:"http://refract.link/inherited/"}),null!=(m=n.content)?m.length:void 0))for(d=n.content,s=0,l=d.length;s<l;s++)r=d[s],r.element&&(r.meta&&r.meta.ref||(t(r,{relation:"origin",href:"http://refract.link/inherited-member/"}),r.meta.ref=e.meta.id));if(a.meta){null==n.meta&&(n.meta={}),h=a.meta;for(u in h)o.call(h,u)&&(w=h[u],n.meta[u]=w)}if(a.attributes){null==n.attributes&&(n.attributes={}),y=a.attributes;for(u in y)o.call(y,u)&&(w=y[u],n.attributes[u]=w)}if(a.content)if((null!=(g=n.content)?g.push:void 0)||(null!=(v=a.content)?v.push:void 0)){for(null==n.content&&(n.content=[]),b=a.content,c=0,p=b.length;c<p;c++)r=b[c],n.content.push(r);n.content.length&&"member"===n.content[0].element&&i(n.content)}else null!=a.content&&(n.content=a.content);return n},e.exports={uniqueMembers:i,inherit:n}}).call(this)},function(e,t){(function(){t.createLink=function(e,t){var a;return null==e.meta&&(e.meta={}),null==(a=e.meta).links&&(a.links=[]),e.meta.links.push(t)}}).call(this)},function(e,t,a){var n;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */ !function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0!==(n=function(){return o}.call(t,a,t,e))&&(e.exports=n)}()},function(e,t,a){var n={};e.exports=n,n.title="English",n.separator=" & ",n.address=a(166),n.credit_card=a(202),n.company=a(195),n.internet=a(227),n.lorem=a(228),n.name=a(232),n.phone_number=a(239),n.cell_phone=a(185),n.business=a(183),n.commerce=a(188),n.team=a(243),n.hacker=a(219),n.app=a(177),n.finance=a(215),n.date=a(210),n.system=a(240)},function(e,t,a){function n(e,t){return t&&(Array.isArray(t)&&t.length?i.seed_array(t):i.seed(t)),this.number=function(e){"number"==typeof e&&(e={max:e}),e=e||{},void 0===e.min&&(e.min=0),void 0===e.max&&(e.max=99999),void 0===e.precision&&(e.precision=1);var t=e.max;return t>=0&&(t+=e.precision),e.precision*Math.floor(i.rand(t/e.precision,e.min/e.precision))},this.arrayElement=function(t){return t=t||["a","b","c"],t[e.random.number({max:t.length-1})]},this.objectElement=function(t,a){t=t||{foo:"bar",too:"car"};var n=Object.keys(t),i=e.random.arrayElement(n);return"key"===a?i:t[i]},this.uuid=function(){var e=this;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=e.number({min:0,max:15});return("x"==t?a:3&a|8).toString(16)})},this.boolean=function(){return!!e.random.number(1)},this.word=function(t){var a=["commerce.department","commerce.productName","commerce.productAdjective","commerce.productMaterial","commerce.product","commerce.color","company.catchPhraseAdjective","company.catchPhraseDescriptor","company.catchPhraseNoun","company.bsAdjective","company.bsBuzz","company.bsNoun","address.streetSuffix","address.county","address.country","address.state","finance.accountName","finance.transactionType","finance.currencyName","hacker.noun","hacker.verb","hacker.adjective","hacker.ingverb","hacker.abbreviation","name.jobDescriptor","name.jobArea","name.jobType"],n=e.random.arrayElement(a);return e.fake("{{"+n+"}}")},this.words=function(t){var a=[];void 0===t&&(t=e.random.number({min:1,max:3}));for(var n=0;n<t;n++)a.push(e.random.word());return a.join(" ")},this.image=function(){return e.image.image()},this.locale=function(){return e.random.arrayElement(Object.keys(e.locales))},this.alphaNumeric=function(){return e.random.arrayElement(["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"])},this}var i=a(249);e.exports=n},function(e,t,a){var n=a(156),i=new n({locale:"en",localeFallback:"en"});i.locales.en=a(78),i.locales.en=a(78),e.exports=i},function(e,t,a){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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=a(254),r=function(e){function t(a,i,o){n(this,t),e.call(this,a),this.listener=i,this.context=o}return i(t,e),t}(o);e.exports=r},function(e,t,a){"use strict";function n(e,t,a,n,o,r,s,c){if(i(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[a,n,o,r,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var i=function(e){};e.exports=n},function(e,t,a){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){if(Array.isArray(t))for(var a=0,i=t.length;a<i;++a)n(e,t[a]);else n(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,e.exports=t.default},function(e,t,a){"use strict";function n(e){return e instanceof Object&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,a){"use strict";function n(e,t,a,n,i){for(var o=0,r=e.length;o<r;++o){var s=e[o](t,a,n,i);if(s)return s}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,a){var n=a(12),i=n.Uint8Array;e.exports=i},function(e,t){function a(e,t){for(var a=-1,n=null==e?0:e.length;++a<n&&!1!==t(e[a],a,e););return e}e.exports=a},function(e,t,a){function n(e,t){var a=r(e),n=!a&&o(e),l=!a&&!n&&s(e),f=!a&&!n&&!l&&u(e),m=a||n||l||f,d=m?i(e.length,String):[],h=d.length;for(var y in e)!t&&!p.call(e,y)||m&&("length"==y||l&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,h))||d.push(y);return d}var i=a(326),o=a(43),r=a(6),s=a(28),c=a(61),u=a(44),l=Object.prototype,p=l.hasOwnProperty;e.exports=n},function(e,t){function a(e,t){for(var a=-1,n=t.length,i=e.length;++a<n;)e[i+a]=t[a];return e}e.exports=a},function(e,t){function a(e,t){for(var a=-1,n=null==e?0:e.length;++a<n;)if(t(e[a],a,e))return!0;return!1}e.exports=a},function(e,t,a){function n(e,t,a){(void 0===a||o(e[t],a))&&(void 0!==a||t in e)||i(e,t,a)}var i=a(56),o=a(26);e.exports=n},function(e,t,a){function n(e,t,a){var n=e[t];s.call(e,t)&&o(n,a)&&(void 0!==a||t in e)||i(e,t,a)}var i=a(56),o=a(26),r=Object.prototype,s=r.hasOwnProperty;e.exports=n},function(e,t,a){var n=a(339),i=n();e.exports=i},function(e,t,a){function n(e,t){t=i(t,e);for(var a=0,n=t.length;null!=e&&a<n;)e=e[o(t[a++])];return a&&a==n?e:void 0}var i=a(98),o=a(42);e.exports=n},function(e,t,a){function n(e,t,a){var n=t(e);return o(e)?n:i(n,a(e))}var i=a(89),o=a(6);e.exports=n},function(e,t,a){function n(e,t,a,r,s){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!==e&&t!==t:i(e,t,a,r,n,s))}var i=a(307),o=a(13);e.exports=n},function(e,t,a){function n(e){if(!i(e))return o(e);var t=[];for(var a in Object(e))s.call(e,a)&&"constructor"!=a&&t.push(a);return t}var i=a(40),o=a(368),r=Object.prototype,s=r.hasOwnProperty;e.exports=n},function(e,t,a){function n(e,t){return i(e)?e:o(e,t)?[e]:r(s(e))}var i=a(6),o=a(62),r=a(382),s=a(404);e.exports=n},function(e,t,a){(function(e){function n(e,t){if(t)return e.slice();var a=e.length,n=u?u(a):new e.constructor(a);return e.copy(n),n}var i=a(12),o="object"==typeof t&&t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===o,c=s?i.Buffer:void 0,u=c?c.allocUnsafe:void 0;e.exports=n}).call(t,a(70)(e))},function(e,t,a){function n(e,t){var a=t?i(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var i=a(58);e.exports=n},function(e,t){function a(e,t){var a=-1,n=e.length;for(t||(t=Array(n));++a<n;)t[a]=e[a];return t}e.exports=a},function(e,t,a){var n=a(16),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,a){function n(e,t,a,n,u,l){var p=a&s,f=e.length,m=t.length;if(f!=m&&!(p&&m>f))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var h=-1,y=!0,g=a&c?new i:void 0;for(l.set(e,t),l.set(t,e);++h<f;){var v=e[h],b=t[h];if(n)var w=p?n(b,v,h,t,e,l):n(v,b,h,e,t,l);if(void 0!==w){if(w)continue;y=!1;break}if(g){if(!o(t,function(e,t){if(!r(g,t)&&(v===e||u(v,e,a,n,l)))return g.push(t)})){y=!1;break}}else if(v!==b&&!u(v,b,a,n,l)){y=!1;break}}return l.delete(e),l.delete(t),y}var i=a(291),o=a(90),r=a(329),s=1,c=2;e.exports=n},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(33))},function(e,t,a){function n(e){return i(e,r,o)}var i=a(95),o=a(60),r=a(20);e.exports=n},function(e,t,a){var n=a(89),i=a(59),o=a(60),r=a(115),s=Object.getOwnPropertySymbols,c=s?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:r;e.exports=c},function(e,t,a){function n(e){return"function"!=typeof e.constructor||r(e)?{}:i(o(e))}var i=a(300),o=a(59),r=a(40);e.exports=n},function(e,t,a){function n(e){return e===e&&!i(e)}var i=a(8);e.exports=n},function(e,t){function a(e,t){return function(a){return null!=a&&(a[e]===t&&(void 0!==t||e in Object(a)))}}e.exports=a},function(e,t){function a(e,t){return function(a){return e(t(a))}}e.exports=a},function(e