lindat-common
Version:
Common Lindat Theme (header and footer)
2 lines • 51.1 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.LindatRefBox=e(require("jQuery")):t.LindatRefBox=e(t.jQuery)}(this,function(t){return function(t){function e(A){if(n[A])return n[A].exports;var i=n[A]={exports:{},id:A,loaded:!1};return t[A].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="https://lindat.mff.cuni.cz/common/",e(0)}([function(t,e,n){var A=n(1),i=n(21);window.LindatRefBox=i,A.fn.lindatRefBox=function(t){var e=A.extend({},{rest:"https://lindat.mff.cuni.cz/repository/rest"},t),n="lindat-refbox";return this.each(function(){var t=A(this),o=t.data(n);o&&o.destroy(),t.data(n,new i(this,e))}),this},A(document).ready(function(){window.LindatRefBoxConfig||(window.LindatRefBoxConfig={}),A(".refbox").lindatRefBox(window.LindatRefBoxConfig)})},function(e,n){e.exports=t},function(t,e,n){var A,i,o;!function(r,a){i=[t,n(8)],A=a,o="function"==typeof A?A.apply(e,i):A,!(void 0!==o&&(t.exports=o))}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var A=e[n];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(t,A.key,A)}}return function(e,n,A){return n&&t(e.prototype,n),A&&t(e,A),e}}(),a=function(){function t(e){A(this,t),this.resolveOptions(e),this.initSelection()}return r(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"==typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e,n){var A,i,o;!function(r,a){i=[t,n(2),n(9),n(7)],A=a,o="function"==typeof A?A.apply(e,i):A,!(void 0!==o&&(t.exports=o))}(this,function(t,e,n,A){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=i(e),s=i(n),d=i(A),f=function(){function t(t,e){for(var n=0;n<e.length;n++){var A=e[n];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(t,A.key,A)}}return function(e,n,A){return n&&t(e.prototype,n),A&&t(e,A),e}}(),u=function(t){function e(t,n){o(this,e);var A=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.resolveOptions(n),A.listenClick(t),A}return a(e,t),f(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return c("action",t)}},{key:"defaultTarget",value:function(t){var e=c("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return c("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=u})},function(t,e){function n(t,e){for(;t&&t.nodeType!==A;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var A=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=n},function(t,e,n){function A(t,e,n,A,o){var r=i.apply(this,arguments);return t.addEventListener(n,r,o),{destroy:function(){t.removeEventListener(n,r,o)}}}function i(t,e,n,A){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&A.call(t,n)}}var o=n(4);t.exports=A},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,n){function A(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(t))return i(t,e,n);if(a.nodeList(t))return o(t,e,n);if(a.string(t))return r(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function r(t,e,n){return c(document.body,t,e,n)}var a=n(6),c=n(5);t.exports=A},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var A=window.getSelection(),i=document.createRange();i.selectNodeContents(t),A.removeAllRanges(),A.addRange(i),e=A.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var A=this.e||(this.e={});return(A[t]||(A[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function A(){i.off(t,A),e.apply(n,arguments)}var i=this;return A._=e,this.on(t,A,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),A=0,i=n.length;for(A;A<i;A++)n[A].fn.apply(n[A].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),A=n[t],i=[];if(A&&e)for(var o=0,r=A.length;o<r;o++)A[o].fn!==e&&A[o].fn._!==e&&i.push(A[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=n},function(t,e,n){e=t.exports=n(11)(),e.push([t.id,"@font-face{font-family:refbox-icons;src:url("+n(19)+")}@font-face{font-family:refbox-icons;src:url("+n(18)+');font-weight:400;font-style:normal}@-webkit-keyframes lindat-scale{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.7}80%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes lindat-scale{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);opacity:.7}80%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.lindat-loader>div:nth-child(0){-webkit-animation:lindat-scale .75s -.36s infinite cubic-bezier(.2,.68,.18,1.08);animation:lindat-scale .75s -.36s infinite cubic-bezier(.2,.68,.18,1.08)}.lindat-loader>div:first-child{-webkit-animation:lindat-scale .75s -.24s infinite cubic-bezier(.2,.68,.18,1.08);animation:lindat-scale .75s -.24s infinite cubic-bezier(.2,.68,.18,1.08)}.lindat-loader>div:nth-child(2){-webkit-animation:lindat-scale .75s -.12s infinite cubic-bezier(.2,.68,.18,1.08);animation:lindat-scale .75s -.12s infinite cubic-bezier(.2,.68,.18,1.08)}.lindat-loader>div:nth-child(3){-webkit-animation:lindat-scale .75s 0s infinite cubic-bezier(.2,.68,.18,1.08);animation:lindat-scale .75s 0s infinite cubic-bezier(.2,.68,.18,1.08)}.lindat-loader>div{background-color:#c09853;width:15px;height:15px;border-radius:100%;margin:2px;-webkit-animation-fill-mode:both;animation-fill-mode:both;display:inline-block}html.lindat-modal-open{overflow:hidden}.lindat-overlay{position:fixed;top:0;left:0;height:100%;width:100%;z-index:10000;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background:rgba(0,0,0,.5);font-family:Droid Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;font-size:13px;text-shadow:hsla(0,0%,100%,.5) 0 1px 0;overflow-y:auto}@media (min-width:768px){.lindat-overlay{display:-webkit-box;display:-ms-flexbox;display:flex}}.lindat-overlay *,.lindat-overlay :after,.lindat-overlay :before{box-sizing:inherit}.lindat-modal{padding:20px;margin:20px;background:#fff;border-radius:5px;z-index:10001}@media (min-width:768px){.lindat-modal{min-width:750px}}@media (min-width:992px){.lindat-modal{min-width:970px}}.lindat-modal .lindat-modal-body>textarea{font-family:monospace;width:100%;height:300px;background-color:#eee;color:#555;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);padding:6px 12px;word-wrap:normal;overflow-x:scroll;resize:none;outline:0;word-break:break-all;white-space:pre-wrap}.lindat-modal .lindat-modal-footer{text-align:right;text-transform:uppercase}.lindat-modal-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.lindat-modal-header kbd{background-color:#999;padding:.2em .6em .3em;font-weight:700;line-height:1;border-radius:.25em;color:#fff}.lindat-modal-header p{padding:0;margin:10px 0 0;font-size:13px}.lindat-modal-header h3{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;margin:0 0 10px;padding:0}.lindat-modal-close-button{cursor:pointer;border-radius:2px;height:15px;width:15px;font-size:16px;line-height:15px;background:#ccc;text-align:center;margin:0 0 0 10px}.lindat-refbox{font-family:Droid Sans,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;box-sizing:border-box;font-size:13px;text-shadow:hsla(0,0%,100%,.5) 0 1px 0}.lindat-refbox *,.lindat-refbox :after,.lindat-refbox :before{box-sizing:inherit}.lindat-refbox h3{margin:0;padding:0;font-size:14px;font-weight:700}.lindat-refbox-top{background-color:#fcf8e3;border:1px solid #fbeed5;color:#c09853;padding:10px 10px 5px;border-radius:6px 6px 0 0}.lindat-refbox-formats{padding:0 5px;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;text-align:right}.lindat-refbox-formats a{padding:.2em .6em .3em;margin:0 2px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;background-color:#999;text-transform:uppercase;font-size:11px;text-decoration:none;text-shadow:none}.lindat-refbox-formats a:focus,.lindat-refbox-formats a:hover{background-color:gray;color:#fff;text-decoration:none}.lindat-refbox-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.lindat-refbox-body,.lindat-refbox-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.lindat-refbox-body{padding:10px}.lindat-refbox-text{color:#999;font-weight:700;-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.lindat-refbox-text a{color:#428bca;outline:0;text-decoration:none}.lindat-refbox-text a:focus,.lindat-refbox-text a:hover{color:#2a6496;text-decoration:underline}.lindat-refbox-copy-wrapper{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.lindat-refbox-copy{background:#c09853;display:block;white-space:nowrap;border:none;border-radius:.25em;width:1.3em;height:1.3em;line-height:1em;font-size:2.5em;cursor:pointer;color:#fff}.lindat-refbox-copy:focus{outline:0}.lindat-refbox-copy:hover{background-color:#a47e3c}.lindat-refbox-footer{background-color:#d8edf6;border:1px solid #bbe8ef;color:#38a;padding:5px 10px 10px;border-radius:0 0 6px 6px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width:768px){.lindat-refbox-footer{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.lindat-refbox-integration{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;margin-bottom:10px}@media (min-width:768px){.lindat-refbox-integration{margin-bottom:0}}.lindat-refbox-services{margin:0 0 0 3em}.lindat-refbox-shares a{text-decoration:none;font-size:3em}.lindat-refbox-shares a:focus,.lindat-refbox-shares a:hover{text-decoration:none}.lindat-share-facebook{color:#395a93;-ms-flex-item-align:end;align-self:flex-end}.lindat-share-facebook:hover{color:#2b436e}.lindat-share-twitter{color:#00aee8;-ms-flex-item-align:end;align-self:flex-end}.lindat-share-twitter:hover{color:#0088b5}.lindat-share-google-plus{color:#d64136;-ms-flex-item-align:end;align-self:flex-end}.lindat-share-google-plus:hover{color:#b42f25}.lindat-icon{font-family:refbox-icons;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:.8;letter-spacing:-3px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lindat-header-icon{font-size:3em;margin-right:.1em}.lindat-icon-twitter:before{content:"\\F081"}.lindat-icon-facebook:before{content:"\\F082"}.lindat-icon-google-plus:before{content:"\\F0D4"}.lindat-icon-quote:before{content:"\\F10D"}.lindat-icon-puzzle:before{content:"\\F12E"}.lindat-icon-share:before{content:"\\F1E0"}.lindat-icon-copy:before{content:" ";background-image:url('+n(20)+');background-size:cover;width:20px;height:23px;display:inline-block;position:relative;color:#fff}button.lindat-button::-moz-focus-inner{border:0;padding:0}.lindat-button{font:inherit;font-size:14px;line-height:1;font-weight:700;color:#fff;display:inline-block;cursor:pointer;padding:6px 12px;margin:0 2px;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:4px;background-color:#428bca;background-image:none;-moz-appearance:button;text-indent:0;text-decoration:none;text-shadow:none;text-transform:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #357ebd}.lindat-button:focus{outline:0;color:#fff;text-decoration:none}.lindat-button:hover{background-color:#2a6496;color:#fff;text-decoration:none}.lindat-dropdown-caret{width:0;height:0;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.lindat-dropdown,.lindat-dropdown-caret{display:inline-block;vertical-align:middle}.lindat-dropdown{position:relative;margin-right:4px}.lindat-dropdown:last-child{margin-right:0}.lindat-dropdown>.lindat-button{position:relative;float:left;margin:0}.lindat-dropdown>.lindat-button+.lindat-dropdown-toggle{padding-left:8px;padding-right:8px}.lindat-dropdown>.lindat-button+.lindat-button{margin-left:-1px}.lindat-dropdown>.lindat-dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.lindat-dropdown>.lindat-button:first-child:not(:last-child):not(.lindat-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.lindat-dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.lindat-dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap;text-decoration:none}.lindat-dropdown-menu>li>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.lindat-tooltip{position:fixed;display:inline-block;background-color:rgba(27,31,35,.8);border-radius:3px;padding:5px;color:#fff;font:normal normal 11px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.lindat-tooltip:after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent rgba(27,31,35,.8)}.lindat-format{border-top:5px solid #fbeed5;border-bottom:5px solid #fbeed5}.lindat-flexrow{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.lindat-flexcol,.lindat-flexrow{display:-ms-flex;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.lindat-flexcol{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.lindat-flexrow>div:first-child{width:95%;padding-right:5px}.lindat-format-content>pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.lindat-loading .lindat-refbox-copy,.lindat-loading .lindat-refbox-footer,.lindat-loading .lindat-refbox-formats{display:none}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var A={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(A[o]=!0)}for(i=0;i<e.length;i++){var r=e[i];"number"==typeof r[0]&&A[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(t,e,n){!function(t){function e(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function n(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function A(t,e,n){if(e.charAt(n)!=t.charAt(0))return!1;for(var A=1,i=t.length;A<i;A++)if(e.charAt(n+A)!=t.charAt(A))return!1;return!0}function i(e,n,A,a){var c=[],l=null,s=null,d=null;for(s=A[A.length-1];e.length>0;){if(d=e.shift(),s&&"<"==s.tag&&!(d.tag in m))throw new Error("Illegal content in < super tag.");if(t.tags[d.tag]<=t.tags.$||o(d,a))A.push(d),d.nodes=i(e,d.tag,A,a);else{if("/"==d.tag){if(0===A.length)throw new Error("Closing tag without opener: /"+d.n);if(l=A.pop(),d.n!=l.n&&!r(d.n,l.n,a))throw new Error("Nesting error: "+l.n+" vs. "+d.n);return l.end=d.i,c}"\n"==d.tag&&(d.last=0==e.length||"\n"==e[0].tag)}c.push(d)}if(A.length>0)throw new Error("missing closing tag: "+A.pop().n);return c}function o(t,e){for(var n=0,A=e.length;n<A;n++)if(e[n].o==t.n)return t.tag="#",!0}function r(t,e,n){for(var A=0,i=n.length;A<i;A++)if(n[A].c==t&&n[A].o==e)return!0}function a(t){var e=[];for(var n in t)e.push('"'+l(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+e.join(",")+" }"}function c(t){var e=[];for(var n in t.partials)e.push('"'+l(n)+'":{name:"'+l(t.partials[n].name)+'", '+c(t.partials[n])+"}");return"partials: {"+e.join(",")+"}, subs: "+a(t.subs)}function l(t){return t.replace(B,"\\\\").replace(h,'\\"').replace(g,"\\n").replace(b,"\\r").replace(w,"\\u2028").replace(x,"\\u2029")}function s(t){return~t.indexOf(".")?"d":"f"}function d(t,e){var n="<"+(e.prefix||""),A=n+t.n+v++;return e.partials[A]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+l(A)+'",c,p,"'+(t.indent||"")+'"));',A}function f(t,e){e.code+="t.b(t.t(t."+s(t.n)+'("'+l(t.n)+'",c,p,0)));'}function u(t){return"t.b("+t+");"}var p=/\S/,h=/\"/g,g=/\n/g,b=/\r/g,B=/\\/g,w=/\u2028/,x=/\u2029/;t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},t.scan=function(i,o){function r(){B.length>0&&(w.push({tag:"_t",text:new String(B)}),B="")}function a(){for(var e=!0,n=v;n<w.length;n++)if(e=t.tags[w[n].tag]<t.tags._v||"_t"==w[n].tag&&null===w[n].text.match(p),!e)return!1;return e}function c(t,e){if(r(),t&&a())for(var n,A=v;A<w.length;A++)w[A].text&&((n=w[A+1])&&">"==n.tag&&(n.indent=w[A].text.toString()),w.splice(A,1));else e||w.push({tag:"\n"});x=!1,v=w.length}function l(t,e){var A="="+y,i=t.indexOf(A,e),o=n(t.substring(t.indexOf("=",e)+1,i)).split(" ");return Q=o[0],y=o[o.length-1],i+A.length-1}var s=i.length,d=0,f=1,u=2,h=d,g=null,b=null,B="",w=[],x=!1,m=0,v=0,Q="{{",y="}}";for(o&&(o=o.split(" "),Q=o[0],y=o[1]),m=0;m<s;m++)h==d?A(Q,i,m)?(--m,r(),h=f):"\n"==i.charAt(m)?c(x):B+=i.charAt(m):h==f?(m+=Q.length-1,b=t.tags[i.charAt(m+1)],g=b?i.charAt(m+1):"_v","="==g?(m=l(i,m),h=d):(b&&m++,h=u),x=m):A(y,i,m)?(w.push({tag:g,n:n(B),otag:Q,ctag:y,i:"/"==g?x-Q.length:m+y.length}),B="",m+=y.length-1,h=d,"{"==g&&("}}"==y?m++:e(w[w.length-1]))):B+=i.charAt(m);return c(x,!0),w};var m={_t:!0,"\n":!0,$:!0,"/":!0};t.stringify=function(e,n,A){return"{code: function (c,p,i) { "+t.wrapMain(e.code)+" },"+c(e)+"}"};var v=0;t.generate=function(e,n,A){v=0;var i={code:"",subs:{},partials:{}};return t.walk(e,i),A.asString?this.stringify(i,n,A):this.makeTemplate(i,n,A)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,e,n){var A=this.makePartials(t);return A.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(A,e,this,n)},t.makePartials=function(t){var e,n={subs:{},partials:t.partials,name:t.name};for(e in n.partials)n.partials[e]=this.makePartials(n.partials[e]);for(e in t.subs)n.subs[e]=new Function("c","p","t","i",t.subs[e]);return n},t.codegen={"#":function(e,n){n.code+="if(t.s(t."+s(e.n)+'("'+l(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(e.nodes,n),n.code+="});c.pop();}"},"^":function(e,n){n.code+="if(!t.s(t."+s(e.n)+'("'+l(e.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(e.nodes,n),n.code+="};"},">":d,"<":function(e,n){var A={partials:{},code:"",subs:{},inPartial:!0};t.walk(e.nodes,A);var i=n.partials[d(e,n)];i.subs=A.subs,i.partials=A.partials},$:function(e,n){var A={subs:{},code:"",partials:n.partials,prefix:e.n};t.walk(e.nodes,A),n.subs[e.n]=A.code,n.inPartial||(n.code+='t.sub("'+l(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=u('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+s(t.n)+'("'+l(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=u('"'+l(t.text)+'"')},"{":f,"&":f},t.walk=function(e,n){for(var A,i=0,o=e.length;i<o;i++)A=t.codegen[e[i].tag],A&&A(e[i],n);return n},t.parse=function(t,e,n){return n=n||{},i(t,"",[],n.sectionTags||[])},t.cache={},t.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},t.compile=function(e,n){n=n||{};var A=t.cacheKey(e,n),i=this.cache[A];if(i){var o=i.partials;for(var r in o)delete o[r].instance;return i}return i=this.generate(this.parse(this.scan(e,n.delimiters),e,n),e,n),this.cache[A]=i}}(e)},function(t,e,n){var A=n(12);A.Template=n(14).Template,A.template=A.Template,t.exports=A},function(t,e,n){!function(t){function e(t,e,n){var A;return e&&"object"==typeof e&&(void 0!==e[t]?A=e[t]:n&&e.get&&"function"==typeof e.get&&(A=e.get(t))),A}function n(t,e,n,A,i,o){function r(){}function a(){}r.prototype=t,a.prototype=t.subs;var c,l=new r;l.subs=new a,l.subsText={},l.buf="",A=A||{},l.stackSubs=A,l.subsText=o;for(c in e)A[c]||(A[c]=e[c]);for(c in A)l.subs[c]=A[c];i=i||{},l.stackPartials=i;for(c in n)i[c]||(i[c]=n[c]);for(c in i)l.partials[c]=i[c];return l}function A(t){return String(null===t||void 0===t?"":t)}function i(t){return t=A(t),s.test(t)?t.replace(o,"&").replace(r,"<").replace(a,">").replace(c,"'").replace(l,"""):t}t.Template=function(t,e,n,A){t=t||{},this.r=t.code||this.r,this.c=n,this.options=A||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,n){return""},v:i,t:A,render:function(t,e,n){return this.ri([t],e||{},n)},ri:function(t,e,n){return this.r(t,e,n)},ep:function(t,e){var A=this.partials[t],i=e[A.name];if(A.instance&&A.base==i)return A.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[t].base=i,A.subs){e.stackText||(e.stackText={});for(key in A.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);i=n(i,A.subs,A.partials,this.stackSubs,this.stackPartials,e.stackText)}return this.partials[t].instance=i,i},rp:function(t,e,n,A){var i=this.ep(t,n);return i?i.ri(e,n,A):""},rs:function(t,e,n){var A=t[t.length-1];if(!d(A))return void n(t,e,this);for(var i=0;i<A.length;i++)t.push(A[i]),n(t,e,this),t.pop()},s:function(t,e,n,A,i,o,r){var a;return(!d(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,n,A,i,o,r)),a=!!t,!A&&a&&e&&e.push("object"==typeof t?t:e[e.length-1]),a)},d:function(t,n,A,i){var o,r=t.split("."),a=this.f(r[0],n,A,i),c=this.options.modelGet,l=null;if("."===t&&d(n[n.length-2]))a=n[n.length-1];else for(var s=1;s<r.length;s++)o=e(r[s],a,c),void 0!==o?(l=a,a=o):a="";return!(i&&!a)&&(i||"function"!=typeof a||(n.push(l),a=this.mv(a,n,A),n.pop()),a)},f:function(t,n,A,i){for(var o=!1,r=null,a=!1,c=this.options.modelGet,l=n.length-1;l>=0;l--)if(r=n[l],o=e(t,r,c),void 0!==o){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,n,A)),o):!i&&""},ls:function(t,e,n,i,o){var r=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(A(t.call(e,i)),e,n)),this.options.delimiters=r,!1},ct:function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,n,A,i,o,r){var a,c=e[e.length-1],l=t.call(c);return"function"==typeof l?!!A||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(l,c,n,a.substring(i,o),r)):l},mv:function(t,e,n){var i=e[e.length-1],o=t.call(i);return"function"==typeof o?this.ct(A(o.call(i)),i,n):o},sub:function(t,e,n,A){var i=this.subs[t];i&&(this.activeSub=t,i(e,n,this,A),this.activeSub=!1)}};var o=/&/g,r=/</g,a=/>/g,c=/\'/g,l=/\"/g,s=/[&<>\"\']/,d=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){var A=n(13);t.exports=function(){var t=new A.Template({code:function(t,e,n){var A=this;return A.b(n=n||""),A.b('<div class="lindat-refbox lindat-loading">'),A.b("\n"+n),A.b(' <div class="lindat-refbox-top">'),A.b("\n"+n),A.b(' <div class="lindat-refbox-header">'),A.b("\n"+n),A.b(' <div class="lindat-icon lindat-header-icon lindat-icon-quote"></div>'),A.b("\n"+n),A.b(" <h3>"),A.b(A.v(A.f("cite",t,e,0))),A.b("</h3>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-formats" refbox-formats></div>'),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-body">'),A.b("\n"+n),A.b(' <div class="lindat-refbox-text" refbox-text>'),A.b("\n"+n),A.b(' <div class="lindat-loader">'),A.b("\n"+n),A.b(" <div></div>"),A.b("\n"+n),A.b(" <div></div>"),A.b("\n"+n),A.b(" <div></div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-copy-wrapper">'),A.b("\n"+n),A.b(' <button class="lindat-icon lindat-icon-copy lindat-refbox-copy" refbox-copy-button></button>'),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-format lindat-flexcol" style="display: none;">'),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-footer">'),A.b("\n"+n),A.b(' <div class="lindat-refbox-integration" refbox-integrations>'),A.b("\n"+n),A.b(' <div class="lindat-refbox-header">'),A.b("\n"+n),A.b(' <div class="lindat-icon lindat-header-icon lindat-icon-puzzle"></div>'),A.b("\n"+n),A.b(" <h3>"),A.b(A.v(A.f("services",t,e,0))),A.b("</h3>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-services" refbox-services>'),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-header">'),A.b("\n"+n),A.b(' <div class="lindat-icon lindat-header-icon lindat-icon-share"></div>'),A.b("\n"+n),A.b(" <h3>"),A.b(A.v(A.f("share",t,e,0))),A.b("</h3>"),A.b("\n"+n),A.b(' <div class="lindat-refbox-shares" refbox-shares></div>'),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b(" </div>"),A.b("\n"+n),A.b("</div>"),A.b("\n"),A.fl()},partials:{},subs:{}},'<div class="lindat-refbox lindat-loading">\n <div class="lindat-refbox-top">\n <div class="lindat-refbox-header">\n <div class="lindat-icon lindat-header-icon lindat-icon-quote"></div>\n <h3>{{cite}}</h3>\n <div class="lindat-refbox-formats" refbox-formats></div>\n </div>\n <div class="lindat-refbox-body">\n <div class="lindat-refbox-text" refbox-text>\n <div class="lindat-loader">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n <div class="lindat-refbox-copy-wrapper">\n <button class="lindat-icon lindat-icon-copy lindat-refbox-copy" refbox-copy-button></button>\n </div>\n </div>\n <div class="lindat-format lindat-flexcol" style="display: none;">\n </div>\n </div>\n <div class="lindat-refbox-footer">\n <div class="lindat-refbox-integration" refbox-integrations>\n <div class="lindat-refbox-header">\n <div class="lindat-icon lindat-header-icon lindat-icon-puzzle"></div>\n <h3>{{services}}</h3>\n </div>\n <div class="lindat-refbox-services" refbox-services>\n </div>\n </div>\n <div class="lindat-refbox-header">\n <div class="lindat-icon lindat-header-icon lindat-icon-share"></div>\n <h3>{{share}}</h3>\n <div class="lindat-refbox-shares" refbox-shares></div>\n </div>\n </div>\n</div>\n',A);
return t.render.apply(t,arguments)}},function(t,e,n){function A(t,e){for(var n=0;n<t.length;n++){var A=t[n],i=d[A.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](A.parts[o]);for(;o<A.parts.length;o++)i.parts.push(a(A.parts[o],e))}else{for(var r=[],o=0;o<A.parts.length;o++)r.push(a(A.parts[o],e));d[A.id]={id:A.id,refs:1,parts:r}}}}function i(t){for(var e=[],n={},A=0;A<t.length;A++){var i=t[A],o=i[0],r=i[1],a=i[2],c=i[3],l={css:r,media:a,sourceMap:c};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}return e}function o(){var t=document.createElement("style"),e=p();return t.type="text/css",e.appendChild(t),t}function r(){var t=document.createElement("link"),e=p();return t.rel="stylesheet",e.appendChild(t),t}function a(t,e){var n,A,i;if(e.singleton){var a=g++;n=h||(h=o()),A=c.bind(null,n,a,!1),i=c.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=r(),A=s.bind(null,n),i=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=o(),A=l.bind(null,n),i=function(){n.parentNode.removeChild(n)});return A(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;A(t=e)}else i()}}function c(t,e,n,A){var i=n?"":A.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function l(t,e){var n=e.css,A=e.media;e.sourceMap;if(A&&t.setAttribute("media",A),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function s(t,e){var n=e.css,A=(e.media,e.sourceMap);A&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(A))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var d={},f=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},u=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=f(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,g=0;t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=u());var n=i(t);return A(n,e),function(t){for(var o=[],r=0;r<n.length;r++){var a=n[r],c=d[a.id];c.refs--,o.push(c)}if(t){var l=i(t);A(l,e)}for(var r=0;r<o.length;r++){var c=o[r];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete d[c.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var A=n(10);"string"==typeof A&&(A=[[t.id,A,""]]);n(16)(A,{});A.locals&&(t.exports=A.locals)},function(t,e){t.exports="data:application/octet-stream;base64,AAEAAAALAIAAAwAwT1MvMgiVB8gAAAC8AAAAYGNtYXDUCtNyAAABHAAAAHxnYXNwAAAAEAAAAZgAAAAIZ2x5ZpZF+bYAAAGgAAAHIGhlYWQEzXLUAAAIwAAAADZoaGVhA0wBuQAACPgAAAAkaG10eA7HAf8AAAkcAAAALGxvY2EGTAfyAAAJSAAAABhtYXhwABEApAAACWAAAAAgbmFtZSOxHkQAAAmAAAAB2nBvc3QAAwAAAAALXAAAACAAAwGZAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADx4AGs/60AUwGsAFMAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAYAAAABQAEAADAAQAAQAg8ILwxfDU8Q3xLvHg//3//wAAAAAAIPCB8MXw1PEN8S7x4P/9//8AAf/jD4MPQQ8zDvsO2w4qAAMAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgBJABgBbgE9ADkATgAAJQYHNjcGByYjIgcGFRQXJicmJwYVFBciJzEUFxYXBiMiJxYXFjMGIy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HdpZHRoPSI4OTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbD0iI2ZiZWVkNSIgZD0iTTEyOCA3NjhoMjU2djY0SDEyOHYtNjR6IG0zMjAtMzg0SDEyOHY2NGgzMjB2LTY0eiBtMTI4IDE5MlY0NDhMMzg0IDY0MGwxOTIgMTkyVjcwNGgzMjBWNTc2SDU3NnogbS0yODgtNjRIMTI4djY0aDE2MHYtNjR6TTEyOCA3MDRoMTYwdi02NEgxMjh2NjR6IG01NzYgNjRoNjR2MTI4Yy0xIDE4LTcgMzMtMTkgNDVzLTI3IDE4LTQ1IDE5SDY0Yy0zNSAwLTY0LTI5LTY0LTY0VjE5MmMwLTM1IDI5LTY0IDY0LTY0aDE5MkMyNTYgNTcgMzEzIDAgMzg0IDBzMTI4IDU3IDEyOCAxMjhoMTkyYzM1IDAgNjQgMjkgNjQgNjR2MzIwaC02NFYzMjBINjR2NTc2aDY0MFY3Njh6TTEyOCAyNTZoNTEyYzAtMzUtMjktNjQtNjQtNjRoLTY0Yy0zNSAwLTY0LTI5LTY0LTY0cy0yOS02NC02NC02NC02NCAyOS02NCA2NC0yOSA2NC02NCA2NGgtNjRjLTM1IDAtNjQgMjktNjQgNjR6IiAvPgo8L3N2Zz4K"},function(t,e,n){function A(t,e){return t.replace(/\{([^\}]+)\}/g,function(t,n){return n in e?encodeURIComponent(e[n]):t})}function i(t){function e(){n&&(n=!1,t.hide(),r(document).off("click.refbox"))}var n=!1;return r("<button></button>").addClass("lindat-button lindat-dropdown-toggle").attr("type","button").append(r("<span></span>").addClass("lindat-dropdown-caret")).click(function(){n?e():(setTimeout(function(){r(document).on("click.refbox",e)}),t.show(),n=!0)})}function o(t,e){var A=this;if(e||(e={}),!(A instanceof o))return new o(t,e);["handle","title"].forEach(function(n){if(!e[n]){var i=t.getAttribute(n);if(t.removeAttribute(n),!i)throw new Error("RefBox: Option '"+n+"' not specified.");A[n]=i}});var i=n(15);A.body=r(i({cite:"Pro citaci použijte následující text, nebo export do připraveného formátu:",services:"Tento záznam je k dispozici v následujících službách:",share:"Sdílet:"})),A.formatsContainer=A.body.find("[refbox-formats]"),A.sharesContainer=A.body.find("[refbox-shares]"),A.integrationContainer=A.body.find("[refbox-integrations]"),Object.keys(e).forEach(function(t){A[t]=e[t]}),A.uri="http://hdl.handle.net/"+A.handle,A.requestQueue=[],A.text=A.body.find("[refbox-text]"),A.copyButton=A.body.find("[refbox-copy-button]"),A.container=r(t).empty().append(A.body),A.copiedTooltip=r('<span class="lindat-tooltip" style="display: none">Copied!</span>').appendTo(A.container),A.init()}n(17);var r=n(1),a=n(3),c=[{name:"facebook",popup:{url:"http://www.facebook.com/sharer/sharer.php?u={uri}",width:600,height:500}},{name:"twitter",popup:{url:"http://twitter.com/intent/tweet?url={uri}&text={title}",width:600,height:450}},{name:"google-plus",popup:{url:"https://plus.google.com/share?url={uri}",width:700,height:500}}];o.prototype.init=function(){function t(){o.empty().html("<a href='"+n.uri+"'>"+n.uri+"</a>")}function e(t){var e=r(t.trigger).offset(),A=r(t.trigger).outerHeight(!0);n.copiedTooltip.css({top:e.top+A,left:e.left}),n.copiedTooltip.fadeIn("slow"),setTimeout(function(){n.copiedTooltip.fadeOut("slow")},1e3),t.clearSelection()}var n=this,o=n.text;n.copyButton;n.fetchInitial().done(function(t){t.title&&(n.title=t.title);var l=t.exportFormats.exportFormat;if(l&&l.length>0&&l.forEach(function(t){var A=r("<a></a>").attr("href",t.url).on("click",function(A){A.preventDefault(),n.request(t).done(function(A){if(A.split("\n").length<50){var i=n.copyButton.clone();n.body.find(".lindat-format").empty().append(r("<h3 class='lindat-flexrow' style='padding-top: 6px;'>").text(t.name)).append(r("<div class='lindat-flexrow'>").append(r("<div class='lindat-format-content'>").append(r("<pre>").text(A))).append(r("<div class='lindat-format-copy'>").append(i))).slideToggle();var o=new a(i.get(0),{text:function(t){return A}});o.on("success",e),o.on("error",function(e){n.modal(n.title,A,t.name)})}else n.modal(n.title,A,t.name)})}).text(t.name);n.formatsContainer.append(A)}),t.displayText){o.empty().append(t.displayText);var s=new a(n.copyButton.get(0),{text:function(t){return o.text()}});s.on("success",e),s.on("error",function(t){n.modal(n.title,o.text())}),n.body.removeClass("lindat-loading")}var d=t.featuredServices.featuredService;if(d&&d.length>0){var f=n.integrationContainer.find("[refbox-services]");d.forEach(function(t){var e=t.links,n=r("<a></a>").addClass("lindat-button").attr("target","_blank").attr("title",t.description).attr("href",t.url).text(t.name);if(e&&e.entry.length>0){var A=r("<ul></ul>").addClass("lindat-dropdown-menu"),o=r("<div></div>").addClass("lindat-dropdown").append(n).append(i(A)).append(A);e.entry.forEach(function(t){A.append(r("<li></li>").append(r("<a></a>").attr("target","_blank").attr("href",t.value).text(t.key)))}),f.append(o)}else f.append(n)})}else n.integrationContainer.remove();c.forEach(function(t){var e=t.popup,i=A(e.url,n),o=r("<a></a>").attr("class","lindat-icon lindat-icon-"+t.name+" lindat-share-"+t.name).attr("href",i).on("click",function(t){t.preventDefault(),window.open(i,n.title,"height:"+e.height+",width:"+e.width)});n.sharesContainer.append(o)})}).fail(t)},o.prototype.ajax=function(){var t=this,e=r.ajax.apply(r,arguments);return t.requestQueue.push(e),e.always(function(){var n=t.requestQueue.indexOf(e);n!==-1&&t.requestQueue.splice(n,1)})},o.prototype.request=function(t){var e=r.Deferred();return this.ajax(t.url,{dataType:t.dataType,cache:!0}).done(function(n){if("xml"===t.dataType){var A=r(n),i=A.find("error");if(i.length)e.reject();else{var o=A.find(t.name);e.resolve(o.length?o.html():A)}}else e.resolve(n.value)}).fail(e.reject),e},o.prototype.fetchInitial=function(){var t=this.rest+"/handle/"+this.handle+"/refbox";return this.ajax(t,{dataType:"json",cache:!0})},o.prototype.modal=function(t,e,n){function A(t){return t!==!0&&l?void(l=!1):(d.modalInstance=null,u.removeClass(f),o.remove(),r(document).off(".lindat"),void r(window).off(".lindat