astroport/doc/Fat protocols aren't new W.../donate_data/more-facets.js

73 lines
41 KiB
JavaScript

// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=62)}({0:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=window,i=(r.$,r.jQuery)},1:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="localhost"===location.hostname||"www-"===location.host.substr(0,4)||"cat-"===location.host.substr(0,4)||"ia-petabox-review-"===location.host.substr(0,18)||"58-review-"===location.host.substr(0,10)?console.log.bind(console):function(){}},11:function(t,e,n){"use strict";function r(t){for(var e="".concat(t).split("."),n=e[0],r=e.length>1?".".concat(e[1]):"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");return n+r}n.d(e,"a",(function(){return r}))},2:function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,u,"next",t)}function u(t){i(a,r,o,s,u,"throw",t)}s(void 0)}))}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function d(t,e,n){return(d=h()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function p(t){var e="function"==typeof Map?new Map:void 0;return(p=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return d(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,t)})(t)}function v(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function m(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function b(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return r})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return o})),n.d(e,"k",(function(){return m}))},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return at})),n.d(e,"b",(function(){return it})),n.d(e,"c",(function(){return X})),n.d(e,"d",(function(){return z})),n.d(e,"e",(function(){return Y}));var r=n(2),i=new WeakMap,o=function(t){return"function"==typeof t&&i.has(t)},a=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,s=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}},u={},c={},l="{{lit-".concat(String(Math.random()).slice(2),"}}"),f="\x3c!--".concat(l,"--\x3e"),h=new RegExp("".concat(l,"|").concat(f)),d=function t(e,n){Object(r.a)(this,t),this.parts=[],this.element=n;for(var i=[],o=[],a=document.createTreeWalker(n.content,133,null,!1),s=0,u=-1,c=0,f=e.strings,d=e.values.length;c<d;){var v=a.nextNode();if(null!==v){if(u++,1===v.nodeType){if(v.hasAttributes()){for(var b=v.attributes,g=b.length,_=0,w=0;w<g;w++)p(b[w].name,"$lit$")&&_++;for(;_-- >0;){var S=f[c],k=m.exec(S)[2],O=k.toLowerCase()+"$lit$",x=v.getAttribute(O);v.removeAttribute(O);var j=x.split(h);this.parts.push({type:"attribute",index:u,name:k,strings:j}),c+=j.length-1}}"TEMPLATE"===v.tagName&&(o.push(v),a.currentNode=v.content)}else if(3===v.nodeType){var P=v.data;if(P.indexOf(l)>=0){for(var C=v.parentNode,N=P.split(h),A=N.length-1,E=0;E<A;E++){var T=void 0,V=N[E];if(""===V)T=y();else{var R=m.exec(V);null!==R&&p(R[2],"$lit$")&&(V=V.slice(0,R.index)+R[1]+R[2].slice(0,-"$lit$".length)+R[3]),T=document.createTextNode(V)}C.insertBefore(T,v),this.parts.push({type:"node",index:++u})}""===N[A]?(C.insertBefore(y(),v),i.push(v)):v.data=N[A],c+=A}}else if(8===v.nodeType)if(v.data===l){var M=v.parentNode;null!==v.previousSibling&&u!==s||(u++,M.insertBefore(y(),v)),s=u,this.parts.push({type:"node",index:u}),null===v.nextSibling?v.data="":(i.push(v),u--),c++}else for(var U=-1;-1!==(U=v.data.indexOf(l,U+1));)this.parts.push({type:"node",index:-1}),c++}else a.currentNode=o.pop()}for(var z=0,F=i;z<F.length;z++){var q=F[z];q.parentNode.removeChild(q)}},p=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},v=function(t){return-1!==t.index},y=function(){return document.createComment("")},m=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,b=function(){function t(e,n,i){Object(r.a)(this,t),this.__parts=[],this.template=e,this.processor=n,this.options=i}return Object(r.b)(t,[{key:"update",value:function(t){var e=0,n=!0,r=!1,i=void 0;try{for(var o,a=this.__parts[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;void 0!==s&&s.setValue(t[e]),e++}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}var u=!0,c=!1,l=void 0;try{for(var f,h=this.__parts[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var d=f.value;void 0!==d&&d.commit()}}catch(t){c=!0,l=t}finally{try{u||null==h.return||h.return()}finally{if(c)throw l}}}},{key:"_clone",value:function(){for(var t,e=a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,o=document.createTreeWalker(e,133,null,!1),s=0,u=0,c=o.nextNode();s<i.length;)if(t=i[s],v(t)){for(;u<t.index;)u++,"TEMPLATE"===c.nodeName&&(n.push(c),o.currentNode=c.content),null===(c=o.nextNode())&&(o.currentNode=n.pop(),c=o.nextNode());if("node"===t.type){var l=this.processor.handleTextExpression(this.options);l.insertAfterNode(c.previousSibling),this.__parts.push(l)}else{var f;(f=this.__parts).push.apply(f,Object(r.c)(this.processor.handleAttributeExpressions(c,t.name,t.strings,this.options)))}s++}else this.__parts.push(void 0),s++;return a&&(document.adoptNode(e),customElements.upgrade(e)),e}}]),t}(),g=" ".concat(l," "),_=function(){function t(e,n,i,o){Object(r.a)(this,t),this.strings=e,this.values=n,this.type=i,this.processor=o}return Object(r.b)(t,[{key:"getHTML",value:function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var i=this.strings[r],o=i.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===i.indexOf("--\x3e",o+1);var a=m.exec(i);e+=null===a?i+(n?g:f):i.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+l}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),w=function(t){return null===t||!("object"===Object(r.h)(t)||"function"==typeof t)},S=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},k=function(){function t(e,n,i){Object(r.a)(this,t),this.dirty=!0,this.element=e,this.name=n,this.strings=i,this.parts=[];for(var o=0;o<i.length-1;o++)this.parts[o]=this._createPart()}return Object(r.b)(t,[{key:"_createPart",value:function(){return new O(this)}},{key:"_getValue",value:function(){for(var t=this.strings,e=t.length-1,n="",r=0;r<e;r++){n+=t[r];var i=this.parts[r];if(void 0!==i){var o=i.value;if(w(o)||!S(o))n+="string"==typeof o?o:String(o);else{var a=!0,s=!1,u=void 0;try{for(var c,l=o[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;n+="string"==typeof f?f:String(f)}}catch(t){s=!0,u=t}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}}}}return n+=t[e]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),t}(),O=function(){function t(e){Object(r.a)(this,t),this.value=void 0,this.committer=e}return Object(r.b)(t,[{key:"setValue",value:function(t){t===u||w(t)&&t===this.value||(this.value=t,o(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;o(this.value);){var t=this.value;this.value=u,t(this)}this.value!==u&&this.committer.commit()}}]),t}(),x=function(){function t(e){Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,this.options=e}return Object(r.b)(t,[{key:"appendInto",value:function(t){this.startNode=t.appendChild(y()),this.endNode=t.appendChild(y())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=y()),t.__insert(this.endNode=y())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=y()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;o(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=u,t(this)}var e=this.__pendingValue;e!==u&&(w(e)?e!==this.value&&this.__commitText(e):e instanceof _?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):S(e)?this.__commitIterable(e):e===c?(this.value=c,this.clear()):this.__commitText(e))}},{key:"__insert",value:function(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"__commitNode",value:function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}},{key:"__commitText",value:function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}},{key:"__commitTemplateResult",value:function(t){var e=this.options.templateFactory(t);if(this.value instanceof b&&this.value.template===e)this.value.update(t.values);else{var n=new b(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(e){Array.isArray(this.value)||(this.value=[],this.clear());var n,r=this.value,i=0,o=!0,a=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;void 0===(n=r[i])&&(n=new t(this.options),r.push(n),0===i?n.appendIntoPart(this):n.insertAfterPart(r[i-1])),n.setValue(l),n.commit(),i++}}catch(t){a=!0,s=t}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}i<r.length&&(r.length=i,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;s(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),j=function(){function t(e,n,i){if(Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=n,this.strings=i}return Object(r.b)(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;o(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=u,t(this)}if(this.__pendingValue!==u){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=u}}}]),t}(),P=function(t){function e(t,n,i){var o;return Object(r.a)(this,e),(o=Object(r.e)(this,Object(r.f)(e).call(this,t,n,i))).single=2===i.length&&""===i[0]&&""===i[1],o}return Object(r.d)(e,t),Object(r.b)(e,[{key:"_createPart",value:function(){return new C(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Object(r.g)(Object(r.f)(e.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),e}(k),C=function(t){function e(){return Object(r.a)(this,e),Object(r.e)(this,Object(r.f)(e).apply(this,arguments))}return Object(r.d)(e,t),e}(O),N=!1;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/try{var A={get capture(){return N=!0,!1}};window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(t){}var E=function(){function t(e,n,i){var o=this;Object(r.a)(this,t),this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=n,this.eventContext=i,this.__boundHandleEvent=function(t){return o.handleEvent(t)}}return Object(r.b)(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;o(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=u,t(this)}if(this.__pendingValue!==u){var e=this.__pendingValue,n=this.value,r=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),i=null!=e&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=T(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=u}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),T=function(t){return t&&(N?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)},V=new(function(){function t(){Object(r.a)(this,t)}return Object(r.b)(t,[{key:"handleAttributeExpressions",value:function(t,e,n,r){var i=e[0];return"."===i?new P(t,e.slice(1),n).parts:"@"===i?[new E(t,e.slice(1),r.eventContext)]:"?"===i?[new j(t,e.slice(1),n)]:new k(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new x(t)}}]),t}());
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
function R(t){var e=M.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},M.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var r=t.strings.join(l);return void 0===(n=e.keyString.get(r))&&(n=new d(t,t.getTemplateElement()),e.keyString.set(r,n)),e.stringsArray.set(t.strings,n),n}var M=new Map,U=new WeakMap;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");var z=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new _(t,n,"html",V)};function F(t,e){for(var n=t.element.content,r=t.parts,i=document.createTreeWalker(n,133,null,!1),o=$(r),a=r[o],s=-1,u=0,c=[],l=null;i.nextNode();){s++;var f=i.currentNode;for(f.previousSibling===l&&(l=null),e.has(f)&&(c.push(f),null===l&&(l=f)),null!==l&&u++;void 0!==a&&a.index===s;)a.index=null!==l?-1:a.index-u,a=r[o=$(r,o)]}c.forEach((function(t){return t.parentNode.removeChild(t)}))}var q=function(t){for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},$=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e+1;n<t.length;n++){var r=t[n];if(v(r))return n}return-1};var I=function(t,e){return"".concat(t,"--").concat(e)},B=!0;void 0===window.ShadyCSS?B=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),B=!1);var L=function(t){return function(e){var n=I(e.type,t),r=M.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},M.set(n,r));var i=r.stringsArray.get(e.strings);if(void 0!==i)return i;var o=e.strings.join(l);if(void 0===(i=r.keyString.get(o))){var a=e.getTemplateElement();B&&window.ShadyCSS.prepareTemplateDom(a,t),i=new d(e,a),r.keyString.set(o,i)}return r.stringsArray.set(e.strings,i),i}},H=["html","svg"],D=new Set,W=function(t,e,n){D.add(t);var r=n?n.element:document.createElement("template"),i=e.querySelectorAll("style"),o=i.length;if(0!==o){for(var a=document.createElement("style"),s=0;s<o;s++){var u=i[s];u.parentNode.removeChild(u),a.textContent+=u.textContent}!function(t){H.forEach((function(e){var n=M.get(I(e,t));void 0!==n&&n.keyString.forEach((function(t){var e=t.element.content,n=new Set;Array.from(e.querySelectorAll("style")).forEach((function(t){n.add(t)})),F(t,n)}))}))}(t);var c=r.content;n?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.element.content,i=t.parts;if(null!=n)for(var o=document.createTreeWalker(r,133,null,!1),a=$(i),s=0,u=-1;o.nextNode();){u++;var c=o.currentNode;for(c===n&&(s=q(e),n.parentNode.insertBefore(e,n));-1!==a&&i[a].index===u;){if(s>0){for(;-1!==a;)i[a].index+=s,a=$(i,a);return}a=$(i,a)}}else r.appendChild(e)}(n,a,c.firstChild):c.insertBefore(a,c.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);var l=c.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)e.insertBefore(l.cloneNode(!0),e.firstChild);else if(n){c.insertBefore(a,c.firstChild);var f=new Set;f.add(a),F(n,f)}}else window.ShadyCSS.prepareTemplateStyles(r,t)};window.JSCompiler_renameProperty=function(t,e){return t};var J={toAttribute:function(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},Z=function(t,e){return e!==t&&(e==e||t==t)},G={attribute:!0,type:String,converter:J,reflect:!1,hasChanged:Z},Q=Promise.resolve(!0),K=function(t){function e(){var t;return Object(r.a)(this,e),(t=Object(r.e)(this,Object(r.f)(e).call(this)))._updateState=0,t._instanceProperties=void 0,t._updatePromise=Q,t._hasConnectedResolver=void 0,t._changedProperties=new Map,t._reflectingProperties=void 0,t.initialize(),t}var n;return Object(r.d)(e,t),Object(r.b)(e,[{key:"initialize",value:function(){this._saveInstanceProperties(),this._requestUpdate()}},{key:"_saveInstanceProperties",value:function(){var t=this;this.constructor._classProperties.forEach((function(e,n){if(t.hasOwnProperty(n)){var r=t[n];delete t[n],t._instanceProperties||(t._instanceProperties=new Map),t._instanceProperties.set(n,r)}}))}},{key:"_applyInstanceProperties",value:function(){var t=this;this._instanceProperties.forEach((function(e,n){return t[n]=e})),this._instanceProperties=void 0}},{key:"connectedCallback",value:function(){this._updateState=32|this._updateState,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(t,e,n){e!==n&&this._attributeToProperty(t,n)}},{key:"_propertyToAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,r=this.constructor,i=r._attributeNameForProperty(t,n);if(void 0!==i){var o=r._propertyValueToAttribute(e,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}},{key:"_attributeToProperty",value:function(t,e){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){var i=n._classProperties.get(r)||G;this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,i),this._updateState=-17&this._updateState}}}},{key:"_requestUpdate",value:function(t,e){var n=!0;if(void 0!==t){var r=this.constructor,i=r._classProperties.get(t)||G;r._valueHasChanged(this[t],e,i.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,i))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}},{key:"requestUpdate",value:function(t,e){return this._requestUpdate(t,e),this.updateComplete}},{key:"_enqueueUpdate",value:(n=Object(r.j)(regeneratorRuntime.mark((function t(){var e,n,r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._updateState=4|this._updateState,r=this._updatePromise,this._updatePromise=new Promise((function(t,r){e=t,n=r})),t.prev=3,t.next=6,r;case 6:t.next=10;break;case 8:t.prev=8,t.t0=t.catch(3);case 10:if(this._hasConnected){t.next=13;break}return t.next=13,new Promise((function(t){return o._hasConnectedResolver=t}));case 13:if(t.prev=13,null==(i=this.performUpdate())){t.next=18;break}return t.next=18,i;case 18:t.next=23;break;case 20:t.prev=20,t.t1=t.catch(13),n(t.t1);case 23:e(!this._hasRequestedUpdate);case 24:case"end":return t.stop()}}),t,this,[[3,8],[13,20]])}))),function(){return n.apply(this,arguments)})},{key:"performUpdate",value:function(){this._instanceProperties&&this._applyInstanceProperties();var t=!1,e=this._changedProperties;try{(t=this.shouldUpdate(e))&&this.update(e)}catch(e){throw t=!1,e}finally{this._markUpdated()}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}},{key:"_markUpdated",value:function(){this._changedProperties=new Map,this._updateState=-5&this._updateState}},{key:"_getUpdateComplete",value:function(){return this._updatePromise}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((function(t,n){return e._propertyToAttribute(n,e[n],t)})),this._reflectingProperties=void 0)}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}},{key:"_hasConnected",get:function(){return 32&this._updateState}},{key:"_hasRequestedUpdate",get:function(){return 4&this._updateState}},{key:"hasUpdated",get:function(){return 1&this._updateState}},{key:"updateComplete",get:function(){return this._getUpdateComplete()}}],[{key:"_ensureClassProperties",value:function(){var t=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((function(e,n){return t._classProperties.set(n,e)}))}}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;if(this._ensureClassProperties(),this._classProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"===Object(r.h)(t)?Symbol():"__".concat(t);Object.defineProperty(this.prototype,t,{get:function(){return this[n]},set:function(e){var r=this[t];this[n]=e,this._requestUpdate(t,r)},configurable:!0,enumerable:!0})}}},{key:"finalize",value:function(){var t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var e=this.properties,n=[].concat(Object(r.c)(Object.getOwnPropertyNames(e)),Object(r.c)("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])),i=!0,o=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;this.createProperty(c,e[c])}}catch(t){o=!0,a=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}}},{key:"_attributeNameForProperty",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z;return n(t,e)}},{key:"_propertyValueFromAttribute",value:function(t,e){var n=e.type,r=e.converter||J,i="function"==typeof r?r:r.fromAttribute;return i?i(t,n):t}},{key:"_propertyValueToAttribute",value:function(t,e){if(void 0!==e.reflect){var n=e.type,r=e.converter;return(r&&r.toAttribute||J.toAttribute)(t,n)}}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this._classProperties.forEach((function(n,r){var i=t._attributeNameForProperty(r,n);void 0!==i&&(t._attributeToPropertyMap.set(i,r),e.push(i))})),e}}]),e}(Object(r.i)(HTMLElement));K.finalized=!0;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
var X=function(t){return function(e){return"function"==typeof e?function(t,e){return window.customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){window.customElements.define(t,e)}}}(t,e)}};function Y(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):function(t,e){return"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}:Object.assign({},e,{finisher:function(n){n.createProperty(e.key,t)}})}(t,e)}}var tt="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),nt=function(){function t(e,n){if(Object(r.a)(this,t),n!==et)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}return Object(r.b)(t,[{key:"toString",value:function(){return this.cssText}},{key:"styleSheet",get:function(){return void 0===this._styleSheet&&(tt?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}}]),t}(),rt=function(t){if(t instanceof nt)return t.cssText;if("number"==typeof t)return t;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(t,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))},it=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=n.reduce((function(e,n,r){return e+rt(n)+t[r+1]}),t[0]);return new nt(i,et)};(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");var ot=function(t){return t.flat?t.flat(1/0):function t(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=e.length;r<i;r++){var o=e[r];Array.isArray(o)?t(o,n):n.push(o)}return n}(t)},at=function(t){function e(){return Object(r.a)(this,e),Object(r.e)(this,Object(r.f)(e).apply(this,arguments))}return Object(r.d)(e,t),Object(r.b)(e,[{key:"initialize",value:function(){Object(r.g)(Object(r.f)(e.prototype),"initialize",this).call(this),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}},{key:"createRenderRoot",value:function(){return this.attachShadow({mode:"open"})}},{key:"adoptStyles",value:function(){var t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?tt?this.renderRoot.adoptedStyleSheets=t.map((function(t){return t.styleSheet})):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((function(t){return t.cssText})),this.localName))}},{key:"connectedCallback",value:function(){Object(r.g)(Object(r.f)(e.prototype),"connectedCallback",this).call(this),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}},{key:"update",value:function(t){var n=this;Object(r.g)(Object(r.f)(e.prototype),"update",this).call(this,t);var i=this.render();i instanceof _&&this.constructor.render(i,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((function(t){var e=document.createElement("style");e.textContent=t.cssText,n.renderRoot.appendChild(e)})))}},{key:"render",value:function(){}}],[{key:"finalize",value:function(){Object(r.g)(Object(r.f)(e),"finalize",this).call(this),this._styles=this.hasOwnProperty(JSCompiler_renameProperty("styles",this))?this._getUniqueStyles():this._styles||[]}},{key:"_getUniqueStyles",value:function(){var t=this.styles,e=[];Array.isArray(t)?ot(t).reduceRight((function(t,e){return t.add(e),t}),new Set).forEach((function(t){return e.unshift(t)})):t&&e.push(t);return e}}]),e}(K);at.finalized=!0,at.render=function(t,e,n){if(!n||"object"!==Object(r.h)(n)||!n.scopeName)throw new Error("The `scopeName` option is required.");var i=n.scopeName,o=U.has(e),a=B&&11===e.nodeType&&!!e.host,u=a&&!D.has(i),c=u?document.createDocumentFragment():e;if(function(t,e,n){var r=U.get(e);void 0===r&&(s(e,e.firstChild),U.set(e,r=new x(Object.assign({templateFactory:R},n))),r.appendInto(e)),r.setValue(t),r.commit()}(t,c,Object.assign({templateFactory:L(i)},n)),u){var l=U.get(c);U.delete(c);var f=l.value instanceof b?l.value.template:void 0;W(i,c,f),s(e,e.firstChild),e.appendChild(c),U.set(e,l)}!o&&a&&window.ShadyCSS.styleElement(e.host)}},62:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(1),o=n(7),a=n(11),s=n(3);function u(t){return(u="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})(t)}function c(){var t=g(['\n.fatable { /* xxx pull these rules out of archive.less if decide to pull "no JS" facets page.. */\n /**/-webkit-column-width: 250px;/*android*/\n /**/ -moz-column-width: 250px;/*firefox*/\n /**/ column-width: 250px;/*SUPERGREAT CSS3 FEATURE*/\n font-size: 12px;\n}\n.farow {\n width: 100%;\n display: inline-block;\n margin-bottom: 0;\n font-weight: 500;\n}\n.farow.hidden {\n display: none;\n}\n.farow .facell a {\n word-break: break-word;\n}\n.facell.fin {\n background-color: rgb(252, 194, 76); /*@yellow-em*/\n color: black;\n}\n.facell:first-child {\n float: left;\n width: 20px;\n}\n.facell:nth-child(2){\n text-align: right;\n float: right;\n}\n.facell:last-child {\n .breaker-breaker;\n display: flex; /*because want to lay facets cells out in one direction so that checkbox and facet cells value can in two different column*/\n}\n\n#morf-paging {\n margin-top:15px;\n margin-bottom:15px;\n background-color:#efefef;\n text-align:right;\n font-size:13px;\n padding-top:7px;\n padding-bottom:7px;\n padding-right:15px;\n word-spacing: 5px;\n color:#4a4a4a;\n}\n#morf-paging .topinblock {\n background-color: #fafafa;\n padding:7px 5px;\n margin-top:-7px;\n margin-bottom:-7px;\n}\n\n.loading {\n font-style: italic;\n margin: 25px;\n text-align: center;\n}\n.loading img {\n width: 25px;\n}\n']);return c=function(){return t},t}function l(){var t=g(['\n<link rel="stylesheet" href="/includes/build/css/archive.min.css">\n <div id="morf-page">\n <form>\n <div class="fatable">\n ',"\n </div>\n ",'\n <div id="morf-paging">\n ','\n </div>\n <center>\n <input class="btn ','" type="button"\n value="Apply your filters" @click='," />\n </center>\n </form>\n </div>"]);return l=function(){return t},t}function f(){var t=g(['\n <a href="#','" @click="','" data-action="pager_next">\n <span class="iconochive-right-solid" />\n </a>']);return f=function(){return t},t}function h(){var t=g([" "]);return h=function(){return t},t}function d(){var t=g(['<a href="#','" @click="','">',"</a>"]);return d=function(){return t},t}function p(){var t=g(['<div class="topinblock">',"</div>"]);return p=function(){return t},t}function v(){var t=g(['<div class="loading">loading filters... <img alt="" src="/images/loading.gif"/></div>']);return v=function(){return t},t}function y(){var t=g(["",""]);return y=function(){return t},t}function m(){var t=g(['<a href="/details/','">',"</a>"]);return m=function(){return t},t}function b(){var t=g(['\n <div class="','">\n <div class="facell">\n <input\n type="checkbox"\n ?checked=','\n name="','"\n value="','"\n />\n </div>\n <div class="facell">\n ','\n </div>\n <div class="facell">\n ',"\n </div>\n </div>"]);return b=function(){return t},t}function g(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var x=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=_(this,w(e).call(this))).cons(),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(e,t),k(e,null,[{key:"click",value:function(t){var e=Object(r.a)(t.currentTarget),n=e.attr("href"),i=e.data("switchtoalpha");i&&"-"===i[0]?r.a.cookie(i.substr(1).concat("A2Z"),1,{path:"/",expires:1}):i&&r.a.cookie(i.concat("A2Z"),null,{path:"/",expires:1});var o="morf-modal",a="#".concat(o),s='\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header modal-header-std">\n <button type="button" class="close" data-dismiss="modal" aria-hidden="true">\n <span class="iconochive-remove-circle"></span>\n </button>\n <h2 class="modal-title"></h2>\n </div>\n <div class="modal-body">\n <more-facets href="'.concat(n,'"></more-facets>\n </div>\n </div>\n </div>');return Object(r.a)(a).length||Object(r.a)("body").prepend(Object(r.a)('<div id="'.concat(o,'" class="modal fade" role="dialog" aria-hidden="true"/>'))),Object(r.a)(a).html(s).modal("show"),!1}},{key:"properties",get:function(){return{mounted:{type:Boolean},page:{type:Number},href:{type:String},morf:{type:String},hdr:{type:String},options:{type:Array},submit:{type:String}}}}]),k(e,[{key:"cons",value:function(){this.mounted=!1,this.page=1,this.href="",this.morf="",this.hdr="",this.options=[],this.submit="",this.checked={}}},{key:"getFacets",value:function(){var t=this;r.a.getJSON("".concat(this.href,"&headless=1&output=json"),(function(e){Object(i.a)(e),t.options=e.options,t.morf=e.morf,t.hdr=e.hdr,t.submit=e.submit,t.checked={};for(var n=0;n<e.checked.length;n++)t.checked[e.checked[n]]=1})).fail((function(){t.cons(),t.hdr="failed to get results"})).always((function(){t.mounted=!0}))}},{key:"render",value:function(){var t=this;Object(i.a)("rendering..");var e=!this.mounted;""===this.hdr&&(e=!0,this.getFacets()),Object(r.a)("#morf-modal .modal-title").html(e?"":this.hdr);var n=100*(this.page-1),o=n+100-1,u=this.options.map((function(r,i){var u=r.txt?r.txt:r.val,c=i>=n&&i<=o&&!e?"farow":"farow hidden";return Object(s.d)(b(),c,t.checked[r.val],r.val,r.val,Object(a.a)(r.n),t.href.match(/morf=collection$/)?Object(s.d)(m(),r.val,u):Object(s.d)(y(),u))})),c=[],g=Math.ceil(this.options.length/100),_=e?Object(s.d)(v()):"";if(!e){var w=1;for(w=1;w<=g;w++)this.page===w?c.push(Object(s.d)(p(),w)):c.push(Object(s.d)(d(),w,this.pageClick,w)),c.push(Object(s.d)(h()));this.page<g&&c.push(Object(s.d)(f(),1+this.page,this.pageClick))}return Object(s.d)(l(),u,_,c,e?"btn-primary hidden":"btn-primary",this.submitClick)}},{key:"pageClick",value:function(t){t.stopPropagation(),t.preventDefault(),this.page="pager_next"===t.currentTarget.dataset.action?this.page+1:parseInt(Object(r.a)(t.target).text(),10)}},{key:"submitClick",value:function(){var t=this;Object(i.a)("submitted");var e=this.submit;this.shadowRoot.querySelectorAll("input:checked").forEach((function(n){var r="&and[]=".concat(t.morf,'%3A"').concat(encodeURIComponent(n.value),'"');Object(i.a)("checked",n.value,"=>",r),e+=r})),Object(i.a)(e),location.href=e}}],[{key:"styles",get:function(){return Object(s.b)(c())}}]),e}(s.a);Object(r.a)((function(){return Object(o.a)("body",(function(t){return!Object(r.a)(t.currentTarget,"a").hasClass("js-more-facets-click")||x.click(t)}),"callback","a")})),customElements.define("more-facets",x)},7:function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"false",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("string"!=typeof t)throw new Error("first arg should be a string");$(t).on("click",r,(function(t){var r=e(t);return"callback"===n&&r?r:"default"===n||(t&&t.preventDefault&&t.preventDefault(),t&&t.stopPropagation&&t.stopPropagation(),!1)}))}n.d(e,"a",(function(){return r}))}});
//# sourceMappingURL=more-facets.min.js.map
// @license-end