Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><head><meta charset="UTF-8"></head><body><div hidden="" by-vulcanize=""><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:300,400,400i,500,500i,600,600i,700,700i,800,800i|Roboto+Condensed:300,bold,600"><script>!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,r=location.search.slice(1).split("&"),i=0;i<r.length&&(t=r[i]);i++)t=t.split("="),t[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")&&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}()},function(){var e=window.Polymer;window.Polymer=function(e){"function"==typeof e&&(e=e.prototype),e||(e={}),e=t(e);var r=e===e.constructor.prototype?e.constructor:null,i={prototype:e};e.extends&&(i.extends=e.extends),Polymer.telemetry._registrate(e);var o=document.registerElement(e.is,i);return r||o};var t=function(e){var t=Polymer.Base;return e.extends&&(t=Polymer.Base._getExtendedPrototype(e.extends)),e=Polymer.Base.chainObject(e,t),e.registerCallback(),e};if(e)for(var r in e)Polymer[r]=e[r];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,r){this._watchNextRender(),this._afterNextRenderQueue.push([e,t,r])},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,r=0;r<e.length;r++)t=e[r],t[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=Polymer.Settings;Polymer.Base={__isPolymerInstance__:!0,_addFeature:function(e){this.mixin(this,e)},registerCallback:function(){if("max"===e.lazyRegister)this.beforeRegister&&this.beforeRegister();else{this._desugarBehaviors();for(var t,r=0;r<this.behaviors.length;r++)t=this.behaviors[r],t.beforeRegister&&t.beforeRegister.call(this);this.beforeRegister&&this.beforeRegister()}this._registerFeatures(),e.lazyRegister||this.ensureRegisterFinished()},createdCallback:function(){if(e.disableUpgradeEnabled){if(this.hasAttribute("disable-upgrade"))return this._propertySetter=t,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],e.created&&e.created.call(this);this.created&&this.created(),this._initFeatures()},ensureRegisterFinished:function(){this._ensureRegisterFinished(this)},_ensureRegisterFinished:function(t){if(t.__hasRegisterFinished!==t.is||!t.is){if("max"===e.lazyRegister){t._desugarBehaviors();for(var r,i=0;i<t.behaviors.length;i++)r=t.behaviors[i],r.beforeRegister&&r.beforeRegister.call(t)}t.__hasRegisterFinished=t.is,t._finishRegisterFeatures&&t._finishRegisterFeatures();for(var o,s=0;s<t.behaviors.length;s++)o=t.behaviors[s],o.registered&&o.registered.call(t);t.registered&&t.registered(),e.usePolyfillProto&&t!==this&&t.extend(this,t)}},attachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(function(){e.isAttached=!0;for(var t,r=0;r<e.behaviors.length;r++)t=e.behaviors[r],t.attached&&t.attached.call(e);e.attached&&e.attached()})},detachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(function(){e.isAttached=!1;for(var t,r=0;r<e.behaviors.length;r++)t=e.behaviors[r],t.detached&&t.detached.call(e);e.detached&&e.detached()})},attributeChangedCallback:function(e,t,r){this._attributeChangedImpl(e);for(var i,o=0;o<this.behaviors.length;o++)i=this.behaviors[o],i.attributeChanged&&i.attributeChanged.call(this,e,t,r);this.attributeChanged&&this.attributeChanged(e,t,r)},_attributeChangedImpl:function(e){this._setAttributeToProperty(this,e)},extend:function(e,t){if(e&&t)for(var r,i=Object.getOwnPropertyNames(t),o=0;o<i.length&&(r=i[o]);o++)this.copyOwnProperty(r,t,e);return e||t},mixin:function(e,t){for(var r in t)e[r]=t[r];return e},copyOwnProperty:function(e,t,r){var i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(r,e,i)},_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=function(){return 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={};var t;if(e.disableUpgradeEnabled){t=function(e,t){this.__data__[e]=t};var r=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(e,t,i){this.__hasInitialized||"disable-upgrade"!==e||(this.__hasInitialized=!0,this._propertySetter=Polymer.Bind._modelApi._propertySetter,this._configValue=Polymer.Base._configValue,this.__initialize()),r.call(this,e,t,i)}}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(){function e(){if(s)for(var e,t=document._currentScript||document.currentScript,r=t&&t.ownerDocument||document,i=r.querySelectorAll("dom-module"),o=i.length-1;o>=0&&(e=i[o]);o--){if(e.__upgraded__)return;CustomElements.upgrade(e)}}var t={},r={},i=function(e){return t[e]||r[e.toLowerCase()]},o=function(){return document.createElement("dom-module")};o.prototype=Object.create(HTMLElement.prototype),Polymer.Base.mixin(o.prototype,{createdCallback:function(){this.register()},register:function(e){(e=e||this.id||this.getAttribute("name")||this.getAttribute("is"))&&(this.id=e,t[e]=this,r[e.toLowerCase()]=this)},import:function(t,r){if(t){var o=i(t);return o||(e(),o=i(t)),o&&r&&(o=o.querySelector(r)),o}}}),Object.defineProperty(o.prototype,"constructor",{value:o,configurable:!0,writable:!0});var s=window.CustomElements&&!CustomElements.useNative;document.registerElement("dom-module",o)}(),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){var t=[];e=this._flattenBehaviorsList(e);for(var r=e.length-1;r>=0;r--){var i=e[r];-1===t.indexOf(i)&&(this._mixinBehavior(i),t.unshift(i))}return t},_flattenBehaviorsList:function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];i instanceof Array?t=t.concat(this._flattenBehaviorsList(i)):i?t.push(i):this._warn(this._logf("_flattenBehaviorsList","behavior is null, check for missing or 404 import"))}return t},_mixinBehavior:function(e){for(var t,r=Object.getOwnPropertyNames(e),i=e._noAccessors,o=0;o<r.length&&(t=r[o]);o++)Polymer.Base._behaviorProperties[t]||this.hasOwnProperty(t)||(i?this[t]=e[t]:this.copyOwnProperty(t,e,this))},_prepBehaviors:function(){this._prepFlattenedBehaviors(this.behaviors)},_prepFlattenedBehaviors:function(e){for(var t=0,r=e.length;t<r;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 r,i=Object.getOwnPropertyNames(Polymer.Base),o=0;o<i.length&&(r=i[o]);o++)Polymer.BaseDescriptors[r]||(t[r]=Polymer.Base[r]);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 r=0;r<this.behaviors.length;r++)if(t=this._getPropertyInfo(e,this.behaviors[r].properties))return t;return t||Polymer.nob},_getPropertyInfo:function(e,t){var r=t&&t[e];return"function"==typeof r&&(r=t[e]={type:r}),r&&(r.defined=!0),r},_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){if(t){var r,i;for(var o in t)r=e[o],i=t[o],("_"!==o[0]||i.readOnly)&&(e[o]?(r.type||(r.type=i.type),r.readOnly||(r.readOnly=i.readOnly)):e[o]={type:"function"==typeof i?i:i.type,readOnly:i.readOnly,attribute:Polymer.CaseMap.camelToDashCase(o)})}}}),function(){var e={configurable:!0,writable:!0,enumerable:!0,value:{}};Polymer.BaseDescriptors.properties=e,Object.defineProperty(Polymer.Base,"properties",e)}(),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 r in t)if(!this.hasAttribute(r)&&"class"!==r){var i=t[r];this.serializeValueToAttribute(i,r,this)}},_marshalAttributes:function(){this._takeAttributesToModel(this)},_takeAttributesToModel:function(e){if(this.hasAttributes())for(var t in this._propertyInfo){var r=this._propertyInfo[t];this.hasAttribute(r.attribute)&&this._setAttributeToProperty(e,r.attribute,t,r)}},_setAttributeToProperty:function(e,t,r,i){if(!this._serializing&&(r=r||Polymer.CaseMap.dashToCamelCase(t),(i=i||this._propertyInfo&&this._propertyInfo[r])&&!i.readOnly)){var o=this.getAttribute(t);e[r]=this.deserialize(o,i.type)}},_serializing:!1,reflectPropertyToAttribute:function(e,t,r){this._serializing=!0,r=void 0===r?this[e]:r,this.serializeValueToAttribute(r,t||Polymer.CaseMap.camelToDashCase(e)),this._serializing=!1},serializeValueToAttribute:function(e,t,r){var i=this.serialize(e);r=r||this,void 0===i?r.removeAttribute(t):r.setAttribute(t,i)},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);break;case String:}return e},serialize:function(e){switch(typeof 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.9.1",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()}})</script><script>!function(){function e(e,t){return e.replace(a,function(e,i,n,s){return i+"'"+o(n.replace(/["']/g,""),t)+"'"+s})}function t(t,i){for(var n in l)for(var s,r,d,a=l[n],h=0,c=a.length;h<c&&(s=a[h]);h++)"*"!==n&&t.localName!==n||(r=t.attributes[s],(d=r&&r.value)&&d.search(u)<0&&(r.value="style"===s?e(d,i):o(d,i)))}function o(e,t){if(e&&h.test(e))return e;var o=n(t);return o.href=e,o.href||e}function i(e,t){return r||(r=document.implementation.createHTMLDocument("temp"),d=r.createElement("base"),r.head.appendChild(d)),d.href=t,o(e,r)}function n(e){return e.body.__urlResolver||(e.body.__urlResolver=e.createElement("a"))}function s(e){return e.substring(0,e.lastIndexOf("/")+1)}var r,d,a=/(url\()([^)]*)(\))/g,l={"*":["href","src","style","url"],form:["action"]},h=/(^\/)|(^#)|(^[\w-\d]*:)/,u=/\{\{|\[\[/;Polymer.ResolveUrl={resolveCss:e,resolveAttrs:t,resolveUrl:i,pathFromUrl:s},Polymer.rootPath=Polymer.Settings.rootPath||s(document.baseURI||window.location.href)}(),Polymer.Base._addFeature({_prepTemplate:function(){var e;if(void 0===this._template&&(e=Polymer.DomModule.import(this.is),this._template=e&&e.querySelector("template")),e){var t=e.getAttribute("assetpath")||"",o=Polymer.ResolveUrl.resolveUrl(t,e.ownerDocument.baseURI);this._importPath=Polymer.ResolveUrl.pathFromUrl(o)}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)}}),function(){var e=Polymer.Base.attachedCallback;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,o=0,i=e.length;o<i&&(t=e[o]);o++)t._ready();this._finishDistribute()},_readySelf:function(){for(var e,t=0;t<this.behaviors.length;t++)e=this.behaviors[t],e.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(),e.call(this)):this._attachedPending=!0}})}(),Polymer.ArraySplice=function(){function e(e,t,o){return{index:e,removed:t,addedCount:o}}function t(){}return t.prototype={calcEditDistances:function(e,t,o,i,n,s){for(var r=s-n+1,d=o-t+1,a=new Array(r),l=0;l<r;l++)a[l]=new Array(d),a[l][0]=l;for(var h=0;h<d;h++)a[0][h]=h;for(l=1;l<r;l++)for(h=1;h<d;h++)if(this.equals(e[t+h-1],i[n+l-1]))a[l][h]=a[l-1][h-1];else{var u=a[l-1][h]+1,c=a[l][h-1]+1;a[l][h]=u<c?u:c}return a},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,o=e[0].length-1,i=e[t][o],n=[];t>0||o>0;)if(0!=t)if(0!=o){var s,r=e[t-1][o-1],d=e[t-1][o],a=e[t][o-1];s=d<a?d<r?d:r:a<r?a:r,s==r?(r==i?n.push(0):(n.push(1),i=r),t--,o--):s==d?(n.push(3),t--,i=d):(n.push(2),o--,i=a)}else n.push(3),t--;else n.push(2),o--;return n.reverse(),n},calcSplices:function(t,o,i,n,s,r){var d=0,a=0,l=Math.min(i-o,r-s);if(0==o&&0==s&&(d=this.sharedPrefix(t,n,l)),i==t.length&&r==n.length&&(a=this.sharedSuffix(t,n,l-d)),o+=d,s+=d,i-=a,r-=a,i-o==0&&r-s==0)return[];if(o==i){for(var h=e(o,[],0);s<r;)h.removed.push(n[s++]);return[h]}if(s==r)return[e(o,[],i-o)];var u=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,o,i,n,s,r));h=void 0;for(var c=[],_=o,f=s,m=0;m<u.length;m++)switch(u[m]){case 0:h&&(c.push(h),h=void 0),_++,f++;break;case 1:h||(h=e(_,[],0)),h.addedCount++,_++,h.removed.push(n[f]),f++;break;case 2:h||(h=e(_,[],0)),h.addedCount++,_++;break;case 3:h||(h=e(_,[],0)),h.removed.push(n[f]),f++}return h&&c.push(h),c},sharedPrefix:function(e,t,o){for(var i=0;i<o;i++)if(!this.equals(e[i],t[i]))return i;return o},sharedSuffix:function(e,t,o){for(var i=e.length,n=t.length,s=0;s<o&&this.equals(e[--i],t[--n]);)s++;return s},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(){function e(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function t(t){return t.replace(r,e)}function o(t){return t.replace(d,e)}function i(e){for(var t={},o=0;o<e.length;o++)t[e[o]]=!0;return t}function n(e,i,n){switch(e.nodeType){case Node.ELEMENT_NODE:for(var r,d=e.localName,h="<"+d,u=e.attributes,c=0;r=u[c];c++)h+=" "+r.name+'="'+t(r.value)+'"';return h+=">",a[d]?h:h+s(e,n)+"</"+d+">";case Node.TEXT_NODE:var _=e.data;return i&&l[i.localName]?_:o(_);case Node.COMMENT_NODE:return"\x3c!--"+e.data+"--\x3e";default:throw console.error(e),new Error("not implemented")}}function s(e,t){e instanceof HTMLTemplateElement&&(e=e.content);for(var o,i="",s=Polymer.dom(e).childNodes,r=0,d=s.length;r<d&&(o=s[r]);r++)i+=n(o,e,t);return i}var r=/[&\u00A0"]/g,d=/[&\u00A0<>]/g,a=i(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),l=i(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);return{getInnerHTML:s}}(),function(){"use strict";var e=Element.prototype.insertBefore,t=Element.prototype.appendChild,o=Element.prototype.removeChild;Polymer.TreeApi={arrayCopyChildNodes:function(e){for(var t=[],o=0,i=e.firstChild;i;i=i.nextSibling)t[o++]=i;return t},arrayCopyChildren:function(e){for(var t=[],o=0,i=e.firstElementChild;i;i=i.nextElementSibling)t[o++]=i;return t},arrayCopy:function(e){for(var t=e.length,o=new Array(t),i=0;i<t;i++)o[i]=e[i];return o}},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,o){if(t.__dom.childNodes=null,e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=e.firstChild;i;i=i.nextSibling)this._linkNode(i,t,o);else this._linkNode(e,t,o)},_linkNode:function(e,t,o){e.__dom=e.__dom||{},t.__dom=t.__dom||{},o&&(o.__dom=o.__dom||{}),e.__dom.previousSibling=o?o.__dom.previousSibling:t.__dom.lastChild,e.__dom.previousSibling&&(e.__dom.previousSibling.__dom.nextSibling=e),e.__dom.nextSibling=o||null,e.__dom.nextSibling&&(e.__dom.nextSibling.__dom.previousSibling=e),e.__dom.parentNode=t,o?o===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 o=e.__dom.previousSibling,i=e.__dom.nextSibling;o&&(o.__dom.nextSibling=i),i&&(i.__dom.previousSibling=o),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,o,i){return e.call(t,o,i||null)},appendChild:function(e,o){return t.call(e,o)},removeChild:function(e,t){return o.call(e,t)}}}(),Polymer.DomApi=function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,o=function(e){this.node=i?o.wrap(e):e},i=e.hasShadow&&!e.nativeShadow;o.wrap=window.wrap?window.wrap:function(e){return e},o.prototype={flush:function(){Polymer.dom.flush()},deepContains:function(e){if(this.node.contains(e))return!0;for(var t=e,o=e.ownerDocument;t&&t!==o&&t!==this.node;)t=Polymer.dom(t).parentNode||t.host;return t===this.node},queryDistributedElements:function(e){for(var t,i=this.getEffectiveChildNodes(),n=[],s=0,r=i.length;s<r&&(t=i[s]);s++)t.nodeType===Node.ELEMENT_NODE&&o.matchesSelector.call(t,e)&&n.push(t);return n},getEffectiveChildNodes:function(){for(var e,t=[],o=this.childNodes,i=0,r=o.length;i<r&&(e=o[i]);i++)if(e.localName===n)for(var d=s(e).getDistributedNodes(),a=0;a<d.length;a++)t.push(d[a]);else t.push(e);return t},observeNodes:function(e){if(e)return this.observer||(this.observer=this.node.localName===n?new o.DistributedNodesObserver(this):new o.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,o,i){o=o||this.node;var n=[];return this._queryElements(t.Logical.getChildNodes(o),e,i,n),n},_queryElements:function(e,t,o,i){for(var n,s=0,r=e.length;s<r&&(n=e[s]);s++)if(n.nodeType===Node.ELEMENT_NODE&&this._queryElement(n,t,o,i))return!0},_queryElement:function(e,o,i,n){var s=o(e);if(s&&n.push(e),i&&i(s))return s;this._queryElements(t.Logical.getChildNodes(e),o,i,n)}};var n=o.CONTENT="content",s=o.factory=function(e){return e=e||document,e.__domApi||(e.__domApi=new o.ctor(e)),e.__domApi};o.hasApi=function(e){return Boolean(e.__domApi)},o.ctor=o,Polymer.dom=function(e,t){return e instanceof Event?Polymer.EventApi.factory(e):o.factory(e,t)};var r=Element.prototype;return o.matchesSelector=r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector,o}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.DomApi,o=t.factory,i=Polymer.TreeApi,n=Polymer.domInnerHTML.getInnerHTML,s=t.CONTENT;if(!e.useShadow){var r=Element.prototype.cloneNode,d=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&&i.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 r=i.Logical.getParentNode(e);r?(t.hasApi(r)&&o(r).notifyObserver(),this._removeNode(e)):this._removeOwnerShadyRoot(e)}if(!this._addNode(e,n)){n&&(n=n.localName===s?this._firstComposedNode(n):n);var d=this.node._isShadyRoot?this.node.host:this.node;n?i.Composed.insertBefore(d,e,n):i.Composed.appendChild(d,e)}return this.notifyObserver(),e},_addNode:function(e,t){var o=this.getOwnerRoot();if(o){var n=this._maybeAddInsertionPoint(e,this.node);o._invalidInsertionPoints||(o._invalidInsertionPoints=n),this._addNodeToHost(o.host,e)}i.Logical.hasChildNodes(this.node)&&i.Logical.recordInsertBefore(e,this.node,t);var s=this._maybeDistribute(e)||this.node.shadyRoot;if(s)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(;e.firstChild;)i.Composed.removeChild(e,e.firstChild);else{var r=i.Composed.getParentNode(e);r&&i.Composed.removeChild(r,e)}return s},removeChild:function(e){if(i.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===i.Composed.getParentNode(e)&&i.Composed.removeChild(t,e)}return this.notifyObserver(),e},_removeNode:function(e){var t,n=i.Logical.hasParentNode(e)&&i.Logical.getParentNode(e),s=this._ownerShadyRootForNode(e);return n&&(t=o(e)._maybeDistributeParent(),i.Logical.recordRemoveChild(e,n),s&&this._removeDistributedChildren(s,e)&&(s._invalidInsertionPoints=!0,this._lazyDistribute(s.host))),this._removeOwnerShadyRoot(e),s&&this._removeNodeFromHost(s.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 o=i.Logical.getParentNode(e);t=o?o._isShadyRoot?o:this._ownerShadyRootForNode(o):null}(t||document.documentElement.contains(e))&&(e._ownerShadyRoot=t)}return t}},_maybeDistribute:function(e){var t=e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!e.__noContent&&o(e).querySelector(s),n=t&&i.Logical.getParentNode(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE,r=t||e.localName===s;if(r){var d=this.getOwnerRoot();d&&this._lazyDistribute(d.host)}var a=this._nodeNeedsDistribution(this.node);return a&&this._lazyDistribute(this.node),a||r&&!n},_maybeAddInsertionPoint:function(e,t){var n;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||e.__noContent)e.localName===s&&(i.Logical.saveChildNodes(t),i.Logical.saveChildNodes(e),n=!0);else for(var r,d,a,l=o(e).querySelectorAll(s),h=0;h<l.length&&(r=l[h]);h++)d=i.Logical.getParentNode(r),d===e&&(d=t),a=this._maybeAddInsertionPoint(r,d),n=n||a;return n},_updateInsertionPoints:function(e){for(var t,n=e.shadyRoot._insertionPoints=o(e.shadyRoot).querySelectorAll(s),r=0;r<n.length;r++)t=n[r],i.Logical.saveChildNodes(t),i.Logical.saveChildNodes(i.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,s=e._insertionPoints,r=0;r<s.length;r++){var d=s[r];if(this._contains(t,d))for(var a=o(d).getDistributedNodes(),l=0;l<a.length;l++){n=!0;var h=a[l],u=i.Composed.getParentNode(h);u&&i.Composed.removeChild(u,h)}}return n},_contains:function(e,t){for(;t;){if(t==e)return!0;t=i.Logical.getParentNode(t)}},_removeOwnerShadyRoot:function(e){if(this._hasCachedOwnerRoot(e))for(var t,o=i.Logical.getChildNodes(e),n=0,s=o.length;n<s&&(t=o[n]);n++)this._removeOwnerShadyRoot(t);e._ownerShadyRoot=void 0},_firstComposedNode:function(e){for(var t,i,n=o(e).getDistributedNodes(),s=0,r=n.length;s<r&&(t=n[s]);s++)if(i=o(t).getDestinationInsertionPoints(),i[i.length-1]===e)return t},querySelector:function(e){return this._query(function(o){return t.matchesSelector.call(o,e)},this.node,function(e){return Boolean(e)})[0]||null},querySelectorAll:function(e){return this._query(function(o){return t.matchesSelector.call(o,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._maybeDistributeParent()},removeAttribute:function(e){this.node.removeAttribute(e),this._maybeDistributeParent()},_maybeDistributeParent:function(){if(this._nodeNeedsDistribution(this.parentNode))return this._lazyDistribute(this.parentNode),!0},cloneNode:function(e){var t=r.call(this.node,!1);if(e)for(var i,n=this.childNodes,s=o(t),d=0;d<n.length;d++)i=o(n[d]).cloneNode(!0),s.appendChild(i);return t},importNode:function(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument,s=d.call(n,e,!1);if(t)for(var r,a=i.Logical.getChildNodes(e),l=o(s),h=0;h<a.length;h++)r=o(n).importNode(a[h],!0),l.appendChild(r);return s},_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 i=o(e).getOwnerRoot();i&&i!==this.node;)e=i.host,i=o(e).getOwnerRoot();return this.node===document?i?null:e:i===this.node?e:null},configurable:!0},childNodes:{get:function(){var e=i.Logical.getChildNodes(this.node);return Array.isArray(e)?e:i.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){return i.Logical.hasChildNodes(this.node)?Array.prototype.filter.call(this.childNodes,function(e){return e.nodeType===Node.ELEMENT_NODE}):i.arrayCopyChildren(this.node)},configurable:!0},parentNode:{get:function(){return i.Logical.getParentNode(this.node)},configurable:!0},firstChild:{get:function(){return i.Logical.getFirstChild(this.node)},configurable:!0},lastChild:{get:function(){return i.Logical.getLastChild(this.node)},configurable:!0},nextSibling:{get:function(){return i.Logical.getNextSibling(this.node)},configurable:!0},previousSibling:{get:function(){return i.Logical.getPreviousSibling(this.node)},configurable:!0},firstElementChild:{get:function(){return i.Logical.getFirstElementChild(this.node)},configurable:!0},lastElementChild:{get:function(){return i.Logical.getLastElementChild(this.node)},configurable:!0},nextElementSibling:{get:function(){return i.Logical.getNextElementSibling(this.node)},configurable:!0},previousElementSibling:{get:function(){return i.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,o=[],i=0,n=this.childNodes;t=n[i];i++)t.nodeType!==Node.COMMENT_NODE&&o.push(t.textContent);return o.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 o=document.createElement("div");o.innerHTML=e;for(var n=i.arrayCopyChildNodes(o),s=0;s<n.length;s++)this.appendChild(n[s])}},configurable:!0}}),t.hasInsertionPoint=function(e){return Boolean(e&&e._insertionPoints.length)}}}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,o=Polymer.DomApi;if(e.useShadow){Polymer.Base.mixin(o.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(o.prototype,{activeElement:{get:function(){var e=o.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 i=function(e){o.prototype[e]=function(){return this.node[e].apply(this.node,arguments)}};!function(e){for(var t=0;t<e.length;t++)i(e[t])}(["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector"]);var n=function(e){Object.defineProperty(o.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;return 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(),o=this.path,i=0;i<o.length;i++)if(Polymer.dom(o[i]).getOwnerRoot()===t)return o[i]},get path(){if(!this.event._path){for(var e=[],t=this.rootTarget;t;){e.push(t);var o=Polymer.dom(t).getDestinationInsertionPoints();if(o.length){for(var i=0;i<o.length-1;i++)e.push(o[i]);t=o[o.length-1]}else t=Polymer.dom(t).parentNode||t.host}e.push(window),this.event._path=e}return this.event._path}},{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,o=0;o<e.length&&(t=e[o]);o++)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,o=Polymer.dom(e).observeNodes(function(){t._scheduleNotify()});return o._avoidChangeCalculation=!0,o},_unobserveContentElements:function(e){for(var t,o,i=0;i<e.length&&(t=e[i]);i++)this._isContent(t)&&(o=t.__observeNodesMap.get(this))&&(Polymer.dom(t).unobserveNodes(o),t.__observeNodesMap.delete(this))},_isContent:function(e){return"content"===e.localName},_callListeners:function(){for(var e,t=this._listeners,o=this._getEffectiveNodes(),i=0;i<t.length&&(e=t[i]);i++){var n=this._generateListenerInfo(e,o);(n||e._alwaysNotify)&&this._callListener(e,n)}},_getEffectiveNodes:function(){return this.domApi.getEffectiveChildNodes()},_generateListenerInfo:function(e,t){if(e._avoidChangeCalculation)return!0;for(var o,i=e._nodes,n={target:this.node,addedNodes:[],removedNodes:[]},s=Polymer.ArraySplice.calculateSplices(t,i),r=0;r<s.length&&(o=s[r]);r++)for(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)n.removedNodes.push(d);for(r=0,o;r<s.length&&(o=s[r]);r++)for(a=o.index;a<o.index+o.addedCount;a++)n.addedNodes.push(t[a]);return e._nodes=t,n.addedNodes.length||n.removedNodes.length?n:void 0},_callListener:function(e,t){return e.fn.call(this.node,t)},enableShadowAttributeTracking:function(){}},t.useShadow){var o=e.EffectiveNodesObserver.prototype._setup,i=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})}o.call(this)},_cleanup:function(){this._observer.disconnect(),this._observer=null,this._mutationHandler=null,Polymer.dom.removeStaticFlush(this._boundFlush),i.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],e._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 o=this;this._observer=Polymer.dom(t).observeNodes(function(){o._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(){function e(e,t){t._distributedNodes.push(e);var o=e._destinationInsertionPoints;o?o.push(t):e._destinationInsertionPoints=[t]}function t(e){var t=e._distributedNodes;if(t)for(var o=0;o<t.length;o++){var i=t[o]._destinationInsertionPoints;i&&i.splice(i.indexOf(e)+1,i.length)}}function o(e,t){var o=u.Logical.getParentNode(e);o&&o.shadyRoot&&h.hasInsertionPoint(o.shadyRoot)&&o.shadyRoot._distributionClean&&(o.shadyRoot._distributionClean=!1,t.shadyRoot._dirtyRoots.push(o))}function i(e,t){var o=t._destinationInsertionPoints;return o&&o[o.length-1]===e}function n(e){return"content"==e.localName}function s(e){for(;e&&r(e);)e=e.domHost;return e}function r(e){for(var t,o=u.Logical.getChildNodes(e),i=0;i<o.length;i++)if(t=o[i],t.localName&&"content"===t.localName)return e.domHost}function d(e){for(var t,o=0;o<e._insertionPoints.length;o++)t=e._insertionPoints[o],h.hasApi(t)&&Polymer.dom(t).notifyObserver()}function a(e){h.hasApi(e)&&Polymer.dom(e).notifyObserver()}function l(e){if(_&&e)for(var t=0;t<e.length;t++)CustomElements.upgrade(e[t])}var h=Polymer.DomApi,u=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&&u.Logical.saveChildNodes(this)},_setupRoot:function(){this._useContent&&(this._createLocalRoot(),
- this.dataHost||l(u.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"):[];u.Logical.saveChildNodes(this.shadyRoot);for(var t,o=0;o<e.length;o++)t=e[o],u.Logical.saveChildNodes(t),u.Logical.saveChildNodes(t.parentNode);this.shadyRoot.host=this},distributeContent:function(e){if(this.shadyRoot){this.shadyRoot._invalidInsertionPoints=this.shadyRoot._invalidInsertionPoints||e;var t=s(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&&h.hasInsertionPoint(this.shadyRoot)&&(this._resetDistribution(),this._distributePool(this.shadyRoot,this._collectPool()))},_distributeDirtyRoots:function(){for(var e,t=this.shadyRoot._dirtyRoots,o=0,i=t.length;o<i&&(e=t[o]);o++)e._distributeContent();this.shadyRoot._dirtyRoots=[]},_finishDistribute:function(){if(this._useContent){if(this.shadyRoot._distributionClean=!0,h.hasInsertionPoint(this.shadyRoot))this._composeTree(),d(this.shadyRoot);else if(this.shadyRoot._hasDistributed){var e=this._composeNode(this);this._updateChildNodes(this,e)}else u.Composed.clearChildNodes(this),this.appendChild(this.shadyRoot);this.shadyRoot._hasDistributed||a(this),this.shadyRoot._hasDistributed=!0}},elementMatches:function(e,t){return t=t||this,h.matchesSelector.call(t,e)},_resetDistribution:function(){for(var e=u.Logical.getChildNodes(this),o=0;o<e.length;o++){var i=e[o];i._destinationInsertionPoints&&(i._destinationInsertionPoints=void 0),n(i)&&t(i)}for(var s=this.shadyRoot,r=s._insertionPoints,d=0;d<r.length;d++)r[d]._distributedNodes=[]},_collectPool:function(){for(var e=[],t=u.Logical.getChildNodes(this),o=0;o<t.length;o++){var i=t[o];n(i)?e.push.apply(e,i._distributedNodes):e.push(i)}return e},_distributePool:function(e,t){for(var i,n=e._insertionPoints,s=0,r=n.length;s<r&&(i=n[s]);s++)this._distributeInsertionPoint(i,t),o(i,this)},_distributeInsertionPoint:function(t,o){for(var i,n=!1,s=0,r=o.length;s<r;s++)(i=o[s])&&this._matchesContentSelect(i,t)&&(e(i,t),o[s]=void 0,n=!0);if(!n)for(var d=u.Logical.getChildNodes(t),a=0;a<d.length;a++)e(d[a],t)},_composeTree:function(){this._updateChildNodes(this,this._composeNode(this));for(var e,t,o=this.shadyRoot._insertionPoints,i=0,n=o.length;i<n&&(e=o[i]);i++)t=u.Logical.getParentNode(e),t._useContent||t===this||t===this.shadyRoot||this._updateChildNodes(t,this._composeNode(t))},_composeNode:function(e){for(var t=[],o=u.Logical.getChildNodes(e.shadyRoot||e),s=0;s<o.length;s++){var r=o[s];if(n(r))for(var d=r._distributedNodes,a=0;a<d.length;a++){var l=d[a];i(r,l)&&t.push(l)}else t.push(r)}return t},_updateChildNodes:function(e,t){for(var o,i=u.Composed.getChildNodes(e),n=Polymer.ArraySplice.calculateSplices(t,i),s=0,r=0;s<n.length&&(o=n[s]);s++){for(var d,a=0;a<o.removed.length&&(d=o.removed[a]);a++)u.Composed.getParentNode(d)===e&&u.Composed.removeChild(e,d),i.splice(o.index+r,1);r-=o.addedCount}for(var o,l,s=0;s<n.length&&(o=n[s]);s++)for(l=i[o.index],a=o.index,d;a<o.index+o.addedCount;a++)d=t[a],u.Composed.insertBefore(e,d,l),i.splice(a,0,d)},_matchesContentSelect:function(e,t){var o=t.getAttribute("select");return!o||(!(o=o.trim())||e instanceof Element&&(!!/^(:not\()?[*.#[a-zA-Z_|]/.test(o)&&this.elementMatches(o,e)))},_elementAdd:function(){},_elementRemove:function(){}});var c={get:function(){var e=Polymer.dom(this).getOwnerRoot();return e&&e.host},configurable:!0};Object.defineProperty(Polymer.Base,"domHost",c),Polymer.BaseDescriptors.domHost=c;var _=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 o=this._callbacks[t];if(o)try{o()}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}),Polymer.Debounce=function(){function e(e,t,i){return e?e.stop():e=new o(this),e.go(t,i),e}var t=Polymer.Async,o=function(e){this.context=e;var t=this;this.boundComplete=function(){t.complete()}};return o.prototype={go:function(e,o){var i;this.finish=function(){t.cancel(i)},i=t.run(this.boundComplete,o),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)}}},e}(),Polymer.Base._addFeature({_setupDebouncers:function(){this._debouncers={}},debounce:function(e,t,o){return this._debouncers[e]=Polymer.Debounce.call(this,this._debouncers[e],t,o)},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){}})</script><script>!function(){Polymer.nar=[];var e=Polymer.Settings.disableUpgradeEnabled;Polymer.Annotations={parseAnnotations:function(e,t){var n=[],r=e._content||e.content;return this._parseNodeAnnotations(r,n,t||e.hasAttribute("strip-whitespace")),n},_parseNodeAnnotations:function(e,t,n){return e.nodeType===Node.TEXT_NODE?this._parseTextNodeAnnotation(e,t):this._parseElementAnnotations(e,t,n)},_bindingRegex:function(){var e="(?:[a-zA-Z_$][\\w.:$\\-*]*)",t="(?:"+e+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\"))\\s*)";return new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+e+"\\s*(?:\\(\\s*(?:(?:"+t+"(?:,\\s*"+t+")*)?)\\)\\s*)?)(?:]]|}})","g")}(),_parseBindings:function(e){for(var t,n=this._bindingRegex,r=[],s=0;null!==(t=n.exec(e));){t.index>s&&r.push({literal:e.slice(s,t.index)});var i,o,a,l=t[1][0],c=Boolean(t[2]),h=t[3].trim();"{"==l&&(a=h.indexOf("::"))>0&&(o=h.substring(a+2),h=h.substring(0,a),i=!0),r.push({compoundIndex:r.length,value:h,mode:l,negate:c,event:o,customEvent:i}),s=n.lastIndex}if(s&&s<e.length){var u=e.substring(s);u&&r.push({literal:u})}if(r.length)return r},_literalFromParts:function(e){for(var t="",n=0;n<e.length;n++){t+=e[n].literal||""}return t},_parseTextNodeAnnotation:function(e,t){var n=this._parseBindings(e.textContent);if(n){e.textContent=this._literalFromParts(n)||" ";var r={bindings:[{kind:"text",name:"textContent",parts:n,isCompound:1!==n.length}]};return t.push(r),r}},_parseElementAnnotations:function(e,t,n){var r={bindings:[],events:[]};return"content"===e.localName&&(t._hasContent=!0),this._parseChildNodesAnnotations(e,r,t,n),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,n,r){if(e.firstChild)for(var s=e.firstChild,i=0;s;){var o=s.nextSibling;if("template"!==s.localName||s.hasAttribute("preserve-content")||this._parseTemplate(s,i,n,t,r),"slot"==s.localName&&(s=this._replaceSlotWithContent(s)),s.nodeType===Node.TEXT_NODE){for(var a=o;a&&a.nodeType===Node.TEXT_NODE;)s.textContent+=a.textContent,o=a.nextSibling,e.removeChild(a),a=o;r&&!s.textContent.trim()&&(e.removeChild(s),i--)}if(s.parentNode){var l=this._parseNodeAnnotations(s,n,r);l&&(l.parent=t,l.index=i)}s=o,i++}},_replaceSlotWithContent:function(e){for(var t=e.ownerDocument.createElement("content");e.firstChild;)t.appendChild(e.firstChild);for(var n=e.attributes,r=0;r<n.length;r++){var s=n[r];t.setAttribute(s.name,s.value)}var i=e.getAttribute("name");return i&&t.setAttribute("select","[slot='"+i+"']"),e.parentNode.replaceChild(t,e),t},_parseTemplate:function(e,t,n,r,s){var i=document.createDocumentFragment();i._notes=this.parseAnnotations(e,s),i.appendChild(e.content),n.push({bindings:Polymer.nar,events:Polymer.nar,templateContent:i,parent:r,index:t})},_parseNodeAttributeAnnotations:function(e,t){for(var n,r=Array.prototype.slice.call(e.attributes),s=r.length-1;n=r[s];s--){var i,o=n.name,a=n.value;"on-"===o.slice(0,3)?(e.removeAttribute(o),t.events.push({name:o.slice(3),value:a})):(i=this._parseNodeAttributeAnnotation(e,o,a))?t.bindings.push(i):"id"===o&&(t.id=a)}},_parseNodeAttributeAnnotation:function(t,n,r){var s=this._parseBindings(r);if(s){var i=n,o="property";"$"==n[n.length-1]&&(n=n.slice(0,-1),o="attribute");var a=this._literalFromParts(s);a&&"attribute"==o&&t.setAttribute(n,a),"input"===t.localName&&"value"===i&&t.setAttribute(i,""),e&&"disable-upgrade$"===i&&t.setAttribute(n,""),t.removeAttribute(i);var l=Polymer.CaseMap.dashToCamelCase(n);return"property"===o&&(n=l),{kind:o,name:n,propertyName:l,parts:s,literal:a,isCompound:1!==s.length}}},findAnnotatedNode:function(e,t){var n=t.parent&&Polymer.Annotations.findAnnotatedNode(e,t.parent);if(!n)return e;for(var r=n.firstChild,s=0;r;r=r.nextSibling)if(t.index===s++)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,n){return t+n.slice(e.length)},matches:function(e,t,n){return e===n||this.isAncestor(e,n)||Boolean(t)&&this.isDescendant(e,n)}},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 n=e[t],r=0;r<n.bindings.length;r++)for(var s=n.bindings[r],i=0;i<s.parts.length;i++){var o=s.parts[i];if(!o.literal){var a=this._parseMethod(o.value);a?o.signature=a:o.model=Polymer.Path.root(o.value)}}if(n.templateContent){this._processAnnotations(n.templateContent._notes);var l=n.templateContent._parentProps=this._discoverTemplateParentProps(n.templateContent._notes),c=[];for(var h in l){var u="_parent_"+h;c.push({index:n.index,kind:"property",name:u,propertyName:u,parts:[{mode:"{",model:h,value:h}]})}n.bindings=n.bindings.concat(c)}}},_discoverTemplateParentProps:function(e){for(var t,n={},r=0;r<e.length&&(t=e[r]);r++){for(var s,i=0,o=t.bindings;i<o.length&&(s=o[i]);i++)for(var a,l=0,c=s.parts;l<c.length&&(a=c[l]);l++)if(a.signature){for(var h=a.signature.args,u=0;u<h.length;u++){var f=h[u].model;f&&(n[f]=!0)}a.signature.dynamicFn&&(n[a.signature.method]=!0)}else a.model&&(n[a.model]=!0);if(t.templateContent){var p=t.templateContent._parentProps;Polymer.Base.mixin(n,p)}}return n},_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,n=0;n<e.length;n++){var r=e[n],s=t[n];this._configureTemplateContent(r,s),this._configureCompoundBindings(r,s)}},_configureTemplateContent:function(e,t){e.templateContent&&(t._content=e.templateContent)},_configureCompoundBindings:function(e,t){for(var n=e.bindings,r=0;r<n.length;r++){var s=n[r];if(s.isCompound){for(var i=t.__compoundStorage__||(t.__compoundStorage__={}),o=s.parts,a=new Array(o.length),l=0;l<o.length;l++)a[l]=o[l].literal;var c=s.name;i[c]=a,s.literal&&"property"==s.kind&&(t._configValue?t._configValue(c,s.literal):t[c]=s.literal)}}},_marshalIdNodes:function(){this.$={};for(var e,t=0,n=this._notes.length;t<n&&(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,n=this._notes.length;t<n&&(e=this._notes[t]);t++)if(e.events&&e.events.length)for(var r,s=this._findAnnotatedNode(this.root,e),i=0,o=e.events;i<o.length&&(r=o[i]);i++)this.listen(s,r.name,r.value)}}),Polymer.Base._addFeature({listeners:{},_listenListeners:function(e){var t,n,r;for(r in e)r.indexOf(".")<0?(t=this,n=r):(n=r.split("."),t=this.$[n[0]],n=n[1]),this.listen(t,n,e[r])},listen:function(e,t,n){var r=this._recallEventHandler(this,t,e,n);r||(r=this._createEventHandler(e,t,n)),r._listening||(this._listen(e,t,r),r._listening=!0)},_boundListenerKey:function(e,t){return e+":"+t},_recordEventHandler:function(e,t,n,r,s){var i=e.__boundListeners;i||(i=e.__boundListeners=new WeakMap);var o=i.get(n);o||(o={},Polymer.Settings.isIE&&n==window||i.set(n,o)),o[this._boundListenerKey(t,r)]=s},_recallEventHandler:function(e,t,n,r){var s=e.__boundListeners;if(s){var i=s.get(n);if(i){return i[this._boundListenerKey(t,r)]}}},_createEventHandler:function(e,t,n){var r=this,s=function(e){r[n]?r[n](e,e.detail):r._warn(r._logf("_createEventHandler","listener method `"+n+"` not defined"))};return s._listening=!1,this._recordEventHandler(r,t,e,n,s),s},unlisten:function(e,t,n){var r=this._recallEventHandler(this,t,e,n);r&&(this._unlisten(e,t,r),r._listening=!1)},_listen:function(e,t,n){e.addEventListener(t,n)},_unlisten:function(e,t,n){e.removeEventListener(t,n)}}),function(){"use strict";function e(e){for(var t,n=m?["click"]:f,r=0;r<n.length;r++)t=n[r],e?document.addEventListener(t,y,!0):document.removeEventListener(t,y,!0)}function t(t){v.mouse.mouseIgnoreJob||e(!0);var n=function(){e(),v.mouse.target=null,v.mouse.mouseIgnoreJob=null};v.mouse.target=Polymer.dom(t).rootTarget,v.mouse.mouseIgnoreJob=Polymer.Debounce(v.mouse.mouseIgnoreJob,n,u)}function n(e){var t=e.type;if(-1===f.indexOf(t))return!1;if("mousemove"===t){var n=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!_&&(n=p[e.which]||0),Boolean(1&n)}return 0===(void 0===e.button?0:e.button)}function r(e){if("click"===e.type){if(0===e.detail)return!0;var t=g.findOriginalTarget(e),n=t.getBoundingClientRect(),r=e.pageX,s=e.pageY;return!(r>=n.left&&r<=n.right&&s>=n.top&&s<=n.bottom)}return!1}function s(e){for(var t,n=Polymer.dom(e).path,r="auto",s=0;s<n.length;s++)if(t=n[s],t[h]){r=t[h];break}return r}function i(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function o(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}var a=Polymer.DomApi.wrap,l="string"==typeof document.head.style.touchAction,c="__polymerGesturesHandled",h="__polymerGesturesTouchAction",u=2500,f=["mousedown","mousemove","mouseup","click"],p=[0,1,4,2],_=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}(),d=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var m=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),y=function(e){var t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[c]={skip:!0},"click"===e.type)){for(var n=Polymer.dom(e).path,r=0;r<n.length;r++)if(n[r]===v.mouse.target)return;e.preventDefault(),e.stopPropagation()}},v={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};document.addEventListener("touchend",t,!!d&&{passive:!0});var g={gestures:{},recognizers:[],deepTargetFind:function(e,t){for(var n=document.elementFromPoint(e,t),r=n;r&&r.shadowRoot;)(r=r.shadowRoot.elementFromPoint(e,t))&&(n=r);return n},findOriginalTarget:function(e){return e.path?e.path[0]:e.target},handleNative:function(e){var t,n=e.type,r=a(e.currentTarget),s=r.__polymerGestures;if(s){var i=s[n];if(i){if(!e[c]&&(e[c]={},"touch"===n.slice(0,5))){var o=e.changedTouches[0];if("touchstart"===n&&1===e.touches.length&&(v.touch.id=o.identifier),v.touch.id!==o.identifier)return;l||"touchstart"!==n&&"touchmove"!==n||g.handleTouchAction(e)}if(t=e[c],!t.skip){for(var h,u=g.recognizers,f=0;f<u.length;f++)h=u[f],i[h.name]&&!t[h.name]&&h.flow&&h.flow.start.indexOf(e.type)>-1&&h.reset&&h.reset();for(f=0,h;f<u.length;f++)h=u[f],i[h.name]&&!t[h.name]&&(t[h.name]=!0,h[n](e))}}}},handleTouchAction:function(e){var t=e.changedTouches[0],n=e.type;if("touchstart"===n)v.touch.x=t.clientX,v.touch.y=t.clientY,v.touch.scrollDecided=!1;else if("touchmove"===n){if(v.touch.scrollDecided)return;v.touch.scrollDecided=!0;var r=s(e),i=!1,o=Math.abs(v.touch.x-t.clientX),a=Math.abs(v.touch.y-t.clientY);e.cancelable&&("none"===r?i=!0:"pan-x"===r?i=a>o:"pan-y"===r&&(i=o>a)),i?e.preventDefault():g.prevent("track")}},add:function(e,t,n){e=a(e);var r=this.gestures[t],s=r.deps,i=r.name,o=e.__polymerGestures;o||(e.__polymerGestures=o={});for(var l,c,h=0;h<s.length;h++)l=s[h],m&&f.indexOf(l)>-1&&"click"!==l||(c=o[l],c||(o[l]=c={_count:0}),0===c._count&&e.addEventListener(l,this.handleNative),c[i]=(c[i]||0)+1,c._count=(c._count||0)+1);e.addEventListener(t,n),r.touchAction&&this.setTouchAction(e,r.touchAction)},remove:function(e,t,n){e=a(e);var r=this.gestures[t],s=r.deps,i=r.name,o=e.__polymerGestures;if(o)for(var l,c,h=0;h<s.length;h++)l=s[h],(c=o[l])&&c[i]&&(c[i]=(c[i]||1)-1,c._count=(c._count||1)-1,0===c._count&&e.removeEventListener(l,this.handleNative));e.removeEventListener(t,n)},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,n=0;n<this.recognizers.length;n++){t=this.recognizers[n];for(var r=0;r<t.emits.length;r++)if(t.emits[r]===e)return t}return null},setTouchAction:function(e,t){l&&(e.style.touchAction=t),e[h]=t},fire:function(e,t,n){if(Polymer.Base.fire(t,n,{node:e,bubbles:!0,cancelable:!0}).defaultPrevented){var r=n.preventer||n.sourceEvent;r&&r.preventDefault&&r.preventDefault()}},prevent:function(e){var t=this.findRecognizerByEvent(e);t.info&&(t.info.prevent=!0)},resetMouseCanceller:function(){v.mouse.mouseIgnoreJob&&v.mouse.mouseIgnoreJob.complete()}};g.register({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){o(this.info)},mousedown:function(e){if(n(e)){var t=g.findOriginalTarget(e),r=this,s=function(e){n(e)||(r.fire("up",t,e),o(r.info))},a=function(e){n(e)&&r.fire("up",t,e),o(r.info)};i(this.info,s,a),this.fire("down",t,e)}},touchstart:function(e){this.fire("down",g.findOriginalTarget(e),e.changedTouches[0],e)},touchend:function(e){this.fire("up",g.findOriginalTarget(e),e.changedTouches[0],e)},fire:function(e,t,n,r){g.fire(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(e){return g.prevent(e)}})}}),g.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,o(this.info)},hasMovedEnough:function(e,t){if(this.info.prevent)return!1;if(this.info.started)return!0;var n=Math.abs(this.info.x-e),r=Math.abs(this.info.y-t);return n>=5||r>=5},mousedown:function(e){if(n(e)){var t=g.findOriginalTarget(e),r=this,s=function(e){var s=e.clientX,i=e.clientY;r.hasMovedEnough(s,i)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&g.prevent("tap"),r.info.addMove({x:s,y:i}),n(e)||(r.info.state="end",o(r.info)),r.fire(t,e),r.info.started=!0)},a=function(e){r.info.started&&s(e),o(r.info)};i(this.info,s,a),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=g.findOriginalTarget(e),n=e.changedTouches[0],r=n.clientX,s=n.clientY;this.hasMovedEnough(r,s)&&("start"===this.info.state&&g.prevent("tap"),this.info.addMove({x:r,y:s}),this.fire(t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=g.findOriginalTarget(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),this.fire(t,n,e))},fire:function(e,t,n){var r,s=this.info.moves[this.info.moves.length-2],i=this.info.moves[this.info.moves.length-1],o=i.x-this.info.x,a=i.y-this.info.y,l=0;return s&&(r=i.x-s.x,l=i.y-s.y),g.fire(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:o,dy:a,ddx:r,ddy:l,sourceEvent:t,preventer:n,hover:function(){return g.deepTargetFind(t.clientX,t.clientY)}})}}),g.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){n(e)&&this.save(e)},click:function(e){n(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 n=Math.abs(e.clientX-this.info.x),s=Math.abs(e.clientY-this.info.y),i=g.findOriginalTarget(e);(isNaN(n)||isNaN(s)||n<=25&&s<=25||r(e))&&(this.info.prevent||g.fire(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var P={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Polymer.Base._addFeature({_setupGestures:function(){this.__polymerGestures=null},_listen:function(e,t,n){g.gestures[t]?g.add(e,t,n):e.addEventListener(t,n)},_unlisten:function(e,t,n){g.gestures[t]?g.remove(e,t,n):e.removeEventListener(t,n)},setScrollDirection:function(e,t){t=t||this,g.setTouchAction(t,P[e]||"auto")}}),Polymer.Gestures=g}(),function(){"use strict";if(Polymer.Base._addFeature({$$:function(e){return Polymer.dom(this.root).querySelector(e)},toggleClass:function(e,t,n){n=n||this,1==arguments.length&&(t=!n.classList.contains(e)),t?Polymer.dom(n).classList.add(e):Polymer.dom(n).classList.remove(e)},toggleAttribute:function(e,t,n){n=n||this,1==arguments.length&&(t=!n.hasAttribute(e)),t?Polymer.dom(n).setAttribute(e,""):Polymer.dom(n).removeAttribute(e)},classFollows:function(e,t,n){n&&Polymer.dom(n).classList.remove(e),t&&Polymer.dom(t).classList.add(e)},attributeFollows:function(e,t,n){n&&Polymer.dom(n).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(),n=[],r=0;e=t[r];r++)e.nodeType!==Node.COMMENT_NODE&&n.push(Polymer.dom(e).textContent);return n.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,n){n=n||Polymer.nob;var r=n.node||this;t=null===t||void 0===t?{}:t;var s=void 0===n.bubbles||n.bubbles,i=Boolean(n.cancelable),o=n._useCache,a=this._getEvent(e,s,i,o);return a.detail=t,o&&(this.__eventCache[e]=null),r.dispatchEvent(a),o&&(this.__eventCache[e]=a),a},__eventCache:{},_getEvent:function(e,t,n,r){var s=r&&this.__eventCache[e];return s&&s.bubbles==t&&s.cancelable==n||(s=new Event(e,{bubbles:Boolean(t),cancelable:n})),s},async:function(e,t){var n=this;return Polymer.Async.run(function(){e.call(n)},t)},cancelAsync:function(e){Polymer.Async.cancel(e)},arrayDelete:function(e,t){var n;if(Array.isArray(e)){if((n=e.indexOf(t))>=0)return e.splice(n,1)}else{if((n=this._get(e).indexOf(t))>=0)return this.splice(e,n,1)}},transform:function(e,t){t=t||this,t.style.webkitTransform=e,t.style.transform=e},translate3d:function(e,t,n,r){r=r||this,this.transform("translate3d("+e+","+t+","+n+")",r)},importHref:function(e,t,n,r){var s=document.createElement("link");s.rel="import",s.href=e;var i=Polymer.Base.importHref.imported=Polymer.Base.importHref.imported||{},o=i[s.href],a=o||s,l=this,c=function(e){return e.target.__firedLoad=!0,e.target.removeEventListener("load",c),e.target.removeEventListener("error",h),t.call(l,e)},h=function(e){return e.target.__firedError=!0,e.target.removeEventListener("load",c),e.target.removeEventListener("error",h),n.call(l,e)};return t&&a.addEventListener("load",c),n&&a.addEventListener("error",h),o?(o.__firedLoad&&o.dispatchEvent(new Event("load")),o.__firedError&&o.dispatchEvent(new Event("error"))):(i[s.href]=s,r=Boolean(r),r&&s.setAttribute("async",""),document.head.appendChild(s)),a},create:function(e,t){var n=document.createElement(e);if(t)for(var r in t)n[r]=t[r];return n},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,n,r,s){CustomElements.ready=!1;var i=function(e){if(CustomElements.upgradeDocumentTree(document),CustomElements.ready=!0,n)return n.call(this,e)};return e.call(this,t,i,r,s)}}}(),Polymer.Bind={prepareModel:function(e){Polymer.Base.mixin(e,this._modelApi)},_modelApi:{_notifyChange:function(e,t,n){n=void 0===n?this[e]:n,t=t||Polymer.CaseMap.camelToDashCase(e)+"-changed",this.fire(t,{value:n},{bubbles:!1,cancelable:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_propertySetter:function(e,t,n,r){var s=this.__data__[e];return s===t||s!==s&&t!==t||(this.__data__[e]=t,"object"==typeof t&&this._clearPath(e),this._propertyChanged&&this._propertyChanged(e,t,s),n&&this._effectEffects(e,t,n,s,r)),s},__setProperty:function(e,t,n,r){r=r||this;var s=r._propertyEffects&&r._propertyEffects[e];s?r._propertySetter(e,t,s,n):r[e]!==t&&(r[e]=t)},_effectEffects:function(e,t,n,r,s){for(var i,o=0,a=n.length;o<a&&(i=n[o]);o++)i.fn.call(this,e,this[e],i.effect,r,s)},_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 n=e._propertyEffects[t];return n||(n=e._propertyEffects[t]=[]),n},addPropertyEffect:function(e,t,n,r){var s=this.ensurePropertyEffects(e,t),i={kind:n,effect:r,fn:Polymer.Bind["_"+n+"Effect"]};return s.push(i),i},createBindings:function(e){var t=e._propertyEffects;if(t)for(var n in t){var r=t[n];r.sort(this._sortPropertyEffects),this._createAccessors(e,n,r)}},_sortPropertyEffects:function(){var e={compute:0,annotation:1,annotatedComputation:2,reflect:3,notify:4,observer:5,complexObserver:6,function:7};return function(t,n){return e[t.kind]-e[n.kind]}}(),_createAccessors:function(e,t,n){var r={get:function(){return this.__data__[t]}},s=function(e){this._propertySetter(t,e,n)},i=e.getPropertyInfo&&e.getPropertyInfo(t);i&&i.readOnly?i.computed||(e["_set"+this.upper(t)]=s):r.set=s,Object.defineProperty(e,t,r)},upper:function(e){return e[0].toUpperCase()+e.substring(1)},_addAnnotatedListener:function(e,t,n,r,s,i){e._bindListeners||(e._bindListeners=[]);var o=this._notedListenerFactory(n,r,Polymer.Path.isDeep(r),i),a=s||Polymer.CaseMap.camelToDashCase(n)+"-changed";e._bindListeners.push({index:t,property:n,path:r,changedFn:o,event:a})},_isEventBogus:function(e,t){return e.path&&e.path[0]!==t},_notedListenerFactory:function(e,t,n,r){return function(s,i,o){if(o){var a=Polymer.Path.translate(e,t,o);this._notifyPath(a,i)}else i=s[e],r&&(i=!i),n?this.__data__[t]!=i&&this.set(t,i):this[t]=i}},prepareInstance:function(e){e.__data__=Object.create(null)},setupBindListeners:function(e){for(var t,n=e._bindListeners,r=0,s=n.length;r<s&&(t=n[r]);r++){var i=e._nodes[t.index];this._addNotifyListener(i,e,t.event,t.changedFn)}},_addNotifyListener:function(e,t,n,r){e.addEventListener(n,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,n){e!=n.value&&(t=this._get(n.value),this.__data__[n.value]=t),this._applyEffectValue(n,t)},_reflectEffect:function(e,t,n){this.reflectPropertyToAttribute(e,n.attribute,t)},_notifyEffect:function(e,t,n,r,s){s||this._notifyChange(e,n.event,t)},_functionEffect:function(e,t,n,r,s){n.call(this,e,t,r,s)},_observerEffect:function(e,t,n,r){var s=this[n.method];s?s.call(this,t,r):this._warn(this._logf("_observerEffect","observer method `"+n.method+"` not defined"))},_complexObserverEffect:function(e,t,n){var r=this[n.method];if(r){var s=Polymer.Bind._marshalArgs(this.__data__,n,e,t);s&&r.apply(this,s)}else n.dynamicFn||this._warn(this._logf("_complexObserverEffect","observer method `"+n.method+"` not defined"))},_computeEffect:function(e,t,n){var r=this[n.method];if(r){var s=Polymer.Bind._marshalArgs(this.__data__,n,e,t);if(s){var i=r.apply(this,s);this.__setProperty(n.name,i)}}else n.dynamicFn||this._warn(this._logf("_computeEffect","compute method `"+n.method+"` not defined"))},_annotatedComputationEffect:function(e,t,n){var r=this._rootDataHost||this,s=r[n.method];if(s){var i=Polymer.Bind._marshalArgs(this.__data__,n,e,t);if(i){var o=s.apply(r,i);this._applyEffectValue(n,o)}}else n.dynamicFn||r._warn(r._logf("_annotatedComputationEffect","compute method `"+n.method+"` not defined"))},_marshalArgs:function(e,t,n,r){for(var s=[],i=t.args,o=i.length>1||t.dynamicFn,a=0,l=i.length;a<l;a++){var c,h=i[a],u=h.name;if(h.literal?c=h.value:n===u?c=r:void 0===(c=e[u])&&h.structured&&(c=Polymer.Base._get(u,e)),o&&void 0===c)return;if(h.wildcard){var f=Polymer.Path.isAncestor(n,u);s[a]={path:f?n:u,value:f?r:c,base:c}}else s[a]=c}return s}}),Polymer.Base._addFeature({_addPropertyEffect:function(e,t,n){var r=Polymer.Bind.addPropertyEffect(this,e,t,n);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 n=e[t];if(n.observer&&this._addObserverEffect(t,n.observer),n.computed&&(n.readOnly=!0,this._addComputedEffect(t,n.computed)),n.notify&&this._addPropertyEffect(t,"notify",{event:Polymer.CaseMap.camelToDashCase(t)+"-changed"}),n.reflectToAttribute){var r=Polymer.CaseMap.camelToDashCase(t);"-"===r[0]?this._warn(this._logf("_addPropertyEffects","Property "+t+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')):this._addPropertyEffect(t,"reflect",{attribute:r})}n.readOnly&&Polymer.Bind.ensurePropertyEffects(this,t)}},_addComputedEffect:function(e,t){for(var n,r=this._parseMethod(t),s=r.dynamicFn,i=0;i<r.args.length&&(n=r.args[i]);i++)this._addPropertyEffect(n.model,"compute",{method:r.method,args:r.args,trigger:n,name:e,dynamicFn:s});s&&this._addPropertyEffect(r.method,"compute",{method:r.method,args:r.args,trigger:null,name:e,dynamicFn:s})},_addObserverEffect:function(e,t){this._addPropertyEffect(e,"observer",{method:t,property:e})},_addComplexObserverEffects:function(e){if(e)for(var t,n=0;n<e.length&&(t=e[n]);n++)this._addComplexObserverEffect(t)},_addComplexObserverEffect:function(e){var t=this._parseMethod(e);if(!t)throw new Error("Malformed observer expression '"+e+"'");for(var n,r=t.dynamicFn,s=0;s<t.args.length&&(n=t.args[s]);s++)this._addPropertyEffect(n.model,"complexObserver",{method:t.method,args:t.args,trigger:n,dynamicFn:r});r&&this._addPropertyEffect(t.method,"complexObserver",{method:t.method,args:t.args,trigger:null,dynamicFn:r})},_addAnnotationEffects:function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)for(var r,s=t.bindings,i=0;i<s.length&&(r=s[i]);i++)this._addAnnotationEffect(r,n)},_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 n=0;n<e.parts.length;n++){var r=e.parts[n];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,n){var r=t.signature;if(r.static)this.__addAnnotatedComputationEffect("__static__",n,e,t,null);else{for(var s,i=0;i<r.args.length&&(s=r.args[i]);i++)s.literal||this.__addAnnotatedComputationEffect(s.model,n,e,t,s);r.dynamicFn&&this.__addAnnotatedComputationEffect(r.method,n,e,t,null)}},__addAnnotatedComputationEffect:function(e,t,n,r,s){this._addPropertyEffect(e,"annotatedComputation",{index:t,isCompound:n.isCompound,compoundIndex:r.compoundIndex,kind:n.kind,name:n.name,negate:r.negate,method:r.signature.method,args:r.signature.args,trigger:s,dynamicFn:r.signature.dynamicFn})},_parseMethod:function(e){var t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){var n={method:t[1],static:!0};if(this.getPropertyInfo(n.method)!==Polymer.nob&&(n.static=!1,n.dynamicFn=!0),t[2].trim()){var r=t[2].replace(/\\,/g,",").split(",");return this._parseArgs(r,n)}return n.args=Polymer.nar,n}},_parseArgs:function(e,t){return t.args=e.map(function(e){var n=this._parseArg(e);return n.literal||(t.static=!1),n},this),t},_parseArg:function(e){var t=e.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),n={name:t},r=t[0];switch("-"===r&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.model=Polymer.Path.root(t),n.structured=Polymer.Path.isDeep(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n},_marshalInstanceEffects:function(){Polymer.Bind.prepareInstance(this),this._bindListeners&&Polymer.Bind.setupBindListeners(this)},_applyEffectValue:function(e,t){var n=this._nodes[e.index],r=e.name;if(t=this._computeFinalAnnotationValue(n,r,t,e),"attribute"==e.kind)this.serializeValueToAttribute(t,r,n);else{var s=n._propertyInfo&&n._propertyInfo[r];if(s&&s.readOnly)return;this.__setProperty(r,t,Polymer.Settings.suppressBindingNotifications,n)}},_computeFinalAnnotationValue:function(e,t,n,r){if(r.negate&&(n=!n),r.isCompound){var s=e.__compoundStorage__[t];s[r.compoundIndex]=n,n=s.join("")}return"attribute"!==r.kind&&("className"===t&&(n=this._scopeElementClass(e,n)),("textContent"===t||"input"==e.localName&&"value"==t)&&(n=void 0==n?"":n)),n},_executeStaticEffects:function(){this._propertyEffects&&this._propertyEffects.__static__&&this._effectEffects("__static__",null,this._propertyEffects.__static__)}}),function(){var e=Polymer.Settings.usePolyfillProto,t=Boolean(Object.getOwnPropertyDescriptor(document.documentElement,"properties"));Polymer.Base._addFeature({_setupConfigure:function(e){if(this._config={},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 n=this._propertyInfo[e];n&&n.readOnly||(this._config[e]=t)},_beforeClientsReady:function(){this._configure()},_configure:function(){this._configureAnnotationReferences(),this._configureInstanceProperties(),this._aboveConfig=this.mixin({},this._config);for(var e={},n=0;n<this.behaviors.length;n++)this._configureProperties(this.behaviors[n].properties,e);this._configureProperties(t?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 t in this._propertyEffects)!e&&this.hasOwnProperty(t)&&(this._configValue(t,this[t]),delete this[t])},_configureProperties:function(e,t){for(var n in e){var r=e[n];if(void 0!==r.value){var s=r.value;"function"==typeof s&&(s=s.call(this,this._config)),t[n]=s}}},_distributeConfig:function(e){var t=this._propertyEffects
- ;if(t)for(var n in e){var r=t[n];if(r)for(var s,i=0,o=r.length;i<o&&(s=r[i]);i++)if("annotation"===s.kind){var a=this._nodes[s.effect.index],l=s.effect.propertyName,c="attribute"==s.effect.kind,h=a._propertyEffects&&a._propertyEffects[l];if(a._configValue&&(h||!c)){var u=n===s.effect.value?e[n]:this._get(s.effect.value,e);u=this._computeFinalAnnotationValue(a,l,u,s.effect),c&&(u=a.deserialize(this.serialize(u),a._propertyInfo[l].type)),a._configValue(l,u)}}}},_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 n in e)void 0===this[n]&&this.__setProperty(n,e[n],n in t)},_notifyListener:function(e,t){if(!Polymer.Bind._isEventBogus(t,t.target)){var n,r;if(t.detail&&(n=t.detail.value,r=t.detail.path),this._clientsReadied)return e.call(this,t.target,n,r);this._queueHandler([e,t.target,n,r])}},_queueHandler:function(e){this._handlers.push(e)},_flushHandlers:function(){for(var e,t=this._handlers,n=0,r=t.length;n<r&&(e=t[n]);n++)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,n){var r={},s=this._get(e,this,r);1===arguments.length&&(t=s),r.path&&this._notifyPath(r.path,t,n)},_notifyPath:function(e,t,n){var r=this._propertySetter(e,t);if(r!==t&&(r===r||t===t))return this._pathEffector(e,t),n||this._notifyPathUp(e,t),!0},_getPathParts:function(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].toString().split("."),s=0;s<r.length;s++)t.push(r[s]);return t}return e.toString().split(".")},set:function(e,t,n){var r,s=n||this,i=this._getPathParts(e),o=i[i.length-1];if(i.length>1){for(var a=0;a<i.length-1;a++){var l=i[a];if(r&&"#"==l[0]?s=Polymer.Collection.get(r).getItem(l):(s=s[l],r&&parseInt(l,10)==l&&(i[a]=Polymer.Collection.get(r).getKey(s))),!s)return;r=Array.isArray(s)?s:null}if(r){var c,h,u=Polymer.Collection.get(r);"#"==o[0]?(h=o,c=u.getItem(h),o=r.indexOf(c),u.setItem(h,t)):parseInt(o,10)==o&&(c=s[o],h=u.getKey(c),i[a]=h,u.setItem(h,t))}s[o]=t,n||this._notifyPath(i.join("."),t)}else s[e]=t},get:function(e,t){return this._get(e,t)},_get:function(e,t,n){for(var r,s=t||this,i=this._getPathParts(e),o=0;o<i.length;o++){if(!s)return;var a=i[o];r&&"#"==a[0]?s=Polymer.Collection.get(r).getItem(a):(s=s[a],n&&r&&parseInt(a,10)==a&&(i[o]=Polymer.Collection.get(r).getKey(s))),r=Array.isArray(s)?s:null}return n&&(n.path=i.join(".")),s},_pathEffector:function(t,n){var r=e.root(t),s=this._propertyEffects&&this._propertyEffects[r];if(s)for(var i,o=0;o<s.length&&(i=s[o]);o++){var a=i.pathFn;a&&a.call(this,t,n,i.effect)}this._boundPaths&&this._notifyBoundPaths(t,n)},_annotationPathEffect:function(t,n,r){if(e.matches(r.value,!1,t))Polymer.Bind._annotationEffect.call(this,t,n,r);else if(!r.negate&&e.isDescendant(r.value,t)){var s=this._nodes[r.index];if(s&&s._notifyPath){var i=e.translate(r.value,r.name,t);s._notifyPath(i,n,!0)}}},_complexObserverPathEffect:function(t,n,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._complexObserverEffect.call(this,t,n,r)},_computePathEffect:function(t,n,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._computeEffect.call(this,t,n,r)},_annotatedComputationPathEffect:function(t,n,r){e.matches(r.trigger.name,r.trigger.wildcard,t)&&Polymer.Bind._annotatedComputationEffect.call(this,t,n,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,n){for(var r in this._boundPaths){var s=this._boundPaths[r];e.isDescendant(r,t)?this._notifyPath(e.translate(r,s,t),n):e.isDescendant(s,t)&&this._notifyPath(e.translate(s,r,t),n)}},_notifyPathUp:function(t,n){var r=e.root(t),s=Polymer.CaseMap.camelToDashCase(r),i=s+this._EVENT_CHANGED;this.fire(i,{path:t,value:n},{bubbles:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_EVENT_CHANGED:"-changed",notifySplices:function(e,t){var n={},r=this._get(e,this,n);this._notifySplices(r,n.path,t)},_notifySplices:function(e,t,n){var r={keySplices:Polymer.Collection.applySplices(e,n),indexSplices:n},s=t+".splices";this._notifyPath(s,r),this._notifyPath(t+".length",e.length),this.__data__[s]={keySplices:null,indexSplices:null}},_notifySplice:function(e,t,n,r,s){this._notifySplices(e,t,[{index:n,addedCount:r,removed:s,object:e,type:"splice"}])},push:function(e){var t={},n=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1),s=n.length,i=n.push.apply(n,r);return r.length&&this._notifySplice(n,t.path,s,r.length,[]),i},pop:function(e){var t={},n=this._get(e,this,t),r=Boolean(n.length),s=Array.prototype.slice.call(arguments,1),i=n.pop.apply(n,s);return r&&this._notifySplice(n,t.path,n.length,0,[i]),i},splice:function(e,t){var n={},r=this._get(e,this,n);(t=t<0?r.length-Math.floor(-t):Math.floor(t))||(t=0);var s=Array.prototype.slice.call(arguments,1),i=r.splice.apply(r,s),o=Math.max(s.length-2,0);return(o||i.length)&&this._notifySplice(r,n.path,t,o,i),i},shift:function(e){var t={},n=this._get(e,this,t),r=Boolean(n.length),s=Array.prototype.slice.call(arguments,1),i=n.shift.apply(n,s);return r&&this._notifySplice(n,t.path,0,0,[i]),i},unshift:function(e){var t={},n=this._get(e,this,t),r=Array.prototype.slice.call(arguments,1),s=n.unshift.apply(n,r);return r.length&&this._notifySplice(n,t.path,0,r.length,[]),s},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=function(){return{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},n=t,r=0,s=e.length;r<s;r++)switch(e[r]){case this.OPEN_BRACE:n.rules||(n.rules=[]);var i=n;n={start:r+1,parent:i,previous:i.rules[i.rules.length-1]},i.rules.push(n);break;case this.CLOSE_BRACE:n.end=r+1,n=n.parent||t}return t},_parseCss:function(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent){var r=e.previous?e.previous.end:e.parent.start;n=t.substring(r,e.start-1),n=this._expandUnicodeEscapes(n),n=n.replace(this._rx.multipleSpaces," "),n=n.substring(n.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=n.trim();e.atRule=0===s.indexOf(this.AT_START),e.atRule?0===s.indexOf(this.MEDIA_START)?e.type=this.types.MEDIA_RULE:s.match(this._rx.keyframesRule)&&(e.type=this.types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(this._rx.multipleSpaces).pop()):0===s.indexOf(this.VAR_START)?e.type=this.types.MIXIN_RULE:e.type=this.types.STYLE_RULE}var i=e.rules;if(i)for(var o,a=0,l=i.length;a<l&&(o=i[a]);a++)this._parseCss(o,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,n){n=n||"";var r="";if(e.cssText||e.rules){var s=e.rules;if(s&&!this._hasMixinRules(s))for(var i,o=0,a=s.length;o<a&&(i=s[o]);o++)r=this.stringify(i,t,r);else r=t?e.cssText:this.removeCustomProps(e.cssText),(r=r.trim())&&(r=" "+r+"\n")}return r&&(e.selector&&(n+=e.selector+" "+this.OPEN_BRACE+"\n"),n+=r,e.selector&&(n+=this.CLOSE_BRACE+"\n\n")),n},_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=function(){var e=Polymer.Settings;return{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,n){if(e)for(var r,s=0,i=e.length;s<i&&(r=e[s]);s++)this.forEachRuleInStyle(r,t,n)},forActiveRulesInStyles:function(e,t,n){if(e)for(var r,s=0,i=e.length;s<i&&(r=e[s]);s++)this.forEachRuleInStyle(r,t,n,!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,n,r){var s,i,o=this.rulesForStyle(e);t&&(s=function(n){t(n,e)}),n&&(i=function(t){n(t,e)}),this.forEachRule(o,s,i,r)},forEachRule:function(e,t,n,r){if(e){var s=!1;if(r&&e.type===this.ruleTypes.MEDIA_RULE){var i=e.selector.match(this.rx.MEDIA_MATCH);i&&(window.matchMedia(i[1]).matches||(s=!0))}e.type===this.ruleTypes.STYLE_RULE?t(e):n&&e.type===this.ruleTypes.KEYFRAMES_RULE?n(e):e.type===this.ruleTypes.MIXIN_RULE&&(s=!0);var o=e.rules;if(o&&!s)for(var a,l=0,c=o.length;l<c&&(a=o[l]);l++)this.forEachRule(a,t,n,r)}},applyCss:function(e,t,n,r){var s=this.createScopeStyle(e,t);return this.applyStyle(s,n,r)},applyStyle:function(e,t,n){t=t||document.head;var r=n&&n.nextSibling||t.firstChild;return this.__lastHeadApplyNode=e,t.insertBefore(e,r)},createScopeStyle:function(e,t){var n=document.createElement("style");return t&&n.setAttribute("scope",t),n.textContent=e,n},__lastHeadApplyNode:null,applyStylePlaceHolder:function(e){var t=document.createComment(" Shady DOM styles for "+e+" "),n=this.__lastHeadApplyNode?this.__lastHeadApplyNode.nextSibling:null,r=document.head;return r.insertBefore(t,n||r.firstChild),this.__lastHeadApplyNode=t,t},cssFromModules:function(e,t){for(var n=e.trim().split(" "),r="",s=0;s<n.length;s++)r+=this.cssFromModule(n[s],t);return r},cssFromModule:function(e,t){var n=Polymer.DomModule.import(e);return n&&!n._cssText&&(n._cssText=this.cssFromElement(n)),!n&&t&&console.warn("Could not find style data in module named",e),n&&n._cssText||""},cssFromElement:function(e){for(var t,n="",r=e.content||e,s=Polymer.TreeApi.arrayCopy(r.querySelectorAll(this.MODULE_STYLES_SELECTOR)),i=0;i<s.length;i++)if(t=s[i],"template"===t.localName)t.hasAttribute("preserve-content")||(n+=this.cssFromElement(t));else if("style"===t.localName){var o=t.getAttribute(this.INCLUDE_ATTR);o&&(n+=this.cssFromModules(o,!0)),t=t.__appliedElement||t,t.parentNode.removeChild(t),n+=this.resolveCss(t.textContent,e.ownerDocument)}else t.import&&t.import.body&&(n+=this.resolveCss(t.import.body.textContent,t.import));return n},styleIncludesToTemplate:function(e){for(var t,n=e.content.querySelectorAll("style[include]"),r=0;r<n.length;r++)t=n[r],t.parentNode.insertBefore(this._includesToFragment(t.getAttribute("include")),t)},_includesToFragment:function(e){for(var t=e.trim().split(" "),n=document.createDocumentFragment(),r=0;r<t.length;r++){var s=Polymer.DomModule.import(t[r],"template");s&&this._addStylesToFragment(n,s.content)}return n},_addStylesToFragment:function(e,t){for(var n,r=t.querySelectorAll("style"),s=0;s<r.length;s++){n=r[s];var i=n.getAttribute("include");i&&e.appendChild(this._includesToFragment(i)),n.textContent&&e.appendChild(n.cloneNode(!0))}},isTargetedBuild:function(t){return e.useNativeShadow?"shadow"===t:"shady"===t},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 n=0,r=t,s=e.length;r<s;r++)switch(e[r]){case"(":n++;break;case")":if(0==--n)return r}return-1},processVariableAndFallback:function(e,t){var n=e.indexOf("var(");if(-1===n)return t(e,"","","");var r=this._findMatchingParen(e,n+3),s=e.substring(n+4,r),i=e.substring(0,n),o=this.processVariableAndFallback(e.substring(r+1),t),a=s.indexOf(",");return-1===a?t(i,s.trim(),"",o):t(i,s.substring(0,a).trim(),s.substring(a+1).trim(),o)},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,n={dom:function(e,t,n,r){this._transformDom(e,t||"",n,r)},_transformDom:function(e,t,n,r){e.setAttribute&&this.element(e,t,n,r);for(var s=Polymer.dom(e).childNodes,i=0;i<s.length;i++)this._transformDom(s[i],t,n,r)},element:function(e,t,n,s){if(n)s?e.removeAttribute(r):e.setAttribute(r,t);else if(t)if(e.classList)s?(e.classList.remove(r),e.classList.remove(t)):(e.classList.add(r),e.classList.add(t));else if(e.getAttribute){var i=e.getAttribute(g);s?i&&e.setAttribute(g,i.replace(r,"").replace(t,"")):e.setAttribute(g,(i?i+" ":"")+r+" "+t)}},elementStyles:function(n,r){var s,i=n._styles,o="",a=n.__cssBuild,l=t.useNativeShadow||"shady"===a;if(l){var h=this;s=function(e){e.selector=h._slottedToContent(e.selector),e.selector=e.selector.replace(c,":host > *"),r&&r(e)}}for(var u,f=0,p=i.length;f<p&&(u=i[f]);f++){var _=e.rulesForStyle(u);o+=l?e.toCssText(_,s):this.css(_,n.is,n.extends,r,n._scopeCssViaAttr)+"\n\n"}return o.trim()},css:function(t,n,r,s,i){var o=this._calcHostScope(n,r);n=this._calcElementScope(n,i);var a=this;return e.toCssText(t,function(e){e.isScoped||(a.rule(e,n,o),e.isScoped=!0),s&&s(e,n,o)})},_calcElementScope:function(e,t){return e?t?m+e+y:d+e:""},_calcHostScope:function(e,t){return t?"[is="+e+"]":e},rule:function(e,t,n){this._transformRule(e,this._transformComplexSelector,t,n)},_transformRule:function(e,t,n,r){e.selector=e.transformedSelector=this._transformRuleCss(e,t,n,r)},_transformRuleCss:function(t,n,r,s){var o=t.selector.split(i);if(!e.isKeyframesSelector(t))for(var a,l=0,c=o.length;l<c&&(a=o[l]);l++)o[l]=n.call(this,a,r,s);return o.join(i)},_transformComplexSelector:function(e,t,n){var r=!1,s=!1,a=this;return e=e.trim(),e=this._slottedToContent(e),e=e.replace(c,":host > *"),e=e.replace(P,l+" $1"),e=e.replace(o,function(e,i,o){if(r)o=o.replace(_," ");else{var l=a._transformCompoundSelector(o,i,t,n);r=r||l.stop,s=s||l.hostContext,i=l.combinator,o=l.value}return i+o}),s&&(e=e.replace(f,function(e,t,r,s){return t+r+" "+n+s+i+" "+t+n+r+s})),e},_transformCompoundSelector:function(e,t,n,r){var s=e.search(_),i=!1;e.indexOf(u)>=0?i=!0:e.indexOf(l)>=0?e=this._transformHostSelector(e,r):0!==s&&(e=n?this._transformSimpleSelector(e,n):e),e.indexOf(p)>=0&&(t="");var o;return s>=0&&(e=e.replace(_," "),o=!0),{value:e,combinator:t,stop:o,hostContext:i}},_transformSimpleSelector:function(e,t){var n=e.split(v);return n[0]+=t,n.join(v)},_transformHostSelector:function(e,t){var n=e.match(h),r=n&&n[2].trim()||"";if(r){if(r[0].match(a))return e.replace(h,function(e,n,r){return t+r});return r.split(a)[0]===t?r:S}return 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")},_transformDocumentSelector:function(e){return e.match(_)?this._transformComplexSelector(e,s):this._transformSimpleSelector(e.trim(),s)},_slottedToContent:function(e){return e.replace(E,p+"> $1")},SCOPE_NAME:"style-scope"},r=n.SCOPE_NAME,s=":not(["+r+"]):not(."+r+")",i=",",o=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,a=/[[.:#*]/,l=":host",c=":root",h=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,u=":host-context",f=/(.*)(?::host-context)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))(.*)/,p="::content",_=/::content|::shadow|\/deep\//,d=".",m="["+r+"~=",y="]",v=":",g="class",P=new RegExp("^("+p+")"),S="should_not_match",E=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/g;return n}(),Polymer.StyleExtends=function(){var e=Polymer.StyleUtil;return{hasExtends:function(e){return Boolean(e.match(this.rx.EXTEND))},transform:function(t){var n=e.rulesForStyle(t),r=this;return e.forEachRule(n,function(e){if(r._mapRuleOntoParent(e),e.parent)for(var t;t=r.rx.EXTEND.exec(e.cssText);){var n=t[1],s=r._findExtendor(n,e);s&&r._extendRule(e,s)}e.cssText=e.cssText.replace(r.rx.EXTEND,"")}),e.toCssText(n,function(e){e.selector.match(r.rx.STRIP)&&(e.cssText="")},!0)},_mapRuleOntoParent:function(e){if(e.parent){for(var t,n=e.parent.map||(e.parent.map={}),r=e.selector.split(","),s=0;s<r.length;s++)t=r[s],n[t.trim()]=e;return n}},_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),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";function e(e,t){e=e.trim(),d[e]={properties:t,dependants:{}}}function t(e){return e=e.trim(),d[e]}function n(e,t){var n=p.exec(t);return n&&(t=n[1]?m._getInitialValueForProperty(e):"apply-shim-inherit"),t}function r(e){for(var t,r,s,i,o=e.split(";"),a={},l=0;l<o.length;l++)(s=o[l])&&(i=s.split(":"),i.length>1&&(t=i[0].trim(),r=n(t,i.slice(1).join(":")),a[t]=r));return a}function s(e){var t=m.__currentElementProto,n=t&&t.is;for(var r in e.dependants)r!==n&&(e.dependants[r].__applyShimInvalid=!0)}function i(n,i,o,a){if(o&&c.processVariableAndFallback(o,function(e,n){n&&t(n)&&(a="@apply "+n+";")}),!a)return n;var h=l(a),u=n.slice(0,n.indexOf("--")),f=r(h),p=f,d=t(i),m=d&&d.properties;m?(p=Object.create(m),p=Polymer.Base.mixin(p,f)):e(i,p);var y,v,g=[],P=!1;for(y in p)v=f[y],void 0===v&&(v="initial"),!m||y in m||(P=!0),g.push(i+_+y+": "+v);return P&&s(d),d&&(d.properties=p),o&&(u=n+";"+u),u+g.join("; ")+";"}function o(e,t,n){return"var("+t+",var("+n+"))"}function a(n,r){n=n.replace(f,"");var s=[],i=t(n);if(i||(e(n,{}),i=t(n)),i){var o=m.__currentElementProto;o&&(i.dependants[o.is]=o);var a,l,c;for(a in i.properties)c=r&&r[a],l=[a,": var(",n,_,a],c&&l.push(",",c),l.push(")"),s.push(l.join(""))}return s.join("; ")}function l(e){for(var t;t=h.exec(e);){var n=t[0],s=t[1],i=t.index,o=i+n.indexOf("@apply"),l=i+n.length,c=e.slice(0,o),u=e.slice(l),f=r(c),p=a(s,f);e=[c,p,u].join(""),h.lastIndex=i+p.length}return e}var c=Polymer.StyleUtil,h=c.rx.MIXIN_MATCH,u=c.rx.VAR_ASSIGN,f=/;\s*/m,p=/^\s*(initial)|(inherit)\s*$/,_="_-_",d={},m={_measureElement:null,_map:d,_separator:_,transform:function(e,t){this.__currentElementProto=t,c.forRulesInStyles(e,this._boundFindDefinitions),c.forRulesInStyles(e,this._boundFindApplications),t&&(t.__applyShimInvalid=!1),this.__currentElementProto=null},_findDefinitions:function(e){var t=e.parsedCssText;t=t.replace(/var\(\s*(--[^,]*),\s*(--[^)]*)\)/g,o),t=t.replace(u,i),e.cssText=t,":root"===e.selector&&(e.selector=":host > *")},_findApplications:function(e){e.cssText=l(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,n=Polymer.StyleUtil,r=Polymer.StyleTransformer,s=Polymer.StyleExtends,i=Polymer.ApplyShim,o=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=n.applyStylePlaceHolder(this.is)),this.__cssBuild=n.cssBuildTypeForModule(this.is)},_prepShimStyles:function(){if(this._template){var e=n.isTargetedBuild(this.__cssBuild);if(o.useNativeCSSProperties&&"shadow"===this.__cssBuild&&e)return void(o.preserveStyleIncludes&&n.styleIncludesToTemplate(this._template));this._styles=this._styles||this._collectStyles(),o.useNativeCSSProperties&&!this.__cssBuild&&i.transform(this._styles,this);var s=o.useNativeCSSProperties&&e?this._styles.length&&this._styles[0].textContent.trim():r.elementStyles(this);this._prepStyleProperties(),!this._needsStyleProperties()&&s&&n.applyCss(s,this.is,t?this._template.content:null,this._scopeStyle)}else this._styles=[]},_collectStyles:function(){var e=[],t="",r=this.styleModules;if(r)for(var i,o=0,a=r.length;o<a&&(i=r[o]);o++)t+=n.cssFromModule(i);t+=n.cssFromModule(this.is);var l=this._template&&this._template.parentNode;if(!this._template||l&&l.id.toLowerCase()===this.is||(t+=n.cssFromElement(this._template)),t){var c=document.createElement("style");c.textContent=t,s.hasExtends(c.textContent)&&(t=s.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,n){if(!t){var r=this,s=function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e.getAttribute("class");e.setAttribute("class",r._scopeElementClass(e,t));for(var n,s=e.querySelectorAll("*"),i=0;i<s.length&&(n=s[i]);i++)t=n.getAttribute("class"),n.setAttribute("class",r._scopeElementClass(n,t))}};if(s(e),n){var i=new MutationObserver(function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++)if(t.addedNodes)for(var r=0;r<t.addedNodes.length;r++)s(t.addedNodes[r])});return i.observe(e,{childList:!0,subtree:!0}),i}}}})}(),Polymer.StyleProperties=function(){"use strict";function e(e,t){var n=parseInt(e/32),r=1<<e%32;t[n]=(t[n]||0)|r}var t=Polymer.DomApi.matchesSelector,n=Polymer.StyleUtil,r=Polymer.StyleTransformer,s=navigator.userAgent.match("Trident"),i=Polymer.Settings;return{decorateStyles:function(e,t){var s=this,i={},o=[],a=0,l=r._calcHostScope(t.is,t.extends);n.forRulesInStyles(e,function(e,r){s.decorateRule(e),e.index=a++,s.whenHostOrRootRule(t,e,r,function(r){if(e.parent.type===n.ruleTypes.MEDIA_RULE&&(t.__notStyleScopeCacheable=!0),r.isHost){var s=r.selector.split(" ").some(function(e){return 0===e.indexOf(l)&&e.length!==l.length});t.__notStyleScopeCacheable=t.__notStyleScopeCacheable||s}}),s.collectPropertiesInCssText(e.propertyInfo.cssText,i)},function(e){o.push(e)}),e._keyframes=o;var c=[];for(var h in i)c.push(h);return c},decorateRule:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},n={};return this.collectProperties(e,n)&&(t.properties=n,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t},collectProperties:function(e,t){var n=e.propertyInfo;if(!n){for(var r,s,i,o=this.rx.VAR_ASSIGN,a=e.parsedCssText;r=o.exec(a);)s=(r[2]||r[3]).trim(),"inherit"!==s&&(t[r[1].trim()]=s),i=!0;return i}if(n.properties)return Polymer.Base.mixin(t,n.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 n;n=this.rx.VAR_CONSUMED.exec(e);){var r=n[1];":"!==n[2]&&(t[r]=!0)}},reify:function(e){for(var t,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++)t=n[r],e[t]=this.valueForProperty(e[t],e)},valueForProperty:function(e,t){if(e)if(e.indexOf(";")>=0)e=this.valueForProperties(e,t);else{var r=this,s=function(e,n,s,i){var o=r.valueForProperty(t[n],t);return o&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=r.valueForProperty(t[s]||s,t)||s,e+(o||"")+i};e=n.processVariableAndFallback(e,s)}return e&&e.trim()||""},valueForProperties:function(e,t){for(var n,r,s=e.split(";"),i=0;i<s.length;i++)if(n=s[i]){if(this.rx.MIXIN_MATCH.lastIndex=0,r=this.rx.MIXIN_MATCH.exec(n))n=this.valueForProperty(t[r[1]],t);else{var o=n.indexOf(":");if(-1!==o){var a=n.substring(o);a=a.trim(),a=this.valueForProperty(a,t)||a,n=n.substring(0,o)+a}}s[i]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return s.join(";")},applyProperties:function(e,t){var n="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(n=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=n},applyKeyframeTransforms:function(e,t){var n=e.cssText,r=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=this.rx.ANIMATION_MATCH.test(n)),e.hasAnimations){var s;if(null==e.keyframeNamesToTransform){e.keyframeNamesToTransform=[];for(var i in t)s=t[i],r=s(n),n!==r&&(n=r,e.keyframeNamesToTransform.push(i))}else{for(var o=0;o<e.keyframeNamesToTransform.length;++o)s=t[e.keyframeNamesToTransform[o]],n=s(n);r=n}}e.cssText=r},propertyDataFromStyles:function(r,s){var i={},o=this,a=[];return n.forActiveRulesInStyles(r,function(n){n.propertyInfo||o.decorateRule(n);var r=n.transformedSelector||n.parsedSelector;s&&n.propertyInfo.properties&&r&&t.call(s,r)&&(o.collectProperties(n,i),e(n.index,a))}),{properties:i,key:a}},_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,n,s){if(t.propertyInfo||self.decorateRule(t),t.propertyInfo.properties){var o=e.is?r._calcHostScope(e.is,e.extends):"html",a=t.parsedSelector,l=this._checkRoot(o,a),c=!l&&0===a.indexOf(":host");if("shady"===(e.__cssBuild||n.__cssBuild)&&(l=a===o+" > *."+o||a.indexOf("html")>-1,c=!l&&0===a.indexOf(o)),l||c){var h=o;c&&(i.useNativeShadow&&!t.transformedSelector&&(t.transformedSelector=r._transformRuleCss(t,r._transformComplexSelector,e.is,o)),h=t.transformedSelector||t.parsedSelector),l&&"html"===o&&(h=t.transformedSelector||t.parsedSelector),s({selector:h,isHost:c,isRoot:l})}}},hostAndRootPropertiesForScope:function(e){var r={},s={},i=this;return n.forActiveRulesInStyles(e._styles,function(n,o){i.whenHostOrRootRule(e,n,o,function(o){var a=e._element||e;t.call(a,o.selector)&&(o.isHost?i.collectProperties(n,r):i.collectProperties(n,s))})}),{rootProps:s,hostProps:r}},transformStyles:function(e,t,n){var s=this,o=r._calcHostScope(e.is,e.extends),a=e.extends?"\\"+o.slice(0,-1)+"\\]":o,l=new RegExp(this.rx.HOST_PREFIX+a+this.rx.HOST_SUFFIX),c=this._elementKeyframeTransforms(e,n);return r.elementStyles(e,function(r){s.applyProperties(r,t),i.useNativeShadow||Polymer.StyleUtil.isKeyframesSelector(r)||!r.cssText||(s.applyKeyframeTransforms(r,c),s._scopeSelector(r,l,o,e._scopeCssViaAttr,n))})},_elementKeyframeTransforms:function(e,t){var n=e._styles._keyframes,r={};if(!i.useNativeShadow&&n)for(var s=0,o=n[s];s<n.length;o=n[++s])this._scopeKeyframes(o,t),r[o.keyframesName]=this._keyframesRuleTransformer(o);return r},_keyframesRuleTransformer:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}},_scopeKeyframes:function(e,t){e.keyframesNameRx=new RegExp(e.keyframesName,"g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)},_scopeSelector:function(e,t,n,s,i){e.transformedSelector=e.transformedSelector||e.selector;for(var o,a=e.transformedSelector,l=s?"["+r.SCOPE_NAME+"~="+i+"]":"."+i,c=a.split(","),h=0,u=c.length;h<u&&(o=c[h]);h++)c[h]=o.match(t)?o.replace(n,l):l+" "+o;e.selector=c.join(",")},applyElementScopeSelector:function(e,t,n,s){var i=s?e.getAttribute(r.SCOPE_NAME):e.getAttribute("class")||"",o=n?i.replace(n,t):(i?i+" ":"")+this.XSCOPE_NAME+" "+t;i!==o&&(s?e.setAttribute(r.SCOPE_NAME,o):e.setAttribute("class",o))},applyElementStyle:function(e,t,r,o){var a=o?o.textContent||"":this.transformStyles(e,t,r),l=e._customStyle;return l&&!i.useNativeShadow&&l!==o&&--l._useCount<=0&&l.parentNode&&l.parentNode.removeChild(l),i.useNativeShadow?e._customStyle?(e._customStyle.textContent=a,o=e._customStyle):a&&(o=n.applyCss(a,r,e.root,e._scopeStyle)):o?o.parentNode||(s&&a.indexOf("@media")>-1&&(o.textContent=a),n.applyStyle(o,null,e._scopeStyle)):a&&(o=n.applyCss(a,r,null,e._scopeStyle)),o&&(o._useCount=o._useCount||0,e._customStyle!=o&&o._useCount++,e._customStyle=o),o},mixinCustomStyle:function(e,t){var n;for(var r in t)((n=t[r])||0===n)&&(e[r]=n)},updateNativeStyleProperties:function(e,t){var n=e.__customStyleProperties;if(n)for(var r=0;r<n.length;r++)e.style.removeProperty(n[r]);var s=[];for(var i in t)null!==t[i]&&(e.style.setProperty(i,t[i]),s.push(i));e.__customStyleProperties=s},rx:n.rx,XSCOPE_NAME:"x-scope"}}(),function(){Polymer.StyleCache=function(){this.cache={}},Polymer.StyleCache.prototype={MAX:100,store:function(e,t,n,r){t.keyValues=n,t.styles=r;var s=this.cache[e]=this.cache[e]||[];s.push(t),s.length>this.MAX&&s.shift()},retrieve:function(e,t,n){var r=this.cache[e];if(r)for(var s,i=r.length-1;i>=0;i--)if(s=r[i],n===s.styles&&this._objectsEqual(t,s.keyValues))return s},clear:function(){this.cache={}},_objectsEqual:function(e,t){var n,r;for(var s in e)if(n=e[s],r=t[s],!("object"==typeof n&&n?this._objectsStrictlyEqual(n,r):n===r))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=function(){var e=Polymer.StyleProperties,t=Polymer.StyleCache,n=Polymer.Settings.useNativeCSSProperties;return{_styles:[],_properties:null,customStyle:{},_styleCache:new t,_element:Polymer.DomApi.wrap(document.documentElement),addStyle:function(e){this._styles.push(e),this._properties=null},get _styleProperties(){return this._properties||(e.decorateStyles(this._styles,this),this._styles._scopeStyleProperties=null,this._properties=e.hostAndRootPropertiesForScope(this).rootProps,e.mixinCustomStyle(this._properties,this.customStyle),e.reify(this._properties)),this._properties},hasStyleProperties:function(){return Boolean(this._properties)},_needsStyleProperties:function(){},_computeStyleProperties:function(){return this._styleProperties},updateStyles:function(t){this._properties=null,t&&Polymer.Base.mixin(this.customStyle,t),this._styleCache.clear();for(var r,s=0;s<this._styles.length;s++)r=this._styles[s],r=r.__importElement||r,r._apply()
- ;n&&e.updateNativeStyleProperties(document.documentElement,this.customStyle)}}}(),function(){"use strict";var e=Polymer.Base.serializeValueToAttribute,t=Polymer.StyleProperties,n=Polymer.StyleTransformer,r=Polymer.StyleDefaults,s=Polymer.Settings.useNativeShadow,i=Polymer.Settings.useNativeCSSProperties;Polymer.Base._addFeature({_prepStyleProperties:function(){i||(this._ownStylePropertyNames=this._styles&&this._styles.length?t.decorateStyles(this._styles,this):null)},customStyle:null,getComputedStyleValue:function(e){return i||this._styleProperties||this._computeStyleProperties(),!i&&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(!i&&this._ownStylePropertyNames&&this._ownStylePropertyNames.length)},_validateApplyShim:function(){if(this.__applyShimInvalid){Polymer.ApplyShim.transform(this._styles,this.__proto__);var e=n.elementStyles(this);if(s){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,n=this._findStyleHost();n._styleProperties||n._computeStyleProperties(),n._styleCache||(n._styleCache=new Polymer.StyleCache);var r=t.propertyDataFromStyles(n._styles,this),i=!this.__notStyleScopeCacheable;i&&(r.key.customStyle=this.customStyle,e=n._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=o.retrieve(this.is,this._ownStyleProperties,this._styles));var l=Boolean(e)&&!a,c=this._applyStyleProperties(e);a||(c=c&&s?c.cloneNode(!0):c,e={style:c,_scopeSelector:this._scopeSelector,_styleProperties:this._styleProperties},i&&(r.key.customStyle={},this.mixin(r.key.customStyle,this.customStyle),n._styleCache.store(this.is,e,r.key,this._styles)),l||o.store(this.is,Object.create(e),this._ownStyleProperties,this._styles))},_computeStyleProperties:function(e){var n=this._findStyleHost();n._styleProperties||n._computeStyleProperties();var r=Object.create(n._styleProperties),s=t.hostAndRootPropertiesForScope(this);this.mixin(r,s.hostProps),e=e||t.propertyDataFromStyles(n._styles,this).properties,this.mixin(r,e),this.mixin(r,s.rootProps),t.mixinCustomStyle(r,this.customStyle),t.reify(r),this._styleProperties=r},_computeOwnStyleProperties:function(){for(var e,t={},n=0;n<this._ownStylePropertyNames.length;n++)e=this._ownStylePropertyNames[n],t[e]=this._styleProperties[e];this._ownStyleProperties=t},_scopeCount:0,_applyStyleProperties:function(e){var n=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 s||t.applyElementScopeSelector(this,this._scopeSelector,n,this._scopeCssViaAttr),r},serializeValueToAttribute:function(t,n,r){if(r=r||this,"class"===n&&!s){var i=r===this?this.domHost||this.dataHost:this;i&&(t=i._scopeElementClass(r,t))}r=this.shadyRoot&&this.shadyRoot._hasDistributed?Polymer.dom(r):r,e.call(this,t,n,r)},_scopeElementClass:function(e,t){return s||this._scopeCssViaAttr||(t=(t?t+" ":"")+a+" "+this.is+(e._scopeSelector?" "+l+" "+e._scopeSelector:"")),t},updateStyles:function(e){e&&this.mixin(this.customStyle,e),i?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,n=Polymer.dom(e)._query(function(e){return e.shadyRoot||e.shadowRoot}),r=0,s=n.length;r<s&&(t=n[r]);r++)t.updateStyles&&t.updateStyles()}}),Polymer.updateStyles=function(e){r.updateStyles(e),Polymer.Base._updateRootStyles(document)};var o=new Polymer.StyleCache;Polymer.customStyleCache=o;var a=n.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,n=Polymer.StyleUtil,r=Polymer.CssParse,s=Polymer.StyleDefaults,i=Polymer.StyleTransformer,o=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=n.getCssBuildType(this),this.__appliedElement!==this&&(this.__appliedElement.__cssBuild=this.__cssBuild),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=s.hasStyleProperties(),s.addStyle(e)),e.textContent||this.include)this._apply(!0);else{var t=this,n=new MutationObserver(function(){n.disconnect(),t._apply(!0)});n.observe(e,{childList:!0})}}},_updateStyles:function(){Polymer.updateStyles()},_apply:function(e){var t=this.__appliedElement;if(this.include&&(t.textContent=n.cssFromModules(this.include,!0)+t.textContent),t.textContent){var r=this.__cssBuild,s=n.isTargetedBuild(r);if(!l.useNativeCSSProperties||!s){var a=n.rulesForStyle(t);if(s||(n.forEachRule(a,function(e){i.documentRule(e)}),l.useNativeCSSProperties&&!r&&o.transform([t])),l.useNativeCSSProperties)t.textContent=n.toCssText(a);else{var c=this,h=function(){c._flushCustomProperties()};e?Polymer.RenderStatus.whenReady(h):h()}}}},_flushCustomProperties:function(){this.__needsUpdateStyles?(this.__needsUpdateStyles=!1,e=a(e,this._updateStyles)):this._applyCustomProperties()},_applyCustomProperties:function(){var e=this.__appliedElement;this._computeStyleProperties();var s=this._styleProperties,i=n.rulesForStyle(e);i&&(e.textContent=n.toCssText(i,function(e){var n=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(n=r.removeCustomPropAssignment(n),e.cssText=t.valueForProperties(n,s))}))}})}(),Polymer.Templatizer={properties:{__hideTemplateChildren__:{observer:"_showHideChildren"}},_instanceProps:Polymer.nob,_parentPropPrefix:"_parent_",templatize:function(e){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 n=this._constructorImpl,r=function(e,t){n.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,n=0;n<t.length;n++){var r=t[n];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,n,r){r&&r.__hideTemplateChildren__&&"textContent"==e&&(e="__polymerTextContent__"),this.__setPropertyOrig(e,t,n,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 n in t)e._addPropertyEffect(n,"function",this._createHostPropEffector(n));for(n in this._instanceProps)e._addPropertyEffect(n,"function",this._createInstancePropEffector(n))},_customPrepAnnotations:function(e,t){e._template=t;var n=t._content;if(!n._notes){var r=e._rootDataHost;r&&(Polymer.Annotations.prepElement=function(){r._prepElement()}),n._notes=Polymer.Annotations.parseAnnotations(t),Polymer.Annotations.prepElement=null,this._processAnnotations(n._notes)}e._notes=n._notes,e._parentProps=n._parentProps},_prepParentProperties:function(e,t){var n=this._parentProps=e._parentProps;if(this._forwardParentProp&&n){var r,s=e._parentPropProto;if(!s){for(r in this._instanceProps)delete n[r];s=e._parentPropProto=Object.create(null),t!=this&&(Polymer.Bind.prepareModel(s),Polymer.Base.prepareModelNotifyPath(s));for(r in n){var i=this._parentPropPrefix+r,o=[{kind:"function",effect:this._createForwardPropEffector(r),fn:Polymer.Bind._functionEffect},{kind:"notify",fn:Polymer.Bind._notifyEffect,effect:{event:Polymer.CaseMap.camelToDashCase(i)+"-changed"}}];s._propertyEffects=s._propertyEffects||{},s._propertyEffects[i]=o,Polymer.Bind._createAccessors(s,i,o)}}var a=this;t!=this&&(Polymer.Bind.prepareInstance(t),t._forwardParentProp=function(e,t){a._forwardParentProp(e,t)}),this._extendTemplate(t,s),t._pathEffector=function(e,t,n){return a._pathEffectorImpl(e,t,n)}}},_createForwardPropEffector:function(e){return function(t,n){this._forwardParentProp(e,n)}},_createHostPropEffector:function(e){var t=this._parentPropPrefix;return function(n,r){this.dataHost._templatized[t+e]=r}},_createInstancePropEffector:function(e){return function(t,n,r,s){s||this.dataHost._forwardInstanceProp(this,e,n)}},_extendTemplate:function(e,t){var n=Object.getOwnPropertyNames(t);t._propertySetter&&(e._propertySetter=t._propertySetter);for(var r,s=0;s<n.length&&(r=n[s]);s++){var i=e[r];if(i&&"_propertyEffects"==r){var o=Polymer.Base.mixin({},i);e._propertyEffects=Polymer.Base.mixin(o,t._propertyEffects)}else{var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a),void 0!==i&&e._propertySetter(r,i)}}},_showHideChildren:function(e){},_forwardInstancePath:function(e,t,n){},_forwardInstanceProp:function(e,t,n){},_notifyPathUpImpl:function(e,t){var n=this.dataHost,r=Polymer.Path.root(e);n._forwardInstancePath.call(n,this,e,t),r in n._parentProps&&n._templatized._notifyPath(n._parentPropPrefix+e,t)},_pathEffectorImpl:function(e,t,n){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,n)},_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 n=[],r=this.root.firstChild;r;r=r.nextSibling)n.push(r),r._templateInstance=this;this._children=n,t.__hideTemplateChildren__&&this._showHideChildren(!0),this._tryReady()},_listenImpl:function(e,t,n){var r=this,s=this._rootDataHost,i=s._createEventHandler(e,t,n),o=function(e){e.model=r,i(e)};s._listen(e,t,o)},_scopeElementClassImpl:function(e,t){var n=this._rootDataHost;return n?n._scopeElementClass(e,t):t},stamp:function(e){if(e=e||{},this._parentProps){var t=this._templatized;for(var n in this._parentProps)void 0===e[n]&&(e[n]=t[this._parentPropPrefix+n])}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={},n=this.store,r=0;r<n.length;r++){var s=n[r];s&&"object"==typeof s?e.set(s,r):t[s]=r}},add:function(e){var t=this.store.push(e)-1;return e&&"object"==typeof 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"==typeof 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(void 0!=(t=e&&"object"==typeof 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 n=this.store[e];n&&this._removeFromMap(n),t&&"object"==typeof 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 n in t)e.push(t[n]);return e},_applySplices:function(e){for(var t,n,r={},s=0;s<e.length&&(n=e[s]);s++){n.addedKeys=[];for(var i=0;i<n.removed.length;i++)t=this.getKey(n.removed[i]),r[t]=r[t]?null:-1;for(i=0;i<n.addedCount;i++){var o=this.userArray[n.index+i];t=this.getKey(o),t=void 0===t?this.add(o):t,r[t]=r[t]?null:1,n.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 n=Polymer._collections.get(e);return n?n._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){this.__isDetached=!1;var e,t=Polymer.dom(this).parentNode;t.localName==this.is?(e=t,t=Polymer.dom(t).parentNode):e=this;for(var n=Polymer.dom(t),r=0;r<this._instances.length;r++)this._attachInstance(r,n,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,n=0;n<t.length;n++)if(0===e.indexOf(t[n]))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(){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 n=this._instances[t];n.isPlaceholder&&t<this._limit?n=this._insertInstance(t,n.__key__):!n.isPlaceholder&&t>=this._limit&&(n=this._downgradeInstance(t,n.__key__)),e[n.__key__]=t,n.isPlaceholder||n.__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 n=this.items;if(n)for(var r=0;r<n.length;r++)e.push(t.getKey(n[r]))}var s=this;for(this._filterFn&&(e=e.filter(function(e){return s._filterFn(t.getItem(e))})),this._sortFn&&e.sort(function(e,n){return s._sortFn(t.getItem(e),t.getItem(n))}),r=0;r<e.length;r++){var i=e[r],o=this._instances[r];o?(o.__key__=i,!o.isPlaceholder&&r<this._limit&&o.__setProperty(this.as,t.getItem(i),!0)):r<this._limit?this._insertInstance(r,i):this._insertPlaceholder(r,i)}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,n,r=this.collection,s={},i=0;i<e.length&&(n=e[i]);i++){for(var o=0;o<n.removed.length;o++)t=n.removed[o],s[t]=s[t]?null:-1;for(o=0;o<n.added.length;o++)t=n.added[o],s[t]=s[t]?null:1}var a=[],l=[];for(t in s)-1===s[t]&&a.push(this._keyToInstIdx[t]),1===s[t]&&l.push(t);if(a.length)for(a.sort(this._numericSort),i=a.length-1;i>=0;i--){var c=a[i];void 0!==c&&this._detachAndRemoveInstance(c)}var h=this;if(l.length){this._filterFn&&(l=l.filter(function(e){return h._filterFn(r.getItem(e))})),l.sort(function(e,t){return h._sortFn(r.getItem(e),r.getItem(t))});var u=0;for(i=0;i<l.length;i++)u=this._insertRowUserSort(u,l[i])}},_insertRowUserSort:function(e,t){for(var n=this.collection,r=n.getItem(t),s=this._instances.length-1,i=-1;e<=s;){var o=e+s>>1,a=this._instances[o].__key__,l=this._sortFn(n.getItem(a),r);if(l<0)e=o+1;else{if(!(l>0)){i=o;break}s=o-1}}return i<0&&(i=s+1),this._insertPlaceholder(i,t),i},_applySplicesArrayOrder:function(e){for(var t,n=0;n<e.length&&(t=e[n]);n++){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 n=0;n<t._children.length;n++){var r=t._children[n];Polymer.dom(t.root).appendChild(r)}return t}},_attachInstance:function(e,t,n){var r=this._instances[e];r.isPlaceholder||t.insertBefore(r.root,n)},_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 n={__key__:t};return n[this.as]=this.collection.getItem(t),n[this.indexAs]=e,this.stamp(n)},_insertInstance:function(e,t){var n=this._pool.pop();n?(n.__setProperty(this.as,this.collection.getItem(t),!0),n.__setProperty("__key__",t,!0)):n=this._stampInstance(e,t);var r=this._instances[e+1],s=r&&!r.isPlaceholder?r._children[0]:this,i=Polymer.dom(this).parentNode;return i.localName==this.is&&(s==this&&(s=i),i=Polymer.dom(i).parentNode),Polymer.dom(i).insertBefore(n.root,s),this._instances[e]=n,n},_downgradeInstance:function(e,t){var n=this._detachInstance(e);return n&&this._pool.push(n),n={isPlaceholder:!0,__key__:t},this._instances[e]=n,n},_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,n){if(t==this.as){var r;r=this._sortFn||this._filterFn?this.items.indexOf(this.collection.getItem(e.__key__)):e[this.indexAs],this.set("items."+r,n)}},_forwardInstancePath:function(e,t,n){0===t.indexOf(this.as+".")&&this._notifyPath("items."+e.__key__+"."+t.slice(this.as.length+1),n)},_forwardParentProp:function(e,t){for(var n,r=this._instances,s=0;s<r.length&&(n=r[s]);s++)n.isPlaceholder||n.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){for(var n,r=this._instances,s=0;s<r.length&&(n=r[s]);s++)n.isPlaceholder||n._notifyPath(e,t,!0)},_forwardItemPath:function(e,t){if(this._keyToInstIdx){var n=e.indexOf("."),r=e.substring(0,n<0?e.length:n),s=this._keyToInstIdx[r],i=this._instances[s];i&&!i.isPlaceholder&&(n>=0?(e=this.as+"."+e.substring(n+1),i._notifyPath(e,t,!0)):i.__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),n=t.getKey(e);if(this.multi)if(this.isSelected(e))this.toggle&&this.deselect(e);else{this.push("selected",e);var r=this._selectedColl.getKey(e);this.linkPaths("selected."+r,"items."+n)}else this.toggle&&e==this.selected?this.deselect():(this.selected=e,this.selectedItem=e,this.linkPaths("selected","items."+n),this.linkPaths("selectedItem","items."+n))}}),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)},_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 n=this._instance._children;if(n&&n.length){var r=Polymer.dom(e).previousSibling;if(r!==n[n.length-1])for(var s,i=0;i<n.length&&(s=n[i]);i++)Polymer.dom(t).insertBefore(s,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)for(var t,n=Polymer.dom(Polymer.dom(e[0]).parentNode),r=0;r<e.length&&(t=e[r]);r++)n.removeChild(t);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(){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 n=this._setupConfigure;this._setupConfigure=function(){n.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")}})</script><dom-module id="q-svg-helper" assetpath="../components/q-svg-helper/"><style>:host {
- overflow: hidden;
- position: relative; }
- :host #svg-defs {
- position: absolute; }
- :host #primary-gradient stop:first-child {
- stop-color: var(--q-primary-pressed-bg-color, grey); }
- :host #primary-gradient stop:last-child {
- stop-color: var(--q-primary-bg-color, grey); }
- :host #secondary-gradient stop:first-child {
- stop-color: var(--q-secondary-pressed-bg-color, grey); }
- :host #secondary-gradient stop:last-child {
- stop-color: var(--q-secondary-bg-color, grey); }
- :host #tertiary-gradient stop:first-child {
- stop-color: var(--q-tertiary-pressed-bg-color, grey); }
- :host #tertiary-gradient stop:last-child {
- stop-color: var(--q-tertiary-bg-color, grey); }</style><template><svg id="svg-defs" viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="primary-gradient" x1="100%" x2="0%" y1="0%" y2="0%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient><linearGradient id="secondary-gradient" x1="100%" x2="0%" y1="0%" y2="0%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient><linearGradient id="tertiary-gradient" x1="100%" x2="0%" y1="0%" y2="0%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient><filter id="greyscale"><feColorMatrix type="matrix" values="0.3333 0.3333 0.3333 0 0
- 0.3333 0.3333 0.3333 0 0
- 0.3333 0.3333 0.3333 0 0
- 0 0 0 1 0"></feColorMatrix></filter><filter id="hovered"><feComponentTransfer><feFuncR type="linear" slope="1.5"></feFuncR><feFuncG type="linear" slope="1.5"></feFuncG><feFuncB type="linear" slope="1.5"></feFuncB></feComponentTransfer></filter><filter id="clicked"><feComponentTransfer><feFuncR type="linear" slope="0.5"></feFuncR><feFuncG type="linear" slope="0.5"></feFuncG><feFuncB type="linear" slope="0.5"></feFuncB></feComponentTransfer></filter></defs></svg><content></content></template><script>!function(){Polymer({is:"q-svg-helper",attached:function(){}})}()</script></dom-module><dom-module id="q-avatar" assetpath="../components/q-avatar/"><template><style>:host {
- @apply(--no-select);
- vertical-align: middle;
- display: inline-block;
- line-height: 0;
- @apply --q-avatar;
- }
- :host svg,
- :host img {
- margin: 0;
- padding: 0;
- border: none;
- }
- :host([size="xl"]) svg,
- :host([size="xl"]) img {
- width: var(--q-avatar-width-xl, 125px);
- height: var(--q-avatar-height-xl, 125px);
- }
- :host([size="lg"]) svg,
- :host([size="lg"]) img {
- width: var(--q-avatar-width-lg, 100px);
- height: var(--q-avatar-height-lg, 100px);
- }
- :host([size="md"]) svg,
- :host([size="md"]) img {
- width: var(--q-avatar-width-md, 75px);
- height: var(--q-avatar-height-md, 75px);
- }
- :host([size="sm"]) svg,
- :host([size="sm"]) img {
- width: var(--q-avatar-width-sm, 50px);
- height: var(--q-avatar-height-sm, 50px);
- }
- :host([size="xs"]) svg,
- :host([size="xs"]) img {
- width: var(--q-avatar-width-xs, 30px);
- height: var(--q-avatar-height-xs, 30px);
- }
- /* Types */
- :host([type="rioter"]) #svg-shape-border,
- :host([type="rioter"]) #svg-shape-border1,
- :host([type="rioter"]) #svg-shape-border2 {
- fill: #e64c3b;
- }</style><template id="templateSquare" is="dom-if" if="{{isShapeSquare}}"><q-svg-helper><svg id="image-fill" class="avatar" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id$="{{patternId}}" x="0" y="0" height="100" width="100" patternUnits="userSpaceOnUse"><image height="100" width="100" xlink:href="#dummy" xlink:href$="{{src}}"></image></pattern></defs><rect id="svg-shape" width="100" height="100" fill$="url('{{fillUrl}}')"><path id="svg-shape-border" d="M 0,100 L 5,100 L 5,0 L 0,0 Z" fill="transparent"></path></rect></svg></q-svg-helper></template><template id="templateHex" is="dom-if" if="{{isShapeHex}}"><q-svg-helper><svg id="image-fill" class="avatar" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id$="{{patternId}}" x="0" y="0" height="100" width="100" patternUnits="userSpaceOnUse"><image height="100" width="100" xlink:href="#dummy" xlink:href$="{{src}}"></image></pattern></defs><path id="svg-shape" d$="{{hexPath}}" fill$="url('{{fillUrl}}')"></path><path id="svg-shape-border1" d$="{{hexPathBorder1}}" fill="transparent"></path><path id="svg-shape-border2" d$="{{hexPathBorder2}}" fill="transparent"></path></svg></q-svg-helper></template><template id="templateCircle" is="dom-if" if="{{isShapeCircle}}"><q-svg-helper><svg id="image-fill" class="avatar" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id$="{{patternId}}" x="0" y="0" height="100" width="100" patternUnits="userSpaceOnUse"><image height="100" width="100" xlink:href="#dummy" xlink:href$="{{src}}"></image></pattern></defs><circle id="svg-shape" cx="50" cy="50" r="50" fill$="url('{{fillUrl}}')"><path id="svg-shape-border" d="M 50, 50 m -28.6788,40.9576 A 50,50 0 0,0 78.6788,90.9576" fill="transparent"></path></circle></svg></q-svg-helper></template></template><script>!function(){var t=0;Polymer({is:"q-avatar",properties:{size:{type:String,value:"md",reflectToAttribute:!0},shape:{type:String,value:"square",reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},src:{type:String,value:""},patternId:{type:String},hexPath:{type:String},hexPathBorder1:{type:String},hexPathBorder2:{type:String},fillUrl:{type:String}},_getCoords:function(t,e){return e<0&&(e+=360),[t*Math.cos(e*Math.PI/180)+50,t*Math.sin(e*Math.PI/180)+50]},ready:function(){this.id="q-avatar-"+ ++t,this.patternId="q-avatar-"+this.id+"-pattern",this.fillUrl=location.href+"#"+this.patternId},attached:function(){this["isShape"+this.shape.charAt(0).toUpperCase()+this.shape.slice(1).toLowerCase()]=!0;var t=4*Math.cos(30*Math.PI/180),e=4*Math.sin(30*Math.PI/180),a=50-e,r=Math.sqrt(Math.pow(t,2)+Math.pow(a,2)),h=2*Math.asin(t/r)*180/Math.PI,i=60-h,s=90+h/2,o=this._getCoords(r,s);this.hexPath="M "+o[0]+","+o[1],this.hexPathBorder1="M "+o[0]+","+(o[1]-.5)+" L "+o[0]+","+o[1],this.hexPathBorder2="M ";for(var n=o[0]+","+o[1],p=0;p<6;p++){s-=h;var d=this._getCoords(r,s);s-=i;var l=this._getCoords(r,s);this.hexPath+=" A 8,8 0 0,0 "+d[0]+","+d[1]+" L "+l[0]+","+l[1],p>=0&&p<=1&&(0===p?(this.hexPathBorder1+=" A 8,8 0 0,0 "+d[0]+","+d[1]+" L "+l[0]+","+l[1],n+=" A 8,8 0 0,0 "+d[0]+","+d[1]+" L "+d[0]+","+(d[1]-.5)):this.hexPathBorder1+=" A 8,8 0 0,0 "+d[0]+","+d[1]+" L "+d[0]+","+(d[1]-.5)+" Z"),p>=4&&p<=5&&(this.hexPathBorder2+=4===p?l[0]+","+(l[1]-.5)+" L "+l[0]+","+l[1]:" A 8,8 0 0,0 "+d[0]+","+d[1]+" L "+n+" Z")}}})}()</script></dom-module><script>Polymer.QuantumCoreCacheManagerClass=function(){this._data={},this._callbacks={}},Polymer.QuantumCoreCacheManagerClass.prototype={get:function(t,a){return a=a||null,this._data.hasOwnProperty(t)?this._data[t]:a},set:function(t,a){var s=!1;this._data.hasOwnProperty(t)||(s=!0),this._data[t]=a,s&&this.notifyExists(t)},delete:function(t){this._data[t]=null},exists:function(t){return this._data.hasOwnProperty(t)},onExists:function(t,a){var s=this.get(t);if(null!==s)return void a(s);this._callbacks.hasOwnProperty(t)||(this._callbacks[t]=[]),this._callbacks[t].push(a)},notifyExists:function(t){var a,s,n=this.get(t);if(this._callbacks.hasOwnProperty(t)){for(a=this._callbacks[t],s=0;s<a.length;++s)a[s](n);this._callbacks[t]=[]}}},Polymer.QuantumCoreCacheManager=new Polymer.QuantumCoreCacheManagerClass</script><script>Polymer.QuantumCoreRequestManagerClass=function(){this._cache=Polymer.QuantumCoreCacheManager},Polymer.QuantumCoreRequestManagerClass.prototype={send:function(e){var a,r,s=this._cache;if(e=e||{},e.method=e.method||"get",e.callback=e.callback||function(){},e.responseType=e.responseType||"json",e.cache=e.cache||!1,!e.hasOwnProperty("url"))throw"No url provided";if(e.cache){if(a="request/"+e.url,r="request/sent/"+e.url,s.onExists(a,e.callback),!0===s.get(r))return;s.set(r,!0)}var t=e.responseType;"json"===t&&(t="text");var n=new XMLHttpRequest;n.addEventListener("load",function(){var r;if("json"===e.responseType)try{r=JSON.parse(n.responseText)}catch(a){r=null,e.cache=!1}else r=n.response;e.cache?s.set(a,r):e.callback(r)}),n.open(e.method,e.url),n.responseType=t,n.send()}},Polymer.QuantumCoreRequestManager=new Polymer.QuantumCoreRequestManagerClass</script><script>!function(){Polymer.QuantumCoreAvatarLoadBehavior={properties:{name:{type:String,value:"",observer:"_nameChanged"},_cacheManager:{type:Object,value:Polymer.QuantumCoreCacheManager},_requestManager:{type:Object,value:Polymer.QuantumCoreRequestManager}},attached:function(){this._nameChanged()},getApiVersion:function(a){var e=this._cacheManager,r=e.get("avatar/api/version");if(r)return void a(r);e.onExists("avatar/api/version",a),!0!==e.get("avatar/api/version/loading")&&(e.set("avatar/api/version/loading",!0),this._requestManager.send({url:"https://ddragon.leagueoflegends.com/api/versions.json",responseType:"json",cache:!0,callback:function(a){if(!e.get("avatar/api/version"))for(var r=0;r<a.length;++r)if(7===parseInt(a[r].substring(0,1),10)){e.set("avatar/api/version",a[r]),e.set("avatar/api/version/loading",!1);break}}}))},simplifyName:function(a){return a.replace(/[^\w]/g,"").toLowerCase()}}}()</script><dom-module id="q-avatar-champion" assetpath="../components/q-avatar/"><template><style>:host {
- display: inline-block;
- @apply --q-avatar-champion;
- }
- :host q-avatar {
- @apply --q-avatar-champion-avatar;
- }</style><q-avatar id="avatar" size$="[[size]]" shape$="[[shape]]" disabled$="[[disabled]]"></q-avatar></template><script>Polymer({is:"q-avatar-champion",behaviors:[Polymer.QuantumCoreAvatarLoadBehavior],_nameChanged:function(){if(this.isAttached){var a=this._cacheManager,t=this._requestManager,e=this.$.avatar,n=this.name;this.getApiVersion(function(i){a.onExists("avatar/champion/data",function(a){var t=a[n];e.src="http://ddragon.leagueoflegends.com/cdn/"+i+"/img/champion/"+t}),!0!==a.get("avatar/champion/data/requested")&&(a.set("avatar/champion/data/requested",!0),t.send({url:"http://ddragon.leagueoflegends.com/cdn/"+i+"/data/en_US/champion.json",cache:!0,callback:function(t){var e,n,i={};for(n in t.data)t.data.hasOwnProperty(n)&&(e=t.data[n],i[e.name]=e.image.full);a.set("avatar/champion/data",i)}}))})}}})</script></dom-module><dom-module id="q-divider" assetpath="../components/q-divider/"><template><style>:host {
- display: block;
- width: 100%;
- height: 1px;
- background-color: #bec5c5;
- @apply (--q-divider); }</style></template><script>Polymer({is:"q-divider",properties:{}})</script></dom-module><dom-module id="q-breadcrumbs" assetpath="../components/q-breadcrumbs/"><template><style>:host {
- display: block;
- }
- :host #content ::content a,
- :host #content ::content p,
- :host #content ::content q-icon {
- display: inline-block;
- vertical-align: middle;
- }
- :host #content ::content a,
- :host #content ::content p {
- white-space: nowrap;
- }
- :host #content ::content a {
- @apply --q-breadcrumbs-link;
- }
- :host #content ::content a:hover {
- @apply --q-breadcrumbs-link-hover;
- }
- :host #content ::content p {
- margin-top: 0;
- margin-bottom: 0;
- @apply --q-breadcrumbs-paragraph;
- }
- :host #content ::content q-icon {
- @apply --q-breadcrumbs-icon;
- }
- :host q-divider {
- margin-top: 5px;
- @apply --q-breadcrumbs-divider;
- }</style><div id="content"><content select="p,a,q-icon"></content></div><q-divider></q-divider></template><script>Polymer({is:"q-breadcrumbs"})</script></dom-module><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-grow: {
- -ms-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- };
- --layout-flex-none: {
- -ms-flex: none;
- -webkit-flex: none;
- flex: none;
- };
- /* layout vertical item alignment */
- --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-stretch: {
- -ms-flex-align: stretch;
- -webkit-align-items: stretch;
- align-items: stretch;
- };
- --layout-baseline: {
- -ms-flex-align: baseline;
- -webkit-align-items: baseline;
- align-items: baseline;
- };
- /* layout horizontal item alignment */
- --layout-start-justified: {
- -ms-flex-pack: start;
- -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);
- };
- }</style><script>Polymer.QuantumCoreControlStateBehavior={properties:{focused:{readOnly:!0,type:Boolean,value:!1,notify:!0,observer:"_focusedChanged",reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){if(e.target===this)this._setFocused("focus"===e.type);else if(!this.shadowRoot){var t=Polymer.dom(e).localTarget;this.isLightDescendant(t)||this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})}},_focusedChanged:function(){},_disabledChanged:function(e){this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.tabIndex,this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(this.tabIndex=this._oldTabIndex)}}</script><dom-module id="q-button" assetpath="../components/q-button/"><template><style>:host {
- @apply --layout-inline;
- @apply --no-select;
- @apply --q-default-transition-all;
- @apply --q-font-button;
- white-space: nowrap;
- cursor: pointer;
- color: #000;
- background-color: #eee;
- padding: 0.5em 0.8em;
- z-index: 0;
- @apply --q-button;
- }
- :host(:focus) {
- outline: 0;
- @apply --q-button-focus;
- }
- :host #content {
- @apply --layout;
- @apply --layout-center;
- @apply --layout-justified;
- width: 100%;
- }
- :host(:hover) {
- color: var(--q-button-hover-color, #000);
- background-color: var(--q-button-hover-bg-color, #ddd);
- @apply --q-button-hover;
- }
- :host(:active) {
- color: var(--q-button-pressed-color, #000);
- background-color: var(--q-button-pressed-bg-color, #ccc);
- @apply --q-button-pressed;
- }
- :host([disabled]) {
- pointer-events: none;
- color: var(--q-button-disabled-color, #000);
- background-color: var(--q-button-disabled-bg-color, #ccc);
- @apply --q-button-disabled;
- }
- :host([priority="primary"]) {
- color: var(--q-button-primary-color);
- background-color: var(--q-button-primary-bg-color);
- @apply --q-button-primary;
- }
- :host([priority="primary"]:hover) {
- @apply --q-button-primary-hover;
- }
- :host([priority="primary"]:active) {
- @apply --q-button-primary-pressed;
- }
- :host([priority="secondary"]) {
- color: var(--q-button-primary-color);
- background-color: var(--q-button-primary-bg-color);
- @apply --q-button-secondary;
- }
- :host([priority="secondary"]:hover) {
- @apply --q-button-secondary-hover;
- }
- :host([priority="secondary"]:active) {
- @apply --q-button-secondary-pressed;
- }
- :host([priority="tertiary"]) {
- color: var(--q-button-primary-color);
- background-color: var(--q-button-primary-bg-color);
- @apply --q-button-tertiary;
- }
- :host([priority="tertiary"]:hover) {
- @apply --q-button-tertiary-hover;
- }
- :host([priority="tertiary"]:active) {
- @apply --q-button-tertiary-pressed;
- }
- :host([size="xs"]) {
- padding: 3px 12px;
- @apply --q-button-xs;
- }
- :host([size="sm"]) {
- padding: 6px 18px;
- @apply --q-button-sm;
- }
- :host([size="md"]) {
- padding: 9px 26px;
- @apply --q-button-md;
- }
- :host([size="lg"]) {
- padding: 14px 38px;
- @apply --q-button-lg;
- }
- :host([size="xl"]) {
- padding: 20px 55px;
- @apply --q-button-xl;
- }</style><div id="content"><content></content></div></template><script>Polymer({is:"q-button",behaviors:[Polymer.QuantumCoreControlStateBehavior],properties:{priority:String,disabled:Boolean,outlined:Boolean,size:{type:String,value:"md",reflectToAttribute:!0},state:String,type:String},hostAttributes:{role:"button",tabIndex:0},listeners:{tap:"_onTap"},_onTap:function(e){if(!this.disabled){this.fire("pressed");for(var t=this.parentNode,i=null;t;){if("FORM"===t.tagName){i=t;break}t=t.parentNode}if(i)if("submit"===this.type)if(document.createEvent){var n=document.createEvent("HTMLEvents");n.initEvent("submit",!0,!0),i.dispatchEvent(n)}else{var n=document.createEventObject();n.eventType="submit",i.fireEvent("onsubmit",n)}else"reset"===this.type&&i.reset()}},_focusBlurHandler:function(){Polymer.QuantumCoreControlStateBehavior._focusedChanged.call(this,event),this.fire("q-focused-changed",{value:this.focused})}})</script></dom-module><dom-module id="q-card-nav" assetpath="../components/q-card-nav/"><template><style>:host {
- display: block; }
- :host #links ::content a {
- display: inline-block;
- /* TODO: Remove these design properties once light/dark matter are done. */ }
- :host #links ::content a q-stacked-card {
- padding: 30px; }
- :host #links ::content a q-stacked-card q-subtext {
- margin-bottom: 0; }
- :host[orientation='vertical'] #links {
- @apply (--layout-vertical); }
- :host[orientation='vertical'] #links ::content a {
- @apply (--layout-horizontal);
- @apply (--layout-flex-grow);
- margin-top: var(--q-card-spacing, 20px); }
- :host[orientation='vertical'] #links ::content a:first-child {
- margin-top: 0; }
- :host[orientation='vertical'] #links ::content a q-stacked-card {
- @apply (--layout-vertical);
- @apply (--layout-center-justified);
- @apply (--layout-flex-grow); }
- :host[orientation='horizontal'] #links {
- @apply (--layout-horizontal);
- justify-content: space-between; }
- :host[orientation='horizontal'] #links ::content a {
- @apply (--layout-horizontal);
- margin-left: var(--q-card-spacing, 20px); }
- :host[orientation='horizontal'] #links ::content a:first-child {
- margin-left: 0; }
- :host[orientation='horizontal'] #links ::content a q-stacked-card {
- @apply (--layout-vertical);
- @apply (--layout-center-justified);
- @apply (--layout-flex-grow); }</style><div id="links"><content select="a"></content></div></template><script>Polymer({is:"q-card-nav",properties:{orientation:{type:String,value:"vertical",reflectToAttribute:!0}}})</script></dom-module><script src="../components/q-core-js/q-core.js"></script><script>!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.addResizeEvent=t()}(window.qcore,function(){function e(e,t){var n=Object.prototype.toString.call(e),i="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements,o=0,s=e.length;if(i)for(;o<s;o++)t(e[o]);else t(e)}if("undefined"==typeof window)return null;var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},n=function(i){function o(){var e=[];this.add=function(t){e.push(t)};var t,n;this.call=function(){for(t=0,n=e.length;t<n;t++)e[t].call()},this.remove=function(i){var o=[];for(t=0,n=e.length;t<n;t++)e[t]!==i&&o.push(e[t]);e=o},this.length=function(){return e.length}}function s(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}function r(e){var n=function(){var t=document.createEvent("Event");t.initEvent("resize",!0,!0),e.dispatchEvent(t)};if(e.resizedAttached){if(e.resizedAttached)return void e.resizedAttached.add(n)}else e.resizedAttached=new o,e.resizedAttached.add(n);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var i="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",r="position: absolute; left: 0; top: 0; transition: 0s;";e.resizeSensor.style.cssText=i,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+i+'"><div style="'+r+'"></div></div><div class="resize-sensor-shrink" style="'+i+'"><div style="'+r+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor),"static"==s(e,"position")&&(e.style.position="relative");var d,c,l,a,f=e.resizeSensor.childNodes[0],u=f.childNodes[0],h=e.resizeSensor.childNodes[1],v=e.offsetWidth,p=e.offsetHeight,z=function(){u.style.width="100000px",u.style.height="100000px",f.scrollLeft=1e5,f.scrollTop=1e5,h.scrollLeft=1e5,h.scrollTop=1e5};z();var y=function(){c=0,d&&(v=l,p=a,e.resizedAttached&&e.resizedAttached.call())},m=function(){l=e.offsetWidth,a=e.offsetHeight,d=l!=v||a!=p,d&&!c&&(c=t(y)),z()},w=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};w(f,"scroll",m),w(h,"scroll",m)}e(i,function(e){r(e)}),this.detach=function(e){n.detach(i,e)}};return n.detach=function(t,n){e(t,function(e){e.resizedAttached&&"function"==typeof n&&(e.resizedAttached.remove(n),e.resizedAttached.length())||e.resizeSensor&&(e.contains(e.resizeSensor)&&e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)})},n})</script><style is="custom-style">q-card-nav-grid q-stacked-card {
- --q-stacked-card-width: 235px;
- --q-stacked-card-margin: 24px 0 0 24px;
- }</style><dom-module id="q-card-nav-grid" assetpath="../components/q-card-nav-grid/"><template><style>:host {
- display: block; }
- :host ::content h1, :host ::content h2, :host ::content h3, :host ::content h4, :host ::content h5, :host ::content h6 {
- color: white; }
- :host ::content q-subtext {
- color: #808284; }
- :host ::content #links {
- @apply --layout-horizontal;
- @apply --layout-flex-auto;
- flex-flow: row wrap;
- align-content: flex-end;
- margin: 0 0 0 -24px;
- padding-top: 24px; }</style><content select="h1, h2, h3, h4, h5, h6"></content><content select="q-subtext"></content><div id="links"><content select="a, q-stacked-card"></content></div></template><script>Polymer({is:"q-card-nav-grid",properties:{cardWidth:{type:Number,value:235},spacing:{type:Number,value:24}},ready:function(){this.lastPadding=0,qcore.addResizeEvent(this.$.links),this.$.links.addEventListener("resize",this.onResize.bind(this))},onResize:function(){var i=this.$.links.offsetWidth,s=i%(this.cardWidth+this.spacing),t=parseInt(s/2);this.lastPadding!=t&&(this.lastPadding=t,this.$.links.style.paddingLeft=t+"px")}})</script></dom-module><dom-module id="q-col" assetpath="../components/q-col/"><template><style></style><content></content></template><script>Polymer({is:"q-col"})</script></dom-module><dom-module id="q-content-block-avatar-1" assetpath="../components/q-content-block/"><template><style>:host {
- @apply --layout-horizontal;
- @apply --layout-center;
- }
- :host #media {
- @apply --layout-flex;
- @apply --layout-flex-none;
- }
- :host #copy {
- @apply --layout-flex;
- @apply --layout-flex-auto;
- margin-left: 10px;
- }
- ::content [slot="media"] {
- @apply --q-content-block-avatar-1-media;
- }
- ::content [slot="headline"] {
- margin-bottom: 2px;
- @apply --q-content-block-avatar-1-headline;
- }
- ::content [slot="meta"] {
- @apply --q-content-block-avatar-1-meta;
- }</style><div id="media"><content select="[slot=media]"></content></div><div id="copy"><content select="[slot=headline]"></content><content select="[slot=meta]"></content></div></template><script>Polymer({is:"q-content-block-avatar-1",properties:{},attached:function(){}})</script></dom-module><dom-module id="q-content-block-avatar-2" assetpath="../components/q-content-block/"><template><style>:host {
- @apply --layout-horizontal;
- @apply --layout-start;
- }
- :host #media {
- @apply --layout-flex;
- @apply --layout-flex-none;
- }
- :host #text {
- @apply --layout-flex;
- @apply --layout-flex-auto;
- margin-left: 10px;
- }
- ::content [slot="media"] {
- @apply --q-content-block-avatar-2-media;
- }
- ::content [slot="label"] {
- margin-bottom: 2px;
- @apply --q-content-block-avatar-2-label;
- }
- ::content [slot="value"] {
- display: block;
- @apply --q-content-block-avatar-2-value;
- }</style><div id="media"><content select="[slot=media]"></content></div><div id="text"><content select="[slot=label]"></content><content select="[slot=value]"></content></div></template><script>Polymer({is:"q-content-block-avatar-2",properties:{},attached:function(){}})</script></dom-module><dom-module id="q-content-block-avatar-3" assetpath="../components/q-content-block/"><template><style>:host {
- @apply --layout-horizontal;
- @apply --layout-start;
- }
- :host #avatar {
- @apply --layout-flex;
- @apply --layout-flex-none;
- }
- :host #content {
- @apply --q-content-block-avatar-3-content;
- }
- ::content img,
- ::content q-avatar,
- ::content q-avatar-champion {
- @apply --q-content-block-avatar-3-avatar;
- }</style><div id="avatar"><content select="[slot=avatar]"></content></div><div id="content"><content select="[slot=content]"></content></div></template><script>Polymer({is:"q-content-block-avatar-3",properties:{},attached:function(){}})</script></dom-module><dom-module id="q-content-block-icon-1" assetpath="../components/q-content-block/"><template><style>:host {
- @apply --layout-horizontal;
- @apply --layout-center;
- }
- :host #icon {
- @apply --layout-flex;
- @apply --layout-flex-none;
- }
- :host #text {
- @apply --layout-flex;
- @apply --layout-flex-auto;
- margin-left: 10px;
- }
- ::content [slot="icon"] {
- @apply --q-content-block-icon-1-icon;
- }
- ::content [slot="label"] {
- margin-bottom: 2px;
- @apply --q-content-block-icon-1-label;
- }
- ::content [slot="value"] {
- display: block;
- @apply --q-content-block-icon-1-value;
- }</style><div id="icon"><content select="[slot=icon]"></content></div><div id="text"><content select="[slot=label]"></content><content select="[slot=value]"></content></div></template><script>Polymer({is:"q-content-block-icon-1",properties:{},attached:function(){}})</script></dom-module><script>Polymer.QuantumCoreFitBehavior={properties:{containerTarget:{type:Object,value:window},sizingTarget:{type:Object,value:function(){return this}},anchorTarget:{type:Object},anchorMy:{type:String,value:"center"},anchorTo:{type:String,value:"center"}},get _defaultAnchorTarget(){var t=Polymer.dom(this).parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host),t},get _containerRect(){return this.containerTarget===window?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0,width:window.innerWidth,height:window.innerHeight}:this.containerTarget.getBoundingClientRect()},attached:function(){this.anchorTarget=this.anchorTarget||this._defaultAnchorTarget},fit:function(){this.position(),this.center()},_getAnchorInfo:function(){if(!this.anchorTarget)return{};var t={my:{top:!1,middle:!1,bottom:!1,left:!1,center:!1,right:!1,rect:this.getBoundingClientRect()},to:{top:!1,middle:!1,bottom:!1,left:!1,center:!1,right:!1,rect:this.anchorTarget.getBoundingClientRect()}};return-1!==this.anchorMy.indexOf("top")?t.my.top=!0:-1!==this.anchorMy.indexOf("bottom")?t.my.bottom=!0:t.my.middle=!0,-1!==this.anchorMy.indexOf("left")?t.my.left=!0:-1!==this.anchorMy.indexOf("right")?t.my.right=!0:t.my.center=!0,-1!==this.anchorTo.indexOf("top")?t.to.top=!0:-1!==this.anchorTo.indexOf("bottom")?t.to.bottom=!0:t.to.middle=!0,-1!==this.anchorTo.indexOf("left")?t.to.left=!0:-1!==this.anchorTo.indexOf("right")?t.to.right=!0:t.to.center=!0,t},position:function(){this.anchorTarget&&(this.style.position="fixed",this.style.maxWidth="",this.style.maxHeight="",this.async(function(){var t=window.getComputedStyle(this.sizingTarget);this.sizingTarget&&(this.style.minWidth=t.width);var e,i,o=this._getAnchorInfo(),n=this._containerRect;o.to.top?e=o.to.rect.top:o.to.middle?e=o.to.rect.top+o.to.rect.height/2:o.to.bottom&&(e=o.to.rect.bottom),o.my.middle?e-=o.my.rect.height/2:o.my.bottom&&(e-=o.my.rect.height),o.to.left?i=o.to.rect.left:o.to.center?i=o.to.rect.left+o.to.rect.width/2:o.to.right&&(i=o.to.rect.right),o.my.center?i-=o.my.rect.width/2:o.my.right&&(i-=o.my.rect.width);var h=Math.min(n.right,i+o.my.rect.width),r=Math.min(n.bottom,e+o.my.rect.height),c=window.getComputedStyle(this),a=parseInt(c.minWidth,10)||0,s=parseInt(c.minHeight,10)||0;this.sizingTarget&&(a=parseInt(t.minWidth,10)||0,s=parseInt(t.minHeight,10)||0),i=Math.max(n.left,Math.min(i,h-a)),e=Math.max(n.top,Math.min(e,r-s)),this.style.maxWidth=Math.max(h-i,a)+"px",this.style.maxHeight=Math.max(r-e,s)+"px",this.style.top=e+"px",this.style.left=i+"px"}))},center:function(){if(!this.anchorTarget){var t=this.getBoundingClientRect(),e=this._containerRect;this.style.position="fixed",this.style.top=e.height/2-t.height/2+"px",this.style.left=e.width/2-t.width/2+"px"}}}</script><script>Polymer.QuantumCoreScrollingLockBehavior={properties:{_boundScrollingHandler:{type:Function,value:null},_lastTouchPosition:{type:Object,value:{pageX:0,pageY:0}}},_handleScrolling:function(e){var t=Polymer.dom(e).path||[],l=t.indexOf(this);if(-1===l)return e.preventDefault();for(var n=this._getScrollInfo(e),o=!0,i=l;i>=0;--i){var a=t[i],r=n.deltaY<0?a.scrollTop>0:a.scrollTop<a.scrollHeight-a.clientHeight,d=n.deltaX<0?a.scrollLeft>0:a.scrollLeft<a.scrollWidth-a.clientWidth;if(r||d){o=!1;break}}if(e.cancelable&&o&&e.preventDefault(),e.targetTouches){var c=e.targetTouches[0];this._lastTouchPosition.pageX=c.pageX,this._lastTouchPosition.pageY=c.pageY}},_getScrollInfo:function(e){var t={deltaX:0,deltaY:0};if("deltaX"in e)t.deltaX=e.deltaX,t.deltaY=e.deltaY;else if("wheelDeltaX"in e)t.deltaX=-e.wheelDeltaX,t.deltaY=-e.wheelDeltaY;else if("axis"in e)t.deltaX=1===e.axis?e.detail:0,t.deltaY=2===e.axis?e.detail:0;else if(e.targetTouches){var l=e.targetTouches[0];t.deltaX=this._lastTouchPosition.pageX-l.pageX,t.deltaY=this._lastTouchPosition.pageY-l.pageY}return t},_enableScrollingLock:function(){this._boundScrollingHandler=this._boundScrollingHandler||this._handleScrolling.bind(this),document.addEventListener("wheel",this._boundScrollingHandler,!0),document.addEventListener("mousewheel",this._boundScrollingHandler,!0),document.addEventListener("DOMMouseScroll",this._boundScrollingHandler,!0),document.addEventListener("touchstart",this._boundScrollingHandler,!0),document.addEventListener("touchmove",this._boundScrollingHandler,!0)},_disableScrollingLock:function(){document.removeEventListener("wheel",this._boundScrollingHandler,!0),document.removeEventListener("mousewheel",this._boundScrollingHandler,!0),document.removeEventListener("DOMMouseScroll",this._boundScrollingHandler,!0),document.removeEventListener("touchstart",this._boundScrollingHandler,!0),document.removeEventListener("touchmove",this._boundScrollingHandler,!0)}}</script><script>Polymer.QuantumCoreOverlayManagerClass=function(){this._overlays=[],this._minZIndex=101,Polymer.Gestures.add(document,"tap",this._onCaptureClick.bind(this)),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)},Polymer.QuantumCoreOverlayManagerClass.prototype={_getZIndex:function(e){var n=this._minZIndex;if(e){var t=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);t===t&&(n=t)}return n},_setZIndex:function(e,n){e.style.zIndex=n},_applyZIndex:function(e,n){this._setZIndex(e,n+1)},_currentOverlay:function(){return this._overlays[this._overlays.length-1]},_currentOverlayZIndex:function(){return this._getZIndex(this._currentOverlay())},_overlayInPath:function(e){for(var e=e||[],n=0;n<e.length;n++)if(e[n]._manager===this)return e[n]},_onCaptureClick:function(e){var n=this._currentOverlay();n&&this._overlayInPath(Polymer.dom(e).path)!==n&&n._onCaptureOutsideClick(e)},_onCaptureKeyDown:function(e){var n=this._currentOverlay();n&&(27===e.keyCode?n._onCaptureEsc():9===e.keyCode&&n._onCaptureTab())},addOverlay:function(e){if(!(this._overlays.indexOf(e)>0)){var n=this._overlays.length,t=Math.max(this._currentOverlayZIndex(),this._minZIndex);t>=this._getZIndex(e)&&this._applyZIndex(e,t),this._overlays.splice(n,0,e)}},removeOverlay:function(e){var n=this._overlays.indexOf(e);-1!==n&&this._overlays.splice(n,1)}},Polymer.QuantumCoreOverlayManager=new Polymer.QuantumCoreOverlayManagerClass</script><script>Polymer.QuantumCoreOverlayBehavior={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},beforeClose:{type:Function,value:function(){return!0}},clickSafeTarget:{type:Object},_manager:{type:Object,value:Polymer.QuantumCoreOverlayManager}},_openedChanged:function(){if(this.isAttached)if(this.opened){try{this.cancelAsync(this._delayedRemove)}catch(e){}this.async(function(){this._manager.addOverlay(this)})}else this._delayedRemove=this.async(function(){this._manager.removeOverlay(this)},1)},_onCaptureOutsideClick:function(e){var t;this.clickSafeTarget&&(t=Polymer.dom(e).path||[],-1!==t.indexOf(this.clickSafeTarget))||this.close()},_onCaptureEsc:function(){this.close()},_onCaptureTab:function(){this.close()},toggle:function(){this.opened=!this.opened},open:function(){this.opened=!0,this.fire("q-overlay-opened")},close:function(){this.opened=!1,this.fire("q-overlay-closed")}}</script><dom-module id="q-dropdown" assetpath="../components/q-dropdown/"><template><style>:host {
- display: none;
- position: relative;
- background-color: var(--q-dropdown-background-color, --q-primary-background-color);
- color: var(--q-dropdown-color, --q-primary-text-color);
- overflow-y: auto;
- @apply --q-dropdown;
- }
- :host([opened]) {
- display: inline-block;
- }</style><content></content></template><script>Polymer({is:"q-dropdown",behaviors:[Polymer.QuantumCoreScrollingLockBehavior,Polymer.QuantumCoreFitBehavior,Polymer.QuantumCoreOverlayBehavior],properties:{anchorMy:{type:String,value:"top left"},anchorTo:{type:String,value:"bottom left"},inline:{type:Boolean,value:!1}},_openedChanged:function(){if(this.disabled)return void(this.opened=!1);this.inline||(this.opened?(this.fit(),this._enableScrollingLock()):this._disableScrollingLock()),Polymer.QuantumCoreOverlayBehavior._openedChanged.apply(this,arguments)}})</script></dom-module><dom-module id="q-footer" assetpath="../components/q-footer/"><template><style>:host {
- display: block;
- @apply --q-footer;
- }
- :host ::content [slot="top"] {
- @apply --q-footer-top;
- }
- :host ::content [slot="bottom"] {
- @apply --q-footer-bottom;
- }</style><content select="[slot=top]"></content><content select="[slot=bottom]"></content></template><script>Polymer({is:"q-footer"})</script></dom-module><dom-module id="q-row" assetpath="../components/q-row/"><template><style></style><content select="q-col"></content></template><script>Polymer({is:"q-row"})</script></dom-module><dom-module id="q-grid" assetpath="../components/q-grid/"><style>:host {
- display: block;
- overflow: hidden;
- --half-gutter-size: calc(var(--q-grid-gutter-size, 30px) / 2);
- }
- :host q-row {
- @apply(--layout-horizontal);
- @apply(--layout-wrap);
- @apply(--layout-stretch);
- margin-left: calc(var(--half-gutter-size) * -1);
- margin-right: calc(var(--half-gutter-size) * -1);
- }
- :host([reverse]) q-row {
- @apply(--layout-horizontal-reverse);
- }
- :host q-row ::content > q-col {
- position: relative;
- display: inline-block;
- min-height: 1px;
- width: 100%;
- padding-left: var(--half-gutter-size);
- padding-right: var(--half-gutter-size);
- box-sizing: border-box;
- }
- :host([fluid]) {
- max-width: 100%;
- }</style><template><q-row><content select="q-col"></content></q-row></template><script>Polymer({is:"q-grid",properties:{cols:{type:Number,value:12}},hostAttributes:{cols:12},ready:function(){this.writeCSS()},sizes:{xs:[null,null],sm:[576,544],md:[768,720],lg:[992,940],xl:[1200,1140]},observers:["_colsChanged(cols)"],writeCSS:function(){var s="q-grid-"+this.cols,e=document.getElementById(s);if(!e){var e=document.createElement("style");e.id=s,e.attributes.is="custom-style";var i="",t='q-grid[cols="'+this.cols+'"]';for(size in this.sizes){var o=this.sizes[size][0],r=this.sizes[size][1];o&&(i+="@media (min-width: "+o+"px) {",i+=t+"{ max-width: "+r+"px; }");for(var l=100/this.cols,n=1;n<=this.cols;++n){var d=Math.round(l*n*1e3)/1e3,c="q-col["+size+'-size="'+n+'"]';i+="* ::shadow "+t+" "+c+",",i+=t+" "+c+" {",i+=" width: "+d+"%",i+="}\n"}o&&(i+="}")}e.innerHTML=i,document.body.appendChild(e)}},_colsChanged:function(){this.writeCSS()}})</script></dom-module><dom-module id="q-icon" assetpath="../components/q-icon/"><template><style>:host {
- display: inline-block;
- vertical-align: middle;
- @apply (--q-icon); }
- :host svg {
- display: block;
- fill: var(--q-icon-color, currentcolor);
- @apply (--q-icon-svg); }
- :host:hover svg {
- fill: var(--q-icon-hover-color, var(--q-icon-color, currentcolor));
- @apply (--q-icon-hover); }
- :host[size="xs"] {
- width: var(--q-icon-size, var(--q-icon-xs-size, 12px)); }
- :host[size="sm"] {
- width: var(--q-icon-size, var(--q-icon-sm-size, 20px)); }
- :host[size="md"] {
- width: var(--q-icon-size, var(--q-icon-md-size, 25px)); }
- :host[size="lg"] {
- width: var(--q-icon-size, var(--q-icon-lg-size, 50px)); }
- :host[size="xl"] {
- width: var(--q-icon-size, var(--q-icon-xl-size, 100px)); }</style><svg viewBox="-300 0 2400 1792" xmlns="http://www.w3.org/2000/svg"><path d$="{{path}}"></path></svg></template><script>Polymer({is:"q-icon",properties:{name:{type:String,observer:"_nameChanged"},size:{type:String,value:"md",reflectToAttribute:!0},path:{readOnly:!0,type:String},baseRequestUrl:{readOnly:!0,type:String,value:""},_requestManager:{type:Object,value:Polymer.QuantumCoreRequestManager},groups:{readOnly:!0,type:Object,value:{"500px":1,adjust:1,adn:1,"align-center":1,"align-justify":1,"align-left":1,"align-right":1,amazon:1,ambulance:1,anchor:1,android:1,angellist:1,"angle-double-down":1,"angle-double-left":1,"angle-double-right":1,"angle-double-up":1,"angle-down":1,"angle-left":1,"angle-right":1,"angle-up":1,apple:1,archive:1,"area-chart":1,"arrow-circle-down":1,"arrow-circle-left":1,"arrow-circle-o-down":1,"arrow-circle-o-left":1,"arrow-circle-o-right":1,"arrow-circle-o-up":1,"arrow-circle-right":1,"arrow-circle-up":1,"arrow-down":1,"arrow-left":1,"arrow-right":1,"arrow-up":1,arrows:1,"arrows-alt":1,"arrows-h":1,"arrows-v":1,asterisk:1,at:1,automobile:1,backward:1,"balance-scale":1,ban:1,bank:1,"bar-chart":1,"bar-chart-o":1,barcode:1,bars:1,"battery-0":1,"battery-1":1,"battery-2":1,"battery-3":1,"battery-4":1,"battery-empty":1,"battery-full":1,"battery-half":1,"battery-quarter":1,"battery-three-quarters":1,bed:1,beer:1,behance:1,"behance-square":1,bell:1,"bell-o":1,"bell-slash":1,"bell-slash-o":1,bicycle:1,binoculars:1,"birthday-cake":1,bitbucket:1,"bitbucket-square":1,bitcoin:1,"black-tie":1,bluetooth:1,"bluetooth-b":1,bold:1,bolt:1,bomb:1,book:1,bookmark:1,"bookmark-o":1,briefcase:1,btc:1,bug:1,building:1,"building-o":1,bullhorn:1,bullseye:1,bus:1,buysellads:1,cab:1,calculator:1,calendar:1,"calendar-check-o":1,"calendar-minus-o":1,"calendar-o":1,"calendar-plus-o":1,"calendar-times-o":1,camera:2,"camera-retro":2,car:2,"caret-down":2,"caret-left":2,"caret-right":2,"caret-square-o-down":2,"caret-square-o-left":2,"caret-square-o-right":2,"caret-square-o-up":2,"caret-up":2,"cart-arrow-down":2,"cart-plus":2,cc:2,"cc-amex":2,"cc-diners-club":2,"cc-discover":2,"cc-jcb":2,"cc-mastercard":2,"cc-paypal":2,"cc-stripe":2,"cc-visa":2,certificate:2,chain:2,"chain-broken":2,check:2,"check-circle":2,"check-circle-o":2,"check-square":2,"check-square-o":2,"chevron-circle-down":2,"chevron-circle-left":2,"chevron-circle-right":2,"chevron-circle-up":2,"chevron-down":2,"chevron-left":2,"chevron-right":2,"chevron-up":2,child:2,chrome:2,circle:2,"circle-o":2,"circle-o-notch":2,"circle-thin":2,clipboard:2,"clock-o":2,clone:2,close:2,cloud:2,"cloud-download":2,"cloud-upload":2,cny:2,code:2,"code-fork":2,codepen:2,codiepie:2,coffee:2,cog:2,cogs:2,columns:2,comment:2,"comment-o":2,commenting:2,"commenting-o":2,comments:2,"comments-o":2,compass:2,compress:2,connectdevelop:2,contao:2,copy:2,copyright:2,"creative-commons":2,"credit-card":2,"credit-card-alt":2,crop:2,crosshairs:2,css3:2,cube:2,cubes:2,cut:2,cutlery:2,dashboard:2,dashcube:2,database:2,dedent:2,delicious:2,desktop:2,deviantart:2,diamond:2,digg:2,dollar:2,"dot-circle-o":2,download:2,dribbble:2,dropbox:2,drupal:2,edge:2,edit:2,eject:2,"ellipsis-h":3,"ellipsis-v":3,empire:3,envelope:3,"envelope-o":3,"envelope-square":3,eraser:3,eur:3,euro:3,exchange:3,exclamation:3,"exclamation-circle":3,"exclamation-triangle":3,expand:3,expeditedssl:3,"external-link":3,"external-link-square":3,eye:3,"eye-slash":3,eyedropper:3,facebook:3,"facebook-f":3,"facebook-official":3,"facebook-square":3,"fast-backward":3,"fast-forward":3,fax:3,feed:3,female:3,"fighter-jet":3,file:3,"file-archive-o":3,"file-audio-o":3,"file-code-o":3,"file-excel-o":3,"file-image-o":3,"file-movie-o":3,"file-o":3,"file-pdf-o":3,"file-photo-o":3,"file-picture-o":3,"file-powerpoint-o":3,"file-sound-o":3,"file-text":3,"file-text-o":3,"file-video-o":3,"file-word-o":3,"file-zip-o":3,"files-o":3,film:3,filter:3,fire:3,"fire-extinguisher":3,firefox:3,flag:3,"flag-checkered":3,"flag-o":3,flash:3,flask:3,flickr:3,"floppy-o":3,folder:3,"folder-o":3,"folder-open":3,"folder-open-o":3,font:3,fonticons:3,"fort-awesome":3,forumbee:3,forward:3,foursquare:3,"frown-o":3,"futbol-o":3,gamepad:3,gavel:3,gbp:3,ge:3,gear:3,gears:3,genderless:3,"get-pocket":3,gg:3,"gg-circle":3,gift:3,git:3,"git-square":3,github:3,"github-alt":3,"github-square":3,gittip:3,glass:3,globe:3,google:3,"google-plus":3,"google-plus-square":3,"google-wallet":3,"graduation-cap":3,gratipay:3,group:3,"h-square":3,"hacker-news":4,"hand-grab-o":4,"hand-lizard-o":4,"hand-o-down":4,"hand-o-left":4,"hand-o-right":4,"hand-o-up":4,"hand-paper-o":4,"hand-peace-o":4,"hand-pointer-o":4,"hand-rock-o":4,"hand-scissors-o":4,"hand-spock-o":4,"hand-stop-o":4,hashtag:4,"hdd-o":4,header:4,headphones:4,heart:4,"heart-o":4,heartbeat:4,history:4,home:4,"hospital-o":4,hotel:4,hourglass:4,"hourglass-1":4,"hourglass-2":4,"hourglass-3":4,"hourglass-end":4,"hourglass-half":4,"hourglass-o":4,"hourglass-start":4,houzz:4,html5:4,"i-cursor":4,ils:4,image:4,inbox:4,indent:4,industry:4,info:4,"info-circle":4,inr:4,instagram:4,institution:4,"internet-explorer":4,intersex:4,ioxhost:4,italic:4,joomla:4,jpy:4,jsfiddle:4,key:4,"keyboard-o":4,krw:4,language:4,laptop:4,lastfm:4,"lastfm-square":4,leaf:4,leanpub:4,legal:4,"lemon-o":4,"level-down":4,"level-up":4,"life-bouy":4,"life-buoy":4,"life-ring":4,"life-saver":4,"lightbulb-o":4,"line-chart":4,link:4,linkedin:4,"linkedin-square":4,linux:4,list:4,"list-alt":4,"list-ol":4,"list-ul":4,"location-arrow":4,lock:4,"long-arrow-down":4,"long-arrow-left":4,"long-arrow-right":4,"long-arrow-up":4,magic:4,magnet:4,"mail-forward":4,"mail-reply":4,"mail-reply-all":4,male:4,map:4,"map-marker":4,"map-o":4,"map-pin":4,"map-signs":4,mars:4,"mars-double":4,"mars-stroke":4,"mars-stroke-h":5,"mars-stroke-v":5,maxcdn:5,meanpath:5,medium:5,medkit:5,"meh-o":5,mercury:5,microphone:5,"microphone-slash":5,minus:5,"minus-circle":5,"minus-square":5,"minus-square-o":5,mixcloud:5,mobile:5,"mobile-phone":5,modx:5,money:5,"moon-o":5,"mortar-board":5,motorcycle:5,"mouse-pointer":5,music:5,navicon:5,neuter:5,"newspaper-o":5,"object-group":5,"object-ungroup":5,odnoklassniki:5,"odnoklassniki-square":5,opencart:5,openid:5,opera:5,"optin-monster":5,outdent:5,pagelines:5,"paint-brush":5,"paper-plane":5,"paper-plane-o":5,paperclip:5,paragraph:5,paste:5,pause:5,"pause-circle":5,"pause-circle-o":5,paw:5,paypal:5,pencil:5,"pencil-square":5,"pencil-square-o":5,percent:5,phone:5,"phone-square":5,photo:5,"picture-o":5,"pie-chart":5,"pied-piper":5,"pied-piper-alt":5,pinterest:5,"pinterest-p":5,"pinterest-square":5,plane:5,play:5,"play-circle":5,"play-circle-o":5,plug:5,plus:5,"plus-circle":5,"plus-square":5,"plus-square-o":5,"power-off":5,print:5,"product-hunt":5,"puzzle-piece":5,qq:5,qrcode:5,question:5,"question-circle":5,"quote-left":5,"quote-right":5,ra:5,random:5,rebel:5,recycle:5,reddit:5,"reddit-alien":5,"reddit-square":5,refresh:5,registered:5,remove:5,renren:5,reorder:5,repeat:5,reply:5,"reply-all":5,retweet:5,rmb:5,road:5,rocket:5,"rotate-left":6,"rotate-right":6,rouble:6,rss:6,"rss-square":6,rub:6,ruble:6,rupee:6,safari:6,save:6,scissors:6,scribd:6,search:6,"search-minus":6,"search-plus":6,sellsy:6,send:6,"send-o":6,server:6,share:6,"share-alt":6,"share-alt-square":6,"share-square":6,"share-square-o":6,shekel:6,sheqel:6,shield:6,ship:6,shirtsinbulk:6,"shopping-bag":6,"shopping-basket":6,"shopping-cart":6,"sign-in":6,"sign-out":6,signal:6,simplybuilt:6,sitemap:6,skyatlas:6,skype:6,slack:6,sliders:6,slideshare:6,"smile-o":6,"soccer-ball-o":6,sort:6,"sort-alpha-asc":6,"sort-alpha-desc":6,"sort-amount-asc":6,"sort-amount-desc":6,"sort-asc":6,"sort-desc":6,"sort-down":6,"sort-numeric-asc":6,"sort-numeric-desc":6,"sort-up":6,soundcloud:6,"space-shuttle":6,spinner:6,spoon:6,spotify:6,square:6,"square-o":6,"stack-exchange":6,"stack-overflow":6,star:6,"star-half":6,"star-half-empty":6,"star-half-full":6,"star-half-o":6,"star-o":6,steam:6,"steam-square":6,"step-backward":6,"step-forward":6,stethoscope:6,"sticky-note":6,"sticky-note-o":6,stop:6,"stop-circle":6,"stop-circle-o":6,"street-view":6,strikethrough:6,stumbleupon:6,"stumbleupon-circle":6,subscript:6,subway:6,suitcase:6,"sun-o":6,superscript:6,support:6,table:6,tablet:6,tachometer:6,tag:6,tags:6,tasks:6,taxi:6,television:6,"tencent-weibo":6,terminal:6,"text-height":7,"text-width":7,th:7,"th-large":7,"th-list":7,"thumb-tack":7,"thumbs-down":7,"thumbs-o-down":7,"thumbs-o-up":7,"thumbs-up":7,ticket:7,times:7,"times-circle":7,"times-circle-o":7,tint:7,"toggle-down":7,"toggle-left":7,"toggle-off":7,"toggle-on":7,"toggle-right":7,"toggle-up":7,trademark:7,train:7,transgender:7,"transgender-alt":7,trash:7,"trash-o":7,tree:7,trello:7,tripadvisor:7,trophy:7,truck:7,try:7,tty:7,tumblr:7,"tumblr-square":7,"turkish-lira":7,tv:7,twitch:7,twitter:7,"twitter-square":7,umbrella:7,underline:7,undo:7,university:7,unlink:7,unlock:7,"unlock-alt":7,unsorted:7,upload:7,usb:7,usd:7,user:7,"user-md":7,"user-plus":7,"user-secret":7,"user-times":7,users:7,venus:7,"venus-double":7,"venus-mars":7,viacoin:7,"video-camera":7,vimeo:7,"vimeo-square":7,vine:7,vk:7,"volume-down":7,"volume-off":7,"volume-up":7,warning:7,wechat:7,weibo:7,weixin:7,whatsapp:7,wheelchair:7,wifi:7,"wikipedia-w":7,windows:7,won:7,wordpress:7,wrench:7,xing:7,"xing-square":7,"y-combinator":7,"y-combinator-square":7,yahoo:7,yc:7,"yc-square":7,yelp:7,yen:7,youtube:7,"youtube-play":7,"youtube-square":7}}},attached:function(){this._setBaseRequestUrl(this.resolveUrl("../q-icon/")),this._nameChanged()},_nameChanged:function(){if(this.isAttached){var e=this.groups[this.name],r=this.baseRequestUrl+"icon-group"+e+".html";this._requestManager.send({url:r,responseType:"json",cache:!0,callback:function(e){this._setPath(e[this.name])}.bind(this)})}}})</script></dom-module><script>Polymer.QuantumCoreButtonStateBehavior={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,observer:"_activeChanged"}},listeners:{keydown:"_keydownHandler",keyup:"_keyupHandler",down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},_keydownHandler:function(e){32==e.which&&(e.preventDefault(),e.stopImmediatePropagation(),this._setPressed(!0))},_keyupHandler:function(e){32==e.which&&(this._setPressed(!1),this.toggles?(this.active=!this.active,this.fire("change")):this.active=!1)},_downHandler:function(){this._setPressed(!0)},_upHandler:function(){this._setPressed(!1)},_tapHandler:function(){this.toggles?(this.active=!this.active,this.fire("change")):this.active=!1},_pressedChanged:function(){this._changedButtonState()},_activeChanged:function(){this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}}</script><script>Polymer.QuantumCoreModelBehavior={properties:{model:{type:String,value:null},_modelComponent:{type:Object,value:null}},ready:function(){if(this.model&&this.$.modelContent&&this.$.modelContentContainer){var e=this.is+"-model-"+this.model;this._modelComponent=document.createElement(e),this._modelComponent.setAttribute("id","modelComponent"),Polymer.dom(this).appendChild(this._modelComponent),Polymer.dom(this.$.modelContent).observeNodes(function(e){this._processAddedModelNodes(e.addedNodes),this._processRemovedModelNodes(e.removedNodes)}.bind(this))}},_processAddedModelNodes:function(e){if(e&&e.length){for(var o=0;o<e.length;++o)e[o]!==this._modelComponent&&Polymer.dom(this._modelComponent).appendChild(e[o]);this.updateStyles(),this._modelComponent.updateStyles()}},_processRemovedModelNodes:function(e){!e||e.length}}</script><dom-module id="q-item-model-simple-1" assetpath="../components/q-item/"><template><style>:host {
- display: block;
- padding: 10px;
- @apply --q-item;
- }
- :host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-item-headline;
- }
- :host #content ::content q-subtext {
- margin-top: 5px;
- @apply --q-item-subtext;
- }</style><div id="content"><content select="h1,h2,h3,h4,h5,h6"></content><content select="q-subtext"></content></div></template><script>Polymer({is:"q-item-model-simple-1"})</script></dom-module><dom-module id="q-item-model-simple-2" assetpath="../components/q-item/"><template><style>:host {
- display: block;
- padding: 10px;
- @apply --q-item;
- }
- :host #content {
- @apply --layout-horizontal;
- @apply --layout-center;
- }
- :host #content ::content q-icon {
- margin-right: 15px;
- @apply --q-item-icon;
- }
- :host #content ::content p {
- @apply --q-item-p;
- }</style><div id="content"><content select="q-icon"></content><content select="p"></content></div></template><script>Polymer({is:"q-item-model-simple-2"})</script></dom-module><dom-module id="q-item-model-simple-3" assetpath="../components/q-item/"><template><style>:host {
- display: block;
- @apply --q-item;
- }
- :host #content ::content > a {
- display: block;
- padding-bottom: 20px;
- }
- :host #meta-content {
- @apply --layout;
- @apply --layout-justified;
- }
- :host #meta-content q-meta {
- @apply --layout-end;
- }
- :host #meta-content q-meta:first-child {
- float: left;
- }
- :host #meta-content q-meta:last-child {
- float: right;
- align-self: flex-end;
- }</style><div id="content"><content select="a"></content><div id="meta-content"><content select="q-meta"></content></div></div></template><script>Polymer({is:"q-item-model-simple-3"})</script></dom-module><dom-module id="q-item-model-simple-4" assetpath="../components/q-item/"><template><style>:host {
- display: block;
- @apply --q-item-model-simple-4;
- }
- :host #content ::content > a {
- display: block;
- padding-bottom: 20px;
- @apply --q-item-model-simple-4-link;
- }
- :host #content ::content q-meta {
- @apply --q-item-model-simple-4-meta;
- }
- :host #content ::content q-meta a {
- @apply --q-item-model-simple-4-meta-link;
- }
- :host #bottom {
- @apply --layout;
- @apply --layout-justified;
- }
- :host #bottom div a {
- margin-right: 5px;
- }</style><div id="content"><content select="a:not([slot])"></content><div id="bottom"><div id="tag-content"><content select="[slot=tags]"></content></div><div id="meta-content"><content select="q-meta"></content></div></div></div></template><script>Polymer({is:"q-item-model-simple-4"})</script></dom-module><dom-module id="q-item" assetpath="../components/q-item/"><template><style>:host {
- @apply --q-font-common-base;
- display: block;
- @apply --q-item;
- }
- :host(:focus) {
- outline: 0;
- @apply --q-item-focus;
- }
- :host(:hover) {
- @apply --q-item-hover;
- }
- :host([highlighted]) {
- @apply --q-item-highlighted;
- }</style><div id="modelContentContainer"><content id="modelContent"></content></div></template><script>Polymer({is:"q-item",behaviors:[Polymer.QuantumCoreModelBehavior,Polymer.QuantumCoreButtonStateBehavior,Polymer.QuantumCoreControlStateBehavior],properties:{value:{type:String,value:"",reflectToAttribute:!0}},hostAttributes:{role:"option",tabIndex:-1},ready:function(){this.value||(this.value=this.textContent.trim())}})</script></dom-module><dom-module id="q-item-model-simple-5" assetpath="../components/q-item/"><template><style>:host {
- @apply --layout; }
- :host ::content q-avatar {
- margin-right: 20px; }
- :host #content {
- width: 100%; }
- :host #content ::content #top {
- @apply --layout;
- @apply --layout-justified;
- margin-bottom: 10px; }</style><content select="q-avatar"></content><div id="content"><div id="top"><div id="label"><content select="h2"></content></div><div id="meta"><content select="q-meta"></content></div></div><content></content></div></template><script>Polymer({is:"q-item-model-simple-5"})</script></dom-module><dom-module id="q-label" assetpath="../components/q-label/"><template><style>:host {
- display: inline-block;
- @apply --q-label; }
- :host > #content:before {
- @apply --q-label-before; }
- :host > #content:after {
- @apply --q-label-after; }
- :host > #content {
- @apply --q-label-content; }
- :host #stub-before, :host #stub-after, :host #content {
- display: inline; }</style><div id="content"><content></content></div></template><script>Polymer({is:"q-label"})</script></dom-module><dom-module id="q-list" assetpath="../components/q-list/"><template><style>:host {
- --q-item: {
- @apply --q-list-item;
- };
- --q-item-focus: {
- @apply --q-list-item-focus;
- };
- --q-item-hover: {
- @apply --q-list-item-hover;
- };
- --q-item-highlighted: {
- @apply --q-list-item-highlighted;
- };
- @apply --q-font-common-base;
- display: block;
- @apply --q-list;
- }
- :host #content {
- @apply --q-list-content;
- }
- :host[divided] #content ::content > q-item {
- border-bottom: solid 1px #000;
- margin-bottom: 10px;
- padding-bottom: 10px;
- @apply --q-list-divided-item;
- }
- :host[divided] #content ::content > q-item:last-child {
- border-bottom: none;
- margin-bottom: 0;
- padding-bottom: 0;
- @apply --q-list-divided-item;
- @apply --q-list-divided-last-item;
- }
- :host[list-style="numbered"],
- :host[list-style="bulleted"] {
- counter-reset: item;
- }
- :host[list-style="numbered"] #content ::content > q-item,
- :host[list-style="bulleted"] #content ::content > q-item {
- display: flex;
- }
- :host[list-style="numbered"] #content ::content > q-item #modelContentContainer {
- flex: 1 1 auto;
- }
- :host[list-style="numbered"] #content ::content > q-item::before {
- counter-increment: item;
- content: counter(item) ".";
- margin-right: 5px;
- }
- :host[list-style="bulleted"] #content ::content > q-item::before {
- content: '\2022';
- margin-right: 5px;
- }
- :host[list-style="none"] {
- list-style: none;
- }</style><div id="content" on-tap="_onTap"><content></content></div></template><script>Polymer({is:"q-list",hostAttributes:{role:"list"},properties:{listStyle:{type:String,value:"none",reflectToAttribute:!0},divided:{type:Boolean,value:!1}},_onTap:function(){for(var e=Polymer.dom(event).path||[],t=0;t<e.length;t++)if(e[t].nodeName&&"q-item"===e[t].nodeName.toLowerCase()){this.fire("q-item-selected",{item:e[t]});break}}})</script></dom-module><dom-module id="q-nav" assetpath="../components/q-nav/"><template><style>:host[orientation="horizontal"] {
- @apply --layout-horizontal;
- @apply --layout-center;
- border-bottom: 3px solid var(--q-nav-border-color, #dddddc); }
- :host[orientation="horizontal"] ::content a,
- :host[orientation="horizontal"] ::content q-divider {
- margin-left: 20px; }
- :host[orientation="horizontal"] ::content a:first-child,
- :host[orientation="horizontal"] ::content q-divider:first-child {
- margin-left: 0; }
- :host[orientation="horizontal"] ::content q-icon {
- margin-right: 12px; }
- :host[orientation="horizontal"] ::content a {
- @apply --layout;
- @apply --layout-center;
- min-height: 45px;
- font-weight: bold;
- text-transform: uppercase;
- margin-bottom: -3px;
- padding: 0px 9px 0px 9px;
- border-bottom: 3px solid transparent; }
- :host[orientation="horizontal"] ::content a[selected] {
- color: var(--q-nav-selected-color, #4eb5f9);
- border-bottom-color: var(--q-nav-border-selected-color, #4eb5f9); }
- :host[orientation="horizontal"] ::content q-divider {
- display: inline-block;
- width: 3px;
- height: 30px;
- padding: 0;
- background-color: var(--q-nav-border-color, #dddddc);
- margin-bottom: 1px; }
- :host[orientation="horizontal"][justify="full"] {
- flex-wrap: nowrap;
- justify-content: space-between; }
- :host[orientation="horizontal"][justify="left"] {
- @apply (--layout-start-justified); }
- :host[orientation="horizontal"][justify="center"] {
- justify-content: center; }
- :host[orientation="horizontal"][justify="right"] {
- justify-content: flex-end; }
- :host[orientation="vertical"] {
- @apply (--layout-vertical); }
- :host[orientation="vertical"] ::content {
- padding: 10px 0; }
- :host[orientation="vertical"] ::content a {
- border-left: 3px solid transparent;
- margin: 5px 0;
- padding: 2px 20px;
- font-size: 11pt;
- color: black;
- font-weight: normal;
- display: inline-block; }
- :host[orientation="vertical"] ::content a[selected] {
- color: var(--q-nav-selected-color, #4eb5f9);
- font-weight: bold;
- border-left: 3px solid var(--q-nav-border-selected-color, #4eb5f9); }
- :host[orientation="vertical"] ::content:hover {
- color: #4eb5f9; }</style><content select="a, q-divider"></content></template><script>Polymer({is:"q-nav",properties:{justify:{type:String,value:"left",reflectToAttribute:!0},orientation:{type:String,value:"horizontal",reflectToAttribute:!0}}})</script></dom-module><dom-module id="q-list-nav" assetpath="../components/q-list-nav/"><template><style>:host {
- display: block;
- @apply --q-list-nav; }
- :host > #content ::content h1, :host > #content ::content h2, :host > #content ::content h3, :host > #content ::content h4, :host > #content ::content h5, :host > #content ::content h6 {
- color: #fff;
- font-weight: bold;
- margin-bottom: 20px;
- @apply --q-list-nav-header; }
- :host > #content ::content q-nav a {
- white-space: nowrap; }</style><div id="content"><content select="h1, h2, h3, h4, h5, h6"></content><content select="q-nav"></content></div></template><script>Polymer({is:"q-list-nav"})</script></dom-module><dom-module id="q-logo" assetpath="../components/q-logo/"><template><style>:host {
- display: inline-block;
- }
- :host img {
- margin: 0;
- padding: 0;
- border: none;
- }
- :host([size="xl"]) img {
- max-width: var(--q-logo-width-xl, var(--q-logo-width));
- max-height: var(--q-logo-height-xl);
- }
- :host([size="lg"]) img {
- max-width: var(--q-logo-width-lg, var(--q-logo-width));
- max-height: var(--q-logo-height-lg);
- }
- :host([size="md"]) img {
- max-width: var(--q-logo-width-md, var(--q-logo-width));
- max-height: var(--q-logo-height-md);
- }
- :host([size="sm"]) img {
- max-width: var(--q-logo-width-sm, var(--q-logo-width));
- max-height: var(--q-logo-height-sm);
- }
- :host([size="xs"]) img {
- max-width: var(--q-logo-width-xs, var(--q-logo-width));
- max-height: var(--q-logo-height-xs);
- }</style><img src$="{{baseUrl}}images/{{name}}/{{size}}.png"></template><script>Polymer({is:"q-logo",properties:{name:{type:String},size:{type:String,value:"md",reflectToAttribute:!0},baseUrl:{readOnly:!0,type:String}},ready:function(){this._setBaseUrl(this.resolveUrl("."))}})</script></dom-module><script>Polymer.QuantumCoreLogoBehavior={properties:{size:{type:String,value:"md",reflectToAttribute:!0},baseUrl:{readOnly:!0,type:String}},ready:function(){this._setBaseUrl(this.resolveUrl("."))}}</script><dom-module id="q-logo-shared-styles" assetpath="../components/q-logo/"><template><style>:host {
- display: inline-block;
- }
- :host img {
- margin: 0;
- padding: 0;
- border: none;
- }</style></template></dom-module><dom-module id="q-logo-league" assetpath="../components/q-logo/"><template><style include="q-logo-shared-styles">:host([size="xl"]) img {
- max-width: var(--q-logo-long-rectangle-width-xl, 500px);
- max-height: var(--q-logo-long-rectangle-height-xl, 200px);
- }
- :host([size="lg"]) img {
- max-width: var(--q-logo-long-rectangle-width-lg, 300px);
- max-height: var(--q-logo-long-rectangle-height-lg, 120px);
- }
- :host([size="md"]) img {
- max-width: var(--q-logo-long-rectangle-width-md, 200px);
- max-height: var(--q-logo-long-rectangle-height-md, 80px);
- }
- :host([size="sm"]) img {
- max-width: var(--q-logo-long-rectangle-width-sm, 150px);
- max-height: var(--q-logo-long-rectangle-height-sm, 60px);
- }
- :host([size="xs"]) img {
- max-width: var(--q-logo-long-rectangle-width-xs, 75px);
- max-height: var(--q-logo-long-rectangle-height-xs, 30px);
- }</style><img src$="{{baseUrl}}images/league/{{size}}.png"></template><script>Polymer({is:"q-logo-league",behaviors:[Polymer.QuantumCoreLogoBehavior]})</script></dom-module><dom-module id="q-meta" assetpath="../components/q-meta/"><template><style>:host {
- display: inline-block;
- @apply --q-meta; }</style><content></content></template><script>Polymer({is:"q-meta"})</script></dom-module><dom-module id="q-overlay-card-model-simple-1" assetpath="../components/q-overlay-card/"><template><style>:host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-overlay-card-headline;
- }</style><div id="content"><content select="h1,h2,h3,h4,h5,h6"></content></div></template><script>Polymer({is:"q-overlay-card-model-simple-1"})</script></dom-module><dom-module id="q-overlay-card-model-simple-2" assetpath="../components/q-overlay-card/"><template><style>:host #content ::content p {
- margin-top: 10px;
- }
- :host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-overlay-card-headline;
- }
- :host #content ::content p {
- @apply --q-overlay-card-p;
- }</style><div id="content"><content select="h1,h2,h3,h4,h5,h6"></content><content select="p"></content></div></template><script>Polymer({is:"q-overlay-card-model-simple-2"})</script></dom-module><dom-module id="q-overlay-card-model-simple-3" assetpath="../components/q-overlay-card/"><template><style>:host #content ::content q-subtext {
- margin-top: 5px;
- }
- :host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-overlay-card-headline;
- }
- :host #content ::content q-subtext {
- @apply --q-overlay-card-subtext;
- }</style><div id="content"><content select="h1,h2,h3,h4,h5,h6"></content><content select="q-subtext"></content></div></template><script>Polymer({is:"q-overlay-card-model-simple-3"})</script></dom-module><dom-module id="q-overlay-card-model-simple-4" assetpath="../components/q-overlay-card/"><template><style>:host #content ::content q-subtext {
- margin-top: 5px;
- }
- :host #content ::content p {
- margin-top: 10px;
- }
- :host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-overlay-card-headline;
- }
- :host #content ::content q-subtext {
- @apply --q-overlay-card-subtext;
- }
- :host #content ::content p {
- @apply --q-overlay-card-p;
- }</style><div id="content"><content select="h1,h2,h3,h4,h5,h6"></content><content select="q-subtext"></content><content select="p"></content></div></template><script>Polymer({is:"q-overlay-card-model-simple-4"})</script></dom-module><dom-module id="q-overlay-card-model-simple-5" assetpath="../components/q-overlay-card/"><template><style>:host #content ::content h1,
- :host #content ::content h2,
- :host #content ::content h3,
- :host #content ::content h4,
- :host #content ::content h5,
- :host #content ::content h6 {
- @apply --q-overlay-card-headline;
- }
- :host #content ::content q-subtext {
- @apply --q-overlay-card-subtext;
- }
- :host #content ::content q-icon {
- @apply --q-overlay-card-icon;
- }</style><div id="content"><content select="q-icon, h1, h2, h3, h4, h5, h6, q-subtext"></content></div></template><script>Polymer({is:"q-overlay-card-model-simple-5"})</script></dom-module><dom-module id="q-overlay-card" assetpath="../components/q-overlay-card/"><template><style>:host {
- display: block;
- color: #fff;
- overflow: hidden;
- width: var(--q-overlay-card-width, 300px);
- height: var(--q-overlay-card-height, 300px);
- background-image: var(--q-overlay-card-image);
- @apply --q-overlay-card; }
- :host #container {
- @apply --layout-horizontal;
- width: var(--q-overlay-card-width, 300px);
- height: var(--q-overlay-card-height, 300px); }
- :host #overlay {
- width: 100%;
- background-color: rgba(0, 0, 0, 0.4);
- @apply --q-overlay-card-overlay; }
- :host #overlay:hover {
- @apply --q-overlay-card-overlay-hover; }
- :host #modelContentContainer {
- width: 100%;
- padding: 25px;
- box-sizing: border-box;
- @apply --q-overlay-card-content; }
- :host:not([partial-overlay]) #container {
- @apply --layout-stretch; }
- :host:not([partial-overlay]) #overlay {
- @apply --layout; }
- :host:not([partial-overlay])[vertical-align="top"] #overlay {
- @apply --layout-start; }
- :host:not([partial-overlay])[vertical-align="center"] #overlay {
- @apply --layout-center; }
- :host:not([partial-overlay])[vertical-align="bottom"] #overlay {
- @apply --layout-end; }
- :host[partial-overlay][vertical-align="top"] #container {
- @apply --layout-start; }
- :host[partial-overlay][vertical-align="center"] #container {
- @apply --layout-center; }
- :host[partial-overlay][vertical-align="bottom"] #container {
- @apply --layout-end; }
- :host[horizontal-align="left"] #container {
- text-align: left; }
- :host[horizontal-align="center"] #container {
- text-align: center; }
- :host[horizontal-align="right"] #container {
- text-align: right; }</style><div id="container"><div id="overlay"><div id="modelContentContainer"><content id="modelContent"></content></div></div></div></template><script>Polymer({is:"q-overlay-card",behaviors:[Polymer.QuantumCoreModelBehavior],properties:{image:{type:String,value:""},imageSizing:{type:String,value:"cover"},imagePosition:{type:String,value:"center"},verticalAlign:{type:String,value:"bottom",reflectToAttribute:!0},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},partialOverlay:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_srcChanged(image)","_transformChanged(imageSizing, imagePosition)"],_srcChanged:function(){null===this.image||-1===this.image.indexOf(".")?delete this.style.backgroundImage:this.style.backgroundImage="url('"+this.image+"')"},_transformChanged:function(){this.style.backgroundSize=this.imageSizing,this.style.backgroundPosition=this.imagePosition,this.style.backgroundRepeat="no-repeat"}})</script></dom-module><dom-module id="q-pagination" assetpath="../components/q-pagination/"><template><style>:host {
- display: block;
- --default-text-color: #6d6e70;
- --default-hover-text-color: #adaeb2;
- --default-active-text-color: #2980b9;
- --default-active-hover-text-color: #2980b9;
- --q-icon-fill-color: var(--q-pagination-text-color, var(--default-text-color));
- --q-icon-hover-fill-color: var(--q-pagination-hover-text-color, var(--default-hover-text-color));
- @apply --q-pagination; }
- :host [hidden] {
- display: none; }
- :host q-label {
- @apply --no-select;
- display: inline-block;
- padding: 0 4px;
- font-family: "Roboto Condensed";
- font-weight: bold;
- font-size: 18px;
- color: var(--q-pagination-text-color, var(--default-text-color));
- text-transform: none;
- cursor: default; }
- :host q-label.clickable:hover {
- color: var(--q-pagination-hover-text-color, var(--default-hover-text-color));
- cursor: pointer; }
- :host q-label.clickable.state-active {
- color: var(--q-pagination-active-text-color, var(--default-active-text-color)); }
- :host q-label.clickable.state-active:hover {
- color: var(--q-pagination-active-hover-text-color, var(--default-active-hover-text-color)); }</style><q-label on-tap="_changePage" data-page="first" class="clickable" hidden="[[!showFirstLast]]">First</q-label><q-label on-tap="_changePage" data-page="prev" class="clickable" hidden="[[!prevNextIcons]]"><q-icon name="chevron-circle-left"></q-icon></q-label><q-label on-tap="_changePage" data-page="prev" class="clickable" hidden="[[prevNextIcons]]">Prev</q-label><template is="dom-repeat" items="[[pages]]"><q-label on-tap="_changePage" id$="page-{{item.display}}" data-page$="{{item.display}}" class$="{{item.class}}">{{item.display}}</q-label></template><q-label on-tap="_changePage" data-page="next" class="clickable" hidden="[[prevNextIcons]]">Next</q-label><q-label on-tap="_changePage" data-page="next" class="clickable" hidden="[[!prevNextIcons]]"><q-icon name="chevron-circle-right"></q-icon></q-label><q-label on-tap="_changePage" data-page="last" class="clickable" hidden="[[!showFirstLast]]">Last</q-label></template><script>Polymer({is:"q-pagination",properties:{numPages:{type:Number,value:1,observer:"_renderPages"},currentPage:{type:Number,notify:!0,value:1},maxPagesShown:{type:Number,value:10},abbreviated:{type:Boolean,value:!1},showFirstLast:{type:Boolean,value:!1},prevNextIcons:{type:Boolean,value:!1}},_changePage:function(e){var s=qcore._findParentNode("q-label",e.target),a=s.getAttribute("data-page"),t=parseInt(this.currentPage,10);if(console.log("start",s,a),"..."==a)var a=parseInt(prompt("Which page would you like to jump to?"),10);else a="first"==a?1:"prev"==a?t-1:"next"==a?t+1:"last"==a?parseInt(this.numPages,10):parseInt(a,10);console.log("yee",a),"number"==typeof a&&a===a&&(a<1&&(a=1),a>this.numPages&&(a=this.numPages),a!=this.currentPage&&(this.currentPage=a,this.fire("pageChanged",{page:this.currentPage}),this._renderPages()))},attached:function(){this._renderPages()},_renderPages:function(){if(this.set("pages",[]),this.numPages<1&&(this.numPages=1),this.currentPage<1?this.currentPage=1:this.currentPage>this.numPages&&(this.currentPage=this.numPages),this.maxPagesShown<5&&(this.maxPagesShown=5),this.abbreviated)this.push("pages",{display:this.currentPage+" of "+this.numPages});else for(var e=this.maxPagesShown/2,s=Math.ceil((this.maxPagesShown-4)/2)+2,a=this.numPages>this.maxPagesShown&&this.currentPage>e+.5,t=this.numPages>this.maxPagesShown&&this.currentPage<this.numPages-e,i=1;i<=this.maxPagesShown&&!(i>this.numPages);++i){var n={display:"?",class:"clickable"};if(1==i)n.display=1;else if(2==i)n.display=a?"...":2;else if(i==this.maxPagesShown-1)n.display=t?"...":this.numPages-1;else if(i==this.maxPagesShown)n.display=this.numPages;else{var r=i-s;n.display=a&&t?this.currentPage+r:t?i:a?this.numPages-(this.maxPagesShown-i):i}n.display==this.currentPage&&(n.class+=" state-active"),this.push("pages",n)}}})</script></dom-module><dom-module id="q-related-list" assetpath="../components/q-related-list/"><template><style>:host {
- display: block;
- overflow: hidden;
- @apply --q-related-list; }
- :host [hidden] {
- display: none; }
- :host #content {
- margin-top: -40px; }
- :host #content ::content q-list {
- padding-top: 40px; }
- :host #content ::content q-list q-label {
- @apply --q-related-list-header; }
- :host #content ::content q-list q-item {
- @apply --q-related-list-item; }
- :host #content ::content q-list q-item:not(:first-of-type) {
- margin-top: 10px; }</style><div id="content"><content></content></div></template><script>Polymer({is:"q-related-list"})</script></dom-module><dom-module id="q-image" assetpath="../components/q-rich-media/"><style>:host {
- display: inline-block;
- vertical-align: middle;
- overflow: hidden;
- position: relative;
- background-color: #ddd; }
- :host [hidden] {
- display: none; }
- :host #sizedImage {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0; }
- :host img {
- display: block;
- width: 100%;
- height: auto; }
- :host #placeholder {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%); }</style><template><div role="img" id="sizedImage" hidden$="[[!sizing]]"></div><content select="img"></content><img id="image" src$="[[src]]" alt$="[[alt]]" title$="[[title]]" hidden$="[[sizing]]"><div id="placeholder" hidden$="[[_computePlaceholderHidden(placeholder, _loading, _loaded)]]">Loading...</div></template><script>Polymer({is:"q-image",properties:{src:{type:String,observer:"_srcChanged"},alt:{type:String},title:{type:String},sizing:{type:String,value:null},position:{type:String,value:null},width:{type:Number,observer:"_widthChanged",value:null},height:{type:Number,observer:"_heightChanged",value:null},placeholder:{type:Boolean,value:!1},_loading:{notify:!0,readOnly:!0,type:Boolean,value:!0},_loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},_error:{notify:!0,readOnly:!0,type:Boolean,value:!1}},observers:["_transformChanged(sizing, position)"],ready:function(){var e=this.$.image;e.onload=function(){this._set_loading(!1),this._set_loaded(!0),this._set_error(!1)}.bind(this),e.onerror=function(){this._set_loading(!1),this._set_loaded(!1),this._set_error(!0)}.bind(this)},_reset:function(){this.$.image.removeAttribute("src"),this.$.sizedImage.style.backgroundImage="",this._set_loading(!1),this._set_loaded(!1),this._set_error(!1)},_computePlaceholderHidden:function(){return!this.placeholder||!(this._loading&&!this._loaded)},_load:function(e){if(!e)return void this._reset();this._set_loading(!0),this._set_loaded(!1),this._set_error(!1),this.$.image.src=e,this.$.sizedImage.style.backgroundImage="url('"+e+"')"},_srcChanged:function(){this._reset(),this._load(this.src)},_transformChanged:function(){this.$.sizedImage.style.backgroundSize=this.sizing,this.$.sizedImage.style.backgroundPosition=this.position,this.$.sizedImage.style.backgroundRepeat="no-repeat"},_widthChanged:function(){var e=this.width;e===e&&(e+="px"),this.style.width=e},_heightChanged:function(){var e=this.height;e===e&&(e+="px"),this.style.height=e}})</script></dom-module><script>Polymer.QuantumCoreFormInputBehaviorImpl={properties:{label:{type:String,value:""},alwaysFloatLabel:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},type:{type:String,valud:"text"},name:{type:String},value:{type:String,notify:!0},placeholder:{type:String,value:""},pattern:{type:String},autoValidate:{type:Boolean,value:!1},state:{type:String,reflectToAttribute:!0,observer:"_stateChanged"},disabled:{type:Boolean,value:!1},required:{type:Boolean,value:!1},maxlength:{type:Number},minlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},readonly:{type:Boolean,default:!1},focused:{type:Boolean,value:!1,readOnly:!0,notify:!0},valueExists:{type:Boolean,value:!1,reflectToAttribute:!0},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{keydown:"_onKeydown"},hostAttributes:{tabindex:0},get inputElement(){return this.$.input},get _inputElementValue(){return this.inputElement.value},ready:function(){},attached:function(){this.inputElement.addEventListener("bind-value-changed",this._boundValueChanged)},_stateChanged:function(){"disabled"==this.state?this.inputElement.disabled=!0:this.inputElement.disabled=!1},_onValueChanged:function(t){this.autoValidate&&(this.validate()||(this.state="invalid"));var e=t.detail.value;this.valueExists=!(!e||""==e&&0!==e),this.fire("value-changed",{value:e})},_onKeydown:function(t){t.shiftKey&&9==t.which&&this._onShiftTabDown()},_onChange:function(t){this.shadowRoot&&this.fire(t.type,{sourceEvent:t},{node:this,bubbles:t.bubbles,cancelable:t.cancelable})},_computeContainerClass:function(t,e,n,a,i){var o=[];return t?i&&o.push("label-is-hidden"):(e||i||""!=n)&&o.push("label-is-floating"),a&&o.push("is-highlighted"),o.join(" ")},validate:function(){return"disabled"==this.state||(this.inputElement.validate()?(this.state="success",!0):(this.state="invalid",!1))},_focusBlurHandler:function(t){Polymer.QuantumCoreControlStateBehavior._focusBlurHandler.call(this,t),this.focused&&!this._shiftTabPressed&&this.inputElement.focus()},_onShiftTabDown:function(){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async(function(){this.setAttribute("tabindex",t),this._shiftTabPressed=!1},1)}},Polymer.QuantumCoreFormInputBehavior=[Polymer.QuantumCoreControlStateBehavior,Polymer.QuantumCoreFormInputBehaviorImpl]</script><dom-module id="q-input" assetpath="../components/q-input/"><script>Polymer({is:"q-input",extends:"input",behaviors:[Polymer.QuantumCoreControlStateBehavior],properties:{allowedInput:{type:String},bindValue:{type:String,observer:"_bindValueChanged"},required:{type:Boolean,observer:"_requiredChanged"},placeholder:{type:String,observer:"_placeholderChanged"}},listeners:{input:"_onInput",keypress:"_onKeypress",keydown:"_onKeydown"},get _allowedInputRegExp(){var e;return this.allowedInput?e=new RegExp(this.allowedInput):void 0!==this._defaultAllowedInputs[this.type]&&(e=this._defaultAllowedInputs[this.type]),e},ready:function(){this.bindValue=this.value,this._prevValue=this.value,this._defaultAllowedInputs={number:/[0-9.e-]/}},validate:function(){var e=this.checkValidity();return e&&this.required&&""===this.value&&(e=!1),this.invalid=!e,e},_bindValueChanged:function(){this.fire("q-value-changed",{value:this.bindValue})},_requiredChanged:function(){this.fire("q-required-changed",{value:this.required})},_placeholderChanged:function(){this.fire("q-placeholder-changed",{value:this.placeholder})},_disabledChanged:function(){this.fire("q-disabled-changed",{value:this.disabled})},_focusedChanged:function(e){Polymer.QuantumCoreControlStateBehavior._focusedChanged.call(this,e),this.fire("q-focused-changed",{value:this.focused})},_checkAllowedInputPattern:function(){var e=this._allowedInputRegExp;if(e)for(var t=this.value.length,i=0;i<t;++i)if(!e.test(this.value[i]))return!1;return!0},_isPrintableKeyPress:function(e){return 0!=e.keyCode},_onKeydown:function(){"number"!=this.type&&(this._selectionStart=this.selectionStart,this._selectionEnd=this.selectionEnd)},_onKeypress:function(e){var t=this._allowedInputRegExp;if(t&&this._isPrintableKeyPress(e)){var i=String.fromCharCode(e.charCode);if(!t.test(i))return this.fire("warning",{text:"Invalid character "+i+" was blocked."}),void e.preventDefault();this._allowedInputPatternChecked=!0}},_onInput:function(){this._allowedInputPatternChecked||this._checkAllowedInputPattern()||(this.fire("warning",{text:"Invalid characters were blocked."}),this.value=this._prevValue,this.setSelectionRange(this._selectionStart,this._selectionEnd)),this.bindValue=this.value,this._allowedInputPatternChecked=!1,this._prevValue=this.value}})</script></dom-module><dom-module id="q-input-container" assetpath="../components/q-input/"><template><style>:host {
- --q-input-height-default: 24px;
- display: block;
- @apply --q-form-input;
- }
- :host [hidden] {
- display: none;
- }
- :host[input-is-focused] {
- outline: none;
- }
- :host #container {
- position: relative;
- }
- :host #container #required-star {
- color: var(--q-error-bg-color, #f00);
- margin-left: 4px;
- }
- :host #container.is-highlighted #label {
- color: var(--q-form-input-highlight-color);
- }
- :host #container.label-is-floating #input-container {
- position: static;
- }
- :host #container.label-is-floating #label {
- transform: translate(0, -100%);
- width: 100%;
- cursor: default;
- padding: 0;
- }
- :host #container.label-is-hidden #label {
- display: none;
- }
- :host #container ::content [suffix] {
- @apply (--layout-flex-none);
- }
- :host #container ::content [suffix] {
- margin-left: 5px;
- }
- :host #content {
- @apply (--layout-horizontal);
- @apply (--layout-center);
- position: relative;
- padding-bottom: var(--q-form-input-underline-padding, 4px);
- }
- :host #content ::content [prefix] {
- @apply (--layout-flex-none);
- margin-right: 5px;
- }
- :host #input-container {
- @apply (--layout-flex-auto);
- position: relative;
- }
- :host #input-container ::content input {
- width: 100%;
- border: none;
- border: 0;
- margin-bottom: 0;
- @apply --q-form-input;
- }
- :host #input-container ::content input::-moz-placeholder {
- @apply --q-form-input-placeholder;
- }
- :host #input-container ::content input:-moz-placeholder {
- @apply --q-form-input-placeholder;
- }
- :host #input-container ::content input::-webkit-input-placeholder {
- @apply --q-form-input-placeholder;
- }
- :host #input-container ::content input:-ms-input-placeholder {
- @apply --q-form-input-placeholder;
- }
- :host #input-container ::content input::placeholder {
- @apply --q-form-input-placeholder;
- }
- :host #input-container ::content input:focus {
- @apply --q-form-input-focused;
- }
- :host #label-float-placeholder {
- height: calc(var(--q-input-height, var(--q-input-height-default)) * .75);
- margin-bottom: var(--q-input-container-label-offset, 0);
- }
- :host #label {
- @apply (--no-select);
- position: absolute;
- top: calc(var(--q-input-container-label-offset, 0) * -1);
- left: 0;
- right: 0;
- width: 100%;
- height: var(--q-input-height, var(--q-input-height-default));
- line-height: var(--q-input-height, var(--q-input-height-default));
- margin: 0;
- transform-origin: top left;
- transition: transform .25s, width .25s, color .25s;
- pointer-events: none;
- @apply --q-form-label;
- }
- :host #required-star {
- display: inline-block;
- margin-left: 2px;
- }
- :host:not([input-is-required]) #required-star {
- display: none;
- }
- :host #content ::content q-icon {
- color: var(--q-form-input-underline-color, #ccc);
- }
- :host[input-is-focused] #content ::content q-icon {
- color: var(--q-form-input-highlight-color, #ccc);
- }
- :host[state="invalid"] #content ::content q-icon {
- color: var(--q-error-bg-color, #c9302c);
- }
- :host[state="invalid"] #container {
- border-bottom-color: var(--q-error-bg-color, #c9302c);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0;
- }
- :host[state="invalid"] #container #label {
- color: var(--q-error-bg-color, #c9302c);
- }
- :host[input-is-disabled] #content ::content q-icon {
- color: var(--q-disabled-bg-color, #ccc);
- }
- :host[input-is-disabled] #container {
- border-bottom-color: var(--q-disabled-bg-color, #ccc);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0;
- }
- :host[input-is-disabled] #container ::content input {
- color: var(--q-disabled-bg-color, #ccc);
- }
- :host[input-is-disabled] #container #label {
- color: var(--q-disabled-bg-color, #ccc);
- }
- :host[state="warning"] #content ::content q-icon {
- color: var(--q-warning-bg-color, #f0ad4e);
- }
- :host[state="warning"] #container {
- border-bottom-color: var(--q-warning-bg-color, #f0ad4e);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0;
- }
- :host[state="warning"] #container ::content input {
- color: var(--q-warning-bg-color, #f0ad4e);
- }
- :host[state="warning"] #container #label {
- color: var(--q-warning-bg-color, #f0ad4e);
- }
- :host[state="success"] #content ::content q-icon {
- color: var(--q-success-bg-color, #449d44);
- }
- :host[state="success"] > #container {
- border-bottom-color: var(--q-success-bg-color, #449d44);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0;
- }
- :host[state="success"] > #container ::content input {
- color: var(--q-success-bg-color, #449d44);
- }
- :host[state="success"] > #container #label {
- color: var(--q-success-bg-color, #449d44);
- }</style><div id="container" class$="[[_computeContainerClass(noLabelFloat,alwaysFloatLabel,inputHasPlaceholder,inputIsFocused,inputHasValue)]]"><div id="label-float-placeholder" hidden$="[[!label]]"></div><div id="content"><content select="[prefix]"></content><div id="input-container"><q-label id="label" hidden$="[[!label]]">[[label]]<span id="required-star">*</span></q-label><content id="input-content" select="input,textarea"></content></div><content select="[suffix]"></content></div></div></template><script>Polymer({is:"q-input-container",behaviors:[Polymer.QuantumCoreControlStateBehavior],properties:{label:{type:String,value:""},alwaysFloatLabel:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},state:{readOnly:!0,type:String,reflectToAttribute:!0},inputIsFocused:{readOnly:!0,type:Boolean,value:!1},inputHasValue:{readOnly:!0,type:Boolean,value:!1,reflectToAttribute:!0},inputIsRequired:{readOnly:!0,type:Boolean,value:!1,reflectToAttribute:!0},inputHasPlaceholder:{readOnly:!0,type:Boolean,value:!1},inputIsDisabled:{readOnly:!0,type:Boolean,value:!1,reflectToAttribute:!0},inputElement:{readOnly:!0,type:Object}},listeners:{keydown:"_onKeydown"},hostAttributes:{tabindex:0},ready:function(){Polymer.dom(this.$["input-content"]).observeNodes(function(e){e.addedNodes.length&&(this._setInputElement(e.addedNodes[0]),this.inputElement.addEventListener("q-value-changed",this._onInputValueChanged.bind(this)),this.inputElement.addEventListener("q-placeholder-changed",this._onInputPlaceholderChanged.bind(this)),this.inputElement.addEventListener("q-required-changed",this._onInputRequiredChanged.bind(this)),this.inputElement.addEventListener("q-disabled-changed",this._onInputDisabledChanged.bind(this)),this.inputElement.addEventListener("q-focused-changed",this._onInputFocusedChanged.bind(this)),this._setInputIsRequired(this.inputElement.getAttribute("required")),this._setInputIsDisabled(this.inputElement.getAttribute("disabled")))}.bind(this))},_onKeydown:function(e){e.shiftKey&&9===e.which&&this._onShiftTabDown()},_onInputValueChanged:function(e){this.autoValidate&&(this.validate()||this._setState("invalid"));var t=e.detail.value;!t||""===t&&0!==t?this._setInputHasValue(!1):this._setInputHasValue(!0),this.fire("value-changed",{value:t})},_onInputPlaceholderChanged:function(e){this._setInputHasPlaceholder(""!==e.detail.value)},_onInputRequiredChanged:function(e){this._setInputIsRequired(!0===e.detail.value)},_onInputDisabledChanged:function(e){this._setInputIsDisabled(!0===e.detail.value)},_onInputFocusedChanged:function(e){this._setInputIsFocused(!0===e.detail.value)},_computeContainerClass:function(e,t,n,i,a){var s=[];return e?a&&s.push("label-is-hidden"):(t||a||n)&&s.push("label-is-floating"),i&&s.push("is-highlighted"),s.join(" ")},validate:function(){return!!this.inputIsDisabled||(this.inputElement.validate()?(this._setState("success"),!0):(this._setState("invalid"),!1))},_focusBlurHandler:function(e){Polymer.QuantumCoreControlStateBehavior._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this.inputElement&&this.inputElement.focus()},_onShiftTabDown:function(){var e=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async(function(){this.setAttribute("tabindex",e),this._shiftTabPressed=!1},1)}})</script></dom-module><dom-module id="q-form-input" assetpath="../components/q-form-input/"><template><style>:host {
- display: block;
- --highlight-width: var(--q-form-input-highlight-width, 2px);
- --underline-width: var(--q-form-input-underline-width, 1px);
- --underline-color: var(--q-form-input-underline-color, #eee);
- --underline-margin: calc(var(--highlight-width) - var(--underline-width));
- @apply --q-form-input; }
- :host [hidden] {
- display: none; }
- :host[focused] {
- outline: none; }
- :host > #container {
- border-bottom: var(--underline-width) solid var(--underline-color);
- margin-bottom: var(--underline-margin); }
- :host > #container.is-highlighted {
- border-bottom-color: var(--q-form-input-highlight-color, #ccc);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0; }
- :host > #container.is-highlighted #required-star {
- color: var(--q-error-bg-color, #f00); }
- :host > #container.is-highlighted #label {
- color: var(--q-form-input-highlight-color, #ccc); }
- :host > #container.label-is-floating #input-container {
- position: static; }
- :host > #container.label-is-floating #label {
- transform: translate(0, -75%) scale(0.75);
- width: 133%;
- cursor: default; }
- :host > #container.label-is-hidden #label {
- display: none; }
- :host #content {
- @apply (--layout-horizontal);
- @apply (--layout-center);
- position: relative;
- padding-bottom: var(--q-form-input-underline-padding, 4px); }
- :host > #container {
- position: relative; }
- :host > #container ::content [suffix] {
- @apply (--layout-flex-none); }
- :host > #container ::content [suffix] {
- margin-left: 5px; }
- :host ::content [prefix] {
- @apply (--layout-flex-none);
- margin-right: 5px; }
- :host #input-container {
- @apply (--layout-flex-auto);
- position: relative; }
- :host #input-container input {
- width: 100%;
- border: none;
- border: 0;
- margin-bottom: 0;
- @apply --q-form-input; }
- :host #input-container input::-moz-placeholder {
- @apply --q-form-input-placeholder; }
- :host #input-container input:-moz-placeholder {
- @apply --q-form-input-placeholder; }
- :host #input-container input::-webkit-input-placeholder {
- @apply --q-form-input-placeholder; }
- :host #input-container input:-ms-input-placeholder {
- @apply --q-form-input-placeholder; }
- :host #input-container input::placeholder {
- @apply --q-form-input-placeholder; }
- :host #input-container input:focus {
- @apply --q-form-input-focused; }
- :host #label-float-placeholder {
- height: calc(var(--q-input-height) * .75); }
- :host #label {
- @apply (--no-select);
- cursor: text;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- width: 100%;
- height: var(--q-input-height);
- line-height: var(--q-input-height);
- margin: 0;
- color: #aaa;
- transform-origin: top left;
- transition: transform .25s, width .25s, color .25s;
- font-family: 'Roboto Condensed', sans-serif;
- font-size: 16px;
- font-weight: normal;
- pointer-events: none;
- @apply --q-form-input-label; }
- :host #required-star {
- display: inline-block;
- margin-left: 2px; }
- :host:not([required]) #required-star {
- display: none; }
- :host #content ::content q-icon {
- color: var(--q-form-input-underline-color, #ccc); }
- :host[focused] #content ::content q-icon {
- color: var(--q-form-input-highlight-color, #ccc); }
- :host[state="invalid"] #content ::content q-icon {
- color: var(--q-error-bg-color, #c9302c); }
- :host[state="invalid"] #container {
- border-bottom-color: var(--q-error-bg-color, #c9302c);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0; }
- :host[state="invalid"] #container #label {
- color: var(--q-error-bg-color, #c9302c); }
- :host[state="disabled"] #content ::content q-icon {
- color: var(--q-disabled-bg-color, #ccc); }
- :host[state="disabled"] #container {
- border-bottom-color: var(--q-disabled-bg-color, #ccc);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0; }
- :host[state="disabled"] #container ::content input {
- color: var(--q-disabled-bg-color, #ccc); }
- :host[state="disabled"] #container #label {
- color: var(--q-disabled-bg-color, #ccc); }
- :host[state="warning"] #content ::content q-icon {
- color: var(--q-warning-bg-color, #f0ad4e); }
- :host[state="warning"] #container {
- border-bottom-color: var(--q-warning-bg-color, #f0ad4e);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0; }
- :host[state="warning"] #container ::content input {
- color: var(--q-warning-bg-color, #f0ad4e); }
- :host[state="warning"] #container #label {
- color: var(--q-warning-bg-color, #f0ad4e); }
- :host[state="success"] #content ::content q-icon {
- color: var(--q-success-bg-color, #449d44); }
- :host[state="success"] > #container {
- border-bottom-color: var(--q-success-bg-color, #449d44);
- border-bottom-width: var(--highlight-width);
- margin-bottom: 0; }
- :host[state="success"] > #container ::content input {
- color: var(--q-success-bg-color, #449d44); }
- :host[state="success"] > #container #label {
- color: var(--q-success-bg-color, #449d44); }</style><q-input-container label$="[[label]]" always-float-label$="[[alwaysFloatLabel]]" no-label-float$="noLabelFloat"><content></content><input is="q-input" id="input" disabled$="[[disabled]]" title$="[[title]]" allowed-input="[[allowedInput]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autofocus$="[[autofocus]]" autocomplete="[[autocomplete]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" bind-value="{{value}}" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" tabindex$="[[tabindex]]" accept$="[[accept]]" multiple$="[[multiple]]"></q-input-container></template><script>Polymer({is:"q-form-input",behaviors:[Polymer.QuantumCoreFormInputBehavior]})</script></dom-module><dom-module id="q-search" assetpath="../components/q-search/"><style>:host {
- display: block;
- color: var(--q-search-icon-color);
- --q-form-input-underline-color: var(--q-search-underline-color, #000);
- --q-form-input-underline-width: 0;
- --q-form-input-highlight-color: var(--q-search-highlight-color, #000);
- --q-form-input-highlight-width: 0;
- --q-form-input-underline-padding: 0;
- padding-bottom: 4px;
- border-bottom: var(--q-search-underline-width, 1px) solid var(--q-search-underline-color, #000);
- @apply --q-search; }
- :host ::content [hidden],
- :host [hidden] {
- display: none; }
- :host[collapses] {
- border-bottom: 0; }
- :host #input-container {
- @apply --layout-horizontal;
- @apply --layout-start;
- @apply --layout-justified;
- @apply --layout-end-justified;
- width: 100%;
- position: relative;
- border-bottom: var(--q-search-underline-width, 1px) solid var(--q-search-underline-color, #000);
- @apply --q-search-input-container; }
- :host #input-container #icon-container {
- margin-right: 5px; }
- :host #input-container q-form-input {
- width: 100%;
- overflow: hidden;
- display: inline-block;
- vertical-align: middle;
- --q-form-input: { @apply --q-search-input; };
- --q-form-input-placeholder: { @apply --q-search-input-placeholder; };
- --q-form-input-focused: { @apply --q-search-input-focused; }; }
- :host #input-container q-icon {
- vertical-align: middle;
- color: var(--q-search-icon-color);
- --q-icon-color: var(--q-search-icon-color); }
- :host q-dropdown {
- background: transparent;
- @apply --q-search-results-container; }
- :host q-dropdown #results {
- @apply --q-search-results; }
- :host q-dropdown[opened] {
- display: block; }
- :host q-dropdown[opened] #results {
- @apply --q-search-results-opened; }
- :host[no-dropdown] q-dropdown {
- display: none; }
- :host[collapses] #input-container q-form-input {
- width: 0%;
- transition: width .15s; }
- :host[collapses][opened] #input-container q-form-input {
- width: 100%; }
- :host[collapses][value-exists] #input-container q-form-input {
- width: 100%; }
- :host:not([opened]):not([value-exists]) #reset-icon {
- display: none; }
- :host #no-results {
- @apply --q-search-results-empty; }
- :host[inline-results] > q-dropdown {
- display: block; }
- :host > #input-container > q-label#placeholder {
- display: none;
- @apply --q-search-placeholder-label; }</style><template strip-whitespace=""><div id="input-container"><q-label id="placeholder">{{placeholder}}</q-label><div id="icon-container"><q-icon name="spinner" class="spin animated infinite" hidden$="[[!loading]]"></q-icon><q-icon id="search-icon" name$="[[icon]]" hidden$="[[loading]]"></q-icon></div><q-form-input id="form-input" disabled$="[[disabled]]" title$="[[title]]" invalid="{{invalid}}" allowed-input="[[allowedInput]]" type="text" pattern$="[[pattern]]" autofocus$="[[autofocus]]" autocomplete="off" inputmode$="[[inputmode]]" name$="[[name]]" bind-value="{{value}}" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" label="[[label]]" tabindex$="[[tabindex]]"><q-icon id="reset-icon" name="times" on-tap="reset" hidden$="[[!showReset]]" suffix=""></q-icon></q-form-input></div><q-dropdown id="dropdown" opened="{{opened}}" inline="[[inlineResults]]"><div id="results"><q-list id="no-results" list-style="none" hidden$="[[!noResults]]"><q-label>No results found.</q-label></q-list><content id="test" select="q-list"></content></div></q-dropdown></template><script>Polymer({is:"q-search",behaviors:[Polymer.QuantumCoreControlStateBehavior],properties:{name:{type:String},showReset:{type:Boolean,value:!1},label:{type:String},icon:{type:String,value:"search"},placeholder:{type:String,value:"Search..."},url:{type:String,value:null},autoSuggest:{type:Object,value:!0},suggestWait:{type:Number,value:500},_filterTimeout:{type:Object,value:null},noDropdown:{type:Boolean,value:!1},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,observer:"updateStyles"},query:{type:String,notify:!0},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},collapses:{type:Boolean,value:!1,reflectToAttribute:!0},valueExists:{type:Boolean,value:!1,reflectToAttribute:!0},loading:{readOnly:!0,type:Boolean,value:!1},loaded:{readOnly:!0,type:Boolean,value:!1},noResults:{readOnly:!0,type:Boolean,value:!1},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}},inlineResults:{type:Boolean,value:!1},_requestManager:{type:Object,value:Polymer.QuantumCoreRequestManager}},listeners:{tap:"_onTap","q-item-selected":"_onItemSelected"},get inputElement(){return this.$["form-input"].inputElement},_onTap:function(e){void 0!==e.path&&-1!==e.path.indexOf(this.$.dropdown)||this.open()},_onItemSelected:function(){this.close()},reset:function(){this.inputElement.value="",this._onValueChanged({detail:{value:""}})},attached:function(){var e=this.$["form-input"],t=this.$.dropdown;e.addEventListener("value-changed",this._onValueChanged.bind(this)),this.value&&this.inputElement.setAttribute("value",this.value),t.clickSafeTarget=this,t.anchorTarget=this.$["input-container"],t.sizingTarget=this.$["input-container"],t.addEventListener("q-overlay-closed",function(e){this.inputElement.blur()}.bind(this))},_onValueChanged:function(e){var t=this,n=e.detail.value;this.query=n,this.valueExists=!(!n||""==n&&0!==n);var t=this;clearTimeout(this._filterTimeout),this._filterTimeout=setTimeout(function(){var n=new CustomEvent("suggest",{detail:{query:e.detail.value}});t.dispatchEvent(n),t.autoSuggest&&t.filter(e.detail.value),console.log("as",t.autoSuggest)},this.suggestWait)},load:function(e){if(!e)return this._setLoading(!1),this._setLoaded(!0),void this.open();if(!this.loading){this._setLoading(!0),this._setLoaded(!1);var t=this;this._requestManager.send({url:e,responseType:"json",callback:function(e){t.fire("q-load",{response:e,callback:function(e){var n=0;t.clearResults();for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o.hasOwnProperty("items")&&o.items.length){var a=document.createElement("q-list");if(o.hasOwnProperty("label")&&""!==o.label){var l=document.createElement("q-label");l.innerText=o.label,Polymer.dom(a).appendChild(l)}for(var s=0;s<o.items.length;++s){var r=o.items[s],u=document.createElement("q-item");if(r.hasOwnProperty("text")&&(u.innerText=r.text),r.hasOwnProperty("data"))for(var i in r.data)r.data.hasOwnProperty(i)&&u.setAttribute("data-"+i,r.data[i]);Polymer.dom(a).appendChild(u),n+=1}}Polymer.dom(t).appendChild(a)}t._setNoResults(!1),t._setLoading(!1),t._setLoaded(!0),t.open()}})}})}},filter:function(e){var t=new RegExp(e,"i"),n=this.queryAllEffectiveChildren("q-list"),i=0;n.map(function(e){for(var n=0,o=e.querySelectorAll("q-item"),a=0;a<o.length;++a){var l=o[a],s=l.textContent;t.test(s)?(n+=1,l.removeAttribute("hidden")):l.setAttribute("hidden","")}n?(i+=1,e.removeAttribute("hidden")):e.setAttribute("hidden","")}),i?this._setNoResults(!1):this._setNoResults(!0),this.inlineResults||this.$.dropdown.fit()},_focusBlurHandler:function(e){Polymer.QuantumCoreControlStateBehavior._focusBlurHandler.call(this,e),this.focused&&this.open()},clearResults:function(){for(var e=this.queryAllEffectiveChildren("q-list"),t=0;t<e.length;++t)Polymer.dom(e[t].parentNode).removeChild(e[t]);this._setNoResults(!0)},toggle:function(){this.opened?this.close():this.open()},open:function(){if(!this.disabled){if(!this.loaded)return void this.load(this.url);this.inputElement.focus(),this.opened=!0,this.$.dropdown.open()}},close:function(){this.opened=!1,this.$.dropdown.close()}})</script></dom-module><script>Polymer.QuantumCoreCheckedElementBehaviorImpl={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0}},_checkedChanged:function(){this.active=this.checked},_buttonStateChanged:function(){this.disabled||this.isAttached&&(this.checked=this.active)}},Polymer.QuantumCoreCheckedElementBehavior=[Polymer.QuantumCoreButtonStateBehavior,Polymer.QuantumCoreCheckedElementBehaviorImpl]</script><dom-module id="q-checkbox" assetpath="../components/q-selector/"><template><style>:host {
- @apply --q-font-common-base;
- display: inline-block;
- white-space: nowrap;
- cursor: pointer;
- line-height: 0;
- outline-width: 0;
- @apply --q-checkbox; }
- :host #checkContainer {
- display: inline-block;
- vertical-align: middle;
- margin: 15px;
- padding: 0;
- border-radius: 5px;
- background-color: var(--q-checkbox-bg-color, transparent);
- -webkit-transition: padding 0.15s ease-in-out, margin 0.15s ease-in-out, background-color 0.15s;
- -moz-transition: padding 0.15s ease-in-out, margin 0.15s ease-in-out, background-color 0.15s;
- -o-transition: padding 0.15s ease-in-out, margin 0.15s ease-in-out, background-color 0.15s;
- -ms-transition: padding 0.15s ease-in-out, margin 0.15s ease-in-out, background-color 0.15s;
- transition: padding 0.15s ease-in-out, margin 0.15s ease-in-out, background-color 0.15s; }
- :host #iconChecked {
- display: none; }
- :host[checked] #iconChecked {
- display: block; }
- :host[checked] #iconUnchecked {
- display: none; }
- :host:not([disabled]):hover #checkContainer {
- background-color: #eeeeee;
- padding: 10px;
- margin: 5px; }
- :host #label {
- display: inline-block;
- vertical-align: middle;
- line-height: normal; }
- :host[disabled] {
- cursor: default; }
- :host[disabled] #checkContainer {
- opacity: .5; }
- :host[disabled] #label {
- opacity: .65; }</style><div id="checkContainer"><q-icon id="iconChecked" name="check-square" size="md"></q-icon><q-icon id="iconUnchecked" name="square" size="md"></q-icon></div><div id="label"><content></content></div></template><script>!function(){Polymer({is:"q-checkbox",behaviors:[Polymer.QuantumCoreCheckedElementBehavior],hostAttributes:{role:"checkbox",tabindex:0},properties:{name:{type:String,value:""},value:{type:String,value:""}}})}()</script></dom-module><dom-module id="q-stacked-card-model-simple-3" assetpath="../components/q-stacked-card/"><template><div id="content"><content select="q-icon, h1, h2, h3, h4, h5, h6, q-subtext"></content></div></template><script>Polymer({is:"q-stacked-card-model-simple-3"})</script></dom-module><dom-module id="q-stacked-card" assetpath="../components/q-stacked-card/"><template><style>:host {
- display: block;
- padding: 40px;
- background: var(--q-stacked-card-background);
- width: var(--q-stacked-card-width, 300px);
- margin: var(--q-stacked-card-margin);
- @apply --q-stacked-card;
- }
- :host #modelContentContainer {
- margin: 0 auto;
- @apply --q-stacked-card-content;
- }
- :host([horizontal-align="left"]) {
- text-align: left;
- }
- :host([horizontal-align="center"]) {
- text-align: center;
- }
- :host([horizontal-align="right"]) {
- text-align: right;
- }</style><div id="modelContentContainer"><content id="modelContent"></content></div></template><script>Polymer({is:"q-stacked-card",properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0}}})</script></dom-module><dom-module id="q-sub-nav-list" assetpath="../components/q-sub-nav-list/"><template><style>:host {
- display: block;
- overflow: hidden;
- @apply --q-sub-nav-list; }
- :host [hidden] {
- display: none; }
- :host > #header {
- @apply --q-sub-nav-list-header; }
- :host > #header #sub-header {
- margin-top: 20px;
- @apply --q-sub-nav-list-sub-header; }
- :host > #content {
- margin-top: -40px; }
- :host > #content ::content q-list {
- padding-top: 40px; }
- :host > #content ::content q-list q-label {
- @apply --q-sub-nav-list-title; }
- :host > #content ::content q-list q-item {
- @apply --q-sub-nav-list-item; }
- :host > #content ::content q-list q-item:not(:first-of-type) {
- margin-top: 10px; }</style><div id="header"><content select="h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child, q-subtext:first-child"></content><div id="sub-header"><content select="h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child), h6:not(:first-child), q-subtext:not(:first-child)"></content></div></div><div id="content"><content></content></div></template><script>Polymer({is:"q-sub-nav-list"})</script></dom-module><dom-module id="q-subtext" assetpath="../components/q-subtext/"><template><style>:host {
- @apply --q-font-subtext;
- display: block;
- @apply --q-subtext; }</style><content></content></template><script>Polymer({is:"q-subtext"})</script></dom-module><dom-module id="q-tag" assetpath="../components/q-tag/"><template><style>:host {
- display: inline-block;
- color: #fff;
- padding: 4px 6px;
- border: 2px solid;
- font-family: 'Open Sans', sans-serif;
- font-weight: 600;
- font-size: 10px;
- text-transform: uppercase;
- border-radius: 4px;
- cursor: default;
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- -ms-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- @apply --q-tag; }
- :host[dynamic]:hover {
- cursor: pointer;
- @apply --q-tag-hover; }
- :host[color="charcoal"] {
- background-color: #3a4041;
- border-color: #3a4041;
- @apply --q-tag-charcoal; }
- :host[color="charcoal"][dynamic]:hover {
- background-color: #626266;
- border-color: #626266; }
- :host[color="green_sea"] {
- background-color: #13a085;
- border-color: #13a085; }
- :host[color="green_sea"][dynamic]:hover {
- background-color: #1abc9c;
- border-color: #1abc9c; }
- :host[color="pacifica"] {
- background-color: #2980b9;
- border-color: #2980b9; }
- :host[color="pacifica"][dynamic]:hover {
- background-color: #3498db;
- border-color: #3498db; }
- :host[color="pomegranate"] {
- background-color: #c03a2a;
- border-color: #c03a2a; }
- :host[color="pomegranate"][dynamic]:hover {
- background-color: #e74c3c;
- border-color: #e74c3c; }
- :host[color="carrot"] {
- background-color: #e67e22;
- border-color: #e67e22; }
- :host[color="carrot"][dynamic]:hover {
- background-color: #f39c12;
- border-color: #f39c12; }
- :host[color="emerald"] {
- background-color: #27ad60;
- border-color: #27ad60; }
- :host[color="emerald"][dynamic]:hover {
- background-color: #2ecc71;
- border-color: #2ecc71; }
- :host[color="wisteria"] {
- background-color: #8e44ad;
- border-color: #8e44ad; }
- :host[color="wisteria"][dynamic]:hover {
- background-color: #9b59b6;
- border-color: #9b59b6; }
- :host[color="concrete"] {
- background-color: #7f8c8d;
- border-color: #7f8c8d; }
- :host[color="concrete"][dynamic]:hover {
- background-color: #b3c5c5;
- border-color: #b3c5c5; }
- :host[color="midnight"] {
- background-color: #34495e;
- border-color: #34495e; }
- :host[color="midnight"][dynamic]:hover {
- background-color: #3e5a6d;
- border-color: #3e5a6d; }</style><content></content></template><script>Polymer({is:"q-tag",properties:{color:{type:String,value:"charcoal",reflectToAttribute:!0}}})</script></dom-module><dom-module id="z-article-vote" assetpath="../components/z-article-vote/"><template><style>:host {
- display: inline-block;
- @apply --z-article-vote;
- }
- :host [hidden] {
- display: none;
- }
- :host #content {
- @apply --layout-horizontal;
- @apply --layout-start;
- }
- :host #options {
- margin-right: 10px;
- white-space: nowrap;
- }
- :host #options ::content a:before {
- content: '';
- }
- :host #options ::content a {
- @apply --z-article-vote-link;
- }
- :host #options ::content a.article-voted {
- @apply --z-article-vote-link-active;
- }
- :host #copy ::content h6 {
- @apply --z-article-vote-headline;
- }
- :host #copy ::content q-meta {
- @apply --z-article-vote-meta;
- }</style><div id="content"><div id="options"><content select="a"></content></div><div id="copy"><content select="h6"></content><content select="q-meta"></content></div></div></template><script>Polymer({is:"z-article-vote",ready:function(){var e,t,o=Polymer.dom(this).querySelector("a.article-vote-up"),r=Polymer.dom(this).querySelector("a.article-vote-down");o&&(e=document.createElement("q-icon"),e.setAttribute("name","thumbs-up"),Polymer.dom(o).appendChild(e)),r&&(t=document.createElement("q-icon"),t.setAttribute("name","thumbs-down"),Polymer.dom(r).appendChild(t))}})</script></dom-module><dom-module id="z-category-list" assetpath="../components/z-category-list/"><style></style><template><q-related-list><q-list><q-label>Categories</q-label><template is="dom-repeat" items="{{categories}}"><q-item><a href="/hc/{{locale}}/categories/{{item.id}}">{{item.name}}</a></q-item></template></q-list></q-related-list></template><script>Polymer({is:"z-category-list",properties:{categories:{type:Array,value:null,observer:"_activeChanged"},locale:{type:String}}})</script></dom-module><script>Polymer.ZendeskFilterNodeBehavior={_filterNodes:function(e,r){var o,t=[];for(o=0;o<e.length;++o)e[o].nodeName.toLowerCase()===r&&t.push(e[o]);return t},_filterChildNodes:function(e,r){var o,t=[];for(o=0;o<e.length;++o)t.push.apply(t,this._filterNodes(e[o].childNodes,r));return t},_filterChildNodesDeep:function(e,r){var o;for(o=0;o<r.length;++o)e=this._filterChildNodes(e,r[o]);return e}}</script><dom-module id="z-footer" assetpath="../components/z-footer/"><template><style>:host {
- display: block;
- @apply --z-footer;
- }
- :host [hidden] {
- display: none;
- }
- :host [slot="bottom"] {
- overflow: hidden;
- }
- :host #riot-logo {
- background-image: url("https://cdn.leagueoflegends.com/lolkit/1.1.9/resources/images/footer-sprite.png");
- background-repeat: no-repeat;
- text-indent: -99999em;
- display: block;
- width: 100px;
- height: 76px;
- float: left;
- }
- :host #riot-copyright {
- float: right;
- max-width: 600px;
- }
- :host #riot-copyright img {
- display: none;
- }
- :host ::content a {
- @apply --q-link;
- }
- :host ::content a:hover {
- @apply --q-link-hover;
- }</style><div id="zContainer" hidden=""><content id="zContent"></content></div><q-footer><div slot="top"><table><tbody><tr id="columnContainer"></tr></tbody></table></div><div id="bottom" slot="bottom"><a id="riot-logo" href="http://www.riotgames.com/">Riot Games</a><p id="riot-copyright"></p></div></q-footer></template><script>Polymer({is:"z-footer",properties:{hasBottomLink:{readOnly:!0,type:Boolean,value:!1}},behaviors:[Polymer.ZendeskFilterNodeBehavior],ready:function(){var e,t,o,d,i,n,l=Polymer.dom(this.$.zContent).getDistributedNodes(),m=this.$.columnContainer,r=this.$["riot-copyright"];t=this._filterNodes(l,"div"),t.map(function(t){"column"===t.getAttribute("slot")?(o=document.createElement("td"),d=document.createElement("h4"),d.textContent=t.childNodes[0].textContent,e=document.createElement("q-list"),i=this._filterChildNodes([t],"a"),i.map(function(t){n=document.createElement("q-item"),Polymer.dom(n).appendChild(t),Polymer.dom(e).appendChild(n)}.bind(this)),Polymer.dom(o).appendChild(d),Polymer.dom(o).appendChild(e),Polymer.dom(m).appendChild(o)):Polymer.dom(r).appendChild(t)}.bind(this))}})</script></dom-module><dom-module id="z-header" assetpath="../components/z-header/"><template><style>:host > #z-header-content {
- display: none;
- }</style><div id="z-header-content"><slot id="slot-my-tickets" name="my-tickets"></slot><slot id="slot-server-status" name="server-status"></slot><slot id="slot-locale" name="locale"></slot><slot id="slot-locales" name="locales"></slot><slot id="slot-user" name="user"></slot></div></template><script>Polymer({is:"z-header",properties:{locale:{type:String,value:$("html").attr("lang").toLowerCase()||"en-us"}},getUserInfo:function(){var t=Polymer.dom(this.$["slot-user"]),e=t.getDistributedNodes()[0],n=e.children[0];return-1!==n.className.indexOf("login")?{loggedIn:!1,loginURL:n.getAttribute("href"),loginText:n.innerText,name:"Anonymous"}:{loggedIn:!0,name:e.querySelector('span[id="user-name"]').textContent.trim()}},getMyTicketText:function(){return Polymer.dom(this.$["slot-my-tickets"]).getDistributedNodes()[0].textContent},getLocales:function(){var t=Polymer.dom(this.$["slot-locales"]).getDistributedNodes()[0].children;return _.map(t,function(t){var e=t.getAttribute("value"),n=e.match(/change_language\/(.+)\?/)[1];return{locale:n,lang:n.substr(0,2),languageName:t.textContent.trim(),landingUrl:e}})},ready:function(){var t=this.getUserInfo();window.riotBarConfig={mobileResponsive:!0,navigation:{title:"Support",links:[{id:"my-tickets",text:this.getMyTicketText(),url:"/hc/requests",subtext:""},{id:"submit-a-request",text:"Submit a Request",url:"/hc/requests/new",subtext:""},{id:"service-status",text:"Server Status",url:"https://status.leagueoflegends.com/",subtext:""}]},locale:{locales:{na:this.getLocales()}}};var e=document.createElement("script");e.setAttribute("src","https://lolstatic-a.akamaihd.net/riotbar/prod/latest/en_US.js"),document.body.appendChild(e),e.addEventListener("load",function(){var e=$('<a class="riotbar-anonymous-link riotbar-account-action" />');t.loggedIn?e.attr("href","#").text(t.name):e.attr("href",t.loginURL).text(t.loginText),$("#riotbar-account").empty().append(e)})}})</script></dom-module><script>Polymer.QuantumCoreDropdownButtonBehaviorImpl={properties:{opened:{type:Boolean,value:!1,reflectToAttribute:!0},label:{type:String,value:"Select Options"},size:{type:String,value:"md",reflectToAttribute:!0}},toggle:function(){this.opened?this.close():this.open()},open:function(){if(this.disabled)return!1;this.$.dropdown.open()},close:function(){this.$.dropdown.close()}},Polymer.QuantumCoreDropdownButtonBehavior=[Polymer.QuantumCoreControlStateBehavior,Polymer.QuantumCoreDropdownButtonBehaviorImpl]</script><dom-module id="q-dropdown-button-shared-styles" assetpath="../components/q-dropdown-button/"><template><style>:host {
- display: inline-block;
- }
- :host #opened-indicator {
- display: none;
- }
- :host[opened] #opened-indicator {
- display: inline-block;
- }
- :host[opened] #closed-indicator {
- display: none;
- }</style></template></dom-module><script>!function(){"use strict";function e(e){return e.trim().split(" ").map(function(e){return t(e)})}function t(e){if(1===e.length)return{key:e,combo:e,event:"keydown"};var t,r,n,i={},u=e.split(":");return u.length>1&&(n=u[1]),i.combo=u[0],t=u[0].split("+"),t.length>1?(r=t[0],i.key=t[1],o.hasOwnProperty(r)&&(i.hasModifiers=!0,i[o[r]]=!0)):i.key=t[0],i.event=n||"keydown",i}function r(e){var t="";return Number(e)&&(e>=65&&e<=90?t=String.fromCharCode(e).toLowerCase():e>=112&&e<=123?t="f"+(e-111):e>=48&&e<=105?t=String(e-48):e>=96&&e<=105?t=String(e-96):u.hasOwnProperty(e)&&(t=u[e])),t}function n(e){return r(e.keyCode)}function i(e,t){if(n(e)!==t.key)return!1;if(t.hasModifiers)for(var r in o)if(o.hasOwnProperty(r)){var i=o[r];if(!!e[i]!=!!t[i])return!1}return!0}var o={alt:"altKey",shift:"shiftKey",ctrl:"ctrlKey",meta:"metaKey"},u={13:"enter",27:"esc",32:"space",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down"};Polymer.QuantumCoreA11yKeysBehavior={eventMatchesKeyString:function(e,t){return!!this.getMatchingEventKeyCombo(e,t)},getMatchingEventKeyCombo:function(t,r){for(var n=e(r),o=0;o<n.length;++o)if(i(t,n[o]))return n[o];return null}}}()</script><dom-module id="q-dropdown-button-list" assetpath="../components/q-dropdown-button/"><template><style is="custom-style" include="q-dropdown-button-shared-styles">:host q-button {
- min-width: 150px;
- @apply --q-dropdown-button-list-button;
- }
- :host q-button:hover {
- @apply --q-dropdown-button-list-button-hover;
- }
- :host q-button:focus {
- @apply --q-dropdown-button-list-button-focus;
- }
- :host q-dropdown {
- max-height: 300px;
- overflow-y: auto;
- margin-top: 10px;
- }
- :host q-button q-icon {
- @apply --q-dropdown-button-list-button-icon;
- }
- :host #content ::content q-list q-label {
- display: block;
- padding: 10px 0;
- margin: 0 0 0 20px;
- border-top: 1px solid #000;
- }
- :host #content ::content q-list:first-child q-label {
- border-top-width: 0;
- }
- :host #content ::content q-list q-item {
- display: flex;
- list-style: none;
- white-space: nowrap;
- padding: 10px 20px;
- margin: 0;
- @apply --q-dropdown-button-list-list-item;
- }
- :host #content ::content q-list q-item:hover {
- @apply --q-dropdown-button-list-list-item-hover;
- }
- :host #content ::content q-list q-item[highlighted] {
- @apply --q-dropdown-button-list-list-item-highlighted;
- }
- :host #content ::content q-list a {
- display: block;
- }</style><input type="hidden" name$="{{name}}" value$="{{selectedValue}}"><q-button id="button" size="{{size}}" on-tap="toggle"><span>{{label}}</span><q-icon id="closed-indicator" name="caret-down" size="sm"></q-icon><q-icon id="opened-indicator" name="caret-up" size="sm"></q-icon></q-button><q-dropdown id="dropdown" disabled="[[disabled]]" opened="{{opened}}"><div id="content"><content select="q-label,q-list" id="contentNode"></content></div></q-dropdown></template><script>Polymer({is:"q-dropdown-button-list",behaviors:[Polymer.QuantumCoreDropdownButtonBehavior,Polymer.QuantumCoreA11yKeysBehavior],properties:{name:{type:String,value:""},selectedValue:{type:String,notify:!0,observer:"_selectedValueChange",value:""},hasFocus:{readOnly:!0,type:Boolean,value:!1},highlightedItem:{readOnly:!0,type:Object}},listeners:{keydown:"_onKeydown"},attached:function(){var e=this;this.$.dropdown.sizingTarget=this.$.button,this.$.button.addEventListener("q-focused-changed",function(e){!0===e.detail.value?this._setHasFocus(!0):this._setHasFocus(!1)}.bind(this)),this.selectedValue&&this.updateSelection();var t=Polymer.dom(this).querySelectorAll("q-list");t.length&&t.map(function(t){t.addEventListener("q-item-selected",function(t){e._selectItem(t.detail.item)})});var e=this;this.$.content.addEventListener("DOMSubtreeModified",function(t){e.updateSelection()})},_selectItem:function(e){this.selectedValue=e.getAttribute("value"),this.label=e.innerText.trim(),this.$.dropdown.close(),this.fire("q-value-changed",{value:this.selectedValue})},_onKeydown:function(e){var t=this.getMatchingEventKeyCombo(e,"up down enter");t&&(e.preventDefault(),"enter"===t.key?this.$.dropdown.opened?this.highlightedItem?this._selectItem(this.highlightedItem):this.$.dropdown.close():this.$.dropdown.open():(this.$.dropdown.open(),"up"===t.key?(this._selectPreviousListItem(),this._scrollToHighlightedItem()):"down"===t.key&&(this._selectNextListItem(),this._scrollToHighlightedItem())))},_scrollToHighlightedItem:function(){var e=this.highlightedItem.offsetTop,t=this.highlightedItem.offsetHeight,i=this.$.dropdown.scrollTop,h=this.$.dropdown.clientHeight;e<i&&(this.$.dropdown.scrollTop=e),e+t>h+i&&(this.$.dropdown.scrollTop=e+t-h)},_selectPreviousListItem:function(){var e,t=Polymer.dom(this).querySelectorAll("q-list q-item");t.length&&(this.highlightedItem?(this.highlightedItem.removeAttribute("highlighted"),(e=t.indexOf(this.highlightedItem)-1)<0&&(e=0)):e=0,this._setHighlightedItem(t[e]),this.highlightedItem.setAttribute("highlighted",""))},_selectNextListItem:function(){var e,t=Polymer.dom(this).querySelectorAll("q-list q-item");t.length&&(this.highlightedItem?(this.highlightedItem.removeAttribute("highlighted"),(e=t.indexOf(this.highlightedItem)+1)>t.length-1&&(e=t.length-1)):e=0,this._setHighlightedItem(t[e]),this.highlightedItem.setAttribute("highlighted",""))},_itemInPath:function(e){for(var e=e||[],t=0;t<e.length;t++)if(e[t].nodeName&&"q-item"===e[t].nodeName.toLowerCase())return e[t]},_selectedValueChange:function(e,t){e!=t&&this.updateSelection()},updateSelection:function(){var e='q-item[value="'+this.selectedValue+'"]',t=Polymer.dom(this).querySelector(e);t&&(this.label=t.innerText.trim())}})</script></dom-module><dom-module id="z-data-categories" assetpath="../components/z-data-categories/"><style></style><template></template><script>!function(){Polymer({is:"z-data-categories",properties:{data:{type:Array,value:null,notify:!0},_requestManager:{type:Object,value:Polymer.QuantumCoreRequestManager}},ready:function(){var e=this;this._requestManager.send({url:"https://support-search.riotgames.com/categories",responseType:"json",cache:!0,cors:!0,callback:function(a){e.data=a}})}})}()</script></dom-module><script>!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 n=window.encodeURI(this.path).replace(/\#/g,"%23").replace(/\?/g,"%3F"),t="";this.query&&(t="?"+this.query.replace(/\#/g,"%23"));var e="";return this.hash&&(e="#"+window.encodeURI(this.hash)),n+t+e},_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 n=this._getUrl(),t=new URL(n,window.location.protocol+"//"+window.location.host).href,e=window.performance.now(),i=this._lastChangedAt+this.dwellTime>e;this._lastChangedAt=e,i?window.history.replaceState({},"",t):window.history.pushState({},"",t),this.fire("location-changed",{},{node:window})}},_globalOnClick:function(n){return},_getSameOriginLinkHref:function(n){if(0!==n.button)return null;if(n.metaKey||n.ctrlKey)return null;for(var t=Polymer.dom(n).path,e=null,i=0;i<t.length;i++){var o=t[i];if("A"===o.tagName&&o.href){e=o;break}}if(!e)return null;if("_blank"===e.target)return null;if(("_top"===e.target||"_parent"===e.target)&&window.top!==window)return null;var a,h=e.href;a=null!=document.baseURI?new URL(h,document.baseURI):new URL(h);var r;if(window.location.origin?r=window.location.origin:(r=window.location.protocol+"//"+window.location.hostname,window.location.port&&(r+=":"+window.location.port)),a.origin!==r)return null;var l=a.pathname+a.search+a.hash;return this._urlSpaceRegExp&&!this._urlSpaceRegExp.test(l)?null:new URL(l,window.location.href).href},_makeRegExp:function(n){return RegExp(n)}})}()</script><script>"use strict";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 a in e){var r=e[a];""===r?t.push(encodeURIComponent(a)):r&&t.push(encodeURIComponent(a)+"="+encodeURIComponent(r.toString()))}return t.join("&")},_decodeParams:function(e){var t={};e=(e||"").replace(/\+/g,"%20");for(var a=e.split("&"),r=0;r<a.length;r++){var n=a[r].split("=");n[0]&&(t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||""))}return t}})</script><dom-module id="z-page-search-results" assetpath="../components/z-page-search-results/"><style>:host > #content {
- max-width: 1000px;
- margin: 0 auto;
- margin-bottom: 50px; }
- :host {
- --q-icon-color: white;
- --q-tag-charcoal-border: 1px solid #3a4041;
- --q-tag-charcoal-background-color: transparent; }
- :host > #content h1 {
- font-size: 31pt;
- margin-bottom: 44px; }
- :host > #content h2 {
- font-size: 24pt;
- margin-bottom: 23px; }
- /* Input
- ****************************************************/
- :host #search-input {
- margin-bottom: 30px;
- border-bottom: 1px solid #b7b7b7;
- position: relative; }
- :host #search-input input {
- background: transparent;
- width: 100%;
- font-family: "Open Sans";
- font-size: 17px;
- padding: 7px 0 9px 1px; }
- :host #search-input q-icon {
- position: absolute;
- top: 8px;
- right: 1px; }
- /* Filters
- ****************************************************/
- :host #search-results-filter {
- border: 1px dashed #59595b;
- padding: 15px 20px;
- list-style: none;
- margin-bottom: 72px; }
- :host #search-results-filter > li {
- display: inline-block;
- height: 60px;
- vertical-align: top; }
- :host #search-results-filter > li:not(:first-child) {
- margin-left: 10px; }
- :host #search-results-filter > li > h3 {
- color: #838383;
- font-size: 11px;
- font-family: "Open Sans", sans-serif;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: -0.2px;
- margin-bottom: 3px; }
- :host #search-results-filter > li#results-found {
- min-width: 110px; }
- :host #search-results-filter > li#filter-category {
- min-width: 200px; }
- :host #search-results-filter > li#sort-order {
- min-width: 200px; }
- :host #search-results-filter > li > q-dropdown-button-list {
- margin-top: 10px; }
- :host #search-results-filter > li > q-dropdown-button-list ::shadow q-button {
- background: #911610;
- padding: 0;
- min-width: 100px; }
- :host #search-results-filter > li > q-dropdown-button-list ::shadow q-button span {
- border-right: 1px solid rgba(255, 255, 255, 0.25);
- vertical-align: middle;
- padding: 5px 20px 6px 14px;
- font-size: 11px;
- font-family: "Open Sans", sans-serif;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: -0.2px; }
- /* Results
- ****************************************************/
- /* Categories
- ****************************************************/
- :host z-category-list {
- width: 300px;
- margin-bottom: 20px;
- display: block; }
- :host q-overlay-card[image="hextech"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/hextech.png"); }
- :host q-overlay-card[image="livechat"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/livechat.png"); }
- :host q-overlay-card[image="myisp"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/myisp.png"); }</style><template><z-data-categories data="{{categories}}"></z-data-categories><z-waypoint-search><ol class="breadcrumbs"><li title="Staging"><a href="/hc/{{locale}}">Staging</a></li><li title="Search Results">Search Results</li></ol><q-search name="search" icon="search" collapses="" show-reset="" auto-suggest="false"></q-search></z-waypoint-search><div id="content"><h1>Search Results</h1><q-grid fluid=""><q-col xl-size="8"><div id="search-input"><q-icon name="search"></q-icon><input id="searchInputNode" is="q-input" value="[[query]]"></div><ul id="search-results-filter"><li id="results-found"><h3>Results Found</h3><h1>{{search.total}}</h1></li><li id="filter-category"><h3>Filter By</h3><q-dropdown-button-list label="Category" selected-value="{{categoryId}}"><q-list><q-item value="0">All</q-item><template is="dom-repeat" items="{{categories}}"><q-item value$="{{item.id}}">{{item.name}}</q-item></template></q-list></q-dropdown-button-list></li><li id="sort-order"><h3>Sort By</h3><q-dropdown-button-list selected-value="{{sortBy}}"><q-list><q-item value="popular">Most Popular</q-item><q-item value="relevant">Most Relevant</q-item></q-list></q-dropdown-button-list></li></ul><hr><div id="results"><h2>Articles</h2><q-list divided=""><template is="dom-repeat" items="{{search.results}}" as="result"><q-item><q-item-model-simple-4><a href="{{result.url}}">{{result.title}}</a><q-meta>by<a>{{result.author.name}}</a></q-meta><div slot="tags"><template is="dom-repeat" items="{{result.tags}}" as="tag"><q-tag dynamic="">{{tag}}</q-tag></template></div></q-item-model-simple-4></q-item></template></q-list></div><div id="pagination"><q-pagination num-pages="{{search.pages}}" current-page="{{page}}"></q-pagination></div></q-col><q-col xl-size="4"><z-category-list categories="{{categories}}" locale="{{locale}}"></z-category-list><q-card-nav><a href="#"><q-overlay-card image="hextech" horizontal-align="center" vertical-align="center"><q-overlay-card-model-simple-5><h2>Hextech repair tool</h2><p>Can't connect? Try our<br>new repair tool.</p><q-icon name="long-arrow-right" size="md"></q-icon></q-overlay-card-model-simple-5></q-overlay-card></a><a href="#"><q-overlay-card image="livechat" horizontal-align="center" vertical-align="center"><q-overlay-card-model-simple-5><h2>Live chat</h2><p>Get one on one live support<br>with a Rioter.</p><q-icon name="long-arrow-right" size="md"></q-icon></q-overlay-card-model-simple-5></q-overlay-card></a><a href="#"><q-overlay-card image="myisp" horizontal-align="center" vertical-align="center"><q-overlay-card-model-simple-5><h2>Compare My ISP</h2><p>See how your ISP stacks up to others.</p><q-icon name="long-arrow-right" size="md"></q-icon></q-overlay-card-model-simple-5></q-overlay-card></a></q-card-nav></q-col></q-grid></div><iron-location path="{{path}}" query="{{queryString}}"></iron-location><iron-query-params params-string="{{queryString}}" params-object="{{queryParams}}"></iron-query-params></template><script>Polymer({is:"z-page-search-results",properties:{categories:{type:Array,value:null},locale:{type:String,value:$("html").attr("lang").toLowerCase()||"en-us"},search:{type:Object,value:{}},page:{type:Number,observer:"_changePage"},queryParams:{type:Object,observer:"_changeQueryParams"},query:{type:String,observer:"_changeQuery"},sortBy:{type:String,value:"relevant",observer:"_changeSortBy"},categoryId:{type:String,observer:"_changeCategoryId"},searching:{type:Boolean,value:!1},_requestManager:{type:Object,value:Polymer.QuantumCoreRequestManager}},ready:function(){var e=null;this.$.searchInputNode.addEventListener("keyup",function(t){e&&clearTimeout(e),e=setTimeout(function(){this._changeQuery(this.$.searchInputNode.value)}.bind(this),300)}.bind(this))},doSearch:function(e,t,r,a){var s=["query="+encodeURIComponent(e||""),"category_id="+encodeURIComponent(r||0),"sort_by="+encodeURIComponent(a||"relevant"),"page="+encodeURIComponent(t||1)].join("&");this.searching=!0,this._requestManager.send({url:"https://support-search.riotgames.com/search?"+s,responseType:"json",cors:!0,callback:function(e){this.set("search",e),this.searching=!1}.bind(this)})},_changeQueryParams:function(e){this.query=e.query,this.page=e.page||1,this.categoryId=e.category_id,this.sortBy=e.sort_by,this.doSearch(this.query,this.page,this.categoryId,this.sortBy)},_changePage:function(e,t){e!=t&&this.set("queryParams.page",e)},_changeCategoryId:function(e,t){e!=t&&this.set("queryParams.category_id",e)},_changeSortBy:function(e,t){e!=t&&this.set("queryParams.sort_by",e)},_changeQuery:function(e){this.set("queryParams.query",e)}})</script></dom-module><dom-module id="z-related-list" assetpath="../components/z-related-list/"><template><style>:host {
- display: inline-block;
- @apply --z-related-list;
- }
- :host [hidden] {
- display: none;
- }
- :host q-related-list q-list #bottomLinkItem q-icon {
- @apply --z-related-list-bottom-link-icon;
- }
- :host q-related-list q-list #bottomLinkItem {
- @apply --z-related-list-bottom-link;
- }
- :host ::content a {
- @apply --q-link;
- }
- :host ::content a:hover {
- @apply --q-link-hover;
- }</style><div id="zContainer" hidden=""><content id="zContent" select=":not(q-label):not(a)"></content></div><q-related-list><q-list id="qList"><q-label>{{title}}</q-label></q-list></q-related-list></template><script>Polymer({is:"z-related-list",properties:{hasBottomLink:{readOnly:!0,type:Boolean,value:!1}},behaviors:[Polymer.ZendeskFilterNodeBehavior],ready:function(){var e,t,i,o,l=Polymer.dom(this.$.zContent).getDistributedNodes(),d=this.$.qList;if(l=this._filterNodes(l,"section"),i=this._filterChildNodes(l,"a"),o=this._filterChildNodes(l,"h3"),l=this._filterChildNodesDeep(l,["ul","li","a"]),!o||!o.length)return void(this.style.display="none");this.title=o[0].innerText,l.map(function(t){e=document.createElement("q-item"),Polymer.dom(e).appendChild(t),Polymer.dom(d).appendChild(e)}),i&&i.length&&(t=document.createElement("q-icon"),t.setAttribute("name","long-arrow-right"),e=document.createElement("q-item"),e.setAttribute("id","bottomLinkItem"),Polymer.dom(e).appendChild(t),Polymer.dom(e).appendChild(i[0]),Polymer.dom(d).appendChild(e))}})</script></dom-module><dom-module id="z-search" assetpath="../components/z-search/"><template><style>:host {
- display: inline-block;
- @apply --z-search;
- }
- :host [hidden] {
- display: none;
- }</style><form id="search-form"><content id="z-search-content"></content></form></template><script>var SEARCH_URL="https://support-search.riotgames.com/search/";Polymer({is:"z-search",properties:{placeholder:{type:String,value:"Search the League Help Center"},locale:{type:String,value:$("html").attr("lang").toLowerCase()||"en-us"}},ready:function(){var e=Polymer.dom(this.$["z-search-content"]);this.getSuggestions=this.getSuggestions.bind(this),this.qSearch=e.getDistributedNodes()[0],this.qSearch=Polymer.dom(this.qSearch),this.qSearch.node.addEventListener("suggest",this.getSuggestions),this.clearSearch(),this.$["search-form"].addEventListener("submit",function(e){e.preventDefault();var t=window.encodeURIComponent(this.qSearch.node.query);window.location.href="/hc/"+this.locale+"/search?query="+t}.bind(this))},clearSearch:function(){for(;this.qSearch.children.length;)this.qSearch.removeChild(this.qSearch.children[0])},getSuggestions:function(e){var t=e.detail.query;this.search(t).done(this.renderResults.bind(this))},renderResults:function(e){this.clearSearch();var t=_.chain(e.results).groupBy(function(e){return e.category.name}).map(function(e,t){return{category:t,id:e[0].category.id,results:e,score:_.max(e,"score")}}).sortBy("score").value(),r=this;_.each(t,function(e){var t=document.createElement("q-button"),n=document.createElement("q-list"),a=document.createElement("q-label"),i=document.createElement("hr");t.innerText="More",t.addEventListener("click",function(t){window.location.href="/hc/"+r.locale+"/categories/"+e.id}),a.innerText=e.category,n=Polymer.dom(n),n.appendChild(t),n.appendChild(a),n.appendChild(i),_.each(e.results,function(e){var t=document.createElement("a");t.setAttribute("href",e.url),t.innerHTML=e.highlight.title;var r=document.createElement("q-item");Polymer.dom(r).appendChild(t),n.appendChild(r)}),r.qSearch.appendChild(n.node)})},search:function(e,t){return $.ajax({url:SEARCH_URL,data:{page:t||1,query:e,locale:this.locale,limit:10}})}})</script></dom-module><dom-module id="q-textarea" assetpath="../components/q-input/"><script>Polymer({is:"q-textarea",extends:"textarea",behaviors:[Polymer.QuantumCoreControlStateBehavior],properties:{bindValue:{type:String,observer:"_bindValueChanged"},required:{type:Boolean,observer:"_requiredChanged"},placeholder:{type:String,observer:"_placeholderChanged"}},listeners:{input:"_onInput"},ready:function(){this.bindValue=this.value,this._prevValue=this.value},validate:function(){var e=this.checkValidity();return e&&this.required&&""===this.value&&(e=!1),this.invalid=!e,e},_bindValueChanged:function(){this.fire("q-value-changed",{value:this.bindValue})},_requiredChanged:function(){this.fire("q-required-changed",{value:this.required})},_placeholderChanged:function(){this.fire("q-placeholder-changed",{value:this.placeholder})},_disabledChanged:function(){this.fire("q-disabled-changed",{value:this.disabled})},_focusedChanged:function(){Polymer.QuantumCoreControlStateBehavior._focusedChanged.call(this,event),this.fire("q-focused-changed",{value:this.focused})},_onInput:function(){this.bindValue=this.value,this._prevValue=this.value}})</script></dom-module><dom-module id="z-ticket-form" assetpath="../components/z-ticket-form/"><template><style>:host [hidden] {
- display: none;
- }
- :host #forms {
- }
- :host textarea {
- width: 100%;
- min-height: 100px;
- box-sizing: border-box;
- resize: vertical;
- }
- :host q-dropdown-button-list,
- :host q-dropdown-button-list ::content q-button {
- display: block;
- width: 100%;
- box-sizing: border-box;
- }
- :host #step-1-container h3 {
- @apply --z-ticket-form-category-headline;
- }
- :host #step-1-container q-dropdown-button-list {
- @apply --z-ticket-form-category-dropdown;
- }
- :host h2 {
- @apply --z-ticket-form-step-headline;
- }
- :host h2 + p {
- @apply --z-ticket-form-step-description;
- }
- :host q-label {
- @apply --q-form-label;
- }
- :host .field-container {
- @apply --z-form-field-container;
- }
- :host q-dropdown-button-list + q-meta {
- margin-top: 5px;
- }
- :host #category-container,
- :host #subcategory-container {
- position: relative;
- }
- :host .validity-check {
- position: absolute;
- transform: translateX(-100%);
- left: -15px;
- @apply --z-ticket-form-validity-check;
- }
- :host #temp-step-1-headline {
- margin-bottom: 15px;
- }</style><h2 id="temp-step-1-headline">1. Choose a request type</h2><q-dropdown-button-list id="form-dropdown" label=""><q-list id="form-list"></q-list></q-dropdown-button-list><div id="step-1-container" hidden=""><h2>1. Pick a support category</h2><p>Select a category and sub-category that best relate to the issue you are having.</p><div id="category-container"><q-icon class="validity-check" name="check" hidden=""></q-icon><h3>Pick a Category</h3><q-dropdown-button-list id="category-dropdown" label="[[categoryLabel]]" name="request[custom_fields][category]"><q-list id="category-list"></q-list></q-dropdown-button-list></div><div id="subcategory-container" hidden=""><q-icon class="validity-check" name="check" hidden=""></q-icon><h3>Pick a Subcategory</h3><q-dropdown-button-list id="subcategory-dropdown" label="[[subcategoryLabel]]" name="request[custom_fields][subcategory]"><q-list id="subcategory-list"></q-list></q-dropdown-button-list></div></div><div id="step-2-container" hidden=""><hr><h2>2. Tell us more</h2><p>Ok, now that we know what kind of issue you are having, let's get into the details. Please help us by describing what you are experiencing below.</p><div id="forms-container"><select id="form-id-select" name="request[ticket_form_id]" hidden=""></select></div></div></template><script>Polymer({is:"z-ticket-form",properties:{categories:{type:Array,value:[]},subcategoryMap:{type:Object,value:{}},categoryLabel:{type:String,value:""},subcategoryLabel:{type:String,value:""},formMap:{type:Object,value:{}},forms:{type:Object,value:{}},conditions:{type:Array,value:null}},render:function(){var e=[];for(var t in this.forms)this.forms.hasOwnProperty(t)&&e.push(this.forms[t]);e.sort(function(e,t){return e.position>t.position?1:e.position<t.position?-1:0});for(var i,r=this.$["form-list"],o=this.$["form-dropdown"],n=0;n<e.length;++n)e[n].end_user_visible&&e[n].active&&(i=document.createElement("q-item"),i.setAttribute("value",e[n].id),Polymer.dom(i).appendChild(document.createTextNode(e[n].display_name)),Polymer.dom(r).appendChild(i));o.addEventListener("q-value-changed",function(e){var t=parseInt(e.detail.value,10);this.populateForm(t)}.bind(this)),this._populateCategories()},attached:function(){var e=this.$["category-dropdown"],t=this.$["subcategory-dropdown"];e.addEventListener("q-value-changed",this._onCategorySelected.bind(this)),t.addEventListener("q-value-changed",this._onSubcategorySelected.bind(this))},_populateCategories:function(){for(var e,t=this.$["category-list"];Polymer.dom(t).firstChild;)Polymer.dom(t).removeChild(Polymer.dom(t).firstChild);for(var i=0;i<this.categories.length;++i)e=document.createElement("q-item"),e.textContent=this.categories[i].name,e.setAttribute("value",this.categories[i].id),Polymer.dom(t).appendChild(e)},getSubcategories:function(e){return this.subcategoryMap.hasOwnProperty(e)?this.subcategoryMap[e]:[]},_populateSubcategories:function(e){var t,i=this.$["subcategory-container"],r=this.$["subcategory-dropdown"],o=this.$["subcategory-list"],n=this.getSubcategories(e);for(console.log("subcats",n),i.removeAttribute("hidden"),r.label=this.subcategoryLabel;Polymer.dom(o).firstChild;)Polymer.dom(o).removeChild(Polymer.dom(o).firstChild);for(var d=0;d<n.length;++d)t=document.createElement("q-item"),t.textContent=n[d].name,t.setAttribute("value",n[d].id),Polymer.dom(o).appendChild(t)},_onCategorySelected:function(e){this.setCategory(e.detail.value)},_showValidityCheck:function(e){var t=Polymer.dom(e).querySelector(".validity-check");t&&t.removeAttribute("hidden")},_hideValidityCheck:function(e){var t=Polymer.dom(e).querySelector(".validity-check");t&&t.setAttribute("hidden","")},setCategory:function(e){this._showValidityCheck(this.$["category-container"]),this._hideValidityCheck(this.$["subcategory-container"]),this._populateSubcategories(e),this.$["step-2-container"].setAttribute("hidden",""),this._hideForms()},_onSubcategorySelected:function(e){this._showValidityCheck(this.$["subcategory-container"]);var t=this.getFormId(e.detail.value);this.populateForm(t)},getFormId:function(e){return this.formMap.hasOwnProperty(e)?this.formMap[e]:0},_getForm:function(e){return this.forms.hasOwnProperty(e)?this.forms[e]:null},_getFormContainerId:function(e){return"form-container-"+e},_getFormContainer:function(e){return Polymer.dom(this.$["forms-container"]).querySelector("#"+this._getFormContainerId(e))},_hideForms:function(){var e=Polymer.dom(this.$["forms-container"]).querySelectorAll(".form-container");if(e)for(var t=0;t<e.length;++t)e[t].setAttribute("hidden","");this.$["forms-container"].setAttribute("hidden","")},populateForm:function(e){var t,i,r=this._getFormContainerId(e),o=this._getFormContainer(e);if(this.$["step-2-container"].removeAttribute("hidden"),this._hideForms(),this.$["forms-container"].removeAttribute("hidden"),o)return void o.removeAttribute("hidden");if(t=this._getForm(e)){if(!0!==t.active||!0!==t.end_user_visible)return;o=document.createElement("div"),o.setAttribute("id",r),o.classList.add("form-container");for(var n=0;n<t.fields.length;++n)!0===t.fields[n].active&&(i=null,"text"===t.fields[n].type||"subject"===t.fields[n].type||"integer"===t.fields[n].type||"date"===t.fields[n].type||"regexp"===t.fields[n].type?i=this._createTextField(t.fields[n]):"textarea"===t.fields[n].type||"description"===t.fields[n].type?i=this._createTextAreaField(t.fields[n]):"tagger"===t.fields[n].type?i=this._createTaggerField(t.fields[n]):"checkbox"===t.fields[n].type&&(i=this._createCheckboxField(t.fields[n])),i&&(i.classList.add("field-container"),!0!==t.fields[n].visible&&(i.style.display="none"),Polymer.dom(o).appendChild(i)));Polymer.dom(this.$["forms-container"]).appendChild(o);var d=this.$["form-id-option-"+e];d||(d=document.createElement("option"),d.value=e,Polymer.dom(this.$["form-id-select"]).appendChild(d)),this.$["form-id-select"].value=e,this.fire("z-ticket-form-selected"),this._setupFormConditions(e,o)}},_setupFormConditions:function(e,t){for(var i=0;i<this.conditions.length;++i)this.conditions[i].formId===e&&this._setupFormCondition(e,t,this.conditions[i])},_setupFormCondition:function(e,t,i){for(var r=(Polymer.dom(t).querySelector("#field-"+i.field),0);r<i.select.length;++r){var o=Polymer.dom(t).querySelector("#field-"+i.select[r]+"-container");o&&o.setAttribute("hidden","")}},_applyConditions:function(e,t){var i,r,o,n,d,a=parseInt(this.$["form-id-select"].value,10),l=this._getFormContainer(a),s=[];for(n=0;n<this.conditions.length;++n)if(o=this.conditions[n],o.formId===a&&o.field===e)for(d=0;d<o.select.length;++d)i=o.select[d],r=Polymer.dom(l).querySelector("#field-"+i+"-container"),r.setAttribute("hidden",""),o.value===t&&s.push(i);for(n=0;n<s.length;++n)i=s[n],(r=Polymer.dom(l).querySelector("#field-"+i+"-container"))&&r.removeAttribute("hidden")},_createTextField:function(e){var t,i=document.createElement("div"),r=document.createElement("q-input-container"),o=document.createElement("input","q-input");return t="subject"===e.type?"request[subject]":"request[custom_fields]["+e.id+"]",i.setAttribute("id","field-"+e.id+"-container"),o.setAttribute("id","field-"+e.id),o.setAttribute("name",t),o.setAttribute("type","text"),o.setAttribute("required",e.required),"integer"===e.type&&o.setAttribute("allowed-input","[0-9-.]"),r.setAttribute("label",e.title),r.setAttribute("always-float-label",""),Polymer.dom(r).appendChild(o),Polymer.dom(i).appendChild(r),i},_createTextAreaField:function(e){var t=document.createElement("div"),i=document.createElement("q-input-container"),r=document.createElement("textarea","q-textarea");return t.setAttribute("id","field-"+e.id+"-container"),r.setAttribute("id","field-"+e.id),r.setAttribute("name","request[custom_fields]["+e.id+"]"),r.setAttribute("required",e.required),i.setAttribute("label",e.title),i.setAttribute("always-float-label",""),Polymer.dom(i).appendChild(r),Polymer.dom(t).appendChild(i),t},_createTaggerField:function(e){var t,i=document.createElement("div"),r=document.createElement("q-dropdown-button-list"),o=document.createElement("q-label"),n=document.createElement("q-meta"),d=document.createElement("q-list");i.setAttribute("id","field-"+e.id+"-container"),Polymer.dom(o).appendChild(document.createTextNode(e.title)),r.setAttribute("id","field-"+e.id),r.setAttribute("name","request[custom_fields]["+e.id+"]"),r.setAttribute("label",""),r.addEventListener("q-value-changed",function(t){this._applyConditions(e.id,t.detail.value)}.bind(this));for(var a=0;a<e.options.length;++a)t=document.createElement("q-item"),t.textContent=e.options[a].name,t.setAttribute("value",e.options[a].value),Polymer.dom(d).appendChild(t);return Polymer.dom(r).appendChild(d),Polymer.dom(i).appendChild(o),Polymer.dom(i).appendChild(r),e.description&&(Polymer.dom(n).appendChild(document.createTextNode(e.description)),Polymer.dom(i).appendChild(n)),i},_createCheckboxField:function(e){var t=document.createElement("div"),i=document.createElement("q-checkbox");return t.setAttribute("id","field-"+e.id+"-container"),Polymer.dom(i).appendChild(document.createTextNode(e.title)),Polymer.dom(t).appendChild(i),t},isValid:function(){var e=!0;return this.querySelectorAll("input").forEach(function(t){t.isValid()||(e=!1)}),e}})</script></dom-module><dom-module id="q-waypoint-search" assetpath="../components/q-waypoint-search/"><style>:host {
- display: block; }
- :host > #content {
- @apply --layout-horizontal;
- @apply --layout-justified;
- @apply --layout-center;
- @apply --layout-wrap; }
- :host > #content ::content q-breadcrumbs {
- margin-right: 20px; }
- :host > #content ::content q-breadcrumbs q-divider {
- display: none; }
- :host > #content ::content q-search {
- @apply --layout-horizontal;
- @apply --layout-end-justified;
- @apply --layout-flex-auto; }
- :host > #content ::content q-search #input-container {
- max-width: 400px; }
- :host > #content ::content q-search #input-content {
- border-bottom: 0;
- margin-bottom: 0; }</style><template><div id="content"><content select="q-breadcrumbs"></content><content select="q-search"></content></div><q-divider></q-divider></template><script>Polymer({is:"q-waypoint-search",properties:{},hostAttributes:{},behaviors:[],listeners:{}})</script></dom-module><dom-module id="z-waypoint-search" assetpath="../components/z-waypoint-search/"><template><style>:host {
- display: block;
- @apply --z-waypoint-search;
- }
- :host [hidden] {
- display: none;
- }
- /* TODO: fix this jank when we clean up search */
- :host ::content q-search ::shadow #input-container {
- border-bottom: 0 !important;
- }
- :host ::content q-search ::shadow q-icon#search-icon {
- position: relative;
- top: 10px;
- }</style><form id="searchForm"><div id="zContainer" hidden=""><content id="zContent" select=":not(q-search)"></content></div><div id="content"><q-waypoint-search><q-breadcrumbs id="qBreadcrumb"></q-breadcrumbs><content id="searchContent" select="q-search"></content></q-waypoint-search></div></form></template><script>Polymer({is:"z-waypoint-search",properties:{locale:{type:String,value:$("html").attr("lang").toLowerCase()||"en-us"}},behaviors:[Polymer.ZendeskFilterNodeBehavior],ready:function(){var e,t,o=Polymer.dom(this.$.zContent).getDistributedNodes(),i=this.$.qBreadcrumb;o=this._filterNodes(o,"ol"),o=this._filterChildNodesDeep(o,["li"]),o.map(function(o){e=this._filterChildNodes([o],"a"),e.length?Polymer.dom(i).appendChild(e[0]):(t=document.createElement("p"),t.textContent=o.textContent.trim(),Polymer.dom(i).appendChild(t))}.bind(this)),this.$.searchForm.addEventListener("submit",function(e){e.preventDefault();var t=Polymer.dom(this.$.searchContent).getDistributedNodes()[0],o=window.encodeURIComponent(t.query);window.location.href="/hc/"+this.locale+"/search?query="+o}.bind(this))}})</script></dom-module><link rel="stylesheet" href="../components/q-animations/animate.css"><style is="custom-style">:root {
- --no-select: {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- };
- --q-default-transition-all: {
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- -ms-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- };
- }</style><style is="custom-style">html {
- --q-button: {
- padding: 12px 24px;
- font-weight: 600;
- color: white;
- background-color: #8c0b05;
- border-radius: 2px;
- };
- --q-button-hover: {
- background-color: #b50e06;
- };
- }
- q-button[color="primary"] {
- --q-button-hover: {
- color: white;
- background: rgb(145, 22, 16);
- };
- --q-button-pressed: {
- color: white;
- };
- }</style><style is="custom-style">html {
- --q-breadcrumbs: {
- background-color: #1d1d1d;
- };
- --q-breadcrumbs-link: {
- position: relative;
- color: #fff;
- font-weight: bold;
- background-color: #232323;
- text-decoration: none;
- text-transform: uppercase;
- height: 40px;
- line-height: 40px;
- padding: 0 10px 0 5px;
- text-align: center;
- margin-right: 28px;
- font-family: 'Open Sans', sans-serif;
- font-size: 11px;
- letter-spacing: .5px;
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- -ms-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- };
- --q-breadcrumbs-link-hover: {
- background-color: #2f2f2f;
- color: #fff;
- };
- --q-breadcrumbs-paragraph: {
- font-family: 'Open Sans', sans-serif;
- font-weight: bold;
- font-size: 11px;
- letter-spacing: .5px;
- text-transform: uppercase;
- color: var(--q-default-text-color);
- height: 40px;
- line-height: 40px;
- padding: 0 10px 0 5px;
- max-width: 400px;
- overflow: hidden;
- -ms-text-overflow: ellipsis;
- text-overflow: ellipsis;
- };
- --q-breadcrumbs-icon: {
- display: none;
- };
- --q-breadcrumbs-divider: {
- display: none;
- };
- }
- * ::content q-breadcrumbs #content a::before,
- * ::content q-breadcrumbs #content a::after {
- position: absolute;
- top: 0;
- width: 0;
- height: 0;
- content: '';
- border-color: #232323;
- border-style: solid;
- border-width: 20px 13px;
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- -ms-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- z-index: 1;
- }
- * ::content q-breadcrumbs #content a:hover::before {
- border-color: #2f2f2f;
- border-left-color: transparent;
- }
- * ::content q-breadcrumbs #content a:hover::after {
- border-left-color: #2f2f2f;
- }
- * ::content q-breadcrumbs #content a::before {
- left: -23px;
- border-left-color: transparent;
- }
- * ::content q-breadcrumbs #content a::after {
- left: 100%;
- border-color: transparent;
- border-left-color: #232323;
- }
- * ::content q-breadcrumbs #content a:first-child {
- padding-left: 15px;
- border-radius: 2px 0 0 2px;
- }
- * ::content q-breadcrumbs #content :first-child::before {
- border: none;
- }
- * ::content q-breadcrumbs #content :last-child::after {
- border-left-color: #232323;
- }
- * ::content q-breadcrumbs #content :last-child::before {
- border-color: #232323;
- border-left-color: transparent;
- }</style><style is="custom-style">* ::content q-card-nav ::content a q-stacked-card:hover,
- q-card-nav ::content a q-stacked-card:hover {
- background-color: #2d2d2d;
- border-color: #2d2d2d;
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- -ms-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- }</style><style is="custom-style">* ::content q-checkbox,
- q-checkbox {
- @apply --no-select;
- --q-icon-fill-color: #bdc4c4;
- }
- * ::content q-checkbox:not([disabled]):hover #checkContainer,
- q-checkbox:not([disabled]):hover #checkContainer {
- background-color: rgba(238, 238, 238, .2);
- }
- * ::content q-checkbox #label,
- q-checkbox #label {
- color: white;
- }</style><style is="custom-style">:root {
- --q-content-block-avatar-1-media: {
- border: 2px solid #363636;
- border-radius: 50%;
- };
- --q-content-block-avatar-1-headline: {
- font-size: 8pt;
- font-weight: 600;
- text-transform: uppercase;
- color: #fff;
- };
- --q-content-block-avatar-1-meta: {
- font-size: 8pt;
- font-weight: 600;
- text-transform: uppercase;
- };
- }</style><style is="custom-style">:root {
- --q-content-block-avatar-2-label: {
- font-size: 12px;
- color: #fff;
- font-weight: normal;
- text-transform: none;
- };
- --q-content-block-avatar-2-value: {
- font-size: 15px;
- font-weight: 600;
- text-transform: uppercase;
- font-size: 18px;
- color: #fff;
- };
- }</style><style is="custom-style">:root {
- --q-content-block-avatar-3-avatar: {
- margin-right: 20px;
- };
- --q-content-block-avatar-3-content: {
- width: 100%;
- };
- }</style><style is="custom-style">:root {
- --q-content-block-icon-1-label: {
- font-size: 15px;
- color: #fff;
- font-weight: bold;
- text-transform: none;
- };
- --q-content-block-icon-1-value: {
- font-size: 16px;
- font-weight: normal;
- color: #fff;
- };
- }</style><style is="custom-style">* ::content q-content-block-checkbox-1 #copy ::content q-meta,
- q-content-block-checkbox-1 #copy ::content q-meta {
- font-size: 8pt;
- font-weight: 600;
- text-transform: uppercase;
- }</style><style is="custom-style">html {
- --q-dropdown-button-list-button: {
- background-color: #212121;
- text-transform: none;
- padding: 10px;
- };
- --q-dropdown-button-list-button-hover: {
- background-color: #212121;
- color: #fff;
- };
- --q-dropdown-button-list-button-focus: {
- background-color: #323232;
- color: #fff;
- };
- --q-dropdown-button-list-button-icon: {
- color: #8c8c8c;
- width: 25px;
- };
- --q-dropdown-button-list-list-item: {
- };
- --q-dropdown-button-list-list-item-hover: {
- background: #323232;
- };
- --q-dropdown-button-list-list-item-highlighted: {
- background: #323232;
- };
- }</style><style is="custom-style">:root {
- --q-footer: {
- width: 100%;
- background-color: #1d1d1d;
- padding: 50px 0;
- };
- --q-footer-top: {
- @apply --layout;
- @apply --layout-start;
- @apply --layout-justified;
- border-bottom: 1px solid #4a4a4a;
- max-width: 1000px;
- padding-bottom: 40px;
- margin: 0 auto;
- };
- --q-footer-bottom: {
- max-width: 1000px;
- padding-top: 40px;
- margin: 0 auto;
- };
- }
- * ::content q-footer q-item,
- q-footer q-item {
- margin-bottom: 5px;
- }
- * ::content q-footer table tr td,
- q-footer table tr td {
- vertical-align: top;
- padding: 0;
- }
- * ::content q-footer table tr td:not(:first-child),
- q-footer table tr td:not(:first-child) {
- padding-left: 80px;
- }
- * ::content q-footer table tr td.continued,
- q-footer table tr td.continued {
- padding-top: 51px;
- padding-left: 40px;
- }
- * ::content q-footer table tr td h4,
- q-footer table tr td h4 {
- margin-bottom: 30px;
- }</style><style is="custom-style">:root {
- --q-form-label: {
- color: #fff;
- text-transform: capitalize;
- font-size: 18px;
- font-family: 'Roboto Condensed', sans-serif;
- margin-bottom: 10px;
- letter-spacing: .5px;
- };
- }</style><style is="custom-style">html {
- --q-item: {
- font-family: 'Open Sans', sans-serif;
- font-size: 11pt;
- font-weight: 400;
- color: var(--q-default-text-color);
- };
- }
- * ::content q-item q-icon,
- q-item q-icon {
- --q-icon-fill-color: red;
- }</style><style is="custom-style">q-item-model-simple-3 > #content > a {
- font-size: 15pt;
- line-height: 30px;
- letter-spacing: -0.8px;
- }
- q-item-model-simple-3 > #content q-meta {
- font-size: 9pt;
- text-transform: uppercase;
- color: #9c9c9c;
- }</style><style is="custom-style">html {
- --q-item-model-simple-4: {
- padding: 3px 0 11px 0;
- };
- --q-item-model-simple-4-link: {
- font-size: 15pt;
- line-height: 30px;
- letter-spacing: -0.8px;
- padding-bottom: 14px;
- };
- --q-item-model-simple-4-meta: {
- font-size: 8.5pt;
- text-transform: uppercase;
- color: #9c9c9c;
- };
- --q-item-model-simple-4-meta-link: {
- padding-left: 3px;
- };
- --q-tag-charcoal: {
- border: 1px solid #3a4041;
- background-color: transparent;
- };
- }</style><style is="custom-style">q-item-model-simple-5 #content q-label {
- font-size: 18px;
- text-transform: uppercase;
- color: #fff;
- font-weight: bold;
- }
- q-item-model-simple-5 #content q-meta {
- font-weight: bold;
- color: #fff;
- }</style><style is="custom-style">html {
- --q-label: {
- text-transform: uppercase;
- font-size: 10pt;
- font-weight: 800;
- font-family: 'Open Sans', sans-serif;
- }
- }</style><style is="custom-style">html {
- --q-list-divided-item: {
- border-bottom: 1px dashed #59595b;
- padding-bottom: 20px;
- margin-bottom: 23px;
- };
- --q-list-divided-last-item: {
- margin-bottom: 0;
- };
- }</style><style is="custom-style">q-list-nav {
- --q-list-nav: {
- background-color: #1d1d1d;
- };
- --q-list-nav-header: {
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- display: block;
- margin-bottom: 15px;
- font-size: 20pt;
- color: #fff;
- font-weight: normal;
- border-bottom: 1px dashed #313131;
- padding: 20px;
- }
- }</style><style is="custom-style">:root {
- --q-meta: {
- font-family: 'Open Sans', sans-serif;
- font-size: 9pt;
- font-style: italic;
- color: var(--q-default-text-color);
- };
- }</style><style is="custom-style">:root {
- --q-nav-selected-color: white;
- --q-nav-border-selected-color: red;
- }</style><style is="custom-style">html {
- --q-dropdown-background-color: #212121;
- --q-dropdown-color: #fff;
- }</style><style is="custom-style">:root {
- --q-overlay-card: {
- background-color: #1d1d1d;
- };
- --q-overlay-card-overlay: {
- background-color: rgba(0, 0, 0, 0.65);
- };
- --q-overlay-card-overlay-hover: {
- background-color: rgba(0, 0, 0, 0.3);
- -webkit-transition: all 0.25s linear;
- -moz-transition: all 0.25s linear;
- -o-transition: all 0.25s linear;
- -ms-transition: all 0.25s linear;
- transition: all 0.25s linear;
- };
- --q-overlay-card-headline: {
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- font-size: 21pt;
- font-weight: normal;
- line-height: 0.9;
- };
- --q-overlay-card-subtext: {
- margin: 5px auto 60px auto;
- max-width: 160px;
- };
- --q-overlay-card-icon: {
- color: #f00;
- };
- }
- q-overlay-card h1,
- q-overlay-card h2,
- q-overlay-card h3,
- q-overlay-card h4,
- q-overlay-card h5,
- q-overlay-card h6 {
- @apply --q-overlay-card-headline;
- }
- q-overlay-card q-subtext {
- @apply --q-overlay-card-subtext;
- }
- q-overlay-card q-icon {
- @apply --q-overlay-card-icon;
- }</style><style is="custom-style">q-overlay-card-model-simple-5 {
- --q-overlay-card-icon: {
- margin-top: 15px;
- color: red;
- };
- --q-overlay-card-headline: {
- margin-bottom: 10px;
- };
- --q-overlay-card-subtext: {
- color: #abaaaa;
- font-weight: 600;
- font-style: italic;
- line-height: 18px;
- };
- }</style><style is="custom-style">:root {
- --q-pagination-text-color: #bcc3c3;
- --q-pagination-hover-text-color: #838787;
- --q-pagination-active-text-color: #f9241a;
- --q-pagination-active-hover-text-color: #f9241a;
- }</style><style is="custom-style">:root {
- --q-related-list: {
- background-color: #1d1d1d;
- padding-bottom: 15px;
- };
- --q-related-list-header: {
- border-bottom: 1px dashed #313131;
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- display: block;
- padding: 20px 30px;
- margin-bottom: 15px;
- color: #fff;
- font-weight: normal;
- font-size: 20pt;
- };
- --q-related-list-item: {
- padding: 5px 30px;
- font-size: 14px;
- line-height: 18px;
- };
- }</style><style is="custom-style">#q-core-header {
- height: 49px;
- border-bottom: 2px solid #262626;
- }</style><style is="custom-style">root {
- --q-search-icon-color: white;
- }
- q-search {
- --q-search-underline-width: 0;
- --q-search-icon-color: white;
- --q-search-results: {
- border: 1px solid #707676;
- background: #212121;
- padding: 7px 0;
- };
- --q-search-results-empty: {
- padding: 7px 15px;
- };
- --q-search-input: {
- font-size: 16px;
- line-height: 16px;
- color: #eaeaea;
- background: transparent;
- };
- --q-search-input-focused: {
- outline: none;
- };
- }
- q-search q-list q-label {
- --q-label: {
- display: block;
- color: #fff;
- border-bottom: 1px solid #7e8c8c;
- margin: 7px 15px;
- padding: 0;
- font-weight: normal;
- font-family: "Open Sans", sans-serif;
- overflow: auto;
- text-transform: uppercase;
- font-size: 10pt;
- }
- }
- q-search q-list q-item em {
- font-weight: bold;
- font-style: normal;
- }
- q-search q-list q-label {
- width: auto;
- white-space: nowrap;
- }
- q-search q-list q-item {
- --q-item: {
- padding: 7px 15px;
- };
- --q-item-hover: {
- background-color: #495050;
- };
- }</style><style is="custom-style">html {
- --q-stacked-card: {
- background-color: #212121;
- border: none;
- display: flex;
- align-items: center;
- padding: 25px;
- height: 175px;
- width: 185px;
- }
- }
- q-stacked-card q-icon {
- --q-icon-color: #ff0000;
- }
- q-stacked-card h1,
- q-stacked-card h2,
- q-stacked-card h3,
- q-stacked-card h4,
- q-stacked-card h5,
- q-stacked-card h6
- {
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- font-size: 21pt;
- font-weight: normal;
- line-height: 0.9;
- }</style><style is="custom-style">q-stacked-card-model-simple-3 {
- position: relative;
- top: 13px;
- }
- q-stacked-card-model-simple-3 q-icon {
- margin-top: 14px;
- --q-icon-color: red;
- }
- q-stacked-card-model-simple-3 h1,
- q-stacked-card-model-simple-3 h2,
- q-stacked-card-model-simple-3 h3,
- q-stacked-card-model-simple-3 h4,
- q-stacked-card-model-simple-3 h5,
- q-stacked-card-model-simple-3 h6 {
- margin-bottom: 8px;
- color: #fff;
- }
- q-stacked-card-model-simple-3 q-subtext {
- color: var(--q-text-color);
- }</style><style is="custom-style">q-sub-nav-list {
- --q-sub-nav-list-header: {
- margin-bottom: 40px;
- };
- --q-sub-nav-list-title: {
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- display: block;
- margin-bottom: 15px;
- font-size: 20pt;
- color: #fff;
- font-weight: normal;
- };
- --q-sub-nav-list-item: {
- @apply(--layout-horizontal);
- @apply(--layout-center);
- padding: 5px 0;
- font-size: 11pt;
- line-height: 22px;
- };
- }
- q-sub-nav-list > #content q-grid {
- --q-grid-gutter-size: 40px;
- }</style><style is="custom-style">html {
- --q-subtext: {
- font-family: 'Open Sans', sans-serif;
- font-style: italic;
- color: #a9a9a9;
- line-height: 1.3;
- font-weight: 600;
- }
- }
- q-subtext[priority="1"] {
- color: white;
- font-size: 22pt;
- font-style: normal;
- font-weight: 400;
- }
- q-subtext[priority="3"] {
- font-size: 11pt;
- }</style><style is="custom-style">html {
- --q-tag: {
- border: 1px solid #3a4041;
- background-color: transparent;
- }
- --q-tag-hover: {
- border-color: #626266;
- cursor: pointer;
- }
- }</style><style is="custom-style">q-waypoint-search {
- --q-form-input: {
- padding-bottom: 0;
- };
- }
- * ::content q-waypoint-search {
- padding: 30px 30px 80px 30px;
- }
- * ::content q-waypoint-search q-search {
- padding-right: 10px;
- border: none;
- }
- * ::content q-waypoint-search #content,
- q-waypoint-search #content {
- background-color: #1d1d1d;
- }
- * ::content q-waypoint-search q-search input:-webkit-autofill,
- q-waypoint-search q-search input:-webkit-autofill {
- color: #f00 !important;
- background-color: #f00 !important;
- }
- * ::content q-waypoint-search q-divider,
- q-waypoint-search q-divider {
- background-color: transparent;
- }
- * ::content q-waypoint-search #input-container q-form-input,
- q-waypoint-search #input-container q-form-input {
- padding-bottom: 0;
- }</style><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700|Open+Sans:400,700,800,400italic|Roboto+Condensed:300|Pathway+Gothic+One"><style is="custom-style">@font-face {
- font-family: 'AlternateGothicW02-No2D';
- src: url("//s3-us-west-2.amazonaws.com/images-ps-kb/fonts/26e0d60f-f62d-4ca6-b7c9-da4b4b0faea9.eot?#iefix");
- src: url("//s3-us-west-2.amazonaws.com/images-ps-kb/fonts/26e0d60f-f62d-4ca6-b7c9-da4b4b0faea9.eot?#iefix") format("eot"),url("//s3-us-west-2.amazonaws.com/images-ps-kb/fonts/e3d0ecf4-a6ca-4be4-8fee-4cfe85fd7c5a.woff") format("woff"),url("//s3-us-west-2.amazonaws.com/images-ps-kb/fonts/a2e0e0cf-0ff9-4fb4-bb7e-28ee13cbc37c.ttf") format("truetype"),url("//s3-us-west-2.amazonaws.com/images-ps-kb/fonts/cc1f9791-cf49-4f20-9048-900f71cb652d.svg#cc1f9791-cf49-4f20-9048-900f71cb652d") format("svg");
- }
- @font-face {
- font-family: 'AlternateGotNo2DOT';
- src: url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.eot");
- src: url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.woff2") format('woff2'),
- url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.woff") format('woff'),
- url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.ttf") format('truetype'),
- url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.svg#AlternateGotNo2DOT") format('svg'),
- url("//s3-us-west-2.amazonaws.com/support.riotgames.com/fonts/AlternateGotNo2DOT.eot?#iefix") format('embedded-opentype');
- font-weight: normal;
- font-style: normal;
- }
- :root {
- /* Typography */
- --q-font-common-base: {
- font-family: 'Roboto Condensed', sans-serif;
- -webkit-font-smoothing: antialiased;
- font-size: 14px;
- };
- --q-font-common-important: {
- font-family: 'Open Sans', sans-serif;
- text-transform: uppercase;
- font-weight: 800;
- };
- --q-font-button: {
- @apply --q-font-common-base;
- @apply --q-font-common-important;
- };
- --q-font-headline: {
- @apply --q-font-common-base;
- @apply --q-font-common-important;
- };
- --q-font-subtext: {
- @apply --q-font-common-base;
- };
- --q-font-quote: {
- @apply --q-font-common-base;
- font-style: italic;
- };
- --q-default-background-color: #191919;
- --q-default-text-color: #9c9c9c;
- --q-text-font-family: 'Open Sans', sans-serif;
- --q-link-primary-dark-color: #fbfbfb;
- --q-link-primary-dark-hover-color: #bf3b2c;
- --q-link: {
- transition: all;
- text-decoration: none;
- color: var(--q-link-primary-dark-color, currentcolor);
- };
- --q-link-hover: {
- color: var(--q-link-primary-dark-hover-color, currentcolor);
- };
- --q-link-primary: {
- color: var(--q-link-primary-dark-color, currentcolor);
- };
- --q-link-primary-hover: {
- color: var(--q-link-primary-dark-hover-color, currentcolor);
- };
- }
- body {
- background-color: var(--q-default-background-color);
- color: var(--q-default-text-color);
- }
- a, * ::shadow a {
- @apply --q-link;
- }
- a:hover, * ::shadow a:hover {
- @apply --q-link-hover;
- }
- a[priority="primary"] {
- @apply --q-link-primary;
- }
- a[priority="primary"]:hover {
- @apply --q-link-primary-hover;
- }
- /* TODO: Shadow selector deprecated */
- * ::shadow h1,
- * ::shadow h2,
- * ::shadow h3,
- * ::shadow h4,
- * ::shadow h5,
- * ::shadow h6,
- h1, h2, h3, h4, h5, h6 {
- @apply --q-font-common-base;
- @apply --q-font-common-important;
- padding: 0;
- margin: 0;
- }
- * ::shadow h1,
- h1 {
- color: white;
- font-size: 32pt;
- font-weight: 100;
- line-height: 1.2;
- letter-spacing: -0.5px;
- text-transform: none;
- }
- * ::shadow h2,
- h2 {
- font-family: 'AlternateGothicW02-No2D', 'AlternateGotNo2DOT', Impact, sans-serif;
- font-size: 20pt;
- color: #fff;
- font-weight: normal;
- line-height: 1.3;
- }
- * ::shadow h3,
- h3 {
- font-family: 'Roboto Condensed', sans-serif;
- font-size: 14pt;
- font-weight: 700;
- line-height: 1.3;
- letter-spacing: 0;
- text-transform: none;
- color: white;
- }
- * ::shadow h6,
- h6 {
- font-size: 9pt;
- font-weight: 700;
- line-height: 1.3;
- }
- * ::shadow p,
- p {
- font-family: var(--q-text-font-family, 'Roboto Condensed', sans-serif);
- font-size: 11pt;
- font-weight: 400;
- color: var(--q-default-text-color);
- }
- /* Horizontal rules are small red nubs */
- * ::shadow hr,
- hr {
- background: #f9241a;
- border: 0;
- display: block;
- margin: 40px 0 40px 0;
- width: 30px;
- height: 1px;
- }
- * ::shadow hr.centered,
- hr.centered {
- margin-left: auto;
- margin-right: auto;
- }
- * ::shadow input,
- input {
- background-color: #212121;
- outline: none;
- border: 0;
- padding: 10px;
- color: #fff;
- font-size: 14px;
- }
- * ::shadow textarea,
- textarea {
- background-color: #212121;
- outline: none;
- border: 0;
- padding: 10px;
- color: #fff;
- font-size: 14px;
- }
- strong {
- color: #fff;
- }
- table[is="q-table"],
- table[is="q-table"] thead
- {
- border-bottom: solid 2px gray;
- }
- table[is="q-table"] th {
- color: white;
- font-size: 14pt;
- white-space: nowrap;
- }
- table[is="q-table"] tbody tr:hover {
- background-color: #2d2d2d;
- cursor: pointer;
- }
- table[is="q-table"] td {
- font-size: 12pt;
- }
- .align-right {
- text-align: right;
- }
- textarea {
- background-color: #232323;
- border: none;
- }
- textarea:focus {
- outline: none;
- }</style><style is="custom-style">#article {
- background-color: #191919;
- color: white;
- line-height: 1.5;
- max-width: 1200px;
- margin: 0 auto;
- margin-bottom: 50px;
- }
- #article #body {
- padding: 0 40px 80px 40px;
- }
- #article q-col + q-col {
- display: flex;
- justify-content: center;
- }
- #article q-article [slot="body"] p {
- line-height: 18pt;
- }
- #article q-article [slot="body"] {
- color: #b9b9b9;
- }
- #article q-article {
- margin: 0 20px 50px 0;
- max-width: 650px;
- }
- #article q-article q-list {
- margin-top: 20px;
- margin-bottom: 30px;
- }
- /***************************************************************
- * Related Side Panel
- *************************************************************** */
- #article #related {
- width: 270px;
- }
- #article #related z-related-list {
- display: block;
- margin-bottom: 40px;
- }
- #article #related q-card-nav {
- --q-card-spacing: 40px;
- }
- #article #related q-overlay-card {
- --q-overlay-card-height: 230px;
- --q-overlay-card-width: 270px;
- }
- /***************************************************************
- * Tools
- *************************************************************** */
- #article q-overlay-card[image="hextech"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/hextech.png");
- }
- #article q-overlay-card[image="livechat"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/livechat.png");
- }
- #article q-overlay-card[image="myisp"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/myisp.png");
- }</style><style is="custom-style">#category-landing {
- max-width: 1200px;
- margin: 0 auto;
- }
- #category-landing section {
- padding: 0 40px 80px 40px;
- }
- /***************************************************************
- * Categories
- *************************************************************** */
- #category-landing #categories {
- @apply (--layout-horizontal);
- }
- #category-landing #categories q-list-nav {
- min-width: 250px;
- margin-right: 60px;
- }
- #category-landing #categories q-sub-nav-list {
- padding: 0;
- }
- #category-landing #categories q-sub-nav-list q-list q-item:last-child q-icon {
- --q-icon-color: red;
- }
- #category-landing #categories q-sub-nav-list q-list q-item q-icon ~ a {
- font-size: 10pt;
- font-weight: bold;
- text-transform: uppercase;
- padding-left: 20px;
- }
- /***************************************************************
- * Sign up Articles
- *************************************************************** */
- #category-landing #helpful-articles h1,
- #category-landing #helpful-articles h3 {
- margin: 50px auto;
- text-align: center;
- }
- #category-landing #helpful-articles q-related-list {
- background-color: transparent;
- }
- #category-landing #helpful-articles q-related-list q-item {
- padding: 0 0 20px 0;
- }
- #category-landing #helpful-articles q-related-list q-grid {
- --q-grid-gutter-size: 100px;
- }
- /***************************************************************
- * Tools
- *************************************************************** */
- #category-landing #tools {
- width: 700px;
- margin: 0 auto;
- }
- #category-landing #tools h1 {
- margin: 40px auto;
- text-align: center;
- }
- #category-landing #tools q-grid q-overlay-card {
- margin: 20px auto;
- }
- #category-landing #tools q-overlay-card {
- --q-overlay-card-height: 343px;
- --q-overlay-card-content: {
- position: relative;
- top: 55px;
- }
- }</style><style is="custom-style">#error {
- max-width: 1200px;
- margin: 0 auto;
- }
- /***************************************************************
- * Error Title
- *************************************************************** */
- #error #error-title {
- margin-bottom: 75px;
- text-align: center;
- }
- #error #error-title h1 {
- margin-bottom: 30px;
- }
- #error #error-title span {
- color: white;
- font-size: 120pt;
- font-weight: 100;
- line-height: 1.2;
- letter-spacing: -0.5px;
- text-transform: none;
- }
- /***************************************************************
- * Related Links
- *************************************************************** */
- #error #related-links {
- padding: 0 60px;
- margin-bottom: 60px;
- }
- #error #related-links q-grid {
- --q-grid-gutter-size: 60px;
- }</style><style is="custom-style">/***************************************************************
- * Logo
- *************************************************************** */
- #landing-page {
- background-color: #191919;
- }
- #landing-page h1 {
- font-weight: normal;
- line-height: 1.2;
- text-transform: none;
- text-align: center;
- padding: 20px 0 10px 0;
- font-size: 32pt;
- max-width: 500px;
- margin: 0 auto;
- letter-spacing: -0.5px;
- font-weight: 300;
- }
- #landing-page q-logo {
- --q-logo-long-rectangle-width-md: 235px;
- --q-logo-long-rectangle-height-md: 94px;
- }
- #landing-page #search-area {
- padding-bottom: 78px;
- background: 50% 0 url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/landing-search-background.jpg") #121212 no-repeat;
- }
- #landing-page #search-area .wings {
- width: 100%;
- padding-top: 34px;
- padding-bottom: 30px;
- @apply --layout-horizontal;
- @apply --layout-flex-auto;
- @apply --layout-center;
- }
- #landing-page #search-area .wings hr {
- border: 0;
- width: 100%;
- margin: 0 65px;
- background: none;
- border-bottom: 1px solid rgba(255,255,255,0.1);
- }
- #landing-page #search-area .wings hr:first-child {
- margin-right: 20px;
- }
- #landing-page #search-area .wings hr:last-child {
- margin-left: 20px;
- }
- /***************************************************************
- * Search
- *************************************************************** */
- #landing-page z-search {
- display: block;
- max-width: 815px;
- margin: 69px auto 0 auto;
- }
- #landing-page q-search {
- display: block;
- max-width: 815px;
- /* Input */
- --ps-q-search-input: {
- background: transparent;
- font-weight: bold;
- font-family: "Open Sans", sans-serif;
- position: relative;
- top: -2px;
- left: -3px;
- color: transparent;
- }
- --q-search-input: {
- @apply --ps-q-search-input;
- }
- --q-search-input-container: {
- border-bottom: 1px solid white;
- font-family: 'Open Sans', sans-serif;
- font-size: 12pt;
- padding-bottom: 0;
- left: 6px;
- width: calc(100% - 6px);
- }
- /* Icon */
- --q-search-icon: {
- @apply --q-default-transition-all;
- position: absolute;
- top: -2px;
- left: -4px;
- }
- --q-icon-svg: {
- @apply --q-default-transition-all;
- }
- /* Results */
- --q-search-results-container: {
- @apply --q-default-transition-all;
- transition-timing-function: cubic-bezier(0,.5,.5,1);
- overflow: hidden;
- max-height: 0;
- }
- --q-search-results: {
- background: transparent;
- border: 0;
- }
- /* Placeholder */
- --q-search-input-placeholder: {
- color: transparent;
- }
- --ps-q-search-placeholder-label: {
- @apply --q-default-transition-all;
- display: block;
- position: absolute;
- text-transform: none;
- font-size: 13.5pt;
- color: #fbfbfb;
- font-weight: 700;
- }
- --q-search-placeholder-label: {
- @apply --ps-q-search-placeholder-label;
- top: 0px;
- left: 28px;
- }
- }
- #landing-page q-search[opened] {
- --q-search-input: {
- @apply --ps-q-search-input;
- color: #eaeaea;
- }
- --q-search-icon-color: #666;
- --q-search-placeholder-label: {
- @apply --ps-q-search-placeholder-label;
- text-transform: uppercase;
- font-size: 8pt;
- color: #666 !important;
- top: -33px;
- left: 0px;
- }
- --q-search-results-container: {
- @apply --q-default-transition-all;
- transition-timing-function: cubic-bezier(0,.5,.5,1);
- overflow: hidden;
- max-height: 300px;
- margin-top: 50px;
- }
- }
- /* Search content */
- #landing-page q-search q-list:nth-child(1),
- #landing-page q-search q-list:nth-child(2) {
- margin-top: 6px;
- }
- #landing-page q-search q-list {
- position: relative;
- margin-top: 50px;
- --q-list-content: {
- @apply --layout-flex-auto;
- @apply --layout-horizontal;
- @apply --layout-wrap;
- }
- }
- #landing-page q-search q-list::before {
- position: absolute;
- top: 8px;
- left: 0;
- background: red;
- height: 9px;
- width: 1px;
- content: "";
- }
- #landing-page q-search q-list q-label {
- flex: 0 0;
- order: 1;
- margin-left: 7px;
- --q-label: {
- border-bottom: 0;
- font-weight: bold;
- font-size: 8.1pt;
- text-transform: uppercase;
- font-family: "Open Sans", sans-serif;
- margin-top: 5px;
- }
- }
- #landing-page q-search q-list hr {
- flex: 1 0;
- order: 2;
- position: relative;
- background: rgba(255,255,255,0.1);
- top: -3px;
- margin: 16px 7px;
- }
- #landing-page q-search q-list q-button {
- flex: 0 0;
- order: 3;
- --q-button: {
- background: #911610;
- padding: 0px 15px !important;
- height: 26px;
- font-size: 8.3pt;
- border-radius: 3px;
- color: white;
- line-height: 25px;
- }
- --q-button-hover: {
- color: white;
- background: rgb(145, 22, 16);
- }
- --q-button-pressed: {
- color: white;
- }
- }
- #landing-page q-search q-list q-item {
- flex: 0 100%;
- order: 4;
- padding: 5px 7px 5px 6px;
- --q-item-hover: {
- background: transparent;
- }
- }
- /* All Content */
- .centered-content {
- padding-left: 20px;
- padding-right: 20px;
- }
- @media(min-width:1060px) {
- .centered-content {
- padding-left: calc((100% - 1020px) / 2);
- padding-right: calc((100% - 1020px) / 2);
- }
- }
- /***************************************************************
- * Categories
- *************************************************************** */
- #landing-page #categories {
- padding-top: 56px;
- background: radial-gradient(circle at top, #222222 0px, #191919 460px);
- }
- #landing-page #categories h1 {
- padding-bottom: 20px;
- }
- #landing-page #categories q-card-nav-grid {
- margin-top: -20px;
- }
- #landing-page q-stacked-card q-subtext {
- margin: 8px 0 15px 0;
- }
- /***************************************************************
- * Articles
- *************************************************************** */
- #landing-page #articles {
- margin-top: 130px;
- }
- #landing-page #articles h1 {
- padding-bottom: 10px;
- }
- #landing-page #articles h3 {
- text-align: center;
- padding: 20px 0;
- }
- #landing-page #articles q-grid {
- padding-top: 10px;
- --q-grid-gutter-size: 100px;
- }
- #landing-page #articles q-grid q-list {
- margin-top: 25px;
- }
- #landing-page #articles h4 {
- text-transform: none;
- font-size: 15pt;
- font-weight: normal;
- padding: 10px 0 17px 0;
- }
- #landing-page #articles q-meta {
- display: inline-block;
- width: 50%;
- text-transform: uppercase;
- }
- #landing-page #articles q-meta a {
- margin-left: 4px;
- }
- #landing-page #articles q-meta:last-child {
- text-align: right;
- }
- /***************************************************************
- * Tools
- *************************************************************** */
- #landing-page #tools {
- margin-top: 140px;
- padding-bottom: 100px;
- }
- #landing-page #tools h1 {
- padding-bottom: 17px;
- }
- #landing-page #tools q-grid {
- padding-top: 30px;
- }
- #landing-page #tools q-grid q-overlay-card {
- margin: 0 auto;
- }
- #landing-page q-overlay-card {
- --q-overlay-card-height: 343px;
- --q-overlay-card-content: {
- position: relative;
- top: 75px;
- }
- }</style><style is="custom-style">#subcategory {
- max-width: 1200px;
- margin: 0 auto;
- }
- #subcategory section {
- padding: 0 40px 80px 40px;
- }
- #subcategory h1 {
- max-width: 500px;
- }
- /***************************************************************
- * Categories
- *************************************************************** */
- #subcategory #subcategory-main {
- @apply (--layout-horizontal);
- }
- #subcategory #subcategory-main q-list-nav {
- min-width: 250px;
- margin-right: 60px;
- }
- #subcategory #subcategory-main q-list h2 {
- margin-bottom: 20px;
- }
- /***************************************************************
- * Tools
- *************************************************************** */
- #subcategory #tools {
- width: 700px;
- margin: 0 auto;
- }
- #subcategory #tools h1 {
- margin: 40px auto;
- text-align: center;
- }
- #subcategory #tools q-grid q-overlay-card {
- margin: 20px auto;
- }
- #subcategory #tools q-overlay-card {
- --q-overlay-card-height: 343px;
- --q-overlay-card-content: {
- position: relative;
- top: 55px;
- }
- }
- #subcategory #tools q-overlay-card[image="hextech"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/hextech.png");
- }
- #subcategory #tools q-overlay-card[image="logreader"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/myisp.png");
- }</style><style is="custom-style">.ticket-detail-category {
- text-transform: uppercase;
- font-weight: bold;
- font-size: 18px;
- margin: 5px 0;
- }
- #ticket-detail {
- @apply --layout;
- max-width: 1200px;
- margin: 0 auto;
- }
- #ticket-detail hr {
- margin: 30px auto 30px 0;
- }
- #ticket-detail-main {
- width: 850px;
- padding: 20px;
- margin-right: 100px;
- }
- #ticket-detail-main h1 {
- font-size: 33px;
- color: #fff;
- margin-bottom: 40px;
- }
- #ticket-detail #ticket-detail-main q-list q-item {
- padding-bottom: 30px;
- margin: 30px 0;
- }
- #ticket-detail #ticket-detail-main q-list q-item-model-simple-5 {
- padding-right: 10px;
- }
- #ticket-detail #ticket-detail-main q-list q-item-model-simple-5 q-avatar.agent {
- border-left: 4px solid red;
- height: 76px;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 {
- margin-top: 25px;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 img {
- height: 75px;
- width: 75px;
- margin-top: 1px;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 q-label {
- font-weight: bold;
- text-transform: uppercase;
- font-size: 18px;
- color: #fff;
- margin-bottom: 10px;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 #control {
- vertical-align: center;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 #control {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 #control q-button {
- float: right;
- margin-top: 20px;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 #control q-checkbox {
- float: right;
- margin-top: 20px;
- width: 230px;
- white-space: normal;
- }
- #ticket-detail #ticket-detail-main q-content-block-avatar-3 #control q-checkbox ::content #label {
- text-transform: uppercase;
- font-weight: bold;
- width: 170px;
- }
- #ticket-detail #ticket-detail-main textarea {
- width: 100%;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone {
- height: 56px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone {
- margin-top: 20px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone span,
- #ticket-detail #ticket-detail-main #upload-dropzone a {
- font-size: 18px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone span {
- padding: 16px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone {
- height: 85px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone span {
- padding-top: 31px;
- }
- #ticket-detail #ticket-detail-main #upload-dropzone span,
- #ticket-detail #ticket-detail-main #upload-dropzone span a {
- font-family: 'Open Sans', sans-serif;
- font-size: 24px;
- }
- #ticket-detail #ticket-detail-main textarea {
- margin-top: 10px;
- }
- #ticket-detail-right-bar {
- width: 250px;
- background-color: #292929;
- padding: 20px;
- }
- #ticket-detail-right-bar h2 {
- color: red;
- }
- #ticket-detail-right-bar p {
- font-style: italic;
- }
- #ticket-detail-right-bar q-content-block-icon-1 {
- margin-top: 20px;
- }
- #ticket-detail-right-bar q-content-block-icon-1 q-image {
- background-color: transparent;
- }
- #ticket-detail-right-bar q-list q-item {
- margin-bottom: 20px;
- color: #fff;
- }
- #ticket-detail-right-bar q-content-block-avatar-2 {
- margin-bottom: 20px;
- }
- #ticket-detail-right-bar q-content-block-avatar-2 q-avatar.agent {
- border-left: 3px solid red;
- }</style><style is="custom-style">#ticket-list {
- max-width: 1200px;
- margin: 0 auto;
- }
- /***************************************************************
- * Ticket Table
- *************************************************************** */
- #ticket-list #ticket-table {
- padding: 0 50px;
- }
- #ticket-list #ticket-table table {
- width: 100%;
- padding-bottom: 20px;
- border-collapse: collapse;
- }
- #ticket-list #ticket-table table tbody tr td span {
- display: flex;
- align-items: center;
- }
- #ticket-list #ticket-table table tbody tr td span.request-status:before {
- height: 38px;
- margin-right: 10px;
- }
- #ticket-list #ticket-table table tbody tr td span.request-open:before {
- content: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/ticket_status_icons/open.png");
- }
- #ticket-list #ticket-table table tbody tr td span.request-answered:before {
- content: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/ticket_status_icons/answered.png");
- }
- #ticket-list #ticket-table table tbody tr td span.request-solved:before {
- content: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/ticket_status_icons/solved.png");
- }
- #ticket-list #ticket-table h1 {
- margin-bottom: 30px;
- }
- #ticket-list #ticket-table z-pagination {
- text-align: right;
- padding: 30px 0;
- }</style><style is="custom-style">z-ticket-form {
- --z-ticket-form-category-headline: {
- margin-top: 25px;
- margin-bottom: 10px;
- };
- --z-ticket-form-category-dropdown: {
- };
- --z-ticket-form-step-headline: {
- letter-spacing: 1px;
- };
- --z-ticket-form-step-description: {
- margin-top: 15px;
- margin-bottom: 35px;
- };
- --z-form-field-container: {
- margin-top: 20px;
- };
- --q-input-container-label-offset: 15px;
- }
- #ticket-submission-container {
- max-width: 1200px;
- margin: 0 auto 50px auto;
- }
- #ticket-submission-container h1 {
- margin-bottom: 15px;
- }
- #ticket-submission-container #related {
- width: 270px;
- }
- #ticket-submission-container #related z-related-list {
- display: block;
- margin-bottom: 40px;
- }</style><style is="custom-style">:root {
- --z-article-vote: {
- max-width: 350px;
- };
- --z-article-vote-link: {
- background-color: transparent;
- padding: 0;
- font-size: inherit;
- };
- --z-article-vote-link-active: {
- color: #f00;
- };
- --z-article-vote-headline: {
- font-size: 8pt;
- font-weight: 600;
- text-transform: uppercase;
- color: #fff;
- };
- --z-article-vote-meta: {
- };
- }</style><style is="custom-style">z-pagination {
- --z-pagination-span: {
- @apply --no-select;
- padding: 0 4px;
- font-family: "Roboto Condensed", sans-serif;
- font-weight: bold;
- font-size: 18px;
- color: var(--q-pagination-active-text-color, var(--default-active-text-color));
- text-transform: none;
- };
- --q-link: {
- @apply --no-select;
- padding: 0 4px;
- font-family: "Roboto Condensed", sans-serif;
- font-weight: bold;
- font-size: 18px;
- text-transform: none;
- color: var(--q-pagination-text-color, var(--default-text-color));;
- };
- --q-link-hover: {
- color: var(--q-pagination-hover-text-color, var(--default-hover-text-color));
- };
- }</style><style is="custom-style">:root {
- --z-related-list-bottom-link: {
- text-transform: uppercase;
- font-size: 12px;
- font-weight: bold;
- margin-top: 30px;
- };
- --z-related-list-bottom-link-icon: {
- color: #bf3b2c;
- margin-right: 10px;
- };
- }</style><style is="custom-style">z-ticket-form {
- --z-ticket-form-validity-check: {
- color: #39b349;
- };
- }</style><style is="custom-style">body {
- background: #191919; }
- .powered-by-zendesk {
- display: none; }
- q-button {
- position: relative;
- border-radius: 4px; }
- q-button q-logo {
- --q-logo-square-width-xs: 65px;
- --q-logo-square-height-xs: 65px;
- position: absolute;
- left: -22px;
- top: 50%;
- transform: translateY(-50%); }
- #ranked-faq {
- padding: 40px;
- background-color: #303030;
- color: white; }
- #ranked-faq .poster {
- display: inline-block;
- margin-bottom: 20px;
- vertical-align: middle; }
- #ranked-faq .poster q-avatar {
- float: left; }
- #ranked-faq .poster q-checkbox {
- float: left; }
- #ranked-faq .poster div {
- float: left;
- margin-left: 15px; }
- #ranked-faq .poster div p {
- text-transform: uppercase;
- font-weight: bold;
- color: #fff;
- margin-bottom: 0px;
- display: block; }
- #ranked-faq .poster div h1, #ranked-faq .poster div h2, #ranked-faq .poster div h3, #ranked-faq .poster div h4, #ranked-faq .poster div h5, #ranked-faq .poster div h6 {
- margin-bottom: 7px; }
- #ranked-faq .poster div q-meta {
- display: block; }
- #ask-a-question #questions {
- display: flex;
- flex-direction: row; }
- #ask-a-question #questions q-list {
- margin: 30px; }
- #related-questions q-pagination {
- float: right; }
- #subcategory #articles {
- width: 800px; }
- #subcategory #tools {
- width: 750px; }
- q-overlay-card[image="hextech"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/hextech.png"); }
- q-overlay-card[image="livechat"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/livechat.png"); }
- q-overlay-card[image="myisp"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/myisp.png"); }
- q-overlay-card[image="logreader"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/logreader.png"); }
- q-overlay-card[image="hextech-tall"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/hextech-tall.png"); }
- q-overlay-card[image="livechat-tall"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/livechat-tall.png"); }
- q-overlay-card[image="myisp-tall"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/myisp-tall.png"); }
- q-overlay-card[image="logreader-tall"] {
- --q-overlay-card-image: url("https://s3-us-west-2.amazonaws.com/support.riotgames.com/images/cards/logreader-tall.png"); }</style></div></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement