PageSourceSearch

https://code.galleries.upcontent.com/v3/bundle.js

js upcontent.com collected 2026-09-24 09:10:05 UTC 221,520 bytes, 8 lines download raw bytes

1!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=4)}([function(e,t,i){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n,o,s,a,l,c,u,h;i(5),function(){Polymer.nar=[];var e,t=Polymer.Settings.disableUpgradeEnabled;Polymer.Annotations={parseAnnotations:function(e,t){var i=[],r=e._content||e.content;return this._parseNodeAnnotations(r,i,t||e.hasAttribute("strip-whitespace")),i},_parseNodeAnnotations:function(e,t,i){return e.nodeType===Node.TEXT_NODE?this._parseTextNodeAnnotation(e,t):this._parseElementAnnotations(e,t,i)},_bindingRegex:new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:(?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\"))\\s*)(?:,\\s*(?:(?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\"))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),_parseBindings:function(e){for(var t,i=this._bindingRegex,r=[],n=0;null!==(t=i.exec(e));){t.index>n&&r.push({literal:e.slice(n,t.index)});var o,s,a,l=t[1][0],c=Boolean(t[2]),u=t[3].trim();"{"==l&&(a=u.indexOf("::"))>0&&(s=u.substring(a+2),u=u.substring(0,a),o=!0),r.push({compoundIndex:r.length,value:u,mode:l,negate:c,event:s,customEvent:o}),n=i.lastIndex}if(n&&n<e.length){var h=e.substring(n);h&&r.push({literal:h})}if(r.length)return r},_literalFromParts:function(e){for(var t="",i=0;i<e.length;i++){t+=e[i].literal||""}return t},_parseTextNodeAnnotation:function(e,t){var i=this._parseBindings(e.textContent);if(i){e.textContent=this._literalFromParts(i)||" ";var r={bindings:[{kind:"text",name:"textContent",parts:i,isCompound:1!==i.length}]};return t.push(r),r}},_parseElementAnnotations:function(e,t,i){var r={bindings:[],events:[]};return"content"===e.localName&&(t._hasContent=!0),this._parseChildNodesAnnotations(e,r,t,i),e.attributes&&(this._parseNodeAttributeAnnotations(e,r,t),this.prepElement&&this.prepElement(e)),(r.bindings.length||r.events.length||r.id)&&t.push(r),r},_parseChildNodesAnnotations:function(e,t,i,r){if(e.firstChild)for(var n=e.firstChild,o=0;n;){var s=n.nextSibling;if("template"!==n.localName||n.hasAttribute("preserve-content")||this._parseTemplate(n,o,i,t,r),"slot"==n.localName&&(n=this._replaceSlotWithContent(n)),n.nodeType===Node.TEXT_NODE){for(var a=s;a&&a.nodeType===Node.TEXT_NODE;)n.textContent+=a.textContent,s=a.nextSibling,e.removeChild(a),a=s;r&&!n.textContent.trim()&&(e.removeChild(n),o--)}if(n.parentNode){var l=this._parseNodeAnnotations(n,i,r);l&&(l.parent=t,l.index=o)}n=s,o++}},_select$Attr:(e=document.createElement("div"),e.innerHTML="<div select$>",e.childNodes[0].attributes.getNamedItem("select$")),_replaceSlotWithContent:function(e){for(var t=e.ownerDocument.createElement("content");e.firstChild;)t.appendChild(e.firstChild);for(var i=e.attributes,r=0;r<i.length;r++)t.attributes.setNamedItem(i[r].cloneNode());var n=e.getAttribute("name");n&&t.setAttribute("select","[slot='"+n+"']");var o=e.getAttribute("name$");if(o){var s=this._select$Attr.cloneNode();s.value="[slot='"+o+"']",t.attributes.setNamedItem(s)}return e.parentNode.replaceChild(t,e),t},_parseTemplate:function(e,t,i,r,n){var o=document.createDocumentFragment();o._notes=this.parseAnnotations(e,n),o.appendChild(e.content),i.push({bindings:Polymer.nar,events:Polymer.nar,templateContent:o,parent:r,index:t})},_parseNodeAttributeAnnotations:function(e,t){for(var i,r=Array.prototype.slice.call(e.attributes),n=r.length-1;i=r[n];n--){var o,s=i.name,a=i.value;"on-"===s.slice(0,3)?(e.removeAttribute(s),t.events.push({name:s.slice(3),value:a})):(o=this._parseNodeAttributeAnnotation(e,s,a))?t.bindings.push(o):"id"===s&&(t.id=a)}},_parseNodeAttributeAnnotation:function(e,i,r){var n=this._parseBindings(r);if(n){var o=i,s="property";"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");var a=this._literalFromParts(n);a&&"attribute"==s&&e.setAttribute(i,a),"input"===e.localName&&"value"===o&&e.setAttribute(o,""),t&&"disable-upgrade$"
1===o&&e.setAttribute(i,""),e.removeAttribute(o);var l=Polymer.CaseMap.dashToCamelCase(i);return"property"===s&&(i=l),{kind:s,name:i,propertyName:l,parts:n,literal:a,isCompound:1!==n.length}}},findAnnotatedNode:function(e,t){var i=t.parent&&Polymer.Annotations.findAnnotatedNode(e,t.parent);if(!i)return e;for(var r=i.firstChild,n=0;r;r=r.nextSibling)if(t.index===n++)return r}}}(),Polymer.Path={root:function(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)},isDeep:function(e){return-1!==e.indexOf(".")},isAncestor:function(e,t){return 0===e.indexOf(t+".")},isDescendant:function(e,t){return 0===t.indexOf(e+".")},translate:function(e,t,i){return t+i.slice(e.length)},matches:function(e,t,i){return e===i||this.isAncestor(e,i)||Boolean(t)&&this.isDescendant(e,i)}},Polymer.Base._addFeature({_prepAnnotations:function(){if(this._template){var e=this;Polymer.Annotations.prepElement=function(t){e._prepElement(t)},this._template._content&&this._template._content._notes?this._notes=this._template._content._notes:(this._notes=Polymer.Annotations.parseAnnotations(this._template),this._processAnnotations(this._notes)),Polymer.Annotations.prepElement=null}else this._notes=[]},_processAnnotations:function(e){for(var t=0;t<e.length;t++){for(var i=e[t],r=0;r<i.bindings.length;r++)for(var n=i.bindings[r],o=0;o<n.parts.length;o++){var s=n.parts[o];if(!s.literal){var a=this._parseMethod(s.value);a?s.signature=a:s.model=Polymer.Path.root(s.value)}}if(i.templateContent){this._processAnnotations(i.templateContent._notes);var l=i.templateContent._parentProps=this._discoverTemplateParentProps(i.templateContent._notes),c=[];for(var u in l){var h="_parent_"+u;c.push({index:i.index,kind:"property",name:h,propertyName:h,parts:[{mode:"{",model:u,value:u}]})}i.bindings=i.bindings.concat(c)}}},_discoverTemplateParentProps:function(e){for(var t,i={},r=0;r<e.length&&(t=e[r]);r++){for(var n,o=0,s=t.bindings;o<s.length&&(n=s[o]);o++)for(var a,l=0,c=n.parts;l<c.length&&(a=c[l]);l++)if(a.signature){for(var u=a.signature.args,h=0;h<u.length;h++){var d=u[h].model;d&&(i[d]=!0)}a.signature.dynamicFn&&(i[a.signature.method]=!0)}else a.model&&(i[a.model]=!0);if(t.templateContent){var p=t.templateContent._parentProps;Polymer.Base.mixin(i,p)}}return i},_prepElement:function(e){Polymer.ResolveUrl.resolveAttrs(e,this._template.ownerDocument)},_findAnnotatedNode:Polymer.Annotations.findAnnotatedNode,_marshalAnnotationReferences:function(){this._template&&(this._marshalIdNodes(),this._marshalAnnotatedNodes(),this._marshalAnnotatedListeners())},_configureAnnotationReferences:function(){for(var e=this._notes||[],t=this._nodes,i=0;i<e.length;i++){var r=e[i],n=t[i];this._configureTemplateContent(r,n),this._configureCompoundBindings(r,n)}},_configureTemplateContent:function(e,t){e.templateContent&&(t._content=e.templateContent)},_configureCompoundBindings:function(e,t){for(var i=e.bindings,r=0;r<i.length;r++){var n=i[r];if(n.isCompound){for(var o=t.__compoundStorage__||(t.__compoundStorage__={}),s=n.parts,a=new Array(s.length),l=0;l<s.length;l++)a[l]=s[l].literal;var c=n.name;o[c]=a,n.literal&&"property"==n.kind&&(t._configValue?t._configValue(c,n.literal):t[c]=n.literal)}}},_marshalIdNodes:function(){this.$={};for(var e,t=0,i=this._notes.length;t<i&&(e=this._notes[t]);t++)e.id&&(this.$[e.id]=this._findAnnotatedNode(this.root,e))},_marshalAnnotatedNodes:function(){if(this._notes&&this._notes.length){for(var e=new Array(this._notes.length),t=0;t<this._notes.length;t++)e[t]=this._findAnnotatedNode(this.root,this._notes[t]);this._nodes=e}},_marshalAnnotatedListeners:function(){for(var e,t=0,i=this._notes.length;t<i&&(e=this._notes[t]);t++)if(e.events&&e.events.length)for(var r,n=this._findAnnotatedNode(this.root,e),o=0,s=e.events;o<s.length&&(r=s[o]);o++)this.listen(n,r.name,r.value)}}),Polymer.Base._addFeature({listeners:{},_listenListeners:function(e){var t,i,r;for(r in e)r.indexOf(".")<0?(t=this,i=r):(i=r.split("."),t=this.$[i[0]],i=i[1]),this.listen(t,i,e[r])},listen:function(e,t,i){var r=this._recallEventHandler(this,t,e,i);r||(r=this._createEventHandler(e,t,i)),r._listening||(this._listen(e,t,r),r._listening=!0)},_boundListenerKey:function(e,t){return e+":"+t},_recordEventHandler:function(e,t,i,r,n){var o=e.__boundListeners;o||(o=e.__boundListeners=new WeakMap);var s=o.get(i);s||(s={},Polymer.Settings.isIE&&i==window||o.set(i,s)),s[this._boundListenerKey(t,r)]=n},_recallEventHandler:function(e,t,i,r){var n=e.__boundListeners;if(n){var o=n.get(i);if(o)return o[this._boundListenerKey(t,r)]}},_createEventHandler:function(e,t,i){var r=this,n=function(e){r[i]?r[i](e,e.detail):r._warn(r._logf("_createEventHandler","listener method `"+i+"` not defined"))};return n._listening=!1,this._recordEventHandler(r,t,e,i,n),n},unlisten:function(e,t,i){var r=this._recallEventHandler(this,t,e,i);r&&(this._unlisten(e,t,r),r._listening=!1)},_listen:function(e,t,i){e.addEventListener(t,i)},_unlisten:function(e,t,i){e.removeEventListener(t,i)}}),function(){"use strict";var e=Polymer.DomApi.wrap,t="string"==typeof document.head.style.touchAction,i="__polymerGesturesHandled",r="__polymerGesturesTouchAction",n=["mousedown","mousemove","mouseup","click"],o=[0,1,4,2],s=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function a(e){return n.indexOf(e)>-1}var l=!1;function c(e){if(!a(e)&&"touchend"!==e)return t&&l&&Polymer.Settings.passiveTouchGestures?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var u=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),h=function(e){var t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[i]={skip:!0},"click"===e.type)){var r=Polymer.dom(e).path;if(r)for(var n=0;n<r.length;n++)if(r[n]===f.mouse.target)return;e.preventDefault(),e.stopPropagation()}};function d(e){for(var t,i=u?["click"]:n,r=0;r<i.length;r++)t=i[r],e?document.addEventListener(t,h,!0):document.removeEventListener(t,h,!0)}function p(e){var t=e.type;if(!a(t))return!1;if("mousemove"===t){var i=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!s&&(i=o[e.which]||0),Boolean(1&i)}return 0===(void 0===e.button?0:e.button)}var f={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function m(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function _(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",(function(e){f.mouse.mouseIgnoreJob||d(!0),f.mouse.target=Polymer.dom(e).rootTarget,f.mouse.mouseIgnoreJob=Polymer.Debounce(f.mouse.mouseIgnoreJob,(function(){d(),f.mouse.target=null,f.mouse.mouseIgnoreJob=null}),2500)}),!!l&&{passive:!0});var y={gestures:{},recognizers:[],deepTargetFind:function(e,t){for(var i=document.elementFromPoint(e,t),r=i;r&&r.shadowRoot;){if(r===(r=r.shadowRoot.elementFromPoint(e,t)))break;r&&(i=r)}return i},findOriginalTarget:function(e){return e.path?e.path[0]:e.target},handleNative:function(r){var n,o=r.type,s=e(r.currentTarget).__polymerGestures;if(s){var a=s[o];if(a){if(!r[i]&&(r[i]={},"touch"===o.slice(0,5))){var l=r.changedTouches[0];if("touchstart"===o&&1===r.touches.length&&(f.touch.id=l.identifier),f.touch.id!==l.identifier)return;t||"touchstart"!==o&&"touchmove"!==o||y.handleTouchAction(r)}if(!(n=r[i]).skip){for(var c,u=y.recognizers,h=0;h<u.length;h++)a[(c=u[h]).name]&&!n[c.name]&&c.flow&&c.flow.start.indexOf(r.type)>-1&&c.reset&&c.reset();for(h=0;h<u.length;h++)a[(c=u[h]).name]&&!n[c.name]&&(n[c.name]=!0,c[o](r))}}}},handleTouchAction:function(e){var t=e.changedTouches[0],i=e.type;if("touchstart"===i)f.touch.x=t.clientX,f.touch.y=t.clientY,f.touch.scrollDecided=!1;else if("touchmove"===i){if(f.touch.scrollDecided)return;f.touch.scrollDecided=!0;var n=function(e){for(var t,i=Polymer.dom(e).path,n="auto",o=0;o<i.length;
1o++)if((t=i[o])[r]){n=t[r];break}return n}(e),o=!1,s=Math.abs(f.touch.x-t.clientX),a=Math.abs(f.touch.y-t.clientY);e.cancelable&&("none"===n?o=!0:"pan-x"===n?o=a>s:"pan-y"===n&&(o=s>a)),o?e.preventDefault():y.prevent("track")}},add:function(t,i,r){t=e(t);var n=this.gestures[i],o=n.deps,s=n.name,l=t.__polymerGestures;l||(t.__polymerGestures=l={});for(var h,d,p=0;p<o.length;p++)h=o[p],u&&a(h)&&"click"!==h||((d=l[h])||(l[h]=d={_count:0}),0===d._count&&t.addEventListener(h,this.handleNative,c(h)),d[s]=(d[s]||0)+1,d._count=(d._count||0)+1);t.addEventListener(i,r),n.touchAction&&this.setTouchAction(t,n.touchAction)},remove:function(t,i,r){t=e(t);var n=this.gestures[i],o=n.deps,s=n.name,a=t.__polymerGestures;if(a)for(var l,u,h=0;h<o.length;h++)(u=a[l=o[h]])&&u[s]&&(u[s]=(u[s]||1)-1,u._count=(u._count||1)-1,0===u._count&&t.removeEventListener(l,this.handleNative,c(l)));t.removeEventListener(i,r)},register:function(e){this.recognizers.push(e);for(var t=0;t<e.emits.length;t++)this.gestures[e.emits[t]]=e},findRecognizerByEvent:function(e){for(var t,i=0;i<this.recognizers.length;i++){t=this.recognizers[i];for(var r=0;r<t.emits.length;r++)if(t.emits[r]===e)return t}return null},setTouchAction:function(e,i){t&&(e.style.touchAction=i),e[r]=i},fire:function(e,t,i){if(Polymer.Base.fire(t,i,{node:e,bubbles:!0,cancelable:!0}).defaultPrevented){var r=i.preventer||i.sourceEvent;r&&r.preventDefault&&r.preventDefault()}},prevent:function(e){var t=this.findRecognizerByEvent(e);t.info&&(t.info.prevent=!0)},resetMouseCanceller:function(){f.mouse.mouseIgnoreJob&&f.mouse.mouseIgnoreJob.complete()}};y.register({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){_(this.info)},mousedown:function(e){if(p(e)){var t=y.findOriginalTarget(e),i=this;m(this.info,(function(e){p(e)||(i.fire("up",t,e),_(i.info))}),(function(e){p(e)&&i.fire("up",t,e),_(i.info)})),this.fire("down",t,e)}},touchstart:function(e){this.fire("down",y.findOriginalTarget(e),e.changedTouches[0],e)},touchend:function(e){this.fire("up",y.findOriginalTarget(e),e.changedTouches[0],e)},fire:function(e,t,i,r){y.fire(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:function(e){return y.prevent(e)}})}}),y.register({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,_(this.info)},hasMovedEnough:function(e,t){if(this.info.prevent)return!1;if(this.info.started)return!0;var i=Math.abs(this.info.x-e),r=Math.abs(this.info.y-t);return i>=5||r>=5},mousedown:function(e){if(p(e)){var t=y.findOriginalTarget(e),i=this,r=function(e){var r=e.clientX,n=e.clientY;i.hasMovedEnough(r,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&y.prevent("tap"),i.info.addMove({x:r,y:n}),p(e)||(i.info.state="end",_(i.info)),i.fire(t,e),i.info.started=!0)};m(this.info,r,(function(e){i.info.started&&r(e),_(i.info)})),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=y.findOriginalTarget(e),i=e.changedTouches[0],r=i.clientX,n=i.clientY;this.hasMovedEnough(r,n)&&("start"===this.info.state&&y.prevent("tap"),this.info.addMove({x:r,y:n}),this.fire(t,i),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=y.findOriginalTarget(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),this.fire(t,i,e))},fire:function(e,t,i){var r,n=this.info.moves[this.info.moves.length-2],o=this.info.moves[this.info.moves.length-1],s=o.x-this.info.x,a=o.y-this.info.y,l=0;return n&&(r=o.x-n.x,l=o.y-n.y),y.fire(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:s,dy:a,ddx:r,ddy:l,sourceEvent:t,preventer:i,hover:function(){return y.deepTargetFind(t.clientX,t.clientY)}})}}),y.register({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},save:function(e){this.info.x=e.clientX,this.info.y=e.clientY},mousedown:function(e){p(e)&&this.save(e)},click:function(e){p(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[0],e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:function(e,t){var i=Math.abs(e.clientX-this.info.x),r=M
1ath.abs(e.clientY-this.info.y),n=y.findOriginalTarget(e);(isNaN(i)||isNaN(r)||i<=25&&r<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;var t=y.findOriginalTarget(e).getBoundingClientRect(),i=e.pageX,r=e.pageY;return!(i>=t.left&&i<=t.right&&r>=t.top&&r<=t.bottom)}return!1}(e))&&(this.info.prevent||y.fire(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var g={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Polymer.Base._addFeature({_setupGestures:function(){this.__polymerGestures=null},_listen:function(e,t,i){y.gestures[t]?y.add(e,t,i):e.addEventListener(t,i)},_unlisten:function(e,t,i){y.gestures[t]?y.remove(e,t,i):e.removeEventListener(t,i)},setScrollDirection:function(e,t){t=t||this,y.setTouchAction(t,g[e]||"auto")}}),Polymer.Gestures=y}(),function(){"use strict";if(Polymer.Base._addFeature({$$:function(e){return Polymer.dom(this.root).querySelector(e)},toggleClass:function(e,t,i){i=i||this,1==arguments.length&&(t=!i.classList.contains(e)),t?Polymer.dom(i).classList.add(e):Polymer.dom(i).classList.remove(e)},toggleAttribute:function(e,t,i){i=i||this,1==arguments.length&&(t=!i.hasAttribute(e)),t?Polymer.dom(i).setAttribute(e,""):Polymer.dom(i).removeAttribute(e)},classFollows:function(e,t,i){i&&Polymer.dom(i).classList.remove(e),t&&Polymer.dom(t).classList.add(e)},attributeFollows:function(e,t,i){i&&Polymer.dom(i).removeAttribute(e),t&&Polymer.dom(t).setAttribute(e,"")},getEffectiveChildNodes:function(){return Polymer.dom(this).getEffectiveChildNodes()},getEffectiveChildren:function(){return Polymer.dom(this).getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))},getEffectiveTextContent:function(){for(var e,t=this.getEffectiveChildNodes(),i=[],r=0;e=t[r];r++)e.nodeType!==Node.COMMENT_NODE&&i.push(Polymer.dom(e).textContent);return i.join("")},queryEffectiveChildren:function(e){var t=Polymer.dom(this).queryDistributedElements(e);return t&&t[0]},queryAllEffectiveChildren:function(e){return Polymer.dom(this).queryDistributedElements(e)},getContentChildNodes:function(e){var t=Polymer.dom(this.root).querySelector(e||"content");return t?Polymer.dom(t).getDistributedNodes():[]},getContentChildren:function(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))},fire:function(e,t,i){var r=(i=i||Polymer.nob).node||this;t=null==t?{}:t;var n=void 0===i.bubbles||i.bubbles,o=Boolean(i.cancelable),s=i._useCache,a=this._getEvent(e,n,o,s);return a.detail=t,s&&(this.__eventCache[e]=null),r.dispatchEvent(a),s&&(this.__eventCache[e]=a),a},__eventCache:{},_getEvent:function(e,t,i,r){var n=r&&this.__eventCache[e];return n&&n.bubbles==t&&n.cancelable==i||(n=new Event(e,{bubbles:Boolean(t),cancelable:i})),n},async:function(e,t){var i=this;return Polymer.Async.run((function(){e.call(i)}),t)},cancelAsync:function(e){Polymer.Async.cancel(e)},arrayDelete:function(e,t){var i;if(Array.isArray(e)){if((i=e.indexOf(t))>=0)return e.splice(i,1)}else if((i=this._get(e).indexOf(t))>=0)return this.splice(e,i,1)},transform:function(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e},translate3d:function(e,t,i,r){r=r||this,this.transform("translate3d("+e+","+t+","+i+")",r)},importHref:function(e,t,i,r){var n=document.createElement("link");n.rel="import",n.href=e;var o=Polymer.Base.importHref.imported=Polymer.Base.importHref.imported||{},s=o[n.href],a=s||n,l=this,c=function e(i){return i.target.__firedLoad=!0,i.target.removeEventListener("load",e),i.target.removeEventListener("error",u),t.call(l,i)},u=function e(t){return t.target.__firedError=!0,t.target.removeEventListener("load",c),t.target.removeEventListener("error",e),i.call(l,t)};return t&&a.addEventListener("load",c),i&&a.addEventListener("error",u),s?(s.__firedLoad&&s.dispatchEvent(new Event("load")),s.__firedError&&s.dispatchEvent(new Event("error"))):(o[n.href]=n,(r=Boolean(r))&&n.setAttribute("async",""),document.head.appendChild(n)),a},create:function(e,t){var i=document.createElement(e);if(t)for(var r in t)i[r]=t[r];return i},isLightDescendant:function(e){return this!==e&&this.contains(e)&&Polymer.dom(this).getOwnerRoot()===Polymer.dom(e).getOwnerRoot()},isLocalDescendant:function(e){return this.root===Polymer.dom(e).getOwnerRoot()}}),!Polymer.Settings.useNativeCustomElements){var e=Polymer.Base.importHref;Polymer.Base.importHref=function(t,i,r,n){CustomElements.ready=!1;return e.call(this,t,(function(e){if(CustomElements.upgradeDocumentTree(document),CustomElements.ready=!0,i)return i.call(this,e)}),r,n)}}}(),Polymer.Bind={prepareModel:function(e){Polymer.Base.mixin(e,this._modelApi)},_modelApi:{_notifyChange:function(e,t,i){i=void 0===i?this[e]:i,t=t||Polymer.CaseMap.camelToDashCase(e)+"-changed",this.fire(t,{value:i},{bubbles:!1,cancelable:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_propertySetter:function(e,t,i,n){var o=this.__data__[e];return o===t||o!=o&&t!=t||(this.__data__[e]=t,"object"==r(t)&&this._clearPath(e),this._propertyChanged&&this._propertyChanged(e,t,o),i&&this._effectEffects(e,t,i,o,n)),o},__setProperty:function(e,t,i,r){var n=(r=r||this)._propertyEffects&&r._propertyEffects[e];n?r._propertySetter(e,t,n,i):r[e]!==t&&(r[e]=t)},_effectEffects:function(e,t,i,r,n){for(var o,s=0,a=i.length;s<a&&(o=i[s]);s++)o.fn.call(this,e,this[e],o.effect,r,n)},_clearPath:function(e){for(var t in this.__data__)Polymer.Path.isDescendant(e,t)&&(this.__data__[t]=void 0)}},ensurePropertyEffects:function(e,t){e._propertyEffects||(e._propertyEffects={});var i=e._propertyEffects[t];
1return i||(i=e._propertyEffects[t]=[]),i},addPropertyEffect:function(e,t,i,r){var n=this.ensurePropertyEffects(e,t),o={kind:i,effect:r,fn:Polymer.Bind["_"+i+"Effect"]};return n.push(o),o},createBindings:function(e){var t=e._propertyEffects;if(t)for(var i in t){var r=t[i];r.sort(this._sortPropertyEffects),this._createAccessors(e,i,r)}},_sortPropertyEffects:(n={compute:0,annotation:1,annotatedComputation:2,reflect:3,notify:4,observer:5,complexObserver:6,function:7},function(e,t){return n[e.kind]-n[t.kind]}),_createAccessors:function(e,t,i){var r={get:function(){return this.__data__[t]}},n=function(e){this._propertySetter(t,e,i)},o=e.getPropertyInfo&&e.getPropertyInfo(t);o&&o.readOnly?o.computed||(e["_set"+this.upper(t)]=n):r.set=n,Object.defineProperty(e,t,r)},upper:function(e){return e[0].toUpperCase()+e.substring(1)},_addAnnotatedListener:function(e,t,i,r,n,o){e._bindListeners||(e._bindListeners=[]);var s=this._notedListenerFactory(i,r,Polymer.Path.isDeep(r),o),a=n||Polymer.CaseMap.camelToDashCase(i)+"-changed";e._bindListeners.push({index:t,property:i,path:r,changedFn:s,event:a})},_isEventBogus:function(e,t){return e.path&&e.path[0]!==t},_notedListenerFactory:function(e,t,i,r){return function(n,o,s){if(s){var a=Polymer.Path.translate(e,t,s);this._notifyPath(a,o)}else o=n[e],r&&(o=!o),i?this.__data__[t]!=o&&this.set(t,o):this[t]=o}},prepareInstance:function(e){e.__data__=Object.create(null)},setupBindListeners:function(e){for(var t,i=e._bindListeners,r=0,n=i.length;r<n&&(t=i[r]);r++){var o=e._nodes[t.index];this._addNotifyListener(o,e,t.event,t.changedFn)}},_addNotifyListener:function(e,t,i,r){e.addEventListener(i,(function(e){return t._notifyListener(r,e)}))}},Polymer.Base.mixin(Polymer.Bind,{_shouldAddListener:function(e){return e.name&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode},_annotationEffect:function(e,t,i){e!=i.value&&(t=this._get(i.value),this.__data__[i.value]=t),this._applyEffectValue(i,t)},_reflectEffect:function(e,t,i){this.reflectPropertyToAttribute(e,i.attribute,t)},_notifyEffect:function(e,t,i,r,n){n||this._notifyChange(e,i.event,t)},_functionEffect:function(e,t,i,r,n){i.call(this,e,t,r,n)},_observerEffect:function(e,t,i,r){var n=this[i.method];n?n.call(this,t,r):this._warn(this._logf("_observerEffect","observer method `"+i.method+"` not defined"))},_complexObserverEffect:function(e,t,i){var r=this[i.method];if(r){var n=Polymer.Bind._marshalArgs(this.__data__,i,e,t);n&&r.apply(this,n)}else i.dynamicFn||this._warn(this._logf("_complexObserverEffect","observer method `"+i.method+"` not defined"))},_computeEffect:function(e,t,i){var r=this[i.method];if(r){var n=Polymer.Bind._marshalArgs(this.__data__,i,e,t);if(n){var o=r.apply(this,n);this.__setProperty(i.name,o)}}else i.dynamicFn||this._warn(this._logf("_computeEffect","compute method `"+i.method+"` not defined"))},_annotatedComputationEffect:function(e,t,i){var r=this._rootDataHost||this,n=r[i.method];if(n){var o=Polymer.Bind._marshalArgs(this.__data__,i,e,t);if(o){var s=n.apply(r,o);this._applyEffectValue(i,s)}}else i.dynamicFn||r._warn(r._logf("_annotatedComputationEffect","compute method `"+i.method+"` not defined"))},_marshalArgs:function(e,t,i,r){for(var n=[],o=t.args,s=o.length>1||t.dynamicFn,a=0,l=o.length;a<l;a++){var c,u=o[a],h=u.name;if(u.literal?c=u.value:i===h?c=r:void 0===(c=e[h])&&u.structured&&(c=Polymer.Base._get(h,e)),s&&void 0===c)return;if(u.wildcard){var d=Polymer.Path.isAncestor(i,h);n[a]={path:d?i:h,value:d?r:c,base:c}}else n[a]=c}return n}}),Polymer.Base._addFeature({_addPropertyEffect:function(e,t,i){var r=Polymer.Bind.addPropertyEffect(this,e,t,i);r.pathFn=this["_"+r.kind+"PathEffect"]},_prepEffects:function(){Polymer.Bind.prepareModel(this),this._addAnnotationEffects(this._notes)},_prepBindings:function(){Polymer.Bind.createBindings(this)},_addPropertyEffects:function(e){if(e)for(var t in e){var i=e[t];if(i.observer&&this._addObserverEffect(t,i.observer),i.computed&&(i.readOnly=!0,this._addComputedEffect(t,i.computed)),i.notify&&this._addPropertyEffect(t,"notify",{event:Polymer.CaseMap.camelToDashCase(t)+"-changed"}),i.reflectToAttribute){var r=Polymer.CaseMap.camelToDashCase(t);"-"===r[0]?this._warn(this._logf("_addPropertyEffects","Property "+t+" cannot be reflected to attribute "+r+' because "
1-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')):this._addPropertyEffect(t,"reflect",{attribute:r})}i.readOnly&&Polymer.Bind.ensurePropertyEffects(this,t)}},_addComputedEffect:function(e,t){for(var i,r=this._parseMethod(t),n=r.dynamicFn,o=0;o<r.args.length&&(i=r.args[o]);o++)this._addPropertyEffect(i.model,"compute",{method:r.method,args:r.args,trigger:i,name:e,dynamicFn:n});n&&this._addPropertyEffect(r.method,"compute",{method:r.method,args:r.args,trigger:null,name:e,dynamicFn:n})},_addObserverEffect:function(e,t){this._addPropertyEffect(e,"observer",{method:t,property:e})},_addComplexObserverEffects:function(e){if(e)for(var t,i=0;i<e.length&&(t=e[i]);i++)this._addComplexObserverEffect(t)},_addComplexObserverEffect:function(e){var t=this._parseMethod(e);if(!t)throw new Error("Malformed observer expression '"+e+"'");for(var i,r=t.dynamicFn,n=0;n<t.args.length&&(i=t.args[n]);n++)this._addPropertyEffect(i.model,"complexObserver",{method:t.method,args:t.args,trigger:i,dynamicFn:r});r&&this._addPropertyEffect(t.method,"complexObserver",{method:t.method,args:t.args,trigger:null,dynamicFn:r})},_addAnnotationEffects:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)for(var r,n=t.bindings,o=0;o<n.length&&(r=n[o]);o++)this._addAnnotationEffect(r,i)},_addAnnotationEffect:function(e,t){Polymer.Bind._shouldAddListener(e)&&Polymer.Bind._addAnnotatedListener(this,t,e.name,e.parts[0].value,e.parts[0].event,e.parts[0].negate);for(var i=0;i<e.parts.length;i++){var r=e.parts[i];r.signature?this._addAnnotatedComputationEffect(e,r,t):r.literal||("attribute"===e.kind&&"-"===e.name[0]?this._warn(this._logf("_addAnnotationEffect","Cannot set attribute "+e.name+' because "-" is not a valid attribute starting character')):this._addPropertyEffect(r.model,"annotation",{kind:e.kind,index:t,name:e.name,propertyName:e.propertyName,value:r.value,isCompound:e.isCompound,compoundIndex:r.compoundIndex,event:r.event,customEvent:r.customEvent,negate:r.negate}))}},_addAnnotatedComputationEffect:function(e,t,i){var r=t.signature;if(r.static)this.__addAnnotatedComputationEffect("__static__",i,e,t,null);else{for(var n,o=0;o<r.args.length&&(n=r.args[o]);o++)n.literal||this.__addAnnotatedComputationEffect(n.model,i,e,t,n);r.dynamicFn&&this.__addAnnotatedComputationEffect(r.method,i,e,t,null)}},__addAnnotatedComputationEffect:function(e,t,i,r,n){this._addPropertyEffect(e,"annotatedComputation",{index:t,isCompound:i.isCompound,compoundIndex:r.compoundIndex,kind:i.kind,name:i.name,negate:r.negate,method:r.signature.method,args:r.signature.args,trigger:n,dynamicFn:r.signature.dynamicFn})},_parseMethod:function(e){var t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){var i={method:t[1],static:!0};if(this.getPropertyInfo(i.method)!==Polymer.nob&&(i.static=!1,i.dynamicFn=!0),t[2].trim()){var r=t[2].replace(/\\,/g,"&comma;").split(",");return this._parseArgs(r,i)}return i.args=Polymer.nar,i}},_parseArgs:function(e,t){return t.args=e.map((function(e){var i=this._parseArg(e);return i.literal||(t.static=!1),i}),this),t},_parseArg:function(e){var t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t},r=t[0];switch("-"===r&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.model=Polymer.Path.root(t),i.structured=Polymer.Path.isDeep(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i},_marshalInstanceEffects:function(){Polymer.Bind.prepareInstance(this),this._bindListeners&&Polymer.Bind.setupBindListeners(this)},_applyEffectValue:function(e,t){var i=this._nodes[e.index],r=e.name;if(t=this._computeFinalAnnotationValue(i,r,t,e),"attribute"==e.kind)this.serializeValueToAttribute(t,r,i);else{var n=i._propertyInfo&&i._propertyInfo[r];if(n&&n.readOnly)return;this.__setProperty(r,t,Polymer.Settings.suppressBindingNotifications,i)}},_computeFinalAnnotationValue:function(e,t,i,r){if(r.negate&&(i=!i),r.isCompound){var n=e.__compoundStorage__[t];n[r.compoundIndex]=i,i=n.join("")}return"attribute"!==r.kind&&("className"===t&&(i=this._scopeElementClass(e,i)),("textContent"===t||"input"==e.localName&&"value"==t)&&(i=null==i?"":i)),i},_executeStaticEffects:function(){this._propertyEffects&&this._propertyEffects.__static__&&this._effectEffects("__static__",null,this._propertyEffects.__static__)}}),o=Polymer.Settings.usePolyfillProto,s=Boolean(Object.getOwnPropertyDescriptor(document.documentElement,"properties")),Polymer.Base._addFeature({_setupConfigure:function(e){if(this._config={}
1,this._handlers=[],this._aboveConfig=null,e)for(var t in e)void 0!==e[t]&&(this._config[t]=e[t])},_marshalAttributes:function(){this._takeAttributesToModel(this._config)},_attributeChangedImpl:function(e){var t=this._clientsReadied?this:this._config;this._setAttributeToProperty(t,e)},_configValue:function(e,t){var i=this._propertyInfo[e];i&&i.readOnly||(this._config[e]=t)},_beforeClientsReady:function(){this._configure()},_configure:function(){this._configureAnnotationReferences(),this._configureInstanceProperties(),this._aboveConfig=this.mixin({},this._config);for(var e={},t=0;t<this.behaviors.length;t++)this._configureProperties(this.behaviors[t].properties,e);this._configureProperties(s?this.__proto__.properties:this.properties,e),this.mixin(e,this._aboveConfig),this._config=e,this._clients&&this._clients.length&&this._distributeConfig(this._config)},_configureInstanceProperties:function(){for(var e in this._propertyEffects)!o&&this.hasOwnProperty(e)&&(this._configValue(e,this[e]),delete this[e])},_configureProperties:function(e,t){for(var i in e){var r=e[i];if(void 0!==r.value){var n=r.value;"function"==typeof n&&(n=n.call(this,this._config)),t[i]=n}}},_distributeConfig:function(e){var t=this._propertyEffects;if(t)for(var i in e){var r=t[i];if(r)for(var n,o=0,s=r.length;o<s&&(n=r[o]);o++)if("annotation"===n.kind){var a=this._nodes[n.effect.index],l=n.effect.propertyName,c="attribute"==n.effect.kind,u=a._propertyEffects&&a._propertyEffects[l];if(a._configValue&&(u||!c)){var h=i===n.effect.value?e[i]:this._get(n.effect.value,e);h=this._computeFinalAnnotationValue(a,l,h,n.effect),c&&(h=a.deserialize(this.serialize(h),a._propertyInfo[l].type)),a._configValue(l,h)}}}},_afterClientsReady:function(){this.importPath=this._importPath,this.rootPath=Polymer.rootPath,this._executeStaticEffects(),this._applyConfig(this._config,this._aboveConfig),this._flushHandlers()},_applyConfig:function(e,t){for(var i in e)void 0===this[i]&&this.__setProperty(i,e[i],i in t)},_notifyListener:function(e,t){if(!Polymer.Bind._isEventBogus(t,t.target)){var i,r;if(t.detail&&(i=t.detail.value,r=t.detail.path),this._clientsReadied)return e.call(this,t.target,i,r);this._queueHandler([e,t.target,i,r])}},_queueHandler:function(e){this._handlers.push(e)},_flushHandlers:function(){for(var e,t=this._handlers,i=0,r=t.length;i<r&&(e=t[i]);i++)e[0].call(this,e[1],e[2],e[3]);this._handlers=[]}}),function(){"use strict";var e=Polymer.Path;Polymer.Base._addFeature({notifyPath:function(e,t,i){var r={},n=this._get(e,this,r);1===arguments.length&&(t=n),r.path&&this._notifyPath(r.path,t,i)},_notifyPath:function(e,t,i){var r=this._propertySetter(e,t);if(r!==t&&(r==r||t==t))return this._pathEffector(e,t),i||this._notifyPathUp(e,t),!0},_getPathParts:function(e){if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++)for(var r=e[i].toString().split("."),n=0;n<r.length;n++)t.push(r[n]);return t}return e.toString().split(".")},set:function(e,t,i){var r,n=i||this,o=this._getPathParts(e),s=o[o.length-1];if(o.length>1){for(var a=0;a<o.length-1;a++){var l=o[a];if(r&&"#"==l[0]?n=Polymer.Collection.get(r).getItem(l):(n=n[l],r&&parseInt(l,10)==l&&(o[a]=Polymer.Collection.get(r).getKey(n))),!n)return;r=Array.isArray(n)?n:null}if(r){var c,u,h=Polymer.Collection.get(r);"#"==s[0]?(u=s,c=h.getItem(u),s=r.indexOf(c),h.setItem(u,t)):parseInt(s,10)==s&&(c=n[s],u=h.getKey(c),o[a]=u,h.setItem(u,t))}n[s]=t,i||this._notifyPath(o.join("."),t)}else n[e]=t},get:function(e,t){return this._get(e,t)},_get:function(e,t,i){for(var r,n=t||this,o=this._getPathParts(e),s=0;s<o.length;s++){if(!n)return;var a=o[s];r&&"#"==a[0]?n=Polymer.Collection.get(r).getItem(a):(n=n[a],i&&r&&parseInt(a,10)==a&&(o[s]=Polymer.Collection.get(r).getKey(n))),r=Array.isArray(n)?n:null}return i&&(i.path=o.join(".")),n},_pathEffector:function(t,i){var r=e.root(t),n=this._propertyEffects&&this._propertyEffects[r];if(n)for(var o,s=0;s<n.length&&(o=n[s]);s++){var a=o.pathFn;a&&a.call(this,t,i,o.effect)}this._boundPaths&&this._notifyBoundPaths(t,i)},_annotationPathEffect:function(t,i,r){if(e.matches(r.value,!1,t))Polymer.Bind._annotationEffect.call(this,t,i,r);else if(!r.negate&&e.isDescendant(r.value,t)){var n=this._nodes[r.index];if(n&&n._notifyPath){var o=e.translate(r.value,r.name,t);n._notifyPath(o,i,!0)}}},_complexObserverPathEffect:function(t,i,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._complexObserverEffect.call(this,t,i,r)},_computePathEffect:function(t,i,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._computeEffect.call(this,t,i,r)},_annotatedComputationPathEffect:function(t,i,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._annotatedComputationEffect.call(this,t,i,r)},linkPaths:function(e,t){this._boundPaths=this._boundPaths||{},t?this._boundPaths[e]=t:this.unlinkPaths(e)},unlinkPaths:function(e){this._boundPaths&&delete this._boundPaths[e]},_notifyBoundPaths:function(t,i){for(var r in this._boundPaths){var n=this._boundPaths[r];e.isDescendant(r,t)?this._notifyPath(e.translate(r,n,t),i):e.isDescendant(n,t)&&this._notifyPath(e.translate(n,r,t),i)}}
1,_notifyPathUp:function(t,i){var r=e.root(t),n=Polymer.CaseMap.camelToDashCase(r)+this._EVENT_CHANGED;this.fire(n,{path:t,value:i},{bubbles:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_EVENT_CHANGED:"-changed",notifySplices:function(e,t){var i={},r=this._get(e,this,i);this._notifySplices(r,i.path,t)},_notifySplices:function(e,t,i){var r={keySplices:Polymer.Collection.applySplices(e,i),indexSplices:i},n=t+".splices";this._notifyPath(n,r),this._notifyPath(t+".length",e.length),this.__data__[n]={keySplices:null,indexSplices:null}},_notifySplice:function(e,t,i,r,n){this._notifySplices(e,t,[{index:i,addedCount:r,removed:n,object:e,type:"splice"}])},push:function(e){var t={},i=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1),n=i.length,o=i.push.apply(i,r);return r.length&&this._notifySplice(i,t.path,n,r.length,[]),o},pop:function(e){var t={},i=this._get(e,this,t),r=Boolean(i.length),n=Array.prototype.slice.call(arguments,1),o=i.pop.apply(i,n);return r&&this._notifySplice(i,t.path,i.length,0,[o]),o},splice:function(e,t){var i={},r=this._get(e,this,i);(t=t<0?r.length-Math.floor(-t):Math.floor(t))||(t=0);var n=Array.prototype.slice.call(arguments,1),o=r.splice.apply(r,n),s=Math.max(n.length-2,0);return(s||o.length)&&this._notifySplice(r,i.path,t,s,o),o},shift:function(e){var t={},i=this._get(e,this,t),r=Boolean(i.length),n=Array.prototype.slice.call(arguments,1),o=i.shift.apply(i,n);return r&&this._notifySplice(i,t.path,0,0,[o]),o},unshift:function(e){var t={},i=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1),n=i.unshift.apply(i,r);return r.length&&this._notifySplice(i,t.path,0,r.length,[]),n},prepareModelNotifyPath:function(e){this.mixin(e,{fire:Polymer.Base.fire,_getEvent:Polymer.Base._getEvent,__eventCache:Polymer.Base.__eventCache,notifyPath:Polymer.Base.notifyPath,_get:Polymer.Base._get,_EVENT_CHANGED:Polymer.Base._EVENT_CHANGED,_notifyPath:Polymer.Base._notifyPath,_notifyPathUp:Polymer.Base._notifyPathUp,_pathEffector:Polymer.Base._pathEffector,_annotationPathEffect:Polymer.Base._annotationPathEffect,_complexObserverPathEffect:Polymer.Base._complexObserverPathEffect,_annotatedComputationPathEffect:Polymer.Base._annotatedComputationPathEffect,_computePathEffect:Polymer.Base._computePathEffect,_notifyBoundPaths:Polymer.Base._notifyBoundPaths,_getPathParts:Polymer.Base._getPathParts})}})}(),Polymer.Base._addFeature({resolveUrl:function(e){return Polymer.ResolveUrl.resolveUrl(e,this._importPath)}}),Polymer.CssParse={parse:function(e){return e=this._clean(e),this._parseCss(this._lex(e),e)},_clean:function(e){return e.replace(this._rx.comments,"").replace(this._rx.port,"")},_lex:function(e){for(var t={start:0,end:e.length},i=t,r=0,n=e.length;r<n;r++)switch(e[r]){case this.OPEN_BRACE:i.rules||(i.rules=[]);var o=i;i={start:r+1,parent:o,previous:o.rules[o.rules.length-1]},o.rules.push(i);break;case this.CLOSE_BRACE:i.end=r+1,i=i.parent||t}return t},_parseCss:function(e,t){var i=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=i.trim(),e.parent){var r=e.previous?e.previous.end:e.parent.start;i=t.substring(r,e.start-1),i=(i=(i=this._expandUnicodeEscapes(i)).replace(this._rx.multipleSpaces," ")).substring(i.lastIndexOf(";")+1);var n=e.parsedSelector=e.selector=i.trim();e.atRule=0===n.indexOf(this.AT_START),e.atRule?0===n.indexOf(this.MEDIA_START)?e.type=this.types.MEDIA_RULE:n.match(this._rx.keyframesRule)&&(e.type=this.types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(this._rx.multipleSpaces).pop()):0===n.indexOf(this.VAR_START)?e.type=this.types.MIXIN_RULE:e.type=this.types.STYLE_RULE}var o=e.rules;if(o)for(var s,a=0,l=o.length;a<l&&(s=o[a]);a++)this._parseCss(s,t);return e},_expandUnicodeEscapes:function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))},stringify:function(e,t,i){i=i||"";var r="";if(e.cssText||e.rules){var n=e.rules;if(n&&!this._hasMixinRules(n))for(var o,s=0,a=n.length;s<a&&(o=n[s]);s++)r=this.stringify(o,t,r);else(r=(r=t?e.cssText:this.removeCustomProps(e.cssText)).trim())&&(r="  "+r+"\n")}
1return r&&(e.selector&&(i+=e.selector+" "+this.OPEN_BRACE+"\n"),i+=r,e.selector&&(i+=this.CLOSE_BRACE+"\n\n")),i},_hasMixinRules:function(e){return 0===e[0].selector.indexOf(this.VAR_START)},removeCustomProps:function(e){return e=this.removeCustomPropAssignment(e),this.removeCustomPropApply(e)},removeCustomPropAssignment:function(e){return e.replace(this._rx.customProp,"").replace(this._rx.mixinProp,"")},removeCustomPropApply:function(e){return e.replace(this._rx.mixinApply,"").replace(this._rx.varApply,"")},types:{STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE:"{",CLOSE_BRACE:"}",_rx:{comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START:"--",MEDIA_START:"@media",AT_START:"@"},Polymer.StyleUtil=(a=Polymer.Settings,{unscopedStyleImports:new WeakMap,SHADY_UNSCOPED_ATTR:"shady-unscoped",NATIVE_VARIABLES:Polymer.Settings.useNativeCSSProperties,MODULE_STYLES_SELECTOR:"style, link[rel=import][type~=css], template",INCLUDE_ATTR:"include",toCssText:function(e,t){return"string"==typeof e&&(e=this.parser.parse(e)),t&&this.forEachRule(e,t),this.parser.stringify(e,this.NATIVE_VARIABLES)},forRulesInStyles:function(e,t,i){if(e)for(var r,n=0,o=e.length;n<o&&(r=e[n]);n++)this.forEachRuleInStyle(r,t,i)},forActiveRulesInStyles:function(e,t,i){if(e)for(var r,n=0,o=e.length;n<o&&(r=e[n]);n++)this.forEachRuleInStyle(r,t,i,!0)},rulesForStyle:function(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=this.parser.parse(e.textContent)),e.__cssRules},isKeyframesSelector:function(e){return e.parent&&e.parent.type===this.ruleTypes.KEYFRAMES_RULE},forEachRuleInStyle:function(e,t,i,r){var n,o,s=this.rulesForStyle(e);t&&(n=function(i){t(i,e)}),i&&(o=function(t){i(t,e)}),this.forEachRule(s,n,o,r)},forEachRule:function(e,t,i,r){if(e){var n=!1;if(r&&e.type===this.ruleTypes.MEDIA_RULE){var o=e.selector.match(this.rx.MEDIA_MATCH);o&&(window.matchMedia(o[1]).matches||(n=!0))}e.type===this.ruleTypes.STYLE_RULE?t(e):i&&e.type===this.ruleTypes.KEYFRAMES_RULE?i(e):e.type===this.ruleTypes.MIXIN_RULE&&(n=!0);var s=e.rules;if(s&&!n)for(var a,l=0,c=s.length;l<c&&(a=s[l]);l++)this.forEachRule(a,t,i,r)}},applyCss:function(e,t,i,r){var n=this.createScopeStyle(e,t);return this.applyStyle(n,i,r)},applyStyle:function(e,t,i){t=t||document.head;var r=i&&i.nextSibling||t.firstChild;return this.__lastHeadApplyNode=e,t.insertBefore(e,r)},createScopeStyle:function(e,t){var i=document.createElement("style");return t&&i.setAttribute("scope",t),i.textContent=e,i},__lastHeadApplyNode:null,applyStylePlaceHolder:function(e){var t=document.createComment(" Shady DOM styles for "+e+" "),i=this.__lastHeadApplyNode?this.__lastHeadApplyNode.nextSibling:null,r=document.head;return r.insertBefore(t,i||r.firstChild),this.__lastHeadApplyNode=t,t},cssFromModules:function(e,t){for(var i=e.trim().split(/\s+/),r="",n=0;n<i.length;n++)r+=this.cssFromModule(i[n],t);return r},cssFromModule:function(e,t){var i=Polymer.DomModule.import(e);return i&&!i._cssText&&(i._cssText=this.cssFromElement(i)),!i&&t&&console.warn("Could not find style data in module named",e),i&&i._cssText||""},cssFromElement:function(e){for(var t,i="",r=e.content||e,n=Polymer.TreeApi.arrayCopy(r.querySelectorAll(this.MODULE_STYLES_SELECTOR)),o=0;o<n.length;o++)if("template"===(t=n[o]).localName)t.hasAttribute("preserve-content")||(i+=this.cssFromElement(t));else if("style"===t.localName){var s=t.getAttribute(this.INCLUDE_ATTR);s&&(i+=this.cssFromModules(s,!0)),(t=t.__appliedElement||t).parentNode.removeChild(t);var l=this.resolveCss(t.textContent,e.ownerDocument);!a.useNativeShadow&&t.hasAttribute(this.SHADY_UNSCOPED_ATTR)?(t.textContent=l,document.head.insertBefore(t,document.head.firstChild)):i+=l}else if(t.import&&t.import.body){var c=this.resolveCss(t.import.body.textContent,t.import);
1if(!a.useNativeShadow&&t.hasAttribute(this.SHADY_UNSCOPED_ATTR)){if(!this.unscopedStyleImports.has(t.import)){this.unscopedStyleImports.set(t.import,!0);var u=document.createElement("style");u.setAttribute(this.SHADY_UNSCOPED_ATTR,""),u.textContent=c,document.head.insertBefore(u,document.head.firstChild)}}else i+=c}return i},styleIncludesToTemplate:function(e){for(var t,i=e.content.querySelectorAll("style[include]"),r=0;r<i.length;r++)(t=i[r]).parentNode.insertBefore(this._includesToFragment(t.getAttribute("include")),t)},_includesToFragment:function(e){for(var t=e.trim().split(" "),i=document.createDocumentFragment(),r=0;r<t.length;r++){var n=Polymer.DomModule.import(t[r],"template");n&&this._addStylesToFragment(i,n.content)}return i},_addStylesToFragment:function(e,t){for(var i,r=t.querySelectorAll("style"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("include");o&&e.appendChild(this._includesToFragment(o)),i.textContent&&e.appendChild(i.cloneNode(!0))}},isTargetedBuild:function(e){return a.useNativeShadow?"shadow"===e:"shady"===e},cssBuildTypeForModule:function(e){var t=Polymer.DomModule.import(e);if(t)return this.getCssBuildType(t)},getCssBuildType:function(e){return e.getAttribute("css-build")},_findMatchingParen:function(e,t){for(var i=0,r=t,n=e.length;r<n;r++)switch(e[r]){case"(":i++;break;case")":if(0==--i)return r}return-1},processVariableAndFallback:function(e,t){var i=e.indexOf("var(");if(-1===i)return t(e,"","","");var r=this._findMatchingParen(e,i+3),n=e.substring(i+4,r),o=e.substring(0,i),s=this.processVariableAndFallback(e.substring(r+1),t),a=n.indexOf(",");return-1===a?t(o,n.trim(),"",s):t(o,n.substring(0,a).trim(),n.substring(a+1).trim(),s)},rx:{VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])"},resolveCss:Polymer.ResolveUrl.resolveCss,parser:Polymer.CssParse,ruleTypes:Polymer.CssParse.types}),Polymer.StyleTransformer=function(){var e=Polymer.StyleUtil,t=Polymer.Settings,i={dom:function(e,t,i,r){this._transformDom(e,t||"",i,r)},_transformDom:function(e,t,i,r){e.setAttribute&&this.element(e,t,i,r);for(var n=Polymer.dom(e).childNodes,o=0;o<n.length;o++)this._transformDom(n[o],t,i,r)},element:function(e,t,i,n){if(i)n?e.removeAttribute(r):e.setAttribute(r,t);else if(t)if(e.classList)n?(e.classList.remove(r),e.classList.remove(t)):(e.classList.add(r),e.classList.add(t));else if(e.getAttribute){var o=e.getAttribute(v);n?o&&e.setAttribute(v,o.replace(r,"").replace(t,"")):e.setAttribute(v,(o?o+" ":"")+r+" "+t)}},elementStyles:function(i,r){var n,o=i._styles,s="",a=i.__cssBuild,l=t.useNativeShadow||"shady"===a;if(l){var u=this;n=function(e){e.selector=u._slottedToContent(e.selector),e.selector=e.selector.replace(c,":host > *"),e.selector=u._dirShadowTransform(e.selector),r&&r(e)}}for(var h,d=0,p=o.length;d<p&&(h=o[d]);d++){var f=e.rulesForStyle(h);s+=l?e.toCssText(f,n):this.css(f,i.is,i.extends,r,i._scopeCssViaAttr)+"\n\n"}return s.trim()},css:function(t,i,r,n,o){var s=this._calcHostScope(i,r);i=this._calcElementScope(i,o);var a=this;return e.toCssText(t,(function(e){e.isScoped||(a.rule(e,i,s),e.isScoped=!0),n&&n(e,i,s)}))},_calcElementScope:function(e,t){return e?t?_+e+y:m+e:""},_calcHostScope:function(e,t){return t?"[is="+e+"]":e},rule:function(e,t,i){this._transformRule(e,this._transformComplexSelector,t,i)},_transformRule:function(e,t,i,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,i,r)},_splitSelectorList:function(t){for(var i=[],r="",n=0;n>=0&&n<t.length;n++)if("("===t[n]){var s=e._findMatchingParen(t,n);r+=t.slice(n,s+1),n=s}else t[n]===o?(i.push(r),r=""):r+=t[n];return r&&i.push(r),0===i.length&&i.push(t),i},_transformRuleCss:function(t,i,r,n){var s=this._splitSelectorList(t.selector);if(!e.isKeyframesSelector(t))for(var a,l=0,c=s.length;l<c&&(a=s[l]);l++)s[l]=i.call(this,a,r,n);return s.join(o)},_ensureScopedDir:function(e){var t=e.match(w);return t&&""===t[1]&&t[0].length===e.length&&(e="*"+e),e},_additionalDirSelectors:function(e,t,i){return e&&t?o+(i=i||"")+" "+e+" "+t:""},_transformComplexSelector:function(e,t,i){var r=!1,n=!1,a=!1,u=this;return e=e.trim(),e=(e=(e=this._slottedToContent(e)).replace(c,":host > *")).replace(b,l+" $1"),e=(e=this._ensureScopedDir(e)).replace(s,(function(e,o,s){if(r)s=s.replace(f," ");else{var l=u._transformCompoundSelector(s,o,t,i);r=r||l.stop,n=n||l.hostContext,a=a||l.dir,o=l.combinator,s=l.value}return o+s})),n&&(e=e.replace(d,(function(e,t,r,n){var s=t+r+" "+i+n+o+" "+t+i+r+n;return a&&(s+=u._additionalDirSelectors(r,n,i)),s}))),e},_transformDir:function(e){return e=(e=e.replace(E,A)).replace(w,x)},_transformCompoundSelector:function(e,t,i,r){var n,o=e.search(f),s=!1,a=!1;return e.match(w)&&(e=this._transformDir(e),a=!0),e.indexOf(h)>=0?s=!0:e.indexOf(l)>=0?e=this._transformHostSelector(e,r):0!==o&&(e=i?this._transformSimpleSelector(e,i):e),e.indexOf(p)>=0&&(t=""),o>
1=0&&(e=e.replace(f," "),n=!0),{value:e,combinator:t,stop:n,hostContext:s,dir:a}},_transformSimpleSelector:function(e,t){var i=e.split(g);return i[0]+=t,i.join(g)},_transformHostSelector:function(e,t){var i=e.match(u),r=i&&i[2].trim()||"";return r?r[0].match(a)?e.replace(u,(function(e,i,r){return t+r})):r.split(a)[0]===t?r:P:e.replace(l,t)},documentRule:function(e){e.selector=e.parsedSelector,this.normalizeRootSelector(e),t.useNativeShadow||this._transformRule(e,this._transformDocumentSelector)},normalizeRootSelector:function(e){e.selector=e.selector.replace(c,"html");var t=this._splitSelectorList(e.selector);t=t.filter((function(e){return!e.match(S)})),e.selector=t.join(o)},_transformDocumentSelector:function(e){return this._transformComplexSelector(e,n)},_slottedToContent:function(e){return e.replace(C,p+"> $1")},_dirShadowTransform:function(e){return e.match(/:dir\(/)?this._splitSelectorList(e).map((function(e){e=this._ensureScopedDir(e),e=this._transformDir(e);var t=d.exec(e);return t&&(e+=this._additionalDirSelectors(t[2],t[3],"")),e}),this).join(o):e},SCOPE_NAME:"style-scope"},r=i.SCOPE_NAME,n=":not(["+r+"]):not(."+r+")",o=",",s=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,a=/[[.:#*]/,l=":host",c=":root",u=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,h=":host-context",d=/(.*)(?::host-context)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))(.*)/,p="::content",f=/::content|::shadow|\/deep\//,m=".",_="["+r+"~=",y="]",g=":",v="class",b=new RegExp("^("+p+")"),P="should_not_match",C=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/g,S=/:host(?:\s*>\s*\*)?/,w=/(.*):dir\((ltr|rtl)\)/,x=':host-context([dir="$2"]) $1',E=/:host\(:dir\((rtl|ltr)\)\)/g,A=':host-context([dir="$1"])';return i}(),Polymer.StyleExtends=(l=Polymer.StyleUtil,{hasExtends:function(e){return Boolean(e.match(this.rx.EXTEND))},transform:function(e){var t=l.rulesForStyle(e),i=this;return l.forEachRule(t,(function(e){if(i._mapRuleOntoParent(e),e.parent)for(var t;t=i.rx.EXTEND.exec(e.cssText);){var r=t[1],n=i._findExtendor(r,e);n&&i._extendRule(e,n)}e.cssText=e.cssText.replace(i.rx.EXTEND,"")})),l.toCssText(t,(function(e){e.selector.match(i.rx.STRIP)&&(e.cssText="")}),!0)},_mapRuleOntoParent:function(e){if(e.parent){for(var t=e.parent.map||(e.parent.map={}),i=e.selector.split(","),r=0;r<i.length;r++)t[i[r].trim()]=e;return t}},_findExtendor:function(e,t){return t.parent&&t.parent.map&&t.parent.map[e]||this._findExtendor(e,t.parent)},_extendRule:function(e,t){e.parent!==t.parent&&this._cloneAndAddRuleToParent(t,e.parent),e.extends=e.extends||[],e.extends.push(t),t.selector=t.selector.replace(this.rx.STRIP,""),t.selector=(t.selector&&t.selector+",\n")+e.selector,t.extends&&t.extends.forEach((function(t){this._extendRule(e,t)}),this)},_cloneAndAddRuleToParent:function(e,t){(e=Object.create(e)).parent=t,e.extends&&(e.extends=e.extends.slice()),t.rules.push(e)},rx:{EXTEND:/@extends\(([^)]*)\)\s*?;/gim,STRIP:/%[^,]*$/}}),Polymer.ApplyShim=function(){"use strict";var e=Polymer.StyleUtil,t=e.rx.MIXIN_MATCH,i=e.rx.VAR_ASSIGN,r=/var\(\s*(--[^,]*),\s*(--[^)]*)\)/g,n=/;\s*/m,o=/^\s*(initial)|(inherit)\s*$/,s={};function a(e,t){e=e.trim(),s[e]={properties:t,dependants:{}}}function l(e){return e=e.trim(),s[e]}function c(e,t){var i=o.exec(t);return i&&(t=i[1]?m._getInitialValueForProperty(e):"apply-shim-inherit"),t}function u(e){for(var t,i,r,n,o=e.split(";"),s={},a=0;a<o.length;a++)(r=o[a])&&(n=r.split(":")).length>1&&(i=c(t=n[0].trim(),n.slice(1).join(":")),s[t]=i);return s}function h(t,i,r,n){if(r&&e.processVariableAndFallback(r,(function(e,t){t&&l(t)&&(n="@apply "+t+";")})),!n)return t;var o=f(n),s=t.slice(0,t.indexOf("--")),c=u(o),h=c,d=l(i),p=d&&d.properties;p?(h=Object.create(p),h=Polymer.Base.mixin(h,c)):a(i,h);var _,y,g=[],v=!1;for(_ in h)void 0===(y=c[_])&&(y="initial"),p&&!(_ in p)&&(v=!0),g.push(i+"_-_"+_+": "+y);return v&&function(e){var t=m.__currentElementProto,i=t&&t.is;for(var r in e.dependants)r!==i&&(e.dependants[r].__applyShimInvalid=!0)}(d),d&&(d.properties=h),r&&(s=t+";"+s),s+g.join("; ")+";"}function d(e,t,i){return"var("+t+",var("+i+"))"}function p(e,t){var i=[],r=l(e=e.replace(n,""));if(r||(a(e,{}),r=l(e)),r){var o,s,c,u=m.__currentElementProto;for(o in u&&(r.dependants[u.is]=u),r.properties)s=[o,": var(",e,"_-_",o],(c=t&&t[o])&&s.push(",",c),s.push(")"),i.push(s.join(""))}return i.join("; ")}function f(e){for(var i;i=t.exec(e);){var r=i[0],n=i[1],o=i.index,s=o+r.indexOf("@apply"),a=o+r.length,l=e.slice(0,s),c=e.slice(a),h=p(n,u(l));e=[l,h,c].join(""),t.lastIndex=o+h.length}return e}var m={_measureElement:null,_map:s,_separator:"_-_",transform:function(t,i){this.__currentElementProto=i,e.forRulesInStyles(t,this._boundFindDefinitions),e.forRulesInStyles(t,this._boundFindApplications),i&&(i.__applyShimInvalid=!1),this.__currentElementProto=null},_findDefinitions:function(e){var t=e.parsedCssText;t=(t=t.replace(r,d)).replace(i,h),e.cssText=t,":root"===e.selector&&(e.selector=":host > *")},_findApplications:function(e){e.cssText=f(e.cssText)},transformRule:function(e){this._findDefinitions(e),this._findApplications(e)},_getInitialValueForProperty:function(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}};return m._boundTransformRule=m.transformRule.bind(m),m._boundFindDefinitions=m._findDefinitions.bind(m),m._boundFindApplications=m._findApplications.bind(m),m}(),function(){var e=Polymer.Base._prepElement,t=Polymer.Settings.useNativeShadow,i=Polymer.StyleUtil,r=Polymer.StyleTransformer,n=Polymer.StyleExtends,o=Polymer.ApplyShim,s=Polymer.Settings;Polymer.Base._addFeature({_prepElement:function(t){this._encapsulateStyle&&"shady"!==this.__cssBuild&&r.element(t,this.is,this._scopeCssViaAttr),e.call(this,t)},_prepStyles:function(){void 0===this._encapsulateStyle&&(this._encapsulateStyle=!t),t||(this._scopeStyle=i.applyStylePlaceHolder(this.is)),this.__cssBuild=i.cssBuildTypeForModule(this.is)},_prepShimStyles:function(){if(this._template){var e=i.isTargetedBuild(this.__cssBuild);if(s.useNativeCSSProperties&&"shadow"===this.__cssBuild&&e)return void(s.preserveStyleIncludes&&i.styleIncludesToTemplate(this._template));this._styles=this._styles||this._collectStyles(),s.useNativeCSSProperties&&!this.__cssBuild&&o.transform(this._styles,this);var n=s.useNativeCSSProperties&&e?this._styles.length&&this._styles[0].textContent.trim():r.elementStyles(this);this._prepStyleProperties(),!this._needsStyleProperties()&&n&&i.applyCss(n,this.is,t?this._template.content:null,this._scopeStyle)}else this._styles=[]},_collectStyles:function(){var e=[],t="",r=this.styleModules;if(r)for(var o,s=0,a=r.length;s<a&&(o=r[s]);s++)t+=i.cssFromModule(o);t+=i.cssFromModule(this.is);var l=this._template&&this._template.parentNode;
1if(!this._template||l&&l.id.toLowerCase()===this.is||(t+=i.cssFromElement(this._template)),t){var c=document.createElement("style");c.textContent=t,n.hasExtends(c.textContent)&&(t=n.transform(c)),e.push(c)}return e},_elementAdd:function(e){this._encapsulateStyle&&(e.__styleScoped?e.__styleScoped=!1:r.dom(e,this.is,this._scopeCssViaAttr))},_elementRemove:function(e){this._encapsulateStyle&&r.dom(e,this.is,this._scopeCssViaAttr,!0)},scopeSubtree:function(e,i){if(!t){var r=this,n=function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e.getAttribute("class");e.setAttribute("class",r._scopeElementClass(e,t));for(var i,n=e.querySelectorAll("*"),o=0;o<n.length&&(i=n[o]);o++)t=i.getAttribute("class"),i.setAttribute("class",r._scopeElementClass(i,t))}};if(n(e),i){var o=new MutationObserver((function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)if(t.addedNodes)for(var r=0;r<t.addedNodes.length;r++)n(t.addedNodes[r])}));return o.observe(e,{childList:!0,subtree:!0}),o}}}})}(),Polymer.StyleProperties=function(){"use strict";var e=Polymer.DomApi.matchesSelector,t=Polymer.StyleUtil,i=Polymer.StyleTransformer,r=navigator.userAgent.match("Trident"),n=Polymer.Settings;return{decorateStyles:function(e,r){var n=this,o={},s=[],a=0,l=i._calcHostScope(r.is,r.extends);t.forRulesInStyles(e,(function(e,i){n.decorateRule(e),e.index=a++,n.whenHostOrRootRule(r,e,i,(function(i){if(e.parent.type===t.ruleTypes.MEDIA_RULE&&(r.__notStyleScopeCacheable=!0),i.isHost){var n=i.selector.split(" ").some((function(e){return 0===e.indexOf(l)&&e.length!==l.length}));r.__notStyleScopeCacheable=r.__notStyleScopeCacheable||n}})),n.collectPropertiesInCssText(e.propertyInfo.cssText,o)}),(function(e){s.push(e)})),e._keyframes=s;var c=[];for(var u in o)c.push(u);return c},decorateRule:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},i={};return this.collectProperties(e,i)&&(t.properties=i,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t},collectProperties:function(e,t){var i=e.propertyInfo;if(!i){for(var r,n,o,s=this.rx.VAR_ASSIGN,a=e.parsedCssText;r=s.exec(a);)"inherit"!==(n=(r[2]||r[3]).trim())&&(t[r[1].trim()]=n),o=!0;return o}if(i.properties)return Polymer.Base.mixin(t,i.properties),!0},collectCssText:function(e){return this.collectConsumingCssText(e.parsedCssText)},collectConsumingCssText:function(e){return e.replace(this.rx.BRACKETED,"").replace(this.rx.VAR_ASSIGN,"")},collectPropertiesInCssText:function(e,t){for(var i;i=this.rx.VAR_CONSUMED.exec(e);){var r=i[1];":"!==i[2]&&(t[r]=!0)}},reify:function(e){for(var t,i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++)e[t=i[r]]=this.valueForProperty(e[t],e)},valueForProperty:function(e,i){if(e)if(e.indexOf(";")>=0)e=this.valueForProperties(e,i);else{var r=this;e=t.processVariableAndFallback(e,(function(e,t,n,o){var s=r.valueForProperty(i[t],i);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=r.valueForProperty(i[n]||n,i)||n,e+(s||"")+o}))}return e&&e.trim()||""},valueForProperties:function(e,t){for(var i,r,n=e.split(";"),o=0;o<n.length;o++)if(i=n[o]){if(this.rx.MIXIN_MATCH.lastIndex=0,r=this.rx.MIXIN_MATCH.exec(i))i=this.valueForProperty(t[r[1]],t);else{var s=i.indexOf(":");if(-1!==s){var a=i.substring(s);a=a.trim(),a=this.valueForProperty(a,t)||a,i=i.substring(0,s)+a}}n[o]=i&&i.lastIndexOf(";")===i.length-1?i.slice(0,-1):i||""}return n.join(";")},applyProperties:function(e,t){var i="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(i=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=i},applyKeyframeTransforms:function(e,t){var i=e.cssText,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=this.rx.ANIMATION_MATCH.test(i)),e.hasAnimations)if(null==e.keyframeNamesToTransform)for(var n in e.keyframeNamesToTransform=[],t)i!==(r=(0,t[n])(i))&&(i=r,e.keyframeNamesToTransform.push(n));else{for(var o=0;o<e.keyframeNamesToTransform.length;++o)i=(0,t[e.keyframeNamesToTransform[o]])(i);r=i}e.cssText=r},propertyDataFromStyles:function(i,r){var n={},o=this,s=[];return t.forActiveRulesInStyles(i,(function(t){t.propertyInfo||o.decorateRule(t);var i=t.transformedSelector||t.parsedSelector;r&&t.propertyInfo.properties&&i&&e.call(r,i)&&(o.collectProperties(t,n),function(e,t){var i=parseInt(e/32),r=1<<e%32;t[i]=(t[i]||0)|r}(t.index,s))})),{properties:n,key:s}},_rootSelector:/:root|:host\s*>\s*\*/,_checkRoot:function(e,t){return Boolean(t.match(this._rootSelector))||"html"===e&&t.indexOf("html")>-1},whenHostOrRootRule:function(e,t,r,o){if(t.propertyInfo||self.decorateRule(t),t.propertyInfo.properties){var s=e.is?i._calcHostScope(e.is,e.extends):"html",a=t.parsedSelector,l=this._checkRoot(s,a),c=!l&&0===a.indexOf(":host");if("shady"===(e.__cssBuild||r.__cssBuild)&&(c=!(l=a===s+" > *."+s||a.indexOf("html")>-1)&&0===a.indexOf(s)),l||c){var u=s;c&&(n.useNativeShadow&&!t.transformedSelector&&(t.transformedSelector=i._transformRuleCss(t,i._transformComplexSelector,e.is,s)),u=t.transformedSelector||t.parsedSelector),l&&"html"===s&&(u=t.transformedSelector||t.parsedSelector),o({selector:u,isHost:c,isRoot:l})}}},hostAndRootPropertiesForScope:function(i){var r={},n={},o=this;return t.forActiveRulesInStyles(i._styles,(function(t,s){o.whenHostOrRootRule(i,t,s,(function(s){var a=i._element||i;e.call(a,s.selector)&&(s.isHost?o.collectProperties(t,r):o.collectProperties(t,n))}
1))})),{rootProps:n,hostProps:r}},transformStyles:function(e,t,r){var o=this,s=i._calcHostScope(e.is,e.extends),a=e.extends?"\\"+s.slice(0,-1)+"\\]":s,l=new RegExp(this.rx.HOST_PREFIX+a+this.rx.HOST_SUFFIX),c=this._elementKeyframeTransforms(e,r);return i.elementStyles(e,(function(i){o.applyProperties(i,t),n.useNativeShadow||Polymer.StyleUtil.isKeyframesSelector(i)||!i.cssText||(o.applyKeyframeTransforms(i,c),o._scopeSelector(i,l,s,e._scopeCssViaAttr,r))}))},_elementKeyframeTransforms:function(e,t){var i=e._styles._keyframes,r={};if(!n.useNativeShadow&&i)for(var o=0,s=i[o];o<i.length;s=i[++o])this._scopeKeyframes(s,t),r[s.keyframesName]=this._keyframesRuleTransformer(s);return r},_keyframesRuleTransformer:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}},_scopeKeyframes:function(e,t){e.keyframesNameRx=new RegExp("\\b"+e.keyframesName+"(?!\\B|-)","g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)},_hasDirOrHostContext:function(e){return/:host-context|:dir/.test(e)},_scopeSelector:function(e,t,r,n,o){e.transformedSelector=e.transformedSelector||e.selector;for(var s,a=e.transformedSelector,l=i._calcElementScope(o,n),c=i._calcElementScope(r,n),u=a.split(","),h=this._hasDirOrHostContext(e.parsedSelector),d=0,p=u.length;d<p&&(s=u[d]);d++)u[d]=s.match(t)?s.replace(r,l):h?s.replace(c,l+" "+c):l+" "+s;e.selector=u.join(",")},applyElementScopeSelector:function(e,t,r,n){var o=n?e.getAttribute(i.SCOPE_NAME):e.getAttribute("class")||"",s=r?o.replace(r,t):(o?o+" ":"")+this.XSCOPE_NAME+" "+t;o!==s&&(n?e.setAttribute(i.SCOPE_NAME,s):e.setAttribute("class",s))},applyElementStyle:function(e,i,o,s){var a=s?s.textContent||"":this.transformStyles(e,i,o),l=e._customStyle;return l&&!n.useNativeShadow&&l!==s&&(l._useCount--,l._useCount<=0&&l.parentNode&&l.parentNode.removeChild(l)),n.useNativeShadow?e._customStyle?(e._customStyle.textContent=a,s=e._customStyle):a&&(s=t.applyCss(a,o,e.root,e._scopeStyle)):s?s.parentNode||(r&&a.indexOf("@media")>-1&&(s.textContent=a),t.applyStyle(s,null,e._scopeStyle)):a&&(s=t.applyCss(a,o,null,e._scopeStyle)),s&&(s._useCount=s._useCount||0,e._customStyle!=s&&s._useCount++,e._customStyle=s),s},mixinCustomStyle:function(e,t){var i;for(var r in t)((i=t[r])||0===i)&&(e[r]=i)},updateNativeStyleProperties:function(e,t){var i=e.__customStyleProperties;if(i)for(var r=0;r<i.length;r++)e.style.removeProperty(i[r]);var n=[];for(var o in t)null!==t[o]&&(e.style.setProperty(o,t[o]),n.push(o));e.__customStyleProperties=n},rx:t.rx,XSCOPE_NAME:"x-scope"}}(),Polymer.StyleCache=function(){this.cache={}},Polymer.StyleCache.prototype={MAX:100,store:function(e,t,i,r){t.keyValues=i,t.styles=r;var n=this.cache[e]=this.cache[e]||[];n.push(t),n.length>this.MAX&&n.shift()},retrieve:function(e,t,i){var r=this.cache[e];if(r)for(var n,o=r.length-1;o>=0;o--)if(i===(n=r[o]).styles&&this._objectsEqual(t,n.keyValues))return n},clear:function(){this.cache={}},_objectsEqual:function(e,t){var i,n;for(var o in e)if(i=e[o],n=t[o],!("object"===r(i)&&i?this._objectsStrictlyEqual(i,n):i===n))return!1;return!Array.isArray(e)||e.length===t.length},_objectsStrictlyEqual:function(e,t){return this._objectsEqual(e,t)&&this._objectsEqual(t,e)}},Polymer.StyleDefaults=(c=Polymer.StyleProperties,u=Polymer.StyleCache,h=Polymer.Settings.useNativeCSSProperties,{_styles:[],_properties:null,customStyle:{},_styleCache:new u,_element:Polymer.DomApi.wrap(document.documentElement),addStyle:function(e){this._styles.push(e),this._properties=null},get _styleProperties(){return this._properties||(c.decorateStyles(this._styles,this),this._styles._scopeStyleProperties=null,this._properties=c.hostAndRootPropertiesForScope(this).rootProps,c.mixinCustomStyle(this._properties,this.customStyle),c.reify(this._properties)),this._properties},hasStyleProperties:function(){return Boolean(this._properties)},_needsStyleProperties:function(){},_computeStyleProperties:function(){return this._styleProperties},updateStyles:function(e){this._properties=null,e&&Polymer.Base.mixin(this.customStyle,e),this._styleCache.clear();for(var t,i=0;i<this._styles.length;i++)(t=(t=this._styles[i]).__importElement||t)._apply();h&&c.updateNativeStyleProperties(document.documentElement,this.customStyle)}
1}),function(){"use strict";var e=Polymer.Base.serializeValueToAttribute,t=Polymer.StyleProperties,i=Polymer.StyleTransformer,r=Polymer.StyleDefaults,n=Polymer.Settings.useNativeShadow,o=Polymer.Settings.useNativeCSSProperties;Polymer.Base._addFeature({_prepStyleProperties:function(){o||(this._ownStylePropertyNames=this._styles&&this._styles.length?t.decorateStyles(this._styles,this):null)},customStyle:null,getComputedStyleValue:function(e){return o||this._styleProperties||this._computeStyleProperties(),!o&&this._styleProperties&&this._styleProperties[e]||getComputedStyle(this).getPropertyValue(e)},_setupStyleProperties:function(){this.customStyle={},this._styleCache=null,this._styleProperties=null,this._scopeSelector=null,this._ownStyleProperties=null,this._customStyle=null},_needsStyleProperties:function(){return Boolean(!o&&this._ownStylePropertyNames&&this._ownStylePropertyNames.length)},_validateApplyShim:function(){if(this.__applyShimInvalid){Polymer.ApplyShim.transform(this._styles,this.__proto__);var e=i.elementStyles(this);if(n){var t=this._template.content.querySelector("style");t&&(t.textContent=e)}else{var r=this._scopeStyle&&this._scopeStyle.nextSibling;r&&(r.textContent=e)}}},_beforeAttached:function(){this._scopeSelector&&!this.__stylePropertiesInvalid||!this._needsStyleProperties()||(this.__stylePropertiesInvalid=!1,this._updateStyleProperties())},_findStyleHost:function(){for(var e,t=this;e=Polymer.dom(t).getOwnerRoot();){if(Polymer.isInstance(e.host))return e.host;t=e.host}return r},_updateStyleProperties:function(){var e,i=this._findStyleHost();i._styleProperties||i._computeStyleProperties(),i._styleCache||(i._styleCache=new Polymer.StyleCache);var r=t.propertyDataFromStyles(i._styles,this),o=!this.__notStyleScopeCacheable;o&&(r.key.customStyle=this.customStyle,e=i._styleCache.retrieve(this.is,r.key,this._styles));var a=Boolean(e);a?this._styleProperties=e._styleProperties:this._computeStyleProperties(r.properties),this._computeOwnStyleProperties(),a||(e=s.retrieve(this.is,this._ownStyleProperties,this._styles));var l=Boolean(e)&&!a,c=this._applyStyleProperties(e);a||(e={style:c=c&&n?c.cloneNode(!0):c,_scopeSelector:this._scopeSelector,_styleProperties:this._styleProperties},o&&(r.key.customStyle={},this.mixin(r.key.customStyle,this.customStyle),i._styleCache.store(this.is,e,r.key,this._styles)),l||s.store(this.is,Object.create(e),this._ownStyleProperties,this._styles))},_computeStyleProperties:function(e){var i=this._findStyleHost();i._styleProperties||i._computeStyleProperties();var r=Object.create(i._styleProperties),n=t.hostAndRootPropertiesForScope(this);this.mixin(r,n.hostProps),e=e||t.propertyDataFromStyles(i._styles,this).properties,this.mixin(r,e),this.mixin(r,n.rootProps),t.mixinCustomStyle(r,this.customStyle),t.reify(r),this._styleProperties=r},_computeOwnStyleProperties:function(){for(var e,t={},i=0;i<this._ownStylePropertyNames.length;i++)t[e=this._ownStylePropertyNames[i]]=this._styleProperties[e];this._ownStyleProperties=t},_scopeCount:0,_applyStyleProperties:function(e){var i=this._scopeSelector;this._scopeSelector=e?e._scopeSelector:this.is+"-"+this.__proto__._scopeCount++;var r=t.applyElementStyle(this,this._styleProperties,this._scopeSelector,e&&e.style);return n||t.applyElementScopeSelector(this,this._scopeSelector,i,this._scopeCssViaAttr),r},serializeValueToAttribute:function(t,i,r){if(r=r||this,"class"===i&&!n){var o=r===this?this.domHost||this.dataHost:this;o&&(t=o._scopeElementClass(r,t))}r=this.shadyRoot&&this.shadyRoot._hasDistributed?Polymer.dom(r):r,e.call(this,t,i,r)},_scopeElementClass:function(e,t){return n||this._scopeCssViaAttr||(t=(t?t+" ":"")+a+" "+this.is+(e._scopeSelector?" "+l+" "+e._scopeSelector:"")),t},updateStyles:function(e){e&&this.mixin(this.customStyle,e),o?t.updateNativeStyleProperties(this,this.customStyle):(this.isAttached?this._needsStyleProperties()?this._updateStyleProperties():this._styleProperties=null:this.__stylePropertiesInvalid=!0,this._styleCache&&this._styleCache.clear(),this._updateRootStyles())},_updateRootStyles:function(e){e=e||this.root;for(var t,i=Polymer.dom(e)._query((function(e){return e.shadyRoot||e.shadowRoot})),r=0,n=i.length;r<n&&(t=i[r]);r++)t.updateStyles&&t.updateStyles()}}),Polymer.updateStyles=function(e){r.updateStyles(e),Polymer.Base._updateRootStyles(document)};var s=new Polymer.StyleCache;Polymer.customStyleCache=s;
1var a=i.SCOPE_NAME,l=t.XSCOPE_NAME}(),Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this.factoryImpl&&this._prepConstructor(),this._prepStyles()},_finishRegisterFeatures:function(){this._prepTemplate(),this._prepShimStyles(),this._prepAnnotations(),this._prepEffects(),this._prepBehaviors(),this._prepPropertyInfo(),this._prepBindings(),this._prepShady()},_prepBehavior:function(e){this._addPropertyEffects(e.properties),this._addComplexObserverEffects(e.observers),this._addHostAttributes(e.hostAttributes)},_initFeatures:function(){this._setupGestures(),this._setupConfigure(this.__data__),this._setupStyleProperties(),this._setupDebouncers(),this._setupShady(),this._registerHost(),this._template&&(this._validateApplyShim(),this._poolContent(),this._beginHosting(),this._stampTemplate(),this._endHosting(),this._marshalAnnotationReferences()),this._marshalInstanceEffects(),this._marshalBehaviors(),this._marshalHostAttributes(),this._marshalAttributes(),this._tryReady()},_marshalBehavior:function(e){e.listeners&&this._listenListeners(e.listeners)}}),function(){var e,t=Polymer.StyleProperties,i=Polymer.StyleUtil,r=Polymer.CssParse,n=Polymer.StyleDefaults,o=Polymer.StyleTransformer,s=Polymer.ApplyShim,a=Polymer.Debounce,l=Polymer.Settings;Polymer({is:"custom-style",extends:"style",_template:null,properties:{include:String},ready:function(){this.__appliedElement=this.__appliedElement||this,this.__cssBuild=i.getCssBuildType(this),this.__appliedElement!==this&&(this.__appliedElement.__cssBuild=this.__cssBuild),this.ownerDocument!==window.document&&this.__appliedElement===this&&document.head.appendChild(this),this._tryApply()},attached:function(){this._tryApply()},_tryApply:function(){if(!this._appliesToDocument&&this.parentNode&&"dom-module"!==this.parentNode.localName){this._appliesToDocument=!0;var e=this.__appliedElement;if(l.useNativeCSSProperties||(this.__needsUpdateStyles=n.hasStyleProperties(),n.addStyle(e)),e.textContent||this.include)this._apply(!0);else{var t=this,i=new MutationObserver((function(){i.disconnect(),t._apply(!0)}));i.observe(e,{childList:!0})}}},_updateStyles:function(){Polymer.updateStyles()},_apply:function(e){var t=this.__appliedElement;if(this.include&&(t.textContent=i.cssFromModules(this.include,!0)+t.textContent),t.textContent){var r=this.__cssBuild,n=i.isTargetedBuild(r);if(!l.useNativeCSSProperties||!n){var a=i.rulesForStyle(t);if(n||(i.forEachRule(a,(function(e){o.documentRule(e)})),l.useNativeCSSProperties&&!r&&s.transform([t])),l.useNativeCSSProperties)t.textContent=i.toCssText(a);else{var c=this,u=function(){c._flushCustomProperties()};e?Polymer.RenderStatus.whenReady(u):u()}}}},_flushCustomProperties:function(){this.__needsUpdateStyles?(this.__needsUpdateStyles=!1,e=a(e,this._updateStyles)):this._applyCustomProperties()},_applyCustomProperties:function(){var e=this.__appliedElement;this._computeStyleProperties();var n=this._styleProperties,o=i.rulesForStyle(e);o&&(e.textContent=i.toCssText(o,(function(e){var i=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(i=r.removeCustomPropAssignment(i),e.cssText=t.valueForProperties(i,n))})))}})}(),Polymer.Templatizer={properties:{__hideTemplateChildren__:{observer:"_showHideChildren"}},_instanceProps:Polymer.nob,_parentPropPrefix:"_parent_",templatize:function(e){if(Polymer.Settings.strictTemplatePolicy&&!this._getRootDataHost())throw new Error("strictTemplatePolicy: template owner not trusted");if(this._templatized=e,e._content||(e._content=e.content),e._content._ctor)return this.ctor=e._content._ctor,void this._prepParentProperties(this.ctor.prototype,e);var t=Object.create(Polymer.Base);this._customPrepAnnotations(t,e),this._prepParentProperties(t,e),t._prepEffects(),this._customPrepEffects(t),t._prepBehaviors(),t._prepPropertyInfo(),t._prepBindings(),t._notifyPathUp=this._notifyPathUpImpl,t._scopeElementClass=this._scopeElementClassImpl,t.listen=this._listenImpl,t._showHideChildren=this._showHideChildrenImpl,t.__setPropertyOrig=this.__setProperty,t.__setProperty=this.__setPropertyImpl;var i=this._constructorImpl,r=function(e,t){i.call(this,e,t)};r.prototype=t,t.constructor=r,e._content._ctor=r,this.ctor=r},_getRootDataHost:function(){return this.dataHost&&this.dataHost._rootDataHost||this.dataHost},_showHideChildrenImpl:function(e){for(var t=this._children,i=0;i<t.length;i++){var r=t[i];Boolean(e)!=Boolean(r.__hideTemplateChildren__)&&(r.nodeType===Node.TEXT_NODE?e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__:r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__)),r.__hideTemplateChildren__=e}},__setPropertyImpl:function(e,t,i,r){r&&r.__hideTemplateChildren__&&"textContent"==e&&(e="__polymerTextContent__"),this.__setPropertyOrig(e,t,i,r)},_debounceTemplate:function(e){Polymer.dom.addDebouncer(this.debounce("_debounceTemplate",e))},_flushTemplates:function(){Polymer.dom.flush()},_customPrepEffects:function(e){var t=e._parentProps;for(var i in t)e._addPropertyEffect(i,"function",this._createHostPropEffector(i));for(i in this._instanceProps)e._addPropertyEffect(i,"function",this._createInstancePropEffector(i))},_customPrepAnnotations:function(e,t){var i=(e._template=document.createElement("template"))._content=t._content;if(!i._notes){var r=e._rootDataHost;r&&(Polymer.Annotations.prepElement=function(){r._prepElement()}),i._notes=Polymer.Annotations.parseAnnotations(t),Polymer.Annotations.prepElement=null,this._processAnnotations(i._notes)}e._notes=i._notes,e._parentProps=i._parentProps}
1,_prepParentProperties:function(e,t){var i=this._parentProps=e._parentProps;if(this._forwardParentProp&&i){var r,n=e._parentPropProto;if(!n){for(r in this._instanceProps)delete i[r];for(r in n=e._parentPropProto=Object.create(null),t!=this&&(Polymer.Bind.prepareModel(n),Polymer.Base.prepareModelNotifyPath(n)),i){var o=this._parentPropPrefix+r,s=[{kind:"function",effect:this._createForwardPropEffector(r),fn:Polymer.Bind._functionEffect},{kind:"notify",fn:Polymer.Bind._notifyEffect,effect:{event:Polymer.CaseMap.camelToDashCase(o)+"-changed"}}];n._propertyEffects=n._propertyEffects||{},n._propertyEffects[o]=s,Polymer.Bind._createAccessors(n,o,s)}}var a=this;t!=this&&(Polymer.Bind.prepareInstance(t),t._forwardParentProp=function(e,t){a._forwardParentProp(e,t)}),this._extendTemplate(t,n),t._pathEffector=function(e,t,i){return a._pathEffectorImpl(e,t,i)}}},_createForwardPropEffector:function(e){return function(t,i){this._forwardParentProp(e,i)}},_createHostPropEffector:function(e){var t=this._parentPropPrefix;return function(i,r){this.dataHost._templatized[t+e]=r}},_createInstancePropEffector:function(e){return function(t,i,r,n){n||this.dataHost._forwardInstanceProp(this,e,i)}},_extendTemplate:function(e,t){var i=Object.getOwnPropertyNames(t);t._propertySetter&&(e._propertySetter=t._propertySetter);for(var r,n=0;n<i.length&&(r=i[n]);n++){var o=e[r];if(o&&"_propertyEffects"==r){var s=Polymer.Base.mixin({},o);e._propertyEffects=Polymer.Base.mixin(s,t._propertyEffects)}else{var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a),void 0!==o&&e._propertySetter(r,o)}}},_showHideChildren:function(e){},_forwardInstancePath:function(e,t,i){},_forwardInstanceProp:function(e,t,i){},_notifyPathUpImpl:function(e,t){var i=this.dataHost,r=Polymer.Path.root(e);i._forwardInstancePath.call(i,this,e,t),r in i._parentProps&&i._templatized._notifyPath(i._parentPropPrefix+e,t)},_pathEffectorImpl:function(e,t,i){if(this._forwardParentPath&&0===e.indexOf(this._parentPropPrefix)){var r=e.substring(this._parentPropPrefix.length);Polymer.Path.root(r)in this._parentProps&&this._forwardParentPath(r,t)}Polymer.Base._pathEffector.call(this._templatized,e,t,i)},_constructorImpl:function(e,t){this._rootDataHost=t._getRootDataHost(),this._setupConfigure(e),this._registerHost(t),this._beginHosting(),this.root=this.instanceTemplate(this._template),this.root.__noContent=!this._notes._hasContent,this.root.__styleScoped=!0,this._endHosting(),this._marshalAnnotatedNodes(),this._marshalInstanceEffects(),this._marshalAnnotatedListeners();for(var i=[],r=this.root.firstChild;r;r=r.nextSibling)i.push(r),r._templateInstance=this;this._children=i,t.__hideTemplateChildren__&&this._showHideChildren(!0),this._tryReady()},_listenImpl:function(e,t,i){var r=this,n=this._rootDataHost,o=n._createEventHandler(e,t,i);n._listen(e,t,(function(e){e.model=r,o(e)}))},_scopeElementClassImpl:function(e,t){var i=this._rootDataHost;return i?i._scopeElementClass(e,t):t},stamp:function(e){if(e=e||{},this._parentProps){var t=this._templatized;for(var i in this._parentProps)void 0===e[i]&&(e[i]=t[this._parentPropPrefix+i])}return new this.ctor(e,this)},modelForElement:function(e){for(var t;e;)if(t=e._templateInstance){if(t.dataHost==this)return t;e=t.dataHost}else e=e.parentNode}},Polymer({is:"dom-template",extends:"template",_template:null,behaviors:[Polymer.Templatizer],ready:function(){this.templatize(this)}}),Polymer._collections=new WeakMap,Polymer.Collection=function(e){Polymer._collections.set(e,this),this.userArray=e,this.store=e.slice(),this.initMap()},Polymer.Collection.prototype={constructor:Polymer.Collection,initMap:function(){for(var e=this.omap=new WeakMap,t=this.pmap={},i=this.store,n=0;n<i.length;n++){var o=i[n];o&&"object"==r(o)?e.set(o,n):t[o]=n}},add:function(e){var t=this.store.push(e)-1;return e&&"object"==r(e)?this.omap.set(e,t):this.pmap[e]=t,"#"+t},removeKey:function(e){(e=this._parseKey(e))&&(this._removeFromMap(this.store[e]),delete this.store[e])},_removeFromMap:function(e){e&&"object"==r(e)?this.omap.delete(e):delete this.pmap[e]},remove:function(e){var t=this.getKey(e);return this.removeKey(t),t},getKey:function(e){var t;if(null!=(t=e&&"object"==r(e)?this.omap.get(e):this.pmap[e]))return"#"+t},getKeys:function(){return Object.keys(this.store).map((function(e){return"#"+e}))},_parseKey:function(e){if(e&&"#"==e[0])return e.slice(1)},setItem:function(e,t){if(e=this._parseKey(e)){var i=this.store[e];i&&this._removeFromMap(i),t&&"object"==r(t)?this.omap.set(t,e):this.pmap[t]=e,this.store[e]=t}},getItem:function(e){if(e=this._parseKey(e))return this.store[e]},getItems:function(){var e=[],t=this.store;for(var i in t)e.push(t[i]);return e},_applySplices:function(e){for(var t,i,r={},n=0;n<e.length&&(i=e[n]);n++){i.addedKeys=[];for(var o=0;o<i.removed.length;o++)r[t=this.getKey(i.removed[o])]=r[t]?null:-1;for(o=0;o<i.addedCount;o++){var s=this.userArray[i.index+o];r[t=void 0===(t=this.getKey(s))?this.add(s):t]=r[t]?null:1,i.addedKeys.push(t)}}var a=[],l=[];for(t in r)r[t]<0&&(this.removeKey(t),a.push(t)),r[t]>0&&l.push(t);return[{removed:a,added:l}]}},Polymer.Collection.get=function(e){return Polymer._collections.get(e)||new Polymer.Collection(e)},Polymer.Collection.applySplices=function(e,t){var i=Polymer._collections.get(e);return i?i._applySplices(t):null},Polymer({is:"dom-repeat",extends:"template",_template:null,properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},sort:{type:Function,observer:"_sortChanged"},filter:{type:Function,observer:"_filterChanged"},observe:{type:String,observer:"_observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Polymer.Settings.suppressTemplateNotifications,readOnly:!0},initialCount:{type:Number,observer:"_initializeChunking"},targetFramerate:{type:Number,value:20},notifyDomChange:{type:Boolean},_targetFrameTime:{type:Number,computed:"_computeFrameTime(targetFramerate)"}},behaviors:[Polymer.Templatizer],observers:["_itemsChanged(items.*)"],created:function(){this._instances=[],this._pool=[],this._limit=1/0;var e=this;this._boundRenderChunk=function(){e._renderChunk()}},detached:function(){this.__isDetached=!0;for(var e=0;e<this._instances.length;e++)this._detachInstance(e)},attached:function(){if(this.__isDetached){var e;this.__isDetached=!1;var t=Polymer.dom(this).parentNode;t.localName==this.is?(e=t,t=Polymer.dom(t).parentNode):e=this;for(var i=Polymer.dom(t),r=0;r<this._instances.length;r++)this._attachInstance(r,i,e)}},ready:function(){this._instanceProps={__key__:!0},this._instanceProps[this.as]=!0,this._instanceProps[this.indexAs]=!0,this.ctor||this.templatize(this)},_sortChanged:function(e){var t=this._getRootDataHost();this._sortFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)}),this._needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_filterChanged:function(e){var t=this._getRootDataHost();this._filterFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)}),this._needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_computeFrameTime:function(e){return Math.ceil(1e3/e)},_initializeChunking:function(){this.initialCount&&(this._limit=this.initialCount,this._chunkCount=this.initialCount,this._lastChunkTime=performance.now())},_tryRenderChunk:function(){this.items&&this._limit<this.items.length&&this.debounce("renderChunk",this._requestRenderChunk)},_requestRenderChunk:function(){requestAnimationFrame(this._boundRenderChunk)},_renderChunk:function(){var e=performance.now(),t=this._targetFrameTime/(e-this._lastChunkTime);this._chunkCount=Math.round(this._chunkCount*t)||1,this._limit+=this._chunkCount,this._lastChunkTime=e,this._debounceTemplate(this._render)},_observeChanged:function(){this._observePaths=this.observe&&this.observe.replace(".*",".").split(" ")},_itemsChanged:function(e){if("items"==e.path)Array.isArray(this.items)?this.collection=Polymer.Collection.get(this.items):this.items?this._error(this._logf("dom-repeat","expected array for `items`, found",this.items)):this.collection=null,this._keySplices=[],this._indexSplices=[],this._needFullRefresh=!0,this._initializeChunking(),this._debounceTemplate(this._render);else if("items.splices"==e.path)this._keySplices=this._keySplices.concat(e.value.keySplices),this._indexSplices=this._indexSplices.concat(e.value.indexSplices),this._debounceTemplate(this._render);else{var t=e.path.slice(6);this._forwardItemPath(t,e.value),this._checkObservedPaths(t)}},_checkObservedPaths:function(e){if(this._observePaths){e=e.substring(e.indexOf(".")+1);for(var t=this._observePaths,i=0;i<t.length;i++)if(0===e.indexOf(t[i]))return this._needFullRefresh=!0,void(this.delay?this.debounce("render",this._render,this.delay):this._debounceTemplate(this._render))}},render:function(){this._needFullRefresh=!0,this._debounceTemplate(this._render),this._flushTemplates()},_render:function(){if(this.ctor){this._needFullRefresh?(this._applyFullRefresh(),this._needFullRefresh=!1):this._keySplices.length&&(this._sortFn?this._applySplicesUserSort(this._keySplices):this._filterFn?this._applyFullRefresh():this._applySplicesArrayOrder(this._indexSplices)),this._keySplices=[],this._indexSplices=[];for(var e=this._keyToInstIdx={},t=this._instances.length-1;t>=0;t--){var i=this._instances[t];i.isPlaceholder&&t<this._limit?i=this._insertInstance(t,i.__key__):!i.isPlaceholder&&t>=this._limit&&(i=this._downgradeInstance(t,i.__key__)),e[i.__key__]=t,i.isPlaceholder||i.__setProperty(this.indexAs,t,!0)}this._pool.length=0,this._setRenderedItemCount(this._instances.length),Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change"),this._tryRenderChunk()}},_applyFullRefresh:function(){var e,t=this.collection;if(this._sortFn)e=t?t.getKeys():[];else{e=[];var i=this.items;if(i)for(var r=0;r<i.length;r++)e.push(t.getKey(i[r]))}var n=this;for(this._filterFn&&(e=e.filter((function(e){return n._filterFn(t.getItem(e))}))),this._sortFn&&e.sort((function(e,i){return n._sortFn(t.getItem(e),t.getItem(i))})),r=0;r<e.length;r++){var o=e[r],s=this._instances[r];s?(s.__key__=o,!s.isPlaceholder&&r<this._limit&&s.__setProperty(this.as,t.getItem(o),!0)):r<this._limit?this._insertInstance(r,o):this._insertPlaceholder(r,o)}for(var a=this._instances.length-1;a>=r;a--)this._detachAndRemoveInstance(a)},_numericSort:function(e,t){return e-t},_applySplicesUserSort:function(e){for(var t,i,r=this.collection,n={},o=0;o<e.length&&(i=e[o]);o++){for(var s=0;s<i.removed.length;s++)n[t=i.removed[s]]=n[t]?null:-1;for(s=0;s<i.added.length;s++)n[t=i.added[s]]=n[t]?null:1}var a=[],l=[];for(t in n)-1===n[t]&&a.push(this._keyToInstIdx[t]),1===n[t]&&l.push(t);if(a.length)for(a.sort(this._numericSort),o=a.length-1;o>=0;o--){var c=a[o];void 0!==c&&this._detachAndRemoveInstance(c)}var u=this;if(l.length){this._filterFn&&(l=l.filter((function(e){return u._filterFn(r.getItem(e))}))),l.sort((function(e,t){return u._sortFn(r.getItem(e),r.getItem(t))}));var h=0;for(o=0;o<l.length;o++)h=this._insertRowUserSort(h,l[o])}},_insertRowUserSort:function(e,t){for(var i=this.collection,r=i.getItem(t),n=this._instances.length-1,o=-1;e<=n;){var s=e+n>>1,a=this._instances[s].__key__,l=this._sortFn(i.getItem(a),r);if(l<0)e=s+1;else{if(!(l>0)){o=s;break}n=s-1}}return o<0&&(o=n+1),this._insertPlaceholder(o,t),o},_applySplicesArrayOrder:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++){for(var r=0;r<t.removed.length;r++)this._detachAndRemoveInstance(t.index);for(r=0;r<t.addedKeys.length;r++)this._insertPlaceholder(t.index+r,t.addedKeys[r])}},_detachInstance:function(e){var t=this._instances[e];if(!t.isPlaceholder){for(var i=0;i<t._children.length;i++){var r=t._children[i];Polymer.dom(t.root).appendChild(r)}return t}},_attachInstance:function(e,t,i){var r=this._instances[e];r.isPlaceholder||t.insertBefore(r.root,i)},_detachAndRemoveInstance:function(e){var t=this._detachInstance(e);t&&this._pool.push(t),this._instances.splice(e,1)},_insertPlaceholder:function(e,t){this._instances.splice(e,0,{isPlaceholder:!0,__key__:t})},_stampInstance:function(e,t){var i={__key__:t};return i[this.as]=this.collection.getItem(t),i[this.indexAs]=e,this.stamp(i)},_insertInstance:function(e,t){var i=this._pool.pop();i?(i.__setProperty(this.as,this.collection.getItem(t),!0),i.__setProperty("__key__",t,!0)):i=this._stampInstance(e,t);var r=this._instances[e+1],n=r&&!r.isPlaceholder?r._children[0]:this,o=Polymer.dom(this).parentNode;return o.localName==this.is&&(n==this&&(n=o),o=Polymer.dom(o).parentNode),Polymer.dom(o).insertBefore(i.root,n),this._instances[e]=i,i},_downgradeInstance:function(e,t){var i=this._detachInstance(e);return i&&this._pool.push(i),i={isPlaceholder:!0,__key__:t},this._instances[e]=i,i},_showHideChildren:function(e){for(var t=0;t<this._instances.length;t++)this._instances[t].isPlaceholder||this._instances[t]._showHideChildren(e)},_forwardInstanceProp:function(e,t,i){var r;t==this.as&&(r=this._sortFn||this._filterFn?this.items.indexOf(this.collection.getItem(e.__key__)):e[this.indexAs],this.set("items."+r,i))},_forwardInstancePath:function(e,t,i){0===t.indexOf(this.as+".")&&this._notifyPath("items."+e.__key__+"."+t.slice(this.as.length+1),i)},_forwardParentProp:function(e,t){for(var i,r=this._instances,n=0;n<r.length&&(i=r[n]);n++)i.isPlaceholder||i.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){for(var i,r=this._instances,n=0;n<r.length&&(i=r[n]);n++)i.isPlaceholder||i._notifyPath(e,t,!0)},_forwardItemPath:function(e,t){if(this._keyToInstIdx){var i=e.indexOf("."),r=e.substring(0,i<0?e.length:i),n=this._keyToInstIdx[r],o=this._instances[n];o&&!o.isPlaceholder&&(i>=0?(e=this.as+"."+e.substring(i+1),o._notifyPath(e,t,!0)):o.__setProperty(this.as,t,!0))}},itemForElement:function(e){var t=this.modelForElement(e);return t&&t[this.as]},keyForElement:function(e){var t=this.modelForElement(e);return t&&t.__key__},indexForElement:function(e){var t=this.modelForElement(e);return t&&t[this.indexAs]}}),Polymer({is:"array-selector",_template:null,properties:{items:{type:Array,observer:"clearSelection"},multi:{type:Boolean,value:!1,observer:"clearSelection"},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}},clearSelection:function(){if(Array.isArray(this.selected))for(var e=0;e<this.selected.length;e++)this.unlinkPaths("selected."+e);else this.unlinkPaths("selected"),this.unlinkPaths("selectedItem");this.multi?this.selected&&!this.selected.length||(this.selected=[],this._selectedColl=Polymer.Collection.get(this.selected)):(this.selected=null,this._selectedColl=null),this.selectedItem=null},isSelected:function(e){return this.multi?void 0!==this._selectedColl.getKey(e):this.selected==e},deselect:function(e){if(this.multi){if(this.isSelected(e)){var t=this._selectedColl.getKey(e);this.arrayDelete("selected",e),this.unlinkPaths("selected."+t)}}else this.selected=null,this.selectedItem=null,this.unlinkPaths("selected"),this.unlinkPaths("selectedItem")},select:function(e){var t=Polymer.Collection.get(this.items).getKey(e);if(this.multi)if(this.isSelected(e))this.toggle&&this.deselect(e);else{this.push("selected",e);var i=this._selectedColl.getKey(e);this.linkPaths("selected."+i,"items."+t)}else this.toggle&&e==this.selected?this.deselect():(this.selected=e,this.selectedItem=e,this.linkPaths("selected","items."+t),this.linkPaths("selectedItem","items."+t))}}),Polymer({is:"dom-if",extends:"template",_template:null,properties:{if:{type:Boolean,value:!1,observer:"_queueRender"},restamp:{type:Boolean,value:!1,observer:"_queueRender"},notifyDomChange:{type:Boolean}},behaviors:[Polymer.Templatizer],_queueRender:function(){this._debounceTemplate(this._render)},detached:function(){var e=this.parentNode;e&&e.localName==this.is&&(e=Polymer.dom(e).parentNode),e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Polymer.Settings.hasShadow&&e instanceof ShadowRoot)||this._teardownInstance()},attached:function(){this.if&&this.ctor&&this.async(this._ensureInstance)},render:function(){this._flushTemplates()},_render:function(){this.if?(this.ctor||this.templatize(this),this._ensureInstance(),this._showHideChildren()):this.restamp&&this._teardownInstance(),!this.restamp&&this._instance&&this._showHideChildren(),this.if!=this._lastIf&&(Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change"),this._lastIf=this.if)}
1,_ensureInstance:function(){var e,t=Polymer.dom(this).parentNode;if(t&&t.localName==this.is?(e=t,t=Polymer.dom(t).parentNode):e=this,t)if(this._instance){var i=this._instance._children;if(i&&i.length)if(Polymer.dom(e).previousSibling!==i[i.length-1])for(var r,n=0;n<i.length&&(r=i[n]);n++)Polymer.dom(t).insertBefore(r,e)}else{this._instance=this.stamp();var o=this._instance.root;Polymer.dom(t).insertBefore(o,e)}},_teardownInstance:function(){if(this._instance){var e=this._instance._children;if(e&&e.length){var t=Polymer.dom(Polymer.dom(e[0]).parentNode);if(t)for(var i,r=0;r<e.length&&(i=e[r]);r++)t.removeChild(i)}this._instance=null}},_showHideChildren:function(){var e=this.__hideTemplateChildren__||!this.if;this._instance&&this._instance._showHideChildren(e)},_forwardParentProp:function(e,t){this._instance&&this._instance.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){this._instance&&this._instance._notifyPath(e,t,!0)}}),Polymer({is:"dom-bind",properties:{notifyDomChange:{type:Boolean}},extends:"template",_template:null,created:function(){if(Polymer.Settings.strictTemplatePolicy)throw new Error("strictTemplatePolicy: dom-bind not allowed");var e=this;Polymer.RenderStatus.whenReady((function(){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",(function(){e._markImportsReady()})):e._markImportsReady()}))},_ensureReady:function(){this._readied||this._readySelf()},_markImportsReady:function(){this._importsReady=!0,this._ensureReady()},_registerFeatures:function(){this._prepConstructor()},_insertChildren:function(){var e,t=Polymer.dom(this).parentNode;t.localName==this.is?(e=t,t=Polymer.dom(t).parentNode):e=this,Polymer.dom(t).insertBefore(this.root,e)},_removeChildren:function(){if(this._children)for(var e=0;e<this._children.length;e++)this.root.appendChild(this._children[e])},_initFeatures:function(){},_scopeElementClass:function(e,t){return this.dataHost?this.dataHost._scopeElementClass(e,t):t},_configureInstanceProperties:function(){},_prepConfigure:function(){var e={};for(var t in this._propertyEffects)e[t]=this[t];var i=this._setupConfigure;this._setupConfigure=function(){i.call(this,e)}},attached:function(){this._importsReady&&this.render()},detached:function(){this._removeChildren()},render:function(){this._ensureReady(),this._children||(this._template=this,this._prepAnnotations(),this._prepEffects(),this._prepBehaviors(),this._prepConfigure(),this._prepBindings(),this._prepPropertyInfo(),Polymer.Base._initFeatures.call(this),this._children=Polymer.TreeApi.arrayCopyChildNodes(this.root)),this._insertChildren(),Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change")}})},function(e,t){function i(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"register",value:function(e){var t,i=document.createElement("template");if(i.innerHTML=e,i.content)t=i.content;else for(t=document.createDocumentFragment();i.firstChild;)t.appendChild(i.firstChild);document.importNode(t,!0)}},{key:"toBody",value:function(e){var t=e.trim();if(t){var i=document.createElement("div");i.innerHTML=t,i.firstChild&&(document.body?document.body.appendChild(i.firstChild):document.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(i.firstChild)})))}}}],(r=null)&&i(t.prototype,r),n&&i(t,n),e}();e.exports=r},function(e,t,i){"use strict";i.r(t),i.d(t,"Headers",(function(){return p})),i.d(t,"Request",(function(){return b})),i.d(t,"Response",(function(){return C})),i.d(t,"DOMException",(function(){return w})),i.d(t,"fetch",(function(){return x}));var r="URLSearchParams"in self,n="Symbol"in self&&"iterator"in Symbol,o="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in self,a="ArrayBuffer"in self;if(a)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function _(e){var t=new FileReader,i=m(t);return t.readAsArrayBuffer(e),i}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var e,t,i,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=m(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=h(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=h(t)},p.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),d(e)},n&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var i,r,n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(i=t.method||this.method||"GET",r=i.toUpperCase(),v.indexOf(r)>-1?r:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function P(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];C.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})};var w=self.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function x(e,t){return new Promise((function(i,r){var n=new b(e,t);if(n.signal&&n.signal.aborted)return r(new w("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
1h((function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();t.append(r,n)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;i(new C(n,r))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.onabort=function(){r(new w("Aborted","AbortError"))},s.open(n.method,n.url,!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),n.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),n.signal&&(n.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",a)}),s.send(void 0===n._bodyInit?null:n._bodyInit)}))}x.polyfill=!0,self.fetch||(self.fetch=x,self.Headers=p,self.Request=b,self.Response=C)},function(e,t,i){(function(r,n){var o,s,a;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2/*!
3 * @overview es6-promise - a tiny implementation of Promises/A+.
4 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
5 * @license   Licensed under MIT license
6 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
7 * @version   4.1.0+f046478d
8 */a=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,s=void 0,a=void 0,c=function(e,t){_[o]=e,_[o+1]=t,2===(o+=2)&&(a?a(y):C())},u="undefined"!=typeof window?window:void 0,h=u||{},d=h.MutationObserver||h.WebKitMutationObserver,p="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){var e=setTimeout;return function(){return e(y,1)}}var _=new Array(1e3);function y(){for(var e=0;e<o;e+=2)(0,_[e])(_[e+1]),_[e]=void 0,_[e+1]=void 0;o=0}var g,v,b,P,C=void 0;function S(e,t){var i=arguments,r=this,n=new this.constructor(E);void 0===n[x]&&z(n);var o,s=r._state;return s?(o=i[s-1],c((function(){return B(s,n,o,r._result)}))):k(r,n,e,t),n}function w(e){if(e&&"object"===l(e)&&e.constructor===this)return e;var t=new this(E);return L(t,e),t}p?C=function(){return r.nextTick(y)}:d?(v=0,b=new d(y),P=document.createTextNode(""),b.observe(P,{characterData:!0}),C=function(){P.data=v=++v%2}):f?((g=new MessageChannel).port1.onmessage=y,C=function(){return g.port2.postMessage(0)}):C=void 0===u?function(){try{var e=i(21);return void 0!==(s=e.runOnLoop||e.runOnContext)?function(){s(y)}:m()}catch(e){return m()}}():m();var x=Math.random().toString(36).substring(16);function E(){}var A=new O;function N(e){try{return e.then}catch(e){return A.error=e,A}}function T(t,i,r){i.constructor===t.constructor&&r===S&&i.constructor.resolve===w?function(e,t){1===t._state?M(e,t._result):2===t._state?R(e,t._result):k(t,void 0,(function(t){return L(e,t)}),(function(t){return R(e,t)}))}(t,i):r===A?(R(t,A.error),A.error=null):void 0===r?M(t,i):e(r)?function(e,t,i){c((function(e){var r=!1,n=function(e,t,i,r){try{e.call(t,i,r)}catch(e){return e}}(i,t,(function(i){r||(r=!0,t!==i?L(e,i):M(e,i))}),(function(t){r||(r=!0,R(e,t))}),e._label);!r&&n&&(r=!0,R(e,n))}),e)}(t,i,r):M(t,i)}function L(e,t){var i,r;e===t?R(e,new TypeError("You cannot resolve a promise with itself")):(r=l(i=t),null===i||"object"!==r&&"function"!==r?M(e,t):T(e,t,N(t)))}function I(e){e._onerror&&e._onerror(e._result),D(e)}function M(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&c(D,e))}function R(e,t){void 0===e._state&&(e._state=2,e._result=t,c(I,e))}function k(e,t,i,r){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+1]=i,n[o+2]=r,0===o&&e._state&&c(D,e)}function D(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var r=void 0,n=void 0,o=e._result,s=0;s<t.length;s+=3)r=t[s],n=t[s+i],r?B(i,r,n,o):n(o);e._subscribers.length=0}}function O(){this.error=null}var j=new O;function B(t,i,r,n){var o=e(r),s=void 0,a=void 0,l=void 0,c=void 0;if(o){if((s=function(e,t){try{return e(t)}catch(e){return j.error=e,j}}(r,n))===j?(c=!0,a=s.error,s.error=null):l=!0,i===s)return void R(i,new TypeError("A promises callback cannot return that same promise."))}else s=n,l=!0;void 0!==i._state||(o&&l?L(i,s):c?R(i,a):1===t?M(i,s):2===t&&R(i,s))}var F=0;function z(e){e[x]=F++,e._state=void 0,e._result=void 0,e._subscribers=[]}function H(e,i){this._instanceConstructor=e,this.promise=new e(E),this.promise[x]||z(this.promise),t(i)?(this.length=i.length,this._remaining=i.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(i),0===this._remaining&&M(this.promise,this._result))):R(this.promise,new Error("Array Methods must be provided an Array"))}function U(e){this[x]=F++,this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof U?function(e,t){try{t((function(t){L(e,t)}),(function(t){R(e,t)}))}catch(t){R(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
8onstructor cannot be called as a function.")}())}return H.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},H.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,r=i.resolve;if(r===w){var n=N(e);if(n===S&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(i===U){var o=new i(E);T(o,e,n),this._willSettleAt(o,t)}else this._willSettleAt(new i((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},H.prototype._settledAt=function(e,t,i){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?R(r,i):this._result[t]=i),0===this._remaining&&M(r,this._result)},H.prototype._willSettleAt=function(e,t){var i=this;k(e,void 0,(function(e){return i._settledAt(1,t,e)}),(function(e){return i._settledAt(2,t,e)}))},U.all=function(e){return new H(this,e).promise},U.race=function(e){var i=this;return t(e)?new i((function(t,r){for(var n=e.length,o=0;o<n;o++)i.resolve(e[o]).then(t,r)})):new i((function(e,t){return t(new TypeError("You must pass an array to race."))}))},U.resolve=w,U.reject=function(e){var t=new this(E);return R(t,e),t},U._setScheduler=function(e){a=e},U._setAsap=function(e){c=e},U._asap=c,U.prototype={constructor:U,then:S,catch:function(e){return this.then(null,e)}},U.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=U},U.Promise=U,U.polyfill(),U},"object"===l(t)&&void 0!==e?e.exports=a():void 0===(s="function"==typeof(o=a)?o.call(t,i,t,e):o)||(e.exports=s)}).call(this,i(19),i(20))},function(e,t,i){i(0),i(7),i(11),i(12),i(16),i(22),i(24),i(1).register('<dom-module id=upcontent-gallery> <template> <style></style> <app-location route="{{ route }}" url-space-regex=^#/ use-hash-as-path=""></app-location> <app-route route="[[ route ]]" pattern=/:page active="{{ topicsActive }}" data="{{ data }}" tail="{{ tail }}"></app-route> <app-route route="[[ tail ]]" pattern=/:topic/ data="{{ subdata }}" active="{{ suggestionsActive }}"></app-route> <loading-overlay active="[[ isLoading ]]"></loading-overlay> <iron-pages selected="[[ data.page ]]" attr-for-selected=name fallback-selection=topics> <upcontent-topic-list class=uc-gallery--carousels name=topics gallery="[[ gallery ]]"> </upcontent-topic-list> <div name=view> <a href=#/ >Back</a> <upcontent-suggestion-list name=view gallery="[[ gallery ]]" topic="[[ subdata.topic ]]" link-target="[[ linkTarget ]]" loading="{{ isLoading }}"> </upcontent-suggestion-list> </div> </iron-pages> </template> </dom-module>'),Polymer({is:"upcontent-gallery",properties:{gallery:{type:String,value:null},linkTarget:{type:String,value:"_blank"}}}),console.log("https://galleries.upcontent.com/")},function(e,t,i){var r,n,o,s;i(6),function(){function e(e,i){return e.replace(o,(function(e,r,n,o){return r+"'"+t(n.replace(/["']/g,""),i)+"'"+o}))}function t(e,t){if(e&&a.test(e))return e;var i=function(e){return e.body.__urlResolver||(e.body.__urlResolver=e.createElement("a"))}(t);return i.href=e,i.href||e}var i,r;function n(e){return e.substring(0,e.lastIndexOf("/")+1)}var o=/(url\()([^)]*)(\))/g,s={"*":["href","src","style","url"],form:["action"]},a=/(^\/)|(^#)|(^[\w-\d]*:)/,l=/\{\{|\[\[/;Polymer.ResolveUrl={resolveCss:e,resolveAttrs:function(i,r){for(var n in s)for(var o,a,c,u=s[n],h=0,d=u.length;h<d&&(o=u[h]);h++)"*"!==n&&i.localName!==n||(c=(a=i.attributes[o])&&a.value)&&c.search(l)<0&&(a.value="style"===o?e(c,r):t(c,r))},resolveUrl:function(e,n){return i||(i=document.implementation.createHTMLDocument("temp"),r=i.createElement("base"),i.head.appendChild(r)),r.href=n,t(e,i)},pathFromUrl:n},Polymer.rootPath=Polymer.Settings.rootPath||n(document.baseURI||window.location.href)}(),Polymer.Base._addFeature({_prepTemplate:function(){var e;if(void 0===this._template){var t=(e=Polymer.DomModule.import(this.is))&&e.querySelector("template");if(Polymer.Settings.strictTemplatePolicy&&!t)throw new Error("strictTemplatePolicy: expecting dom-module or null _template for "+this.is);this._template=t}if(e){var i=e.getAttribute("assetpath")||"",r=Polymer.ResolveUrl.resolveUrl(i,e.ownerDocument.baseURI);this._importPath=Polymer.ResolveUrl.pathFromUrl(r)}else this._importPath="";this._template&&this._template.hasAttribute("is")&&this._warn(this._logf("_prepTemplate","top-level Polymer template must not be a type-extension, found",this._template,"Move inside simple <template>.")),this._template&&!this._template.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(this._template)},_stampTemplate:function(){this._template&&(this.root=this.instanceTemplate(this._template))},instanceTemplate:function(e){return document.importNode(e._content||e.content,!0)}}),r=Polymer.Base.attachedCallback,n=Polymer.Base.detachedCallback,Polymer.Base._addFeature({_hostStack:[],ready:function(){},_registerHost:function(e){this.dataHost=e=e||Polymer.Base._hostStack[Polymer.Base._hostStack.length-1],e&&e._clients&&e._clients.push(this),this._clients=null,this._clientsReadied=!1},_beginHosting:function(){Polymer.Base._hostStack.push(this),this._clients||(this._clients=[])},_endHosting:function(){Polymer.Base._hostStack.pop()},_tryReady:function(){this._readied=!1,this._canReady()&&this._ready()},_canReady:function(){return!this.dataHost||this.dataHost._clientsReadied},_ready:function(){this._beforeClientsReady(),this._template&&(this._setupRoot(),this._readyClients()),this._clientsReadied=!0,this._clients=null,this._afterClientsReady(),this._readySelf()},_readyClients:function(){this._beginDistribute();var e=this._clients;if(e)for(var t,i=0,r=e.length;i<r&&(t=e[i]);i++)t._ready();this._finishDistribute()},_readySelf:function(){for(var e,t=0;t<this.behaviors.length;t++)(e=this.behaviors[t]).ready&&e.ready.call(this);this.ready&&this.ready(),this._readied=!0,this._attachedPending&&(this._attachedPending=!1,this.attachedCallback())},_beforeClientsReady:function(){},_afterClientsReady:function(){},_beforeAttached:function(){},attachedCallback:function(){this._readied?(this._beforeAttached(),r.call(this)):this._attachedPending=!0},detachedCallback:function(){this._readied?n.call(this):this._attachedPending=!1}}),Polymer.ArraySplice=function(){function e(e,t,i){return{index:e,removed:t,addedCount:i}}function t(){}return t.prototype={calcEditDistances:function(e,t,i,r,n,o){for(var s=o-n+1,a=i-t+1,l=new Array(s),c=0;c<s;c++)l[c]=new Array(a),l[c][0]=c;for(var u=0;u<a;u++)l[0][u]=u;for(c=1;c<s;c++)for(u=1;u<a;u++)if(this.equals(e[t+u-1],r[n+c-1]))l[c][u]=l[c-1][u-1];else{var h=l[c-1][u]+1,d=l[c][u-1]+1;l[c][u]=h<d?h:d}return l},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,i=e[0].length-1,r=e[t][i],n=[];t>0||i>0;)if(0!=t)if(0!=i){var o,s=e[t-1][i-1],a=e[t-1][i],l=e[t][i-1];(o=a<l?a<s?a:s:l<s?l:s)==s?(s==r?n.push(0):(n.push(1),r=s),t--,i--):o==a?(n.push(3),t--,r=a):(n.push(2),i--,r=l)}else n.push(3),t--;else n.push(2),i--;return n.reverse(),n},calcSplices:function(t,i,r,n,o,s){var a=0,l=0,c=Math.min(r-i,s-o);if(0==i&&0==o&&(a=this.sharedPrefix(t,n,c)),r==t.length&&s==n.length&&(l=this.sharedSuffix(t,n,c-a)),o+=a,s-=l,(r-=l)-(i+=a)==0&&s-o==0)return[];if(i==r){for(var u=e(i,[],0);o<s;)u.removed.push(n[o++]);return[u]}if(o==s)return[e(i,[],r-i)];var h=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,i,r,n,o,s));u=void 0;for(var d=[],p=i,f=o,m=0;m<h.length;m++)switch(h[m]){case 0:u&&(d.push(u),u=void 0),p++,f++;break;case 1:u||(u=e(p,[],0)),u.addedCount++,p++,u.removed.push(n[f]),f++;break;case 2:u||(u=e(p,[],0)),u.addedCount++,p++;break;case 3:u||(u=e(p,[],0)),u.removed.push(n[f]),f++}return u&&d.push(u),d},sharedPrefix:function(e,t,i){for(var r=0;r<i;r++)if(!this.equals(e[r],t[r]))return r;return i},sharedSuffix:function(e,t,i){for(var r=e.length,n=t.length,o=0;o<i&&this.equals(e[--r],t[--n]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}},new t}(),Polymer.domInnerHTML=function(){var e=/[&\u00A0"]/g,t=/[&\u00A0<>]/g;function i(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";
8case'"':return"&quot;";case" ":return"&nbsp;"}}function r(t){return t.replace(e,i)}function n(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=!0;return t}var o=n(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),s=n(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function a(e,n,a){switch(e.nodeType){case Node.ELEMENT_NODE:for(var c,u=e.localName,h="<"+u,d=e.attributes,p=0;c=d[p];p++)h+=" "+c.name+'="'+r(c.value)+'"';return h+=">",o[u]?h:h+l(e,a)+"</"+u+">";case Node.TEXT_NODE:var f=e.data;return n&&s[n.localName]?f:function(e){return e.replace(t,i)}(f);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw console.error(e),new Error("not implemented")}}function l(e,t){e instanceof HTMLTemplateElement&&(e=e.content);for(var i,r="",n=Polymer.dom(e).childNodes,o=0,s=n.length;o<s&&(i=n[o]);o++)r+=a(i,e,t);return r}return{getInnerHTML:l}}(),function(){"use strict";var e=Element.prototype.insertBefore,t=Element.prototype.appendChild,i=Element.prototype.removeChild;Polymer.TreeApi={arrayCopyChildNodes:function(e){for(var t=[],i=0,r=e.firstChild;r;r=r.nextSibling)t[i++]=r;return t},arrayCopyChildren:function(e){for(var t=[],i=0,r=e.firstElementChild;r;r=r.nextElementSibling)t[i++]=r;return t},arrayCopy:function(e){for(var t=e.length,i=new Array(t),r=0;r<t;r++)i[r]=e[r];return i}},Polymer.TreeApi.Logical={hasParentNode:function(e){return Boolean(e.__dom&&e.__dom.parentNode)},hasChildNodes:function(e){return Boolean(e.__dom&&void 0!==e.__dom.childNodes)},getChildNodes:function(e){return this.hasChildNodes(e)?this._getChildNodes(e):e.childNodes},_getChildNodes:function(e){if(!e.__dom.childNodes){e.__dom.childNodes=[];for(var t=e.__dom.firstChild;t;t=t.__dom.nextSibling)e.__dom.childNodes.push(t)}return e.__dom.childNodes},getParentNode:function(e){return e.__dom&&void 0!==e.__dom.parentNode?e.__dom.parentNode:e.parentNode},getFirstChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?e.__dom.firstChild:e.firstChild},getLastChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?e.__dom.lastChild:e.lastChild},getNextSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?e.__dom.nextSibling:e.nextSibling},getPreviousSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling?e.__dom.previousSibling:e.previousSibling},getFirstElementChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?this._getFirstElementChild(e):e.firstElementChild},_getFirstElementChild:function(e){for(var t=e.__dom.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getLastElementChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?this._getLastElementChild(e):e.lastElementChild},_getLastElementChild:function(e){for(var t=e.__dom.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},getNextElementSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?this._getNextElementSibling(e):e.nextElementSibling},_getNextElementSibling:function(e){for(var t=e.__dom.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getPreviousElementSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling?this._getPreviousElementSibling(e):e.previousElementSibling},_getPreviousElementSibling:function(e){for(var t=e.__dom.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},saveChildNodes:function(e){if(!this.hasChildNodes(e)){e.__dom=e.__dom||{},e.__dom.firstChild=e.firstChild,e.__dom.lastChild=e.lastChild,e.__dom.childNodes=[];for(var t=e.firstChild;t;t=t.nextSibling)t.__dom=t.__dom||{},t.__dom.parentNode=e,e.__dom.childNodes.push(t),t.__dom.nextSibling=t.nextSibling,t.__dom.previousSibling=t.previousSibling}},recordInsertBefore:function(e,t,i){if(t.__dom.childNodes=null,e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=e.firstChild;r;r=r.nextSibling)this._linkNode(r,t,i);else this._linkNode(e,t,i)},_linkNode:function(e,t,i){e.__dom=e.__dom||{},t.__dom=t.__dom||{},i&&(i.__dom=i.__dom||{}),e.__dom.previousSibling=i?i.__dom.previousSibling:t.__dom.lastChild,e.__dom.previousSibling&&(e.__dom.previousSibling.__dom.nextSibling=e),e.__dom.nextSibling=i||null,e.__dom.nextSibling&&(e.__dom.nextSibling.__dom.previousSibling=e),e.__dom.parentNode=t,i?i===t.__dom.firstChild&&(t.__dom.firstChild=e):(t.__dom.lastChild=e,t.__dom.firstChild||(t.__dom.firstChild=e)),t.__dom.childNodes=null},recordRemoveChild:function(e,t){e.__dom=e.__dom||{},t.__dom=t.__dom||{},e===t.__dom.firstChild&&(t.__dom.firstChild=e.__dom.nextSibling),e===t.__dom.lastChild&&(t.__dom.lastChild=e.__dom.previousSibling);var i=e.__dom.previousSibling,r=e.__dom.nextSibling;i&&(i.__dom.nextSibling=r),r&&(r.__dom.previousSibling=i),e.__dom.parentNode=e.__dom.previousSibling=e.__dom.nextSibling=void 0,t.__dom.childNodes=null}},Polymer.TreeApi.Composed={getChildNodes:function(e){return Polymer.TreeApi.arrayCopyChildNodes(e)},getParentNode:function(e){return e.parentNode},clearChildNodes:function(e){e.textContent=""},insertBefore:function(t,i,r){return e.call(t,i,r||null)},appendChild:function(e,i){return t.call(e,i)},removeChild:function(e,t){return i.call(e,t)}}}(),Polymer.DomApi=function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,i=function e(t){this.node=r?e.wrap(t):t},r=e.hasShadow&&!e.nativeShadow;i.wrap=window.wrap?window.wrap:function(e){return e},i.prototype={flush:function(){Polymer.dom.flush()},deepContains:function(e){if(this.node.contains(e))return!0;for(var t=e,i=e.ownerDocument;t&&t!==i&&t!==this.node;)t=Polymer.dom(t).parentNode||t.host;return t===this.node},queryDistributedElements:function(e){for(var t,r=this.getEffectiveChildNodes(),n=[],o=0,s=r.length;o<s&&(t=r[o]);o++)t.nodeType===Node.ELEMENT_NODE&&i.matchesSelector.call(t,e)&&n.push(t);return n},getEffectiveChildNodes:function(){for(var e,t=[],i=this.childNodes,r=0,s=i.length;r<s&&(e=i[r]);r++)if(e.localName===n)for(var a=o(e).getDistributedNodes(),l=0;l<a.length;l++)t.push(a[l]);else t.push(e);return t},observeNodes:function(e){if(e)return this.observer||(this.observer=this.node.localName===n?new i.DistributedNodesObserver(this):new i.EffectiveNodesObserver(this)),this.observer.addListener(e)},unobserveNodes:function(e){this.observer&&this.observer.removeListener(e)},notifyObserver:function(){this.observer&&this.observer.notify()},_query:function(e,i,r){i=i||this.node;var n=[];return this._queryElements(t.Logical.getChildNodes(i),e,r,n),n},_queryElements:function(e,t,i,r){for(var n,o=0,s=e.length;o<s&&(n=e[o]);o++)if(n.nodeType===Node.ELEMENT_NODE&&this._queryElement(n,t,i,r))return!0},_queryElement:function(e,i,r,n){var o=i(e);if(o&&n.push(e),r&&r(o))return o;this._queryElements(t.Logical.getChildNodes(e),i,r,n)}};var n=i.CONTENT="content",o=i.factory=function(e){return(e=e||document).__domApi||(e.__domApi=new i.ctor(e)),e.__domApi};i.hasApi=function(e){return Boolean(e.__domApi)},i.ctor=i,Polymer.dom=function(e,t){return e instanceof Event?Polymer.EventApi.factory(e):i.factory(e,t)};var s=Element.prototype;return i.matchesSelector=s.matches||s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector,i}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.DomApi,i=t.factory,r=Polymer.TreeApi,n=Polymer.domInnerHTML.getInnerHTML,o=t.CONTENT;if(!e.useShadow){var s=Element.prototype.cloneNode,a=Document.prototype.importNode;Polymer.Base.mixin(t.prototype,{_lazyDistribute:function(e){e.shadyRoot&&e.shadyRoot._distributionClean&&(e.shadyRoot._distributionClean=!1,Polymer.dom.addDebouncer(e.debounce("_distribute",e._distributeContent)))},appendChild:function(e){return this.insertBefore(e)},insertBefore:function(e,n){if(n&&r.Logical.getParentNode(n)!==this.node)throw Error("The ref_node to be inserted before is not a child of this node");if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var s=r.Logical.getParentNode(e);s?(t.hasApi(s)&&i(s).notifyObserver(),this._removeNode(e)):this._removeOwnerShadyRoot(e)}if(!this._addNode(e,n)){n&&(n=n.localName===o?this._firstComposedNode(n):n);var a=this.node._isShadyRoot?this.node.host:this.node;n?r.Composed.insertBefore(a,e,n):r.Composed.appendChild(a,e)}return this.notifyObserver(),e},_addNode:function(e,t){var i=this.getOwnerRoot();if(i){var n=this._maybeAddInsertionPoint(e,this.node);i._invalidInsertionPoints||(i._invalidInsertionPoints=n),this._addNodeToHost(i.host,e)}r.Logical.hasChildNodes(this.node)&&r.Logical.recordInsertBefore(e,this.node,t);var o=this._maybeDistribute(e)||this.node.shadyRoot;if(o)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(;e.firstChild;)r.Composed.removeChild(e,e.firstChild);else{var s=r.Composed.getParentNode(e);s&&r.Composed.removeChild(s,e)}return o},removeChild:function(e){if(r.Logical.getParentNode(e)!==this.node)throw Error("The node to be removed is not a child of this node: "+e);if(!this._removeNode(e)){var t=this.node._isShadyRoot?this.node.host:this.node;t===r.Composed.getParentNode(e)&&r.Composed.removeChild(t,e)}return this.notifyObserver(),e},_removeNode:function(e){var t,n=r.Logical.hasParentNode(e)&&r.Logical.getParentNode(e),o=this._ownerShadyRootForNode(e);return n&&(t=i(e)._maybeDistributeParent(),r.Logical.recordRemoveChild(e,n),o&&this._removeDistributedChildren(o,e)&&(o._invalidInsertionPoints=!0,this._lazyDistribute(o.host))),this._removeOwnerShadyRoot(e),o&&this._removeNodeFromHost(
8o.host,e),t},replaceChild:function(e,t){return this.insertBefore(e,t),this.removeChild(t),e},_hasCachedOwnerRoot:function(e){return Boolean(void 0!==e._ownerShadyRoot)},getOwnerRoot:function(){return this._ownerShadyRootForNode(this.node)},_ownerShadyRootForNode:function(e){if(e){var t=e._ownerShadyRoot;if(void 0===t){if(e._isShadyRoot)t=e;else{var i=r.Logical.getParentNode(e);t=i?i._isShadyRoot?i:this._ownerShadyRootForNode(i):null}(t||document.documentElement.contains(e))&&(e._ownerShadyRoot=t)}return t}},_maybeDistribute:function(e){var t=e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!e.__noContent&&i(e).querySelector(o),n=t&&r.Logical.getParentNode(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE,s=t||e.localName===o;if(s){var a=this.getOwnerRoot();a&&this._lazyDistribute(a.host)}var l=this._nodeNeedsDistribution(this.node);return l&&this._lazyDistribute(this.node),l||s&&!n},_maybeAddInsertionPoint:function(e,t){var n;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||e.__noContent)e.localName===o&&(r.Logical.saveChildNodes(t),r.Logical.saveChildNodes(e),n=!0);else for(var s,a,l,c=i(e).querySelectorAll(o),u=0;u<c.length&&(s=c[u]);u++)(a=r.Logical.getParentNode(s))===e&&(a=t),l=this._maybeAddInsertionPoint(s,a),n=n||l;return n},_updateInsertionPoints:function(e){for(var t,n=e.shadyRoot._insertionPoints=i(e.shadyRoot).querySelectorAll(o),s=0;s<n.length;s++)t=n[s],r.Logical.saveChildNodes(t),r.Logical.saveChildNodes(r.Logical.getParentNode(t))},_nodeNeedsDistribution:function(e){return e&&e.shadyRoot&&t.hasInsertionPoint(e.shadyRoot)},_addNodeToHost:function(e,t){e._elementAdd&&e._elementAdd(t)},_removeNodeFromHost:function(e,t){e._elementRemove&&e._elementRemove(t)},_removeDistributedChildren:function(e,t){for(var n,o=e._insertionPoints,s=0;s<o.length;s++){var a=o[s];if(this._contains(t,a))for(var l=i(a).getDistributedNodes(),c=0;c<l.length;c++){n=!0;var u=l[c],h=r.Composed.getParentNode(u);h&&r.Composed.removeChild(h,u)}}return n},_contains:function(e,t){for(;t;){if(t==e)return!0;t=r.Logical.getParentNode(t)}},_removeOwnerShadyRoot:function(e){if(this._hasCachedOwnerRoot(e))for(var t,i=r.Logical.getChildNodes(e),n=0,o=i.length;n<o&&(t=i[n]);n++)this._removeOwnerShadyRoot(t);e._ownerShadyRoot=void 0},_firstComposedNode:function(e){for(var t,r,n=i(e).getDistributedNodes(),o=0,s=n.length;o<s&&(t=n[o]);o++)if((r=i(t).getDestinationInsertionPoints())[r.length-1]===e)return t},querySelector:function(e){return this._query((function(i){return t.matchesSelector.call(i,e)}),this.node,(function(e){return Boolean(e)}))[0]||null},querySelectorAll:function(e){return this._query((function(i){return t.matchesSelector.call(i,e)}),this.node)},getDestinationInsertionPoints:function(){return this.node._destinationInsertionPoints||[]},getDistributedNodes:function(){return this.node._distributedNodes||[]},_clear:function(){for(;this.childNodes.length;)this.removeChild(this.childNodes[0])},setAttribute:function(e,t){this.node.setAttribute(e,t),this._maybeDistributeForAttributeChange(this.node,e)},removeAttribute:function(e){this.node.removeAttribute(e),this._maybeDistributeForAttributeChange(this.node,e)},_maybeDistributeForAttributeChange:function(e,t){if("select"===t&&"content"===e.localName){var i=this.getOwnerRoot();if(i&&this._nodeNeedsDistribution(i.host))return void this._lazyDistribute(i.host)}this._maybeDistributeParent()},_maybeDistributeParent:function(){if(this._nodeNeedsDistribution(this.parentNode))return this._lazyDistribute(this.parentNode),!0},cloneNode:function(e){var t=s.call(this.node,!1);if(e)for(var r,n=this.childNodes,o=i(t),a=0;a<n.length;a++)r=i(n[a]).cloneNode(!0),o.appendChild(r);return t},importNode:function(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument,o=a.call(n,e,!1);if(t)for(var s,l=r.Logical.getChildNodes(e),c=i(o),u=0;u<l.length;u++)s=i(n).importNode(l[u],!0),c.appendChild(s);return o},_getComposedInnerHTML:function(){return n(this.node,!0)}}),Object.defineProperties(t.prototype,{activeElement:{get:function(){var e=document.activeElement;if(!e)return null;var t=!!this.node._isShadyRoot;if(this.node!==document){if(!t)return null;if(this.node.host===e||!this.node.host.contains(e))return null}for(var r=i(e).getOwnerRoot();r&&r!==this.node;)e=r.host,r=i(e).getOwnerRoot();return this.node===document?r?null:e:r===this.node?e:null},configurable:!0},childNodes:{get:function(){var e=r.Logical.getChildNodes(this.node);return Array.isArray(e)?e:r.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){return r.Logical.hasChildNodes(this.node)?Array.prototype.filter.call(this.childNodes,(function(e){return e.no
8deType===Node.ELEMENT_NODE})):r.arrayCopyChildren(this.node)},configurable:!0},parentNode:{get:function(){return r.Logical.getParentNode(this.node)},configurable:!0},firstChild:{get:function(){return r.Logical.getFirstChild(this.node)},configurable:!0},lastChild:{get:function(){return r.Logical.getLastChild(this.node)},configurable:!0},nextSibling:{get:function(){return r.Logical.getNextSibling(this.node)},configurable:!0},previousSibling:{get:function(){return r.Logical.getPreviousSibling(this.node)},configurable:!0},firstElementChild:{get:function(){return r.Logical.getFirstElementChild(this.node)},configurable:!0},lastElementChild:{get:function(){return r.Logical.getLastElementChild(this.node)},configurable:!0},nextElementSibling:{get:function(){return r.Logical.getNextElementSibling(this.node)},configurable:!0},previousElementSibling:{get:function(){return r.Logical.getPreviousElementSibling(this.node)},configurable:!0},textContent:{get:function(){var e=this.node.nodeType;if(e===Node.TEXT_NODE||e===Node.COMMENT_NODE)return this.node.textContent;for(var t,i=[],r=0,n=this.childNodes;t=n[r];r++)t.nodeType!==Node.COMMENT_NODE&&i.push(t.textContent);return i.join("")},set:function(e){var t=this.node.nodeType;t===Node.TEXT_NODE||t===Node.COMMENT_NODE?this.node.textContent=e:(this._clear(),e&&this.appendChild(document.createTextNode(e)))},configurable:!0},innerHTML:{get:function(){var e=this.node.nodeType;return e===Node.TEXT_NODE||e===Node.COMMENT_NODE?null:n(this.node)},set:function(e){var t=this.node.nodeType;if(t!==Node.TEXT_NODE||t!==Node.COMMENT_NODE){this._clear();var i=document.createElement("div");i.innerHTML=e;for(var n=r.arrayCopyChildNodes(i),o=0;o<n.length;o++)this.appendChild(n[o])}},configurable:!0}}),t.hasInsertionPoint=function(e){return Boolean(e&&e._insertionPoints.length)}}}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,i=Polymer.DomApi;if(e.useShadow){Polymer.Base.mixin(i.prototype,{querySelectorAll:function(e){return t.arrayCopy(this.node.querySelectorAll(e))},getOwnerRoot:function(){for(var e=this.node;e;){if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host)return e;e=e.parentNode}},importNode:function(e,t){return(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,t)},getDestinationInsertionPoints:function(){var e=this.node.getDestinationInsertionPoints&&this.node.getDestinationInsertionPoints();return e?t.arrayCopy(e):[]},getDistributedNodes:function(){var e=this.node.getDistributedNodes&&this.node.getDistributedNodes();return e?t.arrayCopy(e):[]}}),Object.defineProperties(i.prototype,{activeElement:{get:function(){var e=i.wrap(this.node),t=e.activeElement;return e.contains(t)?t:null},configurable:!0},childNodes:{get:function(){return t.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){return t.arrayCopyChildren(this.node)},configurable:!0},textContent:{get:function(){return this.node.textContent},set:function(e){return this.node.textContent=e},configurable:!0},innerHTML:{get:function(){return this.node.innerHTML},set:function(e){return this.node.innerHTML=e},configurable:!0}});var r=function(e){i.prototype[e]=function(){return this.node[e].apply(this.node,arguments)}};!function(e){for(var t=0;t<e.length;t++)r(e[t])}(["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector"]);var n=function(e){Object.defineProperty(i.prototype,e,{get:function(){return this.node[e]},configurable:!0})};!function(e){for(var t=0;t<e.length;t++)n(e[t])}(["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling"])}}(),Polymer.Base.mixin(Polymer.dom,{_flushGuard:0,_FLUSH_MAX:100,_needsTakeRecords:!Polymer.Settings.useNativeCustomElements,_debouncers:[],_staticFlushList:[],_finishDebouncer:null,flush:function(){for(this._flushGuard=0,this._prepareFlush();this._debouncers.length&&this._flushGuard<this._FLUSH_MAX;){for(;this._debouncers.length;)this._debouncers.shift().complete();this._finishDebouncer&&this._finishDebouncer.complete(),this._prepareFlush(),this._flushGuard++}this._flushGuard>=this._FLUSH_MAX&&console.warn("Polymer.dom.flush aborted. Flush may not be complete.")},_prepareFlush:function(){this._needsTakeRecords&&CustomElements.takeRecords();for(var e=0;e<this._staticFlushList.length;e++)this._staticFlushList[e]()},addStaticFlush:function(e){this._staticFlushList.push(e)},removeStaticFlush:function(e){var t=this._staticFlushList.indexOf(e);t>=0&&this._staticFlushList.splice(t,1)},addDebouncer:function(e){this._debouncers.push(e),this._finishDebouncer=Polymer.Debounce(this._finishDebouncer,this._finishFlush)},_finishFlush:function(){Polymer.dom._debouncers=[]}}),Polymer.EventApi=function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;e.Event=function(e){this.event=e},t.useShadow?e.Event.prototype={get rootTarget(){return this.event.path[0]},get localTarget(){return this.event.target},get path(){var e=this.event.path;return Array.isArray(e)||(e=Array.prototype.slice.call(e)),e}}:e.Event.prototype={get rootTarget(){return this.event.target},get localTarget(){for(var e=this.event.currentTarget,t=e&&Polymer.dom(e).getOwnerRoot(),i=this.path,r=0;r<i.length;r++)if(Polymer.dom(i[r]).getOwnerRoot()===t)return i[r]},get path(){if(!this.event._path){for(var e=[],t=this.rootTarget;t;){e.push(t);var i=Polymer.dom(t).getDestinationInsertionPoints();if(i.length){for(var r=0;r<i.length-1;r++)e.push(i[r]);t=i[i.length-1]}else t=Polymer.dom(t).parentNode||t.host}e.push(window),this.event._path=e}return this.event._path}};return{factory:function(t){return t.__eventApi||(t.__eventApi=new e.Event(t)),t.__eventApi}}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings.useShadow;Object.defineProperty(e.prototype,"classList",{get:function(){return this._classList||(this._classList=new e.ClassList(this)),this._classList},configurable:!0}),e.ClassList=function(e){this.domApi=e,this.node=e.node},e.ClassList.prototype={add:function(){this.node.classList.add.apply(this.node.classList,arguments),this._distributeParent()},remove:function(){this.node.classList.remove.apply(this.node.classList,arguments),this._distributeParent()},toggle:function(){this.node.classList.toggle.apply(this.node.classList,arguments),this._distributeParent()},_distributeParent:function(){t||this.domApi._maybeDistributeParent()},contains:function(){return this.node.classList.contains.apply(this.node.classList,arguments)}}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;if(e.EffectiveNodesObserver=function(e){this.domApi=e,this.node=this.domApi.node,this._listeners=[]},e.EffectiveNodesObserver.prototype={addListener:function(e){this._isSetup||(this._setup(),this._isSetup=!0);var t={fn:e,_nodes:[]};return this._listeners.push(t),this._scheduleNotify(),t},removeListener:function(e){var t=this._listeners.indexOf(e);t>=0&&(this._listeners.splice(t,1),e._nodes=[]),this._hasListeners()||(this._cleanup(),this._isSetup=!1)},_setup:function(){this._observeContentElements(this.domApi.childNodes)},_cleanup:function(){this._unobserveContentElements(this.domApi.childNodes)},_hasListeners:function(){return Boolean(this._listeners.length)},_scheduleNotify:function(){this._debouncer&&this._debouncer.stop(),this._debouncer=Polymer.Debounce(this._debouncer,this._notify),this._debouncer.context=this,Polymer.dom.addDebouncer(this._debouncer)},notify:function(){this._hasListeners()&&this._scheduleNotify()},_notify:function(){this._beforeCallListeners(),this._callListeners()},_beforeCallListeners:function(){this._updateContentElements()},_updateContentElements:function(){this._observeContentElements(this.domApi.childNodes)},_observeContentElements:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)this._isContent(t)&&(t.__observeNodesMap=t.__observeNodesMap||new WeakMap,t.__observeNodesMap.has(this)||t.__observeNodesMap.set(this,this._observeContent(t)))},_observeContent:function(e){var t=this,i=Polymer.dom(e).observeNodes((function(){t._scheduleNotify()}));return i._avoidChangeCalculation=!0,i},_unobserveContentElements:function(e){for(var t,i,r=0;r<e.length&&(t=e[r]);r++)this._isContent(t)&&(i=t.__observeNodesMap&&t.__observeNodesMap.get(this))&&(Polymer.dom(t).unobserveNodes(i),t.__observeNodesMap.delete(this))},_isContent:function(e){return"content"===e.localName},_callListeners:function(){for(var e,t=this._listeners,i=this._getEffectiveNodes(),r=0;r<t.length&&(e=t[r]);r++){var n=this._generateListenerInfo(e,i);(n||e._alwaysNotify)&&this._callListener(e,n)}},_getEffectiveNodes:function(){return this.domApi.getEffectiveChildNodes()},_generateListenerInfo:function(e,t){if(e._avoidChangeCalculation)return!0;for(var i,r=e._nodes,n={target:this.node,addedNodes:[],removedNodes:[]},o=Polymer.ArraySplice.calculateSplices(t,r),s=0;s<o.length&&(i=o[s]);s++)for(var a,l=0;l<i.removed.length&&(a=i.removed[l]);l++)n.removedNodes.push(a);for(s=0;s<o.length&&(i=o[s]);s++)for(l=i.index;l<i.index+i.addedCount;l++)n.addedNodes.push(t[l]);return e._nodes=t,n.addedNodes.length||n.removedNodes.length?n:void 0}
8,_callListener:function(e,t){return e.fn.call(this.node,t)},enableShadowAttributeTracking:function(){}},t.useShadow){var i=e.EffectiveNodesObserver.prototype._setup,r=e.EffectiveNodesObserver.prototype._cleanup;Polymer.Base.mixin(e.EffectiveNodesObserver.prototype,{_setup:function(){if(!this._observer){var e=this;this._mutationHandler=function(t){t&&t.length&&e._scheduleNotify()},this._observer=new MutationObserver(this._mutationHandler),this._boundFlush=function(){e._flush()},Polymer.dom.addStaticFlush(this._boundFlush),this._observer.observe(this.node,{childList:!0})}i.call(this)},_cleanup:function(){this._observer.disconnect(),this._observer=null,this._mutationHandler=null,Polymer.dom.removeStaticFlush(this._boundFlush),r.call(this)},_flush:function(){this._observer&&this._mutationHandler(this._observer.takeRecords())},enableShadowAttributeTracking:function(){if(this._observer){this._makeContentListenersAlwaysNotify(),this._observer.disconnect(),this._observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0});var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).observer&&Polymer.dom(t).observer.enableShadowAttributeTracking()}},_makeContentListenersAlwaysNotify:function(){for(var e,t=0;t<this._listeners.length;t++)(e=this._listeners[t])._alwaysNotify=e._isContentListener}})}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;e.DistributedNodesObserver=function(t){e.EffectiveNodesObserver.call(this,t)},e.DistributedNodesObserver.prototype=Object.create(e.EffectiveNodesObserver.prototype),Polymer.Base.mixin(e.DistributedNodesObserver.prototype,{_setup:function(){},_cleanup:function(){},_beforeCallListeners:function(){},_getEffectiveNodes:function(){return this.domApi.getDistributedNodes()}}),t.useShadow&&Polymer.Base.mixin(e.DistributedNodesObserver.prototype,{_setup:function(){if(!this._observer){var e=this.domApi.getOwnerRoot(),t=e&&e.host;if(t){var i=this;this._observer=Polymer.dom(t).observeNodes((function(){i._scheduleNotify()})),this._observer._isContentListener=!0,this._hasAttrSelect()&&Polymer.dom(t).observer.enableShadowAttributeTracking()}}},_hasAttrSelect:function(){var e=this.node.getAttribute("select");return e&&e.match(/[[.]+/)},_cleanup:function(){var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).unobserveNodes(this._observer),this._observer=null}})}(),function(){var e=Polymer.DomApi,t=Polymer.TreeApi;Polymer.Base._addFeature({_prepShady:function(){this._useContent=this._useContent||Boolean(this._template)},_setupShady:function(){this.shadyRoot=null,this.__domApi||(this.__domApi=null),this.__dom||(this.__dom=null),this._ownerShadyRoot||(this._ownerShadyRoot=void 0)},_poolContent:function(){this._useContent&&t.Logical.saveChildNodes(this)},_setupRoot:function(){this._useContent&&(this._createLocalRoot(),this.dataHost||function(e){if(c&&e)for(var t=0;t<e.length;t++)CustomElements.upgrade(e[t])}(t.Logical.getChildNodes(this)))},_createLocalRoot:function(){this.shadyRoot=this.root,this.shadyRoot._distributionClean=!1,this.shadyRoot._hasDistributed=!1,this.shadyRoot._isShadyRoot=!0,this.shadyRoot._dirtyRoots=[];var e=this.shadyRoot._insertionPoints=!this._notes||this._notes._hasContent?this.shadyRoot.querySelectorAll("content"):[];t.Logical.saveChildNodes(this.shadyRoot);for(var i,r=0;r<e.length;r++)i=e[r],t.Logical.saveChildNodes(i),t.Logical.saveChildNodes(i.parentNode);this.shadyRoot.host=this},distributeContent:function(e){if(this.shadyRoot){this.shadyRoot._invalidInsertionPoints=this.shadyRoot._invalidInsertionPoints||e;var t=function(e){for(;e&&l(e);)e=e.domHost;return e}(this);Polymer.dom(this)._lazyDistribute(t)}},_distributeContent:function(){this._useContent&&!this.shadyRoot._distributionClean&&(this.shadyRoot._invalidInsertionPoints&&(Polymer.dom(this)._updateInsertionPoints(this),this.shadyRoot._invalidInsertionPoints=!1),this._beginDistribute(),this._distributeDirtyRoots(),this._finishDistribute())},_beginDistribute:function(){this._useContent&&e.hasInsertionPoint(this.shadyRoot)&&(this._resetDistribution(),this._distributePool(this.shadyRoot,this._collectPool()))},_distributeDirtyRoots:function(){for(var e,t=this.shadyRoot._dirtyRoots,i=0,r=t.length;i<r&&(e=t[i]);i++)e._distributeContent();this.shadyRoot._dirtyRoots=[]},_finishDistribute:function(){if(this._useContent){if(this.shadyRoot._distributionClean=!0,e.hasInsertionPoint(this.shadyRoot))this._composeTree(),function(t){for(var i,r=0;r<t._insertionPoints.length;r++)i=t._insertionPoints[r],e.hasApi(i)&&Polymer.dom(i).notifyObserver()}(this.shadyRoot);else if(this.shadyRoot._hasDistributed){var i=this._composeNode(this);this._updateChildNodes(this,i)}else t.Composed.clearChildNodes(this),this.appendChild(this.shadyRoot);this.shadyRoot._hasDistributed||(r=this,e.hasApi(r)&&Polymer.dom(r).notifyObserver()),this.shadyRoot._hasDistributed=!0}
8var r},elementMatches:function(t,i){return i=i||this,e.matchesSelector.call(i,t)},_resetDistribution:function(){for(var e=t.Logical.getChildNodes(this),i=0;i<e.length;i++){var r=e[i];r._destinationInsertionPoints&&(r._destinationInsertionPoints=void 0),a(r)&&n(r)}for(var o=this.shadyRoot._insertionPoints,s=0;s<o.length;s++)o[s]._distributedNodes=[]},_collectPool:function(){for(var e=[],i=t.Logical.getChildNodes(this),r=0;r<i.length;r++){var n=i[r];a(n)?e.push.apply(e,n._distributedNodes):e.push(n)}return e},_distributePool:function(e,t){for(var i,r=e._insertionPoints,n=0,s=r.length;n<s&&(i=r[n]);n++)this._distributeInsertionPoint(i,t),o(i,this)},_distributeInsertionPoint:function(e,i){for(var n,o=!1,s=0,a=i.length;s<a;s++)(n=i[s])&&this._matchesContentSelect(n,e)&&(r(n,e),i[s]=void 0,o=!0);if(!o)for(var l=t.Logical.getChildNodes(e),c=0;c<l.length;c++)r(l[c],e)},_composeTree:function(){this._updateChildNodes(this,this._composeNode(this));for(var e,i,r=this.shadyRoot._insertionPoints,n=0,o=r.length;n<o&&(e=r[n]);n++)(i=t.Logical.getParentNode(e))._useContent||i===this||i===this.shadyRoot||this._updateChildNodes(i,this._composeNode(i))},_composeNode:function(e){for(var i=[],r=t.Logical.getChildNodes(e.shadyRoot||e),n=0;n<r.length;n++){var o=r[n];if(a(o))for(var l=o._distributedNodes,c=0;c<l.length;c++){var u=l[c];s(o,u)&&i.push(u)}else i.push(o)}return i},_updateChildNodes:function(e,i){for(var r=t.Composed.getChildNodes(e),n=Polymer.ArraySplice.calculateSplices(i,r),o=0,s=0;o<n.length&&(c=n[o]);o++){for(var a,l=0;l<c.removed.length&&(a=c.removed[l]);l++)t.Composed.getParentNode(a)===e&&t.Composed.removeChild(e,a),r.splice(c.index+s,1);s-=c.addedCount}var c,u;for(o=0;o<n.length&&(c=n[o]);o++)for(u=r[c.index],l=c.index;l<c.index+c.addedCount;l++)a=i[l],t.Composed.insertBefore(e,a,u),r.splice(l,0,a)},_matchesContentSelect:function(e,t){var i=t.getAttribute("select");if(!i)return!0;if(!(i=i.trim()))return!0;if(!(e instanceof Element))return!1;return!!/^(:not\()?[*.#[a-zA-Z_|]/.test(i)&&this.elementMatches(i,e)},_elementAdd:function(){},_elementRemove:function(){}});var i={get:function(){var e=Polymer.dom(this).getOwnerRoot();return e&&e.host},configurable:!0};function r(e,t){t._distributedNodes.push(e);var i=e._destinationInsertionPoints;i?i.push(t):e._destinationInsertionPoints=[t]}function n(e){var t=e._distributedNodes;if(t)for(var i=0;i<t.length;i++){var r=t[i]._destinationInsertionPoints;r&&r.splice(r.indexOf(e)+1,r.length)}}function o(i,r){var n=t.Logical.getParentNode(i);n&&n.shadyRoot&&e.hasInsertionPoint(n.shadyRoot)&&n.shadyRoot._distributionClean&&(n.shadyRoot._distributionClean=!1,r.shadyRoot._dirtyRoots.push(n))}function s(e,t){var i=t._destinationInsertionPoints;return i&&i[i.length-1]===e}function a(e){return"content"==e.localName}function l(e){for(var i,r=t.Logical.getChildNodes(e),n=0;n<r.length;n++)if((i=r[n]).localName&&"content"===i.localName)return e.domHost}Object.defineProperty(Polymer.Base,"domHost",i),Polymer.BaseDescriptors.domHost=i;var c=window.CustomElements&&!CustomElements.useNative}(),Polymer.Settings.useShadow&&Polymer.Base._addFeature({_poolContent:function(){},_beginDistribute:function(){},distributeContent:function(){},_distributeContent:function(){},_finishDistribute:function(){},_createLocalRoot:function(){this.createShadowRoot(),this.shadowRoot.appendChild(this.root),this.root=this.shadowRoot}}),Polymer.Async={_currVal:0,_lastVal:0,_callbacks:[],_twiddleContent:0,_twiddle:document.createTextNode(""),run:function(e,t){return t>0?~setTimeout(e,t):(this._twiddle.textContent=this._twiddleContent++,this._callbacks.push(e),this._currVal++)},cancel:function(e){if(e<0)clearTimeout(~e);else{var t=e-this._lastVal;if(t>=0){if(!this._callbacks[t])throw"invalid async handle: "+e;this._callbacks[t]=null}}},_atEndOfMicrotask:function(){for(var e=this._callbacks.length,t=0;t<e;t++){var i=this._callbacks[t];if(i)try{i()}catch(e){throw t++,this._callbacks.splice(0,t),this._lastVal+=t,this._twiddle.textContent=this._twiddleContent++,e}}this._callbacks.splice(0,e),this._lastVal+=e}},new window.MutationObserver((function(){Polymer.Async._atEndOfMicrotask()})).observe(Polymer.Async._twiddle,{characterData:!0}
8),Polymer.Debounce=(o=Polymer.Async,(s=function(e){this.context=e;var t=this;this.boundComplete=function(){t.complete()}}).prototype={go:function(e,t){var i;this.finish=function(){o.cancel(i)},i=o.run(this.boundComplete,t),this.callback=e},stop:function(){this.finish&&(this.finish(),this.finish=null,this.callback=null)},complete:function(){if(this.finish){var e=this.callback;this.stop(),e.call(this.context)}}},function(e,t,i){return e?e.stop():e=new s(this),e.go(t,i),e}),Polymer.Base._addFeature({_setupDebouncers:function(){this._debouncers={}},debounce:function(e,t,i){return this._debouncers[e]=Polymer.Debounce.call(this,this._debouncers[e],t,i)},isDebouncerActive:function(e){var t=this._debouncers[e];return!(!t||!t.finish)},flushDebouncer:function(e){var t=this._debouncers[e];t&&t.complete()},cancelDebouncer:function(e){var t=this._debouncers[e];t&&t.stop()}}),Polymer.DomModule=document.createElement("dom-module"),Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepTemplate(),this._prepShady(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHostAttributes(e.hostAttributes)},_initFeatures:function(){this._registerHost(),this._template&&(this._poolContent(),this._beginHosting(),this._stampTemplate(),this._endHosting()),this._marshalHostAttributes(),this._setupDebouncers(),this._marshalBehaviors(),this._tryReady()},_marshalBehavior:function(e){}})},function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;!function(){function e(){document.body.removeAttribute("unresolved")}window.WebComponents?addEventListener("WebComponentsReady",e):"interactive"===document.readyState||"complete"===document.readyState?e():addEventListener("DOMContentLoaded",e)}(),window.Polymer={Settings:function(){var e=window.Polymer||{};if(!e.noUrlSettings)for(var t,i=location.search.slice(1).split("&"),r=0;r<i.length&&(t=i[r]);r++)(t=t.split("="))[0]&&(e[t[0]]=t[1]||!0);return e.wantShadow="shadow"===e.dom,e.hasShadow=Boolean(Element.prototype.createShadowRoot),e.nativeShadow=e.hasShadow&&!window.ShadowDOMPolyfill,e.useShadow=e.wantShadow&&e.hasShadow,e.hasNativeImports=Boolean("import"in document.createElement("link")),e.useNativeImports=e.hasNativeImports,e.useNativeCustomElements=!window.CustomElements||window.CustomElements.useNative,e.useNativeShadow=e.useShadow&&e.nativeShadow,e.usePolyfillProto=!e.useNativeCustomElements&&!Object.__proto__,e.hasNativeCSSProperties=!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)"),e.useNativeCSSProperties=e.hasNativeCSSProperties&&e.lazyRegister&&e.useNativeCSSProperties,e.isIE=navigator.userAgent.match("Trident"),e.passiveTouchGestures=e.passiveTouchGestures||!1,e}()},function(){var e=window.Polymer;window.Polymer=function(e){"function"==typeof e&&(e=e.prototype),e||(e={});var i=(e=t(e))===e.constructor.prototype?e.constructor:null,r={prototype:e};e.extends&&(r.extends=e.extends),Polymer.telemetry._registrate(e);var n=document.registerElement(e.is,r);return i||n};var t=function(e){var t=Polymer.Base;return e.extends&&(t=Polymer.Base._getExtendedPrototype(e.extends)),(e=Polymer.Base.chainObject(e,t)).registerCallback(),e};if(e)for(var i in e)Polymer[i]=e[i];Polymer.Class=function(e){return e.factoryImpl||(e.factoryImpl=function(){}),t(e).constructor}}(),Polymer.telemetry={registrations:[],_regLog:function(e){console.log("["+e.is+"]: registered")},_registrate:function(e){this.registrations.push(e),Polymer.log&&this._regLog(e)},dumpRegistrations:function(){this.registrations.forEach(this._regLog)}},Object.defineProperty(window,"currentImport",{enumerable:!0,configurable:!0,get:function(){return(document._currentScript||document.currentScript||{}).ownerDocument}}),Polymer.RenderStatus={_ready:!1,_callbacks:[],whenReady:function(e){this._ready?e():this._callbacks.push(e)},_makeReady:function(){this._ready=!0;for(var e=0;e<this._callbacks.length;e++)this._callbacks[e]();this._callbacks=[]},_catchFirstRender:function(){requestAnimationFrame((function(){Polymer.RenderStatus._makeReady()}))},_afterNextRenderQueue:[],_waitingNextRender:!1,afterNextRender:function(e,t,i){this._watchNextRender(),this._afterNextRenderQueue.push([e,t,i])},hasRendered:function(){return this._ready},_watchNextRender:function(){if(!this._waitingNextRender){this._waitingNextRender=!0;var e=function(){Polymer.RenderStatus._flushNextRender()};this._ready?requestAnimationFrame(e):this.whenReady(e)}},_flushNextRender:function(){var e=this;setTimeout((function(){e._flushRenderCallbacks(e._afterNextRenderQueue),e._afterNextRenderQueue=[],e._waitingNextRender=!1}))},_flushRenderCallbacks:function(e){for(var t,i=0;i<e.length;i++)(t=e[i])[1].apply(t[0],t[2]||Polymer.nar)}},window.HTMLImports?HTMLImports.whenReady((function(){Polymer.RenderStatus._catchFirstRender()})):Polymer.RenderStatus._catchFirstRender(),Polymer.ImportStatus=Polymer.RenderStatus,Polymer.ImportStatus.whenLoaded=Polymer.ImportStatus.whenReady,function(){"use strict";var e,t=Polymer.Settings;if(Polymer.Base={__isPolymerInstance__:!0,_addFeature:function(e){this.mixin(this,e)},registerCallback:function(){if("max"===t.lazyRegister)this.beforeRegister&&this.beforeRegister();else{this._desugarBehaviors();for(var e,i=0;i<this.behaviors.length;i++)(e=this.behaviors[i]).beforeRegister&&e.beforeRegister.call(this);this.beforeRegister&&this.beforeRegister()}this._registerFeatures(),t.lazyRegister||this.ensureRegisterFinished()},createdCallback:function(){if(t.disableUpgradeEnabled){if(this.hasAttribute("disable-upgrade"))return this._propertySetter=e,this._configValue=null,void(this.__data__={});this.__hasInitialized=!0}this.__initialize()},__initialize:function(){this.__hasRegisterFinished||this._ensureRegisterFinished(this.__proto__),Polymer.telemetry.instanceCount++,this.root=this;for(var e,t=0;t<this.behaviors.length;t++)(e=this.behaviors[t]).created&&e.created.call(this);this.created&&this.created(),this._initFeatures()},ensureRegisterFinished:function(){this._ensureRegisterFinished(this)},_ensureRegisterFinished:function(e){if(e.__hasRegisterFinished!==e.is||!e.is){if("max"===t.lazyRegister){e._desugarBehaviors();for(var i,r=0;r<e.behaviors.length;r++)(i=e.behaviors[r]).beforeRegister&&i.beforeRegister.call(e)}e.__hasRegisterFinished=e.is,e._finishRegisterFeatures&&e._finishRegisterFeatures();for(var n,o=0;o<e.behaviors.length;o++)(n=e.behaviors[o]).registered&&n.registered.call(e);e.registered&&e.registered(),t.usePolyfillProto&&e!==this&&e.extend(this,e)}},attachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady((function(){e.isAttached=!0;for(var t,i=0;i<e.behaviors.length;i++)(t=e.behaviors[i]).attached&&t.attached.call(e);e.attached&&e.attached()}))},detachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady((function(){e.isAttached=!1;for(var t,i=0;i<e.behaviors.length;i++)(t=e.behaviors[i]).detached&&t.detached.call(e);e.detached&&e.detached()}))},attributeChangedCallback:function(e,t,i){this._attributeChangedImpl(e);for(var r,n=0;n<this.behaviors.length;n++)(r=this.behaviors[n]).attributeChanged&&r.attributeChanged.call(this,e,t,i);this.attributeChanged&&this.attributeChanged(e,t,i)},_attributeChangedImpl:function(e){this._setAttributeToProperty(this,e)},extend:function(e,t){if(e&&t)for(var i,r=Object.getOwnPropertyNames(t),n=0;n<r.length&&(i=r[n]);n++)this.copyOwnProperty(i,t,e);return e||t},mixin:function(e,t){for(var i in t)e[i]=t[i];return e},copyOwnProperty:function(e,t,i){var r=Object.getOwnPropertyDescriptor(t,e);r&&Object.defineProperty(i,e,r)},_logger:function(e,t){switch(1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e].apply(console,t)}},_log:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("log",e)},_warn:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("warn",e)},_error:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("error",e)},_logf:function(){return this._logPrefix.concat(this.is).concat(Array.prototype.slice.call(arguments,0))}},Polymer.Base._logPrefix=window.chrome&&!/edge/i.test(navigator.userAgent)||/firefox/i.test(navigator.userAgent)?["%c[%s::%s]:","font-weight: bold; background-color:#EEEE00;"]:["[%s::%s]:"],Polymer.Base.chainObject=function(e,t){return e&&t&&e!==t&&(Object.__proto__||(e=Polymer.Base.extend(Object.create(t),e)),e.__proto__=t),e},Polymer.Base=Polymer.Base.chainObject(Polymer.Base,HTMLElement.prototype),Polymer.BaseDescriptors={},t.disableUpgradeEnabled){e=function(e,t){this.__data__[e]=t};var i=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(e,t,r){this.__hasInitialized||"disable-upgrade"!==e||(this.__hasInitialized=!0,this._propertySetter=Polymer.Bind._modelApi._propertySetter,this._configValue=Polymer.Base._configValue,this.__initialize()),i.call(this,e,t,r)}}window.CustomElements?Polymer.instanceof=CustomElements.instanceof:Polymer.instanceof=function(e,t){return e instanceof t},Polymer.isInstance=function(e){return Boolean(e&&e.__isPolymerInstance__)},Polymer.telemetry.instanceCount=0}(),function(){var e={},t={};function i(i,r){e[i]=t[i.toLowerCase()]=r}var r=function(i){return e[i]||t[i.toLowerCase()]},n=function(){return document.createElement("dom-module")};n.prototype=Object.create(HTMLElement.prototype),Polymer.Base.mixin(n.prototype,{createdCallback:function(){this.register()},register:function(e){if(e=e||this.id||this.getAttribute("name")||this.getAttribute("is")){if(Polymer.Settings.strictTemplatePolicy&&void 0!==r(e))throw i(e,null),new Error("strictTemplatePolicy: dom-module "+e+" re-registered");this.id=e,i(e,this)}},import:function(e,t){if(e){var i=r(e);
8return i||(!function(){if(o)for(var e,t=document._currentScript||document.currentScript,i=(t&&t.ownerDocument||document).querySelectorAll("dom-module"),r=i.length-1;r>=0&&(e=i[r]);r--){if(e.__upgraded__)return;CustomElements.upgrade(e)}}(),i=r(e)),i&&t&&(i=i.querySelector(t)),i}}}),Object.defineProperty(n.prototype,"constructor",{value:n,configurable:!0,writable:!0});var o=window.CustomElements&&!CustomElements.useNative;document.registerElement("dom-module",n)}(),Polymer.Base._addFeature({_prepIs:function(){if(!this.is){var e=(document._currentScript||document.currentScript).parentNode;if("dom-module"===e.localName){var t=e.id||e.getAttribute("name")||e.getAttribute("is");this.is=t}}this.is&&(this.is=this.is.toLowerCase())}}),Polymer.Base._addFeature({behaviors:[],_desugarBehaviors:function(){this.behaviors.length&&(this.behaviors=this._desugarSomeBehaviors(this.behaviors))},_desugarSomeBehaviors:function(e){for(var t=[],i=(e=this._flattenBehaviorsList(e)).length-1;i>=0;i--){var r=e[i];-1===t.indexOf(r)&&(this._mixinBehavior(r),t.unshift(r))}return t},_flattenBehaviorsList:function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];r instanceof Array?t=t.concat(this._flattenBehaviorsList(r)):r?t.push(r):this._warn(this._logf("_flattenBehaviorsList","behavior is null, check for missing or 404 import"))}return t},_mixinBehavior:function(e){for(var t,i=Object.getOwnPropertyNames(e),r=e._noAccessors,n=0;n<i.length&&(t=i[n]);n++)Polymer.Base._behaviorProperties[t]||this.hasOwnProperty(t)||(r?this[t]=e[t]:this.copyOwnProperty(t,e,this))},_prepBehaviors:function(){this._prepFlattenedBehaviors(this.behaviors)},_prepFlattenedBehaviors:function(e){for(var t=0,i=e.length;t<i;t++)this._prepBehavior(e[t]);this._prepBehavior(this)},_marshalBehaviors:function(){for(var e=0;e<this.behaviors.length;e++)this._marshalBehavior(this.behaviors[e]);this._marshalBehavior(this)}}),Polymer.Base._behaviorProperties={hostAttributes:!0,beforeRegister:!0,registered:!0,properties:!0,observers:!0,listeners:!0,created:!0,attached:!0,detached:!0,attributeChanged:!0,ready:!0,_noAccessors:!0},Polymer.Base._addFeature({_getExtendedPrototype:function(e){return this._getExtendedNativePrototype(e)},_nativePrototypes:{},_getExtendedNativePrototype:function(e){var t=this._nativePrototypes[e];if(!t){t=Object.create(this.getNativePrototype(e));for(var i,r=Object.getOwnPropertyNames(Polymer.Base),n=0;n<r.length&&(i=r[n]);n++)Polymer.BaseDescriptors[i]||(t[i]=Polymer.Base[i]);Object.defineProperties(t,Polymer.BaseDescriptors),this._nativePrototypes[e]=t}return t},getNativePrototype:function(e){return Object.getPrototypeOf(document.createElement(e))}}),Polymer.Base._addFeature({_prepConstructor:function(){this._factoryArgs=this.extends?[this.extends,this.is]:[this.is];var e=function(){return this._factory(arguments)};this.hasOwnProperty("extends")&&(e.extends=this.extends),Object.defineProperty(this,"constructor",{value:e,writable:!0,configurable:!0}),e.prototype=this},_factory:function(e){var t=document.createElement.apply(document,this._factoryArgs);return this.factoryImpl&&this.factoryImpl.apply(t,e),t}}),Polymer.nob=Object.create(null),Polymer.Base._addFeature({getPropertyInfo:function(e){var t=this._getPropertyInfo(e,this.properties);if(!t)for(var i=0;i<this.behaviors.length;i++)if(t=this._getPropertyInfo(e,this.behaviors[i].properties))return t;return t||Polymer.nob},_getPropertyInfo:function(e,t){var i=t&&t[e];return"function"==typeof i&&(i=t[e]={type:i}),i&&(i.defined=!0),i},_prepPropertyInfo:function(){this._propertyInfo={};for(var e=0;e<this.behaviors.length;e++)this._addPropertyInfo(this._propertyInfo,this.behaviors[e].properties);this._addPropertyInfo(this._propertyInfo,this.properties),this._addPropertyInfo(this._propertyInfo,this._propertyEffects)},_addPropertyInfo:function(e,t){var i,r;if(t)for(var n in t)i=e[n],r=t[n],("_"!==n[0]||r.readOnly)&&(e[n]?(i.type||(i.type=r.type),i.readOnly||(i.readOnly=r.readOnly)):e[n]={type:"function"==typeof r?r:r.type,readOnly:r.readOnly,attribute:Polymer.CaseMap.camelToDashCase(n)})}}),r={configurable:!0,writable:!0,enumerable:!0,value:{}},Polymer.BaseDescriptors.properties=r,Object.defineProperty(Polymer.Base,"properties",r),Polymer.CaseMap={_caseMap:{},_rx:{dashToCamel:/-[a-z]/g,camelToDash:/([A-Z])/g},dashToCamelCase:function(e){return this._caseMap[e]||(this._caseMap[e]=e.indexOf("-")<0?e:e.replace(this._rx.dashToCamel,(function(e){return e[1].toUpperCase()})))},camelToDashCase:function(e){return this._caseMap[e]||(this._caseMap[e]=e.replace(this._rx.camelToDash,"-$1").toLowerCase())}},Polymer.Base._addFeature({_addHostAttributes:function(e){this._aggregatedAttributes||(this._aggregatedAttributes={}),e&&this.mixin(this._aggregatedAttributes,e)},_marshalHostAttributes:function(){this._aggregatedAttributes&&this._applyAttributes(this,this._aggregatedAttributes)},_applyAttributes:function(e,t){for(var i in t)if(!this.hasAttribute(i)&&"class"!==i){var r=t[i];this.serializeValueToAttribute(r,i,this)}},_marshalAttributes:function(){this._takeAttributesToModel(this)},_takeAttributesToModel:function(e){if(this.hasAttributes())for(var t in this._propertyInfo){var i=this._propertyInfo[t];this.hasAttribute(i.attribute)&&this._setAttributeToProperty(e,i.attribute,t,i)}},_setAttributeToProperty:function(e,t,i,r){if(!this._serializing&&(i=i||Polymer.CaseMap.dashToCamelCase(t),(r=r||this._propertyInfo&&this._propertyInfo[i])&&!r.readOnly)){var n=this.getAttribute(t);e[i]=this.deserialize(n,r.type)}},_serializing:!1,reflectPropertyToAttribute:function(e,t,i){this._serializing=!0,i=void 0===i?this[e]:i,this.serializeValueToAttribute(i,t||Polymer.CaseMap.camelToDashCase(e)),this._serializing=!1},serializeValueToAttribute:function(e,t,i){var r=this.serialize(e);i=i||this,void 0===r?i.removeAttribute(t):i.setAttribute(t,r)},deserialize:function(e,t){switch(t){case Number:e=Number(e);break;case Boolean:e=null!=e;break;case Object:try{e=JSON.parse(e)}catch(e){}break;case Array:try{e=JSON.parse(e)}catch(t){e=null,console.warn("Polymer::Attributes: couldn`t decode Array as JSON")}break;case Date:e=new Date(e)}return e},serialize:function(e){switch(i(e)){case"boolean":return e?"":void 0;case"object":if(e instanceof Date)return e.toString();if(e)try{return JSON.stringify(e)}catch(e){return""}default:return null!=e?e:void 0}}}),Polymer.version="1.12.0",Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHostAttributes(e.hostAttributes)},_marshalBehavior:function(e){},_initFeatures:function(){this._marshalHostAttributes(),this._marshalBehaviors()}})},function(e,t,i){i(0),i(8),i(9),i(10),i(1).register("<dom-module id=app-location> <template> <iron-location path={{__path}} query={{__query}} hash={{__hash}} url-space-regex={{urlSpaceRegex}}> </iron-location> <iron-query-params params-string={{__query}} params-object={{queryParams}}> </iron-query-params> </template> </dom-module>"),function(){"use strict";Polymer({is:"app-location",properties:{route:{type:Object,notify:!0},useHashAsPath:{type:Boolean,value:!1},urlSpaceRegex:{type:String,notify:!0},__queryParams:{type:Object},__path:{type:String},__query:{type:String},__hash:{type:String},path:{type:String,observer:"__onPathChanged"}},behaviors:[Polymer.AppRouteConverterBehavior],observers:["__computeRoutePath(useHashAsPath, __hash, __path)"],__computeRoutePath:function(){this.path=this.useHashAsPath?this.__hash:this.__path},__onPathChanged:function(){this._readied&&(this.useHashAsPath?this.__hash=this.path:this.__path=this.path)}})}()},function(e,t,i){i(0),function(){"use strict";Polymer({is:"iron-location",properties:{path:{type:String,notify:!0,value:function(){return window.decodeURIComponent(window.location.pathname)}},query:{type:String,notify:!0,value:function(){return window.location.search.slice(1)}},hash:{type:String,notify:!0,value:function(){return window.decodeURIComponent(window.location.hash.slice(1))}},dwellTime:{type:Number,value:2e3},urlSpaceRegex:{type:String,value:""},_urlSpaceRegExp:{computed:"_makeRegExp(urlSpaceRegex)"},_lastChangedAt:{type:Number},_initialized:{type:Boolean,value:!1}},hostAttributes:{hidden:!0},observers:["_updateUrl(path, query, hash)"],attached:function(){this.listen(window,"hashchange","_hashChanged"),this.listen(window,"location-changed","_urlChanged"),this.listen(window,"popstate","_urlChanged"),this.listen(document.body,"click","_globalOnClick"),this._lastChangedAt=window.performance.now()-(this.dwellTime-200),this._initialized=!0,this._urlChanged()},detached:function(){this.unlisten(window,"hashchange","_hashChanged"),this.unlisten(window,"location-changed","_urlChanged"),this.unlisten(window,"popstate","_urlChanged"),this.unlisten(document.body,"click","_globalOnClick"),this._initialized=!1},_hashChanged:function(){this.hash=window.decodeURIComponent(window.location.hash.substring(1))},_urlChanged:function(){this._dontUpdateUrl=!0,this._hashChanged(),this.path=window.decodeURIComponent(window.location.pathname),this.query=window.location.search.substring(1),this._dontUpdateUrl=!1,this._updateUrl()},_getUrl:function(){var e=window.encodeURI(this.path).replace(/\#/g,"%23").replace(/\?/g,"%3F"),t="";this.query&&(t="?"+this.query.replace(/\#/g,"%23"));var i="";return this.hash&&(i="#"+window.encodeURI(this.hash)),e+t+i},_updateUrl:function(){if(!this._dontUpdateUrl&&this._initialized&&(this.path!==window.decodeURIComponent(window.location.pathname)||this.query!==window.location.search.substring(1)||this.hash!==window.decodeURIComponent(window.location.hash.substring(1)))){var e=this._getUrl(),t=new URL(e,window.location.protocol+"//"+window.location.host).href,i=window.performance.now(),r=this._lastChangedAt+this.dwellTime>i;this._lastChangedAt=i,r?window.history.replaceState({},"",t):window.history.pushState({},"",t),this.fire("location-changed",{},{node:window})}},_globalOnClick:function(e){if(!e.defaultPrevented){var t=this._getSameOriginLinkHref(e);t&&(e.preventDefault(),t!==window.location.href&&(window.history.pushState({},"",t),this.fire("location-changed",{},{node:window})))}},_getSameOriginLinkHref:function(e){if(0!==e.button)return null;if(e.metaKey||e.ctrlKey)return null;for(var t=Polymer.dom(e).path,i=null,r=0;r<t.length;r++){var n=t[r];
8if("A"===n.tagName&&n.href){i=n;break}}if(!i)return null;if("_blank"===i.target)return null;if(("_top"===i.target||"_parent"===i.target)&&window.top!==window)return null;var o,s,a=i.href;if(o=null!=document.baseURI?new URL(a,document.baseURI):new URL(a),window.location.origin?s=window.location.origin:(s=window.location.protocol+"//"+window.location.hostname,window.location.port&&(s+=":"+window.location.port)),o.origin!==s)return null;var l=o.pathname+o.search+o.hash;return this._urlSpaceRegExp&&!this._urlSpaceRegExp.test(l)?null:new URL(l,window.location.href).href},_makeRegExp:function(e){return RegExp(e)}})}()},function(e,t,i){i(0),Polymer({is:"iron-query-params",properties:{paramsString:{type:String,notify:!0,observer:"paramsStringChanged"},paramsObject:{type:Object,notify:!0,value:function(){return{}}},_dontReact:{type:Boolean,value:!1}},hostAttributes:{hidden:!0},observers:["paramsObjectChanged(paramsObject.*)"],paramsStringChanged:function(){this._dontReact=!0,this.paramsObject=this._decodeParams(this.paramsString),this._dontReact=!1},paramsObjectChanged:function(){this._dontReact||(this.paramsString=this._encodeParams(this.paramsObject).replace(/%3F/g,"?").replace(/%2F/g,"/").replace(/'/g,"%27"))},_encodeParams:function(e){var t=[];for(var i in e){var r=e[i];""===r?t.push(encodeURIComponent(i)):r&&t.push(encodeURIComponent(i)+"="+encodeURIComponent(r.toString()))}return t.join("&")},_decodeParams:function(e){for(var t={},i=(e=(e||"").replace(/\+/g,"%20")).split("&"),r=0;r<i.length;r++){var n=i[r].split("=");n[0]&&(t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||""))}return t}})},function(e,t){!function(){"use strict";Polymer.AppRouteConverterBehavior={properties:{route:{type:Object,notify:!0},queryParams:{type:Object,notify:!0},path:{type:String,notify:!0}},observers:["_locationChanged(path, queryParams)","_routeChanged(route.prefix, route.path)","_routeQueryParamsChanged(route.__queryParams)"],created:function(){this.linkPaths("route.__queryParams","queryParams"),this.linkPaths("queryParams","route.__queryParams")},_locationChanged:function(){this.route&&this.route.path===this.path&&this.queryParams===this.route.__queryParams||(this.route={prefix:"",path:this.path,__queryParams:this.queryParams})},_routeChanged:function(){this.route&&(this.path=this.route.prefix+this.route.path)},_routeQueryParamsChanged:function(e){this.route&&(this.queryParams=e)}}}()},function(e,t,i){i(0),function(){"use strict";Polymer({is:"app-route",properties:{route:{type:Object,notify:!0},pattern:{type:String},data:{type:Object,value:function(){return{}},notify:!0},queryParams:{type:Object,value:function(){return{}},notify:!0},tail:{type:Object,value:function(){return{path:null,prefix:null,__queryParams:null}},notify:!0},active:{type:Boolean,notify:!0,readOnly:!0},_queryParamsUpdating:{type:Boolean,value:!1},_matched:{type:String,value:""}},observers:["__tryToMatch(route.path, pattern)","__updatePathOnDataChange(data.*)","__tailPathChanged(tail.path)","__routeQueryParamsChanged(route.__queryParams)","__tailQueryParamsChanged(tail.__queryParams)","__queryParamsChanged(queryParams.*)"],created:function(){this.linkPaths("route.__queryParams","tail.__queryParams"),this.linkPaths("tail.__queryParams","route.__queryParams")},__routeQueryParamsChanged:function(e){if(e&&this.tail){if(this.set("tail.__queryParams",e),!this.active||this._queryParamsUpdating)return;var t={},i=!1;for(var r in e)t[r]=e[r],!i&&this.queryParams&&e[r]===this.queryParams[r]||(i=!0);for(var r in this.queryParams)if(i||!(r in e)){i=!0;break}if(!i)return;this._queryParamsUpdating=!0,this.set("queryParams",t),this._queryParamsUpdating=!1}},__tailQueryParamsChanged:function(e){e&&this.route&&this.set("route.__queryParams",e)},__queryParamsChanged:function(e){this.active&&!this._queryParamsUpdating&&this.set("route.__"+e.path,e.value)},__resetProperties:function(){this._setActive(!1),this._matched=null},__tryToMatch:function(){if(this.route){var e=this.route.path,t=this.pattern;if(t)if(e){for(var i=e.split("/"),r=t.split("/"),n=[],o={},s=0;s<r.length;s++){var a=r[s];if(!a&&""!==a)break;var l=i.shift();if(!l&&""!==l)return void this.__resetProperties();if(n.push(l),":"==a.charAt(0))o[a.slice(1)]=l;else if(a!==l)return void this.__resetProperties()}this._matched=n.join("/");var c={};this.active||(c.active=!0);var u=this.route.prefix+this._matched,h=i.join("/");for(var d in i.length>0&&(h="/"+h),this.tail&&this.tail.prefix===u&&this.tail.path===h||(c.tail={prefix:u,path:h,__queryParams:this.route.__queryParams}),c.data=o,this._dataInUrl={},o)this._dataInUrl[d]=o[d];this.__setMulti(c)}else this.__resetProperties()}},__tailPathChanged:function(e){if(this.active){var t=e,i=this._matched;t&&("/"!==t.charAt(0)&&(t="/"+t),i+=t),this.set("route.path",i)}},__updatePathOnDataChange:function(){if(this.route&&this.active){var e=this.__getLink({});e!==this.__getLink(this._dataInUrl)&&this.set("route.path",e)}},__getLink:function(e){var t={tail:null};for(var i in this.data)t[i]=this.data[i];for(var i in e)t[i]=e[i];var r=this.pattern.split("/").map((function(e){return":"==e[0]&&(e=t[e.slice(1)]),e}),this);return t.tail&&t.tail.path&&(r.length>0&&"/"===t.tail.path.charAt(0)?r.push(t.tail.path.slice(1)):r.push(t.tail.path)),r.join("/")},__setMulti:function(e){for(var t in e)this._propertySetter(t,e[t]);void 0!==e.data&&(this._pathEffector("data",this.data),this._notifyChange("data")),void 0!==e.active&&(this._pathEffector("active",this.active),this._notifyChange("active")),void 0!==e.tail&&(this._pathEffector("tail",this.tail),this._notifyChange("tail"))}})}()},function(e,t,i){i(0),i(13),i(14),i(1).register("<dom-module id=iron-pages> <template> <style>:host{display:block}:host>::content>:not(.iron-selected){display:none!important}</style> <content></content> </template> </dom-module>"),Polymer({is:"iron-pages",behaviors:[Polymer.IronResizableBehavior,Polymer.IronSelectableBehavior],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(e,t){this.async(this.notifyResize)}})},function(e,t,i){i(0),Polymer.IronResizableBehavior={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this)},attached:function(){this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable||(window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):window.removeEventListener("resize",this._boundNotifyResize),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEac
8h((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable=e},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this.unlisten(e,"iron-resize","_onDescendantIronResize"))},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():Polymer.Settings.useShadow||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=e.path?e.path[0]:e.target;t!==this&&(-1===this._interestedResizables.indexOf(t)&&(this._interestedResizables.push(t),this.listen(t,"iron-resize","_onDescendantIronResize")),t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)}}},function(e,t,i){i(0),i(15),Polymer.IronSelectableBehavior={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new Polymer.IronSelection(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._updateItems(),this._shouldUpdateSelection||this._updateSelected(),this._addListener(this.activateEvent)},detached:function(){this._observer&&Polymer.dom(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items.indexOf(e)},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=(Number(this._valueToIndex(this.selected))-1+e)%e;this.selected=this._indexToValue(t)},selectNext:function(){var e=(Number(this._valueToIndex(this.selected))+1)%this.items.length;this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._shouldUpdateSelection&&this._updateSelected()},_addListener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=Polymer.dom(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this._shouldUpdateSelection&&(this.selected=this._indexToValue(this.indexOf(this.selectedItem)))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(e){this._selection.select(this._valueToItem(this.selected)),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return Number(e);for(var t,i=0;t=this.items[i];i++)if(this._valueForItem(t)==e)return i},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){var t=e[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];return null!=t?t:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return Polymer.dom(e).observeNodes((function(e){this._updateItems(),this._shouldUpdateSelection&&this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})}
8))},_activateHandler:function(e){for(var t=e.target,i=this.items;t&&t!=this;){var r=i.indexOf(t);if(r>=0){var n=this._indexToValue(r);return void this._itemActivate(n,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}}},function(e,t,i){i(0),Polymer.IronSelection=function(e){this.selection=[],this.selectCallback=e},Polymer.IronSelection.prototype={get:function(){return this.multi?this.selection.slice():this.selection[0]},clear:function(e){this.selection.slice().forEach((function(t){(!e||e.indexOf(t)<0)&&this.setItemSelected(t,!1)}),this)},isSelected:function(e){return this.selection.indexOf(e)>=0},setItemSelected:function(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var i=this.selection.indexOf(e);i>=0&&this.selection.splice(i,1)}this.selectCallback&&this.selectCallback(e,t)}},select:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))},toggle:function(e){this.setItemSelected(e,!this.isSelected(e))}}},function(e,t,i){function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i(0),i(17),i(1).register('<dom-module id=upcontent-topic-list> <template> <style>:host{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}</style> <template is=dom-repeat items="[[ collections ]]"> <upcontent-topic-preview topic="[[ item ]]" id="[[ item.id ]]" name="[[ item.name ]]" suggestions="[[ item.suggestions ]]" count="[[ item.count ]]" link-prefix=#/view/ fallback-image="[[ item.fallbackImage ]]" class=uc-gallery--topic-preview> </upcontent-topic-preview> </template> </template> <style>.uc-gallery--topic-preview{max-width:100%}</style> </dom-module>'),Polymer({is:"upcontent-topic-list",properties:{gallery:{type:String},collections:{type:Array}},ready:function(){var e=this;url="".concat("https://galleries.upcontent.com/","galleries/").concat(this.gallery,"/preview.json"),fetch(url).then((function(e){return e.json()})).then((function(t){e.collections=t.map((function(e){return n(n({},e),{},{suggestions:e.selections,count:e.selection_count.toLocaleString()})}))}))}})},function(e,t,i){i(0),i(18),i(1).register('<dom-module id=upcontent-topic-preview> <template> <style>.uc-gallery--collection{border:1px solid #f4f4f4;overflow:visible;display:inline-block;margin:1em;color:inherit;text-decoration:none;box-sizing:border-box;max-width:100%}.uc-gallery--collection>.uc-gallery--carousel{overflow:visible}.uc-gallery--slide{overflow:visible}.uc-gallery--headline{position:absolute;top:0;left:0;font-size:1.5em;line-height:2em;margin:.5em;font-weight:lighter;color:#fff;display:inline;overflow:hidden}.uc-gallery--headline-inner{background-color:#7755cd}.uc-gallery--source{position:absolute;bottom:-.75em;right:0;height:1em;padding:.25em 1em;line-height:1em;font-size:.75em;font-weight:400;color:#fff;display:inline;text-align:center;background-color:#4bb4d2}.uc-gallery--image{width:100%;height:100%;object-fit:cover}.uc-gallery--collection-info{overflow:hidden;display:flex;flex-flow:row no-wrap;justify-content:center;align-items:center;padding:0 1em}.uc-gallery--title{text-transform:uppercase;flex-grow:1;font-size:1em;font-weight:700;color:#565656;text-transform:uppercase}.uc-gallery--count{flex-shrink:0;flex-grow:0;font-size:1em;font-weight:400;color:#565656}.uc-car-container,.uc-car-container-inner{box-sizing:border-box;width:100%;display:block;position:relative}.uc-car-contain-inner{width:100%;padding-bottom:75%;display:block;position:relative}.uc-gallery--carousel{position:absolute;margin:0;left:0;right:0;bottom:0;top:0}</style> <a href$="[[ linkPrefix ]][[ id ]]/" class=uc-gallery--collection> <div class=uc-car-container> <div class=uc-car-contain-inner>
8 <upcontent-carousel aria-hidden=true class=uc-gallery--carousel> <template id=slide is=dom-repeat items="{{ suggestions }}"> <div class=uc-gallery--slide> <div class=uc-gallery--headline><span aria-hidden=true class=uc-gallery--headline-inner>[[ item.title ]]</span></div> <div class=uc-gallery--source aria-hidden=true>[[ item.creator ]]</div> <img class=uc-gallery--image aria-hidden=true src=[[item.image_url]] on-error=_fallbackImage> </div> </template> </upcontent-carousel> </div> </div> <div class="uc-gallery--collection-info uc-gallery--content"> <span class=uc-gallery--title>[[ name ]]</span> <span class=uc-gallery--count>[[ count ]] Articles</span> </div> </a> <div style=max-height:0;overflow:hidden;max-width:0> <ul style=list-style:none> <template is=dom-repeat items="[[ suggestions ]]"> <li> <a href$=https://go.upcontent.com/[[item.id]]> [[item.title]] ([[item.creator]]) </a> </li> </template> <li> <a href$="[[ linkPrefix ]][[ id ]]/">See More ([[ count ]] Articles)</a> </li> </ul> </div> </template> </dom-module>'),i(2),i(3),Polymer({is:"upcontent-topic-preview",properties:{topic:String,name:String,id:String,count:String,fallbackImage:String,linkPrefix:String},_fallbackImage:function(e){var t=e.model.get("item.fallback_image");e.model.set("item.image_url",t)}})},function(e,t,i){i(0),i(1).register("<dom-module id=upcontent-carousel> <template> <style>:host{display:block;position:relative}:host ::content>*{opacity:0;transition:opacity .5s;position:absolute;top:0;left:0;width:100%;height:100%;z-index:20}:host ::content>:first-child{opacity:100;transition:opacity .5s;z-index:10}</style> <content></content> </template> </dom-module>"),Polymer({is:"upcontent-carousel",properties:{position:Number},attached:function(){var e=this;this.slides=[],this.pause=!1,this._observer=Polymer.dom(this).observeNodes(this.updateChildren),this.pauseOnMouse(Polymer.dom(this).node),this.position=0,this.switch=function(){if(console.log("paused state",e.pause),!(e.slides.length<2||e.pause)){var t=e.position;e.position=(e.position+1)%e.slides.length,e.slides[e.position].style["z-index"]=10,e.slides[t].style["z-index"]=20,e.slides[e.position].style.transition="none",e.slides[t].style.transition="opacity .5s",e.slides[e.position].style.opacity=1,e.slides[t].style.opacity=0}},window.setInterval(this.switch,4e3)},pauseOnMouse:function(e){var t=this;e.addEventListener("mouseover",(function(){t.pause=!0,console.log("pause")})),e.addEventListener("mouseout",(function(){t.pause=!1,console.log("unpause")}))},updateChildren:function(e){for(var t=0;t<e.addedNodes.length;t++)e.addedNodes[t].nodeType==Node.ELEMENT_NODE&&"TEMPLATE"!==e.addedNodes[t].tagName&&this.slides.push(e.addedNodes[t]);for(var i=0;i<e.removedNodes.length;i++)if(e.removedNodes[i].nodeType==Node.ELEMENT_NODE)for(var r=0;r<this.slides.length;r++)this.slides[r]===e.removedNodes[i]&&this.slides.splice(r,1)}})},function(e,t){var i,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(r=window)}e.exports=r},function(e,t){},function(e,t,i){i(0),i(23),i(1).register('<dom-module id=upcontent-suggestion-list> <template> <style></style> <div id=list class="uc-gallery--card-container uc-gallery--container uc-gallery--cards uc-gallery--selection-list"> <template is=dom-repeat items="[[ suggestions ]]"> <upcontent-suggestion class=uc-gallery--card headline="[[ item.title ]]" date="[[ item.posted ]]" url="[[ item.article_url ]]" id="[[ item.id ]]" image-url="[[ item.image_url ]]" link-target="[[ linkTarget ]]" undated="[[ undated ]]" image-height=[[imageHeight]] image-width=[[imageWidth]] excerpt="[[ item.text ]]" source="[[ item.creator ]]" mailto=[[mailto]] fallback-image="[[ item.fallback_image ]]"></upcontent-suggestion> </template> </div> </template> <style>.uc-gallery--card-container{display:flex;flex-wrap:wrap;justify-content:flex-start}.uc-gallery--card{border:1px solid #000;
8width:300px;box-sizing:border-box;max-width:100%}</style> </dom-module>'),i(2),i(3),Polymer({is:"upcontent-suggestion-list",properties:{gallery:{type:String,observer:"getSuggestions"},topic:{type:String,observer:"getSuggestions"},suggestions:{type:Array,value:[]},loading:{type:Boolean,value:!1,notify:!0},linkTarget:{type:String,value:"_blank"}},ready:function(){console.log("ready"),this.getSuggestions()},getSuggestions:function(){console.log("getSuggestions");var e=this;this.loading=!0;var t="".concat("https://galleries.upcontent.com/","galleries/").concat(this.gallery,"/collections/").concat(this.topic||"only","/selections.json");fetch(t).then((function(e){return e.json()})).then((function(t){e.suggestions=t,e.loading=!1}))}})},function(e,t,i){i(0),i(1).register('<dom-module id=upcontent-suggestion> <template> <style>:host{display:block;width:100%}.uc-gallery--mailto-link{font-size:.625rem;color:gray;height:.8rem}.uc-gallery--image-container-inner{width:100%;padding-bottom:75%;display:block;position:relative}.uc-gallery--image{max-width:100%;width:100%;height:100%;object-fit:cover;position:absolute;margin:0;left:0;right:0;bottom:0;top:0}.uc-gallery--content{display:block;justify-content:space-between;overflow:visible}.uc-gallery--meta{display:block;display:grid;overflow:hidden;grid-template-columns:50% 50%}.uc-gallery--headline,.uc-gallery--summary{text-overflow:ellipsis}.uc-gallery--headline{border-bottom:none;font-size:1.2em;overflow:hidden;text-overflow:ellipsis}.uc-gallery--summary{font-size:.8em;display:block;overflow:hidden;text-overflow:ellipsis;margin-bottom:0}.uc-gallery--date,.uc-gallery--source{font-size:.75em;grid-row:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.uc-gallery--date{grid-column:1}.uc-gallery--source{grid-column:2;text-align:right}</style> <a class$={{_suggestionRootClasses(mailto)}} href=https://go.upcontent.com/[[id]] target=[[linkTarget]] style=color:inherit;text-decoration:none> <div class=uc-gallery--img-container> <div class=uc-gallery--image-container-inner> <img class=uc-gallery--image src=[[_resizeImage(imageUrl)]] on-error=_fallbackImage alt="" role=presentation> </div> </div> <div class=uc-gallery--content> <h3 class=uc-gallery--headline>[[headline]]</h3> <div class=uc-gallery--meta> <span class="uc-gallery--date uc-gallery--meta-item">[[_formatDate(date)]]</span> <span class="uc-gallery--source uc-gallery--meta-item">[[source]]</span> </div> <p class=uc-gallery--summary>[[excerpt]]</p> </div> </a> </template> </dom-module>'),Polymer({is:"upcontent-suggestion",properties:{id:String,url:String,headline:String,imageUrl:{type:String,observer:"_resizeImage"},imageUrlFinal:String,source:String,date:String,excerpt:String,fallbackImage:{type:String,value:null},imageHeight:{type:Number,value:null},imageWidth:{type:Number,value:null},undated:{type:String,value:null},linkTarget:{type:String,value:"_blank"},mailto:{type:String,value:!1}},_suggestionRootClasses:function(e){var t=["uc-gallery--suggestion"];return e&&t.push("has-email"),t.join(" ")},_mailToText:function(){return this.mailto?"true"===String(this.mailto)?"Send in Email":String(this.mailto):""},_encodeBody:function(){return encodeURIComponent(this.excerpt+"\n"+this.url)},_encodeSubject:function(){return encodeURIComponent(this.headline)},_formatDate:function(e){return e?e&&"string"==typeof e&&"invalid date"===e.toLowerCase()?"":moment(e).format("MMM D, YYYY"):""},_resizeImage:function(e){return e||(this.fallbackImage?this.fallbackImage:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBoZWlnaHQ9IjIwMnB4IiB3aWR0aD0iMjYwcHgiIHZlcnNpb249IjEuMSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAyNjAgMjAyIj4KPHRpdGxlPm5vLWltYWdlLWZvdW5kPC90aXRsZT4KPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CjxnIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0ibm9uZSI+CjxnIGlkPSJuby1pbWFnZS1mb3VuZCIgZmlsbD0iI0JGQkZCRiI+CjxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzUgNDApIj4KPGcgaWQ9IlNoYXBlIj4KPHBhdGggZD0ibTAuNSAzLjJ2ODIuNWMwIDEuNyAxLjMgMyAzIDNoMTAyYzIgMCAzLTEuMyAzLTN2LTgyLjVjMC0xLjctMS0zLTMtM2gtMTAyYy0yIDAtMy41IDEuNC0zLjUgM3ptOTIuMyA3MS45aC03NS43Yy0xLjcgMC0zLTEuMy0zLTN2LTU1LjNjMC0xLjcgMS4zLTMgMy0zaDc1LjdjMS43IDAgMyAxLjMgMyAzdjU1LjNjMCAxLjctMS4zIDMtMyAzeiIvPgo8cGF0aCBkPSJtMzIuNyAzNi45YzEwLjcgNy42IDIyLjUtNC4yIDE0LjktMTQuOS0wLjItMC4zLTAuNC0wLjUtMC43LTAuNy0xMC43LTcuNS0yMi40IDQuMi0xNC44IDE0LjkgMC4xIDAuMyAwLjIgMC41IDAuNiAwLjd6Ii8+CjxwYXRoIGQ9Im04OC44IDQyLjlsLTcuNS0xMy43Yy0xLjItMi4yLTQuMy0yLTUuMyAwLjJsLTEwLjMgMjIuM2MtMC45IDEuOS0zLjQgMi4zLTQuOSAwLjhsLTQuMi00LjNjLTAuOS0wLjktMi4yLTEuMi0zLjMtMC43LTMuMSAxLjQtOS4yIDQuNC0xMi43IDguNi0wLjggMS0yLjIgMS4zLTMuNCAwLjktMy45LTEuNC02LjQgMC03LjMgMC42LTAuMiAwLjEtMC40IDAuMy0wLjUgMC41bC00LjIgNS4xYy0xLjYgMi0wLjIgNC45IDIuMyA0LjloNTguNWMxLjcgMCAzLTEuMyAzLTN2LTIwLjljMC0wLjMgMC0wLjgtMC4yLTEuM3oiLz4KPC9nPgo8ZyBpZD0iU2hhcGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwIDExMSkiPgo8cG9seWdvbiBwb2ludHM9IjIuNCAzLjQgMi40IDguOCAwLjcgOC44IDAuNyAwLjggMi41IDAuOCA2LjIgNiA2LjIgMC44IDcuOSAwLjggNy45IDguOCA2
8LjMgOC44Ii8+CjxwYXRoIGQ9Im05IDUuOGMwLTEuNiAxLjItMyAzLjEtM3MzLjEgMS40IDMuMSAzYzAgMS43LTEuMiAzLTMuMSAzLTEuOSAwLjEtMy4xLTEuMy0zLjEtM3ptNC42IDBjMC0wLjktMC41LTEuNy0xLjUtMS43cy0xLjUgMC44LTEuNSAxLjcgMC41IDEuNyAxLjUgMS43IDEuNS0wLjggMS41LTEuN3oiLz4KPHBvbHlnb24gcG9pbnRzPSIxOS40IDAuNyAyMS4xIDAuNyAyMS4xIDguNyAxOS40IDguNyIvPgo8cGF0aCBkPSJtMjkuOSA1LjFjMC0wLjUtMC4yLTAuOS0wLjktMC45LTAuNSAwLTEgMC40LTEuMiAwLjd2My45aC0xLjV2LTMuN2MwLTAuNS0wLjItMC45LTAuOS0wLjktMC41IDAtMSAwLjQtMS4yIDAuN3YzLjloLTEuNXYtNS44aDEuNXYwLjhjMC4yLTAuMyAxLTAuOSAxLjktMC45czEuNCAwLjQgMS42IDEuMWMwLjMtMC41IDEuMS0xLjEgMi0xLjEgMS4xIDAgMS43IDAuNiAxLjcgMS44djQuMmgtMS41di0zLjh6Ii8+CjxwYXRoIGQ9Im0zNi40IDguMWMtMC40IDAuNS0xLjEgMC43LTEuOCAwLjctMC45IDAtMi0wLjYtMi0xLjkgMC0xLjQgMS4xLTEuOCAyLTEuOCAwLjggMCAxLjUgMC4yIDEuOCAwLjd2LTAuOGMwLTAuNi0wLjUtMS0xLjMtMS0wLjYgMC0xLjIgMC4yLTEuNyAwLjdsLTAuNi0xYzAuNy0wLjYgMS42LTAuOSAyLjUtMC45IDEuMyAwIDIuNSAwLjUgMi41IDIuMnYzLjdoLTEuNXYtMC42aDAuMXptMC0xLjVjLTAuMy0wLjMtMC43LTAuNS0xLjItMC41LTAuNiAwLTEuMSAwLjMtMS4xIDAuOSAwIDAuNSAwLjUgMC45IDEuMSAwLjkgMC41IDAgMS0wLjIgMS4yLTAuNXYtMC44eiIvPgo8cGF0aCBkPSJtNDAgOS4xYzAuNSAwLjUgMS4xIDAuNyAxLjggMC43czEuNi0wLjMgMS42LTEuNXYtMC42Yy0wLjUgMC42LTEuMSAwLjktMS44IDAuOS0xLjUgMC0yLjYtMS0yLjYtMyAwLTEuOSAxLjEtMyAyLjYtMyAwLjcgMCAxLjMgMC4zIDEuOCAwLjl2LTAuN2gxLjV2NS40YzAgMi4yLTEuNyAyLjctMy4xIDIuNy0xIDAtMS44LTAuMi0yLjUtMC45bDAuNy0wLjl6bTMuNC00LjNjLTAuMy0wLjQtMC44LTAuNy0xLjMtMC43LTAuOSAwLTEuNSAwLjYtMS41IDEuNnMwLjYgMS42IDEuNSAxLjZjMC41IDAgMS4xLTAuMyAxLjMtMC43di0xLjh6Ii8+CjxwYXRoIGQ9Im00OS4xIDIuOGMxLjcgMCAyLjkgMS4zIDIuOSAzLjJ2MC4zaC00LjNjMC4xIDAuNyAwLjcgMS4zIDEuNyAxLjMgMC41IDAgMS4yLTAuMiAxLjUtMC42bDAuNyAxYy0wLjYgMC41LTEuNSAwLjgtMi40IDAuOC0xLjggMC0zLjEtMS4yLTMuMS0zIDAtMS43IDEuMi0zIDMtM3ptLTEuNSAyLjVoMi45YzAtMC42LTAuNC0xLjMtMS40LTEuM3MtMS40IDAuNy0xLjUgMS4zeiIvPgo8cG9seWdvbiBwb2ludHM9IjU2LjIgMC43IDYxLjkgMC43IDYxLjkgMi4yIDU3LjkgMi4yIDU3LjkgMy45IDYxLjggMy45IDYxLjggNS40IDU3LjkgNS40IDU3LjkgOC43IDU2LjIgOC43Ii8+CjxwYXRoIGQ9Im02Mi42IDUuOGMwLTEuNiAxLjItMyAzLjEtM3MzLjEgMS40IDMuMSAzYzAgMS43LTEuMiAzLTMuMSAzLTEuOSAwLjEtMy4xLTEuMy0zLjEtM3ptNC42IDBjMC0wLjktMC41LTEuNy0xLjUtMS43cy0xLjUgMC44LTEuNSAxLjcgMC41IDEuNyAxLjUgMS43IDEuNS0wLjggMS41LTEuN3oiLz4KPHBhdGggZD0ibTczLjggOGMtMC40IDAuNC0xLjEgMC45LTIgMC45LTEuMyAwLTEuOS0wLjctMS45LTEuOHYtNC4xaDEuNXYzLjVjMCAwLjggMC40IDEuMSAxLjEgMS4xIDAuNiAwIDEuMS0wLjMgMS4zLTAuN3YtMy45aDEuNXY1LjhoLTEuNXYtMC44eiIvPgo8cGF0aCBkPSJtODAuNyA1LjJjMC0wLjgtMC40LTEuMS0xLjEtMS4xLTAuNiAwLTEuMSAwLjMtMS4zIDAuN3YzLjloLTEuNXYtNS44aDEuNXYwLjhjMC40LTAuNCAxLjEtMC45IDItMC45IDEuMyAwIDEuOSAwLjcgMS45IDEuOHY0LjFoLTEuNXYtMy41eiIvPgo8cGF0aCBkPSJtODcuOCA4Yy0wLjUgMC42LTEuMSAwLjktMS44IDAuOS0xLjUgMC0yLjYtMS4xLTIuNi0zczEuMS0zIDIuNi0zYzAuNyAwIDEuMyAwLjMgMS44IDAuOXYtM2gxLjV2OGgtMS41di0wLjh6bTAtMy4yYy0wLjMtMC40LTAuOC0wLjctMS4zLTAuNy0wLjkgMC0xLjUgMC43LTEuNSAxLjdzMC42IDEuNyAxLjUgMS43YzAuNSAwIDEuMS0wLjMgMS4zLTAuN3YtMnoiLz4KPC9nPgo8L2c+CjwvZz4KPC9nPgo8L3N2Zz4K")},_fallbackImage:function(){this.imageUrl=null}})},function(e,t,i){i(0),i(25);var r=i(1);r.toBody("<link>"),r.register('<dom-module id=loading-overlay> <template> <style>:host>div{background:#fff;position:absolute;top:0;bottom:0;left:0;right:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center}</style> <div hidden$="[[ !active ]]"> <paper-spinner active="{{ active }}"></paper-spinner> </div> </template> </dom-module>'),Polymer({is:"loading-overlay",properties:{active:{type:Boolean}}})},function(e,t,i){i(0),i(26),i(27),i(28),i(29),i(1).register('<dom-module id=paper-spinner> <template strip-whitespace=""> <style include=paper-spinner-styles></style> <div id=spinnerContainer class-name="[[__computeContainerClasses(active, __coolingDown)]]"> <div class="spinner-layer layer-1"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> <div class="spinner-layer layer-2"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> <div class="spinner-layer layer-3"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> <div class="spinner-layer layer-4"> <div class="circle-clipper left"></div> <div class="circle-clipper right"></div> </div> </div> </template> </dom-module>'),Polymer({is:"paper-spinner",behaviors:[Polymer.PaperSpinnerBehavior]})},function(e,t,i){i(0);var r,n=i(1);n.toBody("<style is=custom-style>[hidden]{display:none!important}</style>"),n.toBody("<style is=custom-style>:root{--layout:{display:-ms-flexbox;display:-webkit-flex;display:flex};--layout-inline:{display:-ms-inline-flexbox;display:-webkit-inline-flex;display:inline-flex};--layout-horizontal:{@apply(--layout);-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row};--layout-horizontal-reverse:{@apply(--layout);-ms-flex-direction:row-reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse};--layout-vertical:{@apply(--layout);-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column};--layout-vertical-reverse:{@apply(--layout);-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;flex-direction:column-reverse};--layout-wrap:{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap};--layout-no-wrap:{-ms-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;flex-wrap:nowrap};--layout-wrap-reverse:{-ms-flex-wrap:wrap-reverse;-webkit-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse};--layout-flex-auto:{-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto};--layout-flex-none:{-ms-flex:none;-webkit-flex:none;flex:none};--layout-flex:{-ms-flex:1 1 .000000001px;-webkit-flex:1;flex:1;-webkit-flex-basis:.000000001px;flex-basis:.000000001px};--layout-flex-2:{-ms-flex:2;-webkit-flex:2;flex:2};--layout-flex-3:{-ms-flex:3;-webkit-flex:3;flex:3};--layout-flex-4:{-ms-flex:4;-webkit-flex:4;flex:4};--layout-flex-5:{-ms-flex:5;-webkit-flex:5;flex:5};--layout-flex-6:{-ms-flex:6;-webkit-flex:6;flex:6};--layout-flex-7:{-ms-flex:7;-webkit-flex:7;flex:7};--layout-flex-8:{-ms-flex:8;-webkit-flex:8;flex:8};--layout-flex-9:{-ms-flex:9;-webkit-flex:9;flex:9};--layout-flex-10:{-ms-flex:10;-webkit-flex:10;flex:10};--layout-flex-11:{-ms-flex:11;-webkit-flex:11;flex:11};--layout-flex-12:{-ms-flex:12;-webkit-flex:12;flex:12};--layout-start:{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start};--layout-center:{-ms-flex-align:center;-webkit-align-items:center;align-items:center};--layout-end:{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end};--layout-baseline:{-ms-flex-align:baseline;-webkit-align-items:baseline;align-items:baseline};--layout-start-justified:{-ms-flex-pack:start;
8-webkit-justify-content:flex-start;justify-content:flex-start};--layout-center-justified:{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center};--layout-end-justified:{-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end};--layout-around-justified:{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around};--layout-justified:{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between};--layout-center-center:{@apply(--layout-center);@apply(--layout-center-justified);};--layout-self-start:{-ms-align-self:flex-start;-webkit-align-self:flex-start;align-self:flex-start};--layout-self-center:{-ms-align-self:center;-webkit-align-self:center;align-self:center};--layout-self-end:{-ms-align-self:flex-end;-webkit-align-self:flex-end;align-self:flex-end};--layout-self-stretch:{-ms-align-self:stretch;-webkit-align-self:stretch;align-self:stretch};--layout-self-baseline:{-ms-align-self:baseline;-webkit-align-self:baseline;align-self:baseline};--layout-start-aligned:{-ms-flex-line-pack:start;-ms-align-content:flex-start;-webkit-align-content:flex-start;align-content:flex-start};--layout-end-aligned:{-ms-flex-line-pack:end;-ms-align-content:flex-end;-webkit-align-content:flex-end;align-content:flex-end};--layout-center-aligned:{-ms-flex-line-pack:center;-ms-align-content:center;-webkit-align-content:center;align-content:center};--layout-between-aligned:{-ms-flex-line-pack:justify;-ms-align-content:space-between;-webkit-align-content:space-between;align-content:space-between};--layout-around-aligned:{-ms-flex-line-pack:distribute;-ms-align-content:space-around;-webkit-align-content:space-around;align-content:space-around};--layout-block:{display:block};--layout-invisible:{visibility:hidden!important};--layout-relative:{position:relative};--layout-fit:{position:absolute;top:0;right:0;bottom:0;left:0};--layout-scroll:{-webkit-overflow-scrolling:touch;overflow:auto};--layout-fullbleed:{margin:0;height:100vh};--layout-fixed-top:{position:fixed;top:0;left:0;right:0};--layout-fixed-right:{position:fixed;top:0;right:0;bottom:0};--layout-fixed-bottom:{position:fixed;right:0;bottom:0;left:0};--layout-fixed-left:{position:fixed;top:0;bottom:0;left:0};}</style>"),(r=document.createElement("style")).textContent="[hidden] { display: none !important; }",document.head.appendChild(r)},function(e,t,i){i(0),i(1).toBody("<style is=custom-style>:root{--google-red-100:#f4c7c3;--google-red-300:#e67c73;--google-red-500:#db4437;--google-red-700:#c53929;--google-blue-100:#c6dafc;--google-blue-300:#7baaf7;--google-blue-500:#4285f4;--google-blue-700:#3367d6;--google-green-100:#b7e1cd;--google-green-300:#57bb8a;--google-green-500:#0f9d58;--google-green-700:#0b8043;--google-yellow-100:#fce8b2;--google-yellow-300:#f7cb4d;--google-yellow-500:#f4b400;--google-yellow-700:#f09300;--google-grey-100:#f5f5f5;--google-grey-300:#e0e0e0;--google-grey-500:#9e9e9e;--google-grey-700:#616161;--paper-red-50:#ffebee;--paper-red-100:#ffcdd2;--paper-red-200:#ef9a9a;--paper-red-300:#e57373;--paper-red-400:#ef5350;--paper-red-500:#f44336;--paper-red-600:#e53935;--paper-red-700:#d32f2f;--paper-red-800:#c62828;--paper-red-900:#b71c1c;--paper-red-a100:#ff8a80;--paper-red-a200:#ff5252;--paper-red-a400:#ff1744;--paper-red-a700:#d50000;--paper-pink-50:#fce4ec;--paper-pink-100:#f8bbd0;--paper-pink-200:#f48fb1;--paper-pink-300:#f06292;--paper-pink-400:#ec407a;--paper-pink-500:#e91e63;--paper-pink-600:#d81b60;--paper-pink-700:#c2185b;--paper-pink-800:#ad1457;--paper-pink-900:#880e4f;--paper-pink-a100:#ff80ab;--paper-pink-a200:#ff4081;--paper-pink-a400:#f50057;--paper-pink-a700:#c51162;--paper-purple-50:#f3e5f5;--paper-purple-100:#e1bee7;--paper-purple-200:#ce93d8;--paper-purple-300:#ba68c8;--paper-purple-400:#ab47bc;--paper-purple-500:#9c27b0;--paper-purple-600:#8e24aa;--paper-purple-700:#7b1fa2;--paper-purple-800:#6a1b9a;--paper-purple-900:#4a148c;--paper-purple-a100:#ea80fc;--paper-purple-a200:#e040fb;--paper-purple-a400:#d500f9;--paper-purple-a700:#aa00ff;--paper-deep-purple-50:#ede7f6;--paper-deep-purple-100:#d1c4e9;--paper-deep-purple-200:#b39ddb;--paper-deep-purple-300:#9575cd;--paper-deep-purple-400:#7e57c2;--paper-deep-purple-500:#673ab7;--paper-deep-purple-600:#5e35b1;--paper-deep-purple-700:#512da8;--paper-deep-purple-800:#4527a0;--paper-deep-purple-900:#311b92;--paper-deep-purple-a100:#b388ff;
8--paper-deep-purple-a200:#7c4dff;--paper-deep-purple-a400:#651fff;--paper-deep-purple-a700:#6200ea;--paper-indigo-50:#e8eaf6;--paper-indigo-100:#c5cae9;--paper-indigo-200:#9fa8da;--paper-indigo-300:#7986cb;--paper-indigo-400:#5c6bc0;--paper-indigo-500:#3f51b5;--paper-indigo-600:#3949ab;--paper-indigo-700:#303f9f;--paper-indigo-800:#283593;--paper-indigo-900:#1a237e;--paper-indigo-a100:#8c9eff;--paper-indigo-a200:#536dfe;--paper-indigo-a400:#3d5afe;--paper-indigo-a700:#304ffe;--paper-blue-50:#e3f2fd;--paper-blue-100:#bbdefb;--paper-blue-200:#90caf9;--paper-blue-300:#64b5f6;--paper-blue-400:#42a5f5;--paper-blue-500:#2196f3;--paper-blue-600:#1e88e5;--paper-blue-700:#1976d2;--paper-blue-800:#1565c0;--paper-blue-900:#0d47a1;--paper-blue-a100:#82b1ff;--paper-blue-a200:#448aff;--paper-blue-a400:#2979ff;--paper-blue-a700:#2962ff;--paper-light-blue-50:#e1f5fe;--paper-light-blue-100:#b3e5fc;--paper-light-blue-200:#81d4fa;--paper-light-blue-300:#4fc3f7;--paper-light-blue-400:#29b6f6;--paper-light-blue-500:#03a9f4;--paper-light-blue-600:#039be5;--paper-light-blue-700:#0288d1;--paper-light-blue-800:#0277bd;--paper-light-blue-900:#01579b;--paper-light-blue-a100:#80d8ff;--paper-light-blue-a200:#40c4ff;--paper-light-blue-a400:#00b0ff;--paper-light-blue-a700:#0091ea;--paper-cyan-50:#e0f7fa;--paper-cyan-100:#b2ebf2;--paper-cyan-200:#80deea;--paper-cyan-300:#4dd0e1;--paper-cyan-400:#26c6da;--paper-cyan-500:#00bcd4;--paper-cyan-600:#00acc1;--paper-cyan-700:#0097a7;--paper-cyan-800:#00838f;--paper-cyan-900:#006064;--paper-cyan-a100:#84ffff;--paper-cyan-a200:#18ffff;--paper-cyan-a400:#00e5ff;--paper-cyan-a700:#00b8d4;--paper-teal-50:#e0f2f1;--paper-teal-100:#b2dfdb;--paper-teal-200:#80cbc4;--paper-teal-300:#4db6ac;--paper-teal-400:#26a69a;--paper-teal-500:#009688;--paper-teal-600:#00897b;--paper-teal-700:#00796b;--paper-teal-800:#00695c;--paper-teal-900:#004d40;--paper-teal-a100:#a7ffeb;--paper-teal-a200:#64ffda;--paper-teal-a400:#1de9b6;--paper-teal-a700:#00bfa5;--paper-green-50:#e8f5e9;--paper-green-100:#c8e6c9;--paper-green-200:#a5d6a7;--paper-green-300:#81c784;--paper-green-400:#66bb6a;--paper-green-500:#4caf50;--paper-green-600:#43a047;--paper-green-700:#388e3c;--paper-green-800:#2e7d32;--paper-green-900:#1b5e20;--paper-green-a100:#b9f6ca;--paper-green-a200:#69f0ae;--paper-green-a400:#00e676;--paper-green-a700:#00c853;--paper-light-green-50:#f1f8e9;--paper-light-green-100:#dcedc8;--paper-light-green-200:#c5e1a5;--paper-light-green-300:#aed581;--paper-light-green-400:#9ccc65;--paper-light-green-500:#8bc34a;--paper-light-green-600:#7cb342;--paper-light-green-700:#689f38;--paper-light-green-800:#558b2f;--paper-light-green-900:#33691e;--paper-light-green-a100:#ccff90;--paper-light-green-a200:#b2ff59;--paper-light-green-a400:#76ff03;--paper-light-green-a700:#64dd17;--paper-lime-50:#f9fbe7;--paper-lime-100:#f0f4c3;--paper-lime-200:#e6ee9c;--paper-lime-300:#dce775;--paper-lime-400:#d4e157;--paper-lime-500:#cddc39;--paper-lime-600:#c0ca33;--paper-lime-700:#afb42b;--paper-lime-800:#9e9d24;--paper-lime-900:#827717;--paper-lime-a100:#f4ff81;--paper-lime-a200:#eeff41;--paper-lime-a400:#c6ff00;--paper-lime-a700:#aeea00;--paper-yellow-50:#fffde7;--paper-yellow-100:#fff9c4;--paper-yellow-200:#fff59d;--paper-yellow-300:#fff176;--paper-yellow-400:#ffee58;--paper-yellow-500:#ffeb3b;--paper-yellow-600:#fdd835;--paper-yellow-700:#fbc02d;--paper-yellow-800:#f9a825;--paper-yellow-900:#f57f17;--paper-yellow-a100:#ffff8d;--paper-yellow-a200:#ffff00;--paper-yellow-a400:#ffea00;--paper-yellow-a700:#ffd600;--paper-amber-50:#fff8e1;--paper-amber-100:#ffecb3;--paper-amber-200:#ffe082;--paper-amber-300:#ffd54f;--paper-amber-400:#ffca28;--paper-amber-500:#ffc107;--paper-amber-600:#ffb300;--paper-amber-700:#ffa000;--paper-amber-800:#ff8f00;--paper-amber-900:#ff6f00;--paper-amber-a100:#ffe57f;--paper-amber-a200:#ffd740;--paper-amber-a400:#ffc400;--paper-amber-a700:#ffab00;--paper-orange-50:#fff3e0;--paper-orange-100:#ffe0b2;--paper-orange-200:#ffcc80;--paper-orange-300:#ffb74d;--paper-orange-400:#ffa726;--paper-orange-500:#ff9800;--paper-orange-600:#fb8c00;--paper-orange-700:#f57c00;--paper-orange-800:#ef6c00;--paper-orange-900:#e65100;--paper-orange-a100:#ffd180;--paper-orange-a200:#ffab40;--paper-orange-a400:#ff9100;--paper-orange-a700:#ff6500;--paper-deep-orange-50:#fbe9e7;--paper-deep-orange-100:#ffccbc;--paper-deep-orange-200:#ffab91;--paper-deep-orange-300:#ff8a65;--paper-deep-orange-400:#ff7043;--paper-deep-orange-500:#ff5722;--paper-deep-orange-600:#f4511e;--paper-deep-orange-700:#e64a19;--paper-deep-orange-800:#d84315;--paper-deep-orange-900:#bf360c;--paper-deep-orange-a100:#ff9e80;
8--paper-deep-orange-a200:#ff6e40;--paper-deep-orange-a400:#ff3d00;--paper-deep-orange-a700:#dd2c00;--paper-brown-50:#efebe9;--paper-brown-100:#d7ccc8;--paper-brown-200:#bcaaa4;--paper-brown-300:#a1887f;--paper-brown-400:#8d6e63;--paper-brown-500:#795548;--paper-brown-600:#6d4c41;--paper-brown-700:#5d4037;--paper-brown-800:#4e342e;--paper-brown-900:#3e2723;--paper-grey-50:#fafafa;--paper-grey-100:#f5f5f5;--paper-grey-200:#eeeeee;--paper-grey-300:#e0e0e0;--paper-grey-400:#bdbdbd;--paper-grey-500:#9e9e9e;--paper-grey-600:#757575;--paper-grey-700:#616161;--paper-grey-800:#424242;--paper-grey-900:#212121;--paper-blue-grey-50:#eceff1;--paper-blue-grey-100:#cfd8dc;--paper-blue-grey-200:#b0bec5;--paper-blue-grey-300:#90a4ae;--paper-blue-grey-400:#78909c;--paper-blue-grey-500:#607d8b;--paper-blue-grey-600:#546e7a;--paper-blue-grey-700:#455a64;--paper-blue-grey-800:#37474f;--paper-blue-grey-900:#263238;--dark-divider-opacity:0.12;--dark-disabled-opacity:0.38;--dark-secondary-opacity:0.54;--dark-primary-opacity:0.87;--light-divider-opacity:0.12;--light-disabled-opacity:0.3;--light-secondary-opacity:0.7;--light-primary-opacity:1.0}</style>")},function(e,t,i){i(0),Polymer.PaperSpinnerBehavior={listeners:{animationend:"__reset",webkitAnimationEnd:"__reset"},properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(e,t){return[e||t?"active":"",t?"cooldown":""].join(" ")},__activeChanged:function(e,t){this.__setAriaHidden(!e),this.__coolingDown=!e&&t},__altChanged:function(e){e===this.getPropertyInfo("alt").value?this.alt=this.getAttribute("aria-label")||e:(this.__setAriaHidden(""===e),this.setAttribute("aria-label",e))},__setAriaHidden:function(e){e?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},__reset:function(){this.active=!1,this.__coolingDown=!1}}},function(e,t,i){i(1).register("<dom-module id=paper-spinner-styles> <template> <style>:host{display:inline-block;position:relative;width:28px;height:28px;--paper-spinner-container-rotation-duration:1568ms;--paper-spinner-expand-contract-duration:1333ms;--paper-spinner-full-cycle-duration:5332ms;--paper-spinner-cooldown-duration:400ms}#spinnerContainer{width:100%;height:100%;direction:ltr}#spinnerContainer.active{-webkit-animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite;animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite}@-webkit-keyframes container-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes container-rotate{to{transform:rotate(360deg)}}.spinner-layer{position:absolute;width:100%;height:100%;opacity:0;white-space:nowrap;border-color:var(--paper-spinner-color,--google-blue-500)}.layer-1{border-color:var(--paper-spinner-layer-1-color,--google-blue-500)}.layer-2{border-color:var(--paper-spinner-layer-2-color,--google-red-500)}.layer-3{border-color:var(--paper-spinner-layer-3-color,--google-yellow-500)}.layer-4{border-color:var(--paper-spinner-layer-4-color,--google-green-500)}.active .spinner-layer{-webkit-animation-name:fill-unfill-rotate;-webkit-animation-duration:var(--paper-spinner-full-cycle-duration);-webkit-animation-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteration-count:infinite;animation-name:fill-unfill-rotate;animation-duration:var(--paper-spinner-full-cycle-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);animation-iteration-count:infinite;opacity:1}.active .spinner-layer.layer-1{-webkit-animation-name:fill-unfill-rotate,layer-1-fade-in-out;animation-name:fill-unfill-rotate,layer-1-fade-in-out}.active .spinner-layer.layer-2{-webkit-animation-name:fill-unfill-rotate,layer-2-fade-in-out;animation-name:fill-unfill-rotate,layer-2-fade-in-out}.active .spinner-layer.layer-3{-webkit-animation-name:fill-unfill-rotate,layer-3-fade-in-out;animation-name:fill-unfill-rotate,layer-3-fade-in-out}.active .spinner-layer.layer-4{-webkit-animation-name:fill-unfill-rotate,layer-4-fade-in-out;animation-name:fill-unfill-rotate,layer-4-fade-in-out}@-webkit-keyframes fill-unfill-rotate{12.5%{-webkit-transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg)}to{-webkit-transform:rotate(1080deg)}}@keyframes fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(1080deg)}}@-webkit-keyframes layer-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}
889%{opacity:0}90%{opacity:1}to{opacity:1}}@keyframes layer-1-fade-in-out{0%{opacity:1}25%{opacity:1}26%{opacity:0}89%{opacity:0}90%{opacity:1}to{opacity:1}}@-webkit-keyframes layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}to{opacity:0}}@keyframes layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:1}50%{opacity:1}51%{opacity:0}to{opacity:0}}@-webkit-keyframes layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}to{opacity:0}}@keyframes layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:1}75%{opacity:1}76%{opacity:0}to{opacity:0}}@-webkit-keyframes layer-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}@keyframes layer-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:1}90%{opacity:1}to{opacity:0}}.circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.spinner-layer::after{left:45%;width:10%;border-top-style:solid}.circle-clipper::after,.spinner-layer::after{content:'';box-sizing:border-box;position:absolute;top:0;border-width:var(--paper-spinner-stroke-width,3px);border-color:inherit;border-radius:50%}.circle-clipper::after{bottom:0;width:200%;border-style:solid;border-bottom-color:transparent!important}.circle-clipper.left::after{left:0;border-right-color:transparent!important;-webkit-transform:rotate(129deg);transform:rotate(129deg)}.circle-clipper.right::after{left:-100%;border-left-color:transparent!important;-webkit-transform:rotate(-129deg);transform:rotate(-129deg)}.active .circle-clipper::after,.active .gap-patch::after{-webkit-animation-duration:var(--paper-spinner-expand-contract-duration);-webkit-animation-timing-function:cubic-bezier(.4,0,.2,1);-webkit-animation-iteration-count:infinite;animation-duration:var(--paper-spinner-expand-contract-duration);animation-timing-function:cubic-bezier(.4,0,.2,1);animation-iteration-count:infinite}.active .circle-clipper.left::after{-webkit-animation-name:left-spin;animation-name:left-spin}.active .circle-clipper.right::after{-webkit-animation-name:right-spin;animation-name:right-spin}@-webkit-keyframes left-spin{0%{-webkit-transform:rotate(130deg)}50%{-webkit-transform:rotate(-5deg)}to{-webkit-transform:rotate(130deg)}}@keyframes left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@-webkit-keyframes right-spin{0%{-webkit-transform:rotate(-130deg)}50%{-webkit-transform:rotate(5deg)}to{-webkit-transform:rotate(-130deg)}}@keyframes right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}#spinnerContainer.cooldown{-webkit-animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezier(.4,0,.2,1);animation:container-rotate var(--paper-spinner-container-rotation-duration) linear infinite,fade-out var(--paper-spinner-cooldown-duration) cubic-bezier(.4,0,.2,1)}@-webkit-keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}</style> </template> </dom-module>")}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.